diff --git a/contrib/data/www/web/assets/index-BY_zhiQp.js b/contrib/data/www/web/assets/index-BQz0wSEV.js similarity index 86% rename from contrib/data/www/web/assets/index-BY_zhiQp.js rename to contrib/data/www/web/assets/index-BQz0wSEV.js index 1a7b8681..f332e30f 100644 --- a/contrib/data/www/web/assets/index-BY_zhiQp.js +++ b/contrib/data/www/web/assets/index-BQz0wSEV.js @@ -31,19 +31,19 @@ var LY=Object.defineProperty;var FY=(e,t,n)=>t in e?LY(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var lX=l,Ya=sX;function ct(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),R2=Object.prototype.hasOwnProperty,cX=/^[: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]*$/,yN={},SN={};function uX(e){return R2.call(SN,e)?!0:R2.call(yN,e)?!1:cX.test(e)?SN[e]=!0:(yN[e]=!0,!1)}function dX(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fX(e,t,n,r){if(t===null||typeof t>"u"||dX(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 ga(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Wr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wr[e]=new ga(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wr[t]=new ga(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wr[e]=new ga(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wr[e]=new ga(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){Wr[e]=new ga(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wr[e]=new ga(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wr[e]=new ga(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wr[e]=new ga(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wr[e]=new ga(e,5,!1,e.toLowerCase(),null,!1,!1)});var DR=/[\-:]([a-z])/g;function PR(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(DR,PR);Wr[t]=new ga(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(DR,PR);Wr[t]=new ga(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(DR,PR);Wr[t]=new ga(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wr[e]=new ga(e,1,!1,e.toLowerCase(),null,!1,!1)});Wr.xlinkHref=new ga("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wr[e]=new ga(e,1,!1,e.toLowerCase(),null,!0,!0)});function LR(e,t,n,r){var a=Wr.hasOwnProperty(t)?Wr[t]:null;(a!==null?a.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),R2=Object.prototype.hasOwnProperty,cX=/^[: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]*$/,yN={},SN={};function uX(e){return R2.call(SN,e)?!0:R2.call(yN,e)?!1:cX.test(e)?SN[e]=!0:(yN[e]=!0,!1)}function dX(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fX(e,t,n,r){if(t===null||typeof t>"u"||dX(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 ga(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Wr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wr[e]=new ga(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wr[t]=new ga(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wr[e]=new ga(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wr[e]=new ga(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){Wr[e]=new ga(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wr[e]=new ga(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wr[e]=new ga(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wr[e]=new ga(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wr[e]=new ga(e,5,!1,e.toLowerCase(),null,!1,!1)});var DR=/[\-:]([a-z])/g;function PR(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(DR,PR);Wr[t]=new ga(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(DR,PR);Wr[t]=new ga(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(DR,PR);Wr[t]=new ga(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wr[e]=new ga(e,1,!1,e.toLowerCase(),null,!1,!1)});Wr.xlinkHref=new ga("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wr[e]=new ga(e,1,!1,e.toLowerCase(),null,!0,!0)});function LR(e,t,n,r){var a=Wr.hasOwnProperty(t)?Wr[t]:null;(a!==null?a.type!==0:r||!(2s||a[i]!==o[s]){var c=` -`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{ay=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zd(e):""}function pX(e){switch(e.tag){case 5:return Zd(e.type);case 16:return Zd("Lazy");case 13:return Zd("Suspense");case 19:return Zd("SuspenseList");case 0:case 2:case 15:return e=oy(e.type,!1),e;case 11:return e=oy(e.type.render,!1),e;case 1:return e=oy(e.type,!0),e;default:return""}}function N2(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 Kc:return"Fragment";case qc:return"Portal";case _2:return"Profiler";case FR:return"StrictMode";case $2:return"Suspense";case O2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hj:return(e.displayName||"Context")+".Consumer";case zj:return(e._context.displayName||"Context")+".Provider";case jR:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BR:return t=e.displayName||null,t!==null?t:N2(e.type)||"Memo";case fs:t=e._payload,e=e._init;try{return N2(e(t))}catch{}}return null}function gX(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 N2(t);case 8:return t===FR?"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 Bs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mX(e){var t=Vj(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vg(e){e._valueTracker||(e._valueTracker=mX(e))}function Wj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vj(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dh(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 k2(e,t){var n=t.checked;return Jn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function CN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gj(e,t){t=t.checked,t!=null&&LR(e,"checked",t,!1)}function A2(e,t){Gj(e,t);var n=Bs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?M2(e,t.type,n):t.hasOwnProperty("defaultValue")&&M2(e,t.type,Bs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xN(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function M2(e,t,n){(t!=="number"||Dh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qd=Array.isArray;function fu(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Wg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gf={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},hX=["Webkit","ms","Moz","O"];Object.keys(gf).forEach(function(e){hX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gf[t]=gf[e]})});function Xj(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gf.hasOwnProperty(e)&&gf[e]?(""+t).trim():t+"px"}function Zj(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=Xj(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var vX=Jn({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 L2(e,t){if(t){if(vX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ct(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ct(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ct(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ct(62))}}function F2(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 j2=null;function zR(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var B2=null,pu=null,gu=null;function TN(e){if(e=Zp(e)){if(typeof B2!="function")throw Error(ct(280));var t=e.stateNode;t&&(t=Jv(t),B2(e.stateNode,e.type,t))}}function Qj(e){pu?gu?gu.push(e):gu=[e]:pu=e}function Jj(){if(pu){var e=pu,t=gu;if(gu=pu=null,TN(e),t)for(e=0;e>>=0,e===0?32:31-(_X(e)/$X|0)|0}var Gg=64,qg=4194304;function Jd(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 jh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~a;s!==0?r=Jd(s):(o&=i,o!==0&&(r=Jd(o)))}else i=n&~a,i!==0?r=Jd(i):o!==0&&(r=Jd(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Po(t),e[t]=n}function AX(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=hf),DN=" ",PN=!1;function yB(e,t){switch(e){case"keyup":return sZ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SB(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yc=!1;function cZ(e,t){switch(e){case"compositionend":return SB(t);case"keypress":return t.which!==32?null:(PN=!0,DN);case"textInput":return e=t.data,e===DN&&PN?null:e;default:return null}}function uZ(e,t){if(Yc)return e==="compositionend"||!YR&&yB(e,t)?(e=vB(),oh=GR=ys=null,Yc=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=BN(n)}}function EB(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EB(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function IB(){for(var e=window,t=Dh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dh(e.document)}return t}function XR(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 yZ(e){var t=IB(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&EB(n.ownerDocument.documentElement,n)){if(r!==null&&XR(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=zN(n,o);var i=zN(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xc=null,G2=null,bf=null,q2=!1;function HN(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;q2||Xc==null||Xc!==Dh(r)||(r=Xc,"selectionStart"in r&&XR(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bf&&Xf(bf,r)||(bf=r,r=Hh(G2,"onSelect"),0Jc||(e.current=J2[Jc],J2[Jc]=null,Jc--)}function An(e,t){Jc++,J2[Jc]=e.current,e.current=t}var zs={},aa=Xs(zs),Ia=Xs(!1),Hl=zs;function Tu(e,t){var n=e.type.contextTypes;if(!n)return zs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ta(e){return e=e.childContextTypes,e!=null}function Vh(){Vn(Ia),Vn(aa)}function YN(e,t,n){if(aa.current!==zs)throw Error(ct(168));An(aa,t),An(Ia,n)}function MB(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ct(108,gX(e)||"Unknown",a));return Jn({},n,r)}function Wh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zs,Hl=aa.current,An(aa,e),An(Ia,Ia.current),!0}function XN(e,t,n){var r=e.stateNode;if(!r)throw Error(ct(169));n?(e=MB(e,t,Hl),r.__reactInternalMemoizedMergedChildContext=e,Vn(Ia),Vn(aa),An(aa,e)):Vn(Ia),An(Ia,n)}var Oi=null,eb=!1,yy=!1;function DB(e){Oi===null?Oi=[e]:Oi.push(e)}function NZ(e){eb=!0,DB(e)}function Zs(){if(!yy&&Oi!==null){yy=!0;var e=0,t=Cn;try{var n=Oi;for(Cn=1;e>=i,a-=i,Di=1<<32-Po(t)+a|n<R?(T=I,I=null):T=I.sibling;var _=p(y,I,S[R],C);if(_===null){I===null&&(I=T);break}e&&I&&_.alternate===null&&t(y,I),b=o(_,b,R),E===null?x=_:E.sibling=_,E=_,I=T}if(R===S.length)return n(y,I),Kn&&ml(y,R),x;if(I===null){for(;RR?(T=I,I=null):T=I.sibling;var $=p(y,I,_.value,C);if($===null){I===null&&(I=T);break}e&&I&&$.alternate===null&&t(y,I),b=o($,b,R),E===null?x=$:E.sibling=$,E=$,I=T}if(_.done)return n(y,I),Kn&&ml(y,R),x;if(I===null){for(;!_.done;R++,_=S.next())_=f(y,_.value,C),_!==null&&(b=o(_,b,R),E===null?x=_:E.sibling=_,E=_);return Kn&&ml(y,R),x}for(I=r(y,I);!_.done;R++,_=S.next())_=g(I,y,R,_.value,C),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?R:_.key),b=o(_,b,R),E===null?x=_:E.sibling=_,E=_);return e&&I.forEach(function(D){return t(y,D)}),Kn&&ml(y,R),x}function h(y,b,S,C){if(typeof S=="object"&&S!==null&&S.type===Kc&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Ug:e:{for(var x=S.key,E=b;E!==null;){if(E.key===x){if(x=S.type,x===Kc){if(E.tag===7){n(y,E.sibling),b=a(E,S.props.children),b.return=y,y=b;break e}}else if(E.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===fs&&JN(x)===E.type){n(y,E.sibling),b=a(E,S.props),b.ref=Nd(y,E,S),b.return=y,y=b;break e}n(y,E);break}else t(y,E);E=E.sibling}S.type===Kc?(b=Ml(S.props.children,y.mode,C,S.key),b.return=y,y=b):(C=ph(S.type,S.key,S.props,null,y.mode,C),C.ref=Nd(y,b,S),C.return=y,y=C)}return i(y);case qc:e:{for(E=S.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(y,b.sibling),b=a(b,S.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=Ry(S,y.mode,C),b.return=y,y=b}return i(y);case fs:return E=S._init,h(y,b,E(S._payload),C)}if(Qd(S))return v(y,b,S,C);if(Td(S))return m(y,b,S,C);em(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(n(y,b.sibling),b=a(b,S),b.return=y,y=b):(n(y,b),b=Ty(S,y.mode,C),b.return=y,y=b),i(y)):n(y,b)}return h}var _u=jB(!0),BB=jB(!1),Kh=Xs(null),Yh=null,nu=null,e_=null;function t_(){e_=nu=Yh=null}function n_(e){var t=Kh.current;Vn(Kh),e._currentValue=t}function nI(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hu(e,t){Yh=e,e_=nu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wa=!0),e.firstContext=null)}function go(e){var t=e._currentValue;if(e_!==e)if(e={context:e,memoizedValue:t,next:null},nu===null){if(Yh===null)throw Error(ct(308));nu=e,Yh.dependencies={lanes:0,firstContext:e}}else nu=nu.next=e;return t}var wl=null;function r_(e){wl===null?wl=[e]:wl.push(e)}function zB(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,r_(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ui(e,r)}function Ui(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ps=!1;function a_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function HB(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 Li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Os(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,mn&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ui(e,n)}return a=r.interleaved,a===null?(t.next=t,r_(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ui(e,n)}function sh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,UR(e,n)}}function ek(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xh(e,t,n,r){var a=e.updateQueue;ps=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=a.baseState;i=0,d=u=c=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,m=s;switch(p=t,g=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){f=v.call(g,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,p=typeof v=="function"?v.call(g,f,p):v,p==null)break e;f=Jn({},f,p);break e;case 2:ps=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=g,c=f):d=d.next=g,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Wl|=i,e.lanes=i,e.memoizedState=f}}function tk(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=wy.transition;wy.transition={};try{e(!1),t()}finally{Cn=n,wy.transition=r}}function o7(){return mo().memoizedState}function DZ(e,t,n){var r=ks(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i7(e))s7(t,n);else if(n=zB(e,t,n,r),n!==null){var a=ua();Lo(n,e,r,a),l7(n,t,r)}}function PZ(e,t,n){var r=ks(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i7(e))s7(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,zo(s,i)){var c=t.interleaved;c===null?(a.next=a,r_(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=zB(e,t,a,r),n!==null&&(a=ua(),Lo(n,e,r,a),l7(n,t,r))}}function i7(e){var t=e.alternate;return e===Qn||t!==null&&t===Qn}function s7(e,t){yf=Qh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function l7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,UR(e,n)}}var Jh={readContext:go,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},LZ={readContext:go,useCallback:function(e,t){return Jo().memoizedState=[e,t===void 0?null:t],e},useContext:go,useEffect:rk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ch(4194308,4,e7.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return ch(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=DZ.bind(null,Qn,e),[r.memoizedState,e]},useRef:function(e){var t=Jo();return e={current:e},t.memoizedState=e},useState:nk,useDebugValue:f_,useDeferredValue:function(e){return Jo().memoizedState=e},useTransition:function(){var e=nk(!1),t=e[0];return e=MZ.bind(null,e[1]),Jo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qn,a=Jo();if(Kn){if(n===void 0)throw Error(ct(407));n=n()}else{if(n=t(),Ar===null)throw Error(ct(349));Vl&30||GB(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rk(KB.bind(null,r,o,e),[e]),r.flags|=2048,ap(9,qB.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Jo(),t=Ar.identifierPrefix;if(Kn){var n=Pi,r=Di;n=(r&~(1<<32-Po(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=np++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{ay=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zd(e):""}function pX(e){switch(e.tag){case 5:return Zd(e.type);case 16:return Zd("Lazy");case 13:return Zd("Suspense");case 19:return Zd("SuspenseList");case 0:case 2:case 15:return e=oy(e.type,!1),e;case 11:return e=oy(e.type.render,!1),e;case 1:return e=oy(e.type,!0),e;default:return""}}function N2(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 Kc:return"Fragment";case qc:return"Portal";case _2:return"Profiler";case FR:return"StrictMode";case $2:return"Suspense";case O2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hj:return(e.displayName||"Context")+".Consumer";case zj:return(e._context.displayName||"Context")+".Provider";case jR:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BR:return t=e.displayName||null,t!==null?t:N2(e.type)||"Memo";case fs:t=e._payload,e=e._init;try{return N2(e(t))}catch{}}return null}function gX(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 N2(t);case 8:return t===FR?"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 Bs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mX(e){var t=Vj(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vg(e){e._valueTracker||(e._valueTracker=mX(e))}function Wj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vj(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dh(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 k2(e,t){var n=t.checked;return Jn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function CN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gj(e,t){t=t.checked,t!=null&&LR(e,"checked",t,!1)}function A2(e,t){Gj(e,t);var n=Bs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?M2(e,t.type,n):t.hasOwnProperty("defaultValue")&&M2(e,t.type,Bs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xN(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function M2(e,t,n){(t!=="number"||Dh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qd=Array.isArray;function fu(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Wg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gf={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},hX=["Webkit","ms","Moz","O"];Object.keys(gf).forEach(function(e){hX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gf[t]=gf[e]})});function Xj(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gf.hasOwnProperty(e)&&gf[e]?(""+t).trim():t+"px"}function Zj(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=Xj(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var vX=Jn({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 L2(e,t){if(t){if(vX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function F2(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 j2=null;function zR(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var B2=null,pu=null,gu=null;function TN(e){if(e=Zp(e)){if(typeof B2!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=Jv(t),B2(e.stateNode,e.type,t))}}function Qj(e){pu?gu?gu.push(e):gu=[e]:pu=e}function Jj(){if(pu){var e=pu,t=gu;if(gu=pu=null,TN(e),t)for(e=0;e>>=0,e===0?32:31-(_X(e)/$X|0)|0}var Gg=64,qg=4194304;function Jd(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 jh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~a;s!==0?r=Jd(s):(o&=i,o!==0&&(r=Jd(o)))}else i=n&~a,i!==0?r=Jd(i):o!==0&&(r=Jd(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Po(t),e[t]=n}function AX(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=hf),DN=" ",PN=!1;function yB(e,t){switch(e){case"keyup":return sZ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SB(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yc=!1;function cZ(e,t){switch(e){case"compositionend":return SB(t);case"keypress":return t.which!==32?null:(PN=!0,DN);case"textInput":return e=t.data,e===DN&&PN?null:e;default:return null}}function uZ(e,t){if(Yc)return e==="compositionend"||!YR&&yB(e,t)?(e=vB(),oh=GR=ys=null,Yc=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=BN(n)}}function EB(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EB(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function IB(){for(var e=window,t=Dh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dh(e.document)}return t}function XR(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 yZ(e){var t=IB(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&EB(n.ownerDocument.documentElement,n)){if(r!==null&&XR(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=zN(n,o);var i=zN(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xc=null,G2=null,bf=null,q2=!1;function HN(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;q2||Xc==null||Xc!==Dh(r)||(r=Xc,"selectionStart"in r&&XR(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bf&&Xf(bf,r)||(bf=r,r=Hh(G2,"onSelect"),0Jc||(e.current=J2[Jc],J2[Jc]=null,Jc--)}function Dn(e,t){Jc++,J2[Jc]=e.current,e.current=t}var zs={},aa=Xs(zs),Ia=Xs(!1),Hl=zs;function Tu(e,t){var n=e.type.contextTypes;if(!n)return zs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ta(e){return e=e.childContextTypes,e!=null}function Vh(){Gn(Ia),Gn(aa)}function YN(e,t,n){if(aa.current!==zs)throw Error(dt(168));Dn(aa,t),Dn(Ia,n)}function MB(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(dt(108,gX(e)||"Unknown",a));return Jn({},n,r)}function Wh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zs,Hl=aa.current,Dn(aa,e),Dn(Ia,Ia.current),!0}function XN(e,t,n){var r=e.stateNode;if(!r)throw Error(dt(169));n?(e=MB(e,t,Hl),r.__reactInternalMemoizedMergedChildContext=e,Gn(Ia),Gn(aa),Dn(aa,e)):Gn(Ia),Dn(Ia,n)}var Oi=null,eb=!1,yy=!1;function DB(e){Oi===null?Oi=[e]:Oi.push(e)}function NZ(e){eb=!0,DB(e)}function Zs(){if(!yy&&Oi!==null){yy=!0;var e=0,t=En;try{var n=Oi;for(En=1;e>=i,a-=i,Di=1<<32-Po(t)+a|n<R?(T=I,I=null):T=I.sibling;var _=p(y,I,S[R],C);if(_===null){I===null&&(I=T);break}e&&I&&_.alternate===null&&t(y,I),b=o(_,b,R),E===null?x=_:E.sibling=_,E=_,I=T}if(R===S.length)return n(y,I),Kn&&ml(y,R),x;if(I===null){for(;RR?(T=I,I=null):T=I.sibling;var $=p(y,I,_.value,C);if($===null){I===null&&(I=T);break}e&&I&&$.alternate===null&&t(y,I),b=o($,b,R),E===null?x=$:E.sibling=$,E=$,I=T}if(_.done)return n(y,I),Kn&&ml(y,R),x;if(I===null){for(;!_.done;R++,_=S.next())_=f(y,_.value,C),_!==null&&(b=o(_,b,R),E===null?x=_:E.sibling=_,E=_);return Kn&&ml(y,R),x}for(I=r(y,I);!_.done;R++,_=S.next())_=g(I,y,R,_.value,C),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?R:_.key),b=o(_,b,R),E===null?x=_:E.sibling=_,E=_);return e&&I.forEach(function(D){return t(y,D)}),Kn&&ml(y,R),x}function h(y,b,S,C){if(typeof S=="object"&&S!==null&&S.type===Kc&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Ug:e:{for(var x=S.key,E=b;E!==null;){if(E.key===x){if(x=S.type,x===Kc){if(E.tag===7){n(y,E.sibling),b=a(E,S.props.children),b.return=y,y=b;break e}}else if(E.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===fs&&JN(x)===E.type){n(y,E.sibling),b=a(E,S.props),b.ref=Nd(y,E,S),b.return=y,y=b;break e}n(y,E);break}else t(y,E);E=E.sibling}S.type===Kc?(b=Ml(S.props.children,y.mode,C,S.key),b.return=y,y=b):(C=ph(S.type,S.key,S.props,null,y.mode,C),C.ref=Nd(y,b,S),C.return=y,y=C)}return i(y);case qc:e:{for(E=S.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(y,b.sibling),b=a(b,S.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=Ry(S,y.mode,C),b.return=y,y=b}return i(y);case fs:return E=S._init,h(y,b,E(S._payload),C)}if(Qd(S))return v(y,b,S,C);if(Td(S))return m(y,b,S,C);em(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(n(y,b.sibling),b=a(b,S),b.return=y,y=b):(n(y,b),b=Ty(S,y.mode,C),b.return=y,y=b),i(y)):n(y,b)}return h}var _u=jB(!0),BB=jB(!1),Kh=Xs(null),Yh=null,nu=null,e_=null;function t_(){e_=nu=Yh=null}function n_(e){var t=Kh.current;Gn(Kh),e._currentValue=t}function nI(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hu(e,t){Yh=e,e_=nu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wa=!0),e.firstContext=null)}function go(e){var t=e._currentValue;if(e_!==e)if(e={context:e,memoizedValue:t,next:null},nu===null){if(Yh===null)throw Error(dt(308));nu=e,Yh.dependencies={lanes:0,firstContext:e}}else nu=nu.next=e;return t}var wl=null;function r_(e){wl===null?wl=[e]:wl.push(e)}function zB(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,r_(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ui(e,r)}function Ui(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ps=!1;function a_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function HB(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 Li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Os(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,gn&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ui(e,n)}return a=r.interleaved,a===null?(t.next=t,r_(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ui(e,n)}function sh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,UR(e,n)}}function ek(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xh(e,t,n,r){var a=e.updateQueue;ps=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=a.baseState;i=0,d=u=c=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,m=s;switch(p=t,g=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){f=v.call(g,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,p=typeof v=="function"?v.call(g,f,p):v,p==null)break e;f=Jn({},f,p);break e;case 2:ps=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=g,c=f):d=d.next=g,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Wl|=i,e.lanes=i,e.memoizedState=f}}function tk(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=wy.transition;wy.transition={};try{e(!1),t()}finally{En=n,wy.transition=r}}function o7(){return mo().memoizedState}function DZ(e,t,n){var r=ks(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i7(e))s7(t,n);else if(n=zB(e,t,n,r),n!==null){var a=ua();Lo(n,e,r,a),l7(n,t,r)}}function PZ(e,t,n){var r=ks(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i7(e))s7(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,zo(s,i)){var c=t.interleaved;c===null?(a.next=a,r_(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=zB(e,t,a,r),n!==null&&(a=ua(),Lo(n,e,r,a),l7(n,t,r))}}function i7(e){var t=e.alternate;return e===Qn||t!==null&&t===Qn}function s7(e,t){yf=Qh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function l7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,UR(e,n)}}var Jh={readContext:go,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},LZ={readContext:go,useCallback:function(e,t){return ei().memoizedState=[e,t===void 0?null:t],e},useContext:go,useEffect:rk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ch(4194308,4,e7.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return ch(4,2,e,t)},useMemo:function(e,t){var n=ei();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ei();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=DZ.bind(null,Qn,e),[r.memoizedState,e]},useRef:function(e){var t=ei();return e={current:e},t.memoizedState=e},useState:nk,useDebugValue:f_,useDeferredValue:function(e){return ei().memoizedState=e},useTransition:function(){var e=nk(!1),t=e[0];return e=MZ.bind(null,e[1]),ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qn,a=ei();if(Kn){if(n===void 0)throw Error(dt(407));n=n()}else{if(n=t(),Ar===null)throw Error(dt(349));Vl&30||GB(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rk(KB.bind(null,r,o,e),[e]),r.flags|=2048,ap(9,qB.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ei(),t=Ar.identifierPrefix;if(Kn){var n=Pi,r=Di;n=(r&~(1<<32-Po(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=np++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ni]=t,e[Jf]=r,b7(e,t,!1,!1),t.stateNode=e;e:{switch(i=F2(n,r),n){case"dialog":zn("cancel",e),zn("close",e),a=r;break;case"iframe":case"object":case"embed":zn("load",e),a=r;break;case"video":case"audio":for(a=0;aNu&&(t.flags|=128,r=!0,kd(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zh(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Kn)return Zr(t),null}else 2*cr()-o.renderingStartTime>Nu&&n!==1073741824&&(t.flags|=128,r=!0,kd(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=cr(),t.sibling=null,n=Zn.current,An(Zn,r?n&1|2:n&1),t):(Zr(t),null);case 22:case 23:return b_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ja&1073741824&&(Zr(t),t.subtreeFlags&6&&(t.flags|=8192)):Zr(t),null;case 24:return null;case 25:return null}throw Error(ct(156,t.tag))}function WZ(e,t){switch(QR(t),t.tag){case 1:return Ta(t.type)&&Vh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $u(),Vn(Ia),Vn(aa),s_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return i_(t),null;case 13:if(Vn(Zn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ct(340));Ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vn(Zn),null;case 4:return $u(),null;case 10:return n_(t.type._context),null;case 22:case 23:return b_(),null;case 24:return null;default:return null}}var nm=!1,ta=!1,GZ=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function ru(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ir(e,t,r)}else n.current=null}function dI(e,t,n){try{n()}catch(r){ir(e,t,r)}}var gk=!1;function qZ(e,t){if(K2=Bh,e=IB(),XR(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||a!==0&&f.nodeType!==3||(s=i+a),f!==o||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===a&&(s=i),p===o&&++d===r&&(c=i),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Y2={focusedElem:e,selectionRange:n},Bh=!1,Ot=t;Ot!==null;)if(t=Ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ot=e;else for(;Ot!==null;){t=Ot;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,h=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:$o(t.type,m),h);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ct(163))}}catch(C){ir(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Ot=e;break}Ot=t.return}return v=gk,gk=!1,v}function Sf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&dI(t,n,o)}a=a.next}while(a!==r)}}function rb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function fI(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function w7(e){var t=e.alternate;t!==null&&(e.alternate=null,w7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ni],delete t[Jf],delete t[Q2],delete t[$Z],delete t[OZ])),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 C7(e){return e.tag===5||e.tag===3||e.tag===4}function mk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C7(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 pI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Uh));else if(r!==4&&(e=e.child,e!==null))for(pI(e,t,n),e=e.sibling;e!==null;)pI(e,t,n),e=e.sibling}function gI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gI(e,t,n),e=e.sibling;e!==null;)gI(e,t,n),e=e.sibling}var Br=null,Oo=!1;function rs(e,t,n){for(n=n.child;n!==null;)x7(e,t,n),n=n.sibling}function x7(e,t,n){if(oi&&typeof oi.onCommitFiberUnmount=="function")try{oi.onCommitFiberUnmount(Yv,n)}catch{}switch(n.tag){case 5:ta||ru(n,t);case 6:var r=Br,a=Oo;Br=null,rs(e,t,n),Br=r,Oo=a,Br!==null&&(Oo?(e=Br,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Br.removeChild(n.stateNode));break;case 18:Br!==null&&(Oo?(e=Br,n=n.stateNode,e.nodeType===8?by(e.parentNode,n):e.nodeType===1&&by(e,n),Kf(e)):by(Br,n.stateNode));break;case 4:r=Br,a=Oo,Br=n.stateNode.containerInfo,Oo=!0,rs(e,t,n),Br=r,Oo=a;break;case 0:case 11:case 14:case 15:if(!ta&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&dI(n,t,i),a=a.next}while(a!==r)}rs(e,t,n);break;case 1:if(!ta&&(ru(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ir(n,t,s)}rs(e,t,n);break;case 21:rs(e,t,n);break;case 22:n.mode&1?(ta=(r=ta)||n.memoizedState!==null,rs(e,t,n),ta=r):rs(e,t,n);break;default:rs(e,t,n)}}function hk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GZ),t.forEach(function(r){var a=nQ.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function To(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=i),r&=~o}if(r=a,r=cr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YZ(r/1960))-r,10e?16:e,Ss===null)var r=!1;else{if(e=Ss,Ss=null,nv=0,mn&6)throw Error(ct(331));var a=mn;for(mn|=4,Ot=e.current;Ot!==null;){var o=Ot,i=o.child;if(Ot.flags&16){var s=o.deletions;if(s!==null){for(var c=0;ccr()-h_?Al(e,0):m_|=n),Ra(e,t)}function N7(e,t){t===0&&(e.mode&1?(t=qg,qg<<=1,!(qg&130023424)&&(qg=4194304)):t=1);var n=ua();e=Ui(e,t),e!==null&&(Yp(e,t,n),Ra(e,n))}function tQ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N7(e,n)}function nQ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ct(314))}r!==null&&r.delete(t),N7(e,n)}var k7;k7=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ia.current)wa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wa=!1,UZ(e,t,n);wa=!!(e.flags&131072)}else wa=!1,Kn&&t.flags&1048576&&PB(t,qh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uh(e,t),e=t.pendingProps;var a=Tu(t,aa.current);hu(t,n),a=c_(null,t,r,e,a,n);var o=u_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ta(r)?(o=!0,Wh(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a_(t),a.updater=nb,t.stateNode=a,a._reactInternals=t,aI(t,r,e,n),t=sI(null,t,r,!0,o,n)):(t.tag=0,Kn&&o&&ZR(t),la(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uh(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=aQ(r),e=$o(r,e),a){case 0:t=iI(null,t,r,e,n);break e;case 1:t=dk(null,t,r,e,n);break e;case 11:t=ck(null,t,r,e,n);break e;case 14:t=uk(null,t,r,$o(r.type,e),n);break e}throw Error(ct(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),iI(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),dk(e,t,r,a,n);case 3:e:{if(m7(t),e===null)throw Error(ct(387));r=t.pendingProps,o=t.memoizedState,a=o.element,HB(e,t),Xh(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ou(Error(ct(423)),t),t=fk(e,t,r,n,a);break e}else if(r!==a){a=Ou(Error(ct(424)),t),t=fk(e,t,r,n,a);break e}else for(za=$s(t.stateNode.containerInfo.firstChild),Ka=t,Kn=!0,Ao=null,n=BB(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ru(),r===a){t=Vi(e,t,n);break e}la(e,t,r,n)}t=t.child}return t;case 5:return UB(t),e===null&&tI(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,X2(r,a)?i=null:o!==null&&X2(r,o)&&(t.flags|=32),g7(e,t),la(e,t,i,n),t.child;case 6:return e===null&&tI(t),null;case 13:return h7(e,t,n);case 4:return o_(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_u(t,null,r,n):la(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),ck(e,t,r,a,n);case 7:return la(e,t,t.pendingProps,n),t.child;case 8:return la(e,t,t.pendingProps.children,n),t.child;case 12:return la(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,An(Kh,r._currentValue),r._currentValue=i,o!==null)if(zo(o.value,i)){if(o.children===a.children&&!Ia.current){t=Vi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Li(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),nI(o.return,n,t),s.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(ct(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),nI(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}la(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,hu(t,n),a=go(a),r=r(a),t.flags|=1,la(e,t,r,n),t.child;case 14:return r=t.type,a=$o(r,t.pendingProps),a=$o(r.type,a),uk(e,t,r,a,n);case 15:return f7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),uh(e,t),t.tag=1,Ta(r)?(e=!0,Wh(t)):e=!1,hu(t,n),c7(t,r,a),aI(t,r,a,n),sI(null,t,r,!0,e,n);case 19:return v7(e,t,n);case 22:return p7(e,t,n)}throw Error(ct(156,t.tag))};function A7(e,t){return iB(e,t)}function rQ(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fo(e,t,n,r){return new rQ(e,t,n,r)}function S_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aQ(e){if(typeof e=="function")return S_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jR)return 11;if(e===BR)return 14}return 2}function As(e,t){var n=e.alternate;return n===null?(n=fo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ph(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")S_(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Kc:return Ml(n.children,a,o,t);case FR:i=8,a|=8;break;case _2:return e=fo(12,n,t,a|2),e.elementType=_2,e.lanes=o,e;case $2:return e=fo(13,n,t,a),e.elementType=$2,e.lanes=o,e;case O2:return e=fo(19,n,t,a),e.elementType=O2,e.lanes=o,e;case Uj:return ob(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zj:i=10;break e;case Hj:i=9;break e;case jR:i=11;break e;case BR:i=14;break e;case fs:i=16,r=null;break e}throw Error(ct(130,e==null?e:typeof e,""))}return t=fo(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ml(e,t,n,r){return e=fo(7,e,r,t),e.lanes=n,e}function ob(e,t,n,r){return e=fo(22,e,r,t),e.elementType=Uj,e.lanes=n,e.stateNode={isHidden:!1},e}function Ty(e,t,n){return e=fo(6,e,null,t),e.lanes=n,e}function Ry(e,t,n){return t=fo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oQ(e,t,n,r,a){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=sy(0),this.expirationTimes=sy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sy(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function w_(e,t,n,r,a,o,i,s,c){return e=new oQ(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=fo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},a_(o),e}function iQ(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L7)}catch(e){console.error(e)}}L7(),Lj.exports=Xa;var xr=Lj.exports;const ip=fa(xr),dQ=OR({__proto__:null,default:ip},[xr]);var Ek=xr;T2.createRoot=Ek.createRoot,T2.hydrateRoot=Ek.hydrateRoot;const fQ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ov{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||fQ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{let[s,c]=i;for(let u=0;u{let[s,c]=i;for(let u=0;u{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},Ik=e=>e==null?"":""+e,pQ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},gQ=/###/g,Tk=e=>e&&e.indexOf("###")>-1?e.replace(gQ,"."):e,Rk=e=>!e||typeof e=="string",xf=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let a=0;for(;a{const{obj:r,k:a}=xf(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),s=xf(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=xf(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},mQ=(e,t,n,r)=>{const{obj:a,k:o}=xf(e,t,Object);a[o]=a[o]||[],a[o].push(n)},iv=(e,t)=>{const{obj:n,k:r}=xf(e,t);if(n)return n[r]},hQ=(e,t,n)=>{const r=iv(e,n);return r!==void 0?r:iv(t,n)},F7=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):F7(e[r],t[r],n):e[r]=t[r]);return e},Tc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var vQ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const bQ=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>vQ[t]):e;class yQ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const SQ=[" ",",","?","!",";"],wQ=new yQ(20),CQ=(e,t,n)=>{t=t||"",n=n||"";const r=SQ.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=wQ.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},yI=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o-1&&ce&&e.indexOf("_")>0?e.replace("_","-"):e;class $k extends ub{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const c=iv(this.data,s);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),c||!i||typeof r!="string"?c:yI(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),_k(this.data,s,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let c=iv(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?F7(c,r,o):c={...c,...r},_k(this.data,s,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var j7={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,a))}),t}};const Ok={};class lv extends ub{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),pQ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ai.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!CQ(t,r,a);if(i&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${C}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${C}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let p=f&&f.res;const g=f&&f.usedKey||i,v=f&&f.exactUsedKey||i,m=Object.prototype.toString.apply(p),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&h.indexOf(m)<0&&!(typeof y=="string"&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,{...n,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=C,f.usedParams=this.getUsedParamsDetails(n),f):C}if(o){const C=Array.isArray(p),x=C?[]:{},E=C?v:g;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const R=`${E}${o}${I}`;x[I]=this.translate(R,{...n,joinArrays:!1,ns:s}),x[I]===R&&(x[I]=p[I])}p=x}}else if(b&&typeof y=="string"&&Array.isArray(p))p=p.join(y),p&&(p=this.extendTranslation(p,t,n,r));else{let C=!1,x=!1;const E=n.count!==void 0&&typeof n.count!="string",I=lv.hasDefaultValue(n),R=E?this.pluralResolver.getSuffix(u,n.count,n):"",T=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${T}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(C=!0,p=$),this.isValidLookup(p)||(x=!0,p=i);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:p,A=I&&$!==p&&this.options.updateMissing;if(x||C||A){if(this.logger.log(A?"updateKey":"missingKey",u,c,i,A?$:p),o){const M=this.resolve(i,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("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 O=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let M=0;M{const j=I&&F!==p?F:P;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,L,j,A,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,c,L,j,A,n),this.emit("missingKey",M,c,L,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?O.forEach(M=>{const L=this.pluralResolver.getSuffixes(M,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(F=>{N([M],i+F,n[`defaultValue${F}`]||$)})}):N(O,i,$))}p=this.extendTranslation(p,t,n,f,r),x&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${i}`),(x||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,C?p:void 0):p=this.options.parseMissingKeyHandler(p))}return a?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||a.usedLng,r),u){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;a=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",g=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(h=>{this.isValidLookup(r)||(s=h,!Ok[`${m[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ok[`${m[0]}-${h}`]=!0,this.logger.warn(`key "${a}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"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!!!")),m.forEach(y=>{if(this.isValidLookup(r))return;i=y;const b=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,d,y,h,n);else{let C;p&&(C=this.pluralResolver.getSuffix(y,n.count,n));const x=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(b.push(d+C),n.ordinal&&C.indexOf(E)===0&&b.push(d+C.replace(E,this.options.pluralSeparator)),g&&b.push(d+x)),v){const I=`${d}${this.options.contextSeparator}${n.context}`;b.push(I),p&&(b.push(I+C),n.ordinal&&C.indexOf(E)===0&&b.push(I+C.replace(E,this.options.pluralSeparator)),g&&b.push(I+x))}}let S;for(;S=b.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(y,h,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const _y=e=>e.charAt(0).toUpperCase()+e.slice(1);class Nk{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ai.create("languageUtils")}getScriptPartFromCode(t){if(t=sv(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=sv(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(a=>a.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=_y(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=_y(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=_y(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let xQ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],EQ={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const IQ=["v1","v2","v3"],TQ=["v4"],kk={zero:0,one:1,two:2,few:3,many:4,other:5},RQ=()=>{const e={};return xQ.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:EQ[t.fc]}})}),e};class _Q{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ai.create("pluralResolver"),(!this.options.compatibilityJSON||TQ.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=RQ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(sv(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((a,o)=>kk[a]-kk[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):r.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!IQ.includes(this.options.compatibilityJSON)}}const Ak=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=hQ(e,t,n);return!o&&a&&typeof n=="string"&&(o=yI(e,n,r),o===void 0&&(o=yI(t,n,r))),o},$y=e=>e.replace(/\$/g,"$$$$");class $Q{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ai.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:v,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:bQ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?Tc(o):i||"{{",this.suffix=s?Tc(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?Tc(p):g||Tc("$t("),this.nestingSuffix=v?Tc(v):m||Tc(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,i,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const y=Ak(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...a,...n,interpolationkey:g}):y}const v=g.split(this.formatSeparator),m=v.shift().trim(),h=v.join(this.formatSeparator).trim();return this.format(Ak(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...a,...n,interpolationkey:m})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>$y(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?$y(this.escape(g)):$y(g)}].forEach(g=>{for(s=0;o=g.regex.exec(t);){const v=o[1].trim();if(i=u(v),i===void 0)if(typeof d=="function"){const h=d(t,o,a);i=typeof h=="string"?h:""}else if(a&&Object.prototype.hasOwnProperty.call(a,v))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Ik(i));const m=g.safeValue(i);if(t=t.replace(o[0],m),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,i);const g=p.match(/'/g),v=p.match(/"/g);(g&&g.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{i=JSON.parse(p),u&&(i={...u,...i})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,m),`${c}${d}${p}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,a[1].trim(),i),i),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Ik(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const OQ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[s,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Rc=e=>{const t={};return(n,r,a)=>{const o=r+JSON.stringify(a);let i=t[o];return i||(i=e(sv(r),a),t[o]=i),i(n)}};class NQ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ai.create("formatter"),this.options=t,this.formats={number:Rc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:Rc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:Rc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:Rc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:Rc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Rc(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=OQ(c);if(this.formats[u]){let f=s;try{const p=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=p.locale||p.lng||a.locale||a.lng||r;f=this.formats[u](s,g,{...d,...a,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const kQ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class AQ extends ub{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=ai.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?i[p]===void 0&&(i[p]=!0):(this.state[p]=1,d=!1,i[p]===void 0&&(i[p]=!0),o[p]===void 0&&(o[p]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const s={};this.queue.forEach(c=>{mQ(c.loaded,[o],i),kQ(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&a{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,s),this.loaded(t,i,s)})}saveMissing(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"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(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,a,c):d=u(t,n,r,a),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,a,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const Mk=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Dk=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),om=()=>{},MQ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class sp extends ub{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Dk(t),this.services={},this.logger=ai,this.modules={external:[]},MQ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=Mk();this.options={...a,...this.options,...Dk(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?ai.init(o(this.modules.logger),this.options):ai.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=NQ);const f=new Nk(this.options);this.store=new $k(this.options.resources,this.options);const p=this.services;p.logger=ai,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new _Q(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new $Q(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new AQ(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(g){for(var v=arguments.length,m=new Array(v>1?v-1:0),h=1;h1?v-1:0),h=1;h{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=om),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Md(),u=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:om;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=Md();return t||(t=this.languages),n||(n=this.options.ns),r||(r=om),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&j7.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=Md();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const o=function(i,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${p}${v}`):g=c.keyPrefix?`${c.keyPrefix}${p}${i}`:i,a.t(g,c)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=Md();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Md();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Nk(Mk());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new sp(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:om;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new sp(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new $k(this.store.data,a),o.services.resourceStore=o.store),o.translator=new lv(o.services,a),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d{console!=null&&console.warn&&(Dl(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Pk={},SI=(...e)=>{Dl(e[0])&&Pk[e[0]]||(Dl(e[0])&&(Pk[e[0]]=new Date),DQ(...e))},B7=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Lk=(e,t,n)=>{e.loadNamespaces(t,B7(e,n))},Fk=(e,t,n,r)=>{Dl(n)&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,B7(e,r))},PQ=(e,t,n={})=>!t.languages||!t.languages.length?(SI("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),Dl=e=>typeof e=="string",LQ=e=>typeof e=="object"&&e!==null,FQ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,jQ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},BQ=e=>jQ[e],zQ=e=>e.replace(FQ,BQ);let wI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:zQ};const HQ=(e={})=>{wI={...wI,...e}},UQ=()=>wI;let z7;const VQ=e=>{z7=e},WQ=()=>z7,GQ={type:"3rdParty",init(e){HQ(e.options.react),VQ(e)}},qQ=l.createContext();class KQ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const YQ=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current},H7=(e,t,n,r)=>e.getFixedT(t,n,r),XQ=(e,t,n,r)=>l.useCallback(H7(e,t,n,r),[e,t,n,r]),Vt=(e,t={})=>{var C,x,E,I;const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(qQ)||{},o=n||r||WQ();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new KQ),!o){SI("You will need to pass in an i18next instance by using initReactI18next");const R=(_,$)=>Dl($)?$:LQ($)&&Dl($.defaultValue)?$.defaultValue:Array.isArray(_)?_[_.length-1]:_,T=[R,{},!1];return T.t=R,T.i18n={},T.ready=!1,T}(C=o.options.react)!=null&&C.wait&&SI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...UQ(),...o.options.react,...t},{useSuspense:s,keyPrefix:c}=i;let u=a||((x=o.options)==null?void 0:x.defaultNS);u=Dl(u)?[u]:u||["translation"],(I=(E=o.reportNamespaces).addUsedNamespaces)==null||I.call(E,u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(R=>PQ(R,o,i)),f=XQ(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),p=()=>f,g=()=>H7(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[v,m]=l.useState(p);let h=u.join();t.lng&&(h=`${t.lng}${h}`);const y=YQ(h),b=l.useRef(!0);l.useEffect(()=>{const{bindI18n:R,bindI18nStore:T}=i;b.current=!0,!d&&!s&&(t.lng?Fk(o,t.lng,u,()=>{b.current&&m(g)}):Lk(o,u,()=>{b.current&&m(g)})),d&&y&&y!==h&&b.current&&m(g);const _=()=>{b.current&&m(g)};return R&&(o==null||o.on(R,_)),T&&(o==null||o.store.on(T,_)),()=>{b.current=!1,o&&(R==null||R.split(" ").forEach($=>o.off($,_))),T&&o&&T.split(" ").forEach($=>o.store.off($,_))}},[o,h]),l.useEffect(()=>{b.current&&d&&m(p)},[o,c,d]);const S=[v,o,d];if(S.t=v,S.i18n=o,S.ready=d,d||!d&&!s)return S;throw new Promise(R=>{t.lng?Fk(o,t.lng,u,()=>R()):Lk(o,u,()=>R())})};function CI(e){"@babel/helpers - typeof";return CI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CI(e)}function U7(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":CI(XMLHttpRequest))==="object"}function ZQ(e){return!!e&&typeof e.then=="function"}function QQ(e){return ZQ(e)?e:Promise.resolve(e)}function JQ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xI={exports:{}},im={exports:{}},jk;function eJ(){return jk||(jk=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ra<"u"&&ra,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(O){return O&&DataView.prototype.isPrototypeOf(O)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(O){return O&&d.indexOf(Object.prototype.toString.call(O))>-1};function p(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function g(O){return typeof O!="string"&&(O=String(O)),O}function v(O){var k={next:function(){var N=O.shift();return{done:N===void 0,value:N}}};return c.iterable&&(k[Symbol.iterator]=function(){return k}),k}function m(O){this.map={},O instanceof m?O.forEach(function(k,N){this.append(N,k)},this):Array.isArray(O)?O.forEach(function(k){this.append(k[0],k[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(k){this.append(k,O[k])},this)}m.prototype.append=function(O,k){O=p(O),k=g(k);var N=this.map[O];this.map[O]=N?N+", "+k:k},m.prototype.delete=function(O){delete this.map[p(O)]},m.prototype.get=function(O){return O=p(O),this.has(O)?this.map[O]:null},m.prototype.has=function(O){return this.map.hasOwnProperty(p(O))},m.prototype.set=function(O,k){this.map[p(O)]=g(k)},m.prototype.forEach=function(O,k){for(var N in this.map)this.map.hasOwnProperty(N)&&O.call(k,this.map[N],N,this)},m.prototype.keys=function(){var O=[];return this.forEach(function(k,N){O.push(N)}),v(O)},m.prototype.values=function(){var O=[];return this.forEach(function(k){O.push(k)}),v(O)},m.prototype.entries=function(){var O=[];return this.forEach(function(k,N){O.push([N,k])}),v(O)},c.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function h(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function y(O){return new Promise(function(k,N){O.onload=function(){k(O.result)},O.onerror=function(){N(O.error)}})}function b(O){var k=new FileReader,N=y(k);return k.readAsArrayBuffer(O),N}function S(O){var k=new FileReader,N=y(k);return k.readAsText(O),N}function C(O){for(var k=new Uint8Array(O),N=new Array(k.length),M=0;M-1?k:O}function T(O,k){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k=k||{};var N=k.body;if(O instanceof T){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,k.headers||(this.headers=new m(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!N&&O._bodyInit!=null&&(N=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=k.credentials||this.credentials||"same-origin",(k.headers||!this.headers)&&(this.headers=new m(k.headers)),this.method=R(k.method||this.method||"GET"),this.mode=k.mode||this.mode||null,this.signal=k.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(k.cache==="no-store"||k.cache==="no-cache")){var M=/([?&])_=[^&]*/;if(M.test(this.url))this.url=this.url.replace(M,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function _(O){var k=new FormData;return O.trim().split("&").forEach(function(N){if(N){var M=N.split("="),L=M.shift().replace(/\+/g," "),F=M.join("=").replace(/\+/g," ");k.append(decodeURIComponent(L),decodeURIComponent(F))}}),k}function $(O){var k=new m,N=O.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(M){return M.indexOf(` +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function Ey(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function oI(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var BZ=typeof WeakMap=="function"?WeakMap:Map;function u7(e,t,n){n=Li(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tv||(tv=!0,mI=r),oI(e,t)},n}function d7(e,t,n){n=Li(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){oI(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){oI(e,t),typeof r!="function"&&(Ns===null?Ns=new Set([this]):Ns.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ik(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BZ;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=eQ.bind(null,e,t,n),t.then(e,e))}function sk(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lk(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Li(-1,1),t.tag=2,Os(n,t,1))),n.lanes|=1),e)}var zZ=Zi.ReactCurrentOwner,wa=!1;function la(e,t,n,r){t.child=e===null?BB(t,null,n,r):_u(t,e.child,n,r)}function ck(e,t,n,r,a){n=n.render;var o=t.ref;return hu(t,a),r=c_(e,t,n,r,o,a),n=u_(),e!==null&&!wa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vi(e,t,a)):(Kn&&n&&ZR(t),t.flags|=1,la(e,t,r,a),t.child)}function uk(e,t,n,r,a){if(e===null){var o=n.type;return typeof o=="function"&&!S_(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,f7(e,t,o,r,a)):(e=ph(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xf,n(i,r)&&e.ref===t.ref)return Vi(e,t,a)}return t.flags|=1,e=As(o,r),e.ref=t.ref,e.return=t,t.child=e}function f7(e,t,n,r,a){if(e!==null){var o=e.memoizedProps;if(Xf(o,r)&&e.ref===t.ref)if(wa=!1,t.pendingProps=r=o,(e.lanes&a)!==0)e.flags&131072&&(wa=!0);else return t.lanes=e.lanes,Vi(e,t,a)}return iI(e,t,n,r,a)}function p7(e,t,n){var r=t.pendingProps,a=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dn(au,ja),ja|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Dn(au,ja),ja|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Dn(au,ja),ja|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Dn(au,ja),ja|=r;return la(e,t,a,n),t.child}function g7(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function iI(e,t,n,r,a){var o=Ta(n)?Hl:aa.current;return o=Tu(t,o),hu(t,a),n=c_(e,t,n,r,o,a),r=u_(),e!==null&&!wa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vi(e,t,a)):(Kn&&r&&ZR(t),t.flags|=1,la(e,t,n,a),t.child)}function dk(e,t,n,r,a){if(Ta(n)){var o=!0;Wh(t)}else o=!1;if(hu(t,a),t.stateNode===null)uh(e,t),c7(t,n,r),aI(t,n,r,a),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=go(u):(u=Ta(n)?Hl:aa.current,u=Tu(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||c!==u)&&ok(t,i,r,u),ps=!1;var p=t.memoizedState;i.state=p,Xh(t,r,i,a),c=t.memoizedState,s!==r||p!==c||Ia.current||ps?(typeof d=="function"&&(rI(t,n,d,r),c=t.memoizedState),(s=ps||ak(t,n,s,r,p,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,HB(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:$o(t.type,s),i.props=u,f=t.pendingProps,p=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=go(c):(c=Ta(n)?Hl:aa.current,c=Tu(t,c));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||p!==c)&&ok(t,i,r,c),ps=!1,p=t.memoizedState,i.state=p,Xh(t,r,i,a);var v=t.memoizedState;s!==f||p!==v||Ia.current||ps?(typeof g=="function"&&(rI(t,n,g,r),v=t.memoizedState),(u=ps||ak(t,n,u,r,p,v,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return sI(e,t,n,r,o,a)}function sI(e,t,n,r,a,o){g7(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return a&&XN(t,n,!1),Vi(e,t,o);r=t.stateNode,zZ.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=_u(t,e.child,null,o),t.child=_u(t,null,s,o)):la(e,t,s,o),t.memoizedState=r.state,a&&XN(t,n,!0),t.child}function m7(e){var t=e.stateNode;t.pendingContext?YN(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YN(e,t.context,!1),o_(e,t.containerInfo)}function fk(e,t,n,r,a){return Ru(),JR(a),t.flags|=256,la(e,t,n,r),t.child}var lI={dehydrated:null,treeContext:null,retryLane:0};function cI(e){return{baseLanes:e,cachePool:null,transitions:null}}function h7(e,t,n){var r=t.pendingProps,a=Zn.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Dn(Zn,a&1),e===null)return tI(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=ob(i,r,0,null),e=Ml(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=cI(n),t.memoizedState=lI,e):p_(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return HZ(e,t,i,r,s,a,n);if(o){o=r.fallback,i=t.mode,a=e.child,s=a.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=As(a,c),r.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=As(s,o):(o=Ml(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?cI(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=lI,r}return o=e.child,e=o.sibling,r=As(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function p_(e,t){return t=ob({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function tm(e,t,n,r){return r!==null&&JR(r),_u(t,e.child,null,n),e=p_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function HZ(e,t,n,r,a,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Ey(Error(dt(422))),tm(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=ob({mode:"visible",children:r.children},a,0,null),o=Ml(o,a,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&_u(t,e.child,null,i),t.child.memoizedState=cI(i),t.memoizedState=lI,o);if(!(t.mode&1))return tm(e,t,i,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(dt(419)),r=Ey(o,r,void 0),tm(e,t,i,r)}if(s=(i&e.childLanes)!==0,wa||s){if(r=Ar,r!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ui(e,a),Lo(r,e,a,-1))}return y_(),r=Ey(Error(dt(421))),tm(e,t,i,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=tQ.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,za=$s(a.nextSibling),Ka=t,Kn=!0,Ao=null,e!==null&&(lo[co++]=Di,lo[co++]=Pi,lo[co++]=Ul,Di=e.id,Pi=e.overflow,Ul=t),t=p_(t,r.children),t.flags|=4096,t)}function pk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),nI(e.return,t,n)}function Iy(e,t,n,r,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function v7(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(la(e,t,r.children,n),r=Zn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pk(e,n,t);else if(e.tag===19)pk(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Dn(Zn,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Zh(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Iy(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Zh(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Iy(t,!0,n,null,o);break;case"together":Iy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,n=As(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=As(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function UZ(e,t,n){switch(t.tag){case 3:m7(t),Ru();break;case 5:UB(t);break;case 1:Ta(t.type)&&Wh(t);break;case 4:o_(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Dn(Kh,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Dn(Zn,Zn.current&1),t.flags|=128,null):n&t.child.childLanes?h7(e,t,n):(Dn(Zn,Zn.current&1),e=Vi(e,t,n),e!==null?e.sibling:null);Dn(Zn,Zn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return v7(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Dn(Zn,Zn.current),r)break;return null;case 22:case 23:return t.lanes=0,p7(e,t,n)}return Vi(e,t,n)}var b7,uI,y7,S7;b7=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};uI=function(){};y7=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Cl(si.current);var o=null;switch(n){case"input":a=k2(e,a),r=k2(e,r),o=[];break;case"select":a=Jn({},a,{value:void 0}),r=Jn({},r,{value:void 0}),o=[];break;case"textarea":a=D2(e,a),r=D2(e,r),o=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Uh)}L2(n,r);var i;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Uf.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(s=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Uf.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Un("scroll",e),o||s===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};S7=function(e,t,n,r){n!==r&&(t.flags|=4)};function kd(e,t){if(!Kn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Zr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function VZ(e,t,n){var r=t.pendingProps;switch(QR(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zr(t),null;case 1:return Ta(t.type)&&Vh(),Zr(t),null;case 3:return r=t.stateNode,$u(),Gn(Ia),Gn(aa),s_(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Jg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ao!==null&&(bI(Ao),Ao=null))),uI(e,t),Zr(t),null;case 5:i_(t);var a=Cl(tp.current);if(n=t.type,e!==null&&t.stateNode!=null)y7(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(dt(166));return Zr(t),null}if(e=Cl(si.current),Jg(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ri]=t,r[Jf]=o,e=(t.mode&1)!==0,n){case"dialog":Un("cancel",r),Un("close",r);break;case"iframe":case"object":case"embed":Un("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ri]=t,e[Jf]=r,b7(e,t,!1,!1),t.stateNode=e;e:{switch(i=F2(n,r),n){case"dialog":Un("cancel",e),Un("close",e),a=r;break;case"iframe":case"object":case"embed":Un("load",e),a=r;break;case"video":case"audio":for(a=0;aNu&&(t.flags|=128,r=!0,kd(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zh(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Kn)return Zr(t),null}else 2*cr()-o.renderingStartTime>Nu&&n!==1073741824&&(t.flags|=128,r=!0,kd(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=cr(),t.sibling=null,n=Zn.current,Dn(Zn,r?n&1|2:n&1),t):(Zr(t),null);case 22:case 23:return b_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ja&1073741824&&(Zr(t),t.subtreeFlags&6&&(t.flags|=8192)):Zr(t),null;case 24:return null;case 25:return null}throw Error(dt(156,t.tag))}function WZ(e,t){switch(QR(t),t.tag){case 1:return Ta(t.type)&&Vh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $u(),Gn(Ia),Gn(aa),s_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return i_(t),null;case 13:if(Gn(Zn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(dt(340));Ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gn(Zn),null;case 4:return $u(),null;case 10:return n_(t.type._context),null;case 22:case 23:return b_(),null;case 24:return null;default:return null}}var nm=!1,ta=!1,GZ=typeof WeakSet=="function"?WeakSet:Set,_t=null;function ru(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){or(e,t,r)}else n.current=null}function dI(e,t,n){try{n()}catch(r){or(e,t,r)}}var gk=!1;function qZ(e,t){if(K2=Bh,e=IB(),XR(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||a!==0&&f.nodeType!==3||(s=i+a),f!==o||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===a&&(s=i),p===o&&++d===r&&(c=i),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Y2={focusedElem:e,selectionRange:n},Bh=!1,_t=t;_t!==null;)if(t=_t,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_t=e;else for(;_t!==null;){t=_t;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,h=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:$o(t.type,m),h);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(dt(163))}}catch(C){or(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,_t=e;break}_t=t.return}return v=gk,gk=!1,v}function Sf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&dI(t,n,o)}a=a.next}while(a!==r)}}function rb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function fI(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function w7(e){var t=e.alternate;t!==null&&(e.alternate=null,w7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ri],delete t[Jf],delete t[Q2],delete t[$Z],delete t[OZ])),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 C7(e){return e.tag===5||e.tag===3||e.tag===4}function mk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C7(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 pI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Uh));else if(r!==4&&(e=e.child,e!==null))for(pI(e,t,n),e=e.sibling;e!==null;)pI(e,t,n),e=e.sibling}function gI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gI(e,t,n),e=e.sibling;e!==null;)gI(e,t,n),e=e.sibling}var Br=null,Oo=!1;function rs(e,t,n){for(n=n.child;n!==null;)x7(e,t,n),n=n.sibling}function x7(e,t,n){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(Yv,n)}catch{}switch(n.tag){case 5:ta||ru(n,t);case 6:var r=Br,a=Oo;Br=null,rs(e,t,n),Br=r,Oo=a,Br!==null&&(Oo?(e=Br,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Br.removeChild(n.stateNode));break;case 18:Br!==null&&(Oo?(e=Br,n=n.stateNode,e.nodeType===8?by(e.parentNode,n):e.nodeType===1&&by(e,n),Kf(e)):by(Br,n.stateNode));break;case 4:r=Br,a=Oo,Br=n.stateNode.containerInfo,Oo=!0,rs(e,t,n),Br=r,Oo=a;break;case 0:case 11:case 14:case 15:if(!ta&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&dI(n,t,i),a=a.next}while(a!==r)}rs(e,t,n);break;case 1:if(!ta&&(ru(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){or(n,t,s)}rs(e,t,n);break;case 21:rs(e,t,n);break;case 22:n.mode&1?(ta=(r=ta)||n.memoizedState!==null,rs(e,t,n),ta=r):rs(e,t,n);break;default:rs(e,t,n)}}function hk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GZ),t.forEach(function(r){var a=nQ.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function To(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=i),r&=~o}if(r=a,r=cr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YZ(r/1960))-r,10e?16:e,Ss===null)var r=!1;else{if(e=Ss,Ss=null,nv=0,gn&6)throw Error(dt(331));var a=gn;for(gn|=4,_t=e.current;_t!==null;){var o=_t,i=o.child;if(_t.flags&16){var s=o.deletions;if(s!==null){for(var c=0;ccr()-h_?Al(e,0):m_|=n),Ra(e,t)}function N7(e,t){t===0&&(e.mode&1?(t=qg,qg<<=1,!(qg&130023424)&&(qg=4194304)):t=1);var n=ua();e=Ui(e,t),e!==null&&(Yp(e,t,n),Ra(e,n))}function tQ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N7(e,n)}function nQ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(dt(314))}r!==null&&r.delete(t),N7(e,n)}var k7;k7=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ia.current)wa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wa=!1,UZ(e,t,n);wa=!!(e.flags&131072)}else wa=!1,Kn&&t.flags&1048576&&PB(t,qh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uh(e,t),e=t.pendingProps;var a=Tu(t,aa.current);hu(t,n),a=c_(null,t,r,e,a,n);var o=u_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ta(r)?(o=!0,Wh(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a_(t),a.updater=nb,t.stateNode=a,a._reactInternals=t,aI(t,r,e,n),t=sI(null,t,r,!0,o,n)):(t.tag=0,Kn&&o&&ZR(t),la(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uh(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=aQ(r),e=$o(r,e),a){case 0:t=iI(null,t,r,e,n);break e;case 1:t=dk(null,t,r,e,n);break e;case 11:t=ck(null,t,r,e,n);break e;case 14:t=uk(null,t,r,$o(r.type,e),n);break e}throw Error(dt(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),iI(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),dk(e,t,r,a,n);case 3:e:{if(m7(t),e===null)throw Error(dt(387));r=t.pendingProps,o=t.memoizedState,a=o.element,HB(e,t),Xh(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ou(Error(dt(423)),t),t=fk(e,t,r,n,a);break e}else if(r!==a){a=Ou(Error(dt(424)),t),t=fk(e,t,r,n,a);break e}else for(za=$s(t.stateNode.containerInfo.firstChild),Ka=t,Kn=!0,Ao=null,n=BB(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ru(),r===a){t=Vi(e,t,n);break e}la(e,t,r,n)}t=t.child}return t;case 5:return UB(t),e===null&&tI(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,X2(r,a)?i=null:o!==null&&X2(r,o)&&(t.flags|=32),g7(e,t),la(e,t,i,n),t.child;case 6:return e===null&&tI(t),null;case 13:return h7(e,t,n);case 4:return o_(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_u(t,null,r,n):la(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),ck(e,t,r,a,n);case 7:return la(e,t,t.pendingProps,n),t.child;case 8:return la(e,t,t.pendingProps.children,n),t.child;case 12:return la(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Dn(Kh,r._currentValue),r._currentValue=i,o!==null)if(zo(o.value,i)){if(o.children===a.children&&!Ia.current){t=Vi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Li(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),nI(o.return,n,t),s.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(dt(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),nI(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}la(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,hu(t,n),a=go(a),r=r(a),t.flags|=1,la(e,t,r,n),t.child;case 14:return r=t.type,a=$o(r,t.pendingProps),a=$o(r.type,a),uk(e,t,r,a,n);case 15:return f7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$o(r,a),uh(e,t),t.tag=1,Ta(r)?(e=!0,Wh(t)):e=!1,hu(t,n),c7(t,r,a),aI(t,r,a,n),sI(null,t,r,!0,e,n);case 19:return v7(e,t,n);case 22:return p7(e,t,n)}throw Error(dt(156,t.tag))};function A7(e,t){return iB(e,t)}function rQ(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fo(e,t,n,r){return new rQ(e,t,n,r)}function S_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aQ(e){if(typeof e=="function")return S_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jR)return 11;if(e===BR)return 14}return 2}function As(e,t){var n=e.alternate;return n===null?(n=fo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ph(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")S_(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Kc:return Ml(n.children,a,o,t);case FR:i=8,a|=8;break;case _2:return e=fo(12,n,t,a|2),e.elementType=_2,e.lanes=o,e;case $2:return e=fo(13,n,t,a),e.elementType=$2,e.lanes=o,e;case O2:return e=fo(19,n,t,a),e.elementType=O2,e.lanes=o,e;case Uj:return ob(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zj:i=10;break e;case Hj:i=9;break e;case jR:i=11;break e;case BR:i=14;break e;case fs:i=16,r=null;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=fo(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ml(e,t,n,r){return e=fo(7,e,r,t),e.lanes=n,e}function ob(e,t,n,r){return e=fo(22,e,r,t),e.elementType=Uj,e.lanes=n,e.stateNode={isHidden:!1},e}function Ty(e,t,n){return e=fo(6,e,null,t),e.lanes=n,e}function Ry(e,t,n){return t=fo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oQ(e,t,n,r,a){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=sy(0),this.expirationTimes=sy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sy(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function w_(e,t,n,r,a,o,i,s,c){return e=new oQ(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=fo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},a_(o),e}function iQ(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L7)}catch(e){console.error(e)}}L7(),Lj.exports=Xa;var xr=Lj.exports;const ip=fa(xr),dQ=OR({__proto__:null,default:ip},[xr]);var Ek=xr;T2.createRoot=Ek.createRoot,T2.hydrateRoot=Ek.hydrateRoot;const fQ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ov{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||fQ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{let[s,c]=i;for(let u=0;u{let[s,c]=i;for(let u=0;u{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},Ik=e=>e==null?"":""+e,pQ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},gQ=/###/g,Tk=e=>e&&e.indexOf("###")>-1?e.replace(gQ,"."):e,Rk=e=>!e||typeof e=="string",xf=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let a=0;for(;a{const{obj:r,k:a}=xf(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),s=xf(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=xf(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},mQ=(e,t,n,r)=>{const{obj:a,k:o}=xf(e,t,Object);a[o]=a[o]||[],a[o].push(n)},iv=(e,t)=>{const{obj:n,k:r}=xf(e,t);if(n)return n[r]},hQ=(e,t,n)=>{const r=iv(e,n);return r!==void 0?r:iv(t,n)},F7=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):F7(e[r],t[r],n):e[r]=t[r]);return e},Tc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var vQ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const bQ=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>vQ[t]):e;class yQ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const SQ=[" ",",","?","!",";"],wQ=new yQ(20),CQ=(e,t,n)=>{t=t||"",n=n||"";const r=SQ.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=wQ.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},yI=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o-1&&ce&&e.indexOf("_")>0?e.replace("_","-"):e;class $k extends ub{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const c=iv(this.data,s);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),c||!i||typeof r!="string"?c:yI(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),_k(this.data,s,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let c=iv(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?F7(c,r,o):c={...c,...r},_k(this.data,s,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var j7={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,a))}),t}};const Ok={};class lv extends ub{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),pQ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=oi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!CQ(t,r,a);if(i&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${C}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${C}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let p=f&&f.res;const g=f&&f.usedKey||i,v=f&&f.exactUsedKey||i,m=Object.prototype.toString.apply(p),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&h.indexOf(m)<0&&!(typeof y=="string"&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,{...n,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=C,f.usedParams=this.getUsedParamsDetails(n),f):C}if(o){const C=Array.isArray(p),x=C?[]:{},E=C?v:g;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const R=`${E}${o}${I}`;x[I]=this.translate(R,{...n,joinArrays:!1,ns:s}),x[I]===R&&(x[I]=p[I])}p=x}}else if(b&&typeof y=="string"&&Array.isArray(p))p=p.join(y),p&&(p=this.extendTranslation(p,t,n,r));else{let C=!1,x=!1;const E=n.count!==void 0&&typeof n.count!="string",I=lv.hasDefaultValue(n),R=E?this.pluralResolver.getSuffix(u,n.count,n):"",T=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${T}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(C=!0,p=$),this.isValidLookup(p)||(x=!0,p=i);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:p,A=I&&$!==p&&this.options.updateMissing;if(x||C||A){if(this.logger.log(A?"updateKey":"missingKey",u,c,i,A?$:p),o){const M=this.resolve(i,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("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 O=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let M=0;M{const j=I&&F!==p?F:P;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,L,j,A,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,c,L,j,A,n),this.emit("missingKey",M,c,L,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?O.forEach(M=>{const L=this.pluralResolver.getSuffixes(M,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(F=>{N([M],i+F,n[`defaultValue${F}`]||$)})}):N(O,i,$))}p=this.extendTranslation(p,t,n,f,r),x&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${i}`),(x||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,C?p:void 0):p=this.options.parseMissingKeyHandler(p))}return a?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||a.usedLng,r),u){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;a=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",g=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(h=>{this.isValidLookup(r)||(s=h,!Ok[`${m[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ok[`${m[0]}-${h}`]=!0,this.logger.warn(`key "${a}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"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!!!")),m.forEach(y=>{if(this.isValidLookup(r))return;i=y;const b=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,d,y,h,n);else{let C;p&&(C=this.pluralResolver.getSuffix(y,n.count,n));const x=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(b.push(d+C),n.ordinal&&C.indexOf(E)===0&&b.push(d+C.replace(E,this.options.pluralSeparator)),g&&b.push(d+x)),v){const I=`${d}${this.options.contextSeparator}${n.context}`;b.push(I),p&&(b.push(I+C),n.ordinal&&C.indexOf(E)===0&&b.push(I+C.replace(E,this.options.pluralSeparator)),g&&b.push(I+x))}}let S;for(;S=b.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(y,h,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const _y=e=>e.charAt(0).toUpperCase()+e.slice(1);class Nk{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oi.create("languageUtils")}getScriptPartFromCode(t){if(t=sv(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=sv(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(a=>a.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=_y(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=_y(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=_y(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let xQ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],EQ={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const IQ=["v1","v2","v3"],TQ=["v4"],kk={zero:0,one:1,two:2,few:3,many:4,other:5},RQ=()=>{const e={};return xQ.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:EQ[t.fc]}})}),e};class _Q{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=oi.create("pluralResolver"),(!this.options.compatibilityJSON||TQ.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=RQ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(sv(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((a,o)=>kk[a]-kk[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):r.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!IQ.includes(this.options.compatibilityJSON)}}const Ak=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=hQ(e,t,n);return!o&&a&&typeof n=="string"&&(o=yI(e,n,r),o===void 0&&(o=yI(t,n,r))),o},$y=e=>e.replace(/\$/g,"$$$$");class $Q{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:v,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:bQ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?Tc(o):i||"{{",this.suffix=s?Tc(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?Tc(p):g||Tc("$t("),this.nestingSuffix=v?Tc(v):m||Tc(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,i,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const y=Ak(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...a,...n,interpolationkey:g}):y}const v=g.split(this.formatSeparator),m=v.shift().trim(),h=v.join(this.formatSeparator).trim();return this.format(Ak(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...a,...n,interpolationkey:m})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>$y(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?$y(this.escape(g)):$y(g)}].forEach(g=>{for(s=0;o=g.regex.exec(t);){const v=o[1].trim();if(i=u(v),i===void 0)if(typeof d=="function"){const h=d(t,o,a);i=typeof h=="string"?h:""}else if(a&&Object.prototype.hasOwnProperty.call(a,v))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Ik(i));const m=g.safeValue(i);if(t=t.replace(o[0],m),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,i);const g=p.match(/'/g),v=p.match(/"/g);(g&&g.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{i=JSON.parse(p),u&&(i={...u,...i})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,m),`${c}${d}${p}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,a[1].trim(),i),i),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Ik(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const OQ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[s,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Rc=e=>{const t={};return(n,r,a)=>{const o=r+JSON.stringify(a);let i=t[o];return i||(i=e(sv(r),a),t[o]=i),i(n)}};class NQ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oi.create("formatter"),this.options=t,this.formats={number:Rc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:Rc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:Rc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:Rc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:Rc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Rc(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=OQ(c);if(this.formats[u]){let f=s;try{const p=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=p.locale||p.lng||a.locale||a.lng||r;f=this.formats[u](s,g,{...d,...a,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const kQ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class AQ extends ub{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=oi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?i[p]===void 0&&(i[p]=!0):(this.state[p]=1,d=!1,i[p]===void 0&&(i[p]=!0),o[p]===void 0&&(o[p]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const s={};this.queue.forEach(c=>{mQ(c.loaded,[o],i),kQ(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&a{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,s),this.loaded(t,i,s)})}saveMissing(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"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(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,a,c):d=u(t,n,r,a),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,a,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const Mk=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Dk=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),om=()=>{},MQ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class sp extends ub{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Dk(t),this.services={},this.logger=oi,this.modules={external:[]},MQ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=Mk();this.options={...a,...this.options,...Dk(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?oi.init(o(this.modules.logger),this.options):oi.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=NQ);const f=new Nk(this.options);this.store=new $k(this.options.resources,this.options);const p=this.services;p.logger=oi,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new _Q(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new $Q(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new AQ(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(g){for(var v=arguments.length,m=new Array(v>1?v-1:0),h=1;h1?v-1:0),h=1;h{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=om),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Md(),u=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:om;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=Md();return t||(t=this.languages),n||(n=this.options.ns),r||(r=om),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&j7.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=Md();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const o=function(i,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${p}${v}`):g=c.keyPrefix?`${c.keyPrefix}${p}${i}`:i,a.t(g,c)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=Md();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Md();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Nk(Mk());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new sp(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:om;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new sp(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new $k(this.store.data,a),o.services.resourceStore=o.store),o.translator=new lv(o.services,a),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d{console!=null&&console.warn&&(Dl(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Pk={},SI=(...e)=>{Dl(e[0])&&Pk[e[0]]||(Dl(e[0])&&(Pk[e[0]]=new Date),DQ(...e))},B7=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Lk=(e,t,n)=>{e.loadNamespaces(t,B7(e,n))},Fk=(e,t,n,r)=>{Dl(n)&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,B7(e,r))},PQ=(e,t,n={})=>!t.languages||!t.languages.length?(SI("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),Dl=e=>typeof e=="string",LQ=e=>typeof e=="object"&&e!==null,FQ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,jQ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},BQ=e=>jQ[e],zQ=e=>e.replace(FQ,BQ);let wI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:zQ};const HQ=(e={})=>{wI={...wI,...e}},UQ=()=>wI;let z7;const VQ=e=>{z7=e},WQ=()=>z7,GQ={type:"3rdParty",init(e){HQ(e.options.react),VQ(e)}},qQ=l.createContext();class KQ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const YQ=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current},H7=(e,t,n,r)=>e.getFixedT(t,n,r),XQ=(e,t,n,r)=>l.useCallback(H7(e,t,n,r),[e,t,n,r]),Ht=(e,t={})=>{var C,x,E,I;const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(qQ)||{},o=n||r||WQ();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new KQ),!o){SI("You will need to pass in an i18next instance by using initReactI18next");const R=(_,$)=>Dl($)?$:LQ($)&&Dl($.defaultValue)?$.defaultValue:Array.isArray(_)?_[_.length-1]:_,T=[R,{},!1];return T.t=R,T.i18n={},T.ready=!1,T}(C=o.options.react)!=null&&C.wait&&SI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...UQ(),...o.options.react,...t},{useSuspense:s,keyPrefix:c}=i;let u=a||((x=o.options)==null?void 0:x.defaultNS);u=Dl(u)?[u]:u||["translation"],(I=(E=o.reportNamespaces).addUsedNamespaces)==null||I.call(E,u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(R=>PQ(R,o,i)),f=XQ(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),p=()=>f,g=()=>H7(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[v,m]=l.useState(p);let h=u.join();t.lng&&(h=`${t.lng}${h}`);const y=YQ(h),b=l.useRef(!0);l.useEffect(()=>{const{bindI18n:R,bindI18nStore:T}=i;b.current=!0,!d&&!s&&(t.lng?Fk(o,t.lng,u,()=>{b.current&&m(g)}):Lk(o,u,()=>{b.current&&m(g)})),d&&y&&y!==h&&b.current&&m(g);const _=()=>{b.current&&m(g)};return R&&(o==null||o.on(R,_)),T&&(o==null||o.store.on(T,_)),()=>{b.current=!1,o&&(R==null||R.split(" ").forEach($=>o.off($,_))),T&&o&&T.split(" ").forEach($=>o.store.off($,_))}},[o,h]),l.useEffect(()=>{b.current&&d&&m(p)},[o,c,d]);const S=[v,o,d];if(S.t=v,S.i18n=o,S.ready=d,d||!d&&!s)return S;throw new Promise(R=>{t.lng?Fk(o,t.lng,u,()=>R()):Lk(o,u,()=>R())})};function CI(e){"@babel/helpers - typeof";return CI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CI(e)}function U7(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":CI(XMLHttpRequest))==="object"}function ZQ(e){return!!e&&typeof e.then=="function"}function QQ(e){return ZQ(e)?e:Promise.resolve(e)}function JQ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xI={exports:{}},im={exports:{}},jk;function eJ(){return jk||(jk=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ra<"u"&&ra,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(O){return O&&DataView.prototype.isPrototypeOf(O)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(O){return O&&d.indexOf(Object.prototype.toString.call(O))>-1};function p(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function g(O){return typeof O!="string"&&(O=String(O)),O}function v(O){var k={next:function(){var N=O.shift();return{done:N===void 0,value:N}}};return c.iterable&&(k[Symbol.iterator]=function(){return k}),k}function m(O){this.map={},O instanceof m?O.forEach(function(k,N){this.append(N,k)},this):Array.isArray(O)?O.forEach(function(k){this.append(k[0],k[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(k){this.append(k,O[k])},this)}m.prototype.append=function(O,k){O=p(O),k=g(k);var N=this.map[O];this.map[O]=N?N+", "+k:k},m.prototype.delete=function(O){delete this.map[p(O)]},m.prototype.get=function(O){return O=p(O),this.has(O)?this.map[O]:null},m.prototype.has=function(O){return this.map.hasOwnProperty(p(O))},m.prototype.set=function(O,k){this.map[p(O)]=g(k)},m.prototype.forEach=function(O,k){for(var N in this.map)this.map.hasOwnProperty(N)&&O.call(k,this.map[N],N,this)},m.prototype.keys=function(){var O=[];return this.forEach(function(k,N){O.push(N)}),v(O)},m.prototype.values=function(){var O=[];return this.forEach(function(k){O.push(k)}),v(O)},m.prototype.entries=function(){var O=[];return this.forEach(function(k,N){O.push([N,k])}),v(O)},c.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function h(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function y(O){return new Promise(function(k,N){O.onload=function(){k(O.result)},O.onerror=function(){N(O.error)}})}function b(O){var k=new FileReader,N=y(k);return k.readAsArrayBuffer(O),N}function S(O){var k=new FileReader,N=y(k);return k.readAsText(O),N}function C(O){for(var k=new Uint8Array(O),N=new Array(k.length),M=0;M-1?k:O}function T(O,k){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k=k||{};var N=k.body;if(O instanceof T){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,k.headers||(this.headers=new m(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!N&&O._bodyInit!=null&&(N=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=k.credentials||this.credentials||"same-origin",(k.headers||!this.headers)&&(this.headers=new m(k.headers)),this.method=R(k.method||this.method||"GET"),this.mode=k.mode||this.mode||null,this.signal=k.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(k.cache==="no-store"||k.cache==="no-cache")){var M=/([?&])_=[^&]*/;if(M.test(this.url))this.url=this.url.replace(M,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function _(O){var k=new FormData;return O.trim().split("&").forEach(function(N){if(N){var M=N.split("="),L=M.shift().replace(/\+/g," "),F=M.join("=").replace(/\+/g," ");k.append(decodeURIComponent(L),decodeURIComponent(F))}}),k}function $(O){var k=new m,N=O.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(M){return M.indexOf(` `)===0?M.substr(1,M.length):M}).forEach(function(M){var L=M.split(":"),F=L.shift().trim();if(F){var j=L.join(":").trim();k.append(F,j)}}),k}E.call(T.prototype);function D(O,k){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k||(k={}),this.type="default",this.status=k.status===void 0?200:k.status,this.ok=this.status>=200&&this.status<300,this.statusText=k.statusText===void 0?"":""+k.statusText,this.headers=new m(k.headers),this.url=k.url||"",this._initBody(O)}E.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},D.error=function(){var O=new D(null,{status:0,statusText:""});return O.type="error",O};var P=[301,302,303,307,308];D.redirect=function(O,k){if(P.indexOf(k)===-1)throw new RangeError("Invalid status code");return new D(null,{status:k,headers:{location:O}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(k,N){this.message=k,this.name=N;var M=Error(k);this.stack=M.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function A(O,k){return new Promise(function(N,M){var L=new T(O,k);if(L.signal&&L.signal.aborted)return M(new i.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function j(){F.abort()}F.onload=function(){var z={status:F.status,statusText:F.statusText,headers:$(F.getAllResponseHeaders()||"")};z.url="responseURL"in F?F.responseURL:z.headers.get("X-Request-URL");var H="response"in F?F.response:F.responseText;setTimeout(function(){N(new D(H,z))},0)},F.onerror=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},F.ontimeout=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},F.onabort=function(){setTimeout(function(){M(new i.DOMException("Aborted","AbortError"))},0)};function B(z){try{return z===""&&s.location.href?s.location.href:z}catch{return z}}F.open(L.method,B(L.url),!0),L.credentials==="include"?F.withCredentials=!0:L.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&(c.blob?F.responseType="blob":c.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(F.responseType="arraybuffer")),k&&typeof k.headers=="object"&&!(k.headers instanceof m)?Object.getOwnPropertyNames(k.headers).forEach(function(z){F.setRequestHeader(z,g(k.headers[z]))}):L.headers.forEach(function(z,H){F.setRequestHeader(H,z)}),L.signal&&(L.signal.addEventListener("abort",j),F.onreadystatechange=function(){F.readyState===4&&L.signal.removeEventListener("abort",j)}),F.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}return A.polyfill=!0,s.fetch||(s.fetch=A,s.Headers=m,s.Request=T,s.Response=D),i.Headers=m,i.Request=T,i.Response=D,i.fetch=A,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=n.fetch?n:r;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(im,im.exports)),im.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof ra<"u"&&ra.fetch?n=ra.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof JQ<"u"&&typeof window>"u"){var r=n||eJ();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(xI,xI.exports);var V7=xI.exports;const W7=fa(V7),Bk=OR({__proto__:null,default:W7},[V7]);function zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hk(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=Hk({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},Vk?{}:i),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Uk(n,s,a,c)}catch(u){if(!i||Object.keys(i).length===0||!u.message||u.message.indexOf("not implemented")<0)return a(u);try{Object.keys(i).forEach(function(d){delete s[d]}),Uk(n,s,a,c),Vk=!0}catch(d){a(d)}}},oJ=function(t,n,r,a){r&&ql(r)==="object"&&(r=EI("",r).slice(1)),t.queryStringParams&&(n=EI(n,t.queryStringParams));try{var o;lp?o=new lp:o=new cv("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&a(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},iJ=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Fi&&n.indexOf("file:")!==0)return aJ(t,n,r,a);if(U7()||typeof ActiveXObject=="function")return oJ(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function ku(e){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}function Wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};sJ(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return cJ(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Oy(Oy(Oy({},dJ()),this.options||{}),a),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);ku(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,o,i){var s=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=QQ(c),c.then(function(u){if(!u)return i(null,{});var d=s.services.interpolator.interpolate(u,{lng:n.join("+"),ns:a.join("+")});s.loadUrl(d,i,r,o)})}},{key:"loadUrl",value:function(n,r,a,o){var i=this,s=typeof a=="string"?[a]:a,c=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(s,c);this.options.request(this.options,n,u,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&d&&d.message&&d.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+d.message,!0);if(d)return r(d,!1);var p,g;try{typeof f.data=="string"?p=i.options.parse(f.data,a,o):p=f.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,p)})}},{key:"create",value:function(n,r,a,o,i){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,o),u=0,d=[],f=[];n.forEach(function(p){var g=s.options.addPath;typeof s.options.addPath=="function"&&(g=s.options.addPath(p,r));var v=s.services.interpolator.interpolate(g,{lng:p,ns:r});s.options.request(s.options,v,c,function(m,h){u+=1,d.push(m),f.push(h),u===n.length&&typeof i=="function"&&i(d,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,o=r.languageUtils,i=r.logger,s=a.language;if(!(s&&s.toLowerCase()==="cimode")){var c=[],u=function(f){var p=o.toResolveHierarchy(f);p.forEach(function(g){c.indexOf(g)<0&&c.push(g)})};u(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),c.forEach(function(d){n.allOptions.ns.forEach(function(f){a.read(d,f,"read",null,null,function(p,g){p&&i.warn("loading namespace ".concat(f," for language ").concat(d," failed"),p),!p&&g&&i.log("loaded namespace ".concat(f," for language ").concat(d),g),a.loaded("".concat(d,"|").concat(f),p,g)})})})}}}])}();K7.type="backend";const{slice:fJ,forEach:pJ}=[];function gJ(e){return pJ.call(fJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const Gk=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,mJ=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!Gk.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!Gk.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},qk={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=mJ(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let s=0;s0&&i[s].substring(0,c)===t&&(n=i[s].substring(c+1))}}return n}};let Pd=null;const Kk=()=>{if(Pd!==null)return Pd;try{Pd=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Pd=!1}return Pd};var bJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Kk())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Kk()&&window.localStorage.setItem(n,e)}};let Ld=null;const Yk=()=>{if(Ld!==null)return Ld;try{Ld=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ld=!1}return Ld};var yJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Yk())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Yk()&&window.sessionStorage.setItem(n,e)}},SJ={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o0?t:void 0}},wJ={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},CJ={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},xJ={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function EJ(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class Y7{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=gJ(n,this.options||{},EJ()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(hJ),this.addDetector(vJ),this.addDetector(bJ),this.addDetector(yJ),this.addDetector(SJ),this.addDetector(wJ),this.addDetector(CJ),this.addDetector(xJ)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Y7.type="languageDetector";Yr.use(K7).use(Y7).use(GQ).init({supportedLngs:["en","de","fr"],fallbackLng:"en",ns:["teddycloud"],defaultNS:"teddycloud",debug:!1,backend:{queryStringParams:{v:"2023072701"},loadPath:"/web/translations/{{lng}}.json"},interpolation:{escapeValue:!1}});var X7={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return le.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(sr(r)):Ef.isFragment(r)&&r.props?n=n.concat(sr(r.props.children,t)):n.push(r))}),n}var II={},_J=function(t){};function $J(e,t){}function OJ(e,t){}function NJ(){II={}}function J7(e,t,n){!t&&!II[n]&&(e(!1,n),II[n]=!0)}function pn(e,t){J7($J,e,t)}function ez(e,t){J7(OJ,e,t)}pn.preMessage=_J;pn.resetWarned=NJ;pn.noteOnce=ez;function ht(e){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(e)}function kJ(e,t){if(ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tz(e){var t=kJ(e,"string");return ht(t)=="symbol"?t:t+""}function V(e,t,n){return(t=tz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t=19;var RI=l.createContext(null);function MJ(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(RI),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;a.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,c,u)},[n,o]);return l.createElement(RI.Provider,{value:i},t)}var rz=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!_I||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),BJ?(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(){!_I||!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 n=t.propertyName,r=n===void 0?"":n,a=jJ.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),az=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Au(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new YJ(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 Au(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.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(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new XJ(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),iz=typeof WeakMap<"u"?new WeakMap:new rz,sz=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 n=zJ.getInstance(),r=new ZJ(t,n,this);iz.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){sz.prototype[e]=function(){var t;return(t=iz.get(this))[e].apply(t,arguments)}});var QJ=function(){return typeof uv.ResizeObserver<"u"?uv.ResizeObserver:sz}(),ws=new Map;function JJ(e){e.forEach(function(t){var n,r=t.target;(n=ws.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var lz=new QJ(JJ);function eee(e,t){ws.has(e)||(ws.set(e,new Set),lz.observe(e)),ws.get(e).add(t)}function tee(e,t){ws.has(e)&&(ws.get(e).delete(t),ws.get(e).size||(lz.unobserve(e),ws.delete(e)))}function Dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qk(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Jk+=1;var r=Jk;function a(o){if(o===0)pz(r),t();else{var i=dz(function(){a(o-1)});__.set(r,i)}}return a(n),r};Bt.cancel=function(e){var t=__.get(e);return pz(e),fz(t)};function gz(e){if(Array.isArray(e))return e}function cee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function mz(){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 ie(e,t){return gz(e)||cee(e,t)||R_(e,t)||mz()}function fp(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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)}function Dr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function OI(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var eA="data-rc-order",tA="data-rc-priority",uee="rc-util-key",NI=new Map;function hz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uee}function xb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dee(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $_(e){return Array.from((NI.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function vz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Dr())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=dee(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(eA,i),s&&o&&c.setAttribute(tA,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=xb(t),d=u.firstChild;if(r){if(s){var f=(t.styles||$_(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(eA)))return!1;var g=Number(p.getAttribute(tA)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function bz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xb(t);return(t.styles||$_(n)).find(function(r){return r.getAttribute(hz(t))===e})}function pp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bz(e,t);if(n){var r=xb(t);r.removeChild(n)}}function fee(e,t){var n=NI.get(e);if(!n||!OI(document,n)){var r=vz("",t),a=r.parentNode;NI.set(e,a),e.removeChild(r)}}function ji(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=xb(n),a=$_(r),o=K(K({},n),{},{styles:a});fee(r,o);var i=bz(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=vz(e,o);return d.setAttribute(hz(o),t),d}function pee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function xt(e,t){if(e==null)return{};var n,r,a=pee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(pn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=ie(u,2),p=f[1];return a.internalGet(d)[1]0,void 0),nA+=1}return Pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),Ny=new O_;function gp(e){var t=Array.isArray(e)?e:[e];return Ny.has(t)||Ny.set(t,new yz(t)),Ny.get(t)}var bee=new WeakMap,ky={};function yee(e,t){for(var n=bee,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=rA.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof yz?n+=a.id:a&&ht(a)==="object"?n+=Tf(a,t):n+=a}),t&&(n=fp(n)),rA.set(e,n)),n}function aA(e,t){return fp("".concat(t,"_").concat(Tf(e,!0)))}var AI=Dr();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function fv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=K(K({},r),{},V(V({},Mu,t),Fo,n)),i=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var gh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").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()},See=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ie(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Sz=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,u=ie(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var p,g=gh(d,r==null?void 0:r.prefix);a[g]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,See(a,n,{scope:r==null?void 0:r.scope})]},oA=Dr()?l.useLayoutEffect:l.useEffect,qt=function(t,n){var r=l.useRef(!0);oA(function(){return t(r.current)},n),oA(function(){return r.current=!1,function(){r.current=!0}},[])},Pl=function(t,n){qt(function(r){if(!r)return t()},n)},wee=K({},Kp),iA=wee.useInsertionEffect,Cee=function(t,n,r){l.useMemo(t,r),qt(function(){return n(!0)},r)},xee=iA?function(e,t,n){return iA(function(){return e(),t()},n)}:Cee,Eee=K({},Kp),Iee=Eee.useInsertionEffect,Tee=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Ree=function(){return function(t){t()}},_ee=typeof Iee<"u"?Tee:Ree;function N_(e,t,n,r,a){var o=l.useContext(Eb),i=o.cache,s=[e].concat(Oe(t)),c=kI(s),u=_ee([c]),d=function(v){i.opUpdate(c,function(m){var h=m||[void 0,void 0],y=ie(h,2),b=y[0],S=b===void 0?0:b,C=y[1],x=C,E=x||n(),I=[S,E];return v?v(I):I})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),p=f[1];return xee(function(){a==null||a(p)},function(g){return d(function(v){var m=ie(v,2),h=m[0],y=m[1];return g&&h===0&&(a==null||a(p)),[h+1,y]}),function(){i.opUpdate(c,function(v){var m=v||[],h=ie(m,2),y=h[0],b=y===void 0?0:y,S=h[1],C=b-1;return C===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(S,!1))}),null):[b-1,S]})}},[c]),p}var $ee={},Oee="css",yl=new Map;function Nee(e){yl.set(e,(yl.get(e)||0)+1)}function kee(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Mu,'="').concat(e,'"]'));n.forEach(function(r){if(r[Cs]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Aee=0;function Mee(e,t){yl.set(e,(yl.get(e)||0)-1);var n=Array.from(yl.keys()),r=n.filter(function(a){var o=yl.get(a)||0;return o<=0});n.length-r.length>Aee&&r.forEach(function(a){kee(a,t),yl.delete(a)})}var wz=function(t,n,r,a){var o=r.getDerivativeToken(t),i=K(K({},o),n);return a&&(i=a(i)),i},Cz="token";function Dee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(Eb),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?$ee:c,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,g=yee(function(){return Object.assign.apply(Object,[{}].concat(Oe(t)))},t),v=Tf(g),m=Tf(u),h=p?Tf(p):"",y=N_(Cz,[s,e.id,v,m,h],function(){var b,S=f?f(g,u,e):wz(g,u,e,d),C=K({},S),x="";if(p){var E=Sz(S,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),I=ie(E,2);S=I[0],x=I[1]}var R=aA(S,s);S._tokenKey=R,C._tokenKey=aA(C,s);var T=(b=p==null?void 0:p.key)!==null&&b!==void 0?b:R;S._themeKey=T,Nee(T);var _="".concat(Oee,"-").concat(fp(R));return S._hashId=_,[S,_,C,x,(p==null?void 0:p.key)||""]},function(b){Mee(b[0]._themeKey,a)},function(b){var S=ie(b,4),C=S[0],x=S[3];if(p&&x){var E=ji(x,fp("css-variables-".concat(C._themeKey)),{mark:Fo,prepend:"queue",attachTo:o,priority:-999});E[Cs]=a,E.setAttribute(Mu,C._themeKey)}});return y}var Pee=function(t,n,r){var a=ie(t,5),o=a[2],i=a[3],s=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=fv(i,s,d,p,u);return[f,d,g]},Lee={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},Hn="-ms-",Rf="-moz-",Sn="-webkit-",xz="comm",Ib="rule",k_="decl",Fee="@import",Ez="@keyframes",jee="@layer",Iz=Math.abs,A_=String.fromCharCode,MI=Object.assign;function Bee(e,t){return Nr(e,0)^45?(((t<<2^Nr(e,0))<<2^Nr(e,1))<<2^Nr(e,2))<<2^Nr(e,3):0}function Tz(e){return e.trim()}function _i(e,t){return(e=t.exec(e))?e[0]:e}function an(e,t,n){return e.replace(t,n)}function mh(e,t,n){return e.indexOf(t,n)}function Nr(e,t){return e.charCodeAt(t)|0}function Du(e,t,n){return e.slice(t,n)}function ei(e){return e.length}function Rz(e){return e.length}function tf(e,t){return t.push(e),e}function zee(e,t){return e.map(t).join("")}function sA(e,t){return e.filter(function(n){return!_i(n,t)})}var Tb=1,Pu=1,_z=0,ho=0,gr=0,ed="";function Rb(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Tb,column:Pu,length:i,return:"",siblings:s}}function cs(e,t){return MI(Rb("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _c(e){for(;e.root;)e=cs(e.root,{children:[e]});tf(e,e.siblings)}function Hee(){return gr}function Uee(){return gr=ho>0?Nr(ed,--ho):0,Pu--,gr===10&&(Pu=1,Tb--),gr}function jo(){return gr=ho<_z?Nr(ed,ho++):0,Pu++,gr===10&&(Pu=1,Tb++),gr}function Ll(){return Nr(ed,ho)}function hh(){return ho}function _b(e,t){return Du(ed,e,t)}function DI(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vee(e){return Tb=Pu=1,_z=ei(ed=e),ho=0,[]}function Wee(e){return ed="",e}function Ay(e){return Tz(_b(ho-1,PI(e===91?e+2:e===40?e+1:e)))}function Gee(e){for(;(gr=Ll())&&gr<33;)jo();return DI(e)>2||DI(gr)>3?"":" "}function qee(e,t){for(;--t&&jo()&&!(gr<48||gr>102||gr>57&&gr<65||gr>70&&gr<97););return _b(e,hh()+(t<6&&Ll()==32&&jo()==32))}function PI(e){for(;jo();)switch(gr){case e:return ho;case 34:case 39:e!==34&&e!==39&&PI(gr);break;case 40:e===41&&PI(e);break;case 92:jo();break}return ho}function Kee(e,t){for(;jo()&&e+gr!==57;)if(e+gr===84&&Ll()===47)break;return"/*"+_b(t,ho-1)+"*"+A_(e===47?e:jo())}function Yee(e){for(;!DI(Ll());)jo();return _b(e,ho)}function $z(e){return Wee(vh("",null,null,null,[""],e=Vee(e),0,[0],e))}function vh(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,f=i,p=0,g=0,v=0,m=1,h=1,y=1,b=0,S="",C=a,x=o,E=r,I=S;h;)switch(v=b,b=jo()){case 40:if(v!=108&&Nr(I,f-1)==58){mh(I+=an(Ay(b),"&","&\f"),"&\f",Iz(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:I+=Ay(b);break;case 9:case 10:case 13:case 32:I+=Gee(v);break;case 92:I+=qee(hh()-1,7);continue;case 47:switch(Ll()){case 42:case 47:tf(Xee(Kee(jo(),hh()),t,n,c),c);break;default:I+="/"}break;case 123*m:s[u++]=ei(I)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+d:y==-1&&(I=an(I,/\f/g,"")),g>0&&ei(I)-f&&tf(g>32?cA(I+";",r,n,f-1,c):cA(an(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(tf(E=lA(I,t,n,u,d,a,s,S,C=[],x=[],f,o),o),b===123)if(d===0)vh(I,t,E,E,C,o,f,s,x);else switch(p===99&&Nr(I,3)===110?100:p){case 100:case 108:case 109:case 115:vh(e,E,E,r&&tf(lA(e,E,E,0,0,a,s,S,a,C=[],f,x),x),a,x,f,s,r?C:x);break;default:vh(I,E,E,E,[""],x,0,s,x)}}u=d=g=0,m=y=1,S=I="",f=i;break;case 58:f=1+ei(I),g=v;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Uee()==125)continue}switch(I+=A_(b),b*m){case 38:y=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(ei(I)-1)*y,y=1;break;case 64:Ll()===45&&(I+=Ay(jo())),p=Ll(),d=f=ei(S=I+=Yee(hh())),b++;break;case 45:v===45&&ei(I)==2&&(m=0)}}return o}function lA(e,t,n,r,a,o,i,s,c,u,d,f){for(var p=a-1,g=a===0?o:[""],v=Rz(g),m=0,h=0,y=0;m0?g[b]+" "+S:an(S,/&\f/g,g[b])))&&(c[y++]=C);return Rb(e,t,n,a===0?Ib:s,c,u,d,f)}function Xee(e,t,n,r){return Rb(e,t,n,xz,A_(Hee()),Du(e,2,-2),0,r)}function cA(e,t,n,r,a){return Rb(e,t,n,k_,Du(e,0,r),Du(e,r+1,-1),r,a)}function Oz(e,t,n){switch(Bee(e,t)){case 5103:return Sn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Sn+e+e;case 4789:return Rf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Sn+e+Rf+e+Hn+e+e;case 5936:switch(Nr(e,t+11)){case 114:return Sn+e+Hn+an(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sn+e+Hn+an(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sn+e+Hn+an(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Sn+e+Hn+e+e;case 6165:return Sn+e+Hn+"flex-"+e+e;case 5187:return Sn+e+an(e,/(\w+).+(:[^]+)/,Sn+"box-$1$2"+Hn+"flex-$1$2")+e;case 5443:return Sn+e+Hn+"flex-item-"+an(e,/flex-|-self/g,"")+(_i(e,/flex-|baseline/)?"":Hn+"grid-row-"+an(e,/flex-|-self/g,""))+e;case 4675:return Sn+e+Hn+"flex-line-pack"+an(e,/align-content|flex-|-self/g,"")+e;case 5548:return Sn+e+Hn+an(e,"shrink","negative")+e;case 5292:return Sn+e+Hn+an(e,"basis","preferred-size")+e;case 6060:return Sn+"box-"+an(e,"-grow","")+Sn+e+Hn+an(e,"grow","positive")+e;case 4554:return Sn+an(e,/([^-])(transform)/g,"$1"+Sn+"$2")+e;case 6187:return an(an(an(e,/(zoom-|grab)/,Sn+"$1"),/(image-set)/,Sn+"$1"),e,"")+e;case 5495:case 3959:return an(e,/(image-set\([^]*)/,Sn+"$1$`$1");case 4968:return an(an(e,/(.+:)(flex-)?(.*)/,Sn+"box-pack:$3"+Hn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sn+e+e;case 4200:if(!_i(e,/flex-|baseline/))return Hn+"grid-column-align"+Du(e,t)+e;break;case 2592:case 3360:return Hn+an(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,_i(r.props,/grid-\w+-end/)})?~mh(e+(n=n[t].value),"span",0)?e:Hn+an(e,"-start","")+e+Hn+"grid-row-span:"+(~mh(n,"span",0)?_i(n,/\d+/):+_i(n,/\d+/)-+_i(e,/\d+/))+";":Hn+an(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return _i(r.props,/grid-\w+-start/)})?e:Hn+an(an(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return an(e,/(.+)-inline(.+)/,Sn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ei(e)-1-t>6)switch(Nr(e,t+1)){case 109:if(Nr(e,t+4)!==45)break;case 102:return an(e,/(.+:)(.+)-([^]+)/,"$1"+Sn+"$2-$3$1"+Rf+(Nr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mh(e,"stretch",0)?Oz(an(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return an(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,s,c,u){return Hn+a+":"+o+u+(i?Hn+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(Nr(e,t+6)===121)return an(e,":",":"+Sn)+e;break;case 6444:switch(Nr(e,Nr(e,14)===45?18:11)){case 120:return an(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Sn+(Nr(e,14)===45?"inline-":"")+"box$3$1"+Sn+"$2$3$1"+Hn+"$2box$3")+e;case 100:return an(e,":",":"+Hn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return an(e,"scroll-","scroll-snap-")+e}return e}function mp(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case k_:e.return=Oz(e.value,e.length,n);return;case Ez:return mp([cs(e,{value:an(e.value,"@","@"+Sn)})],r);case Ib:if(e.length)return zee(n=e.props,function(a){switch(_i(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_c(cs(e,{props:[an(a,/:(read-\w+)/,":"+Rf+"$1")]})),_c(cs(e,{props:[a]})),MI(e,{props:sA(n,r)});break;case"::placeholder":_c(cs(e,{props:[an(a,/:(plac\w+)/,":"+Sn+"input-$1")]})),_c(cs(e,{props:[an(a,/:(plac\w+)/,":"+Rf+"$1")]})),_c(cs(e,{props:[an(a,/:(plac\w+)/,Hn+"input-$1")]})),_c(cs(e,{props:[a]})),MI(e,{props:sA(n,r)});break}return""})}}var uA="data-ant-cssinjs-cache-path",kz="_FILE_STYLE__",Fl,Az=!0;function ete(){if(!Fl&&(Fl={},Dr())){var e=document.createElement("div");e.className=uA,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=ie(o,2),s=i[0],c=i[1];Fl[s]=c});var n=document.querySelector("style[".concat(uA,"]"));if(n){var r;Az=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function tte(e){return ete(),!!Fl[e]}function nte(e){var t=Fl[e],n=null;if(t&&Dr())if(Az)n=kz;else{var r=document.querySelector("style[".concat(Fo,'="').concat(Fl[e],'"]'));r?n=r.innerHTML:delete Fl[e]}return[n,t]}var rte="_skip_check_",Mz="_multi_value_";function bh(e){var t=mp($z(e),Nz);return t.replace(/\{%%%\:[^;];}/g,";")}function ate(e){return ht(e)==="object"&&e&&(rte in e||Mz in e)}function ote(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(Oe(c.slice(1))).join(" ")});return o.join(",")}var ite=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",g={};function v(y){var b=y.getName(s);if(!g[b]){var S=e(y.style,n,{root:!1,parentSelectors:i}),C=ie(S,1),x=C[0];g[b]="@keyframes ".concat(y.getName(s)).concat(x)}}function m(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(S){Array.isArray(S)?m(S,b):S&&b.push(S)}),b}var h=m(Array.isArray(t)?t:[t]);return h.forEach(function(y){var b=typeof y=="string"&&!a?{}:y;if(typeof b=="string")p+="".concat(b,` -`);else if(b._keyframe)v(b);else{var S=f.reduce(function(C,x){var E;return(x==null||(E=x.visit)===null||E===void 0?void 0:E.call(x,C))||C},b);Object.keys(S).forEach(function(C){var x=S[C];if(ht(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!ate(x)){var E=!1,I=C.trim(),R=!1;(a||o)&&s?I.startsWith("@")?E=!0:I=ote(C,s,u):a&&!s&&(I==="&"||I==="")&&(I="",R=!0);var T=e(x,n,{root:R,injectHash:E,parentSelectors:[].concat(Oe(i),[I])}),_=ie(T,2),$=_[0],D=_[1];g=K(K({},g),D),p+="".concat(I).concat($)}else{let O=function(k,N){var M=k.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),L=N;!Lee[k]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),k==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(v(N),L=N.getName(s)),p+="".concat(M,":").concat(L,";")};var P,A=(P=x==null?void 0:x.value)!==null&&P!==void 0?P:x;ht(x)==="object"&&x!==null&&x!==void 0&&x[Mz]&&Array.isArray(A)?A.forEach(function(k){O(C,k)}):O(C,A)}})}}),a?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(c.name,";")}).join(` -`))):p="{".concat(p,"}"),[p,g]};function Dz(e,t){return fp("".concat(e.join("%")).concat(t))}function ste(){return null}var Pz="style";function LI(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(Eb),f=d.autoClear;d.mock;var p=d.defaultCache,g=d.hashPriority,v=d.container,m=d.ssrInline,h=d.transformers,y=d.linters,b=d.cache,S=d.layer,C=n._tokenKey,x=[C];S&&x.push("layer"),x.push.apply(x,Oe(r));var E=AI,I=N_(Pz,x,function(){var D=x.join("|");if(tte(D)){var P=nte(D),A=ie(P,2),O=A[0],k=A[1];if(O)return[O,C,k,{},s,u]}var N=t(),M=ite(N,{hashId:a,hashPriority:g,layer:S?o:void 0,path:r.join("-"),transformers:h,linters:y}),L=ie(M,2),F=L[0],j=L[1],B=bh(F),z=Dz(x,B);return[B,C,z,j,s,u]},function(D,P){var A=ie(D,3),O=A[2];(P||f)&&AI&&pp(O,{mark:Fo})},function(D){var P=ie(D,4),A=P[0];P[1];var O=P[2],k=P[3];if(E&&A!==kz){var N={mark:Fo,prepend:S?!1:"queue",attachTo:v,priority:u},M=typeof i=="function"?i():i;M&&(N.csp={nonce:M});var L=[],F=[];Object.keys(k).forEach(function(B){B.startsWith("@layer")?L.push(B):F.push(B)}),L.forEach(function(B){ji(bh(k[B]),"_layer-".concat(B),K(K({},N),{},{prepend:!0}))});var j=ji(A,O,N);j[Cs]=b.instanceId,j.setAttribute(Mu,C),F.forEach(function(B){ji(bh(k[B]),"_effect-".concat(B),N)})}}),R=ie(I,3),T=R[0],_=R[1],$=R[2];return function(D){var P;return!m||E||!p?P=l.createElement(ste,null):P=l.createElement("style",ve({},V(V({},Mu,_),Fo,$),{dangerouslySetInnerHTML:{__html:T}})),l.createElement(l.Fragment,null,P,D)}}var lte=function(t,n,r){var a=ie(t,6),o=a[0],i=a[1],s=a[2],c=a[3],u=a[4],d=a[5],f=r||{},p=f.plain;if(u)return null;var g=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=fv(o,i,s,v,p),c&&Object.keys(c).forEach(function(m){if(!n[m]){n[m]=!0;var h=bh(c[m]),y=fv(h,i,"_effect-".concat(m),v,p);m.startsWith("@layer")?g=y+g:g+=y}}),[d,s,g]},Lz="cssVar",cte=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(Eb),f=d.cache.instanceId,p=d.container,g=s._tokenKey,v=[].concat(Oe(t.path),[r,u,g]),m=N_(Lz,v,function(){var h=n(),y=Sz(h,r,{prefix:a,unitless:o,ignore:i,scope:u}),b=ie(y,2),S=b[0],C=b[1],x=Dz(v,C);return[S,C,x,r]},function(h){var y=ie(h,3),b=y[2];AI&&pp(b,{mark:Fo})},function(h){var y=ie(h,3),b=y[1],S=y[2];if(b){var C=ji(b,S,{mark:Fo,prepend:"queue",attachTo:p,priority:-999});C[Cs]=f,C.setAttribute(Mu,r)}});return m},ute=function(t,n,r){var a=ie(t,4),o=a[1],i=a[2],s=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=fv(o,s,i,f,u);return[d,i,p]};V(V(V({},Pz,lte),Cz,Pee),Lz,ute);var sn=function(){function e(t,n){Dn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return Pn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function $c(e){return e.notSplit=!0,e}$c(["borderTop","borderBottom"]),$c(["borderTop"]),$c(["borderBottom"]),$c(["borderLeft","borderRight"]),$c(["borderLeft"]),$c(["borderRight"]);var M_=l.createContext({});function Fz(e){return gz(e)||uz(e)||R_(e)||mz()}function Ha(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ha(e,t.slice(0,-1))?e:jz(e,t,n,r)}function dte(e){return ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function dA(e){return Array.isArray(e)?[]:{}}var fte=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ou(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=pte,e},Bz=l.createContext(void 0);var zz={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"},mte={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},hte=K(K({},mte),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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"});const Hz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},pv={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"]},hte),timePickerLocale:Object.assign({},Hz)},Aa="${label} is not a valid ${type}",ci={locale:"en",Pagination:zz,DatePicker:pv,TimePicker:Hz,Calendar:pv,global:{placeholder:"Please select"},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:Aa,method:Aa,array:Aa,object:Aa,number:Aa,date:Aa,boolean:Aa,integer:Aa,float:Aa,regexp:Aa,email:Aa,url:Aa,hex:Aa},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"}};let yh=Object.assign({},ci.Modal),Sh=[];const fA=()=>Sh.reduce((e,t)=>Object.assign(Object.assign({},e),t),ci.Modal);function vte(e){if(e){const t=Object.assign({},e);return Sh.push(t),yh=fA(),()=>{Sh=Sh.filter(n=>n!==t),yh=fA()}}yh=Object.assign({},ci.Modal)}function Uz(){return yh}const D_=l.createContext(void 0),mi=(e,t)=>{const n=l.useContext(D_),r=l.useMemo(()=>{var o;const i=t||ci[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ci.locale:o},[n]);return[r,a]},bte="internalMark",yte=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>vte(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(D_.Provider,{value:a},n)};function Vr(e,t){Ste(e)&&(e="100%");var n=wte(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function sm(e){return Math.min(1,Math.max(0,e))}function Ste(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function wte(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Vz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function lm(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xl(e){return e.length===1?"0"+e:String(e)}function Cte(e,t,n){return{r:Vr(e,255)*255,g:Vr(t,255)*255,b:Vr(n,255)*255}}function pA(e,t,n){e=Vr(e,255),t=Vr(t,255),n=Vr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=s>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xte(e,t,n){var r,a,o;if(e=Vr(e,360),t=Vr(t,100),n=Vr(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=My(s,i,e+1/3),a=My(s,i,e),o=My(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function FI(e,t,n){e=Vr(e,255),t=Vr(t,255),n=Vr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,c=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var BI={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wc(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Ote(e)),typeof e=="object"&&(Si(e.r)&&Si(e.g)&&Si(e.b)?(t=Cte(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Si(e.h)&&Si(e.s)&&Si(e.v)?(r=lm(e.s),a=lm(e.v),t=Ete(e.h,r,a),i=!0,s="hsv"):Si(e.h)&&Si(e.s)&&Si(e.l)&&(r=lm(e.s),o=lm(e.l),t=xte(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Vz(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var _te="[-\\+]?\\d+%?",$te="[-\\+]?\\d*\\.\\d+%?",xs="(?:".concat($te,")|(?:").concat(_te,")"),Dy="[\\s|\\(]+(".concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")\\s*\\)?"),Py="[\\s|\\(]+(".concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")\\s*\\)?"),Ro={CSS_UNIT:new RegExp(xs),rgb:new RegExp("rgb"+Dy),rgba:new RegExp("rgba"+Py),hsl:new RegExp("hsl"+Dy),hsla:new RegExp("hsla"+Py),hsv:new RegExp("hsv"+Dy),hsva:new RegExp("hsva"+Py),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ote(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(BI[e])e=BI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ro.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ro.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ro.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ro.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ro.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ro.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ro.hex8.exec(e),n?{r:Da(n[1]),g:Da(n[2]),b:Da(n[3]),a:gA(n[4]),format:t?"name":"hex8"}:(n=Ro.hex6.exec(e),n?{r:Da(n[1]),g:Da(n[2]),b:Da(n[3]),format:t?"name":"hex"}:(n=Ro.hex4.exec(e),n?{r:Da(n[1]+n[1]),g:Da(n[2]+n[2]),b:Da(n[3]+n[3]),a:gA(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ro.hex3.exec(e),n?{r:Da(n[1]+n[1]),g:Da(n[2]+n[2]),b:Da(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Si(e){return!!Ro.CSS_UNIT.exec(String(e))}var un=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Rte(t)),this.originalInput=t;var a=Wc(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Vz(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=FI(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=FI(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pA(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=pA(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),jI(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Ite(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Vr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Vr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+jI(this.r,this.g,this.b,!1),n=0,r=Object.entries(BI);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=sm(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=sm(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=sm(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=sm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-cm*t:Math.round(e.h)+cm*t:r=n?Math.round(e.h)+cm*t:Math.round(e.h)-cm*t,r<0?r+=360:r>=360&&(r-=360),r}function bA(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-mA*t:t===Gz?r=e.s+mA:r=e.s+Nte*t,r>1&&(r=1),n&&t===Wz&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function yA(e,t,n){var r;return n?r=e.v+kte*t:r=e.v-Ate*t,r>1&&(r=1),Number(r.toFixed(2))}function Yl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Wc(e),a=Wz;a>0;a-=1){var o=hA(r),i=um(Wc({h:vA(o,a,!0),s:bA(o,a,!0),v:yA(o,a,!0)}));n.push(i)}n.push(um(r));for(var s=1;s<=Gz;s+=1){var c=hA(r),u=um(Wc({h:vA(c,s),s:bA(c,s),v:yA(c,s)}));n.push(u)}return t.theme==="dark"?Mte.map(function(d){var f=d.index,p=d.opacity,g=um(Dte(Wc(t.backgroundColor||"#141414"),Wc(n[f]),p*100));return g}):n}var bu={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"},zI=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];zI.primary=zI[5];var HI=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];HI.primary=HI[5];var UI=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];UI.primary=UI[5];var gv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gv.primary=gv[5];var VI=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];VI.primary=VI[5];var WI=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];WI.primary=WI[5];var GI=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];GI.primary=GI[5];var qI=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];qI.primary=qI[5];var Lu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Lu.primary=Lu[5];var KI=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];KI.primary=KI[5];var YI=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];YI.primary=YI[5];var XI=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];XI.primary=XI[5];var ZI=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ZI.primary=ZI[5];var Ly={red:zI,volcano:HI,orange:UI,gold:gv,yellow:VI,lime:WI,green:GI,cyan:qI,blue:Lu,geekblue:KI,purple:YI,magenta:XI,grey:ZI};const P_={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"},Fu=Object.assign(Object.assign({},P_),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var I_=Symbol.for("react.element"),T_=Symbol.for("react.portal"),db=Symbol.for("react.fragment"),fb=Symbol.for("react.strict_mode"),pb=Symbol.for("react.profiler"),gb=Symbol.for("react.provider"),mb=Symbol.for("react.context"),TJ=Symbol.for("react.server_context"),hb=Symbol.for("react.forward_ref"),vb=Symbol.for("react.suspense"),bb=Symbol.for("react.suspense_list"),yb=Symbol.for("react.memo"),Sb=Symbol.for("react.lazy"),RJ=Symbol.for("react.offscreen"),Q7;Q7=Symbol.for("react.module.reference");function Co(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case I_:switch(e=e.type,e){case db:case pb:case fb:case vb:case bb:return e;default:switch(e=e&&e.$$typeof,e){case TJ:case mb:case hb:case Sb:case yb:case gb:return e;default:return t}}case T_:return t}}}In.ContextConsumer=mb;In.ContextProvider=gb;In.Element=I_;In.ForwardRef=hb;In.Fragment=db;In.Lazy=Sb;In.Memo=yb;In.Portal=T_;In.Profiler=pb;In.StrictMode=fb;In.Suspense=vb;In.SuspenseList=bb;In.isAsyncMode=function(){return!1};In.isConcurrentMode=function(){return!1};In.isContextConsumer=function(e){return Co(e)===mb};In.isContextProvider=function(e){return Co(e)===gb};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===I_};In.isForwardRef=function(e){return Co(e)===hb};In.isFragment=function(e){return Co(e)===db};In.isLazy=function(e){return Co(e)===Sb};In.isMemo=function(e){return Co(e)===yb};In.isPortal=function(e){return Co(e)===T_};In.isProfiler=function(e){return Co(e)===pb};In.isStrictMode=function(e){return Co(e)===fb};In.isSuspense=function(e){return Co(e)===vb};In.isSuspenseList=function(e){return Co(e)===bb};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===db||e===pb||e===fb||e===vb||e===bb||e===RJ||typeof e=="object"&&e!==null&&(e.$$typeof===Sb||e.$$typeof===yb||e.$$typeof===gb||e.$$typeof===mb||e.$$typeof===hb||e.$$typeof===Q7||e.getModuleId!==void 0)};In.typeOf=Co;Z7.exports=In;var Ef=Z7.exports;function ir(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return le.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ir(r)):Ef.isFragment(r)&&r.props?n=n.concat(ir(r.props.children,t)):n.push(r))}),n}var II={},_J=function(t){};function $J(e,t){}function OJ(e,t){}function NJ(){II={}}function J7(e,t,n){!t&&!II[n]&&(e(!1,n),II[n]=!0)}function pn(e,t){J7($J,e,t)}function ez(e,t){J7(OJ,e,t)}pn.preMessage=_J;pn.resetWarned=NJ;pn.noteOnce=ez;function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function kJ(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tz(e){var t=kJ(e,"string");return mt(t)=="symbol"?t:t+""}function V(e,t,n){return(t=tz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t=19;var RI=l.createContext(null);function MJ(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(RI),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;a.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,c,u)},[n,o]);return l.createElement(RI.Provider,{value:i},t)}var rz=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!_I||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),BJ?(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(){!_I||!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 n=t.propertyName,r=n===void 0?"":n,a=jJ.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),az=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Au(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new YJ(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 Au(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.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(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new XJ(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),iz=typeof WeakMap<"u"?new WeakMap:new rz,sz=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 n=zJ.getInstance(),r=new ZJ(t,n,this);iz.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){sz.prototype[e]=function(){var t;return(t=iz.get(this))[e].apply(t,arguments)}});var QJ=function(){return typeof uv.ResizeObserver<"u"?uv.ResizeObserver:sz}(),ws=new Map;function JJ(e){e.forEach(function(t){var n,r=t.target;(n=ws.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var lz=new QJ(JJ);function eee(e,t){ws.has(e)||(ws.set(e,new Set),lz.observe(e)),ws.get(e).add(t)}function tee(e,t){ws.has(e)&&(ws.get(e).delete(t),ws.get(e).size||(lz.unobserve(e),ws.delete(e)))}function Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qk(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Jk+=1;var r=Jk;function a(o){if(o===0)pz(r),t();else{var i=dz(function(){a(o-1)});__.set(r,i)}}return a(n),r};jt.cancel=function(e){var t=__.get(e);return pz(e),fz(t)};function gz(e){if(Array.isArray(e))return e}function cee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function mz(){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 ie(e,t){return gz(e)||cee(e,t)||R_(e,t)||mz()}function fp(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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)}function Dr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function OI(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var eA="data-rc-order",tA="data-rc-priority",uee="rc-util-key",NI=new Map;function hz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uee}function xb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dee(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $_(e){return Array.from((NI.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function vz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Dr())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=dee(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(eA,i),s&&o&&c.setAttribute(tA,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=xb(t),d=u.firstChild;if(r){if(s){var f=(t.styles||$_(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(eA)))return!1;var g=Number(p.getAttribute(tA)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function bz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xb(t);return(t.styles||$_(n)).find(function(r){return r.getAttribute(hz(t))===e})}function pp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bz(e,t);if(n){var r=xb(t);r.removeChild(n)}}function fee(e,t){var n=NI.get(e);if(!n||!OI(document,n)){var r=vz("",t),a=r.parentNode;NI.set(e,a),e.removeChild(r)}}function ji(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=xb(n),a=$_(r),o=K(K({},n),{},{styles:a});fee(r,o);var i=bz(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=vz(e,o);return d.setAttribute(hz(o),t),d}function pee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function xt(e,t){if(e==null)return{};var n,r,a=pee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(pn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=ie(u,2),p=f[1];return a.internalGet(d)[1]0,void 0),nA+=1}return Fn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),Ny=new O_;function gp(e){var t=Array.isArray(e)?e:[e];return Ny.has(t)||Ny.set(t,new yz(t)),Ny.get(t)}var bee=new WeakMap,ky={};function yee(e,t){for(var n=bee,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=rA.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof yz?n+=a.id:a&&mt(a)==="object"?n+=Tf(a,t):n+=a}),t&&(n=fp(n)),rA.set(e,n)),n}function aA(e,t){return fp("".concat(t,"_").concat(Tf(e,!0)))}var AI=Dr();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function fv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=K(K({},r),{},V(V({},Mu,t),Fo,n)),i=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var gh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").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()},See=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ie(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Sz=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,u=ie(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var p,g=gh(d,r==null?void 0:r.prefix);a[g]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,See(a,n,{scope:r==null?void 0:r.scope})]},oA=Dr()?l.useLayoutEffect:l.useEffect,Wt=function(t,n){var r=l.useRef(!0);oA(function(){return t(r.current)},n),oA(function(){return r.current=!1,function(){r.current=!0}},[])},Pl=function(t,n){Wt(function(r){if(!r)return t()},n)},wee=K({},Kp),iA=wee.useInsertionEffect,Cee=function(t,n,r){l.useMemo(t,r),Wt(function(){return n(!0)},r)},xee=iA?function(e,t,n){return iA(function(){return e(),t()},n)}:Cee,Eee=K({},Kp),Iee=Eee.useInsertionEffect,Tee=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Ree=function(){return function(t){t()}},_ee=typeof Iee<"u"?Tee:Ree;function N_(e,t,n,r,a){var o=l.useContext(Eb),i=o.cache,s=[e].concat(Oe(t)),c=kI(s),u=_ee([c]),d=function(v){i.opUpdate(c,function(m){var h=m||[void 0,void 0],y=ie(h,2),b=y[0],S=b===void 0?0:b,C=y[1],x=C,E=x||n(),I=[S,E];return v?v(I):I})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),p=f[1];return xee(function(){a==null||a(p)},function(g){return d(function(v){var m=ie(v,2),h=m[0],y=m[1];return g&&h===0&&(a==null||a(p)),[h+1,y]}),function(){i.opUpdate(c,function(v){var m=v||[],h=ie(m,2),y=h[0],b=y===void 0?0:y,S=h[1],C=b-1;return C===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(S,!1))}),null):[b-1,S]})}},[c]),p}var $ee={},Oee="css",yl=new Map;function Nee(e){yl.set(e,(yl.get(e)||0)+1)}function kee(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Mu,'="').concat(e,'"]'));n.forEach(function(r){if(r[Cs]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Aee=0;function Mee(e,t){yl.set(e,(yl.get(e)||0)-1);var n=Array.from(yl.keys()),r=n.filter(function(a){var o=yl.get(a)||0;return o<=0});n.length-r.length>Aee&&r.forEach(function(a){kee(a,t),yl.delete(a)})}var wz=function(t,n,r,a){var o=r.getDerivativeToken(t),i=K(K({},o),n);return a&&(i=a(i)),i},Cz="token";function Dee(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(Eb),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?$ee:c,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,g=yee(function(){return Object.assign.apply(Object,[{}].concat(Oe(t)))},t),v=Tf(g),m=Tf(u),h=p?Tf(p):"",y=N_(Cz,[s,e.id,v,m,h],function(){var b,S=f?f(g,u,e):wz(g,u,e,d),C=K({},S),x="";if(p){var E=Sz(S,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),I=ie(E,2);S=I[0],x=I[1]}var R=aA(S,s);S._tokenKey=R,C._tokenKey=aA(C,s);var T=(b=p==null?void 0:p.key)!==null&&b!==void 0?b:R;S._themeKey=T,Nee(T);var _="".concat(Oee,"-").concat(fp(R));return S._hashId=_,[S,_,C,x,(p==null?void 0:p.key)||""]},function(b){Mee(b[0]._themeKey,a)},function(b){var S=ie(b,4),C=S[0],x=S[3];if(p&&x){var E=ji(x,fp("css-variables-".concat(C._themeKey)),{mark:Fo,prepend:"queue",attachTo:o,priority:-999});E[Cs]=a,E.setAttribute(Mu,C._themeKey)}});return y}var Pee=function(t,n,r){var a=ie(t,5),o=a[2],i=a[3],s=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=fv(i,s,d,p,u);return[f,d,g]},Lee={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},Vn="-ms-",Rf="-moz-",Cn="-webkit-",xz="comm",Ib="rule",k_="decl",Fee="@import",Ez="@keyframes",jee="@layer",Iz=Math.abs,A_=String.fromCharCode,MI=Object.assign;function Bee(e,t){return Nr(e,0)^45?(((t<<2^Nr(e,0))<<2^Nr(e,1))<<2^Nr(e,2))<<2^Nr(e,3):0}function Tz(e){return e.trim()}function _i(e,t){return(e=t.exec(e))?e[0]:e}function rn(e,t,n){return e.replace(t,n)}function mh(e,t,n){return e.indexOf(t,n)}function Nr(e,t){return e.charCodeAt(t)|0}function Du(e,t,n){return e.slice(t,n)}function ti(e){return e.length}function Rz(e){return e.length}function tf(e,t){return t.push(e),e}function zee(e,t){return e.map(t).join("")}function sA(e,t){return e.filter(function(n){return!_i(n,t)})}var Tb=1,Pu=1,_z=0,ho=0,gr=0,ed="";function Rb(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Tb,column:Pu,length:i,return:"",siblings:s}}function cs(e,t){return MI(Rb("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _c(e){for(;e.root;)e=cs(e.root,{children:[e]});tf(e,e.siblings)}function Hee(){return gr}function Uee(){return gr=ho>0?Nr(ed,--ho):0,Pu--,gr===10&&(Pu=1,Tb--),gr}function jo(){return gr=ho<_z?Nr(ed,ho++):0,Pu++,gr===10&&(Pu=1,Tb++),gr}function Ll(){return Nr(ed,ho)}function hh(){return ho}function _b(e,t){return Du(ed,e,t)}function DI(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vee(e){return Tb=Pu=1,_z=ti(ed=e),ho=0,[]}function Wee(e){return ed="",e}function Ay(e){return Tz(_b(ho-1,PI(e===91?e+2:e===40?e+1:e)))}function Gee(e){for(;(gr=Ll())&&gr<33;)jo();return DI(e)>2||DI(gr)>3?"":" "}function qee(e,t){for(;--t&&jo()&&!(gr<48||gr>102||gr>57&&gr<65||gr>70&&gr<97););return _b(e,hh()+(t<6&&Ll()==32&&jo()==32))}function PI(e){for(;jo();)switch(gr){case e:return ho;case 34:case 39:e!==34&&e!==39&&PI(gr);break;case 40:e===41&&PI(e);break;case 92:jo();break}return ho}function Kee(e,t){for(;jo()&&e+gr!==57;)if(e+gr===84&&Ll()===47)break;return"/*"+_b(t,ho-1)+"*"+A_(e===47?e:jo())}function Yee(e){for(;!DI(Ll());)jo();return _b(e,ho)}function $z(e){return Wee(vh("",null,null,null,[""],e=Vee(e),0,[0],e))}function vh(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,f=i,p=0,g=0,v=0,m=1,h=1,y=1,b=0,S="",C=a,x=o,E=r,I=S;h;)switch(v=b,b=jo()){case 40:if(v!=108&&Nr(I,f-1)==58){mh(I+=rn(Ay(b),"&","&\f"),"&\f",Iz(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:I+=Ay(b);break;case 9:case 10:case 13:case 32:I+=Gee(v);break;case 92:I+=qee(hh()-1,7);continue;case 47:switch(Ll()){case 42:case 47:tf(Xee(Kee(jo(),hh()),t,n,c),c);break;default:I+="/"}break;case 123*m:s[u++]=ti(I)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+d:y==-1&&(I=rn(I,/\f/g,"")),g>0&&ti(I)-f&&tf(g>32?cA(I+";",r,n,f-1,c):cA(rn(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(tf(E=lA(I,t,n,u,d,a,s,S,C=[],x=[],f,o),o),b===123)if(d===0)vh(I,t,E,E,C,o,f,s,x);else switch(p===99&&Nr(I,3)===110?100:p){case 100:case 108:case 109:case 115:vh(e,E,E,r&&tf(lA(e,E,E,0,0,a,s,S,a,C=[],f,x),x),a,x,f,s,r?C:x);break;default:vh(I,E,E,E,[""],x,0,s,x)}}u=d=g=0,m=y=1,S=I="",f=i;break;case 58:f=1+ti(I),g=v;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Uee()==125)continue}switch(I+=A_(b),b*m){case 38:y=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(ti(I)-1)*y,y=1;break;case 64:Ll()===45&&(I+=Ay(jo())),p=Ll(),d=f=ti(S=I+=Yee(hh())),b++;break;case 45:v===45&&ti(I)==2&&(m=0)}}return o}function lA(e,t,n,r,a,o,i,s,c,u,d,f){for(var p=a-1,g=a===0?o:[""],v=Rz(g),m=0,h=0,y=0;m0?g[b]+" "+S:rn(S,/&\f/g,g[b])))&&(c[y++]=C);return Rb(e,t,n,a===0?Ib:s,c,u,d,f)}function Xee(e,t,n,r){return Rb(e,t,n,xz,A_(Hee()),Du(e,2,-2),0,r)}function cA(e,t,n,r,a){return Rb(e,t,n,k_,Du(e,0,r),Du(e,r+1,-1),r,a)}function Oz(e,t,n){switch(Bee(e,t)){case 5103:return Cn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Cn+e+e;case 4789:return Rf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cn+e+Rf+e+Vn+e+e;case 5936:switch(Nr(e,t+11)){case 114:return Cn+e+Vn+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cn+e+Vn+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cn+e+Vn+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Cn+e+Vn+e+e;case 6165:return Cn+e+Vn+"flex-"+e+e;case 5187:return Cn+e+rn(e,/(\w+).+(:[^]+)/,Cn+"box-$1$2"+Vn+"flex-$1$2")+e;case 5443:return Cn+e+Vn+"flex-item-"+rn(e,/flex-|-self/g,"")+(_i(e,/flex-|baseline/)?"":Vn+"grid-row-"+rn(e,/flex-|-self/g,""))+e;case 4675:return Cn+e+Vn+"flex-line-pack"+rn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Cn+e+Vn+rn(e,"shrink","negative")+e;case 5292:return Cn+e+Vn+rn(e,"basis","preferred-size")+e;case 6060:return Cn+"box-"+rn(e,"-grow","")+Cn+e+Vn+rn(e,"grow","positive")+e;case 4554:return Cn+rn(e,/([^-])(transform)/g,"$1"+Cn+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Cn+"$1"),/(image-set)/,Cn+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Cn+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Cn+"box-pack:$3"+Vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cn+e+e;case 4200:if(!_i(e,/flex-|baseline/))return Vn+"grid-column-align"+Du(e,t)+e;break;case 2592:case 3360:return Vn+rn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,_i(r.props,/grid-\w+-end/)})?~mh(e+(n=n[t].value),"span",0)?e:Vn+rn(e,"-start","")+e+Vn+"grid-row-span:"+(~mh(n,"span",0)?_i(n,/\d+/):+_i(n,/\d+/)-+_i(e,/\d+/))+";":Vn+rn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return _i(r.props,/grid-\w+-start/)})?e:Vn+rn(rn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,Cn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ti(e)-1-t>6)switch(Nr(e,t+1)){case 109:if(Nr(e,t+4)!==45)break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Cn+"$2-$3$1"+Rf+(Nr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mh(e,"stretch",0)?Oz(rn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return rn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,s,c,u){return Vn+a+":"+o+u+(i?Vn+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(Nr(e,t+6)===121)return rn(e,":",":"+Cn)+e;break;case 6444:switch(Nr(e,Nr(e,14)===45?18:11)){case 120:return rn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Cn+(Nr(e,14)===45?"inline-":"")+"box$3$1"+Cn+"$2$3$1"+Vn+"$2box$3")+e;case 100:return rn(e,":",":"+Vn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rn(e,"scroll-","scroll-snap-")+e}return e}function mp(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case k_:e.return=Oz(e.value,e.length,n);return;case Ez:return mp([cs(e,{value:rn(e.value,"@","@"+Cn)})],r);case Ib:if(e.length)return zee(n=e.props,function(a){switch(_i(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_c(cs(e,{props:[rn(a,/:(read-\w+)/,":"+Rf+"$1")]})),_c(cs(e,{props:[a]})),MI(e,{props:sA(n,r)});break;case"::placeholder":_c(cs(e,{props:[rn(a,/:(plac\w+)/,":"+Cn+"input-$1")]})),_c(cs(e,{props:[rn(a,/:(plac\w+)/,":"+Rf+"$1")]})),_c(cs(e,{props:[rn(a,/:(plac\w+)/,Vn+"input-$1")]})),_c(cs(e,{props:[a]})),MI(e,{props:sA(n,r)});break}return""})}}var uA="data-ant-cssinjs-cache-path",kz="_FILE_STYLE__",Fl,Az=!0;function ete(){if(!Fl&&(Fl={},Dr())){var e=document.createElement("div");e.className=uA,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=ie(o,2),s=i[0],c=i[1];Fl[s]=c});var n=document.querySelector("style[".concat(uA,"]"));if(n){var r;Az=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function tte(e){return ete(),!!Fl[e]}function nte(e){var t=Fl[e],n=null;if(t&&Dr())if(Az)n=kz;else{var r=document.querySelector("style[".concat(Fo,'="').concat(Fl[e],'"]'));r?n=r.innerHTML:delete Fl[e]}return[n,t]}var rte="_skip_check_",Mz="_multi_value_";function bh(e){var t=mp($z(e),Nz);return t.replace(/\{%%%\:[^;];}/g,";")}function ate(e){return mt(e)==="object"&&e&&(rte in e||Mz in e)}function ote(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(Oe(c.slice(1))).join(" ")});return o.join(",")}var ite=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",g={};function v(y){var b=y.getName(s);if(!g[b]){var S=e(y.style,n,{root:!1,parentSelectors:i}),C=ie(S,1),x=C[0];g[b]="@keyframes ".concat(y.getName(s)).concat(x)}}function m(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(S){Array.isArray(S)?m(S,b):S&&b.push(S)}),b}var h=m(Array.isArray(t)?t:[t]);return h.forEach(function(y){var b=typeof y=="string"&&!a?{}:y;if(typeof b=="string")p+="".concat(b,` +`);else if(b._keyframe)v(b);else{var S=f.reduce(function(C,x){var E;return(x==null||(E=x.visit)===null||E===void 0?void 0:E.call(x,C))||C},b);Object.keys(S).forEach(function(C){var x=S[C];if(mt(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!ate(x)){var E=!1,I=C.trim(),R=!1;(a||o)&&s?I.startsWith("@")?E=!0:I=ote(C,s,u):a&&!s&&(I==="&"||I==="")&&(I="",R=!0);var T=e(x,n,{root:R,injectHash:E,parentSelectors:[].concat(Oe(i),[I])}),_=ie(T,2),$=_[0],D=_[1];g=K(K({},g),D),p+="".concat(I).concat($)}else{let O=function(k,N){var M=k.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),L=N;!Lee[k]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),k==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(v(N),L=N.getName(s)),p+="".concat(M,":").concat(L,";")};var P,A=(P=x==null?void 0:x.value)!==null&&P!==void 0?P:x;mt(x)==="object"&&x!==null&&x!==void 0&&x[Mz]&&Array.isArray(A)?A.forEach(function(k){O(C,k)}):O(C,A)}})}}),a?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(c.name,";")}).join(` +`))):p="{".concat(p,"}"),[p,g]};function Dz(e,t){return fp("".concat(e.join("%")).concat(t))}function ste(){return null}var Pz="style";function LI(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(Eb),f=d.autoClear;d.mock;var p=d.defaultCache,g=d.hashPriority,v=d.container,m=d.ssrInline,h=d.transformers,y=d.linters,b=d.cache,S=d.layer,C=n._tokenKey,x=[C];S&&x.push("layer"),x.push.apply(x,Oe(r));var E=AI,I=N_(Pz,x,function(){var D=x.join("|");if(tte(D)){var P=nte(D),A=ie(P,2),O=A[0],k=A[1];if(O)return[O,C,k,{},s,u]}var N=t(),M=ite(N,{hashId:a,hashPriority:g,layer:S?o:void 0,path:r.join("-"),transformers:h,linters:y}),L=ie(M,2),F=L[0],j=L[1],B=bh(F),z=Dz(x,B);return[B,C,z,j,s,u]},function(D,P){var A=ie(D,3),O=A[2];(P||f)&&AI&&pp(O,{mark:Fo})},function(D){var P=ie(D,4),A=P[0];P[1];var O=P[2],k=P[3];if(E&&A!==kz){var N={mark:Fo,prepend:S?!1:"queue",attachTo:v,priority:u},M=typeof i=="function"?i():i;M&&(N.csp={nonce:M});var L=[],F=[];Object.keys(k).forEach(function(B){B.startsWith("@layer")?L.push(B):F.push(B)}),L.forEach(function(B){ji(bh(k[B]),"_layer-".concat(B),K(K({},N),{},{prepend:!0}))});var j=ji(A,O,N);j[Cs]=b.instanceId,j.setAttribute(Mu,C),F.forEach(function(B){ji(bh(k[B]),"_effect-".concat(B),N)})}}),R=ie(I,3),T=R[0],_=R[1],$=R[2];return function(D){var P;return!m||E||!p?P=l.createElement(ste,null):P=l.createElement("style",ve({},V(V({},Mu,_),Fo,$),{dangerouslySetInnerHTML:{__html:T}})),l.createElement(l.Fragment,null,P,D)}}var lte=function(t,n,r){var a=ie(t,6),o=a[0],i=a[1],s=a[2],c=a[3],u=a[4],d=a[5],f=r||{},p=f.plain;if(u)return null;var g=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=fv(o,i,s,v,p),c&&Object.keys(c).forEach(function(m){if(!n[m]){n[m]=!0;var h=bh(c[m]),y=fv(h,i,"_effect-".concat(m),v,p);m.startsWith("@layer")?g=y+g:g+=y}}),[d,s,g]},Lz="cssVar",cte=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(Eb),f=d.cache.instanceId,p=d.container,g=s._tokenKey,v=[].concat(Oe(t.path),[r,u,g]),m=N_(Lz,v,function(){var h=n(),y=Sz(h,r,{prefix:a,unitless:o,ignore:i,scope:u}),b=ie(y,2),S=b[0],C=b[1],x=Dz(v,C);return[S,C,x,r]},function(h){var y=ie(h,3),b=y[2];AI&&pp(b,{mark:Fo})},function(h){var y=ie(h,3),b=y[1],S=y[2];if(b){var C=ji(b,S,{mark:Fo,prepend:"queue",attachTo:p,priority:-999});C[Cs]=f,C.setAttribute(Mu,r)}});return m},ute=function(t,n,r){var a=ie(t,4),o=a[1],i=a[2],s=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=fv(o,s,i,f,u);return[d,i,p]};V(V(V({},Pz,lte),Cz,Pee),Lz,ute);var sn=function(){function e(t,n){Ln(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return Fn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function $c(e){return e.notSplit=!0,e}$c(["borderTop","borderBottom"]),$c(["borderTop"]),$c(["borderBottom"]),$c(["borderLeft","borderRight"]),$c(["borderLeft"]),$c(["borderRight"]);var M_=l.createContext({});function Fz(e){return gz(e)||uz(e)||R_(e)||mz()}function Ha(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ha(e,t.slice(0,-1))?e:jz(e,t,n,r)}function dte(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function dA(e){return Array.isArray(e)?[]:{}}var fte=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ou(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=pte,e},Bz=l.createContext(void 0);var zz={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"},mte={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},hte=K(K({},mte),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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"});const Hz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},pv={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"]},hte),timePickerLocale:Object.assign({},Hz)},Aa="${label} is not a valid ${type}",ui={locale:"en",Pagination:zz,DatePicker:pv,TimePicker:Hz,Calendar:pv,global:{placeholder:"Please select"},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:Aa,method:Aa,array:Aa,object:Aa,number:Aa,date:Aa,boolean:Aa,integer:Aa,float:Aa,regexp:Aa,email:Aa,url:Aa,hex:Aa},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"}};let yh=Object.assign({},ui.Modal),Sh=[];const fA=()=>Sh.reduce((e,t)=>Object.assign(Object.assign({},e),t),ui.Modal);function vte(e){if(e){const t=Object.assign({},e);return Sh.push(t),yh=fA(),()=>{Sh=Sh.filter(n=>n!==t),yh=fA()}}yh=Object.assign({},ui.Modal)}function Uz(){return yh}const D_=l.createContext(void 0),hi=(e,t)=>{const n=l.useContext(D_),r=l.useMemo(()=>{var o;const i=t||ui[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ui.locale:o},[n]);return[r,a]},bte="internalMark",yte=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>vte(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(D_.Provider,{value:a},n)};function Vr(e,t){Ste(e)&&(e="100%");var n=wte(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function sm(e){return Math.min(1,Math.max(0,e))}function Ste(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function wte(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Vz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function lm(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xl(e){return e.length===1?"0"+e:String(e)}function Cte(e,t,n){return{r:Vr(e,255)*255,g:Vr(t,255)*255,b:Vr(n,255)*255}}function pA(e,t,n){e=Vr(e,255),t=Vr(t,255),n=Vr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=s>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xte(e,t,n){var r,a,o;if(e=Vr(e,360),t=Vr(t,100),n=Vr(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=My(s,i,e+1/3),a=My(s,i,e),o=My(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function FI(e,t,n){e=Vr(e,255),t=Vr(t,255),n=Vr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,c=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var BI={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wc(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Ote(e)),typeof e=="object"&&(wi(e.r)&&wi(e.g)&&wi(e.b)?(t=Cte(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wi(e.h)&&wi(e.s)&&wi(e.v)?(r=lm(e.s),a=lm(e.v),t=Ete(e.h,r,a),i=!0,s="hsv"):wi(e.h)&&wi(e.s)&&wi(e.l)&&(r=lm(e.s),o=lm(e.l),t=xte(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Vz(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var _te="[-\\+]?\\d+%?",$te="[-\\+]?\\d*\\.\\d+%?",xs="(?:".concat($te,")|(?:").concat(_te,")"),Dy="[\\s|\\(]+(".concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")\\s*\\)?"),Py="[\\s|\\(]+(".concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")\\s*\\)?"),Ro={CSS_UNIT:new RegExp(xs),rgb:new RegExp("rgb"+Dy),rgba:new RegExp("rgba"+Py),hsl:new RegExp("hsl"+Dy),hsla:new RegExp("hsla"+Py),hsv:new RegExp("hsv"+Dy),hsva:new RegExp("hsva"+Py),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ote(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(BI[e])e=BI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ro.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ro.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ro.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ro.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ro.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ro.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ro.hex8.exec(e),n?{r:Da(n[1]),g:Da(n[2]),b:Da(n[3]),a:gA(n[4]),format:t?"name":"hex8"}:(n=Ro.hex6.exec(e),n?{r:Da(n[1]),g:Da(n[2]),b:Da(n[3]),format:t?"name":"hex"}:(n=Ro.hex4.exec(e),n?{r:Da(n[1]+n[1]),g:Da(n[2]+n[2]),b:Da(n[3]+n[3]),a:gA(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ro.hex3.exec(e),n?{r:Da(n[1]+n[1]),g:Da(n[2]+n[2]),b:Da(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wi(e){return!!Ro.CSS_UNIT.exec(String(e))}var un=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Rte(t)),this.originalInput=t;var a=Wc(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Vz(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=FI(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=FI(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pA(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=pA(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),jI(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Ite(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Vr(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Vr(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+jI(this.r,this.g,this.b,!1),n=0,r=Object.entries(BI);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=sm(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=sm(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=sm(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=sm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-cm*t:Math.round(e.h)+cm*t:r=n?Math.round(e.h)+cm*t:Math.round(e.h)-cm*t,r<0?r+=360:r>=360&&(r-=360),r}function bA(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-mA*t:t===Gz?r=e.s+mA:r=e.s+Nte*t,r>1&&(r=1),n&&t===Wz&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function yA(e,t,n){var r;return n?r=e.v+kte*t:r=e.v-Ate*t,r>1&&(r=1),Number(r.toFixed(2))}function Yl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Wc(e),a=Wz;a>0;a-=1){var o=hA(r),i=um(Wc({h:vA(o,a,!0),s:bA(o,a,!0),v:yA(o,a,!0)}));n.push(i)}n.push(um(r));for(var s=1;s<=Gz;s+=1){var c=hA(r),u=um(Wc({h:vA(c,s),s:bA(c,s),v:yA(c,s)}));n.push(u)}return t.theme==="dark"?Mte.map(function(d){var f=d.index,p=d.opacity,g=um(Dte(Wc(t.backgroundColor||"#141414"),Wc(n[f]),p*100));return g}):n}var bu={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"},zI=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];zI.primary=zI[5];var HI=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];HI.primary=HI[5];var UI=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];UI.primary=UI[5];var gv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gv.primary=gv[5];var VI=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];VI.primary=VI[5];var WI=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];WI.primary=WI[5];var GI=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];GI.primary=GI[5];var qI=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];qI.primary=qI[5];var Lu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Lu.primary=Lu[5];var KI=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];KI.primary=KI[5];var YI=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];YI.primary=YI[5];var XI=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];XI.primary=XI[5];var ZI=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ZI.primary=ZI[5];var Ly={red:zI,volcano:HI,orange:UI,gold:gv,yellow:VI,lime:WI,green:GI,cyan:qI,blue:Lu,geekblue:KI,purple:YI,magenta:XI,grey:ZI};const P_={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"},Fu=Object.assign(Object.assign({},P_),{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});function qz(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(a),g=n(o),v=n(i),m=n(s),h=r(u,d),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},h),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new un("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Pte=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function Lte(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Pte(r))}const Kz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function wh(e){return(e+8)/e}function Fte(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:wh(n)}))}const Yz=e=>{const t=Fte(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function jte(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const wi=(e,t)=>new un(e).setAlpha(t).toRgbString(),Fd=(e,t)=>new un(e).darken(t).toHexString(),Bte=e=>{const t=Yl(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]}},zte=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:wi(r,.88),colorTextSecondary:wi(r,.65),colorTextTertiary:wi(r,.45),colorTextQuaternary:wi(r,.25),colorFill:wi(r,.15),colorFillSecondary:wi(r,.06),colorFillTertiary:wi(r,.04),colorFillQuaternary:wi(r,.02),colorBgLayout:Fd(n,4),colorBgContainer:Fd(n,0),colorBgElevated:Fd(n,0),colorBgSpotlight:wi(r,.85),colorBgBlur:"transparent",colorBorder:Fd(n,15),colorBorderSecondary:Fd(n,6)}};function Jp(e){bu.pink=bu.magenta,Ly.pink=Ly.magenta;const t=Object.keys(P_).map(n=>{const r=e[n]===bu[n]?Ly[n]:Yl(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),qz(e,{generateColorPalettes:Bte,generateNeutralColorPalettes:zte})),Yz(e.fontSize)),jte(e)),Kz(e)),Lte(e))}const Xz=gp(Jp),hp={token:Fu,override:{override:Fu},hashed:!0},Zz=le.createContext(hp),vp="ant",L_="anticon",Hte=["outlined","borderless","filled"],Ute=(e,t)=>t||(e?`${vp}-${e}`:vp),it=l.createContext({getPrefixCls:Ute,iconPrefixCls:L_}),Vte=`-ant-${Date.now()}-${Math.random()}`;function Wte(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new un(i),u=Yl(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new un(t.primaryColor),s=Yl(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new un(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(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});function qz(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(a),g=n(o),v=n(i),m=n(s),h=r(u,d),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},h),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new un("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Pte=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function Lte(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Pte(r))}const Kz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function wh(e){return(e+8)/e}function Fte(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:wh(n)}))}const Yz=e=>{const t=Fte(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function jte(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ci=(e,t)=>new un(e).setAlpha(t).toRgbString(),Fd=(e,t)=>new un(e).darken(t).toHexString(),Bte=e=>{const t=Yl(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]}},zte=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ci(r,.88),colorTextSecondary:Ci(r,.65),colorTextTertiary:Ci(r,.45),colorTextQuaternary:Ci(r,.25),colorFill:Ci(r,.15),colorFillSecondary:Ci(r,.06),colorFillTertiary:Ci(r,.04),colorFillQuaternary:Ci(r,.02),colorBgLayout:Fd(n,4),colorBgContainer:Fd(n,0),colorBgElevated:Fd(n,0),colorBgSpotlight:Ci(r,.85),colorBgBlur:"transparent",colorBorder:Fd(n,15),colorBorderSecondary:Fd(n,6)}};function Jp(e){bu.pink=bu.magenta,Ly.pink=Ly.magenta;const t=Object.keys(P_).map(n=>{const r=e[n]===bu[n]?Ly[n]:Yl(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),qz(e,{generateColorPalettes:Bte,generateNeutralColorPalettes:zte})),Yz(e.fontSize)),jte(e)),Kz(e)),Lte(e))}const Xz=gp(Jp),hp={token:Fu,override:{override:Fu},hashed:!0},Zz=le.createContext(hp),vp="ant",L_="anticon",Hte=["outlined","borderless","filled"],Ute=(e,t)=>t||(e?`${vp}-${e}`:vp),ct=l.createContext({getPrefixCls:Ute,iconPrefixCls:L_}),Vte=`-ant-${Date.now()}-${Math.random()}`;function Wte(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new un(i),u=Yl(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new un(t.primaryColor),s=Yl(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new un(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` :root { ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } - `.trim()}function Gte(e,t){const n=Wte(e,t);Dr()&&ji(n,`${Vte}-dynamic-theme`)}const Gr=l.createContext(!1),F_=e=>{let{children:t,disabled:n}=e;const r=l.useContext(Gr);return l.createElement(Gr.Provider,{value:n??r},t)},Xl=l.createContext(void 0),qte=e=>{let{children:t,size:n}=e;const r=l.useContext(Xl);return l.createElement(Xl.Provider,{value:n||r},t)};function Kte(){const e=l.useContext(Gr),t=l.useContext(Xl);return{componentDisabled:e,componentSize:t}}var Qz=Pn(function e(){Dn(this,e)}),Jz="CALC_UNIT",Yte=new RegExp(Jz,"g");function Fy(e){return typeof e=="number"?"".concat(e).concat(Jz):e}var Xte=function(e){Qa(n,e);var t=xo(n);function n(r,a){var o;Dn(this,n),o=t.call(this),V(Ue(o),"result",""),V(Ue(o),"unitlessCssVar",void 0),V(Ue(o),"lowPriority",void 0);var i=ht(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=Fy(r):i==="string"&&(o.result=r),o}return Pn(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(Fy(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(Fy(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(Yte,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Qz),Zte=function(e){Qa(n,e);var t=xo(n);function n(r){var a;return Dn(this,n),a=t.call(this),V(Ue(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Pn(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(Qz),Qte=function(t,n){var r=t==="css"?Xte:Zte;return function(a){return new r(a,n)}},SA=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ut(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>nne&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),EA=new rne;function ane(e,t){return le.useMemo(function(){var n=EA.get(t);if(n)return n;var r=e();return EA.set(t,r),r},t)}var one=function(){return{}};function ine(e){var t=e.useCSP,n=t===void 0?one:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(p,g,v,m){var h=Array.isArray(p)?p[0]:p;function y(R){return"".concat(String(h)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var b=(m==null?void 0:m.unitless)||{},S=typeof s=="function"?s(p):{},C=K(K({},S),{},V({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(R){C[y(R)]=b[R]});var x=K(K({},m),{},{unitless:C,prefixToken:y}),E=d(p,g,v,x),I=u(h,v,x);return function(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,_=E(R,T),$=ie(_,2),D=$[1],P=I(T),A=ie(P,2),O=A[0],k=A[1];return[O,D,k]}}function u(p,g,v){var m=v.unitless,h=v.injectStyle,y=h===void 0?!0:h,b=v.prefixToken,S=v.ignore,C=function(I){var R=I.rootCls,T=I.cssVar,_=T===void 0?{}:T,$=r(),D=$.realToken;return cte({path:[p],prefix:_.prefix,key:_.key,unitless:m,ignore:S,token:D,scope:R},function(){var P=xA(p,D,g),A=wA(p,D,P,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(P).forEach(function(O){A[b(O)]=A[O],delete A[O]}),A}),null},x=function(I){var R=r(),T=R.cssVar;return[function(_){return y&&T?le.createElement(le.Fragment,null,le.createElement(C,{rootCls:I,cssVar:T,component:p}),_):_},T==null?void 0:T.key]};return x}function d(p,g,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(p)?p:[p,p],y=ie(h,1),b=y[0],S=h.join("-");return function(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),I=E.theme,R=E.realToken,T=E.hashId,_=E.token,$=E.cssVar,D=a(),P=D.rootPrefixCls,A=D.iconPrefixCls,O=n(),k=$?"css":"js",N=ane(function(){var z=new Set;return $&&Object.keys(m.unitless||{}).forEach(function(H){z.add(gh(H,$.prefix)),z.add(gh(H,SA(b,$.prefix)))}),Qte(k,z)},[k,b,$==null?void 0:$.prefix]),M=tne(k),L=M.max,F=M.min,j={theme:I,token:_,hashId:T,nonce:function(){return O.nonce},clientOnly:m.clientOnly,layer:{name:"antd"},order:m.order||-999};LI(K(K({},j),{},{clientOnly:!1,path:["Shared",P]}),function(){return typeof o=="function"?o(_):[]});var B=LI(K(K({},j),{},{path:[S,C,A]}),function(){if(m.injectStyle===!1)return[];var z=ene(_),H=z.token,U=z.flush,X=xA(b,R,v),W=".".concat(C),Y=wA(b,R,X,{deprecatedTokens:m.deprecatedTokens});$&&ht(X)==="object"&&Object.keys(X).forEach(function(oe){X[oe]="var(".concat(gh(oe,SA(b,$.prefix)),")")});var te=zt(H,{componentCls:W,prefixCls:C,iconCls:".".concat(A),antCls:".".concat(P),calc:N,max:L,min:F},$?X:Y),ee=g(te,{hashId:T,prefixCls:C,rootPrefixCls:P,iconPrefixCls:A});U(b,Y);var Z=typeof i=="function"?i(te,C,x,m.resetFont):null;return[m.resetStyle===!1?null:Z,ee]});return[B,T]}}function f(p,g,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d(p,g,v,K({resetStyle:!1,order:-998},m)),y=function(S){var C=S.prefixCls,x=S.rootCls,E=x===void 0?C:x;return h(C,E),null};return y}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const bp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],sne="5.20.1";function By(e){return e>=0&&e<=255}function dm(e,t){const{r:n,g:r,b:a,a:o}=new un(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new un(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),p=Math.round((a-c*(1-u))/u);if(By(d)&&By(f)&&By(p))return new un({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new un({r:n,g:r,b:a,a:1}).toRgbString()}var lne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[p]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,c=992,u=1200,d=1600;if(a.motion===!1){const p="0s";a.motionDurationFast=p,a.motionDurationMid=p,a.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:dm(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:dm(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:dm(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:dm(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` + `.trim()}function Gte(e,t){const n=Wte(e,t);Dr()&&ji(n,`${Vte}-dynamic-theme`)}const Gr=l.createContext(!1),F_=e=>{let{children:t,disabled:n}=e;const r=l.useContext(Gr);return l.createElement(Gr.Provider,{value:n??r},t)},Xl=l.createContext(void 0),qte=e=>{let{children:t,size:n}=e;const r=l.useContext(Xl);return l.createElement(Xl.Provider,{value:n||r},t)};function Kte(){const e=l.useContext(Gr),t=l.useContext(Xl);return{componentDisabled:e,componentSize:t}}var Qz=Fn(function e(){Ln(this,e)}),Jz="CALC_UNIT",Yte=new RegExp(Jz,"g");function Fy(e){return typeof e=="number"?"".concat(e).concat(Jz):e}var Xte=function(e){Qa(n,e);var t=xo(n);function n(r,a){var o;Ln(this,n),o=t.call(this),V(Ve(o),"result",""),V(Ve(o),"unitlessCssVar",void 0),V(Ve(o),"lowPriority",void 0);var i=mt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=Fy(r):i==="string"&&(o.result=r),o}return Fn(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(Fy(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(Fy(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(Yte,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Qz),Zte=function(e){Qa(n,e);var t=xo(n);function n(r){var a;return Ln(this,n),a=t.call(this),V(Ve(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Fn(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(Qz),Qte=function(t,n){var r=t==="css"?Xte:Zte;return function(a){return new r(a,n)}},SA=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function zt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>nne&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),EA=new rne;function ane(e,t){return le.useMemo(function(){var n=EA.get(t);if(n)return n;var r=e();return EA.set(t,r),r},t)}var one=function(){return{}};function ine(e){var t=e.useCSP,n=t===void 0?one:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(p,g,v,m){var h=Array.isArray(p)?p[0]:p;function y(R){return"".concat(String(h)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var b=(m==null?void 0:m.unitless)||{},S=typeof s=="function"?s(p):{},C=K(K({},S),{},V({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(R){C[y(R)]=b[R]});var x=K(K({},m),{},{unitless:C,prefixToken:y}),E=d(p,g,v,x),I=u(h,v,x);return function(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,_=E(R,T),$=ie(_,2),D=$[1],P=I(T),A=ie(P,2),O=A[0],k=A[1];return[O,D,k]}}function u(p,g,v){var m=v.unitless,h=v.injectStyle,y=h===void 0?!0:h,b=v.prefixToken,S=v.ignore,C=function(I){var R=I.rootCls,T=I.cssVar,_=T===void 0?{}:T,$=r(),D=$.realToken;return cte({path:[p],prefix:_.prefix,key:_.key,unitless:m,ignore:S,token:D,scope:R},function(){var P=xA(p,D,g),A=wA(p,D,P,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(P).forEach(function(O){A[b(O)]=A[O],delete A[O]}),A}),null},x=function(I){var R=r(),T=R.cssVar;return[function(_){return y&&T?le.createElement(le.Fragment,null,le.createElement(C,{rootCls:I,cssVar:T,component:p}),_):_},T==null?void 0:T.key]};return x}function d(p,g,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(p)?p:[p,p],y=ie(h,1),b=y[0],S=h.join("-");return function(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),I=E.theme,R=E.realToken,T=E.hashId,_=E.token,$=E.cssVar,D=a(),P=D.rootPrefixCls,A=D.iconPrefixCls,O=n(),k=$?"css":"js",N=ane(function(){var z=new Set;return $&&Object.keys(m.unitless||{}).forEach(function(H){z.add(gh(H,$.prefix)),z.add(gh(H,SA(b,$.prefix)))}),Qte(k,z)},[k,b,$==null?void 0:$.prefix]),M=tne(k),L=M.max,F=M.min,j={theme:I,token:_,hashId:T,nonce:function(){return O.nonce},clientOnly:m.clientOnly,layer:{name:"antd"},order:m.order||-999};LI(K(K({},j),{},{clientOnly:!1,path:["Shared",P]}),function(){return typeof o=="function"?o(_):[]});var B=LI(K(K({},j),{},{path:[S,C,A]}),function(){if(m.injectStyle===!1)return[];var z=ene(_),H=z.token,U=z.flush,X=xA(b,R,v),W=".".concat(C),Y=wA(b,R,X,{deprecatedTokens:m.deprecatedTokens});$&&mt(X)==="object"&&Object.keys(X).forEach(function(oe){X[oe]="var(".concat(gh(oe,SA(b,$.prefix)),")")});var te=Bt(H,{componentCls:W,prefixCls:C,iconCls:".".concat(A),antCls:".".concat(P),calc:N,max:L,min:F},$?X:Y),ee=g(te,{hashId:T,prefixCls:C,rootPrefixCls:P,iconPrefixCls:A});U(b,Y);var Z=typeof i=="function"?i(te,C,x,m.resetFont):null;return[m.resetStyle===!1?null:Z,ee]});return[B,T]}}function f(p,g,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d(p,g,v,K({resetStyle:!1,order:-998},m)),y=function(S){var C=S.prefixCls,x=S.rootCls,E=x===void 0?C:x;return h(C,E),null};return y}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const bp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],sne="5.20.1";function By(e){return e>=0&&e<=255}function dm(e,t){const{r:n,g:r,b:a,a:o}=new un(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new un(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),p=Math.round((a-c*(1-u))/u);if(By(d)&&By(f)&&By(p))return new un({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new un({r:n,g:r,b:a,a:1}).toRgbString()}var lne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[p]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,c=992,u=1200,d=1600;if(a.motion===!1){const p="0s";a.motionDurationFast=p,a.motionDurationMid=p,a.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:dm(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:dm(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:dm(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:dm(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.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) @@ -94,7 +94,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)"}),r)}var IA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=IA(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=j_(i),o&&Object.entries(o).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=IA(u,["theme"]);let p=f;d&&(p=n9(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=p}),i};function Lr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=le.useContext(Zz),o=`${sne}-${t||""}`,i=n||Xz,[s,c,u]=Dee(i,[Fu,e],{salt:o,override:r,getComputedToken:n9,formatToken:j_,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:t9,ignore:cne,preserve:une}});return[i,u,t?c:"",s,a]}const B_=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),vo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},td=()=>({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"}}),Vo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),dne=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"}}}),fne=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Wi=e=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ui=e=>({"&:focus-visible":Object.assign({},Wi(e))}),r9=(e,t)=>{const[n,r]=Lr();return LI({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},td()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:nn,genComponentStyleHook:pne,genSubStyleComponent:nd}=ine({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Lr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=l.useContext(it);return r9(t,e),e??{}},getResetStyles:e=>[{"&":dne(e)}],getCommonStyle:fne,getCompUnitless:()=>t9});function a9(e,t){return bp.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const gne=Object.assign({},Kp),{useId:TA}=gne,mne=()=>"",hne=typeof TA>"u"?mne:TA;function vne(e,t,n){var r;Js();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},hp),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:hp.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=hne();return Qs(()=>{var s,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(s,c)=>s.some((u,d)=>{const f=c[d];return!Uo(u,f,!0)}))}var bne=["children"],o9=l.createContext({});function yne(e){var t=e.children,n=xt(e,bne);return l.createElement(o9.Provider,{value:n},t)}var Sne=function(e){Qa(n,e);var t=xo(n);function n(){return Dn(this,n),t.apply(this,arguments)}return Pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function wne(e){var t=l.useReducer(function(s){return s+1},0),n=ie(t,2),r=n[1],a=l.useRef(e),o=Ut(function(){return a.current}),i=Ut(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var us="none",fm="appear",pm="enter",gm="leave",RA="none",ko="prepare",iu="start",su="active",z_="end",i9="prepared";function _A(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Cne(e,t){var n={animationend:_A("Animation","AnimationEnd"),transitionend:_A("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var xne=Cne(Dr(),typeof window<"u"?window:{}),s9={};if(Dr()){var Ene=document.createElement("div");s9=Ene.style}var mm={};function l9(e){if(mm[e])return mm[e];var t=xne[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Bt(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Rne=[ko,iu,su,z_],_ne=[ko,i9],p9=!1,$ne=!0;function g9(e){return e===su||e===z_}const One=function(e,t,n){var r=Zl(RA),a=ie(r,2),o=a[0],i=a[1],s=Tne(),c=ie(s,2),u=c[0],d=c[1];function f(){i(ko,!0)}var p=t?_ne:Rne;return f9(function(){if(o!==RA&&o!==z_){var g=p.indexOf(o),v=p[g+1],m=n(o);m===p9?i(v,!0):v&&u(function(h){function y(){h.isCanceled()||i(v,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[f,o]};function Nne(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,m=r.onAppearStart,h=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,x=r.onAppearEnd,E=r.onEnterEnd,I=r.onLeaveEnd,R=r.onVisibleChanged,T=Zl(),_=ie(T,2),$=_[0],D=_[1],P=wne(us),A=ie(P,2),O=A[0],k=A[1],N=Zl(null),M=ie(N,2),L=M[0],F=M[1],j=O(),B=l.useRef(!1),z=l.useRef(null);function H(){return n()}var U=l.useRef(!1);function X(){k(us),F(null,!0)}var W=Ut(function(ye){var pe=O();if(pe!==us){var J=H();if(!(ye&&!ye.deadline&&ye.target!==J)){var ce=U.current,ue;pe===fm&&ce?ue=x==null?void 0:x(J,ye):pe===pm&&ce?ue=E==null?void 0:E(J,ye):pe===gm&&ce&&(ue=I==null?void 0:I(J,ye)),ce&&ue!==!1&&X()}}}),Y=Ine(W),te=ie(Y,1),ee=te[0],Z=function(pe){switch(pe){case fm:return V(V(V({},ko,p),iu,m),su,b);case pm:return V(V(V({},ko,g),iu,h),su,S);case gm:return V(V(V({},ko,v),iu,y),su,C);default:return{}}},oe=l.useMemo(function(){return Z(j)},[j]),re=One(j,!e,function(ye){if(ye===ko){var pe=oe[ko];return pe?pe(H()):p9}if(ae in oe){var J;F(((J=oe[ae])===null||J===void 0?void 0:J.call(oe,H(),null))||null)}return ae===su&&j!==us&&(ee(H()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){W({deadline:!0})},d))),ae===i9&&X(),$ne}),q=ie(re,2),Q=q[0],ae=q[1],se=g9(ae);U.current=se,f9(function(){D(t);var ye=B.current;B.current=!0;var pe;!ye&&t&&s&&(pe=fm),ye&&t&&o&&(pe=pm),(ye&&!t&&u||!ye&&f&&!t&&u)&&(pe=gm);var J=Z(pe);pe&&(e||J[ko])?(k(pe),Q()):k(us)},[t]),l.useEffect(function(){(j===fm&&!s||j===pm&&!o||j===gm&&!u)&&k(us)},[s,o,u]),l.useEffect(function(){return function(){B.current=!1,clearTimeout(z.current)}},[]);var de=l.useRef(!1);l.useEffect(function(){$&&(de.current=!0),$!==void 0&&j===us&&((de.current||$)&&(R==null||R($)),de.current=!0)},[$,j]);var he=L;return oe[ko]&&ae===iu&&(he=K({transition:"none"},he)),[j,ae,he,$??t]}function kne(e){var t=e;ht(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,p=a.motionName,g=a.leavedClassName,v=a.eventProps,m=l.useContext(o9),h=m.motion,y=n(a,h),b=l.useRef(),S=l.useRef();function C(){try{return b.current instanceof HTMLElement?b.current:If(S.current)}catch{return null}}var x=Nne(y,s,C,a),E=ie(x,4),I=E[0],R=E[1],T=E[2],_=E[3],$=l.useRef(_);_&&($.current=!0);var D=l.useCallback(function(L){b.current=L,up(o,L)},[o]),P,A=K(K({},v),{},{visible:s});if(!f)P=null;else if(I===us)_?P=f(K({},A),D):!u&&$.current&&g?P=f(K(K({},A),{},{className:g}),D):d||!u&&!g?P=f(K(K({},A),{},{style:{display:"none"}}),D):P=null;else{var O;R===ko?O="prepare":g9(R)?O="active":R===iu&&(O="start");var k=NA(p,"".concat(I,"-").concat(O));P=f(K(K({},A),{},{className:ne(NA(p,I),V(V({},k,k&&O),p,typeof p=="string")),style:T}),D)}if(l.isValidElement(P)&&Ho(P)){var N=P,M=N.ref;M||(P=l.cloneElement(P,{ref:D}))}return l.createElement(Sne,{ref:S},P)});return r.displayName="CSSMotion",r}const qr=kne(d9);var JI="add",eT="keep",tT="remove",zy="removed";function Ane(e){var t;return e&&ht(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function nT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Ane)}function Mne(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=nT(e),i=nT(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==tT}),n.forEach(function(d){d.key===u&&(d.status=eT)})}),n}var Dne=["component","children","onVisibleChanged","onAllRemoved"],Pne=["status"],Lne=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Fne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr,n=function(r){Qa(o,r);var a=xo(o);function o(){var i;Dn(this,o);for(var s=arguments.length,c=new Array(s),u=0;unull;var zne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const Wne=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(mv=t),n!==void 0&&(m9=n),"holderRender"in e&&(v9=a),r&&(Vne(r)?Gte(Ch(),r):h9=r)},b9=()=>({getPrefixCls:(e,t)=>t||(e?`${Ch()}-${e}`:Ch()),getIconPrefixCls:Une,getRootPrefixCls:()=>mv||Ch(),getTheme:()=>h9,holderRender:v9}),Gne=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:m,parentContext:h,iconPrefixCls:y,theme:b,componentDisabled:S,segmented:C,statistic:x,spin:E,calendar:I,carousel:R,cascader:T,collapse:_,typography:$,checkbox:D,descriptions:P,divider:A,drawer:O,skeleton:k,steps:N,image:M,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:U,breadcrumb:X,menu:W,pagination:Y,input:te,textArea:ee,empty:Z,badge:oe,radio:re,rate:q,switch:Q,transfer:ae,avatar:se,message:de,tag:he,table:ye,card:pe,tabs:J,timeline:ce,timePicker:ue,upload:fe,notification:be,tree:Te,colorPicker:_e,datePicker:Pe,rangePicker:Ee,flex:Fe,wave:De,dropdown:Ae,warning:we,tour:$e,floatButtonGroup:Ce,variant:Re,inputNumber:me,treeSelect:Ie}=e,je=l.useCallback((He,Ye)=>{const{prefixCls:Ge}=e;if(Ye)return Ye;const rt=Ge||h.getPrefixCls("");return He?`${rt}-${He}`:rt},[h.getPrefixCls,e.prefixCls]),ke=y||h.iconPrefixCls||L_,Ne=n||h.csp;r9(ke,Ne);const Be=vne(b,h.theme,{prefixCls:je("")}),Ve={csp:Ne,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||m,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??p,popupOverflow:v,getPrefixCls:je,iconPrefixCls:ke,theme:Be,segmented:C,statistic:x,spin:E,calendar:I,carousel:R,cascader:T,collapse:_,typography:$,checkbox:D,descriptions:P,divider:A,drawer:O,skeleton:k,steps:N,image:M,input:te,textArea:ee,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:U,breadcrumb:X,menu:W,pagination:Y,empty:Z,badge:oe,radio:re,rate:q,switch:Q,transfer:ae,avatar:se,message:de,tag:he,table:ye,card:pe,tabs:J,timeline:ce,timePicker:ue,upload:fe,notification:be,tree:Te,colorPicker:_e,datePicker:Pe,rangePicker:Ee,flex:Fe,wave:De,dropdown:Ae,warning:we,tour:$e,floatButtonGroup:Ce,variant:Re,inputNumber:me,treeSelect:Ie},Le=Object.assign({},h);Object.keys(Ve).forEach(He=>{Ve[He]!==void 0&&(Le[He]=Ve[He])}),Hne.forEach(He=>{const Ye=e[He];Ye&&(Le[He]=Ye)}),typeof r<"u"&&(Le.button=Object.assign({autoInsertSpace:r},Le.button));const We=Qs(()=>Le,Le,(He,Ye)=>{const Ge=Object.keys(He),rt=Object.keys(Ye);return Ge.length!==rt.length||Ge.some(Tt=>He[Tt]!==Ye[Tt])}),Je=l.useMemo(()=>({prefixCls:ke,csp:Ne}),[ke,Ne]);let Ke=l.createElement(l.Fragment,null,l.createElement(Bne,{dropdownMatchSelectWidth:p}),t);const ut=l.useMemo(()=>{var He,Ye,Ge,rt;return ou(((He=ci.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((Ge=(Ye=We.locale)===null||Ye===void 0?void 0:Ye.Form)===null||Ge===void 0?void 0:Ge.defaultValidateMessages)||{},((rt=We.form)===null||rt===void 0?void 0:rt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[We,i==null?void 0:i.validateMessages]);Object.keys(ut).length>0&&(Ke=l.createElement(Bz.Provider,{value:ut},Ke)),s&&(Ke=l.createElement(yte,{locale:s,_ANT_MARK__:bte},Ke)),(ke||Ne)&&(Ke=l.createElement(M_.Provider,{value:Je},Ke)),c&&(Ke=l.createElement(qte,{size:c},Ke)),Ke=l.createElement(jne,null,Ke);const dt=l.useMemo(()=>{const He=Be||{},{algorithm:Ye,token:Ge,components:rt,cssVar:Tt}=He,Rt=zne(He,["algorithm","token","components","cssVar"]),jt=Ye&&(!Array.isArray(Ye)||Ye.length>0)?gp(Ye):Xz,ft={};Object.entries(rt||{}).forEach(Ze=>{let[lt,It]=Ze;const at=Object.assign({},It);"algorithm"in at&&(at.algorithm===!0?at.theme=jt:(Array.isArray(at.algorithm)||typeof at.algorithm=="function")&&(at.theme=gp(at.algorithm)),delete at.algorithm),ft[lt]=at});const st=Object.assign(Object.assign({},Fu),Ge);return Object.assign(Object.assign({},Rt),{theme:jt,token:st,components:ft,override:Object.assign({override:st},ft),cssVar:Tt})},[Be]);return b&&(Ke=l.createElement(Zz.Provider,{value:dt},Ke)),We.warning&&(Ke=l.createElement(gte.Provider,{value:We.warning},Ke)),S!==void 0&&(Ke=l.createElement(F_,{disabled:S},Ke)),l.createElement(it.Provider,{value:We},Ke)},Ko=e=>{const t=l.useContext(it),n=l.useContext(D_);return l.createElement(Gne,Object.assign({parentContext:t,legacyLocale:n},e))};Ko.ConfigContext=it;Ko.SizeContext=Xl;Ko.config=Wne;Ko.useConfig=Kte;Object.defineProperty(Ko,"SizeContext",{get:()=>Xl});var qne={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"};function y9(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Kne(e){return y9(e)instanceof ShadowRoot}function hv(e){return Kne(e)?y9(e):null}function Yne(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Xne(e,t){pn(e,"[@ant-design/icons] ".concat(t))}function kA(e){return ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ht(e.icon)==="object"||typeof e.icon=="function")}function AA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Yne(n)]=r}return t},{})}function rT(e,t,n){return n?le.createElement(e.tag,K(K({key:t},AA(e.attrs)),n),(e.children||[]).map(function(r,a){return rT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):le.createElement(e.tag,K({key:t},AA(e.attrs)),(e.children||[]).map(function(r,a){return rT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function S9(e){return Yl(e)[0]}function w9(e){return e?Array.isArray(e)?e:[e]:[]}var Zne=` + `,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)"}),r)}var IA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=IA(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=j_(i),o&&Object.entries(o).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=IA(u,["theme"]);let p=f;d&&(p=n9(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=p}),i};function Lr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=le.useContext(Zz),o=`${sne}-${t||""}`,i=n||Xz,[s,c,u]=Dee(i,[Fu,e],{salt:o,override:r,getComputedToken:n9,formatToken:j_,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:t9,ignore:cne,preserve:une}});return[i,u,t?c:"",s,a]}const B_=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),vo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},td=()=>({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"}}),Vo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),dne=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"}}}),fne=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Wi=e=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),di=e=>({"&:focus-visible":Object.assign({},Wi(e))}),r9=(e,t)=>{const[n,r]=Lr();return LI({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},td()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:tn,genComponentStyleHook:pne,genSubStyleComponent:nd}=ine({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(ct);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Lr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=l.useContext(ct);return r9(t,e),e??{}},getResetStyles:e=>[{"&":dne(e)}],getCommonStyle:fne,getCompUnitless:()=>t9});function a9(e,t){return bp.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const gne=Object.assign({},Kp),{useId:TA}=gne,mne=()=>"",hne=typeof TA>"u"?mne:TA;function vne(e,t,n){var r;Js();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},hp),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:hp.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=hne();return Qs(()=>{var s,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(s,c)=>s.some((u,d)=>{const f=c[d];return!Uo(u,f,!0)}))}var bne=["children"],o9=l.createContext({});function yne(e){var t=e.children,n=xt(e,bne);return l.createElement(o9.Provider,{value:n},t)}var Sne=function(e){Qa(n,e);var t=xo(n);function n(){return Ln(this,n),t.apply(this,arguments)}return Fn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function wne(e){var t=l.useReducer(function(s){return s+1},0),n=ie(t,2),r=n[1],a=l.useRef(e),o=zt(function(){return a.current}),i=zt(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var us="none",fm="appear",pm="enter",gm="leave",RA="none",ko="prepare",iu="start",su="active",z_="end",i9="prepared";function _A(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Cne(e,t){var n={animationend:_A("Animation","AnimationEnd"),transitionend:_A("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var xne=Cne(Dr(),typeof window<"u"?window:{}),s9={};if(Dr()){var Ene=document.createElement("div");s9=Ene.style}var mm={};function l9(e){if(mm[e])return mm[e];var t=xne[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=jt(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Rne=[ko,iu,su,z_],_ne=[ko,i9],p9=!1,$ne=!0;function g9(e){return e===su||e===z_}const One=function(e,t,n){var r=Zl(RA),a=ie(r,2),o=a[0],i=a[1],s=Tne(),c=ie(s,2),u=c[0],d=c[1];function f(){i(ko,!0)}var p=t?_ne:Rne;return f9(function(){if(o!==RA&&o!==z_){var g=p.indexOf(o),v=p[g+1],m=n(o);m===p9?i(v,!0):v&&u(function(h){function y(){h.isCanceled()||i(v,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[f,o]};function Nne(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,m=r.onAppearStart,h=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,x=r.onAppearEnd,E=r.onEnterEnd,I=r.onLeaveEnd,R=r.onVisibleChanged,T=Zl(),_=ie(T,2),$=_[0],D=_[1],P=wne(us),A=ie(P,2),O=A[0],k=A[1],N=Zl(null),M=ie(N,2),L=M[0],F=M[1],j=O(),B=l.useRef(!1),z=l.useRef(null);function H(){return n()}var U=l.useRef(!1);function X(){k(us),F(null,!0)}var W=zt(function(ye){var pe=O();if(pe!==us){var J=H();if(!(ye&&!ye.deadline&&ye.target!==J)){var ce=U.current,ue;pe===fm&&ce?ue=x==null?void 0:x(J,ye):pe===pm&&ce?ue=E==null?void 0:E(J,ye):pe===gm&&ce&&(ue=I==null?void 0:I(J,ye)),ce&&ue!==!1&&X()}}}),Y=Ine(W),te=ie(Y,1),ee=te[0],Z=function(pe){switch(pe){case fm:return V(V(V({},ko,p),iu,m),su,b);case pm:return V(V(V({},ko,g),iu,h),su,S);case gm:return V(V(V({},ko,v),iu,y),su,C);default:return{}}},oe=l.useMemo(function(){return Z(j)},[j]),re=One(j,!e,function(ye){if(ye===ko){var pe=oe[ko];return pe?pe(H()):p9}if(ae in oe){var J;F(((J=oe[ae])===null||J===void 0?void 0:J.call(oe,H(),null))||null)}return ae===su&&j!==us&&(ee(H()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){W({deadline:!0})},d))),ae===i9&&X(),$ne}),q=ie(re,2),Q=q[0],ae=q[1],se=g9(ae);U.current=se,f9(function(){D(t);var ye=B.current;B.current=!0;var pe;!ye&&t&&s&&(pe=fm),ye&&t&&o&&(pe=pm),(ye&&!t&&u||!ye&&f&&!t&&u)&&(pe=gm);var J=Z(pe);pe&&(e||J[ko])?(k(pe),Q()):k(us)},[t]),l.useEffect(function(){(j===fm&&!s||j===pm&&!o||j===gm&&!u)&&k(us)},[s,o,u]),l.useEffect(function(){return function(){B.current=!1,clearTimeout(z.current)}},[]);var de=l.useRef(!1);l.useEffect(function(){$&&(de.current=!0),$!==void 0&&j===us&&((de.current||$)&&(R==null||R($)),de.current=!0)},[$,j]);var he=L;return oe[ko]&&ae===iu&&(he=K({transition:"none"},he)),[j,ae,he,$??t]}function kne(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,p=a.motionName,g=a.leavedClassName,v=a.eventProps,m=l.useContext(o9),h=m.motion,y=n(a,h),b=l.useRef(),S=l.useRef();function C(){try{return b.current instanceof HTMLElement?b.current:If(S.current)}catch{return null}}var x=Nne(y,s,C,a),E=ie(x,4),I=E[0],R=E[1],T=E[2],_=E[3],$=l.useRef(_);_&&($.current=!0);var D=l.useCallback(function(L){b.current=L,up(o,L)},[o]),P,A=K(K({},v),{},{visible:s});if(!f)P=null;else if(I===us)_?P=f(K({},A),D):!u&&$.current&&g?P=f(K(K({},A),{},{className:g}),D):d||!u&&!g?P=f(K(K({},A),{},{style:{display:"none"}}),D):P=null;else{var O;R===ko?O="prepare":g9(R)?O="active":R===iu&&(O="start");var k=NA(p,"".concat(I,"-").concat(O));P=f(K(K({},A),{},{className:ne(NA(p,I),V(V({},k,k&&O),p,typeof p=="string")),style:T}),D)}if(l.isValidElement(P)&&Ho(P)){var N=P,M=N.ref;M||(P=l.cloneElement(P,{ref:D}))}return l.createElement(Sne,{ref:S},P)});return r.displayName="CSSMotion",r}const qr=kne(d9);var JI="add",eT="keep",tT="remove",zy="removed";function Ane(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function nT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Ane)}function Mne(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=nT(e),i=nT(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==tT}),n.forEach(function(d){d.key===u&&(d.status=eT)})}),n}var Dne=["component","children","onVisibleChanged","onAllRemoved"],Pne=["status"],Lne=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Fne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr,n=function(r){Qa(o,r);var a=xo(o);function o(){var i;Ln(this,o);for(var s=arguments.length,c=new Array(s),u=0;unull;var zne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const Wne=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(mv=t),n!==void 0&&(m9=n),"holderRender"in e&&(v9=a),r&&(Vne(r)?Gte(Ch(),r):h9=r)},b9=()=>({getPrefixCls:(e,t)=>t||(e?`${Ch()}-${e}`:Ch()),getIconPrefixCls:Une,getRootPrefixCls:()=>mv||Ch(),getTheme:()=>h9,holderRender:v9}),Gne=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:m,parentContext:h,iconPrefixCls:y,theme:b,componentDisabled:S,segmented:C,statistic:x,spin:E,calendar:I,carousel:R,cascader:T,collapse:_,typography:$,checkbox:D,descriptions:P,divider:A,drawer:O,skeleton:k,steps:N,image:M,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:U,breadcrumb:X,menu:W,pagination:Y,input:te,textArea:ee,empty:Z,badge:oe,radio:re,rate:q,switch:Q,transfer:ae,avatar:se,message:de,tag:he,table:ye,card:pe,tabs:J,timeline:ce,timePicker:ue,upload:fe,notification:be,tree:Ee,colorPicker:Re,datePicker:Fe,rangePicker:Ce,flex:ze,wave:Pe,dropdown:Ae,warning:Se,tour:_e,floatButtonGroup:we,variant:Te,inputNumber:me,treeSelect:xe}=e,Be=l.useCallback((Ue,We)=>{const{prefixCls:Ke}=e;if(We)return We;const st=Ke||h.getPrefixCls("");return Ue?`${st}-${Ue}`:st},[h.getPrefixCls,e.prefixCls]),ke=y||h.iconPrefixCls||L_,Ne=n||h.csp;r9(ke,Ne);const He=vne(b,h.theme,{prefixCls:Be("")}),Ge={csp:Ne,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||m,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??p,popupOverflow:v,getPrefixCls:Be,iconPrefixCls:ke,theme:He,segmented:C,statistic:x,spin:E,calendar:I,carousel:R,cascader:T,collapse:_,typography:$,checkbox:D,descriptions:P,divider:A,drawer:O,skeleton:k,steps:N,image:M,input:te,textArea:ee,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:U,breadcrumb:X,menu:W,pagination:Y,empty:Z,badge:oe,radio:re,rate:q,switch:Q,transfer:ae,avatar:se,message:de,tag:he,table:ye,card:pe,tabs:J,timeline:ce,timePicker:ue,upload:fe,notification:be,tree:Ee,colorPicker:Re,datePicker:Fe,rangePicker:Ce,flex:ze,wave:Pe,dropdown:Ae,warning:Se,tour:_e,floatButtonGroup:we,variant:Te,inputNumber:me,treeSelect:xe},je=Object.assign({},h);Object.keys(Ge).forEach(Ue=>{Ge[Ue]!==void 0&&(je[Ue]=Ge[Ue])}),Hne.forEach(Ue=>{const We=e[Ue];We&&(je[Ue]=We)}),typeof r<"u"&&(je.button=Object.assign({autoInsertSpace:r},je.button));const qe=Qs(()=>je,je,(Ue,We)=>{const Ke=Object.keys(Ue),st=Object.keys(We);return Ke.length!==st.length||Ke.some(Tt=>Ue[Tt]!==We[Tt])}),tt=l.useMemo(()=>({prefixCls:ke,csp:Ne}),[ke,Ne]);let Ye=l.createElement(l.Fragment,null,l.createElement(Bne,{dropdownMatchSelectWidth:p}),t);const ft=l.useMemo(()=>{var Ue,We,Ke,st;return ou(((Ue=ui.Form)===null||Ue===void 0?void 0:Ue.defaultValidateMessages)||{},((Ke=(We=qe.locale)===null||We===void 0?void 0:We.Form)===null||Ke===void 0?void 0:Ke.defaultValidateMessages)||{},((st=qe.form)===null||st===void 0?void 0:st.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[qe,i==null?void 0:i.validateMessages]);Object.keys(ft).length>0&&(Ye=l.createElement(Bz.Provider,{value:ft},Ye)),s&&(Ye=l.createElement(yte,{locale:s,_ANT_MARK__:bte},Ye)),(ke||Ne)&&(Ye=l.createElement(M_.Provider,{value:tt},Ye)),c&&(Ye=l.createElement(qte,{size:c},Ye)),Ye=l.createElement(jne,null,Ye);const ht=l.useMemo(()=>{const Ue=He||{},{algorithm:We,token:Ke,components:st,cssVar:Tt}=Ue,Rt=zne(Ue,["algorithm","token","components","cssVar"]),Ft=We&&(!Array.isArray(We)||We.length>0)?gp(We):Xz,pt={};Object.entries(st||{}).forEach(Je=>{let[ut,It]=Je;const at=Object.assign({},It);"algorithm"in at&&(at.algorithm===!0?at.theme=Ft:(Array.isArray(at.algorithm)||typeof at.algorithm=="function")&&(at.theme=gp(at.algorithm)),delete at.algorithm),pt[ut]=at});const lt=Object.assign(Object.assign({},Fu),Ke);return Object.assign(Object.assign({},Rt),{theme:Ft,token:lt,components:pt,override:Object.assign({override:lt},pt),cssVar:Tt})},[He]);return b&&(Ye=l.createElement(Zz.Provider,{value:ht},Ye)),qe.warning&&(Ye=l.createElement(gte.Provider,{value:qe.warning},Ye)),S!==void 0&&(Ye=l.createElement(F_,{disabled:S},Ye)),l.createElement(ct.Provider,{value:qe},Ye)},Ko=e=>{const t=l.useContext(ct),n=l.useContext(D_);return l.createElement(Gne,Object.assign({parentContext:t,legacyLocale:n},e))};Ko.ConfigContext=ct;Ko.SizeContext=Xl;Ko.config=Wne;Ko.useConfig=Kte;Object.defineProperty(Ko,"SizeContext",{get:()=>Xl});var qne={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"};function y9(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Kne(e){return y9(e)instanceof ShadowRoot}function hv(e){return Kne(e)?y9(e):null}function Yne(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Xne(e,t){pn(e,"[@ant-design/icons] ".concat(t))}function kA(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function AA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Yne(n)]=r}return t},{})}function rT(e,t,n){return n?le.createElement(e.tag,K(K({key:t},AA(e.attrs)),n),(e.children||[]).map(function(r,a){return rT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):le.createElement(e.tag,K({key:t},AA(e.attrs)),(e.children||[]).map(function(r,a){return rT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function S9(e){return Yl(e)[0]}function w9(e){return e?Array.isArray(e)?e:[e]:[]}var Zne=` .anticon { display: inline-flex; align-items: center; @@ -149,7 +149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,Qne=function(t){var n=l.useContext(M_),r=n.csp,a=n.prefixCls,o=Zne;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=hv(i);ji(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Jne=["icon","className","onClick","style","primaryColor","secondaryColor"],_f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ere(e){var t=e.primaryColor,n=e.secondaryColor;_f.primaryColor=t,_f.secondaryColor=n||S9(t),_f.calculated=!!n}function tre(){return K({},_f)}var rd=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=xt(t,Jne),u=l.useRef(),d=_f;if(i&&(d={primaryColor:i,secondaryColor:s||S9(i)}),Qne(u),Xne(kA(n),"icon should be icon definiton, but got ".concat(n)),!kA(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=K(K({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),rT(f.icon,"svg-".concat(f.name),K(K({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};rd.displayName="IconReact";rd.getTwoToneColors=tre;rd.setTwoToneColors=ere;function C9(e){var t=w9(e),n=ie(t,2),r=n[0],a=n[1];return rd.setTwoToneColors({primaryColor:r,secondaryColor:a})}function nre(){var e=rd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var rre=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];C9(Lu.primary);var nt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=xt(e,rre),d=l.useContext(M_),f=d.prefixCls,p=f===void 0?"anticon":f,g=d.rootClassName,v=ne(g,p,V(V({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),m=i;m===void 0&&s&&(m=-1);var h=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=w9(c),b=ie(y,2),S=b[0],C=b[1];return l.createElement("span",ve({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:s,className:v}),l.createElement(rd,{icon:r,primaryColor:S,secondaryColor:C,style:h}))});nt.displayName="AntdIcon";nt.getTwoToneColor=nre;nt.setTwoToneColor=C9;var are=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:qne}))},eg=l.forwardRef(are),ore={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"},ire=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:ore}))},uc=l.forwardRef(ire),sre={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"},lre=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:sre}))},da=l.forwardRef(lre),cre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},ure=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:cre}))},$b=l.forwardRef(ure),dre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},fre=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:dre}))},U_=l.forwardRef(fre),pre=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,Qne=function(t){var n=l.useContext(M_),r=n.csp,a=n.prefixCls,o=Zne;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=hv(i);ji(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Jne=["icon","className","onClick","style","primaryColor","secondaryColor"],_f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ere(e){var t=e.primaryColor,n=e.secondaryColor;_f.primaryColor=t,_f.secondaryColor=n||S9(t),_f.calculated=!!n}function tre(){return K({},_f)}var rd=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=xt(t,Jne),u=l.useRef(),d=_f;if(i&&(d={primaryColor:i,secondaryColor:s||S9(i)}),Qne(u),Xne(kA(n),"icon should be icon definiton, but got ".concat(n)),!kA(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=K(K({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),rT(f.icon,"svg-".concat(f.name),K(K({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};rd.displayName="IconReact";rd.getTwoToneColors=tre;rd.setTwoToneColors=ere;function C9(e){var t=w9(e),n=ie(t,2),r=n[0],a=n[1];return rd.setTwoToneColors({primaryColor:r,secondaryColor:a})}function nre(){var e=rd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var rre=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];C9(Lu.primary);var rt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=xt(e,rre),d=l.useContext(M_),f=d.prefixCls,p=f===void 0?"anticon":f,g=d.rootClassName,v=ne(g,p,V(V({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),m=i;m===void 0&&s&&(m=-1);var h=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=w9(c),b=ie(y,2),S=b[0],C=b[1];return l.createElement("span",ve({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:s,className:v}),l.createElement(rd,{icon:r,primaryColor:S,secondaryColor:C,style:h}))});rt.displayName="AntdIcon";rt.getTwoToneColor=nre;rt.setTwoToneColor=C9;var are=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:qne}))},eg=l.forwardRef(are),ore={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"},ire=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:ore}))},uc=l.forwardRef(ire),sre={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"},lre=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:sre}))},da=l.forwardRef(lre),cre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},ure=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:cre}))},$b=l.forwardRef(ure),dre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},fre=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:dre}))},U_=l.forwardRef(fre),pre=`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 @@ -166,31 +166,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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`,mre="".concat(pre," ").concat(gre).split(/[\s\n]+/),hre="aria-",vre="data-";function MA(e,t){return e.indexOf(t)===0}function Mn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=K({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||MA(a,hre))||n.data&&MA(a,vre)||n.attr&&mre.includes(a))&&(r[a]=e[a])}),r}function x9(e){return e&&le.isValidElement(e)&&e.type===le.Fragment}const V_=(e,t,n)=>le.isValidElement(e)?le.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function ur(e,t){return V_(e,e,t)}const hm=(e,t,n,r,a)=>({background:e,border:`${G(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),bre=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:g,defaultPadding:v}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",display:"flex",alignItems:"center",padding:v,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,mre="".concat(pre," ").concat(gre).split(/[\s\n]+/),hre="aria-",vre="data-";function MA(e,t){return e.indexOf(t)===0}function Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=K({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||MA(a,hre))||n.data&&MA(a,vre)||n.attr&&mre.includes(a))&&(r[a]=e[a])}),r}function x9(e){return e&&le.isValidElement(e)&&e.type===le.Fragment}const V_=(e,t,n)=>le.isValidElement(e)?le.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function ur(e,t){return V_(e,e,t)}const hm=(e,t,n,r,a)=>({background:e,border:`${G(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),bre=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:g,defaultPadding:v}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{position:"relative",display:"flex",alignItems:"center",padding:v,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},yre=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:g}=e;return{[t]:{"&-success":hm(a,r,n,e,t),"&-info":hm(g,p,f,e,t),"&-warning":hm(s,i,o,e,t),"&-error":Object.assign(Object.assign({},hm(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Sre=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:G(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},wre=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Cre=nn("Alert",e=>[bre(e),yre(e),Sre(e)],wre);var DA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=xre[r]||null;return t?V_(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ne(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(a,{className:`${n}-icon`})},Ire=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?l.createElement(da,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},E9=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:g,closable:v,closeText:m,closeIcon:h,action:y,id:b}=e,S=DA(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,x]=l.useState(!1),E=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:I,direction:R,alert:T}=l.useContext(it),_=I("alert",r),[$,D,P]=Cre(_),A=B=>{var z;x(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},O=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),k=l.useMemo(()=>typeof v=="object"&&v.closeIcon||m?!0:typeof v=="boolean"?v:h!==!1&&h!==null&&h!==void 0?!0:!!(T!=null&&T.closable),[m,h,v,T==null?void 0:T.closable]),N=o&&g===void 0?!0:g,M=ne(_,`${_}-${O}`,{[`${_}-with-description`]:!!n,[`${_}-no-icon`]:!N,[`${_}-banner`]:!!o,[`${_}-rtl`]:R==="rtl"},T==null?void 0:T.className,i,s,P,D),L=Mn(S,{aria:!0,data:!0}),F=l.useMemo(()=>{var B,z;return typeof v=="object"&&v.closeIcon?v.closeIcon:m||(h!==void 0?h:typeof(T==null?void 0:T.closable)=="object"&&(!((B=T==null?void 0:T.closable)===null||B===void 0)&&B.closeIcon)?(z=T==null?void 0:T.closable)===null||z===void 0?void 0:z.closeIcon:T==null?void 0:T.closeIcon)},[h,v,m,T==null?void 0:T.closeIcon]),j=l.useMemo(()=>{const B=v??(T==null?void 0:T.closable);return typeof B=="object"?DA(B,["closeIcon"]):{}},[v,T==null?void 0:T.closable]);return $(l.createElement(qr,{visible:!C,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,z)=>{let{className:H,style:U}=B;return l.createElement("div",Object.assign({id:b,ref:Pr(E,z),"data-show":!C,className:ne(M,H),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),c),U),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},L),N?l.createElement(Ere,{description:n,icon:e.icon,prefixCls:_,type:O}):null,l.createElement("div",{className:`${_}-content`},a?l.createElement("div",{className:`${_}-message`},a):null,n?l.createElement("div",{className:`${_}-description`},n):null),y?l.createElement("div",{className:`${_}-action`},y):null,l.createElement(Ire,{isClosable:k,prefixCls:_,closeIcon:F,handleClose:A,ariaProps:j}))}))});function Tre(e,t,n){return t=Kl(t),cz(e,Cb()?Reflect.construct(t,n||[],Kl(e).constructor):t.apply(e,n))}let Rre=function(e){function t(){var n;return Dn(this,t),n=Tre(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Qa(t,e),Pn(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof a>"u"?u:a;return s?l.createElement(E9,{id:o,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])}(l.Component);const Mr=E9;Mr.ErrorBoundary=Rre;const PA=e=>typeof e=="object"&&e!=null&&e.nodeType===1,LA=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Hy=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&s>=n?o-e-r:i>t&&sn?i-t+a:0,_re=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},FA=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:k=>k!==u;if(!PA(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,g=[];let v=e;for(;PA(v)&&f(v);){if(v=_re(v),v===p){g.push(v);break}v!=null&&v===document.body&&Hy(v)&&!Hy(document.documentElement)||v!=null&&Hy(v,d)&&g.push(v)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:y,scrollY:b}=window,{height:S,width:C,top:x,right:E,bottom:I,left:R}=e.getBoundingClientRect(),{top:T,right:_,bottom:$,left:D}=(k=>{const N=window.getComputedStyle(k);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?x-T:s==="end"?I+$:x+S/2-T+$,A=c==="center"?R+C/2-D+_:c==="end"?E+_:R-D;const O=[];for(let k=0;k=0&&R>=0&&I<=h&&E<=m&&x>=F&&I<=B&&R>=z&&E<=j)return O;const H=getComputedStyle(N),U=parseInt(H.borderLeftWidth,10),X=parseInt(H.borderTopWidth,10),W=parseInt(H.borderRightWidth,10),Y=parseInt(H.borderBottomWidth,10);let te=0,ee=0;const Z="offsetWidth"in N?N.offsetWidth-N.clientWidth-U-W:0,oe="offsetHeight"in N?N.offsetHeight-N.clientHeight-X-Y:0,re="offsetWidth"in N?N.offsetWidth===0?0:L/N.offsetWidth:0,q="offsetHeight"in N?N.offsetHeight===0?0:M/N.offsetHeight:0;if(p===N)te=s==="start"?P:s==="end"?P-h:s==="nearest"?vm(b,b+h,h,X,Y,b+P,b+P+S,S):P-h/2,ee=c==="start"?A:c==="center"?A-m/2:c==="end"?A-m:vm(y,y+m,m,U,W,y+A,y+A+C,C),te=Math.max(0,te+b),ee=Math.max(0,ee+y);else{te=s==="start"?P-F-X:s==="end"?P-B+Y+oe:s==="nearest"?vm(F,B,M,X,Y+oe,P,P+S,S):P-(F+M/2)+oe/2,ee=c==="start"?A-z-U:c==="center"?A-(z+L/2)+Z/2:c==="end"?A-j+W+Z:vm(z,j,L,U,W+Z,A,A+C,C);const{scrollLeft:Q,scrollTop:ae}=N;te=q===0?0:Math.max(0,Math.min(ae+te/q,N.scrollHeight-M/q+oe)),ee=re===0?0:Math.max(0,Math.min(Q+ee/re,N.scrollWidth-L/re+Z)),P+=ae-te,A+=Q-ee}O.push({el:N,top:te,left:ee})}return O},$re=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Ore(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(FA(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of FA(e,$re(t))){const s=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:s,left:c,behavior:r})}}function aT(e){return e!=null&&e===e.window}const Nre=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return aT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!aT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function kre(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Are(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=Nre(o),s=Date.now(),c=()=>{const d=Date.now()-s,f=kre(d>a?a:d,i,e,a);aT(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=Lr();return t?`${e}-css-var`:""};var Me={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 n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Me.F1&&n<=Me.F12)return!1;switch(n){case Me.ALT:case Me.CAPS_LOCK:case Me.CONTEXT_MENU:case Me.CTRL:case Me.DOWN:case Me.END:case Me.ESC:case Me.HOME:case Me.INSERT:case Me.LEFT:case Me.MAC_FF_META:case Me.META:case Me.NUMLOCK:case Me.NUM_CENTER:case Me.PAGE_DOWN:case Me.PAGE_UP:case Me.PAUSE:case Me.PRINT_SCREEN:case Me.RIGHT:case Me.SHIFT:case Me.UP:case Me.WIN_KEY:case Me.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Me.ZERO&&t<=Me.NINE||t>=Me.NUM_ZERO&&t<=Me.NUM_MULTIPLY||t>=Me.A&&t<=Me.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Me.SPACE:case Me.QUESTION_MARK:case Me.NUM_PLUS:case Me.NUM_MINUS:case Me.NUM_PERIOD:case Me.NUM_DIVISION:case Me.SEMICOLON:case Me.DASH:case Me.EQUALS:case Me.COMMA:case Me.PERIOD:case Me.SLASH:case Me.APOSTROPHE:case Me.SINGLE_QUOTE:case Me.OPEN_SQUARE_BRACKET:case Me.BACKSLASH:case Me.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},I9=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,p=e.closable,g=e.closeIcon,v=g===void 0?"x":g,m=e.props,h=e.onClick,y=e.onNoticeClose,b=e.times,S=e.hovering,C=l.useState(!1),x=ie(C,2),E=x[0],I=x[1],R=l.useState(0),T=ie(R,2),_=T[0],$=T[1],D=l.useState(0),P=ie(D,2),A=P[0],O=P[1],k=S||E,N=i>0&&s,M=function(){y(d)},L=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===Me.ENTER)&&M()};l.useEffect(function(){if(!k&&i>0){var H=Date.now()-A,U=setTimeout(function(){M()},i*1e3-A);return function(){u&&clearTimeout(U),O(Date.now()-H)}}},[i,k,b]),l.useEffect(function(){if(!k&&N&&(u||A===0)){var H=performance.now(),U,X=function W(){cancelAnimationFrame(U),U=requestAnimationFrame(function(Y){var te=Y+A-H,ee=Math.min(te/(i*1e3),1);$(ee*100),ee<1&&W()})};return X(),function(){u&&cancelAnimationFrame(U)}}},[i,A,k,N,b]);var F=l.useMemo(function(){return ht(p)==="object"&&p!==null?p:p?{closeIcon:v}:{}},[p,v]),j=Mn(F,!0),B=100-(!_||_<0?0:_>100?100:_),z="".concat(n,"-notice");return l.createElement("div",ve({},m,{ref:t,className:ne(z,a,V({},"".concat(z,"-closable"),p)),style:r,onMouseEnter:function(U){var X;I(!0),m==null||(X=m.onMouseEnter)===null||X===void 0||X.call(m,U)},onMouseLeave:function(U){var X;I(!1),m==null||(X=m.onMouseLeave)===null||X===void 0||X.call(m,U)},onClick:h}),l.createElement("div",{className:"".concat(z,"-content")},f),p&&l.createElement("a",ve({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},j,{onClick:function(U){U.preventDefault(),U.stopPropagation(),M()}}),F.closeIcon),N&&l.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}),T9=le.createContext({}),Mre=function(t){var n=t.children,r=t.classNames;return le.createElement(T9.Provider,{value:{classNames:r}},n)},jA=8,BA=3,zA=16,Dre=function(t){var n={offset:jA,threshold:BA,gap:zA};if(t&&ht(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:jA,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:BA,n.gap=(o=t.gap)!==null&&o!==void 0?o:zA}return[!!t,n]},Pre=["className","style","classNames","styles"],Lre=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(T9),p=f.classNames,g=l.useRef({}),v=l.useState(null),m=ie(v,2),h=m[0],y=m[1],b=l.useState([]),S=ie(b,2),C=S[0],x=S[1],E=n.map(function(k){return{config:k,key:String(k.key)}}),I=Dre(d),R=ie(I,2),T=R[0],_=R[1],$=_.offset,D=_.threshold,P=_.gap,A=T&&(C.length>0||E.length<=D),O=typeof s=="function"?s(r):s;return l.useEffect(function(){T&&C.length>1&&x(function(k){return k.filter(function(N){return E.some(function(M){var L=M.key;return N===L})})})},[C,E,T]),l.useEffect(function(){var k;if(T&&g.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key]){var N;y(g.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key])}},[E,T]),le.createElement(H_,ve({key:r,className:ne(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,o,V(V({},"".concat(a,"-stack"),!!T),"".concat(a,"-stack-expanded"),A)),style:i,keys:E,motionAppear:!0},O,{onAllRemoved:function(){c(r)}}),function(k,N){var M=k.config,L=k.className,F=k.style,j=k.index,B=M,z=B.key,H=B.times,U=String(z),X=M,W=X.className,Y=X.style,te=X.classNames,ee=X.styles,Z=xt(X,Pre),oe=E.findIndex(function(ue){return ue.key===U}),re={};if(T){var q=E.length-1-(oe>-1?oe:j-1),Q=r==="top"||r==="bottom"?"-50%":"0";if(q>0){var ae,se,de;re.height=A?(ae=g.current[U])===null||ae===void 0?void 0:ae.offsetHeight:h==null?void 0:h.offsetHeight;for(var he=0,ye=0;ye-1?g.current[U]=fe:delete g.current[U]},prefixCls:a,classNames:te,styles:ee,className:ne(W,p==null?void 0:p.notice),style:Y,times:H,key:z,eventKey:z,onNoticeClose:u,hovering:T&&C.length>0})))})},Fre=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=l.useState([]),g=ie(p,2),v=g[0],m=g[1],h=function(T){var _,$=v.find(function(D){return D.key===T});$==null||(_=$.onClose)===null||_===void 0||_.call($),m(function(D){return D.filter(function(P){return P.key!==T})})};l.useImperativeHandle(t,function(){return{open:function(T){m(function(_){var $=Oe(_),D=$.findIndex(function(O){return O.key===T.key}),P=K({},T);if(D>=0){var A;P.times=(((A=_[D])===null||A===void 0?void 0:A.times)||0)+1,$[D]=P}else P.times=0,$.push(P);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(T){h(T)},destroy:function(){m([])}}});var y=l.useState({}),b=ie(y,2),S=b[0],C=b[1];l.useEffect(function(){var R={};v.forEach(function(T){var _=T.placement,$=_===void 0?"topRight":_;$&&(R[$]=R[$]||[],R[$].push(T))}),Object.keys(S).forEach(function(T){R[T]=R[T]||[]}),C(R)},[v]);var x=function(T){C(function(_){var $=K({},_),D=$[T]||[];return D.length||delete $[T],$})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(S).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[S]),!a)return null;var I=Object.keys(S);return xr.createPortal(l.createElement(l.Fragment,null,I.map(function(R){var T=S[R],_=l.createElement(Lre,{key:R,configList:T,placement:R,prefixCls:r,className:s==null?void 0:s(R),style:c==null?void 0:c(R),motion:o,onNoticeClose:h,onAllNoticeRemoved:x,stack:d});return f?f(_,{prefixCls:r,key:R}):_})),a)}),jre=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Bre=function(){return document.body},HA=0;function zre(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Bre:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=xt(e,jre),p=l.useState(),g=ie(p,2),v=g[0],m=g[1],h=l.useRef(),y=l.createElement(Fre,{container:v,ref:h,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),b=l.useState([]),S=ie(b,2),C=S[0],x=S[1],E=l.useMemo(function(){return{open:function(R){var T=zre(f,R);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(HA),HA+=1),x(function(_){return[].concat(Oe(_),[{type:"open",config:T}])})},close:function(R){x(function(T){return[].concat(Oe(T),[{type:"close",key:R}])})},destroy:function(){x(function(R){return[].concat(Oe(R),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){m(n())}),l.useEffect(function(){h.current&&C.length&&(C.forEach(function(I){switch(I.type){case"open":h.current.open(I.config);break;case"close":h.current.close(I.key);break;case"destroy":h.current.destroy();break}}),x(function(I){return I.filter(function(R){return!C.includes(R)})}))},[C]),[E,y]}var Ure={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"},Vre=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Ure}))},Gi=l.forwardRef(Vre);const tg=le.createContext(void 0),vl=100,Wre=10,R9=vl*Wre,_9={Modal:vl,Drawer:vl,Popover:vl,Popconfirm:vl,Tooltip:vl,Tour:vl},Gre={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function qre(e){return e in _9}function Ji(e,t){const[,n]=Lr(),r=le.useContext(tg),a=qre(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+_9[e]:i+=Gre[e],o=[r===void 0?t:i,i]}return o}const Kre=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:g,borderRadiusLG:v,zIndexPopup:m,contentPadding:h,contentBg:y}=e,b=`${t}-notice`,S=new sn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),C=new sn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:h,background:y,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Qt(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},yre=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:g}=e;return{[t]:{"&-success":hm(a,r,n,e,t),"&-info":hm(g,p,f,e,t),"&-warning":hm(s,i,o,e,t),"&-error":Object.assign(Object.assign({},hm(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Sre=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:G(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},wre=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Cre=tn("Alert",e=>[bre(e),yre(e),Sre(e)],wre);var DA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=xre[r]||null;return t?V_(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ne(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(a,{className:`${n}-icon`})},Ire=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?l.createElement(da,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},E9=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:g,closable:v,closeText:m,closeIcon:h,action:y,id:b}=e,S=DA(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,x]=l.useState(!1),E=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:I,direction:R,alert:T}=l.useContext(ct),_=I("alert",r),[$,D,P]=Cre(_),A=B=>{var z;x(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},O=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),k=l.useMemo(()=>typeof v=="object"&&v.closeIcon||m?!0:typeof v=="boolean"?v:h!==!1&&h!==null&&h!==void 0?!0:!!(T!=null&&T.closable),[m,h,v,T==null?void 0:T.closable]),N=o&&g===void 0?!0:g,M=ne(_,`${_}-${O}`,{[`${_}-with-description`]:!!n,[`${_}-no-icon`]:!N,[`${_}-banner`]:!!o,[`${_}-rtl`]:R==="rtl"},T==null?void 0:T.className,i,s,P,D),L=Pn(S,{aria:!0,data:!0}),F=l.useMemo(()=>{var B,z;return typeof v=="object"&&v.closeIcon?v.closeIcon:m||(h!==void 0?h:typeof(T==null?void 0:T.closable)=="object"&&(!((B=T==null?void 0:T.closable)===null||B===void 0)&&B.closeIcon)?(z=T==null?void 0:T.closable)===null||z===void 0?void 0:z.closeIcon:T==null?void 0:T.closeIcon)},[h,v,m,T==null?void 0:T.closeIcon]),j=l.useMemo(()=>{const B=v??(T==null?void 0:T.closable);return typeof B=="object"?DA(B,["closeIcon"]):{}},[v,T==null?void 0:T.closable]);return $(l.createElement(qr,{visible:!C,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,z)=>{let{className:H,style:U}=B;return l.createElement("div",Object.assign({id:b,ref:Pr(E,z),"data-show":!C,className:ne(M,H),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),c),U),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},L),N?l.createElement(Ere,{description:n,icon:e.icon,prefixCls:_,type:O}):null,l.createElement("div",{className:`${_}-content`},a?l.createElement("div",{className:`${_}-message`},a):null,n?l.createElement("div",{className:`${_}-description`},n):null),y?l.createElement("div",{className:`${_}-action`},y):null,l.createElement(Ire,{isClosable:k,prefixCls:_,closeIcon:F,handleClose:A,ariaProps:j}))}))});function Tre(e,t,n){return t=Kl(t),cz(e,Cb()?Reflect.construct(t,n||[],Kl(e).constructor):t.apply(e,n))}let Rre=function(e){function t(){var n;return Ln(this,t),n=Tre(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Qa(t,e),Fn(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof a>"u"?u:a;return s?l.createElement(E9,{id:o,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])}(l.Component);const Mr=E9;Mr.ErrorBoundary=Rre;const PA=e=>typeof e=="object"&&e!=null&&e.nodeType===1,LA=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Hy=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&s>=n?o-e-r:i>t&&sn?i-t+a:0,_re=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},FA=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:k=>k!==u;if(!PA(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,g=[];let v=e;for(;PA(v)&&f(v);){if(v=_re(v),v===p){g.push(v);break}v!=null&&v===document.body&&Hy(v)&&!Hy(document.documentElement)||v!=null&&Hy(v,d)&&g.push(v)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:y,scrollY:b}=window,{height:S,width:C,top:x,right:E,bottom:I,left:R}=e.getBoundingClientRect(),{top:T,right:_,bottom:$,left:D}=(k=>{const N=window.getComputedStyle(k);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?x-T:s==="end"?I+$:x+S/2-T+$,A=c==="center"?R+C/2-D+_:c==="end"?E+_:R-D;const O=[];for(let k=0;k=0&&R>=0&&I<=h&&E<=m&&x>=F&&I<=B&&R>=z&&E<=j)return O;const H=getComputedStyle(N),U=parseInt(H.borderLeftWidth,10),X=parseInt(H.borderTopWidth,10),W=parseInt(H.borderRightWidth,10),Y=parseInt(H.borderBottomWidth,10);let te=0,ee=0;const Z="offsetWidth"in N?N.offsetWidth-N.clientWidth-U-W:0,oe="offsetHeight"in N?N.offsetHeight-N.clientHeight-X-Y:0,re="offsetWidth"in N?N.offsetWidth===0?0:L/N.offsetWidth:0,q="offsetHeight"in N?N.offsetHeight===0?0:M/N.offsetHeight:0;if(p===N)te=s==="start"?P:s==="end"?P-h:s==="nearest"?vm(b,b+h,h,X,Y,b+P,b+P+S,S):P-h/2,ee=c==="start"?A:c==="center"?A-m/2:c==="end"?A-m:vm(y,y+m,m,U,W,y+A,y+A+C,C),te=Math.max(0,te+b),ee=Math.max(0,ee+y);else{te=s==="start"?P-F-X:s==="end"?P-B+Y+oe:s==="nearest"?vm(F,B,M,X,Y+oe,P,P+S,S):P-(F+M/2)+oe/2,ee=c==="start"?A-z-U:c==="center"?A-(z+L/2)+Z/2:c==="end"?A-j+W+Z:vm(z,j,L,U,W+Z,A,A+C,C);const{scrollLeft:Q,scrollTop:ae}=N;te=q===0?0:Math.max(0,Math.min(ae+te/q,N.scrollHeight-M/q+oe)),ee=re===0?0:Math.max(0,Math.min(Q+ee/re,N.scrollWidth-L/re+Z)),P+=ae-te,A+=Q-ee}O.push({el:N,top:te,left:ee})}return O},$re=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Ore(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(FA(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of FA(e,$re(t))){const s=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:s,left:c,behavior:r})}}function aT(e){return e!=null&&e===e.window}const Nre=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return aT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!aT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function kre(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Are(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=Nre(o),s=Date.now(),c=()=>{const d=Date.now()-s,f=kre(d>a?a:d,i,e,a);aT(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=Lr();return t?`${e}-css-var`:""};var De={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 n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=De.F1&&n<=De.F12)return!1;switch(n){case De.ALT:case De.CAPS_LOCK:case De.CONTEXT_MENU:case De.CTRL:case De.DOWN:case De.END:case De.ESC:case De.HOME:case De.INSERT:case De.LEFT:case De.MAC_FF_META:case De.META:case De.NUMLOCK:case De.NUM_CENTER:case De.PAGE_DOWN:case De.PAGE_UP:case De.PAUSE:case De.PRINT_SCREEN:case De.RIGHT:case De.SHIFT:case De.UP:case De.WIN_KEY:case De.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=De.ZERO&&t<=De.NINE||t>=De.NUM_ZERO&&t<=De.NUM_MULTIPLY||t>=De.A&&t<=De.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case De.SPACE:case De.QUESTION_MARK:case De.NUM_PLUS:case De.NUM_MINUS:case De.NUM_PERIOD:case De.NUM_DIVISION:case De.SEMICOLON:case De.DASH:case De.EQUALS:case De.COMMA:case De.PERIOD:case De.SLASH:case De.APOSTROPHE:case De.SINGLE_QUOTE:case De.OPEN_SQUARE_BRACKET:case De.BACKSLASH:case De.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},I9=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,p=e.closable,g=e.closeIcon,v=g===void 0?"x":g,m=e.props,h=e.onClick,y=e.onNoticeClose,b=e.times,S=e.hovering,C=l.useState(!1),x=ie(C,2),E=x[0],I=x[1],R=l.useState(0),T=ie(R,2),_=T[0],$=T[1],D=l.useState(0),P=ie(D,2),A=P[0],O=P[1],k=S||E,N=i>0&&s,M=function(){y(d)},L=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===De.ENTER)&&M()};l.useEffect(function(){if(!k&&i>0){var H=Date.now()-A,U=setTimeout(function(){M()},i*1e3-A);return function(){u&&clearTimeout(U),O(Date.now()-H)}}},[i,k,b]),l.useEffect(function(){if(!k&&N&&(u||A===0)){var H=performance.now(),U,X=function W(){cancelAnimationFrame(U),U=requestAnimationFrame(function(Y){var te=Y+A-H,ee=Math.min(te/(i*1e3),1);$(ee*100),ee<1&&W()})};return X(),function(){u&&cancelAnimationFrame(U)}}},[i,A,k,N,b]);var F=l.useMemo(function(){return mt(p)==="object"&&p!==null?p:p?{closeIcon:v}:{}},[p,v]),j=Pn(F,!0),B=100-(!_||_<0?0:_>100?100:_),z="".concat(n,"-notice");return l.createElement("div",ve({},m,{ref:t,className:ne(z,a,V({},"".concat(z,"-closable"),p)),style:r,onMouseEnter:function(U){var X;I(!0),m==null||(X=m.onMouseEnter)===null||X===void 0||X.call(m,U)},onMouseLeave:function(U){var X;I(!1),m==null||(X=m.onMouseLeave)===null||X===void 0||X.call(m,U)},onClick:h}),l.createElement("div",{className:"".concat(z,"-content")},f),p&&l.createElement("a",ve({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},j,{onClick:function(U){U.preventDefault(),U.stopPropagation(),M()}}),F.closeIcon),N&&l.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}),T9=le.createContext({}),Mre=function(t){var n=t.children,r=t.classNames;return le.createElement(T9.Provider,{value:{classNames:r}},n)},jA=8,BA=3,zA=16,Dre=function(t){var n={offset:jA,threshold:BA,gap:zA};if(t&&mt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:jA,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:BA,n.gap=(o=t.gap)!==null&&o!==void 0?o:zA}return[!!t,n]},Pre=["className","style","classNames","styles"],Lre=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(T9),p=f.classNames,g=l.useRef({}),v=l.useState(null),m=ie(v,2),h=m[0],y=m[1],b=l.useState([]),S=ie(b,2),C=S[0],x=S[1],E=n.map(function(k){return{config:k,key:String(k.key)}}),I=Dre(d),R=ie(I,2),T=R[0],_=R[1],$=_.offset,D=_.threshold,P=_.gap,A=T&&(C.length>0||E.length<=D),O=typeof s=="function"?s(r):s;return l.useEffect(function(){T&&C.length>1&&x(function(k){return k.filter(function(N){return E.some(function(M){var L=M.key;return N===L})})})},[C,E,T]),l.useEffect(function(){var k;if(T&&g.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key]){var N;y(g.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key])}},[E,T]),le.createElement(H_,ve({key:r,className:ne(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,o,V(V({},"".concat(a,"-stack"),!!T),"".concat(a,"-stack-expanded"),A)),style:i,keys:E,motionAppear:!0},O,{onAllRemoved:function(){c(r)}}),function(k,N){var M=k.config,L=k.className,F=k.style,j=k.index,B=M,z=B.key,H=B.times,U=String(z),X=M,W=X.className,Y=X.style,te=X.classNames,ee=X.styles,Z=xt(X,Pre),oe=E.findIndex(function(ue){return ue.key===U}),re={};if(T){var q=E.length-1-(oe>-1?oe:j-1),Q=r==="top"||r==="bottom"?"-50%":"0";if(q>0){var ae,se,de;re.height=A?(ae=g.current[U])===null||ae===void 0?void 0:ae.offsetHeight:h==null?void 0:h.offsetHeight;for(var he=0,ye=0;ye-1?g.current[U]=fe:delete g.current[U]},prefixCls:a,classNames:te,styles:ee,className:ne(W,p==null?void 0:p.notice),style:Y,times:H,key:z,eventKey:z,onNoticeClose:u,hovering:T&&C.length>0})))})},Fre=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=l.useState([]),g=ie(p,2),v=g[0],m=g[1],h=function(T){var _,$=v.find(function(D){return D.key===T});$==null||(_=$.onClose)===null||_===void 0||_.call($),m(function(D){return D.filter(function(P){return P.key!==T})})};l.useImperativeHandle(t,function(){return{open:function(T){m(function(_){var $=Oe(_),D=$.findIndex(function(O){return O.key===T.key}),P=K({},T);if(D>=0){var A;P.times=(((A=_[D])===null||A===void 0?void 0:A.times)||0)+1,$[D]=P}else P.times=0,$.push(P);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(T){h(T)},destroy:function(){m([])}}});var y=l.useState({}),b=ie(y,2),S=b[0],C=b[1];l.useEffect(function(){var R={};v.forEach(function(T){var _=T.placement,$=_===void 0?"topRight":_;$&&(R[$]=R[$]||[],R[$].push(T))}),Object.keys(S).forEach(function(T){R[T]=R[T]||[]}),C(R)},[v]);var x=function(T){C(function(_){var $=K({},_),D=$[T]||[];return D.length||delete $[T],$})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(S).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[S]),!a)return null;var I=Object.keys(S);return xr.createPortal(l.createElement(l.Fragment,null,I.map(function(R){var T=S[R],_=l.createElement(Lre,{key:R,configList:T,placement:R,prefixCls:r,className:s==null?void 0:s(R),style:c==null?void 0:c(R),motion:o,onNoticeClose:h,onAllNoticeRemoved:x,stack:d});return f?f(_,{prefixCls:r,key:R}):_})),a)}),jre=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Bre=function(){return document.body},HA=0;function zre(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Bre:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=xt(e,jre),p=l.useState(),g=ie(p,2),v=g[0],m=g[1],h=l.useRef(),y=l.createElement(Fre,{container:v,ref:h,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),b=l.useState([]),S=ie(b,2),C=S[0],x=S[1],E=l.useMemo(function(){return{open:function(R){var T=zre(f,R);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(HA),HA+=1),x(function(_){return[].concat(Oe(_),[{type:"open",config:T}])})},close:function(R){x(function(T){return[].concat(Oe(T),[{type:"close",key:R}])})},destroy:function(){x(function(R){return[].concat(Oe(R),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){m(n())}),l.useEffect(function(){h.current&&C.length&&(C.forEach(function(I){switch(I.type){case"open":h.current.open(I.config);break;case"close":h.current.close(I.key);break;case"destroy":h.current.destroy();break}}),x(function(I){return I.filter(function(R){return!C.includes(R)})}))},[C]),[E,y]}var Ure={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"},Vre=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Ure}))},Gi=l.forwardRef(Vre);const tg=le.createContext(void 0),vl=100,Wre=10,R9=vl*Wre,_9={Modal:vl,Drawer:vl,Popover:vl,Popconfirm:vl,Tooltip:vl,Tour:vl},Gre={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function qre(e){return e in _9}function Ji(e,t){const[,n]=Lr(),r=le.useContext(tg),a=qre(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+_9[e]:i+=Gre[e],o=[r===void 0?t:i,i]}return o}const Kre=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:g,borderRadiusLG:v,zIndexPopup:m,contentPadding:h,contentBg:y}=e,b=`${t}-notice`,S=new sn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),C=new sn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:h,background:y,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Xt(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Yre=e=>({zIndexPopup:e.zIndexPopupBase+R9+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$9=nn("Message",e=>{const t=zt(e,{height:150});return[Kre(t)]},Yre);var Xre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:a}=e;return l.createElement("div",{className:ne(`${t}-custom-content`,`${t}-${n}`)},r||Zre[n],l.createElement("span",null,a))},Qre=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=Xre(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(it),c=t||s("message"),u=Yn(c),[d,f,p]=$9(c,u);return d(l.createElement(I9,Object.assign({},i,{prefixCls:c,className:ne(n,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:l.createElement(O9,{prefixCls:c,type:r,icon:a},o)})))};function Jre(e,t){return{motionName:t??`${e}-move-up`}}function W_(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var eae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=Yn(n),[a,o,i]=$9(n,r);return a(l.createElement(Mre,{classNames:{list:ne(o,i,r)}},t))},aae=(e,t)=>{let{prefixCls:n,key:r}=t;return l.createElement(rae,{prefixCls:n,key:r},e)},oae=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=nae,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:g}=l.useContext(it),v=r||d("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??tae}),h=()=>ne({[`${v}-rtl`]:s??g==="rtl"}),y=()=>Jre(v,c),b=l.createElement("span",{className:`${v}-close-x`},l.createElement(da,{className:`${v}-close-icon`})),[S,C]=Hre({prefixCls:v,style:m,className:h,motion:y,closable:!1,closeIcon:b,duration:i,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:aae});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:v,message:p})),C});let UA=0;function N9(e){const t=l.useRef(null);return Js(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,p=`${d}-notice`,{content:g,icon:v,type:m,key:h,className:y,style:b,onClose:S}=c,C=eae(c,["content","icon","type","key","className","style","onClose"]);let x=h;return x==null&&(UA+=1,x=`antd-message-${UA}`),W_(E=>(u(Object.assign(Object.assign({},C),{key:x,content:l.createElement(O9,{prefixCls:d,type:m,icon:v},g),placement:"top",className:ne(m&&`${p}-${m}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{S==null||S(),E()}})),()=>{r(x)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,p)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let v,m;typeof f=="function"?m=f:(v=f,m=p);const h=Object.assign(Object.assign({onClose:m,duration:v},g),{type:c});return a(h)};i[c]=u}),i},[]),l.createElement(oae,Object.assign({key:"message-holder"},e,{ref:t}))]}function iae(e){return N9(e)}function sae(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(Oe(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function Kr(){Kr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(k,N,M){k[N]=M.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(k,N,M){return Object.defineProperty(k,N,{value:M,enumerable:!0,configurable:!0,writable:!0}),k[N]}try{u({},"")}catch{u=function(M,L,F){return M[L]=F}}function d(k,N,M,L){var F=N&&N.prototype instanceof y?N:y,j=Object.create(F.prototype),B=new A(L||[]);return a(j,"_invoke",{value:_(k,M,B)}),j}function f(k,N,M){try{return{type:"normal",arg:k.call(N,M)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",v="executing",m="completed",h={};function y(){}function b(){}function S(){}var C={};u(C,i,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(O([])));E&&E!==n&&r.call(E,i)&&(C=E);var I=S.prototype=y.prototype=Object.create(C);function R(k){["next","throw","return"].forEach(function(N){u(k,N,function(M){return this._invoke(N,M)})})}function T(k,N){function M(F,j,B,z){var H=f(k[F],k,j);if(H.type!=="throw"){var U=H.arg,X=U.value;return X&&ht(X)=="object"&&r.call(X,"__await")?N.resolve(X.__await).then(function(W){M("next",W,B,z)},function(W){M("throw",W,B,z)}):N.resolve(X).then(function(W){U.value=W,B(U)},function(W){return M("throw",W,B,z)})}z(H.arg)}var L;a(this,"_invoke",{value:function(j,B){function z(){return new N(function(H,U){M(j,B,H,U)})}return L=L?L.then(z,z):z()}})}function _(k,N,M){var L=p;return function(F,j){if(L===v)throw Error("Generator is already running");if(L===m){if(F==="throw")throw j;return{value:e,done:!0}}for(M.method=F,M.arg=j;;){var B=M.delegate;if(B){var z=$(B,M);if(z){if(z===h)continue;return z}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(L===p)throw L=m,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);L=v;var H=f(k,N,M);if(H.type==="normal"){if(L=M.done?m:g,H.arg===h)continue;return{value:H.arg,done:M.done}}H.type==="throw"&&(L=m,M.method="throw",M.arg=H.arg)}}}function $(k,N){var M=N.method,L=k.iterator[M];if(L===e)return N.delegate=null,M==="throw"&&k.iterator.return&&(N.method="return",N.arg=e,$(k,N),N.method==="throw")||M!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+M+"' method")),h;var F=f(L,k.iterator,N.arg);if(F.type==="throw")return N.method="throw",N.arg=F.arg,N.delegate=null,h;var j=F.arg;return j?j.done?(N[k.resultName]=j.value,N.next=k.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,h):j:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,h)}function D(k){var N={tryLoc:k[0]};1 in k&&(N.catchLoc=k[1]),2 in k&&(N.finallyLoc=k[2],N.afterLoc=k[3]),this.tryEntries.push(N)}function P(k){var N=k.completion||{};N.type="normal",delete N.arg,k.completion=N}function A(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(D,this),this.reset(!0)}function O(k){if(k||k===""){var N=k[i];if(N)return N.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var M=-1,L=function F(){for(;++M=0;--F){var j=this.tryEntries[F],B=j.completion;if(j.tryLoc==="root")return L("end");if(j.tryLoc<=this.prev){var z=r.call(j,"catchLoc"),H=r.call(j,"finallyLoc");if(z&&H){if(this.prev=0;--L){var F=this.tryEntries[L];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--M){var L=this.tryEntries[M];if(L.finallyLoc===N)return this.complete(L.completion,L.afterLoc),P(L),h}},catch:function(N){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc===N){var F=L.completion;if(F.type==="throw"){var j=F.arg;P(L)}return j}}throw Error("illegal catch attempt")},delegateYield:function(N,M,L){return this.delegate={iterator:O(N),resultName:M,nextLoc:L},this.method==="next"&&(this.arg=e),h}},t}function VA(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function el(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){VA(o,r,a,i,s,"next",c)}function s(c){VA(o,r,a,i,s,"throw",c)}i(void 0)})}}var ng=K({},dQ),lae=ng.version,cae=ng.render,uae=ng.unmountComponentAtNode,Ob;try{var dae=Number((lae||"").split(".")[0]);dae>=18&&(Ob=ng.createRoot)}catch{}function WA(e){var t=ng.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ht(t)==="object"&&(t.usingClientEntryPoint=e)}var vv="__rc_react_root__";function fae(e,t){WA(!0);var n=t[vv]||Ob(t);WA(!1),n.render(e),t[vv]=n}function pae(e,t){cae(e,t)}function G_(e,t){if(Ob){fae(e,t);return}pae(e,t)}function gae(e){return oT.apply(this,arguments)}function oT(){return oT=el(Kr().mark(function e(t){return Kr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[vv])===null||a===void 0||a.unmount(),delete t[vv]}));case 1:case"end":return r.stop()}},e)})),oT.apply(this,arguments)}function mae(e){uae(e)}function k9(e){return iT.apply(this,arguments)}function iT(){return iT=el(Kr().mark(function e(t){return Kr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ob===void 0){r.next=2;break}return r.abrupt("return",gae(t));case 2:mae(t);case 3:case"end":return r.stop()}},e)})),iT.apply(this,arguments)}const Uy=()=>({height:0,opacity:0}),GA=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},hae=e=>({height:e?e.offsetHeight:0}),Vy=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",ju=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:vp}-motion-collapse`,onAppearStart:Uy,onEnterStart:Uy,onAppearActive:GA,onEnterActive:GA,onLeaveStart:hae,onLeaveActive:Uy,onAppearEnd:Vy,onEnterEnd:Vy,onLeaveEnd:Vy,motionDeadline:500}},bo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ad=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},vae=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,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(",")}}}}},bae=pne("Wave",e=>[vae(e)]),Nb=`${vp}-wave-target`;function yae(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Wy(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&yae(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Sae(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Wy(t)?t:Wy(n)?n:Wy(r)?r:null}function Gy(e){return Number.isNaN(e)?0:e}const wae=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[o,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,v]=l.useState(0),[m,h]=l.useState(0),[y,b]=l.useState(!1),S={left:u,top:f,width:g,height:m,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(S["--wave-color"]=o);function C(){const E=getComputedStyle(n);i(Sae(n));const I=E.position==="static",{borderLeftWidth:R,borderTopWidth:T}=E;d(I?n.offsetLeft:Gy(-parseFloat(R))),p(I?n.offsetTop:Gy(-parseFloat(T))),v(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:$,borderBottomLeftRadius:D,borderBottomRightRadius:P}=E;c([_,$,P,D].map(A=>Gy(parseFloat(A))))}if(l.useEffect(()=>{if(n){const E=Bt(()=>{C(),b(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(C),I.observe(n)),()=>{Bt.cancel(E),I==null||I.disconnect()}}},[]),!y)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Nb));return l.createElement(qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,I)=>{var R;if(I.deadline||I.propertyName==="opacity"){const T=(R=a.current)===null||R===void 0?void 0:R.parentElement;k9(T).then(()=>{T==null||T.remove()})}return!1}},(E,I)=>{let{className:R}=E;return l.createElement("div",{ref:Pr(a,I),className:ne(t,R,{"wave-quick":x}),style:S})})},Cae=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),G_(l.createElement(wae,Object.assign({},t,{target:e})),a)},xae=(e,t,n)=>{const{wave:r}=l.useContext(it),[,a,o]=Lr(),i=Ut(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Nb}`)||d,{showEffect:p}=r||{};(p||Cae)(f,{className:t,token:a,component:n,event:u,hashId:o})}),s=l.useRef();return u=>{Bt.cancel(s.current),s.current=Bt(()=>{i(u)})}},rg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(it),o=l.useRef(null),i=a("wave"),[,s]=bae(i),c=xae(o,ne(i,s),r);if(le.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!ad(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!le.isValidElement(t))return t??null;const u=Ho(t)?Pr(t.ref,o):o;return ur(t,{ref:u})},dr=e=>{const t=le.useContext(Xl);return le.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Eae=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Iae=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Tae=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},A9=nn("Space",e=>{const t=zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Iae(t),Tae(t),Eae(t)]},()=>({}),{resetStyle:!1});var M9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(kb),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Rae=e=>{let{children:t}=e;return l.createElement(kb.Provider,{value:null},t)},_ae=e=>{var{children:t}=e,n=M9(e,["children"]);return l.createElement(kb.Provider,{value:n},t)},$ae=e=>{const{getPrefixCls:t,direction:n}=l.useContext(it),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=M9(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=dr(S=>r??S),p=t("space-compact",i),[g,v]=A9(p),m=ne(p,v,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:o,[`${p}-vertical`]:a==="vertical"},s,c),h=l.useContext(kb),y=sr(u),b=l.useMemo(()=>y.map((S,C)=>{const x=(S==null?void 0:S.key)||`${p}-item-${C}`;return l.createElement(_ae,{key:x,compactSize:f,compactDirection:a,isFirstItem:C===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:C===y.length-1&&(!h||(h==null?void 0:h.isLastItem))},S)}),[r,y,h]);return y.length===0?null:g(l.createElement("div",Object.assign({className:m},d),b))};var Oae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=l.useContext(it),{prefixCls:r,size:a,className:o}=e,i=Oae(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=Lr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const d=ne(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,c);return l.createElement(D9.Provider,{value:a},l.createElement("div",Object.assign({},i,{className:d})))},qA=/^[\u4e00-\u9fa5]{2}$/,sT=qA.test.bind(qA);function P9(e){return e==="danger"?{danger:!0}:{type:e}}function KA(e){return typeof e=="string"}function qy(e){return e==="text"||e==="link"}function kae(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&KA(e.type)&&sT(e.props.children)?ur(e,{children:e.props.children.split("").join(n)}):KA(e)?sT(e)?le.createElement("span",null,e.split("").join(n)):le.createElement("span",null,e):x9(e)?le.createElement("span",null,e):e}function Aae(e,t){let n=!1;const r=[];return le.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${a}`}else r.push(a);n=i}),le.Children.map(r,a=>kae(a,t))}const L9=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=ne(`${o}-icon`,n);return le.createElement("span",{ref:t,className:i,style:r},a)}),YA=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=ne(`${n}-loading-icon`,r);return le.createElement(L9,{prefixCls:n,className:i,style:a,ref:t},le.createElement(Gi,{className:o}))}),Ky=()=>({width:0,opacity:0,transform:"scale(0)"}),Yy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Mae=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?le.createElement(YA,{prefixCls:t,className:a,style:o}):le.createElement(qr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Ky,onAppearActive:Yy,onEnterStart:Ky,onEnterActive:Yy,onLeaveStart:Yy,onLeaveActive:Ky},(s,c)=>{let{className:u,style:d}=s;return le.createElement(YA,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:c,iconClassName:u})})},XA=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dae=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).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:n}},XA(`${t}-primary`,a),XA(`${t}-danger`,o)]}},F9=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},j9=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:wh(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:wh(c),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:wh(u);return{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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},Pae=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ui(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},qi=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Lae=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Fae=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),jae=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),yp=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},qi(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),q_=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jae(e))}),B9=e=>Object.assign({},q_(e)),bv=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),z9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B9(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),qi(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),yp(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},qi(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yp(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),q_(e))}),Bae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B9(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),qi(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),yp(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},qi(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),yp(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),q_(e))}),zae=e=>Object.assign(Object.assign({},z9(e)),{borderStyle:"dashed"}),Hae=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},qi(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bv(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},qi(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bv(e))}),Uae=e=>Object.assign(Object.assign(Object.assign({},qi(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),bv(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bv(e)),qi(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Vae=e=>{const{componentCls:t}=e;return{[`${t}-default`]:z9(e),[`${t}-primary`]:Bae(e),[`${t}-dashed`]:zae(e),[`${t}-link`]:Hae(e),[`${t}-text`]:Uae(e),[`${t}-ghost`]:yp(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${G(u)} ${G(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Lae(e)},{[`${n}${n}-round${t}`]:Fae(e)}]},Wae=e=>{const t=zt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return K_(t,e.componentCls)},Gae=e=>{const t=zt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return K_(t,`${e.componentCls}-sm`)},qae=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return K_(t,`${e.componentCls}-lg`)},Kae=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Yae=nn("Button",e=>{const t=F9(e);return[Pae(t),Wae(t),Gae(t),qae(t),Kae(t),Vae(t),Dae(t)]},j9,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Xae(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Zae(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ag(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Xae(e,r,t)),Zae(n,r,t))}}function Qae(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 Jae(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 eoe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Qae(e,t)),Jae(e.componentCls,t))}}const toe=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${G(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${G(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},noe=nd(["Button","compact"],e=>{const t=F9(e);return[ag(t),eoe(t),toe(t)]},j9);var roe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{loading:o=!1,prefixCls:i,type:s,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:g,rootClassName:v,children:m,icon:h,iconPosition:y="start",ghost:b=!1,block:S=!1,htmlType:C="button",classNames:x,style:E={},autoInsertSpace:I}=e,R=roe(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),T=s||"default",{getPrefixCls:_,direction:$,button:D}=l.useContext(it),P=(n=I??(D==null?void 0:D.autoInsertSpace))!==null&&n!==void 0?n:!0,A=_("btn",i),[O,k,N]=Yae(A),M=l.useContext(Gr),L=p??M,F=l.useContext(D9),j=l.useMemo(()=>aoe(o),[o]),[B,z]=l.useState(j.loading),[H,U]=l.useState(!1),W=Pr(t,l.createRef()),Y=l.Children.count(m)===1&&!h&&!qy(T);l.useEffect(()=>{let ue=null;j.delay>0?ue=setTimeout(()=>{ue=null,z(!0)},j.delay):z(j.loading);function fe(){ue&&(clearTimeout(ue),ue=null)}return fe},[j]),l.useEffect(()=>{if(!W||!W.current||!P)return;const ue=W.current.textContent;Y&&sT(ue)?H||U(!0):H&&U(!1)},[W]);const te=ue=>{const{onClick:fe}=e;if(B||L){ue.preventDefault();return}fe==null||fe(ue)},{compactSize:ee,compactItemClassnames:Z}=es(A,$),oe={large:"lg",small:"sm",middle:void 0},re=dr(ue=>{var fe,be;return(be=(fe=d??ee)!==null&&fe!==void 0?fe:F)!==null&&be!==void 0?be:ue}),q=re&&oe[re]||"",Q=B?"loading":h,ae=yn(R,["navigate"]),se=ne(A,k,N,{[`${A}-${u}`]:u!=="default"&&u,[`${A}-${T}`]:T,[`${A}-${q}`]:q,[`${A}-icon-only`]:!m&&m!==0&&!!Q,[`${A}-background-ghost`]:b&&!qy(T),[`${A}-loading`]:B,[`${A}-two-chinese-chars`]:H&&P&&!B,[`${A}-block`]:S,[`${A}-dangerous`]:c,[`${A}-rtl`]:$==="rtl",[`${A}-icon-end`]:y==="end"},Z,g,v,D==null?void 0:D.className),de=Object.assign(Object.assign({},D==null?void 0:D.style),E),he=ne(x==null?void 0:x.icon,(r=D==null?void 0:D.classNames)===null||r===void 0?void 0:r.icon),ye=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=D==null?void 0:D.styles)===null||a===void 0?void 0:a.icon)||{}),pe=h&&!B?le.createElement(L9,{prefixCls:A,className:he,style:ye},h):le.createElement(Mae,{existIcon:!!h,prefixCls:A,loading:B}),J=m||m===0?Aae(m,Y&&P):null;if(ae.href!==void 0)return O(le.createElement("a",Object.assign({},ae,{className:ne(se,{[`${A}-disabled`]:L}),href:L?void 0:ae.href,style:de,onClick:te,ref:W,tabIndex:L?-1:0}),pe,J));let ce=le.createElement("button",Object.assign({},R,{type:C,className:se,style:de,onClick:te,disabled:L,ref:W}),pe,J,!!Z&&le.createElement(noe,{key:"compact",prefixCls:A}));return qy(T)||(ce=le.createElement(rg,{component:"Button",disabled:B},ce)),O(ce)}),Pt=ooe;Pt.Group=Nae;Pt.__ANT_BUTTON=!0;function Xy(e){return!!(e!=null&&e.then)}const H9=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),p=l.useRef(null),[g,v]=Zl(!1),m=function(){o==null||o.apply(void 0,arguments)};l.useEffect(()=>{let b=null;return i&&(b=setTimeout(()=>{var S;(S=p.current)===null||S===void 0||S.focus()})),()=>{b&&clearTimeout(b)}},[]);const h=b=>{Xy(b)&&(v(!0),b.then(function(){v(!1,!0),m.apply(void 0,arguments),f.current=!1},S=>{if(v(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(S)}))},y=b=>{if(f.current)return;if(f.current=!0,!d){m();return}let S;if(s){if(S=d(b),u&&!Xy(S)){f.current=!1,m(b);return}}else if(d.length)S=d(o),f.current=!1;else if(S=d(),!Xy(S)){m();return}h(S)};return l.createElement(Pt,Object.assign({},P9(t),{onClick:y,loading:g,prefixCls:r},a,{ref:p}),n)},og=le.createContext({}),{Provider:U9}=og,ZA=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:s,onConfirm:c}=l.useContext(og);return a?le.createElement(H9,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},QA=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:s,onOk:c}=l.useContext(og);return le.createElement(H9,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var V9=l.createContext(null),JA=[];function ioe(e,t){var n=l.useState(function(){if(!Dr())return null;var v=document.createElement("div");return v}),r=ie(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(V9),s=l.useState(JA),c=ie(s,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(v){d(function(m){var h=[v].concat(Oe(m));return h})});function p(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var v;(v=a.parentElement)===null||v===void 0||v.removeChild(a),o.current=!1}return qt(function(){return e?i?i(p):p():g(),g},[e]),qt(function(){u.length&&(u.forEach(function(v){return v()}),d(JA))},[u]),[a,f]}var Zy;function W9(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";ji(` + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Yre=e=>({zIndexPopup:e.zIndexPopupBase+R9+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$9=tn("Message",e=>{const t=Bt(e,{height:150});return[Kre(t)]},Yre);var Xre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:a}=e;return l.createElement("div",{className:ne(`${t}-custom-content`,`${t}-${n}`)},r||Zre[n],l.createElement("span",null,a))},Qre=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=Xre(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(ct),c=t||s("message"),u=Yn(c),[d,f,p]=$9(c,u);return d(l.createElement(I9,Object.assign({},i,{prefixCls:c,className:ne(n,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:l.createElement(O9,{prefixCls:c,type:r,icon:a},o)})))};function Jre(e,t){return{motionName:t??`${e}-move-up`}}function W_(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var eae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=Yn(n),[a,o,i]=$9(n,r);return a(l.createElement(Mre,{classNames:{list:ne(o,i,r)}},t))},aae=(e,t)=>{let{prefixCls:n,key:r}=t;return l.createElement(rae,{prefixCls:n,key:r},e)},oae=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=nae,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:g}=l.useContext(ct),v=r||d("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??tae}),h=()=>ne({[`${v}-rtl`]:s??g==="rtl"}),y=()=>Jre(v,c),b=l.createElement("span",{className:`${v}-close-x`},l.createElement(da,{className:`${v}-close-icon`})),[S,C]=Hre({prefixCls:v,style:m,className:h,motion:y,closable:!1,closeIcon:b,duration:i,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:aae});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:v,message:p})),C});let UA=0;function N9(e){const t=l.useRef(null);return Js(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,p=`${d}-notice`,{content:g,icon:v,type:m,key:h,className:y,style:b,onClose:S}=c,C=eae(c,["content","icon","type","key","className","style","onClose"]);let x=h;return x==null&&(UA+=1,x=`antd-message-${UA}`),W_(E=>(u(Object.assign(Object.assign({},C),{key:x,content:l.createElement(O9,{prefixCls:d,type:m,icon:v},g),placement:"top",className:ne(m&&`${p}-${m}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),onClose:()=>{S==null||S(),E()}})),()=>{r(x)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,p)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let v,m;typeof f=="function"?m=f:(v=f,m=p);const h=Object.assign(Object.assign({onClose:m,duration:v},g),{type:c});return a(h)};i[c]=u}),i},[]),l.createElement(oae,Object.assign({key:"message-holder"},e,{ref:t}))]}function iae(e){return N9(e)}function sae(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(Oe(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function Kr(){Kr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(k,N,M){k[N]=M.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(k,N,M){return Object.defineProperty(k,N,{value:M,enumerable:!0,configurable:!0,writable:!0}),k[N]}try{u({},"")}catch{u=function(M,L,F){return M[L]=F}}function d(k,N,M,L){var F=N&&N.prototype instanceof y?N:y,j=Object.create(F.prototype),B=new A(L||[]);return a(j,"_invoke",{value:_(k,M,B)}),j}function f(k,N,M){try{return{type:"normal",arg:k.call(N,M)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",v="executing",m="completed",h={};function y(){}function b(){}function S(){}var C={};u(C,i,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(O([])));E&&E!==n&&r.call(E,i)&&(C=E);var I=S.prototype=y.prototype=Object.create(C);function R(k){["next","throw","return"].forEach(function(N){u(k,N,function(M){return this._invoke(N,M)})})}function T(k,N){function M(F,j,B,z){var H=f(k[F],k,j);if(H.type!=="throw"){var U=H.arg,X=U.value;return X&&mt(X)=="object"&&r.call(X,"__await")?N.resolve(X.__await).then(function(W){M("next",W,B,z)},function(W){M("throw",W,B,z)}):N.resolve(X).then(function(W){U.value=W,B(U)},function(W){return M("throw",W,B,z)})}z(H.arg)}var L;a(this,"_invoke",{value:function(j,B){function z(){return new N(function(H,U){M(j,B,H,U)})}return L=L?L.then(z,z):z()}})}function _(k,N,M){var L=p;return function(F,j){if(L===v)throw Error("Generator is already running");if(L===m){if(F==="throw")throw j;return{value:e,done:!0}}for(M.method=F,M.arg=j;;){var B=M.delegate;if(B){var z=$(B,M);if(z){if(z===h)continue;return z}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(L===p)throw L=m,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);L=v;var H=f(k,N,M);if(H.type==="normal"){if(L=M.done?m:g,H.arg===h)continue;return{value:H.arg,done:M.done}}H.type==="throw"&&(L=m,M.method="throw",M.arg=H.arg)}}}function $(k,N){var M=N.method,L=k.iterator[M];if(L===e)return N.delegate=null,M==="throw"&&k.iterator.return&&(N.method="return",N.arg=e,$(k,N),N.method==="throw")||M!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+M+"' method")),h;var F=f(L,k.iterator,N.arg);if(F.type==="throw")return N.method="throw",N.arg=F.arg,N.delegate=null,h;var j=F.arg;return j?j.done?(N[k.resultName]=j.value,N.next=k.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,h):j:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,h)}function D(k){var N={tryLoc:k[0]};1 in k&&(N.catchLoc=k[1]),2 in k&&(N.finallyLoc=k[2],N.afterLoc=k[3]),this.tryEntries.push(N)}function P(k){var N=k.completion||{};N.type="normal",delete N.arg,k.completion=N}function A(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(D,this),this.reset(!0)}function O(k){if(k||k===""){var N=k[i];if(N)return N.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var M=-1,L=function F(){for(;++M=0;--F){var j=this.tryEntries[F],B=j.completion;if(j.tryLoc==="root")return L("end");if(j.tryLoc<=this.prev){var z=r.call(j,"catchLoc"),H=r.call(j,"finallyLoc");if(z&&H){if(this.prev=0;--L){var F=this.tryEntries[L];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--M){var L=this.tryEntries[M];if(L.finallyLoc===N)return this.complete(L.completion,L.afterLoc),P(L),h}},catch:function(N){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc===N){var F=L.completion;if(F.type==="throw"){var j=F.arg;P(L)}return j}}throw Error("illegal catch attempt")},delegateYield:function(N,M,L){return this.delegate={iterator:O(N),resultName:M,nextLoc:L},this.method==="next"&&(this.arg=e),h}},t}function VA(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function el(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){VA(o,r,a,i,s,"next",c)}function s(c){VA(o,r,a,i,s,"throw",c)}i(void 0)})}}var ng=K({},dQ),lae=ng.version,cae=ng.render,uae=ng.unmountComponentAtNode,Ob;try{var dae=Number((lae||"").split(".")[0]);dae>=18&&(Ob=ng.createRoot)}catch{}function WA(e){var t=ng.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var vv="__rc_react_root__";function fae(e,t){WA(!0);var n=t[vv]||Ob(t);WA(!1),n.render(e),t[vv]=n}function pae(e,t){cae(e,t)}function G_(e,t){if(Ob){fae(e,t);return}pae(e,t)}function gae(e){return oT.apply(this,arguments)}function oT(){return oT=el(Kr().mark(function e(t){return Kr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[vv])===null||a===void 0||a.unmount(),delete t[vv]}));case 1:case"end":return r.stop()}},e)})),oT.apply(this,arguments)}function mae(e){uae(e)}function k9(e){return iT.apply(this,arguments)}function iT(){return iT=el(Kr().mark(function e(t){return Kr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ob===void 0){r.next=2;break}return r.abrupt("return",gae(t));case 2:mae(t);case 3:case"end":return r.stop()}},e)})),iT.apply(this,arguments)}const Uy=()=>({height:0,opacity:0}),GA=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},hae=e=>({height:e?e.offsetHeight:0}),Vy=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",ju=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:vp}-motion-collapse`,onAppearStart:Uy,onEnterStart:Uy,onAppearActive:GA,onEnterActive:GA,onLeaveStart:hae,onLeaveActive:Uy,onAppearEnd:Vy,onEnterEnd:Vy,onLeaveEnd:Vy,motionDeadline:500}},bo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ad=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},vae=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,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(",")}}}}},bae=pne("Wave",e=>[vae(e)]),Nb=`${vp}-wave-target`;function yae(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Wy(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&yae(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Sae(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Wy(t)?t:Wy(n)?n:Wy(r)?r:null}function Gy(e){return Number.isNaN(e)?0:e}const wae=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[o,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,v]=l.useState(0),[m,h]=l.useState(0),[y,b]=l.useState(!1),S={left:u,top:f,width:g,height:m,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(S["--wave-color"]=o);function C(){const E=getComputedStyle(n);i(Sae(n));const I=E.position==="static",{borderLeftWidth:R,borderTopWidth:T}=E;d(I?n.offsetLeft:Gy(-parseFloat(R))),p(I?n.offsetTop:Gy(-parseFloat(T))),v(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:$,borderBottomLeftRadius:D,borderBottomRightRadius:P}=E;c([_,$,P,D].map(A=>Gy(parseFloat(A))))}if(l.useEffect(()=>{if(n){const E=jt(()=>{C(),b(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(C),I.observe(n)),()=>{jt.cancel(E),I==null||I.disconnect()}}},[]),!y)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Nb));return l.createElement(qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,I)=>{var R;if(I.deadline||I.propertyName==="opacity"){const T=(R=a.current)===null||R===void 0?void 0:R.parentElement;k9(T).then(()=>{T==null||T.remove()})}return!1}},(E,I)=>{let{className:R}=E;return l.createElement("div",{ref:Pr(a,I),className:ne(t,R,{"wave-quick":x}),style:S})})},Cae=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),G_(l.createElement(wae,Object.assign({},t,{target:e})),a)},xae=(e,t,n)=>{const{wave:r}=l.useContext(ct),[,a,o]=Lr(),i=zt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Nb}`)||d,{showEffect:p}=r||{};(p||Cae)(f,{className:t,token:a,component:n,event:u,hashId:o})}),s=l.useRef();return u=>{jt.cancel(s.current),s.current=jt(()=>{i(u)})}},rg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(ct),o=l.useRef(null),i=a("wave"),[,s]=bae(i),c=xae(o,ne(i,s),r);if(le.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!ad(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!le.isValidElement(t))return t??null;const u=Ho(t)?Pr(t.ref,o):o;return ur(t,{ref:u})},dr=e=>{const t=le.useContext(Xl);return le.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Eae=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Iae=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Tae=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},A9=tn("Space",e=>{const t=Bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Iae(t),Tae(t),Eae(t)]},()=>({}),{resetStyle:!1});var M9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(kb),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Rae=e=>{let{children:t}=e;return l.createElement(kb.Provider,{value:null},t)},_ae=e=>{var{children:t}=e,n=M9(e,["children"]);return l.createElement(kb.Provider,{value:n},t)},$ae=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ct),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=M9(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=dr(S=>r??S),p=t("space-compact",i),[g,v]=A9(p),m=ne(p,v,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:o,[`${p}-vertical`]:a==="vertical"},s,c),h=l.useContext(kb),y=ir(u),b=l.useMemo(()=>y.map((S,C)=>{const x=(S==null?void 0:S.key)||`${p}-item-${C}`;return l.createElement(_ae,{key:x,compactSize:f,compactDirection:a,isFirstItem:C===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:C===y.length-1&&(!h||(h==null?void 0:h.isLastItem))},S)}),[r,y,h]);return y.length===0?null:g(l.createElement("div",Object.assign({className:m},d),b))};var Oae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=l.useContext(ct),{prefixCls:r,size:a,className:o}=e,i=Oae(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=Lr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const d=ne(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,c);return l.createElement(D9.Provider,{value:a},l.createElement("div",Object.assign({},i,{className:d})))},qA=/^[\u4e00-\u9fa5]{2}$/,sT=qA.test.bind(qA);function P9(e){return e==="danger"?{danger:!0}:{type:e}}function KA(e){return typeof e=="string"}function qy(e){return e==="text"||e==="link"}function kae(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&KA(e.type)&&sT(e.props.children)?ur(e,{children:e.props.children.split("").join(n)}):KA(e)?sT(e)?le.createElement("span",null,e.split("").join(n)):le.createElement("span",null,e):x9(e)?le.createElement("span",null,e):e}function Aae(e,t){let n=!1;const r=[];return le.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${a}`}else r.push(a);n=i}),le.Children.map(r,a=>kae(a,t))}const L9=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=ne(`${o}-icon`,n);return le.createElement("span",{ref:t,className:i,style:r},a)}),YA=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=ne(`${n}-loading-icon`,r);return le.createElement(L9,{prefixCls:n,className:i,style:a,ref:t},le.createElement(Gi,{className:o}))}),Ky=()=>({width:0,opacity:0,transform:"scale(0)"}),Yy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Mae=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?le.createElement(YA,{prefixCls:t,className:a,style:o}):le.createElement(qr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Ky,onAppearActive:Yy,onEnterStart:Ky,onEnterActive:Yy,onLeaveStart:Yy,onLeaveActive:Ky},(s,c)=>{let{className:u,style:d}=s;return le.createElement(YA,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:c,iconClassName:u})})},XA=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dae=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).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:n}},XA(`${t}-primary`,a),XA(`${t}-danger`,o)]}},F9=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},j9=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:wh(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:wh(c),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:wh(u);return{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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},Pae=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},di(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},qi=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Lae=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Fae=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),jae=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),yp=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},qi(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),q_=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jae(e))}),B9=e=>Object.assign({},q_(e)),bv=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),z9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B9(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),qi(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),yp(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},qi(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yp(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),q_(e))}),Bae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B9(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),qi(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),yp(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},qi(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),yp(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),q_(e))}),zae=e=>Object.assign(Object.assign({},z9(e)),{borderStyle:"dashed"}),Hae=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},qi(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bv(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},qi(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bv(e))}),Uae=e=>Object.assign(Object.assign(Object.assign({},qi(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),bv(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bv(e)),qi(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Vae=e=>{const{componentCls:t}=e;return{[`${t}-default`]:z9(e),[`${t}-primary`]:Bae(e),[`${t}-dashed`]:zae(e),[`${t}-link`]:Hae(e),[`${t}-text`]:Uae(e),[`${t}-ghost`]:yp(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${G(u)} ${G(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Lae(e)},{[`${n}${n}-round${t}`]:Fae(e)}]},Wae=e=>{const t=Bt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return K_(t,e.componentCls)},Gae=e=>{const t=Bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return K_(t,`${e.componentCls}-sm`)},qae=e=>{const t=Bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return K_(t,`${e.componentCls}-lg`)},Kae=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Yae=tn("Button",e=>{const t=F9(e);return[Pae(t),Wae(t),Gae(t),qae(t),Kae(t),Vae(t),Dae(t)]},j9,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Xae(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Zae(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ag(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Xae(e,r,t)),Zae(n,r,t))}}function Qae(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 Jae(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 eoe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Qae(e,t)),Jae(e.componentCls,t))}}const toe=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${G(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${G(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},noe=nd(["Button","compact"],e=>{const t=F9(e);return[ag(t),eoe(t),toe(t)]},j9);var roe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{loading:o=!1,prefixCls:i,type:s,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:g,rootClassName:v,children:m,icon:h,iconPosition:y="start",ghost:b=!1,block:S=!1,htmlType:C="button",classNames:x,style:E={},autoInsertSpace:I}=e,R=roe(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),T=s||"default",{getPrefixCls:_,direction:$,button:D}=l.useContext(ct),P=(n=I??(D==null?void 0:D.autoInsertSpace))!==null&&n!==void 0?n:!0,A=_("btn",i),[O,k,N]=Yae(A),M=l.useContext(Gr),L=p??M,F=l.useContext(D9),j=l.useMemo(()=>aoe(o),[o]),[B,z]=l.useState(j.loading),[H,U]=l.useState(!1),W=Pr(t,l.createRef()),Y=l.Children.count(m)===1&&!h&&!qy(T);l.useEffect(()=>{let ue=null;j.delay>0?ue=setTimeout(()=>{ue=null,z(!0)},j.delay):z(j.loading);function fe(){ue&&(clearTimeout(ue),ue=null)}return fe},[j]),l.useEffect(()=>{if(!W||!W.current||!P)return;const ue=W.current.textContent;Y&&sT(ue)?H||U(!0):H&&U(!1)},[W]);const te=ue=>{const{onClick:fe}=e;if(B||L){ue.preventDefault();return}fe==null||fe(ue)},{compactSize:ee,compactItemClassnames:Z}=es(A,$),oe={large:"lg",small:"sm",middle:void 0},re=dr(ue=>{var fe,be;return(be=(fe=d??ee)!==null&&fe!==void 0?fe:F)!==null&&be!==void 0?be:ue}),q=re&&oe[re]||"",Q=B?"loading":h,ae=Sn(R,["navigate"]),se=ne(A,k,N,{[`${A}-${u}`]:u!=="default"&&u,[`${A}-${T}`]:T,[`${A}-${q}`]:q,[`${A}-icon-only`]:!m&&m!==0&&!!Q,[`${A}-background-ghost`]:b&&!qy(T),[`${A}-loading`]:B,[`${A}-two-chinese-chars`]:H&&P&&!B,[`${A}-block`]:S,[`${A}-dangerous`]:c,[`${A}-rtl`]:$==="rtl",[`${A}-icon-end`]:y==="end"},Z,g,v,D==null?void 0:D.className),de=Object.assign(Object.assign({},D==null?void 0:D.style),E),he=ne(x==null?void 0:x.icon,(r=D==null?void 0:D.classNames)===null||r===void 0?void 0:r.icon),ye=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=D==null?void 0:D.styles)===null||a===void 0?void 0:a.icon)||{}),pe=h&&!B?le.createElement(L9,{prefixCls:A,className:he,style:ye},h):le.createElement(Mae,{existIcon:!!h,prefixCls:A,loading:B}),J=m||m===0?Aae(m,Y&&P):null;if(ae.href!==void 0)return O(le.createElement("a",Object.assign({},ae,{className:ne(se,{[`${A}-disabled`]:L}),href:L?void 0:ae.href,style:de,onClick:te,ref:W,tabIndex:L?-1:0}),pe,J));let ce=le.createElement("button",Object.assign({},R,{type:C,className:se,style:de,onClick:te,disabled:L,ref:W}),pe,J,!!Z&&le.createElement(noe,{key:"compact",prefixCls:A}));return qy(T)||(ce=le.createElement(rg,{component:"Button",disabled:B},ce)),O(ce)}),Dt=ooe;Dt.Group=Nae;Dt.__ANT_BUTTON=!0;function Xy(e){return!!(e!=null&&e.then)}const H9=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),p=l.useRef(null),[g,v]=Zl(!1),m=function(){o==null||o.apply(void 0,arguments)};l.useEffect(()=>{let b=null;return i&&(b=setTimeout(()=>{var S;(S=p.current)===null||S===void 0||S.focus()})),()=>{b&&clearTimeout(b)}},[]);const h=b=>{Xy(b)&&(v(!0),b.then(function(){v(!1,!0),m.apply(void 0,arguments),f.current=!1},S=>{if(v(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(S)}))},y=b=>{if(f.current)return;if(f.current=!0,!d){m();return}let S;if(s){if(S=d(b),u&&!Xy(S)){f.current=!1,m(b);return}}else if(d.length)S=d(o),f.current=!1;else if(S=d(),!Xy(S)){m();return}h(S)};return l.createElement(Dt,Object.assign({},P9(t),{onClick:y,loading:g,prefixCls:r},a,{ref:p}),n)},og=le.createContext({}),{Provider:U9}=og,ZA=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:s,onConfirm:c}=l.useContext(og);return a?le.createElement(H9,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},QA=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:s,onOk:c}=l.useContext(og);return le.createElement(H9,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var V9=l.createContext(null),JA=[];function ioe(e,t){var n=l.useState(function(){if(!Dr())return null;var v=document.createElement("div");return v}),r=ie(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(V9),s=l.useState(JA),c=ie(s,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(v){d(function(m){var h=[v].concat(Oe(m));return h})});function p(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var v;(v=a.parentElement)===null||v===void 0||v.removeChild(a),o.current=!1}return Wt(function(){return e?i?i(p):p():g(),g},[e]),Wt(function(){u.length&&(u.forEach(function(v){return v()}),d(JA))},[u]),[a,f]}var Zy;function W9(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";ji(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(f,` -}`),t)}catch(v){console.error(v),a=c,o=u}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),pp(t),{width:p,height:g}}function e3(e){return typeof document>"u"?0:(Zy===void 0&&(Zy=W9()),Zy.width)}function lT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:W9(e)}function soe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var loe="rc-util-locker-".concat(Date.now()),t3=0;function coe(e){var t=!!e,n=l.useState(function(){return t3+=1,"".concat(loe,"_").concat(t3)}),r=ie(n,1),a=r[0];qt(function(){if(t){var o=lT(document.body).width,i=soe();ji(` +}`),t)}catch(v){console.error(v),a=c,o=u}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),pp(t),{width:p,height:g}}function e3(e){return typeof document>"u"?0:(Zy===void 0&&(Zy=W9()),Zy.width)}function lT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:W9(e)}function soe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var loe="rc-util-locker-".concat(Date.now()),t3=0;function coe(e){var t=!!e,n=l.useState(function(){return t3+=1,"".concat(loe,"_").concat(t3)}),r=ie(n,1),a=r[0];Wt(function(){if(t){var o=lT(document.body).width,i=soe();ji(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",` -}`),a)}else pp(a);return function(){pp(a)}},[t,a])}var uoe=!1;function doe(e){return uoe}var n3=function(t){return t===!1?!1:!Dr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ab=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=l.useState(n),u=ie(c,2),d=u[0],f=u[1],p=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=l.useState(function(){return n3(a)}),v=ie(g,2),m=v[0],h=v[1];l.useEffect(function(){var $=n3(a);h($??null)});var y=ioe(p&&!m),b=ie(y,2),S=b[0],C=b[1],x=m??S;coe(r&&n&&Dr()&&(x===S||x===document.body));var E=null;if(s&&Ho(s)&&t){var I=s;E=I.ref}var R=Qi(E,t);if(!p||!Dr()||m===void 0)return null;var T=x===!1||doe(),_=s;return t&&(_=l.cloneElement(s,{ref:R})),l.createElement(V9.Provider,{value:C},T?_:xr.createPortal(_,x))}),G9=l.createContext({});function foe(){var e=K({},Kp);return e.useId}var r3=0,a3=foe();const q9=a3?function(t){var n=a3();return t||n}:function(t){var n=l.useState("ssr-id"),r=ie(n,2),a=r[0],o=r[1];return l.useEffect(function(){var i=r3;r3+=1,o("rc_unique_".concat(i))},[]),t||a};function o3(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function i3(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function poe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=i3(a),n.top+=i3(a,!0),n}const goe=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var s3={width:0,height:0,overflow:"hidden",outline:"none"},moe={outline:"none"},K9=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,g=e.bodyProps,v=e.modalRender,m=e.onMouseDown,h=e.onMouseUp,y=e.holderRef,b=e.visible,S=e.forceRender,C=e.width,x=e.height,E=e.classNames,I=e.styles,R=le.useContext(G9),T=R.panel,_=Qi(y,T),$=l.useRef(),D=l.useRef(),P=l.useRef();le.useImperativeHandle(t,function(){return{focus:function(){var z;(z=P.current)===null||z===void 0||z.focus({preventScroll:!0})},changeActive:function(z){var H=document,U=H.activeElement;z&&U===D.current?$.current.focus({preventScroll:!0}):!z&&U===$.current&&D.current.focus({preventScroll:!0})}}});var A={};C!==void 0&&(A.width=C),x!==void 0&&(A.height=x);var O=s?le.createElement("div",{className:ne("".concat(n,"-footer"),E==null?void 0:E.footer),style:K({},I==null?void 0:I.footer)},s):null,k=o?le.createElement("div",{className:ne("".concat(n,"-header"),E==null?void 0:E.header),style:K({},I==null?void 0:I.header)},le.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,N=l.useMemo(function(){return ht(c)==="object"&&c!==null?c:c?{closeIcon:u??le.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),M=Mn(N,!0),L=ht(c)==="object"&&c.disabled,F=c?le.createElement("button",ve({type:"button",onClick:d,"aria-label":"Close"},M,{className:"".concat(n,"-close"),disabled:L}),N.closeIcon):null,j=le.createElement("div",{className:ne("".concat(n,"-content"),E==null?void 0:E.content),style:I==null?void 0:I.content},F,k,le.createElement("div",ve({className:ne("".concat(n,"-body"),E==null?void 0:E.body),style:K(K({},p),I==null?void 0:I.body)},g),f),O);return le.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:_,style:K(K({},a),A),className:ne(n,r),onMouseDown:m,onMouseUp:h},le.createElement("div",{tabIndex:0,ref:$,style:s3,"aria-hidden":"true"}),le.createElement("div",{ref:P,tabIndex:-1,style:moe},le.createElement(goe,{shouldUpdate:b||S},v?v(j):j)),le.createElement("div",{tabIndex:0,ref:D,style:s3,"aria-hidden":"true"}))}),Y9=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,g=l.useRef(),v=l.useState(),m=ie(v,2),h=m[0],y=m[1],b={};h&&(b.transformOrigin=h);function S(){var C=poe(g.current);y(p&&(p.x||p.y)?"".concat(p.x-C.left,"px ").concat(p.y-C.top,"px"):"")}return l.createElement(qr,{visible:i,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(C,x){var E=C.className,I=C.style;return l.createElement(K9,ve({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:x,style:K(K(K({},I),a),b),className:ne(o,E)}))})});Y9.displayName="Content";var hoe=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,s=t.className;return l.createElement(qr,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",ve({ref:u,style:K(K({},f),r),className:ne("".concat(n,"-mask"),d,s)},o))})},voe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,p=t.wrapClassName,g=t.wrapProps,v=t.onClose,m=t.afterOpenChange,h=t.afterClose,y=t.transitionName,b=t.animation,S=t.closable,C=S===void 0?!0:S,x=t.mask,E=x===void 0?!0:x,I=t.maskTransitionName,R=t.maskAnimation,T=t.maskClosable,_=T===void 0?!0:T,$=t.maskStyle,D=t.maskProps,P=t.rootClassName,A=t.classNames,O=t.styles,k=l.useRef(),N=l.useRef(),M=l.useRef(),L=l.useState(i),F=ie(L,2),j=F[0],B=F[1],z=q9();function H(){OI(N.current,document.activeElement)||(k.current=document.activeElement)}function U(){if(!OI(N.current,document.activeElement)){var Q;(Q=M.current)===null||Q===void 0||Q.focus()}}function X(Q){if(Q)U();else{if(B(!1),E&&k.current&&d){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}j&&(h==null||h())}m==null||m(Q)}function W(Q){v==null||v(Q)}var Y=l.useRef(!1),te=l.useRef(),ee=function(){clearTimeout(te.current),Y.current=!0},Z=function(){te.current=setTimeout(function(){Y.current=!1})},oe=null;_&&(oe=function(ae){Y.current?Y.current=!1:N.current===ae.target&&W(ae)});function re(Q){if(c&&Q.keyCode===Me.ESC){Q.stopPropagation(),W(Q);return}i&&Q.keyCode===Me.TAB&&M.current.changeActive(!Q.shiftKey)}l.useEffect(function(){i&&(B(!0),H())},[i]),l.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var q=K(K(K({zIndex:a},f),O==null?void 0:O.wrapper),{},{display:j?null:"none"});return l.createElement("div",ve({className:ne("".concat(r,"-root"),P)},Mn(t,{data:!0})),l.createElement(hoe,{prefixCls:r,visible:E&&i,motionName:o3(r,I,R),style:K(K({zIndex:a},$),O==null?void 0:O.mask),maskProps:D,className:A==null?void 0:A.mask}),l.createElement("div",ve({tabIndex:-1,onKeyDown:re,className:ne("".concat(r,"-wrap"),p,A==null?void 0:A.wrapper),ref:N,onClick:oe,style:q},g),l.createElement(Y9,ve({},t,{onMouseDown:ee,onMouseUp:Z,ref:M,closable:C,ariaId:z,prefixCls:r,visible:i&&j,onClose:W,onVisibleChanged:X,motionName:o3(r,y,b)}))))},X9=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=ie(u,2),f=d[0],p=d[1],g=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&p(!0)},[n]),!a&&i&&!f?null:l.createElement(G9.Provider,{value:g},l.createElement(Ab,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(voe,ve({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),p(!1)}}))))};X9.displayName="Dialog";var El="RC_FORM_INTERNAL_HOOKS",Tn=function(){pn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ql=l.createContext({getFieldValue:Tn,getFieldsValue:Tn,getFieldError:Tn,getFieldWarning:Tn,getFieldsError:Tn,isFieldsTouched:Tn,isFieldTouched:Tn,isFieldValidating:Tn,isFieldsValidating:Tn,resetFields:Tn,setFields:Tn,setFieldValue:Tn,setFieldsValue:Tn,validateFields:Tn,submit:Tn,getInternalHooks:function(){return Tn(),{dispatch:Tn,initEntityValue:Tn,registerField:Tn,useSubscribe:Tn,setInitialValues:Tn,destroyForm:Tn,setCallbacks:Tn,registerWatch:Tn,getFields:Tn,setValidateMessages:Tn,setPreserve:Tn,getInitialValue:Tn}}}),Sp=l.createContext(null);function cT(e){return e==null?[]:Array.isArray(e)?e:[e]}function boe(e){return e&&!!e._init}function uT(){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 dT=uT();function yoe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Soe(e,t,n){if(Cb())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&dp(a,n.prototype),a}function fT(e){var t=typeof Map=="function"?new Map:void 0;return fT=function(r){if(r===null||!yoe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Soe(r,arguments,Kl(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),dp(a,r)},fT(e)}var woe=/%[sdj%]/g,Coe=function(){};function pT(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ua(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function xoe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Tr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||xoe(t)&&typeof e=="string"&&!e)}function Eoe(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,Oe(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function l3(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?a.push(Ua(o.messages[f].max,t.fullField,t.max)):s&&c&&(dt.max)&&a.push(Ua(o.messages[f].range,t.fullField,t.min,t.max))},Z9=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Tr(n,i||t.type))&&a.push(Ua(o.messages.required,t.fullField))},bm;const koe=function(){if(bm)return bm;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?: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}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,v=d.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(g,"|").concat(v,"|").concat(m).concat(h).concat(y,")").concat(b).concat(S);return bm=new RegExp("(?:^".concat(C,"$)"),"i"),bm};var f3={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},nf={integer:function(t){return nf.number(t)&&parseInt(t,10)===t},float:function(t){return nf.number(t)&&!nf.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 ht(t)==="object"&&!nf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(f3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(koe())},hex:function(t){return typeof t=="string"&&!!t.match(f3.hex)}},Aoe=function(t,n,r,a,o){if(t.required&&n===void 0){Z9(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?nf[s](n)||a.push(Ua(o.messages.types[s],t.fullField,t.type)):s&&ht(n)!==t.type&&a.push(Ua(o.messages.types[s],t.fullField,t.type))},Moe=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Ua(o.messages.whitespace,t.fullField))};const dn={required:Z9,whitespace:Moe,type:Aoe,range:Noe,enum:$oe,pattern:Ooe};var Doe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o)}r(i)},Poe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();dn.required(t,n,a,i,o,"array"),n!=null&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Loe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn.type(t,n,a,i,o)}r(i)},Foe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n,"date")&&!t.required)return r();if(dn.required(t,n,a,i,o),!Tr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),dn.type(t,c,a,i,o),c&&dn.range(t,c.getTime(),a,i,o)}}r(i)},joe="enum",Boe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn[joe](t,n,a,i,o)}r(i)},zoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Hoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Uoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn.type(t,n,a,i,o)}r(i)},Voe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Woe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn.type(t,n,a,i,o)}r(i)},Goe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n,"string")&&!t.required)return r();dn.required(t,n,a,i,o),Tr(n,"string")||dn.pattern(t,n,a,i,o)}r(i)},qoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),Tr(n)||dn.type(t,n,a,i,o)}r(i)},Koe=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":ht(n);dn.required(t,n,a,i,o,s),r(i)},Yoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n,"string")&&!t.required)return r();dn.required(t,n,a,i,o,"string"),Tr(n,"string")||(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o),dn.pattern(t,n,a,i,o),t.whitespace===!0&&dn.whitespace(t,n,a,i,o))}r(i)},Qy=function(t,n,r,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Tr(n,i)&&!t.required)return r();dn.required(t,n,a,s,o,i),Tr(n,i)||dn.type(t,n,a,s,o)}r(s)};const $f={string:Yoe,method:Uoe,number:Voe,boolean:Loe,regexp:qoe,integer:Hoe,float:zoe,array:Poe,object:Woe,enum:Boe,pattern:Goe,date:Foe,url:Qy,hex:Qy,email:Qy,required:Koe,any:Doe};var ig=function(){function e(t){Dn(this,e),V(this,"rules",null),V(this,"_messages",dT),this.define(t)}return Pn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=d3(uT(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(v){var m=[],h={};function y(S){if(Array.isArray(S)){var C;m=(C=m).concat.apply(C,Oe(S))}else m.push(S)}for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(I)?I:[I];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&h.message!==void 0&&(R=[].concat(h.message));var T=R.map(u3(h,i));if(s.first&&T.length)return g[h.field]=1,m(T);if(!y)m(T);else{if(h.required&&!v.value)return h.message!==void 0?T=[].concat(h.message).map(u3(h,i)):s.error&&(T=[s.error(h,Ua(s.messages.required,h.field))]),m(T);var _={};h.defaultField&&Object.keys(v.value).map(function(P){_[P]=h.defaultField}),_=K(K({},_),v.rule.fields);var $={};Object.keys(_).forEach(function(P){var A=_[P],O=Array.isArray(A)?A:[A];$[P]=O.map(b.bind(null,P))});var D=new e($);D.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),D.validate(v.value,v.rule.options||s,function(P){var A=[];T&&T.length&&A.push.apply(A,Oe(T)),P&&P.length&&A.push.apply(A,Oe(P)),m(A.length?A:null)})}}var C;if(h.asyncValidator)C=h.asyncValidator(h,v.value,S,v.source,s);else if(h.validator){try{C=h.validator(h,v.value,S,v.source,s)}catch(I){var x,E;(x=(E=console).error)===null||x===void 0||x.call(E,I),s.suppressValidatorError||setTimeout(function(){throw I},0),S(I.message)}C===!0?S():C===!1?S(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(I){return S(I)})},function(v){u(v)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!$f.hasOwnProperty(n.type))throw new Error(Ua("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?$f.required:$f[this.getType(n)]||void 0}}]),e}();V(ig,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$f[t]=n});V(ig,"warning",Coe);V(ig,"messages",dT);V(ig,"validators",$f);var Ma="'${name}' is not a valid ${type}",Q9={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:Ma,method:Ma,array:Ma,object:Ma,number:Ma,date:Ma,boolean:Ma,integer:Ma,float:Ma,regexp:Ma,email:Ma,url:Ma,hex:Ma},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}"}},p3=ig;function Xoe(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var g3="CODE_LOGIC_ERROR";function gT(e,t,n,r,a){return mT.apply(this,arguments)}function mT(){return mT=el(Kr().mark(function e(t,n,r,a,o){var i,s,c,u,d,f,p,g,v;return Kr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=K({},r),delete i.ruleIndex,p3.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(g3)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new p3(V({},t,[i])),d=ou(Q9,a.validateMessages),u.messages(d),f=[],h.prev=10,h.next=13,Promise.resolve(u.validate(V({},t,n),K({},a)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(y,b){var S=y.message,C=S===g3?d.default:S;return l.isValidElement(C)?l.cloneElement(C,{key:"error_".concat(b)}):C}));case 18:if(!(!f.length&&c)){h.next=23;break}return h.next=21,Promise.all(n.map(function(y,b){return gT("".concat(t,".").concat(b),y,c,a,o)}));case 21:return p=h.sent,h.abrupt("return",p.reduce(function(y,b){return[].concat(Oe(y),Oe(b))},[]));case 23:return g=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),v=f.map(function(y){return typeof y=="string"?Xoe(y,g):y}),h.abrupt("return",v);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),mT.apply(this,arguments)}function Zoe(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,f){var p=d.validator,g=K(K({},d),{},{ruleIndex:f});return p&&(g.validator=function(v,m,h){var y=!1,b=function(){for(var x=arguments.length,E=new Array(x),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return J9(t,r,n)})}function J9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function eie(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ht(e)!=="object"||ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Oe(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function tie(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ht(t.target)==="object"&&e in t.target?t.target[e]:t}function h3(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Oe(e.slice(0,n)),[a],Oe(e.slice(n,t)),Oe(e.slice(t+1,r))):o<0?[].concat(Oe(e.slice(0,t)),Oe(e.slice(t+1,n+1)),[a],Oe(e.slice(n+1,r))):e}var nie=["name"],eo=[];function Jy(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var Y_=function(e){Qa(n,e);var t=xo(n);function n(r){var a;if(Dn(this,n),a=t.call(this,r),V(Ue(a),"state",{resetCount:0}),V(Ue(a),"cancelRegisterFunc",null),V(Ue(a),"mounted",!1),V(Ue(a),"touched",!1),V(Ue(a),"dirty",!1),V(Ue(a),"validatePromise",void 0),V(Ue(a),"prevValidating",void 0),V(Ue(a),"errors",eo),V(Ue(a),"warnings",eo),V(Ue(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,lr(f)),a.cancelRegisterFunc=null}),V(Ue(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Oe(p),Oe(u)):[]}),V(Ue(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),V(Ue(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),V(Ue(a),"metaCache",null),V(Ue(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=K(K({},a.getMeta()),{},{destroy:c});Uo(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),V(Ue(a),"onStoreChange",function(c,u,d){var f=a.props,p=f.shouldUpdate,g=f.dependencies,v=g===void 0?[]:g,m=f.onReset,h=d.store,y=a.getNamePath(),b=a.getValue(c),S=a.getValue(h),C=u&&yu(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&!Uo(b,S)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=eo,a.warnings=eo,a.triggerMetaEvent()),d.type){case"reset":if(!u||C){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=eo,a.warnings=eo,a.triggerMetaEvent(),m==null||m(),a.refresh();return}break;case"remove":{if(p&&Jy(p,c,h,b,S,d)){a.reRender();return}break}case"setField":{var x=d.data;if(C){"touched"in x&&(a.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(a.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(a.errors=x.errors||eo),"warnings"in x&&(a.warnings=x.warnings||eo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in x&&yu(u,y,!0)){a.reRender();return}if(p&&!y.length&&Jy(p,c,h,b,S,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=v.map(lr);if(E.some(function(I){return yu(d.relatedFields,I)})){a.reRender();return}break}default:if(C||(!v.length||y.length||p)&&Jy(p,c,h,b,S,d)){a.reRender();return}break}p===!0&&a.reRender()}),V(Ue(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},p=f.triggerName,g=f.validateOnly,v=g===void 0?!1:g,m=Promise.resolve().then(el(Kr().mark(function h(){var y,b,S,C,x,E,I;return Kr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(a.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=a.props,b=y.validateFirst,S=b===void 0?!1:b,C=y.messageVariables,x=y.validateDebounce,E=a.getRules(),p&&(E=E.filter(function(_){return _}).filter(function(_){var $=_.validateTrigger;if(!$)return!0;var D=cT($);return D.includes(p)})),!(x&&p)){T.next=10;break}return T.next=8,new Promise(function(_){setTimeout(_,x)});case 8:if(a.validatePromise===m){T.next=10;break}return T.abrupt("return",[]);case 10:return I=Zoe(u,d,E,c,S,C),I.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eo;if(a.validatePromise===m){var $;a.validatePromise=null;var D=[],P=[];($=_.forEach)===null||$===void 0||$.call(_,function(A){var O=A.rule.warningOnly,k=A.errors,N=k===void 0?eo:k;O?P.push.apply(P,Oe(N)):D.push.apply(D,Oe(N))}),a.errors=D,a.warnings=P,a.triggerMetaEvent(),a.reRender()}}),T.abrupt("return",I);case 13:case"end":return T.stop()}},h)})));return v||(a.validatePromise=m,a.dirty=!0,a.errors=eo,a.warnings=eo,a.triggerMetaEvent(),a.reRender()),m}),V(Ue(a),"isFieldValidating",function(){return!!a.validatePromise}),V(Ue(a),"isFieldTouched",function(){return a.touched}),V(Ue(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(El),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),V(Ue(a),"getErrors",function(){return a.errors}),V(Ue(a),"getWarnings",function(){return a.warnings}),V(Ue(a),"isListField",function(){return a.props.isListField}),V(Ue(a),"isList",function(){return a.props.isList}),V(Ue(a),"isPreserve",function(){return a.props.preserve}),V(Ue(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),V(Ue(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return K(K({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=sr(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),V(Ue(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Ha(c||u(!0),d)}),V(Ue(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,p=u.validateTrigger,g=u.getValueFromEvent,v=u.normalize,m=u.valuePropName,h=u.getValueProps,y=u.fieldContext,b=p!==void 0?p:y.validateTrigger,S=a.getNamePath(),C=y.getInternalHooks,x=y.getFieldsValue,E=C(El),I=E.dispatch,R=a.getValue(),T=h||function(A){return V({},m,A)},_=c[f],$=d!==void 0?T(R):{},D=K(K({},c),$);D[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,O=arguments.length,k=new Array(O),N=0;N=0&&_<=$.length?(d.keys=[].concat(Oe(d.keys.slice(0,_)),[d.id],Oe(d.keys.slice(_))),S([].concat(Oe($.slice(0,_)),[T],Oe($.slice(_))))):(d.keys=[].concat(Oe(d.keys),[d.id]),S([].concat(Oe($),[T]))),d.id+=1},remove:function(T){var _=x(),$=new Set(Array.isArray(T)?T:[T]);$.size<=0||(d.keys=d.keys.filter(function(D,P){return!$.has(P)}),S(_.filter(function(D,P){return!$.has(P)})))},move:function(T,_){if(T!==_){var $=x();T<0||T>=$.length||_<0||_>=$.length||(d.keys=h3(d.keys,T,_),S(h3($,T,_)))}}},I=b||[];return Array.isArray(I)||(I=[]),r(I.map(function(R,T){var _=d.keys[T];return _===void 0&&(d.keys[T]=d.id,_=d.keys[T],d.id+=1),{name:T,key:_,isListField:!0}}),E,h)})))}function rie(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var tH="__@field_split__";function eS(e){return e.map(function(t){return"".concat(ht(t),":").concat(t)}).join(tH)}var Nc=function(){function e(){Dn(this,e),V(this,"kvs",new Map)}return Pn(e,[{key:"set",value:function(n,r){this.kvs.set(eS(n),r)}},{key:"get",value:function(n){return this.kvs.get(eS(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(eS(n))}},{key:"map",value:function(n){return Oe(this.kvs.entries()).map(function(r){var a=ie(r,2),o=a[0],i=a[1],s=o.split(tH);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ie(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),aie=["name"],oie=Pn(function e(t){var n=this;Dn(this,e),V(this,"formHooked",!1),V(this,"forceRootUpdate",void 0),V(this,"subscribable",!0),V(this,"store",{}),V(this,"fieldEntities",[]),V(this,"initialValues",{}),V(this,"callbacks",{}),V(this,"validateMessages",null),V(this,"preserve",null),V(this,"lastValidatePromise",null),V(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),V(this,"getInternalHooks",function(r){return r===El?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(pn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),V(this,"useSubscribe",function(r){n.subscribable=r}),V(this,"prevWithoutPreserves",null),V(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=ou(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=No(i,c,Ha(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),V(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new Nc;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),V(this,"getInitialValue",function(r){var a=Ha(n.initialValues,r);return r.length?ou(a):a}),V(this,"setCallbacks",function(r){n.callbacks=r}),V(this,"setValidateMessages",function(r){n.validateMessages=r}),V(this,"setPreserve",function(r){n.preserve=r}),V(this,"watchList",[]),V(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),V(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),V(this,"timeoutId",null),V(this,"warningUnhooked",function(){}),V(this,"updateStore",function(r){n.store=r}),V(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),V(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Nc;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),V(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=lr(o);return a.get(i)||{INVALIDATE_NAME_PATH:lr(o)}})}),V(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&ht(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,p,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var v,m;if((v=(m=d).isList)!==null&&v!==void 0&&v.call(m))return}else if(!o&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)u.push(g);else{var h="getMeta"in d?d.getMeta():null;i(h)&&u.push(g)}}),m3(n.store,u.map(lr))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var a=lr(r);return Ha(n.store,a)}),V(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:lr(r[i]),errors:[],warnings:[]}})}),V(this,"getFieldError",function(r){n.warningUnhooked();var a=lr(r),o=n.getFieldsError([a])[0];return o.errors}),V(this,"getFieldWarning",function(r){n.warningUnhooked();var a=lr(r),o=n.getFieldsError([a])[0];return o.warnings}),V(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new Nc,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),g=n.getInitialValue(p);if(g!==void 0)pn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var v=a.get(p);if(v&&v.size>1)pn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var m=n.getFieldValue(p),h=d.isListField();!h&&(!r.skipExist||m===void 0)&&n.updateStore(No(n.store,p,Oe(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=s).push.apply(d,Oe(Oe(u).map(function(f){return f.entity})))}})):s=o,i(s)}),V(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(ou(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(lr);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(No(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),V(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,c=xt(i,aie),u=lr(s);o.push(u),"value"in c&&n.updateStore(No(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),V(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=K(K({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),V(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Ha(n.store,o);i===void 0&&n.updateStore(No(n.store,o,a))}}),V(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),V(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!J9(f.getNamePath(),a)})){var d=n.store;n.updateStore(No(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),V(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),V(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=K(K({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),V(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Oe(o))}),o}),V(this,"updateValue",function(r,a){var o=lr(r),i=n.store;n.updateStore(No(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=m3(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Oe(s)))}),V(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=ou(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),V(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),V(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new Nc;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=lr(d);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(o.push(p),c(p))}})};return s(r),o}),V(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new Nc;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return yu(r,d)});c.length&&o(c,i)}}),V(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,c=s?o.map(lr):[],u=[],d=String(Date.now()),f=new Set,p=i||{},g=p.recursive,v=p.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||c.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(v&&!b.isFieldDirty())){var S=b.getNamePath();if(f.add(S.join(d)),!s||yu(c,S,g)){var C=b.validateRules(K({validateMessages:K(K({},Q9),n.validateMessages)},i));u.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(x){var E,I=[],R=[];return(E=x.forEach)===null||E===void 0||E.call(x,function(T){var _=T.rule.warningOnly,$=T.errors;_?R.push.apply(R,Oe($)):I.push.apply(I,Oe($))}),I.length?Promise.reject({name:S,errors:I,warnings:R}):{name:S,errors:I,warnings:R}}))}}});var m=rie(u);n.lastValidatePromise=m,m.catch(function(b){return b}).then(function(b){var S=b.map(function(C){var x=C.name;return x});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,b)});var h=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(b){var S=b.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:S,outOfDate:n.lastValidatePromise!==m})});h.catch(function(b){return b});var y=c.filter(function(b){return f.has(b.join(d))});return n.triggerOnFieldsChange(y),h}),V(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function Z_(e){var t=l.useRef(),n=l.useState({}),r=ie(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new oie(o);t.current=i.getForm()}return[t.current]}var bT=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),nH=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(bT),s=l.useRef({});return l.createElement(bT.Provider,{value:K(K({},i),{},{validateMessages:K(K({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=K(K({},s.current),{},V({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=K({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},iie=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],sie=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,v=t.onValuesChange,m=t.onFieldsChange,h=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,S=xt(t,iie),C=l.useRef(null),x=l.useContext(bT),E=Z_(i),I=ie(E,1),R=I[0],T=R.getInternalHooks(El),_=T.useSubscribe,$=T.setInitialValues,D=T.setCallbacks,P=T.setValidateMessages,A=T.setPreserve,O=T.destroyForm;l.useImperativeHandle(n,function(){return K(K({},R),{},{nativeElement:C.current})}),l.useEffect(function(){return x.registerForm(r,R),function(){x.unregisterForm(r)}},[x,R,r]),P(K(K({},x.validateMessages),f)),D({onValuesChange:v,onFieldsChange:function(H){if(x.triggerFormChange(r,H),m){for(var U=arguments.length,X=new Array(U>1?U-1:0),W=1;W{}}),aH=l.createContext(null),oH=e=>{const t=yn(e,["prefixCls"]);return l.createElement(nH,Object.assign({},t))},Q_=l.createContext({prefixCls:""}),Rr=l.createContext({}),cie=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(Rr),o=l.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return l.createElement(Rr.Provider,{value:o},t)},iH=l.createContext(void 0),di=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=le.createElement(cie,{override:!0,status:!0},a)),t&&(a=le.createElement(Rae,null,a)),a};function Bu(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function b3(e){const{closable:t,closeIcon:n}=e||{};return le.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function y3(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const uie={};function J_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uie;const r=b3(e),a=b3(t),o=le.useMemo(()=>Object.assign({closeIcon:le.createElement(da,null)},n),[n]),i=le.useMemo(()=>r===!1?!1:r?y3(o,a,r):a===!1?!1:a?y3(o,a):o.closable?o:!1,[r,a,o]);return le.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:s}=o,{closeIcon:c}=i;let u=c;if(u!=null){s&&(u=s(c));const d=Mn(i,!0);Object.keys(d).length&&(u=le.isValidElement(u)?le.cloneElement(u,d):le.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,o])}var sH=function(t){if(Dr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},die=function(t,n){if(!sH(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function yT(e,t){return!Array.isArray(e)&&t!==void 0?die(e,t):sH(e)}const fie=()=>Dr()&&window.document.documentElement,Mb=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=ne({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ne({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ne(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},pie=new sn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Db=e=>({height:e,lineHeight:G(e)}),Su=e=>Object.assign({width:e},Db(e)),gie=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:pie,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),tS=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Db(e)),mie=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Su(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Su(a)),[`${t}${t}-sm`]:Object.assign({},Su(o))}},hie=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},tS(t,s)),[`${r}-lg`]:Object.assign({},tS(a,s)),[`${r}-sm`]:Object.assign({},tS(o,s))}},S3=e=>Object.assign({width:e},Db(e)),vie=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},S3(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},S3(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},nS=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},rS=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Db(e)),bie=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},rS(r,s))},nS(e,r,n)),{[`${n}-lg`]:Object.assign({},rS(a,s))}),nS(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},rS(o,s))}),nS(e,o,`${n}-sm`))},yie=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:v,titleHeight:m,blockRadius:h,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Su(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Su(u)),[`${n}-sm`]:Object.assign({},Su(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:f,borderRadius:h,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},bie(e)),mie(e)),hie(e)),vie(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),a)}else pp(a);return function(){pp(a)}},[t,a])}var uoe=!1;function doe(e){return uoe}var n3=function(t){return t===!1?!1:!Dr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ab=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=l.useState(n),u=ie(c,2),d=u[0],f=u[1],p=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=l.useState(function(){return n3(a)}),v=ie(g,2),m=v[0],h=v[1];l.useEffect(function(){var $=n3(a);h($??null)});var y=ioe(p&&!m),b=ie(y,2),S=b[0],C=b[1],x=m??S;coe(r&&n&&Dr()&&(x===S||x===document.body));var E=null;if(s&&Ho(s)&&t){var I=s;E=I.ref}var R=Qi(E,t);if(!p||!Dr()||m===void 0)return null;var T=x===!1||doe(),_=s;return t&&(_=l.cloneElement(s,{ref:R})),l.createElement(V9.Provider,{value:C},T?_:xr.createPortal(_,x))}),G9=l.createContext({});function foe(){var e=K({},Kp);return e.useId}var r3=0,a3=foe();const q9=a3?function(t){var n=a3();return t||n}:function(t){var n=l.useState("ssr-id"),r=ie(n,2),a=r[0],o=r[1];return l.useEffect(function(){var i=r3;r3+=1,o("rc_unique_".concat(i))},[]),t||a};function o3(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function i3(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function poe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=i3(a),n.top+=i3(a,!0),n}const goe=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var s3={width:0,height:0,overflow:"hidden",outline:"none"},moe={outline:"none"},K9=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,g=e.bodyProps,v=e.modalRender,m=e.onMouseDown,h=e.onMouseUp,y=e.holderRef,b=e.visible,S=e.forceRender,C=e.width,x=e.height,E=e.classNames,I=e.styles,R=le.useContext(G9),T=R.panel,_=Qi(y,T),$=l.useRef(),D=l.useRef(),P=l.useRef();le.useImperativeHandle(t,function(){return{focus:function(){var z;(z=P.current)===null||z===void 0||z.focus({preventScroll:!0})},changeActive:function(z){var H=document,U=H.activeElement;z&&U===D.current?$.current.focus({preventScroll:!0}):!z&&U===$.current&&D.current.focus({preventScroll:!0})}}});var A={};C!==void 0&&(A.width=C),x!==void 0&&(A.height=x);var O=s?le.createElement("div",{className:ne("".concat(n,"-footer"),E==null?void 0:E.footer),style:K({},I==null?void 0:I.footer)},s):null,k=o?le.createElement("div",{className:ne("".concat(n,"-header"),E==null?void 0:E.header),style:K({},I==null?void 0:I.header)},le.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,N=l.useMemo(function(){return mt(c)==="object"&&c!==null?c:c?{closeIcon:u??le.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),M=Pn(N,!0),L=mt(c)==="object"&&c.disabled,F=c?le.createElement("button",ve({type:"button",onClick:d,"aria-label":"Close"},M,{className:"".concat(n,"-close"),disabled:L}),N.closeIcon):null,j=le.createElement("div",{className:ne("".concat(n,"-content"),E==null?void 0:E.content),style:I==null?void 0:I.content},F,k,le.createElement("div",ve({className:ne("".concat(n,"-body"),E==null?void 0:E.body),style:K(K({},p),I==null?void 0:I.body)},g),f),O);return le.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:_,style:K(K({},a),A),className:ne(n,r),onMouseDown:m,onMouseUp:h},le.createElement("div",{tabIndex:0,ref:$,style:s3,"aria-hidden":"true"}),le.createElement("div",{ref:P,tabIndex:-1,style:moe},le.createElement(goe,{shouldUpdate:b||S},v?v(j):j)),le.createElement("div",{tabIndex:0,ref:D,style:s3,"aria-hidden":"true"}))}),Y9=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,g=l.useRef(),v=l.useState(),m=ie(v,2),h=m[0],y=m[1],b={};h&&(b.transformOrigin=h);function S(){var C=poe(g.current);y(p&&(p.x||p.y)?"".concat(p.x-C.left,"px ").concat(p.y-C.top,"px"):"")}return l.createElement(qr,{visible:i,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(C,x){var E=C.className,I=C.style;return l.createElement(K9,ve({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:x,style:K(K(K({},I),a),b),className:ne(o,E)}))})});Y9.displayName="Content";var hoe=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,s=t.className;return l.createElement(qr,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",ve({ref:u,style:K(K({},f),r),className:ne("".concat(n,"-mask"),d,s)},o))})},voe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,p=t.wrapClassName,g=t.wrapProps,v=t.onClose,m=t.afterOpenChange,h=t.afterClose,y=t.transitionName,b=t.animation,S=t.closable,C=S===void 0?!0:S,x=t.mask,E=x===void 0?!0:x,I=t.maskTransitionName,R=t.maskAnimation,T=t.maskClosable,_=T===void 0?!0:T,$=t.maskStyle,D=t.maskProps,P=t.rootClassName,A=t.classNames,O=t.styles,k=l.useRef(),N=l.useRef(),M=l.useRef(),L=l.useState(i),F=ie(L,2),j=F[0],B=F[1],z=q9();function H(){OI(N.current,document.activeElement)||(k.current=document.activeElement)}function U(){if(!OI(N.current,document.activeElement)){var Q;(Q=M.current)===null||Q===void 0||Q.focus()}}function X(Q){if(Q)U();else{if(B(!1),E&&k.current&&d){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}j&&(h==null||h())}m==null||m(Q)}function W(Q){v==null||v(Q)}var Y=l.useRef(!1),te=l.useRef(),ee=function(){clearTimeout(te.current),Y.current=!0},Z=function(){te.current=setTimeout(function(){Y.current=!1})},oe=null;_&&(oe=function(ae){Y.current?Y.current=!1:N.current===ae.target&&W(ae)});function re(Q){if(c&&Q.keyCode===De.ESC){Q.stopPropagation(),W(Q);return}i&&Q.keyCode===De.TAB&&M.current.changeActive(!Q.shiftKey)}l.useEffect(function(){i&&(B(!0),H())},[i]),l.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var q=K(K(K({zIndex:a},f),O==null?void 0:O.wrapper),{},{display:j?null:"none"});return l.createElement("div",ve({className:ne("".concat(r,"-root"),P)},Pn(t,{data:!0})),l.createElement(hoe,{prefixCls:r,visible:E&&i,motionName:o3(r,I,R),style:K(K({zIndex:a},$),O==null?void 0:O.mask),maskProps:D,className:A==null?void 0:A.mask}),l.createElement("div",ve({tabIndex:-1,onKeyDown:re,className:ne("".concat(r,"-wrap"),p,A==null?void 0:A.wrapper),ref:N,onClick:oe,style:q},g),l.createElement(Y9,ve({},t,{onMouseDown:ee,onMouseUp:Z,ref:M,closable:C,ariaId:z,prefixCls:r,visible:i&&j,onClose:W,onVisibleChanged:X,motionName:o3(r,y,b)}))))},X9=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=ie(u,2),f=d[0],p=d[1],g=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&p(!0)},[n]),!a&&i&&!f?null:l.createElement(G9.Provider,{value:g},l.createElement(Ab,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(voe,ve({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),p(!1)}}))))};X9.displayName="Dialog";var El="RC_FORM_INTERNAL_HOOKS",_n=function(){pn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ql=l.createContext({getFieldValue:_n,getFieldsValue:_n,getFieldError:_n,getFieldWarning:_n,getFieldsError:_n,isFieldsTouched:_n,isFieldTouched:_n,isFieldValidating:_n,isFieldsValidating:_n,resetFields:_n,setFields:_n,setFieldValue:_n,setFieldsValue:_n,validateFields:_n,submit:_n,getInternalHooks:function(){return _n(),{dispatch:_n,initEntityValue:_n,registerField:_n,useSubscribe:_n,setInitialValues:_n,destroyForm:_n,setCallbacks:_n,registerWatch:_n,getFields:_n,setValidateMessages:_n,setPreserve:_n,getInitialValue:_n}}}),Sp=l.createContext(null);function cT(e){return e==null?[]:Array.isArray(e)?e:[e]}function boe(e){return e&&!!e._init}function uT(){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 dT=uT();function yoe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Soe(e,t,n){if(Cb())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&dp(a,n.prototype),a}function fT(e){var t=typeof Map=="function"?new Map:void 0;return fT=function(r){if(r===null||!yoe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Soe(r,arguments,Kl(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),dp(a,r)},fT(e)}var woe=/%[sdj%]/g,Coe=function(){};function pT(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ua(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function xoe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Tr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||xoe(t)&&typeof e=="string"&&!e)}function Eoe(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,Oe(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function l3(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?a.push(Ua(o.messages[f].max,t.fullField,t.max)):s&&c&&(dt.max)&&a.push(Ua(o.messages[f].range,t.fullField,t.min,t.max))},Z9=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Tr(n,i||t.type))&&a.push(Ua(o.messages.required,t.fullField))},bm;const koe=function(){if(bm)return bm;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?: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}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,v=d.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(g,"|").concat(v,"|").concat(m).concat(h).concat(y,")").concat(b).concat(S);return bm=new RegExp("(?:^".concat(C,"$)"),"i"),bm};var f3={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},nf={integer:function(t){return nf.number(t)&&parseInt(t,10)===t},float:function(t){return nf.number(t)&&!nf.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 mt(t)==="object"&&!nf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(f3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(koe())},hex:function(t){return typeof t=="string"&&!!t.match(f3.hex)}},Aoe=function(t,n,r,a,o){if(t.required&&n===void 0){Z9(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?nf[s](n)||a.push(Ua(o.messages.types[s],t.fullField,t.type)):s&&mt(n)!==t.type&&a.push(Ua(o.messages.types[s],t.fullField,t.type))},Moe=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Ua(o.messages.whitespace,t.fullField))};const dn={required:Z9,whitespace:Moe,type:Aoe,range:Noe,enum:$oe,pattern:Ooe};var Doe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o)}r(i)},Poe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();dn.required(t,n,a,i,o,"array"),n!=null&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Loe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn.type(t,n,a,i,o)}r(i)},Foe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n,"date")&&!t.required)return r();if(dn.required(t,n,a,i,o),!Tr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),dn.type(t,c,a,i,o),c&&dn.range(t,c.getTime(),a,i,o)}}r(i)},joe="enum",Boe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn[joe](t,n,a,i,o)}r(i)},zoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Hoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Uoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn.type(t,n,a,i,o)}r(i)},Voe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o))}r(i)},Woe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),n!==void 0&&dn.type(t,n,a,i,o)}r(i)},Goe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n,"string")&&!t.required)return r();dn.required(t,n,a,i,o),Tr(n,"string")||dn.pattern(t,n,a,i,o)}r(i)},qoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n)&&!t.required)return r();dn.required(t,n,a,i,o),Tr(n)||dn.type(t,n,a,i,o)}r(i)},Koe=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":mt(n);dn.required(t,n,a,i,o,s),r(i)},Yoe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tr(n,"string")&&!t.required)return r();dn.required(t,n,a,i,o,"string"),Tr(n,"string")||(dn.type(t,n,a,i,o),dn.range(t,n,a,i,o),dn.pattern(t,n,a,i,o),t.whitespace===!0&&dn.whitespace(t,n,a,i,o))}r(i)},Qy=function(t,n,r,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Tr(n,i)&&!t.required)return r();dn.required(t,n,a,s,o,i),Tr(n,i)||dn.type(t,n,a,s,o)}r(s)};const $f={string:Yoe,method:Uoe,number:Voe,boolean:Loe,regexp:qoe,integer:Hoe,float:zoe,array:Poe,object:Woe,enum:Boe,pattern:Goe,date:Foe,url:Qy,hex:Qy,email:Qy,required:Koe,any:Doe};var ig=function(){function e(t){Ln(this,e),V(this,"rules",null),V(this,"_messages",dT),this.define(t)}return Fn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=d3(uT(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(v){var m=[],h={};function y(S){if(Array.isArray(S)){var C;m=(C=m).concat.apply(C,Oe(S))}else m.push(S)}for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(I)?I:[I];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&h.message!==void 0&&(R=[].concat(h.message));var T=R.map(u3(h,i));if(s.first&&T.length)return g[h.field]=1,m(T);if(!y)m(T);else{if(h.required&&!v.value)return h.message!==void 0?T=[].concat(h.message).map(u3(h,i)):s.error&&(T=[s.error(h,Ua(s.messages.required,h.field))]),m(T);var _={};h.defaultField&&Object.keys(v.value).map(function(P){_[P]=h.defaultField}),_=K(K({},_),v.rule.fields);var $={};Object.keys(_).forEach(function(P){var A=_[P],O=Array.isArray(A)?A:[A];$[P]=O.map(b.bind(null,P))});var D=new e($);D.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),D.validate(v.value,v.rule.options||s,function(P){var A=[];T&&T.length&&A.push.apply(A,Oe(T)),P&&P.length&&A.push.apply(A,Oe(P)),m(A.length?A:null)})}}var C;if(h.asyncValidator)C=h.asyncValidator(h,v.value,S,v.source,s);else if(h.validator){try{C=h.validator(h,v.value,S,v.source,s)}catch(I){var x,E;(x=(E=console).error)===null||x===void 0||x.call(E,I),s.suppressValidatorError||setTimeout(function(){throw I},0),S(I.message)}C===!0?S():C===!1?S(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(I){return S(I)})},function(v){u(v)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!$f.hasOwnProperty(n.type))throw new Error(Ua("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?$f.required:$f[this.getType(n)]||void 0}}]),e}();V(ig,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$f[t]=n});V(ig,"warning",Coe);V(ig,"messages",dT);V(ig,"validators",$f);var Ma="'${name}' is not a valid ${type}",Q9={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:Ma,method:Ma,array:Ma,object:Ma,number:Ma,date:Ma,boolean:Ma,integer:Ma,float:Ma,regexp:Ma,email:Ma,url:Ma,hex:Ma},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}"}},p3=ig;function Xoe(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var g3="CODE_LOGIC_ERROR";function gT(e,t,n,r,a){return mT.apply(this,arguments)}function mT(){return mT=el(Kr().mark(function e(t,n,r,a,o){var i,s,c,u,d,f,p,g,v;return Kr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=K({},r),delete i.ruleIndex,p3.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(g3)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new p3(V({},t,[i])),d=ou(Q9,a.validateMessages),u.messages(d),f=[],h.prev=10,h.next=13,Promise.resolve(u.validate(V({},t,n),K({},a)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(y,b){var S=y.message,C=S===g3?d.default:S;return l.isValidElement(C)?l.cloneElement(C,{key:"error_".concat(b)}):C}));case 18:if(!(!f.length&&c)){h.next=23;break}return h.next=21,Promise.all(n.map(function(y,b){return gT("".concat(t,".").concat(b),y,c,a,o)}));case 21:return p=h.sent,h.abrupt("return",p.reduce(function(y,b){return[].concat(Oe(y),Oe(b))},[]));case 23:return g=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),v=f.map(function(y){return typeof y=="string"?Xoe(y,g):y}),h.abrupt("return",v);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),mT.apply(this,arguments)}function Zoe(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,f){var p=d.validator,g=K(K({},d),{},{ruleIndex:f});return p&&(g.validator=function(v,m,h){var y=!1,b=function(){for(var x=arguments.length,E=new Array(x),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return J9(t,r,n)})}function J9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function eie(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Oe(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function tie(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function h3(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Oe(e.slice(0,n)),[a],Oe(e.slice(n,t)),Oe(e.slice(t+1,r))):o<0?[].concat(Oe(e.slice(0,t)),Oe(e.slice(t+1,n+1)),[a],Oe(e.slice(n+1,r))):e}var nie=["name"],eo=[];function Jy(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var Y_=function(e){Qa(n,e);var t=xo(n);function n(r){var a;if(Ln(this,n),a=t.call(this,r),V(Ve(a),"state",{resetCount:0}),V(Ve(a),"cancelRegisterFunc",null),V(Ve(a),"mounted",!1),V(Ve(a),"touched",!1),V(Ve(a),"dirty",!1),V(Ve(a),"validatePromise",void 0),V(Ve(a),"prevValidating",void 0),V(Ve(a),"errors",eo),V(Ve(a),"warnings",eo),V(Ve(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,lr(f)),a.cancelRegisterFunc=null}),V(Ve(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Oe(p),Oe(u)):[]}),V(Ve(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),V(Ve(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),V(Ve(a),"metaCache",null),V(Ve(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=K(K({},a.getMeta()),{},{destroy:c});Uo(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),V(Ve(a),"onStoreChange",function(c,u,d){var f=a.props,p=f.shouldUpdate,g=f.dependencies,v=g===void 0?[]:g,m=f.onReset,h=d.store,y=a.getNamePath(),b=a.getValue(c),S=a.getValue(h),C=u&&yu(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&!Uo(b,S)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=eo,a.warnings=eo,a.triggerMetaEvent()),d.type){case"reset":if(!u||C){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=eo,a.warnings=eo,a.triggerMetaEvent(),m==null||m(),a.refresh();return}break;case"remove":{if(p&&Jy(p,c,h,b,S,d)){a.reRender();return}break}case"setField":{var x=d.data;if(C){"touched"in x&&(a.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(a.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(a.errors=x.errors||eo),"warnings"in x&&(a.warnings=x.warnings||eo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in x&&yu(u,y,!0)){a.reRender();return}if(p&&!y.length&&Jy(p,c,h,b,S,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=v.map(lr);if(E.some(function(I){return yu(d.relatedFields,I)})){a.reRender();return}break}default:if(C||(!v.length||y.length||p)&&Jy(p,c,h,b,S,d)){a.reRender();return}break}p===!0&&a.reRender()}),V(Ve(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},p=f.triggerName,g=f.validateOnly,v=g===void 0?!1:g,m=Promise.resolve().then(el(Kr().mark(function h(){var y,b,S,C,x,E,I;return Kr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(a.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=a.props,b=y.validateFirst,S=b===void 0?!1:b,C=y.messageVariables,x=y.validateDebounce,E=a.getRules(),p&&(E=E.filter(function(_){return _}).filter(function(_){var $=_.validateTrigger;if(!$)return!0;var D=cT($);return D.includes(p)})),!(x&&p)){T.next=10;break}return T.next=8,new Promise(function(_){setTimeout(_,x)});case 8:if(a.validatePromise===m){T.next=10;break}return T.abrupt("return",[]);case 10:return I=Zoe(u,d,E,c,S,C),I.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eo;if(a.validatePromise===m){var $;a.validatePromise=null;var D=[],P=[];($=_.forEach)===null||$===void 0||$.call(_,function(A){var O=A.rule.warningOnly,k=A.errors,N=k===void 0?eo:k;O?P.push.apply(P,Oe(N)):D.push.apply(D,Oe(N))}),a.errors=D,a.warnings=P,a.triggerMetaEvent(),a.reRender()}}),T.abrupt("return",I);case 13:case"end":return T.stop()}},h)})));return v||(a.validatePromise=m,a.dirty=!0,a.errors=eo,a.warnings=eo,a.triggerMetaEvent(),a.reRender()),m}),V(Ve(a),"isFieldValidating",function(){return!!a.validatePromise}),V(Ve(a),"isFieldTouched",function(){return a.touched}),V(Ve(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(El),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),V(Ve(a),"getErrors",function(){return a.errors}),V(Ve(a),"getWarnings",function(){return a.warnings}),V(Ve(a),"isListField",function(){return a.props.isListField}),V(Ve(a),"isList",function(){return a.props.isList}),V(Ve(a),"isPreserve",function(){return a.props.preserve}),V(Ve(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),V(Ve(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return K(K({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=ir(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),V(Ve(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Ha(c||u(!0),d)}),V(Ve(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,p=u.validateTrigger,g=u.getValueFromEvent,v=u.normalize,m=u.valuePropName,h=u.getValueProps,y=u.fieldContext,b=p!==void 0?p:y.validateTrigger,S=a.getNamePath(),C=y.getInternalHooks,x=y.getFieldsValue,E=C(El),I=E.dispatch,R=a.getValue(),T=h||function(A){return V({},m,A)},_=c[f],$=d!==void 0?T(R):{},D=K(K({},c),$);D[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,O=arguments.length,k=new Array(O),N=0;N=0&&_<=$.length?(d.keys=[].concat(Oe(d.keys.slice(0,_)),[d.id],Oe(d.keys.slice(_))),S([].concat(Oe($.slice(0,_)),[T],Oe($.slice(_))))):(d.keys=[].concat(Oe(d.keys),[d.id]),S([].concat(Oe($),[T]))),d.id+=1},remove:function(T){var _=x(),$=new Set(Array.isArray(T)?T:[T]);$.size<=0||(d.keys=d.keys.filter(function(D,P){return!$.has(P)}),S(_.filter(function(D,P){return!$.has(P)})))},move:function(T,_){if(T!==_){var $=x();T<0||T>=$.length||_<0||_>=$.length||(d.keys=h3(d.keys,T,_),S(h3($,T,_)))}}},I=b||[];return Array.isArray(I)||(I=[]),r(I.map(function(R,T){var _=d.keys[T];return _===void 0&&(d.keys[T]=d.id,_=d.keys[T],d.id+=1),{name:T,key:_,isListField:!0}}),E,h)})))}function rie(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var tH="__@field_split__";function eS(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(tH)}var Nc=function(){function e(){Ln(this,e),V(this,"kvs",new Map)}return Fn(e,[{key:"set",value:function(n,r){this.kvs.set(eS(n),r)}},{key:"get",value:function(n){return this.kvs.get(eS(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(eS(n))}},{key:"map",value:function(n){return Oe(this.kvs.entries()).map(function(r){var a=ie(r,2),o=a[0],i=a[1],s=o.split(tH);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ie(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),aie=["name"],oie=Fn(function e(t){var n=this;Ln(this,e),V(this,"formHooked",!1),V(this,"forceRootUpdate",void 0),V(this,"subscribable",!0),V(this,"store",{}),V(this,"fieldEntities",[]),V(this,"initialValues",{}),V(this,"callbacks",{}),V(this,"validateMessages",null),V(this,"preserve",null),V(this,"lastValidatePromise",null),V(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),V(this,"getInternalHooks",function(r){return r===El?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(pn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),V(this,"useSubscribe",function(r){n.subscribable=r}),V(this,"prevWithoutPreserves",null),V(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=ou(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=No(i,c,Ha(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),V(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new Nc;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),V(this,"getInitialValue",function(r){var a=Ha(n.initialValues,r);return r.length?ou(a):a}),V(this,"setCallbacks",function(r){n.callbacks=r}),V(this,"setValidateMessages",function(r){n.validateMessages=r}),V(this,"setPreserve",function(r){n.preserve=r}),V(this,"watchList",[]),V(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),V(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),V(this,"timeoutId",null),V(this,"warningUnhooked",function(){}),V(this,"updateStore",function(r){n.store=r}),V(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),V(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Nc;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),V(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=lr(o);return a.get(i)||{INVALIDATE_NAME_PATH:lr(o)}})}),V(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&mt(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,p,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var v,m;if((v=(m=d).isList)!==null&&v!==void 0&&v.call(m))return}else if(!o&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)u.push(g);else{var h="getMeta"in d?d.getMeta():null;i(h)&&u.push(g)}}),m3(n.store,u.map(lr))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var a=lr(r);return Ha(n.store,a)}),V(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:lr(r[i]),errors:[],warnings:[]}})}),V(this,"getFieldError",function(r){n.warningUnhooked();var a=lr(r),o=n.getFieldsError([a])[0];return o.errors}),V(this,"getFieldWarning",function(r){n.warningUnhooked();var a=lr(r),o=n.getFieldsError([a])[0];return o.warnings}),V(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new Nc,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),g=n.getInitialValue(p);if(g!==void 0)pn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var v=a.get(p);if(v&&v.size>1)pn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var m=n.getFieldValue(p),h=d.isListField();!h&&(!r.skipExist||m===void 0)&&n.updateStore(No(n.store,p,Oe(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=s).push.apply(d,Oe(Oe(u).map(function(f){return f.entity})))}})):s=o,i(s)}),V(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(ou(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(lr);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(No(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),V(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,c=xt(i,aie),u=lr(s);o.push(u),"value"in c&&n.updateStore(No(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),V(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=K(K({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),V(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Ha(n.store,o);i===void 0&&n.updateStore(No(n.store,o,a))}}),V(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),V(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!J9(f.getNamePath(),a)})){var d=n.store;n.updateStore(No(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),V(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),V(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=K(K({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),V(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Oe(o))}),o}),V(this,"updateValue",function(r,a){var o=lr(r),i=n.store;n.updateStore(No(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=m3(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Oe(s)))}),V(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=ou(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),V(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),V(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new Nc;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=lr(d);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(o.push(p),c(p))}})};return s(r),o}),V(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new Nc;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return yu(r,d)});c.length&&o(c,i)}}),V(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,c=s?o.map(lr):[],u=[],d=String(Date.now()),f=new Set,p=i||{},g=p.recursive,v=p.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||c.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(v&&!b.isFieldDirty())){var S=b.getNamePath();if(f.add(S.join(d)),!s||yu(c,S,g)){var C=b.validateRules(K({validateMessages:K(K({},Q9),n.validateMessages)},i));u.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(x){var E,I=[],R=[];return(E=x.forEach)===null||E===void 0||E.call(x,function(T){var _=T.rule.warningOnly,$=T.errors;_?R.push.apply(R,Oe($)):I.push.apply(I,Oe($))}),I.length?Promise.reject({name:S,errors:I,warnings:R}):{name:S,errors:I,warnings:R}}))}}});var m=rie(u);n.lastValidatePromise=m,m.catch(function(b){return b}).then(function(b){var S=b.map(function(C){var x=C.name;return x});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,b)});var h=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(b){var S=b.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:S,outOfDate:n.lastValidatePromise!==m})});h.catch(function(b){return b});var y=c.filter(function(b){return f.has(b.join(d))});return n.triggerOnFieldsChange(y),h}),V(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function Z_(e){var t=l.useRef(),n=l.useState({}),r=ie(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new oie(o);t.current=i.getForm()}return[t.current]}var bT=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),nH=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(bT),s=l.useRef({});return l.createElement(bT.Provider,{value:K(K({},i),{},{validateMessages:K(K({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=K(K({},s.current),{},V({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=K({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},iie=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],sie=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,v=t.onValuesChange,m=t.onFieldsChange,h=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,S=xt(t,iie),C=l.useRef(null),x=l.useContext(bT),E=Z_(i),I=ie(E,1),R=I[0],T=R.getInternalHooks(El),_=T.useSubscribe,$=T.setInitialValues,D=T.setCallbacks,P=T.setValidateMessages,A=T.setPreserve,O=T.destroyForm;l.useImperativeHandle(n,function(){return K(K({},R),{},{nativeElement:C.current})}),l.useEffect(function(){return x.registerForm(r,R),function(){x.unregisterForm(r)}},[x,R,r]),P(K(K({},x.validateMessages),f)),D({onValuesChange:v,onFieldsChange:function(H){if(x.triggerFormChange(r,H),m){for(var U=arguments.length,X=new Array(U>1?U-1:0),W=1;W{}}),aH=l.createContext(null),oH=e=>{const t=Sn(e,["prefixCls"]);return l.createElement(nH,Object.assign({},t))},Q_=l.createContext({prefixCls:""}),Rr=l.createContext({}),cie=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(Rr),o=l.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return l.createElement(Rr.Provider,{value:o},t)},iH=l.createContext(void 0),fi=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=le.createElement(cie,{override:!0,status:!0},a)),t&&(a=le.createElement(Rae,null,a)),a};function Bu(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function b3(e){const{closable:t,closeIcon:n}=e||{};return le.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function y3(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const uie={};function J_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:uie;const r=b3(e),a=b3(t),o=le.useMemo(()=>Object.assign({closeIcon:le.createElement(da,null)},n),[n]),i=le.useMemo(()=>r===!1?!1:r?y3(o,a,r):a===!1?!1:a?y3(o,a):o.closable?o:!1,[r,a,o]);return le.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:s}=o,{closeIcon:c}=i;let u=c;if(u!=null){s&&(u=s(c));const d=Pn(i,!0);Object.keys(d).length&&(u=le.isValidElement(u)?le.cloneElement(u,d):le.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,o])}var sH=function(t){if(Dr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},die=function(t,n){if(!sH(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function yT(e,t){return!Array.isArray(e)&&t!==void 0?die(e,t):sH(e)}const fie=()=>Dr()&&window.document.documentElement,Mb=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=ne({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ne({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ne(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},pie=new sn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Db=e=>({height:e,lineHeight:G(e)}),Su=e=>Object.assign({width:e},Db(e)),gie=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:pie,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),tS=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Db(e)),mie=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Su(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Su(a)),[`${t}${t}-sm`]:Object.assign({},Su(o))}},hie=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},tS(t,s)),[`${r}-lg`]:Object.assign({},tS(a,s)),[`${r}-sm`]:Object.assign({},tS(o,s))}},S3=e=>Object.assign({width:e},Db(e)),vie=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},S3(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},S3(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},nS=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},rS=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Db(e)),bie=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},rS(r,s))},nS(e,r,n)),{[`${n}-lg`]:Object.assign({},rS(a,s))}),nS(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},rS(o,s))}),nS(e,o,`${n}-sm`))},yie=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:v,titleHeight:m,blockRadius:h,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Su(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Su(u)),[`${n}-sm`]:Object.assign({},Su(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:f,borderRadius:h,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},bie(e)),mie(e)),hie(e)),vie(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${a} > li, ${n}, ${o}, ${i}, ${s} - `]:Object.assign({},gie(e))}}},Sie=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},id=nn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=zt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[yie(r)]},Sie,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(it),c=s("skeleton",t),[u,d,f]=id(c),p=yn(e,["prefixCls","className"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(Mb,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},p))))},Cie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(it),c=s("skeleton",t),[u,d,f]=id(c),p=yn(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(Mb,Object.assign({prefixCls:`${c}-button`,size:i},p))))},xie="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Eie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=l.useContext(it),s=i("skeleton",t),[c,u,d]=id(s),f=ne(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:ne(`${s}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:xie,className:`${s}-image-path`})))))},Iie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=l.useContext(it),c=s("skeleton",t),[u,d,f]=id(c),p=yn(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(Mb,Object.assign({prefixCls:`${c}-input`,size:i},p))))};var Tie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Rie=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Tie}))},_ie=l.forwardRef(Rie);const $ie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:s}=l.useContext(it),c=s("skeleton",t),[u,d,f]=id(c),p=ne(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f),g=i??l.createElement(_ie,null);return u(l.createElement("div",{className:p},l.createElement("div",{className:ne(`${c}-image`,n),style:a},g)))},Oie=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Nie=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=Oe(Array(a)).map((i,s)=>l.createElement("li",{key:s,style:{width:Oie(s,e)}}));return l.createElement("ul",{className:ne(t,n),style:r},o)},kie=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},a)})};function aS(e){return e&&typeof e=="object"?e:{}}function Aie(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Mie(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Die(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const tl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:g,skeleton:v}=l.useContext(it),m=p("skeleton",t),[h,y,b]=id(m);if(n||!("loading"in e)){const S=!!s,C=!!c,x=!!u;let E;if(S){const T=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Aie(C,x)),aS(s));E=l.createElement("div",{className:`${m}-header`},l.createElement(Mb,Object.assign({},T)))}let I;if(C||x){let T;if(C){const $=Object.assign(Object.assign({prefixCls:`${m}-title`},Mie(S,x)),aS(c));T=l.createElement(kie,Object.assign({},$))}let _;if(x){const $=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},Die(S,C)),aS(u));_=l.createElement(Nie,Object.assign({},$))}I=l.createElement("div",{className:`${m}-content`},T,_)}const R=ne(m,{[`${m}-with-avatar`]:S,[`${m}-active`]:d,[`${m}-rtl`]:g==="rtl",[`${m}-round`]:f},v==null?void 0:v.className,r,a,y,b);return h(l.createElement("div",{className:R,style:Object.assign(Object.assign({},v==null?void 0:v.style),o)},E,I))}return i??null};tl.Button=Cie;tl.Avatar=wie;tl.Input=Iie;tl.Image=Eie;tl.Node=$ie;function w3(){}const Pie=l.createContext({add:w3,remove:w3});function lH(e){const t=l.useContext(Pie),n=l.useRef();return Ut(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const C3=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(og);return le.createElement(Pt,Object.assign({onClick:n},e),t)},x3=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(og);return le.createElement(Pt,Object.assign({},P9(n),{loading:e,onClick:a},t),r)};function cH(e,t){return le.createElement("span",{className:`${e}-close-x`},t||le.createElement(da,{className:`${e}-close-icon`}))}const uH=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=mi("Modal",Uz()),f=t||(d==null?void 0:d.okText),p=r||(d==null?void 0:d.cancelText),g={confirmLoading:a,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:o,onCancel:i},v=le.useMemo(()=>g,Oe(Object.values(g)));let m;return typeof u=="function"||typeof u>"u"?(m=le.createElement(le.Fragment,null,le.createElement(C3,null),le.createElement(x3,null)),typeof u=="function"&&(m=u(m,{OkBtn:x3,CancelBtn:C3})),m=le.createElement(U9,{value:v},m)):m=u,le.createElement(F_,{disabled:!1},m)},sg=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:Object.assign({},gie(e))}}},Sie=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},id=tn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Bt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[yie(r)]},Sie,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(ct),c=s("skeleton",t),[u,d,f]=id(c),p=Sn(e,["prefixCls","className"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(Mb,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},p))))},Cie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(ct),c=s("skeleton",t),[u,d,f]=id(c),p=Sn(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(Mb,Object.assign({prefixCls:`${c}-button`,size:i},p))))},xie="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Eie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=l.useContext(ct),s=i("skeleton",t),[c,u,d]=id(s),f=ne(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:ne(`${s}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:xie,className:`${s}-image-path`})))))},Iie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=l.useContext(ct),c=s("skeleton",t),[u,d,f]=id(c),p=Sn(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(Mb,Object.assign({prefixCls:`${c}-input`,size:i},p))))};var Tie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Rie=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Tie}))},_ie=l.forwardRef(Rie);const $ie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:s}=l.useContext(ct),c=s("skeleton",t),[u,d,f]=id(c),p=ne(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f),g=i??l.createElement(_ie,null);return u(l.createElement("div",{className:p},l.createElement("div",{className:ne(`${c}-image`,n),style:a},g)))},Oie=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Nie=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=Oe(Array(a)).map((i,s)=>l.createElement("li",{key:s,style:{width:Oie(s,e)}}));return l.createElement("ul",{className:ne(t,n),style:r},o)},kie=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},a)})};function aS(e){return e&&typeof e=="object"?e:{}}function Aie(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Mie(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Die(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const tl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:g,skeleton:v}=l.useContext(ct),m=p("skeleton",t),[h,y,b]=id(m);if(n||!("loading"in e)){const S=!!s,C=!!c,x=!!u;let E;if(S){const T=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Aie(C,x)),aS(s));E=l.createElement("div",{className:`${m}-header`},l.createElement(Mb,Object.assign({},T)))}let I;if(C||x){let T;if(C){const $=Object.assign(Object.assign({prefixCls:`${m}-title`},Mie(S,x)),aS(c));T=l.createElement(kie,Object.assign({},$))}let _;if(x){const $=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},Die(S,C)),aS(u));_=l.createElement(Nie,Object.assign({},$))}I=l.createElement("div",{className:`${m}-content`},T,_)}const R=ne(m,{[`${m}-with-avatar`]:S,[`${m}-active`]:d,[`${m}-rtl`]:g==="rtl",[`${m}-round`]:f},v==null?void 0:v.className,r,a,y,b);return h(l.createElement("div",{className:R,style:Object.assign(Object.assign({},v==null?void 0:v.style),o)},E,I))}return i??null};tl.Button=Cie;tl.Avatar=wie;tl.Input=Iie;tl.Image=Eie;tl.Node=$ie;function w3(){}const Pie=l.createContext({add:w3,remove:w3});function lH(e){const t=l.useContext(Pie),n=l.useRef();return zt(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const C3=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(og);return le.createElement(Dt,Object.assign({onClick:n},e),t)},x3=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(og);return le.createElement(Dt,Object.assign({},P9(n),{loading:e,onClick:a},t),r)};function cH(e,t){return le.createElement("span",{className:`${e}-close-x`},t||le.createElement(da,{className:`${e}-close-icon`}))}const uH=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=hi("Modal",Uz()),f=t||(d==null?void 0:d.okText),p=r||(d==null?void 0:d.cancelText),g={confirmLoading:a,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:o,onCancel:i},v=le.useMemo(()=>g,Oe(Object.values(g)));let m;return typeof u=="function"||typeof u>"u"?(m=le.createElement(le.Fragment,null,le.createElement(C3,null),le.createElement(x3,null)),typeof u=="function"&&(m=u(m,{OkBtn:x3,CancelBtn:C3})),m=le.createElement(U9,{value:v},m)):m=u,le.createElement(F_,{disabled:!1},m)},sg=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`}}}),Lie=e=>({animationDuration:e,animationFillMode:"both"}),Fie=e=>({animationDuration:e,animationFillMode:"both"}),Pb=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${o}${e}-enter, @@ -204,18 +204,18 @@ html body { `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},zie=new sn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hie=new sn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Uie=new sn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vie=new sn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Wie=new sn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gie=new sn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),qie=new sn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kie=new sn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Yie={"move-up":{inKeyframes:qie,outKeyframes:Kie},"move-down":{inKeyframes:zie,outKeyframes:Hie},"move-left":{inKeyframes:Uie,outKeyframes:Vie},"move-right":{inKeyframes:Wie,outKeyframes:Gie}},zu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Yie[t];return[Pb(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Lb=new sn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Fb=new sn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jb=new sn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Bb=new sn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Xie=new sn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Zie=new sn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qie=new sn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Jie=new sn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ese={"slide-up":{inKeyframes:Lb,outKeyframes:Fb},"slide-down":{inKeyframes:jb,outKeyframes:Bb},"slide-left":{inKeyframes:Xie,outKeyframes:Zie},"slide-right":{inKeyframes:Qie,outKeyframes:Jie}},fi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=ese[t];return[Pb(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Lb=new sn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Fb=new sn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jb=new sn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Bb=new sn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Xie=new sn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Zie=new sn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qie=new sn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Jie=new sn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ese={"slide-up":{inKeyframes:Lb,outKeyframes:Fb},"slide-down":{inKeyframes:jb,outKeyframes:Bb},"slide-left":{inKeyframes:Xie,outKeyframes:Zie},"slide-right":{inKeyframes:Qie,outKeyframes:Jie}},pi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=ese[t];return[Pb(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},e$=new sn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tse=new sn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),E3=new sn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),I3=new sn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nse=new sn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rse=new sn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ase=new sn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ose=new sn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ise=new sn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),sse=new sn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lse=new sn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),cse=new sn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),use={zoom:{inKeyframes:e$,outKeyframes:tse},"zoom-big":{inKeyframes:E3,outKeyframes:I3},"zoom-big-fast":{inKeyframes:E3,outKeyframes:I3},"zoom-left":{inKeyframes:ase,outKeyframes:ose},"zoom-right":{inKeyframes:ise,outKeyframes:sse},"zoom-up":{inKeyframes:nse,outKeyframes:rse},"zoom-down":{inKeyframes:lse,outKeyframes:cse}},lg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=use[t];return[Pb(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function T3(e){return{position:e,inset:0}}const dse=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},T3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},T3("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:dH(e)}]},fse=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${G(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Qt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${G(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:G(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ui(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${G(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function T3(e){return{position:e,inset:0}}const dse=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},T3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},T3("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:dH(e)}]},fse=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${G(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Xt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${G(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:G(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},di(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${G(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},pse=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},fH=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return zt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},pH=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${G(e.padding)} ${G(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${G(e.paddingXS)} ${G(e.padding)}`:0,footerBorderTop:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${G(e.padding*2)} ${G(e.padding*2)} ${G(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),gH=nn("Modal",e=>{const t=fH(e);return[fse(t),pse(t),dse(t),lg(t,"zoom")]},pH,{unitless:{titleLineHeight:!0}});var gse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{ST={x:e.pageX,y:e.pageY},setTimeout(()=>{ST=null},100)};fie()&&document.documentElement.addEventListener("click",mse,!0);const mH=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=l.useContext(it),i=B=>{const{onCancel:z}=e;z==null||z(B)},s=B=>{const{onOk:z}=e;z==null||z(B)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:g,getContainer:v,focusTriggerAfterClose:m=!0,style:h,visible:y,width:b=520,footer:S,classNames:C,styles:x,children:E,loading:I}=e,R=gse(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),T=r("modal",c),_=r(),$=Yn(T),[D,P,A]=gH(T,$),O=ne(p,{[`${T}-centered`]:!!g,[`${T}-wrap-rtl`]:a==="rtl"}),k=S!==null&&!I?l.createElement(uH,Object.assign({},e,{onOk:s,onCancel:i})):null,[N,M]=J_(Bu(e),Bu(o),{closable:!0,closeIcon:l.createElement(da,{className:`${T}-close-icon`}),closeIconRender:B=>cH(T,B)}),L=lH(`.${T}-content`),[F,j]=Ji("Modal",R.zIndex);return D(l.createElement(di,{form:!0,space:!0},l.createElement(tg.Provider,{value:j},l.createElement(X9,Object.assign({width:b},R,{zIndex:F,getContainer:v===void 0?n:v,prefixCls:T,rootClassName:ne(P,d,A,$),footer:k,visible:f??y,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:ST,onClose:i,closable:N,closeIcon:M,focusTriggerAfterClose:m,transitionName:bo(_,"zoom",e.transitionName),maskTransitionName:bo(_,"fade",e.maskTransitionName),className:ne(P,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),h),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),C),{wrapper:ne(O,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),x),panelRef:L}),I?l.createElement(tl,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):E))))},hse=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Vo()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},vse=nd(["Modal","confirm"],e=>{const t=fH(e);return[hse(t)]},pH,{order:-1e3});var bse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ab,Oe(Object.values(b))),C=l.createElement(l.Fragment,null,l.createElement(ZA,null),l.createElement(QA,null)),x=e.title!==void 0&&e.title!==null,E=`${o}-body`;return l.createElement("div",{className:`${o}-body-wrapper`},l.createElement("div",{className:ne(E,{[`${E}-has-title`]:x})},f,l.createElement("div",{className:`${o}-paragraph`},x&&l.createElement("span",{className:`${o}-title`},e.title),l.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(U9,{value:S},l.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(C,{OkBtn:QA,CancelBtn:ZA}):C)):c,l.createElement(vse,{prefixCls:t}))}const yse=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:g,closable:v=!1,closeIcon:m,modalRender:h,focusTriggerAfterClose:y,onConfirm:b,styles:S}=e,C=`${d}-confirm`,x=e.width||416,E=e.style||{},I=e.mask===void 0?!0:e.mask,R=e.maskClosable===void 0?!1:e.maskClosable,T=ne(C,`${C}-${e.type}`,{[`${C}-rtl`]:u==="rtl"},e.className),[,_]=Lr(),$=l.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+R9,[n,_]);return l.createElement(mH,{prefixCls:d,className:T,wrapClassName:ne({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),b==null||b(!1)},open:a,title:"",footer:null,transitionName:bo(p||"","zoom",e.transitionName),maskTransitionName:bo(p||"","fade",e.maskTransitionName),mask:I,maskClosable:R,style:E,styles:Object.assign({body:g,mask:c},S),width:x,zIndex:$,afterClose:r,keyboard:o,centered:i,getContainer:s,closable:v,closeIcon:m,modalRender:h,focusTriggerAfterClose:y},l.createElement(hH,Object.assign({},e,{confirmPrefixCls:C})))},vH=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(Ko,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(yse,Object.assign({},e)))},Il=[];let bH="";function yH(){return bH}const Sse=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=Uz(),s=l.useContext(it),c=yH()||s.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),le.createElement(vH,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function cg(e){const t=b9(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var u,d=arguments.length,f=new Array(d),p=0;pm==null?void 0:m.triggerCancel)){var v;(u=e.onCancel)===null||u===void 0||(v=u).call.apply(v,[e,()=>{}].concat(Oe(f.slice(1))))}for(let m=0;m{const d=t.getPrefixCls(void 0,yH()),f=t.getIconPrefixCls(),p=t.getTheme(),g=le.createElement(Sse,Object.assign({},u));G_(le.createElement(Ko,{prefixCls:d,iconPrefixCls:f,theme:p},t.holderRender?t.holderRender(g):g),n)})}function s(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),Il.push(s),{destroy:s,update:c}}function SH(e){return Object.assign(Object.assign({},e),{type:"warning"})}function wH(e){return Object.assign(Object.assign({},e),{type:"info"})}function CH(e){return Object.assign(Object.assign({},e),{type:"success"})}function xH(e){return Object.assign(Object.assign({},e),{type:"error"})}function EH(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function wse(e){let{rootPrefixCls:t}=e;bH=t}var Cse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=Cse(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(a),{direction:d,getPrefixCls:f}=l.useContext(it),p=f("modal"),g=f(),v=()=>{var b;r(),(b=c.afterClose)===null||b===void 0||b.call(c)},m=function(){var b;s(!1);for(var S=arguments.length,C=new Array(S),x=0;xR==null?void 0:R.triggerCancel)){var I;(b=c.onCancel)===null||b===void 0||(I=b).call.apply(I,[c,()=>{}].concat(Oe(C.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:m,update:b=>{u(S=>Object.assign(Object.assign({},S),b))}}));const h=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[y]=mi("Modal",ci.Modal);return l.createElement(vH,Object.assign({prefixCls:p,rootPrefixCls:g},c,{close:m,open:i,afterClose:v,okText:c.okText||(h?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:c.direction||d,cancelText:c.cancelText||(y==null?void 0:y.cancelText)},o))},Ese=l.forwardRef(xse);let R3=0;const Ise=l.memo(l.forwardRef((e,t)=>{const[n,r]=sae();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function Tse(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(Oe(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(o=>function(s){var c;R3+=1;const u=l.createRef();let d;const f=new Promise(h=>{d=h});let p=!1,g;const v=l.createElement(Ese,{key:`modal-${R3}`,config:o(s),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>p,onConfirm:h=>{d(h)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(v),g&&Il.push(g),{destroy:()=>{function h(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?h():n(y=>[].concat(Oe(y),[h]))},update:h=>{function y(){var b;(b=u.current)===null||b===void 0||b.update(h)}u.current?y():n(b=>[].concat(Oe(b),[y]))},then:h=>(p=!0,f.then(h))}},[]);return[l.useMemo(()=>({info:r(wH),success:r(CH),error:r(xH),warning:r(SH),confirm:r(EH)}),[]),l.createElement(Ise,{key:"modal-holder",ref:e})]}const Rse=le.createContext({});function IH(e){return t=>l.createElement(Ko,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const ug=(e,t,n,r)=>IH(o=>{const{prefixCls:i,style:s}=o,c=l.useRef(null),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,v]=on(!1,{value:o.open}),{getPrefixCls:m}=l.useContext(it),h=m(t||"select",i);l.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(x=>{const E=x[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),C=setInterval(()=>{var x;const E=n?`.${n(h)}`:`.${h}-dropdown`,I=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);I&&(clearInterval(C),S.observe(I))},10);return()=>{clearInterval(C),S.disconnect()}}},[]);let y=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(y=r(y));const b={paddingBottom:u,position:"relative",minWidth:f};return l.createElement("div",{ref:c,style:b},l.createElement(e,Object.assign({},y)))}),zb=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==null?void 0:e.substr(0,4))};var Hb=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},_se=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=le.useMemo(function(){if(ht(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=le.useMemo(function(){return!!(!i&&a&&(r.length||s)&&!(c==="combobox"&&s===""))},[a,i,r.length,s,c]);return{allowClear:d,clearIcon:le.createElement(Hb,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},TH=l.createContext(null);function RH(){return l.useContext(TH)}function $se(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=ie(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,s,i]}function _H(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Ose(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Nse(e){return![Me.ESC,Me.SHIFT,Me.BACKSPACE,Me.TAB,Me.WIN_KEY,Me.ALT,Me.META,Me.WIN_KEY_RIGHT,Me.CTRL,Me.SEMICOLON,Me.EQUALS,Me.CAPS_LOCK,Me.CONTEXT_MENU,Me.F1,Me.F2,Me.F3,Me.F4,Me.F5,Me.F6,Me.F7,Me.F8,Me.F9,Me.F10,Me.F11,Me.F12].includes(e)}var kse=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],kc=void 0;function Ase(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,g=e.display,v=e.order,m=e.component,h=m===void 0?"div":m,y=xt(e,kse),b=i&&!g;function S(R){c(u,R)}l.useEffect(function(){return function(){S(null)}},[]);var C=o&&a!==kc?o(a):p,x;r||(x={opacity:b?0:1,height:b?0:kc,overflowY:b?"hidden":kc,order:i?v:kc,pointerEvents:b?"none":kc,position:b?"absolute":kc});var E={};b&&(E["aria-hidden"]=!0);var I=l.createElement(h,ve({className:ne(!r&&n,d),style:K(K({},x),f)},E,y,{ref:t}),C);return i&&(I=l.createElement(Ur,{onResize:function(T){var _=T.offsetWidth;S(_)},disabled:s},I)),I}var Of=l.forwardRef(Ase);Of.displayName="Item";function Mse(e){if(typeof MessageChannel>"u")Bt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Dse(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Mse(function(){xr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function jd(e,t){var n=l.useState(t),r=ie(n,2),a=r[0],o=r[1],i=Ut(function(s){e(function(){o(s)})});return[a,i]}var yv=le.createContext(null),Pse=["component"],Lse=["className"],Fse=["className"],jse=function(t,n){var r=l.useContext(yv);if(!r){var a=t.component,o=a===void 0?"div":a,i=xt(t,Pse);return l.createElement(o,ve({},i,{ref:n}))}var s=r.className,c=xt(r,Lse),u=t.className,d=xt(t,Fse);return l.createElement(yv.Provider,{value:null},l.createElement(Of,ve({ref:n,className:ne(s,u)},c,d)))},$H=l.forwardRef(jse);$H.displayName="RawItem";var Bse=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],OH="responsive",NH="invalidate";function zse(e){return"+ ".concat(e.length," ...")}function Hse(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,g=e.className,v=e.maxCount,m=e.renderRest,h=e.renderRawRest,y=e.suffix,b=e.component,S=b===void 0?"div":b,C=e.itemComponent,x=e.onVisibleChange,E=xt(e,Bse),I=f==="full",R=Dse(),T=jd(R,null),_=ie(T,2),$=_[0],D=_[1],P=$||0,A=jd(R,new Map),O=ie(A,2),k=O[0],N=O[1],M=jd(R,0),L=ie(M,2),F=L[0],j=L[1],B=jd(R,0),z=ie(B,2),H=z[0],U=z[1],X=jd(R,0),W=ie(X,2),Y=W[0],te=W[1],ee=l.useState(null),Z=ie(ee,2),oe=Z[0],re=Z[1],q=l.useState(null),Q=ie(q,2),ae=Q[0],se=Q[1],de=l.useMemo(function(){return ae===null&&I?Number.MAX_SAFE_INTEGER:ae||0},[ae,$]),he=l.useState(!1),ye=ie(he,2),pe=ye[0],J=ye[1],ce="".concat(r,"-item"),ue=Math.max(F,H),fe=v===OH,be=o.length&&fe,Te=v===NH,_e=be||typeof v=="number"&&o.length>v,Pe=l.useMemo(function(){var Je=o;return be?$===null&&I?Je=o:Je=o.slice(0,Math.min(o.length,P/d)):typeof v=="number"&&(Je=o.slice(0,v)),Je},[o,d,$,v,be]),Ee=l.useMemo(function(){return be?o.slice(de+1):o.slice(Pe.length)},[o,Pe,be,de]),Fe=l.useCallback(function(Je,Ke){var ut;return typeof c=="function"?c(Je):(ut=c&&(Je==null?void 0:Je[c]))!==null&&ut!==void 0?ut:Ke},[c]),De=l.useCallback(i||function(Je){return Je},[i]);function Ae(Je,Ke,ut){ae===Je&&(Ke===void 0||Ke===oe)||(se(Je),ut||(J(JeP){Ae(dt-1,Je-He-Y+H);break}}y&&me(0)+Y>P&&re(null)}},[P,k,H,Y,Fe,Pe]);var Ie=pe&&!!Ee.length,je={};oe!==null&&be&&(je={position:"absolute",left:oe,top:0});var ke={prefixCls:ce,responsive:be,component:C,invalidate:Te},Ne=s?function(Je,Ke){var ut=Fe(Je,Ke);return l.createElement(yv.Provider,{key:ut,value:K(K({},ke),{},{order:Ke,item:Je,itemKey:ut,registerSize:$e,display:Ke<=de})},s(Je,Ke))}:function(Je,Ke){var ut=Fe(Je,Ke);return l.createElement(Of,ve({},ke,{order:Ke,key:ut,item:Je,renderItem:De,itemKey:ut,registerSize:$e,display:Ke<=de}))},Be,Ve={order:Ie?de:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:Ce,display:Ie};if(h)h&&(Be=l.createElement(yv.Provider,{value:K(K({},ke),Ve)},h(Ee)));else{var Le=m||zse;Be=l.createElement(Of,ve({},ke,Ve),typeof Le=="function"?Le(Ee):Le)}var We=l.createElement(S,ve({className:ne(!Te&&r,g),style:p,ref:t},E),Pe.map(Ne),_e?Be:null,y&&l.createElement(Of,ve({},ke,{responsive:fe,responsiveDisabled:!be,order:de,className:"".concat(ce,"-suffix"),registerSize:Re,display:!0,style:je}),y));return fe&&(We=l.createElement(Ur,{onResize:we,disabled:!be},We)),We}var Bo=l.forwardRef(Hse);Bo.displayName="Overflow";Bo.Item=$H;Bo.RESPONSIVE=OH;Bo.INVALIDATE=NH;var Use=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,p=t.activeDescendantId,g=t.value,v=t.maxLength,m=t.onKeyDown,h=t.onMouseDown,y=t.onChange,b=t.onPaste,S=t.onCompositionStart,C=t.onCompositionEnd,x=t.open,E=t.attrs,I=i||l.createElement("input",null),R=I,T=R.ref,_=R.props,$=_.onKeyDown,D=_.onChange,P=_.onMouseDown,A=_.onCompositionStart,O=_.onCompositionEnd,k=_.style;return"maxLength"in I.props,I=l.cloneElement(I,K(K(K({type:"search"},_),{},{id:o,ref:Pr(n,T),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:ne("".concat(a,"-selection-search-input"),(r=I)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":x?p:void 0},E),{},{value:f?g:"",maxLength:v,readOnly:!f,unselectable:f?null:"on",style:K(K({},k),{},{opacity:f?null:0}),onKeyDown:function(M){m(M),$&&$(M)},onMouseDown:function(M){h(M),P&&P(M)},onChange:function(M){y(M),D&&D(M)},onCompositionStart:function(M){S(M),A&&A(M)},onCompositionEnd:function(M){C(M),O&&O(M)},onPaste:b})),I},kH=l.forwardRef(Use);function AH(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Vse=typeof window<"u"&&window.document&&window.document.documentElement,Wse=Vse;function Gse(e){return e!=null}function qse(e){return!e&&e!==0}function _3(e){return["string","number"].includes(ht(e))}function MH(e){var t=void 0;return e&&(_3(e.title)?t=e.title.toString():_3(e.label)&&(t=e.label.toString())),t}function Kse(e,t){Wse?l.useLayoutEffect(e,t):l.useEffect(e,t)}function Yse(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var $3=function(t){t.preventDefault(),t.stopPropagation()},Xse=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,p=t.showSearch,g=t.autoFocus,v=t.autoComplete,m=t.activeDescendantId,h=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,S=t.maxTagTextLength,C=t.maxTagPlaceholder,x=C===void 0?function(re){return"+ ".concat(re.length," ...")}:C,E=t.tagRender,I=t.onToggleOpen,R=t.onRemove,T=t.onInputChange,_=t.onInputPaste,$=t.onInputKeyDown,D=t.onInputMouseDown,P=t.onInputCompositionStart,A=t.onInputCompositionEnd,O=l.useRef(null),k=l.useState(0),N=ie(k,2),M=N[0],L=N[1],F=l.useState(!1),j=ie(F,2),B=j[0],z=j[1],H="".concat(r,"-selection"),U=o||f==="multiple"&&s===!1||f==="tags"?i:"",X=f==="tags"||f==="multiple"&&s===!1||p&&(o||B);Kse(function(){L(O.current.scrollWidth)},[U]);var W=function(q,Q,ae,se,de){return l.createElement("span",{title:MH(q),className:ne("".concat(H,"-item"),V({},"".concat(H,"-item-disabled"),ae))},l.createElement("span",{className:"".concat(H,"-item-content")},Q),se&&l.createElement(Hb,{className:"".concat(H,"-item-remove"),onMouseDown:$3,onClick:de,customizeIcon:y},"×"))},Y=function(q,Q,ae,se,de,he){var ye=function(J){$3(J),I(!o)};return l.createElement("span",{onMouseDown:ye},E({label:Q,value:q,disabled:ae,closable:se,onClose:de,isMaxTag:!!he}))},te=function(q){var Q=q.disabled,ae=q.label,se=q.value,de=!d&&!Q,he=ae;if(typeof S=="number"&&(typeof ae=="string"||typeof ae=="number")){var ye=String(he);ye.length>S&&(he="".concat(ye.slice(0,S),"..."))}var pe=function(ce){ce&&ce.stopPropagation(),R(q)};return typeof E=="function"?Y(se,he,Q,de,pe):W(q,he,Q,de,pe)},ee=function(q){var Q=typeof x=="function"?x(q):x;return typeof E=="function"?Y(void 0,Q,!1,!1,void 0,!0):W({title:Q},Q,!1)},Z=l.createElement("div",{className:"".concat(H,"-search"),style:{width:M},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},l.createElement(kH,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:v,editable:X,activeDescendantId:m,value:U,onKeyDown:$,onMouseDown:D,onChange:T,onPaste:_,onCompositionStart:P,onCompositionEnd:A,tabIndex:h,attrs:Mn(t,!0)}),l.createElement("span",{ref:O,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),oe=l.createElement(Bo,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:te,renderRest:ee,suffix:Z,itemKey:Yse,maxCount:b});return l.createElement(l.Fragment,null,oe,!a.length&&!U&&l.createElement("span",{className:"".concat(H,"-placeholder")},u))},Zse=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,p=t.values,g=t.placeholder,v=t.tabIndex,m=t.showSearch,h=t.searchValue,y=t.activeValue,b=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,x=t.onInputChange,E=t.onInputPaste,I=t.onInputCompositionStart,R=t.onInputCompositionEnd,T=t.title,_=l.useState(!1),$=ie(_,2),D=$[0],P=$[1],A=d==="combobox",O=A||m,k=p[0],N=h||"";A&&y&&!D&&(N=y),l.useEffect(function(){A&&P(!1)},[A,y]);var M=d!=="combobox"&&!f&&!m?!1:!!N,L=T===void 0?MH(k):T,F=l.useMemo(function(){return k?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},g)},[k,M,g,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(kH,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:O,activeDescendantId:u,value:N,onKeyDown:S,onMouseDown:C,onChange:function(B){P(!0),x(B)},onPaste:E,onCompositionStart:I,onCompositionEnd:R,tabIndex:v,attrs:Mn(t,!0),maxLength:A?b:void 0})),!A&&k?l.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:M?{visibility:"hidden"}:void 0},k.label):null,F)},Qse=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,p=t.onSearch,g=t.onSearchSubmit,v=t.onToggleOpen,m=t.onInputKeyDown,h=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(M){r.current.focus(M)},blur:function(){r.current.blur()}}});var y=_H(0),b=ie(y,2),S=b[0],C=b[1],x=function(M){var L=M.which;(L===Me.UP||L===Me.DOWN)&&M.preventDefault(),m&&m(M),L===Me.ENTER&&s==="tags"&&!a.current&&!i&&(g==null||g(M.target.value)),Nse(L)&&v(!0)},E=function(){C(!0)},I=l.useRef(null),R=function(M){p(M,!0,a.current)!==!1&&v(!0)},T=function(){a.current=!0},_=function(M){a.current=!1,s!=="combobox"&&R(M.target.value)},$=function(M){var L=M.target.value;if(u&&I.current&&/[\r\n]/.test(I.current)){var F=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(F,I.current)}I.current=null,R(L)},D=function(M){var L=M.clipboardData,F=L==null?void 0:L.getData("text");I.current=F||""},P=function(M){var L=M.target;if(L!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(M){var L=S();M.target!==r.current&&!L&&!(s==="combobox"&&d)&&M.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&f!==!1&&p("",!0,!1),v())},O={inputRef:r,onInputKeyDown:x,onInputMouseDown:E,onInputChange:$,onInputPaste:D,onInputCompositionStart:T,onInputCompositionEnd:_},k=s==="multiple"||s==="tags"?l.createElement(Xse,ve({},t,O)):l.createElement(Zse,ve({},t,O));return l.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:P,onMouseDown:A},k)},Jse=l.forwardRef(Qse);function ele(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,p=l.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],m=n.points[1],h=v[0],y=v[1],b=m[0],S=m[1];h===b||!["t","b"].includes(h)?g.top=f:h==="t"?g.top=0:g.bottom=0,y===S||!["l","r"].includes(y)?g.left=u:y==="l"?g.left=0:g.right=0}return l.createElement("div",{ref:p,className:ne("".concat(t,"-arrow"),i),style:g},s)}function tle(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(qr,ve({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var nle=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),rle=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,g=e.arrow,v=e.arrowPos,m=e.align,h=e.motion,y=e.maskMotion,b=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,x=e.portal,E=e.zIndex,I=e.onMouseEnter,R=e.onMouseLeave,T=e.onPointerEnter,_=e.ready,$=e.offsetX,D=e.offsetY,P=e.offsetR,A=e.offsetB,O=e.onAlign,k=e.onPrepare,N=e.stretch,M=e.targetWidth,L=e.targetHeight,F=typeof n=="function"?n():n,j=c||u,B=(S==null?void 0:S.length)>0,z=l.useState(!S||!B),H=ie(z,2),U=H[0],X=H[1];if(qt(function(){!U&&B&&i&&X(!0)},[U,B,i]),!U)return null;var W="auto",Y={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(_||!c){var te,ee=m.points,Z=m.dynamicInset||((te=m._experimental)===null||te===void 0?void 0:te.dynamicInset),oe=Z&&ee[0][1]==="r",re=Z&&ee[0][0]==="b";oe?(Y.right=P,Y.left=W):(Y.left=$,Y.right=W),re?(Y.bottom=A,Y.top=W):(Y.top=D,Y.bottom=W)}var q={};return N&&(N.includes("height")&&L?q.height=L:N.includes("minHeight")&&L&&(q.minHeight=L),N.includes("width")&&M?q.width=M:N.includes("minWidth")&&M&&(q.minWidth=M)),c||(q.pointerEvents="none"),l.createElement(x,{open:b||j,getContainer:S&&function(){return S(i)},autoDestroy:C},l.createElement(tle,{prefixCls:a,open:c,zIndex:E,mask:p,motion:y}),l.createElement(Ur,{onResize:O,disabled:!c},function(Q){return l.createElement(qr,ve({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},h,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(se){var de;h==null||(de=h.onVisibleChanged)===null||de===void 0||de.call(h,se),s(se)}}),function(ae,se){var de=ae.className,he=ae.style,ye=ne(a,de,r);return l.createElement("div",{ref:Pr(Q,t,se),className:ye,style:K(K(K(K({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),q),he),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:I,onMouseLeave:R,onPointerEnter:T,onClick:f},g&&l.createElement(ele,{prefixCls:a,arrow:g,arrowPos:v,align:m}),l.createElement(nle,{cache:!c&&!d},F))})}))}),ale=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Ho(n),o=l.useCallback(function(s){up(t,r?r(s):s)},[r]),i=Qi(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),O3=l.createContext(null);function N3(e){return e?Array.isArray(e)?e:[e]:[]}function ole(e,t,n,r){return l.useMemo(function(){var a=N3(n??t),o=N3(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function ile(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function sle(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Bd(e){return wp(parseFloat(e),0)}function A3(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=dg(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,g=r.clientHeight,v=r.offsetWidth,m=r.clientWidth,h=Bd(s),y=Bd(c),b=Bd(u),S=Bd(d),C=wp(Math.round(f.width/v*1e3)/1e3),x=wp(Math.round(f.height/p*1e3)/1e3),E=(v-m-b-S)*C,I=(p-g-h-y)*x,R=h*x,T=y*x,_=b*C,$=S*C,D=0,P=0;if(o==="clip"){var A=Bd(i);D=A*C,P=A*x}var O=f.x+_-D,k=f.y+R-P,N=O+f.width+2*D-_-$-E,M=k+f.height+2*P-R-T-I;n.left=Math.max(n.left,O),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,M)}}),n}function M3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function D3(e,t){var n=t||[],r=ie(n,2),a=r[0],o=r[1];return[M3(e.width,a),M3(e.height,o)]}function P3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ac(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function as(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function lle(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=ie(s,2),u=c[0],d=c[1],f=l.useRef(0),p=l.useMemo(function(){return t?wT(t):[]},[t]),g=l.useRef({}),v=function(){g.current={}};e||v();var m=Ut(function(){if(t&&n&&e){let et=function(gn,Gn){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Na=F.x+gn,ka=F.y+Gn,Io=Na+te,yi=ka+Y,ll=Math.max(Na,jn.left),ey=Math.max(ka,jn.top),kt=Math.min(Io,jn.right),Kt=Math.min(yi,jn.bottom);return Math.max(0,(kt-ll)*(Kt-ey))},Mt=function(){ft=F.y+Le,st=ft+Y,Ze=F.x+Ve,lt=Ze+te};var Ct=et,$t=Mt,b,S,C=t,x=C.ownerDocument,E=dg(C),I=E.getComputedStyle(C),R=I.width,T=I.height,_=I.position,$=C.style.left,D=C.style.top,P=C.style.right,A=C.style.bottom,O=C.style.overflow,k=K(K({},a[r]),o),N=x.createElement("div");(b=C.parentElement)===null||b===void 0||b.appendChild(N),N.style.left="".concat(C.offsetLeft,"px"),N.style.top="".concat(C.offsetTop,"px"),N.style.position=_,N.style.height="".concat(C.offsetHeight,"px"),N.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var M;if(Array.isArray(n))M={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();M={x:L.x,y:L.y,width:L.width,height:L.height}}var F=C.getBoundingClientRect(),j=x.documentElement,B=j.clientWidth,z=j.clientHeight,H=j.scrollWidth,U=j.scrollHeight,X=j.scrollTop,W=j.scrollLeft,Y=F.height,te=F.width,ee=M.height,Z=M.width,oe={left:0,top:0,right:B,bottom:z},re={left:-W,top:-X,right:H-W,bottom:U-X},q=k.htmlRegion,Q="visible",ae="visibleFirst";q!=="scroll"&&q!==ae&&(q=Q);var se=q===ae,de=A3(re,p),he=A3(oe,p),ye=q===Q?he:de,pe=se?he:ye;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var J=C.getBoundingClientRect();C.style.left=$,C.style.top=D,C.style.right=P,C.style.bottom=A,C.style.overflow=O,(S=C.parentElement)===null||S===void 0||S.removeChild(N);var ce=wp(Math.round(te/parseFloat(R)*1e3)/1e3),ue=wp(Math.round(Y/parseFloat(T)*1e3)/1e3);if(ce===0||ue===0||cp(n)&&!ad(n))return;var fe=k.offset,be=k.targetOffset,Te=D3(F,fe),_e=ie(Te,2),Pe=_e[0],Ee=_e[1],Fe=D3(M,be),De=ie(Fe,2),Ae=De[0],we=De[1];M.x-=Ae,M.y-=we;var $e=k.points||[],Ce=ie($e,2),Re=Ce[0],me=Ce[1],Ie=P3(me),je=P3(Re),ke=Ac(M,Ie),Ne=Ac(F,je),Be=K({},k),Ve=ke.x-Ne.x+Pe,Le=ke.y-Ne.y+Ee,We=et(Ve,Le),Je=et(Ve,Le,he),Ke=Ac(M,["t","l"]),ut=Ac(F,["t","l"]),dt=Ac(M,["b","r"]),He=Ac(F,["b","r"]),Ye=k.overflow||{},Ge=Ye.adjustX,rt=Ye.adjustY,Tt=Ye.shiftX,Rt=Ye.shiftY,jt=function(Gn){return typeof Gn=="boolean"?Gn:Gn>=0},ft,st,Ze,lt;Mt();var It=jt(rt),at=je[0]===Ie[0];if(It&&je[0]==="t"&&(st>pe.bottom||g.current.bt)){var vt=Le;at?vt-=Y-ee:vt=Ke.y-He.y-Ee;var bt=et(Ve,vt),Qe=et(Ve,vt,he);bt>We||bt===We&&(!se||Qe>=Je)?(g.current.bt=!0,Le=vt,Ee=-Ee,Be.points=[as(je,0),as(Ie,0)]):g.current.bt=!1}if(It&&je[0]==="b"&&(ftWe||Xe===We&&(!se||qe>=Je)?(g.current.tb=!0,Le=ot,Ee=-Ee,Be.points=[as(je,0),as(Ie,0)]):g.current.tb=!1}var pt=jt(Ge),Et=je[1]===Ie[1];if(pt&&je[1]==="l"&&(lt>pe.right||g.current.rl)){var _t=Ve;Et?_t-=te-Z:_t=Ke.x-He.x-Pe;var Xt=et(_t,Le),Jt=et(_t,Le,he);Xt>We||Xt===We&&(!se||Jt>=Je)?(g.current.rl=!0,Ve=_t,Pe=-Pe,Be.points=[as(je,1),as(Ie,1)]):g.current.rl=!1}if(pt&&je[1]==="r"&&(ZeWe||rn===We&&(!se||St>=Je)?(g.current.lr=!0,Ve=Yt,Pe=-Pe,Be.points=[as(je,1),as(Ie,1)]):g.current.lr=!1}Mt();var wt=Tt===!0?0:Tt;typeof wt=="number"&&(Zehe.right&&(Ve-=lt-he.right-Pe,M.x>he.right-wt&&(Ve+=M.x-he.right+wt)));var Nt=Rt===!0?0:Rt;typeof Nt=="number"&&(fthe.bottom&&(Le-=st-he.bottom-Ee,M.y>he.bottom-Nt&&(Le+=M.y-he.bottom+Nt)));var hn=F.x+Ve,Fn=hn+te,rr=F.y+Le,fr=rr+Y,jr=M.x,yr=jr+Z,Wn=M.y,Wt=Wn+ee,Lt=Math.max(hn,jr),Ht=Math.min(Fn,yr),Dt=(Lt+Ht)/2,Ft=Dt-hn,mt=Math.max(rr,Wn),Se=Math.min(fr,Wt),xe=(mt+Se)/2,ze=xe-rr;i==null||i(t,Be);var gt=J.right-F.x-(Ve+F.width),yt=J.bottom-F.y-(Le+F.height);ce===1&&(Ve=Math.round(Ve),gt=Math.round(gt)),ue===1&&(Le=Math.round(Le),yt=Math.round(yt));var Gt={ready:!0,offsetX:Ve/ce,offsetY:Le/ue,offsetR:gt/ce,offsetB:yt/ue,arrowX:Ft/ce,arrowY:ze/ue,scaleX:ce,scaleY:ue,align:Be};d(Gt)}}),h=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&m()})},y=function(){d(function(S){return K(K({},S),{},{ready:!1})})};return qt(y,[r]),qt(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,h]}function cle(e,t,n,r,a){qt(function(){if(e&&t&&n){let p=function(){r(),a()};var f=p,o=t,i=n,s=wT(o),c=wT(i),u=dg(i),d=new Set([u].concat(Oe(s),Oe(c)));return d.forEach(function(g){g.addEventListener("scroll",p,{passive:!0})}),u.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",p),u.removeEventListener("resize",p)})}}},[e,t,n])}function ule(e,t,n,r,a,o,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!a||o)){var u=function(g){var v;c.current&&!i(((v=g.composedPath)===null||v===void 0||(v=v.call(g))===null||v===void 0?void 0:v[0])||g.target)&&s(!1)},d=dg(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=hv(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,a,o])}var dle=["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 fle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ab,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,m=n.mouseEnterDelay,h=n.mouseLeaveDelay,y=h===void 0?.1:h,b=n.focusDelay,S=n.blurDelay,C=n.mask,x=n.maskClosable,E=x===void 0?!0:x,I=n.getPopupContainer,R=n.forceRender,T=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,D=n.popupClassName,P=n.popupStyle,A=n.popupPlacement,O=n.builtinPlacements,k=O===void 0?{}:O,N=n.popupAlign,M=n.zIndex,L=n.stretch,F=n.getPopupClassNameFromAlign,j=n.fresh,B=n.alignPoint,z=n.onPopupClick,H=n.onPopupAlign,U=n.arrow,X=n.popupMotion,W=n.maskMotion,Y=n.popupTransitionName,te=n.popupAnimation,ee=n.maskTransitionName,Z=n.maskAnimation,oe=n.className,re=n.getTriggerDOMNode,q=xt(n,dle),Q=T||_||!1,ae=l.useState(!1),se=ie(ae,2),de=se[0],he=se[1];qt(function(){he(zb())},[]);var ye=l.useRef({}),pe=l.useContext(O3),J=l.useMemo(function(){return{registerSubPopup:function(Kt,ar){ye.current[Kt]=ar,pe==null||pe.registerSubPopup(Kt,ar)}}},[pe]),ce=q9(),ue=l.useState(null),fe=ie(ue,2),be=fe[0],Te=fe[1],_e=l.useRef(null),Pe=Ut(function(kt){_e.current=kt,cp(kt)&&be!==kt&&Te(kt),pe==null||pe.registerSubPopup(ce,kt)}),Ee=l.useState(null),Fe=ie(Ee,2),De=Fe[0],Ae=Fe[1],we=l.useRef(null),$e=Ut(function(kt){cp(kt)&&De!==kt&&(Ae(kt),we.current=kt)}),Ce=l.Children.only(i),Re=(Ce==null?void 0:Ce.props)||{},me={},Ie=Ut(function(kt){var Kt,ar,Sr=De;return(Sr==null?void 0:Sr.contains(kt))||((Kt=hv(Sr))===null||Kt===void 0?void 0:Kt.host)===kt||kt===Sr||(be==null?void 0:be.contains(kt))||((ar=hv(be))===null||ar===void 0?void 0:ar.host)===kt||kt===be||Object.values(ye.current).some(function(or){return(or==null?void 0:or.contains(kt))||kt===or})}),je=k3(o,X,te,Y),ke=k3(o,W,Z,ee),Ne=l.useState(p||!1),Be=ie(Ne,2),Ve=Be[0],Le=Be[1],We=f??Ve,Je=Ut(function(kt){f===void 0&&Le(kt)});qt(function(){Le(f||!1)},[f]);var Ke=l.useRef(We);Ke.current=We;var ut=l.useRef([]);ut.current=[];var dt=Ut(function(kt){var Kt;Je(kt),((Kt=ut.current[ut.current.length-1])!==null&&Kt!==void 0?Kt:We)!==kt&&(ut.current.push(kt),g==null||g(kt))}),He=l.useRef(),Ye=function(){clearTimeout(He.current)},Ge=function(Kt){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ye(),ar===0?dt(Kt):He.current=setTimeout(function(){dt(Kt)},ar*1e3)};l.useEffect(function(){return Ye},[]);var rt=l.useState(!1),Tt=ie(rt,2),Rt=Tt[0],jt=Tt[1];qt(function(kt){(!kt||We)&&jt(!0)},[We]);var ft=l.useState(null),st=ie(ft,2),Ze=st[0],lt=st[1],It=l.useState([0,0]),at=ie(It,2),vt=at[0],bt=at[1],Qe=function(Kt){bt([Kt.clientX,Kt.clientY])},ot=lle(We,be,B?vt:De,A,k,N,H),Xe=ie(ot,11),qe=Xe[0],pt=Xe[1],Et=Xe[2],_t=Xe[3],Xt=Xe[4],Jt=Xe[5],Yt=Xe[6],rn=Xe[7],St=Xe[8],wt=Xe[9],Nt=Xe[10],hn=ole(de,c,u,d),Fn=ie(hn,2),rr=Fn[0],fr=Fn[1],jr=rr.has("click"),yr=fr.has("click")||fr.has("contextMenu"),Wn=Ut(function(){Rt||Nt()}),Wt=function(){Ke.current&&B&&yr&&Ge(!1)};cle(We,De,be,Wn,Wt),qt(function(){Wn()},[vt,A]),qt(function(){We&&!(k!=null&&k[A])&&Wn()},[JSON.stringify(N)]);var Lt=l.useMemo(function(){var kt=sle(k,o,wt,B);return ne(kt,F==null?void 0:F(wt))},[wt,F,k,o,B]);l.useImperativeHandle(r,function(){return{nativeElement:we.current,popupElement:_e.current,forceAlign:Wn}});var Ht=l.useState(0),Dt=ie(Ht,2),Ft=Dt[0],mt=Dt[1],Se=l.useState(0),xe=ie(Se,2),ze=xe[0],gt=xe[1],yt=function(){if(L&&De){var Kt=De.getBoundingClientRect();mt(Kt.width),gt(Kt.height)}},Gt=function(){yt(),Wn()},Ct=function(Kt){jt(!1),Nt(),v==null||v(Kt)},$t=function(){return new Promise(function(Kt){yt(),lt(function(){return Kt})})};qt(function(){Ze&&(Nt(),Ze(),lt(null))},[Ze]);function et(kt,Kt,ar,Sr){me[kt]=function(or){var Bg;Sr==null||Sr(or),Ge(Kt,ar);for(var ty=arguments.length,mN=new Array(ty>1?ty-1:0),zg=1;zg1?ar-1:0),or=1;or1?ar-1:0),or=1;or1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=DH(n,!1),i=o.label,s=o.value,c=o.options,u=o.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(g){if(p||!(c in g)){var v=g[s];a.push({key:L3(g,a.length),groupOption:p,data:g,label:g[i],value:v})}else{var m=g[u];m===void 0&&r&&(m=g.label),a.push({key:L3(g,a.length),group:!0,data:g,label:m}),d(g[c],!0)}})}return d(e,!1),a}function xT(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return pn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ble=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(c,u){var d=Fz(u),f=d[0],p=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(v,m){return[].concat(Oe(v),Oe(s(m,p)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},t$=l.createContext(null);function yle(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(ht(o))?o:i}).join(", ")),n.length>r?", ...":null)}var Sle=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],wle=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ET=function(t){return t==="tags"||t==="multiple"},PH=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,m=e.onClear,h=e.mode,y=e.disabled,b=e.loading,S=e.getInputElement,C=e.getRawInputElement,x=e.open,E=e.defaultOpen,I=e.onDropdownVisibleChange,R=e.activeValue,T=e.onActiveValueChange,_=e.activeDescendantId,$=e.searchValue,D=e.autoClearSearchValue,P=e.onSearch,A=e.onSearchSplit,O=e.tokenSeparators,k=e.allowClear,N=e.suffixIcon,M=e.clearIcon,L=e.OptionList,F=e.animation,j=e.transitionName,B=e.dropdownStyle,z=e.dropdownClassName,H=e.dropdownMatchSelectWidth,U=e.dropdownRender,X=e.dropdownAlign,W=e.placement,Y=e.builtinPlacements,te=e.getPopupContainer,ee=e.showAction,Z=ee===void 0?[]:ee,oe=e.onFocus,re=e.onBlur,q=e.onKeyUp,Q=e.onKeyDown,ae=e.onMouseDown,se=xt(e,Sle),de=ET(h),he=(i!==void 0?i:de)||h==="combobox",ye=K({},se);wle.forEach(function(Wt){delete ye[Wt]}),u==null||u.forEach(function(Wt){delete ye[Wt]});var pe=l.useState(!1),J=ie(pe,2),ce=J[0],ue=J[1];l.useEffect(function(){ue(zb())},[]);var fe=l.useRef(null),be=l.useRef(null),Te=l.useRef(null),_e=l.useRef(null),Pe=l.useRef(null),Ee=l.useRef(!1),Fe=$se(),De=ie(Fe,3),Ae=De[0],we=De[1],$e=De[2];l.useImperativeHandle(t,function(){var Wt,Lt;return{focus:(Wt=_e.current)===null||Wt===void 0?void 0:Wt.focus,blur:(Lt=_e.current)===null||Lt===void 0?void 0:Lt.blur,scrollTo:function(Dt){var Ft;return(Ft=Pe.current)===null||Ft===void 0?void 0:Ft.scrollTo(Dt)},nativeElement:fe.current||be.current}});var Ce=l.useMemo(function(){var Wt;if(h!=="combobox")return $;var Lt=(Wt=d[0])===null||Wt===void 0?void 0:Wt.value;return typeof Lt=="string"||typeof Lt=="number"?String(Lt):""},[$,h,d]),Re=h==="combobox"&&typeof S=="function"&&S()||null,me=typeof C=="function"&&C(),Ie=Qi(be,me==null||(n=me.props)===null||n===void 0?void 0:n.ref),je=l.useState(!1),ke=ie(je,2),Ne=ke[0],Be=ke[1];qt(function(){Be(!0)},[]);var Ve=on(!1,{defaultValue:E,value:x}),Le=ie(Ve,2),We=Le[0],Je=Le[1],Ke=Ne?We:!1,ut=!v&&p;(y||ut&&Ke&&h==="combobox")&&(Ke=!1);var dt=ut?!1:Ke,He=l.useCallback(function(Wt){var Lt=Wt!==void 0?Wt:!Ke;y||(Je(Lt),Ke!==Lt&&(I==null||I(Lt)))},[y,Ke,Je,I]),Ye=l.useMemo(function(){return(O||[]).some(function(Wt){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},pse=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},fH=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Bt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},pH=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${G(e.padding)} ${G(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${G(e.paddingXS)} ${G(e.padding)}`:0,footerBorderTop:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${G(e.padding*2)} ${G(e.padding*2)} ${G(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),gH=tn("Modal",e=>{const t=fH(e);return[fse(t),pse(t),dse(t),lg(t,"zoom")]},pH,{unitless:{titleLineHeight:!0}});var gse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{ST={x:e.pageX,y:e.pageY},setTimeout(()=>{ST=null},100)};fie()&&document.documentElement.addEventListener("click",mse,!0);const mH=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=l.useContext(ct),i=B=>{const{onCancel:z}=e;z==null||z(B)},s=B=>{const{onOk:z}=e;z==null||z(B)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:g,getContainer:v,focusTriggerAfterClose:m=!0,style:h,visible:y,width:b=520,footer:S,classNames:C,styles:x,children:E,loading:I}=e,R=gse(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),T=r("modal",c),_=r(),$=Yn(T),[D,P,A]=gH(T,$),O=ne(p,{[`${T}-centered`]:!!g,[`${T}-wrap-rtl`]:a==="rtl"}),k=S!==null&&!I?l.createElement(uH,Object.assign({},e,{onOk:s,onCancel:i})):null,[N,M]=J_(Bu(e),Bu(o),{closable:!0,closeIcon:l.createElement(da,{className:`${T}-close-icon`}),closeIconRender:B=>cH(T,B)}),L=lH(`.${T}-content`),[F,j]=Ji("Modal",R.zIndex);return D(l.createElement(fi,{form:!0,space:!0},l.createElement(tg.Provider,{value:j},l.createElement(X9,Object.assign({width:b},R,{zIndex:F,getContainer:v===void 0?n:v,prefixCls:T,rootClassName:ne(P,d,A,$),footer:k,visible:f??y,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:ST,onClose:i,closable:N,closeIcon:M,focusTriggerAfterClose:m,transitionName:bo(_,"zoom",e.transitionName),maskTransitionName:bo(_,"fade",e.maskTransitionName),className:ne(P,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),h),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),C),{wrapper:ne(O,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),x),panelRef:L}),I?l.createElement(tl,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):E))))},hse=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Vo()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},vse=nd(["Modal","confirm"],e=>{const t=fH(e);return[hse(t)]},pH,{order:-1e3});var bse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ab,Oe(Object.values(b))),C=l.createElement(l.Fragment,null,l.createElement(ZA,null),l.createElement(QA,null)),x=e.title!==void 0&&e.title!==null,E=`${o}-body`;return l.createElement("div",{className:`${o}-body-wrapper`},l.createElement("div",{className:ne(E,{[`${E}-has-title`]:x})},f,l.createElement("div",{className:`${o}-paragraph`},x&&l.createElement("span",{className:`${o}-title`},e.title),l.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(U9,{value:S},l.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(C,{OkBtn:QA,CancelBtn:ZA}):C)):c,l.createElement(vse,{prefixCls:t}))}const yse=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:g,closable:v=!1,closeIcon:m,modalRender:h,focusTriggerAfterClose:y,onConfirm:b,styles:S}=e,C=`${d}-confirm`,x=e.width||416,E=e.style||{},I=e.mask===void 0?!0:e.mask,R=e.maskClosable===void 0?!1:e.maskClosable,T=ne(C,`${C}-${e.type}`,{[`${C}-rtl`]:u==="rtl"},e.className),[,_]=Lr(),$=l.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+R9,[n,_]);return l.createElement(mH,{prefixCls:d,className:T,wrapClassName:ne({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),b==null||b(!1)},open:a,title:"",footer:null,transitionName:bo(p||"","zoom",e.transitionName),maskTransitionName:bo(p||"","fade",e.maskTransitionName),mask:I,maskClosable:R,style:E,styles:Object.assign({body:g,mask:c},S),width:x,zIndex:$,afterClose:r,keyboard:o,centered:i,getContainer:s,closable:v,closeIcon:m,modalRender:h,focusTriggerAfterClose:y},l.createElement(hH,Object.assign({},e,{confirmPrefixCls:C})))},vH=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(Ko,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(yse,Object.assign({},e)))},Il=[];let bH="";function yH(){return bH}const Sse=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=Uz(),s=l.useContext(ct),c=yH()||s.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),le.createElement(vH,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function cg(e){const t=b9(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var u,d=arguments.length,f=new Array(d),p=0;pm==null?void 0:m.triggerCancel)){var v;(u=e.onCancel)===null||u===void 0||(v=u).call.apply(v,[e,()=>{}].concat(Oe(f.slice(1))))}for(let m=0;m{const d=t.getPrefixCls(void 0,yH()),f=t.getIconPrefixCls(),p=t.getTheme(),g=le.createElement(Sse,Object.assign({},u));G_(le.createElement(Ko,{prefixCls:d,iconPrefixCls:f,theme:p},t.holderRender?t.holderRender(g):g),n)})}function s(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),Il.push(s),{destroy:s,update:c}}function SH(e){return Object.assign(Object.assign({},e),{type:"warning"})}function wH(e){return Object.assign(Object.assign({},e),{type:"info"})}function CH(e){return Object.assign(Object.assign({},e),{type:"success"})}function xH(e){return Object.assign(Object.assign({},e),{type:"error"})}function EH(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function wse(e){let{rootPrefixCls:t}=e;bH=t}var Cse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=Cse(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(a),{direction:d,getPrefixCls:f}=l.useContext(ct),p=f("modal"),g=f(),v=()=>{var b;r(),(b=c.afterClose)===null||b===void 0||b.call(c)},m=function(){var b;s(!1);for(var S=arguments.length,C=new Array(S),x=0;xR==null?void 0:R.triggerCancel)){var I;(b=c.onCancel)===null||b===void 0||(I=b).call.apply(I,[c,()=>{}].concat(Oe(C.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:m,update:b=>{u(S=>Object.assign(Object.assign({},S),b))}}));const h=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[y]=hi("Modal",ui.Modal);return l.createElement(vH,Object.assign({prefixCls:p,rootPrefixCls:g},c,{close:m,open:i,afterClose:v,okText:c.okText||(h?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:c.direction||d,cancelText:c.cancelText||(y==null?void 0:y.cancelText)},o))},Ese=l.forwardRef(xse);let R3=0;const Ise=l.memo(l.forwardRef((e,t)=>{const[n,r]=sae();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function Tse(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(Oe(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(o=>function(s){var c;R3+=1;const u=l.createRef();let d;const f=new Promise(h=>{d=h});let p=!1,g;const v=l.createElement(Ese,{key:`modal-${R3}`,config:o(s),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>p,onConfirm:h=>{d(h)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(v),g&&Il.push(g),{destroy:()=>{function h(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?h():n(y=>[].concat(Oe(y),[h]))},update:h=>{function y(){var b;(b=u.current)===null||b===void 0||b.update(h)}u.current?y():n(b=>[].concat(Oe(b),[y]))},then:h=>(p=!0,f.then(h))}},[]);return[l.useMemo(()=>({info:r(wH),success:r(CH),error:r(xH),warning:r(SH),confirm:r(EH)}),[]),l.createElement(Ise,{key:"modal-holder",ref:e})]}const Rse=le.createContext({});function IH(e){return t=>l.createElement(Ko,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const ug=(e,t,n,r)=>IH(o=>{const{prefixCls:i,style:s}=o,c=l.useRef(null),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,v]=on(!1,{value:o.open}),{getPrefixCls:m}=l.useContext(ct),h=m(t||"select",i);l.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(x=>{const E=x[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),C=setInterval(()=>{var x;const E=n?`.${n(h)}`:`.${h}-dropdown`,I=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);I&&(clearInterval(C),S.observe(I))},10);return()=>{clearInterval(C),S.disconnect()}}},[]);let y=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(y=r(y));const b={paddingBottom:u,position:"relative",minWidth:f};return l.createElement("div",{ref:c,style:b},l.createElement(e,Object.assign({},y)))}),zb=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==null?void 0:e.substr(0,4))};var Hb=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},_se=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=le.useMemo(function(){if(mt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=le.useMemo(function(){return!!(!i&&a&&(r.length||s)&&!(c==="combobox"&&s===""))},[a,i,r.length,s,c]);return{allowClear:d,clearIcon:le.createElement(Hb,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},TH=l.createContext(null);function RH(){return l.useContext(TH)}function $se(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=ie(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,s,i]}function _H(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Ose(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Nse(e){return![De.ESC,De.SHIFT,De.BACKSPACE,De.TAB,De.WIN_KEY,De.ALT,De.META,De.WIN_KEY_RIGHT,De.CTRL,De.SEMICOLON,De.EQUALS,De.CAPS_LOCK,De.CONTEXT_MENU,De.F1,De.F2,De.F3,De.F4,De.F5,De.F6,De.F7,De.F8,De.F9,De.F10,De.F11,De.F12].includes(e)}var kse=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],kc=void 0;function Ase(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,g=e.display,v=e.order,m=e.component,h=m===void 0?"div":m,y=xt(e,kse),b=i&&!g;function S(R){c(u,R)}l.useEffect(function(){return function(){S(null)}},[]);var C=o&&a!==kc?o(a):p,x;r||(x={opacity:b?0:1,height:b?0:kc,overflowY:b?"hidden":kc,order:i?v:kc,pointerEvents:b?"none":kc,position:b?"absolute":kc});var E={};b&&(E["aria-hidden"]=!0);var I=l.createElement(h,ve({className:ne(!r&&n,d),style:K(K({},x),f)},E,y,{ref:t}),C);return i&&(I=l.createElement(Ur,{onResize:function(T){var _=T.offsetWidth;S(_)},disabled:s},I)),I}var Of=l.forwardRef(Ase);Of.displayName="Item";function Mse(e){if(typeof MessageChannel>"u")jt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Dse(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Mse(function(){xr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function jd(e,t){var n=l.useState(t),r=ie(n,2),a=r[0],o=r[1],i=zt(function(s){e(function(){o(s)})});return[a,i]}var yv=le.createContext(null),Pse=["component"],Lse=["className"],Fse=["className"],jse=function(t,n){var r=l.useContext(yv);if(!r){var a=t.component,o=a===void 0?"div":a,i=xt(t,Pse);return l.createElement(o,ve({},i,{ref:n}))}var s=r.className,c=xt(r,Lse),u=t.className,d=xt(t,Fse);return l.createElement(yv.Provider,{value:null},l.createElement(Of,ve({ref:n,className:ne(s,u)},c,d)))},$H=l.forwardRef(jse);$H.displayName="RawItem";var Bse=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],OH="responsive",NH="invalidate";function zse(e){return"+ ".concat(e.length," ...")}function Hse(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,g=e.className,v=e.maxCount,m=e.renderRest,h=e.renderRawRest,y=e.suffix,b=e.component,S=b===void 0?"div":b,C=e.itemComponent,x=e.onVisibleChange,E=xt(e,Bse),I=f==="full",R=Dse(),T=jd(R,null),_=ie(T,2),$=_[0],D=_[1],P=$||0,A=jd(R,new Map),O=ie(A,2),k=O[0],N=O[1],M=jd(R,0),L=ie(M,2),F=L[0],j=L[1],B=jd(R,0),z=ie(B,2),H=z[0],U=z[1],X=jd(R,0),W=ie(X,2),Y=W[0],te=W[1],ee=l.useState(null),Z=ie(ee,2),oe=Z[0],re=Z[1],q=l.useState(null),Q=ie(q,2),ae=Q[0],se=Q[1],de=l.useMemo(function(){return ae===null&&I?Number.MAX_SAFE_INTEGER:ae||0},[ae,$]),he=l.useState(!1),ye=ie(he,2),pe=ye[0],J=ye[1],ce="".concat(r,"-item"),ue=Math.max(F,H),fe=v===OH,be=o.length&&fe,Ee=v===NH,Re=be||typeof v=="number"&&o.length>v,Fe=l.useMemo(function(){var tt=o;return be?$===null&&I?tt=o:tt=o.slice(0,Math.min(o.length,P/d)):typeof v=="number"&&(tt=o.slice(0,v)),tt},[o,d,$,v,be]),Ce=l.useMemo(function(){return be?o.slice(de+1):o.slice(Fe.length)},[o,Fe,be,de]),ze=l.useCallback(function(tt,Ye){var ft;return typeof c=="function"?c(tt):(ft=c&&(tt==null?void 0:tt[c]))!==null&&ft!==void 0?ft:Ye},[c]),Pe=l.useCallback(i||function(tt){return tt},[i]);function Ae(tt,Ye,ft){ae===tt&&(Ye===void 0||Ye===oe)||(se(tt),ft||(J(ttP){Ae(ht-1,tt-Ue-Y+H);break}}y&&me(0)+Y>P&&re(null)}},[P,k,H,Y,ze,Fe]);var xe=pe&&!!Ce.length,Be={};oe!==null&&be&&(Be={position:"absolute",left:oe,top:0});var ke={prefixCls:ce,responsive:be,component:C,invalidate:Ee},Ne=s?function(tt,Ye){var ft=ze(tt,Ye);return l.createElement(yv.Provider,{key:ft,value:K(K({},ke),{},{order:Ye,item:tt,itemKey:ft,registerSize:_e,display:Ye<=de})},s(tt,Ye))}:function(tt,Ye){var ft=ze(tt,Ye);return l.createElement(Of,ve({},ke,{order:Ye,key:ft,item:tt,renderItem:Pe,itemKey:ft,registerSize:_e,display:Ye<=de}))},He,Ge={order:xe?de:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:we,display:xe};if(h)h&&(He=l.createElement(yv.Provider,{value:K(K({},ke),Ge)},h(Ce)));else{var je=m||zse;He=l.createElement(Of,ve({},ke,Ge),typeof je=="function"?je(Ce):je)}var qe=l.createElement(S,ve({className:ne(!Ee&&r,g),style:p,ref:t},E),Fe.map(Ne),Re?He:null,y&&l.createElement(Of,ve({},ke,{responsive:fe,responsiveDisabled:!be,order:de,className:"".concat(ce,"-suffix"),registerSize:Te,display:!0,style:Be}),y));return fe&&(qe=l.createElement(Ur,{onResize:Se,disabled:!be},qe)),qe}var Bo=l.forwardRef(Hse);Bo.displayName="Overflow";Bo.Item=$H;Bo.RESPONSIVE=OH;Bo.INVALIDATE=NH;var Use=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,p=t.activeDescendantId,g=t.value,v=t.maxLength,m=t.onKeyDown,h=t.onMouseDown,y=t.onChange,b=t.onPaste,S=t.onCompositionStart,C=t.onCompositionEnd,x=t.open,E=t.attrs,I=i||l.createElement("input",null),R=I,T=R.ref,_=R.props,$=_.onKeyDown,D=_.onChange,P=_.onMouseDown,A=_.onCompositionStart,O=_.onCompositionEnd,k=_.style;return"maxLength"in I.props,I=l.cloneElement(I,K(K(K({type:"search"},_),{},{id:o,ref:Pr(n,T),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:ne("".concat(a,"-selection-search-input"),(r=I)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":x?p:void 0},E),{},{value:f?g:"",maxLength:v,readOnly:!f,unselectable:f?null:"on",style:K(K({},k),{},{opacity:f?null:0}),onKeyDown:function(M){m(M),$&&$(M)},onMouseDown:function(M){h(M),P&&P(M)},onChange:function(M){y(M),D&&D(M)},onCompositionStart:function(M){S(M),A&&A(M)},onCompositionEnd:function(M){C(M),O&&O(M)},onPaste:b})),I},kH=l.forwardRef(Use);function AH(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Vse=typeof window<"u"&&window.document&&window.document.documentElement,Wse=Vse;function Gse(e){return e!=null}function qse(e){return!e&&e!==0}function _3(e){return["string","number"].includes(mt(e))}function MH(e){var t=void 0;return e&&(_3(e.title)?t=e.title.toString():_3(e.label)&&(t=e.label.toString())),t}function Kse(e,t){Wse?l.useLayoutEffect(e,t):l.useEffect(e,t)}function Yse(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var $3=function(t){t.preventDefault(),t.stopPropagation()},Xse=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,p=t.showSearch,g=t.autoFocus,v=t.autoComplete,m=t.activeDescendantId,h=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,S=t.maxTagTextLength,C=t.maxTagPlaceholder,x=C===void 0?function(re){return"+ ".concat(re.length," ...")}:C,E=t.tagRender,I=t.onToggleOpen,R=t.onRemove,T=t.onInputChange,_=t.onInputPaste,$=t.onInputKeyDown,D=t.onInputMouseDown,P=t.onInputCompositionStart,A=t.onInputCompositionEnd,O=l.useRef(null),k=l.useState(0),N=ie(k,2),M=N[0],L=N[1],F=l.useState(!1),j=ie(F,2),B=j[0],z=j[1],H="".concat(r,"-selection"),U=o||f==="multiple"&&s===!1||f==="tags"?i:"",X=f==="tags"||f==="multiple"&&s===!1||p&&(o||B);Kse(function(){L(O.current.scrollWidth)},[U]);var W=function(q,Q,ae,se,de){return l.createElement("span",{title:MH(q),className:ne("".concat(H,"-item"),V({},"".concat(H,"-item-disabled"),ae))},l.createElement("span",{className:"".concat(H,"-item-content")},Q),se&&l.createElement(Hb,{className:"".concat(H,"-item-remove"),onMouseDown:$3,onClick:de,customizeIcon:y},"×"))},Y=function(q,Q,ae,se,de,he){var ye=function(J){$3(J),I(!o)};return l.createElement("span",{onMouseDown:ye},E({label:Q,value:q,disabled:ae,closable:se,onClose:de,isMaxTag:!!he}))},te=function(q){var Q=q.disabled,ae=q.label,se=q.value,de=!d&&!Q,he=ae;if(typeof S=="number"&&(typeof ae=="string"||typeof ae=="number")){var ye=String(he);ye.length>S&&(he="".concat(ye.slice(0,S),"..."))}var pe=function(ce){ce&&ce.stopPropagation(),R(q)};return typeof E=="function"?Y(se,he,Q,de,pe):W(q,he,Q,de,pe)},ee=function(q){var Q=typeof x=="function"?x(q):x;return typeof E=="function"?Y(void 0,Q,!1,!1,void 0,!0):W({title:Q},Q,!1)},Z=l.createElement("div",{className:"".concat(H,"-search"),style:{width:M},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},l.createElement(kH,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:v,editable:X,activeDescendantId:m,value:U,onKeyDown:$,onMouseDown:D,onChange:T,onPaste:_,onCompositionStart:P,onCompositionEnd:A,tabIndex:h,attrs:Pn(t,!0)}),l.createElement("span",{ref:O,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),oe=l.createElement(Bo,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:te,renderRest:ee,suffix:Z,itemKey:Yse,maxCount:b});return l.createElement(l.Fragment,null,oe,!a.length&&!U&&l.createElement("span",{className:"".concat(H,"-placeholder")},u))},Zse=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,p=t.values,g=t.placeholder,v=t.tabIndex,m=t.showSearch,h=t.searchValue,y=t.activeValue,b=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,x=t.onInputChange,E=t.onInputPaste,I=t.onInputCompositionStart,R=t.onInputCompositionEnd,T=t.title,_=l.useState(!1),$=ie(_,2),D=$[0],P=$[1],A=d==="combobox",O=A||m,k=p[0],N=h||"";A&&y&&!D&&(N=y),l.useEffect(function(){A&&P(!1)},[A,y]);var M=d!=="combobox"&&!f&&!m?!1:!!N,L=T===void 0?MH(k):T,F=l.useMemo(function(){return k?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},g)},[k,M,g,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(kH,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:O,activeDescendantId:u,value:N,onKeyDown:S,onMouseDown:C,onChange:function(B){P(!0),x(B)},onPaste:E,onCompositionStart:I,onCompositionEnd:R,tabIndex:v,attrs:Pn(t,!0),maxLength:A?b:void 0})),!A&&k?l.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:M?{visibility:"hidden"}:void 0},k.label):null,F)},Qse=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,p=t.onSearch,g=t.onSearchSubmit,v=t.onToggleOpen,m=t.onInputKeyDown,h=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(M){r.current.focus(M)},blur:function(){r.current.blur()}}});var y=_H(0),b=ie(y,2),S=b[0],C=b[1],x=function(M){var L=M.which;(L===De.UP||L===De.DOWN)&&M.preventDefault(),m&&m(M),L===De.ENTER&&s==="tags"&&!a.current&&!i&&(g==null||g(M.target.value)),Nse(L)&&v(!0)},E=function(){C(!0)},I=l.useRef(null),R=function(M){p(M,!0,a.current)!==!1&&v(!0)},T=function(){a.current=!0},_=function(M){a.current=!1,s!=="combobox"&&R(M.target.value)},$=function(M){var L=M.target.value;if(u&&I.current&&/[\r\n]/.test(I.current)){var F=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(F,I.current)}I.current=null,R(L)},D=function(M){var L=M.clipboardData,F=L==null?void 0:L.getData("text");I.current=F||""},P=function(M){var L=M.target;if(L!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(M){var L=S();M.target!==r.current&&!L&&!(s==="combobox"&&d)&&M.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&f!==!1&&p("",!0,!1),v())},O={inputRef:r,onInputKeyDown:x,onInputMouseDown:E,onInputChange:$,onInputPaste:D,onInputCompositionStart:T,onInputCompositionEnd:_},k=s==="multiple"||s==="tags"?l.createElement(Xse,ve({},t,O)):l.createElement(Zse,ve({},t,O));return l.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:P,onMouseDown:A},k)},Jse=l.forwardRef(Qse);function ele(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,p=l.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],m=n.points[1],h=v[0],y=v[1],b=m[0],S=m[1];h===b||!["t","b"].includes(h)?g.top=f:h==="t"?g.top=0:g.bottom=0,y===S||!["l","r"].includes(y)?g.left=u:y==="l"?g.left=0:g.right=0}return l.createElement("div",{ref:p,className:ne("".concat(t,"-arrow"),i),style:g},s)}function tle(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(qr,ve({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var nle=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),rle=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,g=e.arrow,v=e.arrowPos,m=e.align,h=e.motion,y=e.maskMotion,b=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,x=e.portal,E=e.zIndex,I=e.onMouseEnter,R=e.onMouseLeave,T=e.onPointerEnter,_=e.ready,$=e.offsetX,D=e.offsetY,P=e.offsetR,A=e.offsetB,O=e.onAlign,k=e.onPrepare,N=e.stretch,M=e.targetWidth,L=e.targetHeight,F=typeof n=="function"?n():n,j=c||u,B=(S==null?void 0:S.length)>0,z=l.useState(!S||!B),H=ie(z,2),U=H[0],X=H[1];if(Wt(function(){!U&&B&&i&&X(!0)},[U,B,i]),!U)return null;var W="auto",Y={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(_||!c){var te,ee=m.points,Z=m.dynamicInset||((te=m._experimental)===null||te===void 0?void 0:te.dynamicInset),oe=Z&&ee[0][1]==="r",re=Z&&ee[0][0]==="b";oe?(Y.right=P,Y.left=W):(Y.left=$,Y.right=W),re?(Y.bottom=A,Y.top=W):(Y.top=D,Y.bottom=W)}var q={};return N&&(N.includes("height")&&L?q.height=L:N.includes("minHeight")&&L&&(q.minHeight=L),N.includes("width")&&M?q.width=M:N.includes("minWidth")&&M&&(q.minWidth=M)),c||(q.pointerEvents="none"),l.createElement(x,{open:b||j,getContainer:S&&function(){return S(i)},autoDestroy:C},l.createElement(tle,{prefixCls:a,open:c,zIndex:E,mask:p,motion:y}),l.createElement(Ur,{onResize:O,disabled:!c},function(Q){return l.createElement(qr,ve({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},h,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(se){var de;h==null||(de=h.onVisibleChanged)===null||de===void 0||de.call(h,se),s(se)}}),function(ae,se){var de=ae.className,he=ae.style,ye=ne(a,de,r);return l.createElement("div",{ref:Pr(Q,t,se),className:ye,style:K(K(K(K({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),q),he),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:I,onMouseLeave:R,onPointerEnter:T,onClick:f},g&&l.createElement(ele,{prefixCls:a,arrow:g,arrowPos:v,align:m}),l.createElement(nle,{cache:!c&&!d},F))})}))}),ale=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Ho(n),o=l.useCallback(function(s){up(t,r?r(s):s)},[r]),i=Qi(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),O3=l.createContext(null);function N3(e){return e?Array.isArray(e)?e:[e]:[]}function ole(e,t,n,r){return l.useMemo(function(){var a=N3(n??t),o=N3(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function ile(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function sle(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Bd(e){return wp(parseFloat(e),0)}function A3(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=dg(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,g=r.clientHeight,v=r.offsetWidth,m=r.clientWidth,h=Bd(s),y=Bd(c),b=Bd(u),S=Bd(d),C=wp(Math.round(f.width/v*1e3)/1e3),x=wp(Math.round(f.height/p*1e3)/1e3),E=(v-m-b-S)*C,I=(p-g-h-y)*x,R=h*x,T=y*x,_=b*C,$=S*C,D=0,P=0;if(o==="clip"){var A=Bd(i);D=A*C,P=A*x}var O=f.x+_-D,k=f.y+R-P,N=O+f.width+2*D-_-$-E,M=k+f.height+2*P-R-T-I;n.left=Math.max(n.left,O),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,M)}}),n}function M3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function D3(e,t){var n=t||[],r=ie(n,2),a=r[0],o=r[1];return[M3(e.width,a),M3(e.height,o)]}function P3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ac(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function as(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function lle(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=ie(s,2),u=c[0],d=c[1],f=l.useRef(0),p=l.useMemo(function(){return t?wT(t):[]},[t]),g=l.useRef({}),v=function(){g.current={}};e||v();var m=zt(function(){if(t&&n&&e){let Le=function(Nt,an){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,Na=F.x+Nt,ka=F.y+an,Io=Na+te,Si=ka+Y,ll=Math.max(Na,wn.left),ey=Math.max(ka,wn.top),kt=Math.min(Io,wn.right),Gt=Math.min(Si,wn.bottom);return Math.max(0,(kt-ll)*(Gt-ey))},it=function(){pt=F.y+je,lt=pt+Y,Je=F.x+Ge,ut=Je+te};var Me=Le,Ze=it,b,S,C=t,x=C.ownerDocument,E=dg(C),I=E.getComputedStyle(C),R=I.width,T=I.height,_=I.position,$=C.style.left,D=C.style.top,P=C.style.right,A=C.style.bottom,O=C.style.overflow,k=K(K({},a[r]),o),N=x.createElement("div");(b=C.parentElement)===null||b===void 0||b.appendChild(N),N.style.left="".concat(C.offsetLeft,"px"),N.style.top="".concat(C.offsetTop,"px"),N.style.position=_,N.style.height="".concat(C.offsetHeight,"px"),N.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var M;if(Array.isArray(n))M={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();M={x:L.x,y:L.y,width:L.width,height:L.height}}var F=C.getBoundingClientRect(),j=x.documentElement,B=j.clientWidth,z=j.clientHeight,H=j.scrollWidth,U=j.scrollHeight,X=j.scrollTop,W=j.scrollLeft,Y=F.height,te=F.width,ee=M.height,Z=M.width,oe={left:0,top:0,right:B,bottom:z},re={left:-W,top:-X,right:H-W,bottom:U-X},q=k.htmlRegion,Q="visible",ae="visibleFirst";q!=="scroll"&&q!==ae&&(q=Q);var se=q===ae,de=A3(re,p),he=A3(oe,p),ye=q===Q?he:de,pe=se?he:ye;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var J=C.getBoundingClientRect();C.style.left=$,C.style.top=D,C.style.right=P,C.style.bottom=A,C.style.overflow=O,(S=C.parentElement)===null||S===void 0||S.removeChild(N);var ce=wp(Math.round(te/parseFloat(R)*1e3)/1e3),ue=wp(Math.round(Y/parseFloat(T)*1e3)/1e3);if(ce===0||ue===0||cp(n)&&!ad(n))return;var fe=k.offset,be=k.targetOffset,Ee=D3(F,fe),Re=ie(Ee,2),Fe=Re[0],Ce=Re[1],ze=D3(M,be),Pe=ie(ze,2),Ae=Pe[0],Se=Pe[1];M.x-=Ae,M.y-=Se;var _e=k.points||[],we=ie(_e,2),Te=we[0],me=we[1],xe=P3(me),Be=P3(Te),ke=Ac(M,xe),Ne=Ac(F,Be),He=K({},k),Ge=ke.x-Ne.x+Fe,je=ke.y-Ne.y+Ce,qe=Le(Ge,je),tt=Le(Ge,je,he),Ye=Ac(M,["t","l"]),ft=Ac(F,["t","l"]),ht=Ac(M,["b","r"]),Ue=Ac(F,["b","r"]),We=k.overflow||{},Ke=We.adjustX,st=We.adjustY,Tt=We.shiftX,Rt=We.shiftY,Ft=function(an){return typeof an=="boolean"?an:an>=0},pt,lt,Je,ut;it();var It=Ft(st),at=Be[0]===xe[0];if(It&&Be[0]==="t"&&(lt>pe.bottom||g.current.bt)){var bt=je;at?bt-=Y-ee:bt=Ye.y-Ue.y-Ce;var yt=Le(Ge,bt),et=Le(Ge,bt,he);yt>qe||yt===qe&&(!se||et>=tt)?(g.current.bt=!0,je=bt,Ce=-Ce,He.points=[as(Be,0),as(xe,0)]):g.current.bt=!1}if(It&&Be[0]==="b"&&(ptqe||Qe===qe&&(!se||Xe>=tt)?(g.current.tb=!0,je=ot,Ce=-Ce,He.points=[as(Be,0),as(xe,0)]):g.current.tb=!1}var gt=Ft(Ke),Et=Be[1]===xe[1];if(gt&&Be[1]==="l"&&(ut>pe.right||g.current.rl)){var $t=Ge;Et?$t-=te-Z:$t=Ye.x-Ue.x-Fe;var qt=Le($t,je),Zt=Le($t,je,he);qt>qe||qt===qe&&(!se||Zt>=tt)?(g.current.rl=!0,Ge=$t,Fe=-Fe,He.points=[as(Be,1),as(xe,1)]):g.current.rl=!1}if(gt&&Be[1]==="r"&&(Jeqe||Qt===qe&&(!se||wt>=tt)?(g.current.lr=!0,Ge=Kt,Fe=-Fe,He.points=[as(Be,1),as(xe,1)]):g.current.lr=!1}it();var Ct=Tt===!0?0:Tt;typeof Ct=="number"&&(Jehe.right&&(Ge-=ut-he.right-Fe,M.x>he.right-Ct&&(Ge+=M.x-he.right+Ct)));var Ot=Rt===!0?0:Rt;typeof Ot=="number"&&(pthe.bottom&&(je-=lt-he.bottom-Ce,M.y>he.bottom-Ot&&(je+=M.y-he.bottom+Ot)));var mn=F.x+Ge,Bn=mn+te,sr=F.y+je,fr=sr+Y,jr=M.x,yr=jr+Z,zn=M.y,Vt=zn+ee,Pt=Math.max(mn,jr),Ut=Math.min(Bn,yr),Lt=(Pt+Ut)/2,Mt=Lt-mn,vt=Math.max(sr,zn),St=Math.min(fr,Vt),nn=(vt+St)/2,vn=nn-sr;i==null||i(t,He);var bn=J.right-F.x-(Ge+F.width),$e=J.bottom-F.y-(je+F.height);ce===1&&(Ge=Math.round(Ge),bn=Math.round(bn)),ue===1&&(je=Math.round(je),$e=Math.round($e));var Ie={ready:!0,offsetX:Ge/ce,offsetY:je/ue,offsetR:bn/ce,offsetB:$e/ue,arrowX:Mt/ce,arrowY:vn/ue,scaleX:ce,scaleY:ue,align:He};d(Ie)}}),h=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&m()})},y=function(){d(function(S){return K(K({},S),{},{ready:!1})})};return Wt(y,[r]),Wt(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,h]}function cle(e,t,n,r,a){Wt(function(){if(e&&t&&n){let p=function(){r(),a()};var f=p,o=t,i=n,s=wT(o),c=wT(i),u=dg(i),d=new Set([u].concat(Oe(s),Oe(c)));return d.forEach(function(g){g.addEventListener("scroll",p,{passive:!0})}),u.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",p),u.removeEventListener("resize",p)})}}},[e,t,n])}function ule(e,t,n,r,a,o,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!a||o)){var u=function(g){var v;c.current&&!i(((v=g.composedPath)===null||v===void 0||(v=v.call(g))===null||v===void 0?void 0:v[0])||g.target)&&s(!1)},d=dg(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=hv(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,a,o])}var dle=["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 fle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ab,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,m=n.mouseEnterDelay,h=n.mouseLeaveDelay,y=h===void 0?.1:h,b=n.focusDelay,S=n.blurDelay,C=n.mask,x=n.maskClosable,E=x===void 0?!0:x,I=n.getPopupContainer,R=n.forceRender,T=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,D=n.popupClassName,P=n.popupStyle,A=n.popupPlacement,O=n.builtinPlacements,k=O===void 0?{}:O,N=n.popupAlign,M=n.zIndex,L=n.stretch,F=n.getPopupClassNameFromAlign,j=n.fresh,B=n.alignPoint,z=n.onPopupClick,H=n.onPopupAlign,U=n.arrow,X=n.popupMotion,W=n.maskMotion,Y=n.popupTransitionName,te=n.popupAnimation,ee=n.maskTransitionName,Z=n.maskAnimation,oe=n.className,re=n.getTriggerDOMNode,q=xt(n,dle),Q=T||_||!1,ae=l.useState(!1),se=ie(ae,2),de=se[0],he=se[1];Wt(function(){he(zb())},[]);var ye=l.useRef({}),pe=l.useContext(O3),J=l.useMemo(function(){return{registerSubPopup:function(Gt,rr){ye.current[Gt]=rr,pe==null||pe.registerSubPopup(Gt,rr)}}},[pe]),ce=q9(),ue=l.useState(null),fe=ie(ue,2),be=fe[0],Ee=fe[1],Re=l.useRef(null),Fe=zt(function(kt){Re.current=kt,cp(kt)&&be!==kt&&Ee(kt),pe==null||pe.registerSubPopup(ce,kt)}),Ce=l.useState(null),ze=ie(Ce,2),Pe=ze[0],Ae=ze[1],Se=l.useRef(null),_e=zt(function(kt){cp(kt)&&Pe!==kt&&(Ae(kt),Se.current=kt)}),we=l.Children.only(i),Te=(we==null?void 0:we.props)||{},me={},xe=zt(function(kt){var Gt,rr,Sr=Pe;return(Sr==null?void 0:Sr.contains(kt))||((Gt=hv(Sr))===null||Gt===void 0?void 0:Gt.host)===kt||kt===Sr||(be==null?void 0:be.contains(kt))||((rr=hv(be))===null||rr===void 0?void 0:rr.host)===kt||kt===be||Object.values(ye.current).some(function(ar){return(ar==null?void 0:ar.contains(kt))||kt===ar})}),Be=k3(o,X,te,Y),ke=k3(o,W,Z,ee),Ne=l.useState(p||!1),He=ie(Ne,2),Ge=He[0],je=He[1],qe=f??Ge,tt=zt(function(kt){f===void 0&&je(kt)});Wt(function(){je(f||!1)},[f]);var Ye=l.useRef(qe);Ye.current=qe;var ft=l.useRef([]);ft.current=[];var ht=zt(function(kt){var Gt;tt(kt),((Gt=ft.current[ft.current.length-1])!==null&&Gt!==void 0?Gt:qe)!==kt&&(ft.current.push(kt),g==null||g(kt))}),Ue=l.useRef(),We=function(){clearTimeout(Ue.current)},Ke=function(Gt){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),rr===0?ht(Gt):Ue.current=setTimeout(function(){ht(Gt)},rr*1e3)};l.useEffect(function(){return We},[]);var st=l.useState(!1),Tt=ie(st,2),Rt=Tt[0],Ft=Tt[1];Wt(function(kt){(!kt||qe)&&Ft(!0)},[qe]);var pt=l.useState(null),lt=ie(pt,2),Je=lt[0],ut=lt[1],It=l.useState([0,0]),at=ie(It,2),bt=at[0],yt=at[1],et=function(Gt){yt([Gt.clientX,Gt.clientY])},ot=lle(qe,be,B?bt:Pe,A,k,N,H),Qe=ie(ot,11),Xe=Qe[0],gt=Qe[1],Et=Qe[2],$t=Qe[3],qt=Qe[4],Zt=Qe[5],Kt=Qe[6],Qt=Qe[7],wt=Qe[8],Ct=Qe[9],Ot=Qe[10],mn=ole(de,c,u,d),Bn=ie(mn,2),sr=Bn[0],fr=Bn[1],jr=sr.has("click"),yr=fr.has("click")||fr.has("contextMenu"),zn=zt(function(){Rt||Ot()}),Vt=function(){Ye.current&&B&&yr&&Ke(!1)};cle(qe,Pe,be,zn,Vt),Wt(function(){zn()},[bt,A]),Wt(function(){qe&&!(k!=null&&k[A])&&zn()},[JSON.stringify(N)]);var Pt=l.useMemo(function(){var kt=sle(k,o,Ct,B);return ne(kt,F==null?void 0:F(Ct))},[Ct,F,k,o,B]);l.useImperativeHandle(r,function(){return{nativeElement:Se.current,popupElement:Re.current,forceAlign:zn}});var Ut=l.useState(0),Lt=ie(Ut,2),Mt=Lt[0],vt=Lt[1],St=l.useState(0),nn=ie(St,2),vn=nn[0],bn=nn[1],$e=function(){if(L&&Pe){var Gt=Pe.getBoundingClientRect();vt(Gt.width),bn(Gt.height)}},Ie=function(){$e(),zn()},Me=function(Gt){Ft(!1),Ot(),v==null||v(Gt)},Ze=function(){return new Promise(function(Gt){$e(),ut(function(){return Gt})})};Wt(function(){Je&&(Ot(),Je(),ut(null))},[Je]);function Le(kt,Gt,rr,Sr){me[kt]=function(ar){var Bg;Sr==null||Sr(ar),Ke(Gt,rr);for(var ty=arguments.length,mN=new Array(ty>1?ty-1:0),zg=1;zg1?rr-1:0),ar=1;ar1?rr-1:0),ar=1;ar1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=DH(n,!1),i=o.label,s=o.value,c=o.options,u=o.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(g){if(p||!(c in g)){var v=g[s];a.push({key:L3(g,a.length),groupOption:p,data:g,label:g[i],value:v})}else{var m=g[u];m===void 0&&r&&(m=g.label),a.push({key:L3(g,a.length),group:!0,data:g,label:m}),d(g[c],!0)}})}return d(e,!1),a}function xT(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return pn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ble=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(c,u){var d=Fz(u),f=d[0],p=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(v,m){return[].concat(Oe(v),Oe(s(m,p)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},t$=l.createContext(null);function yle(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(mt(o))?o:i}).join(", ")),n.length>r?", ...":null)}var Sle=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],wle=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ET=function(t){return t==="tags"||t==="multiple"},PH=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,m=e.onClear,h=e.mode,y=e.disabled,b=e.loading,S=e.getInputElement,C=e.getRawInputElement,x=e.open,E=e.defaultOpen,I=e.onDropdownVisibleChange,R=e.activeValue,T=e.onActiveValueChange,_=e.activeDescendantId,$=e.searchValue,D=e.autoClearSearchValue,P=e.onSearch,A=e.onSearchSplit,O=e.tokenSeparators,k=e.allowClear,N=e.suffixIcon,M=e.clearIcon,L=e.OptionList,F=e.animation,j=e.transitionName,B=e.dropdownStyle,z=e.dropdownClassName,H=e.dropdownMatchSelectWidth,U=e.dropdownRender,X=e.dropdownAlign,W=e.placement,Y=e.builtinPlacements,te=e.getPopupContainer,ee=e.showAction,Z=ee===void 0?[]:ee,oe=e.onFocus,re=e.onBlur,q=e.onKeyUp,Q=e.onKeyDown,ae=e.onMouseDown,se=xt(e,Sle),de=ET(h),he=(i!==void 0?i:de)||h==="combobox",ye=K({},se);wle.forEach(function(Vt){delete ye[Vt]}),u==null||u.forEach(function(Vt){delete ye[Vt]});var pe=l.useState(!1),J=ie(pe,2),ce=J[0],ue=J[1];l.useEffect(function(){ue(zb())},[]);var fe=l.useRef(null),be=l.useRef(null),Ee=l.useRef(null),Re=l.useRef(null),Fe=l.useRef(null),Ce=l.useRef(!1),ze=$se(),Pe=ie(ze,3),Ae=Pe[0],Se=Pe[1],_e=Pe[2];l.useImperativeHandle(t,function(){var Vt,Pt;return{focus:(Vt=Re.current)===null||Vt===void 0?void 0:Vt.focus,blur:(Pt=Re.current)===null||Pt===void 0?void 0:Pt.blur,scrollTo:function(Lt){var Mt;return(Mt=Fe.current)===null||Mt===void 0?void 0:Mt.scrollTo(Lt)},nativeElement:fe.current||be.current}});var we=l.useMemo(function(){var Vt;if(h!=="combobox")return $;var Pt=(Vt=d[0])===null||Vt===void 0?void 0:Vt.value;return typeof Pt=="string"||typeof Pt=="number"?String(Pt):""},[$,h,d]),Te=h==="combobox"&&typeof S=="function"&&S()||null,me=typeof C=="function"&&C(),xe=Qi(be,me==null||(n=me.props)===null||n===void 0?void 0:n.ref),Be=l.useState(!1),ke=ie(Be,2),Ne=ke[0],He=ke[1];Wt(function(){He(!0)},[]);var Ge=on(!1,{defaultValue:E,value:x}),je=ie(Ge,2),qe=je[0],tt=je[1],Ye=Ne?qe:!1,ft=!v&&p;(y||ft&&Ye&&h==="combobox")&&(Ye=!1);var ht=ft?!1:Ye,Ue=l.useCallback(function(Vt){var Pt=Vt!==void 0?Vt:!Ye;y||(tt(Pt),Ye!==Pt&&(I==null||I(Pt)))},[y,Ye,tt,I]),We=l.useMemo(function(){return(O||[]).some(function(Vt){return[` `,`\r -`].includes(Wt)})},[O]),Ge=l.useContext(t$)||{},rt=Ge.maxCount,Tt=Ge.rawValues,Rt=function(Lt,Ht,Dt){if(!(de&&CT(rt)&&(Tt==null?void 0:Tt.size)>=rt)){var Ft=!0,mt=Lt;T==null||T(null);var Se=ble(Lt,O,CT(rt)?rt-Tt.size:void 0),xe=Dt?null:Se;return h!=="combobox"&&xe&&(mt="",A==null||A(xe),He(!1),Ft=!1),P&&Ce!==mt&&P(mt,{source:Ht?"typing":"effect"}),Ft}},jt=function(Lt){!Lt||!Lt.trim()||P(Lt,{source:"submit"})};l.useEffect(function(){!Ke&&!de&&h!=="combobox"&&Rt("",!1,!1)},[Ke]),l.useEffect(function(){We&&y&&Je(!1),y&&!Ee.current&&we(!1)},[y]);var ft=_H(),st=ie(ft,2),Ze=st[0],lt=st[1],It=l.useRef(!1),at=function(Lt){var Ht=Ze(),Dt=Lt.key,Ft=Dt==="Enter";if(Ft&&(h!=="combobox"&&Lt.preventDefault(),Ke||He(!0)),lt(!!Ce),Dt==="Backspace"&&!Ht&&de&&!Ce&&d.length){for(var mt=Oe(d),Se=null,xe=mt.length-1;xe>=0;xe-=1){var ze=mt[xe];if(!ze.disabled){mt.splice(xe,1),Se=ze;break}}Se&&f(mt,{type:"remove",values:[Se]})}for(var gt=arguments.length,yt=new Array(gt>1?gt-1:0),Gt=1;Gt1?Ht-1:0),Ft=1;Ft1?Se-1:0),ze=1;ze"u"?"undefined":ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const FH=function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}};function Tle(e,t,n,r,a,o,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=FH(t,n,r,a);function p(b,S){Bt.cancel(c.current),s.current+=S,u.current=S,!f(!1,S)&&(F3||b.preventDefault(),c.current=Bt(function(){var C=d.current?10:1;i(s.current*C),s.current=0}))}function g(b,S){i(S,!0),F3||b.preventDefault()}var v=l.useRef(null),m=l.useRef(null);function h(b){if(e){Bt.cancel(m.current),m.current=Bt(function(){v.current=null},2);var S=b.deltaX,C=b.deltaY,x=b.shiftKey,E=S,I=C;(v.current==="sx"||!v.current&&x&&C&&!S)&&(E=C,I=0,v.current="sx");var R=Math.abs(E),T=Math.abs(I);v.current===null&&(v.current=o&&R>T?"x":"y"),v.current==="y"?p(b,I):g(b,E)}}function y(b){e&&(d.current=b.detail===u.current)}return[h,y]}function Rle(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ie(a,2),i=o[0],s=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=i.get(d),g=i.get(f);if(p===void 0||g===void 0)for(var v=e.length,m=s.length;m0&&arguments[0]!==void 0?arguments[0]:!1;d();var v=function(){s.current.forEach(function(h,y){if(h&&h.offsetParent){var b=If(h),S=b.offsetHeight;c.current.get(y)!==S&&c.current.set(y,b.offsetHeight)}}),i(function(h){return h+1})};g?v():u.current=Bt(v)}function p(g,v){var m=e(g);s.current.get(m),v?(s.current.set(m,v),f()):s.current.delete(m)}return l.useEffect(function(){return d},[]),[p,f,c.current,o]}var j3=14/15;function Ole(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(g){if(r.current){var v=Math.ceil(g.touches[0].pageX),m=Math.ceil(g.touches[0].pageY),h=a.current-v,y=o.current-m,b=Math.abs(h)>Math.abs(y);b?a.current=v:o.current=m,n(b,b?h:y)&&g.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){b?h*=j3:y*=j3;var S=Math.floor(b?h:y);(!n(b,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16)}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},qt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}var Nle=10;function kle(e,t,n,r,a,o,i,s){var c=l.useRef(),u=l.useState(null),d=ie(u,2),f=d[0],p=d[1];return qt(function(){if(f&&f.times=0;A-=1){var O=a(t[A]),k=n.get(O);if(k===void 0){b=!0;break}if(P-=k,P<=0)break}switch(x){case"top":C=I-h;break;case"bottom":C=R-y+h;break;default:{var N=e.current.scrollTop,M=N+y;IM&&(S="bottom")}}C!==null&&i(C),C!==f.lastTop&&(b=!0)}b&&p(K(K({},f),{},{times:f.times+1,targetAlign:S,lastTop:C}))}},[f,e.current]),function(g){if(g==null){s();return}if(Bt.cancel(c.current),typeof g=="number")i(g);else if(g&&ht(g)==="object"){var v,m=g.align;"index"in g?v=g.index:v=t.findIndex(function(b){return a(b)===g.key});var h=g.offset,y=h===void 0?0:h;p({times:0,index:v,offset:y,originAlign:m})}}}function B3(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var z3=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,g=e.thumbStyle,v=l.useState(!1),m=ie(v,2),h=m[0],y=m[1],b=l.useState(null),S=ie(b,2),C=S[0],x=S[1],E=l.useState(null),I=ie(E,2),R=I[0],T=I[1],_=!r,$=l.useRef(),D=l.useRef(),P=l.useState(!1),A=ie(P,2),O=A[0],k=A[1],N=l.useRef(),M=function(){clearTimeout(N.current),k(!0),N.current=setTimeout(function(){k(!1)},3e3)},L=o-f||0,F=f-d||0,j=l.useMemo(function(){if(a===0||L===0)return 0;var ee=a/L;return ee*F},[a,L,F]),B=function(Z){Z.stopPropagation(),Z.preventDefault()},z=l.useRef({top:j,dragging:h,pageY:C,startTop:R});z.current={top:j,dragging:h,pageY:C,startTop:R};var H=function(Z){y(!0),x(B3(Z,u)),T(z.current.top),i(),Z.stopPropagation(),Z.preventDefault()};l.useEffect(function(){var ee=function(q){q.preventDefault()},Z=$.current,oe=D.current;return Z.addEventListener("touchstart",ee,{passive:!1}),oe.addEventListener("touchstart",H,{passive:!1}),function(){Z.removeEventListener("touchstart",ee),oe.removeEventListener("touchstart",H)}},[]);var U=l.useRef();U.current=L;var X=l.useRef();X.current=F,l.useEffect(function(){if(h){var ee,Z=function(q){var Q=z.current,ae=Q.dragging,se=Q.pageY,de=Q.startTop;Bt.cancel(ee);var he=$.current.getBoundingClientRect(),ye=f/(u?he.width:he.height);if(ae){var pe=(B3(q,u)-se)*ye,J=de;!_&&u?J-=pe:J+=pe;var ce=U.current,ue=X.current,fe=ue?J/ue:0,be=Math.ceil(fe*ce);be=Math.max(be,0),be=Math.min(be,ce),ee=Bt(function(){c(be,u)})}},oe=function(){y(!1),s()};return window.addEventListener("mousemove",Z,{passive:!0}),window.addEventListener("touchmove",Z,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),Bt.cancel(ee)}}},[h]),l.useEffect(function(){return M(),function(){clearTimeout(N.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:M}});var W="".concat(n,"-scrollbar"),Y={position:"absolute",visibility:O?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,te.height="100%",te.width=d,_?te.left=j:te.right=j):(Y.width=8,Y.top=0,Y.bottom=0,_?Y.right=0:Y.left=0,te.width="100%",te.height=d,te.top=j),l.createElement("div",{ref:$,className:ne(W,V(V(V({},"".concat(W,"-horizontal"),u),"".concat(W,"-vertical"),!u),"".concat(W,"-visible"),O)),style:K(K({},Y),p),onMouseDown:B,onMouseMove:M},l.createElement("div",{ref:D,className:ne("".concat(W,"-thumb"),V({},"".concat(W,"-thumb-moving"),h)),style:K(K({},te),g),onMouseDown:H}))}),Ale=20;function H3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Ale),Math.floor(n)}var Mle=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Dle=[],Ple={overflowY:"auto",overflowAnchor:"none"};function Lle(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,p=e.itemKey,g=e.virtual,v=e.direction,m=e.scrollWidth,h=e.component,y=h===void 0?"div":h,b=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,x=e.innerProps,E=e.extraRender,I=e.styles,R=xt(e,Mle),T=l.useCallback(function(Qe){return typeof p=="function"?p(Qe):Qe==null?void 0:Qe[p]},[p]),_=$le(T),$=ie(_,4),D=$[0],P=$[1],A=$[2],O=$[3],k=!!(g!==!1&&o&&i),N=l.useMemo(function(){return Object.values(A.maps).reduce(function(Qe,ot){return Qe+ot},0)},[A.id,A.maps]),M=k&&d&&(Math.max(i*d.length,N)>o||!!m),L=v==="rtl",F=ne(r,V({},"".concat(r,"-rtl"),L),a),j=d||Dle,B=l.useRef(),z=l.useRef(),H=l.useRef(),U=l.useState(0),X=ie(U,2),W=X[0],Y=X[1],te=l.useState(0),ee=ie(te,2),Z=ee[0],oe=ee[1],re=l.useState(!1),q=ie(re,2),Q=q[0],ae=q[1],se=function(){ae(!0)},de=function(){ae(!1)},he={getKey:T};function ye(Qe){Y(function(ot){var Xe;typeof Qe=="function"?Xe=Qe(ot):Xe=Qe;var qe=Ne(Xe);return B.current.scrollTop=qe,qe})}var pe=l.useRef({start:0,end:j.length}),J=l.useRef(),ce=Ile(j,T),ue=ie(ce,1),fe=ue[0];J.current=fe;var be=l.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!M){var Qe;return{scrollHeight:((Qe=z.current)===null||Qe===void 0?void 0:Qe.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var ot=0,Xe,qe,pt,Et=j.length,_t=0;_t=W&&Xe===void 0&&(Xe=_t,qe=ot),rn>W+o&&pt===void 0&&(pt=_t),ot=rn}return Xe===void 0&&(Xe=0,qe=0,pt=Math.ceil(o/i)),pt===void 0&&(pt=j.length-1),pt=Math.min(pt+1,j.length-1),{scrollHeight:ot,start:Xe,end:pt,offset:qe}},[M,k,W,j,O,o]),Te=be.scrollHeight,_e=be.start,Pe=be.end,Ee=be.offset;pe.current.start=_e,pe.current.end=Pe;var Fe=l.useState({width:0,height:o}),De=ie(Fe,2),Ae=De[0],we=De[1],$e=function(ot){we({width:ot.offsetWidth,height:ot.offsetHeight})},Ce=l.useRef(),Re=l.useRef(),me=l.useMemo(function(){return H3(Ae.width,m)},[Ae.width,m]),Ie=l.useMemo(function(){return H3(Ae.height,Te)},[Ae.height,Te]),je=Te-o,ke=l.useRef(je);ke.current=je;function Ne(Qe){var ot=Qe;return Number.isNaN(ke.current)||(ot=Math.min(ot,ke.current)),ot=Math.max(ot,0),ot}var Be=W<=0,Ve=W>=je,Le=Z<=0,We=Z>=m,Je=FH(Be,Ve,Le,We),Ke=function(){return{x:L?-Z:Z,y:W}},ut=l.useRef(Ke()),dt=Ut(function(Qe){if(S){var ot=K(K({},Ke()),Qe);(ut.current.x!==ot.x||ut.current.y!==ot.y)&&(S(ot),ut.current=ot)}});function He(Qe,ot){var Xe=Qe;ot?(xr.flushSync(function(){oe(Xe)}),dt()):ye(Xe)}function Ye(Qe){var ot=Qe.currentTarget.scrollTop;ot!==W&&ye(ot),b==null||b(Qe),dt()}var Ge=function(ot){var Xe=ot,qe=m?m-Ae.width:0;return Xe=Math.max(Xe,0),Xe=Math.min(Xe,qe),Xe},rt=Ut(function(Qe,ot){ot?(xr.flushSync(function(){oe(function(Xe){var qe=Xe+(L?-Qe:Qe);return Ge(qe)})}),dt()):ye(function(Xe){var qe=Xe+Qe;return qe})}),Tt=Tle(k,Be,Ve,Le,We,!!m,rt),Rt=ie(Tt,2),jt=Rt[0],ft=Rt[1];Ole(k,B,function(Qe,ot,Xe){return Je(Qe,ot,Xe)?!1:(jt({preventDefault:function(){},deltaX:Qe?ot:0,deltaY:Qe?0:ot}),!0)}),qt(function(){function Qe(Xe){k&&Xe.preventDefault()}var ot=B.current;return ot.addEventListener("wheel",jt,{passive:!1}),ot.addEventListener("DOMMouseScroll",ft,{passive:!0}),ot.addEventListener("MozMousePixelScroll",Qe,{passive:!1}),function(){ot.removeEventListener("wheel",jt),ot.removeEventListener("DOMMouseScroll",ft),ot.removeEventListener("MozMousePixelScroll",Qe)}},[k]),qt(function(){if(m){var Qe=Ge(Z);oe(Qe),dt({x:Qe})}},[Ae.width,m]);var st=function(){var ot,Xe;(ot=Ce.current)===null||ot===void 0||ot.delayHidden(),(Xe=Re.current)===null||Xe===void 0||Xe.delayHidden()},Ze=kle(B,j,A,i,T,function(){return P(!0)},ye,st);l.useImperativeHandle(t,function(){return{nativeElement:H.current,getScrollInfo:Ke,scrollTo:function(ot){function Xe(qe){return qe&&ht(qe)==="object"&&("left"in qe||"top"in qe)}Xe(ot)?(ot.left!==void 0&&oe(Ge(ot.left)),Ze(ot.top)):Ze(ot)}}}),qt(function(){if(C){var Qe=j.slice(_e,Pe+1);C(Qe,j)}},[_e,Pe,j]);var lt=Rle(j,T,A,i),It=E==null?void 0:E({start:_e,end:Pe,virtual:M,offsetX:Z,offsetY:Ee,rtl:L,getSize:lt}),at=xle(j,_e,Pe,m,Z,D,f,he),vt=null;o&&(vt=K(V({},c?"height":"maxHeight",o),Ple),k&&(vt.overflowY="hidden",m&&(vt.overflowX="hidden"),Q&&(vt.pointerEvents="none")));var bt={};return L&&(bt.dir="rtl"),l.createElement("div",ve({ref:H,style:K(K({},u),{},{position:"relative"}),className:F},bt,R),l.createElement(Ur,{onResize:$e},l.createElement(y,{className:"".concat(r,"-holder"),style:vt,ref:B,onScroll:Ye,onMouseEnter:st},l.createElement(LH,{prefixCls:r,height:Te,offsetX:Z,offsetY:Ee,scrollWidth:m,onInnerResize:P,ref:z,innerProps:x,rtl:L,extra:It},at))),M&&Te>o&&l.createElement(z3,{ref:Ce,prefixCls:r,scrollOffset:W,scrollRange:Te,rtl:L,onScroll:He,onStartMove:se,onStopMove:de,spinSize:Ie,containerSize:Ae.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),M&&m>Ae.width&&l.createElement(z3,{ref:Re,prefixCls:r,scrollOffset:Z,scrollRange:m,rtl:L,onScroll:He,onStartMove:se,onStopMove:de,spinSize:me,containerSize:Ae.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var Ub=l.forwardRef(Lle);Ub.displayName="List";function Fle(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jle=["disabled","title","children","style","className"];function U3(e){return typeof e=="string"||typeof e=="number"}var Ble=function(t,n){var r=RH(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,g=l.useContext(t$),v=g.maxCount,m=g.flattenOptions,h=g.onActiveValue,y=g.defaultActiveFirstOption,b=g.onSelect,S=g.menuItemSelectedIcon,C=g.rawValues,x=g.fieldNames,E=g.virtual,I=g.direction,R=g.listHeight,T=g.listItemHeight,_=g.optionRender,$="".concat(a,"-item"),D=Qs(function(){return m},[i,m],function(ee,Z){return Z[0]&&ee[1]!==Z[1]}),P=l.useRef(null),A=l.useMemo(function(){return s&&CT(v)&&(C==null?void 0:C.size)>=v},[s,v,C==null?void 0:C.size]),O=function(Z){Z.preventDefault()},k=function(Z){var oe;(oe=P.current)===null||oe===void 0||oe.scrollTo(typeof Z=="number"?{index:Z}:Z)},N=function(Z){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=D.length,q=0;q1&&arguments[1]!==void 0?arguments[1]:!1;j(Z);var re={source:oe?"keyboard":"mouse"},q=D[Z];if(!q){h(null,-1,re);return}h(q.value,Z,re)};l.useEffect(function(){B(y!==!1?N(0):-1)},[D.length,u]);var z=l.useCallback(function(ee){return C.has(ee)&&c!=="combobox"},[c,Oe(C).toString(),C.size]);l.useEffect(function(){var ee=setTimeout(function(){if(!s&&i&&C.size===1){var oe=Array.from(C)[0],re=D.findIndex(function(q){var Q=q.data;return Q.value===oe});re!==-1&&(B(re),k(re))}});if(i){var Z;(Z=P.current)===null||Z===void 0||Z.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[i,u]);var H=function(Z){Z!==void 0&&b(Z,{selected:!C.has(Z)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(Z){var oe=Z.which,re=Z.ctrlKey;switch(oe){case Me.N:case Me.P:case Me.UP:case Me.DOWN:{var q=0;if(oe===Me.UP?q=-1:oe===Me.DOWN?q=1:Fle()&&re&&(oe===Me.N?q=1:oe===Me.P&&(q=-1)),q!==0){var Q=N(F+q,q);k(Q),B(Q,!0)}break}case Me.ENTER:{var ae,se=D[F];se&&!(se!=null&&(ae=se.data)!==null&&ae!==void 0&&ae.disabled)&&!A?H(se.value):H(void 0),i&&Z.preventDefault();break}case Me.ESC:d(!1),i&&Z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Z){k(Z)}}}),D.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:O},f);var U=Object.keys(x).map(function(ee){return x[ee]}),X=function(Z){return Z.label};function W(ee,Z){var oe=ee.group;return{role:oe?"presentation":"option",id:"".concat(o,"_list_").concat(Z)}}var Y=function(Z){var oe=D[Z];if(!oe)return null;var re=oe.data||{},q=re.value,Q=oe.group,ae=Mn(re,!0),se=X(oe);return oe?l.createElement("div",ve({"aria-label":typeof se=="string"&&!Q?se:null},ae,{key:Z},W(oe,Z),{"aria-selected":z(q)}),q):null},te={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,E&&l.createElement("div",ve({},te,{style:{height:0,width:0,overflow:"hidden"}}),Y(F-1),Y(F),Y(F+1)),l.createElement(Ub,{itemKey:"key",ref:P,data:D,height:R,itemHeight:T,fullHeight:!1,onMouseDown:O,onScroll:p,virtual:E,direction:I,innerProps:E?null:te},function(ee,Z){var oe=ee.group,re=ee.groupOption,q=ee.data,Q=ee.label,ae=ee.value,se=q.key;if(oe){var de,he=(de=q.title)!==null&&de!==void 0?de:U3(Q)?Q.toString():void 0;return l.createElement("div",{className:ne($,"".concat($,"-group"),q.className),title:he},Q!==void 0?Q:se)}var ye=q.disabled,pe=q.title;q.children;var J=q.style,ce=q.className,ue=xt(q,jle),fe=yn(ue,U),be=z(ae),Te=ye||!be&&A,_e="".concat($,"-option"),Pe=ne($,_e,ce,V(V(V(V({},"".concat(_e,"-grouped"),re),"".concat(_e,"-active"),F===Z&&!Te),"".concat(_e,"-disabled"),Te),"".concat(_e,"-selected"),be)),Ee=X(ee),Fe=!S||typeof S=="function"||be,De=typeof Ee=="number"?Ee:Ee||ae,Ae=U3(De)?De.toString():void 0;return pe!==void 0&&(Ae=pe),l.createElement("div",ve({},Mn(fe),E?{}:W(ee,Z),{"aria-selected":be,className:Pe,title:Ae,onMouseMove:function(){F===Z||Te||B(Z)},onClick:function(){Te||H(ae)},style:J}),l.createElement("div",{className:"".concat(_e,"-content")},typeof _=="function"?_(ee,{index:Z}):De),l.isValidElement(S)||be,Fe&&l.createElement(Hb,{className:"".concat($,"-option-state"),customizeIcon:S,customizeIconProps:{value:ae,disabled:Te,isSelected:be}},be?"✓":null))}))},zle=l.forwardRef(Ble);const Hle=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,i=o.values,s=o.options,c=e.map(function(f){if(f.label===void 0){var p;return K(K({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function oS(e,t){return AH(e).join("").toUpperCase().includes(t)}const Ule=function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,v){return a?oS(v[a],d):v[o]?oS(v[i!=="children"?i:"label"],d):oS(v[s],d)},p=u?function(g){return xT(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var v=f(n,p(g));if(v)c.push(g);else{var m=g[o].filter(function(h){return f(n,p(h))});m.length&&c.push(K(K({},g),{},V({},o,m)))}return}f(n,p(g))&&c.push(g)}),c},[e,r,a,n,t])};var V3=0,Vle=Dr();function Wle(){var e;return Vle?(e=V3,V3+=1):e="TEST_OR_SSR",e}function jH(e){var t=l.useState(),n=ie(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(Wle()))},[]),e||r}var Gle=["children","value"],qle=["children"];function Kle(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=xt(r,Gle);return K({key:n,value:o!==void 0?o:n,children:a},i)}function BH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return sr(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,c=s.children,u=xt(s,qle);return t||!o?Kle(n):K(K({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:BH(c)})}).filter(function(n){return n})}var Yle=function(t,n,r,a,o){return l.useMemo(function(){var i=t,s=!t;s&&(i=BH(n));var c=new Map,u=new Map,d=function(g,v,m){m&&typeof m=="string"&&g.set(v[m],v)},f=function p(g){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},rt=Ge.source,Tt=rt===void 0?"keyboard":rt;Ne(Ye),i&&r==="combobox"&&He!==null&&Tt==="keyboard"&&me(String(He))},[i,r]),Le=function(Ye,Ge,rt){var Tt=function(){var bt,Qe=fe(Ye);return[L?{label:Qe==null?void 0:Qe[W.label],value:Ye,key:(bt=Qe==null?void 0:Qe.key)!==null&&bt!==void 0?bt:Ye}:Ye,xT(Qe)]};if(Ge&&g){var Rt=Tt(),jt=ie(Rt,2),ft=jt[0],st=jt[1];g(ft,st)}else if(!Ge&&v&&rt!=="clear"){var Ze=Tt(),lt=ie(Ze,2),It=lt[0],at=lt[1];v(It,at)}},We=W3(function(He,Ye){var Ge,rt=H?Ye.selected:!0;rt?Ge=H?[].concat(Oe(ue),[He]):[He]:Ge=ue.filter(function(Tt){return Tt.value!==He}),we(Ge),Le(He,rt),r==="combobox"?me(""):(!ET||p)&&(Z(""),me(""))}),Je=function(Ye,Ge){we(Ye);var rt=Ge.type,Tt=Ge.values;(rt==="remove"||rt==="clear")&&Tt.forEach(function(Rt){Le(Rt.value,!1,rt)})},Ke=function(Ye,Ge){if(Z(Ye),me(null),Ge.source==="submit"){var rt=(Ye||"").trim();if(rt){var Tt=Array.from(new Set([].concat(Oe(Te),[rt])));we(Tt),Le(rt,!0),Z("")}return}Ge.source!=="blur"&&(r==="combobox"&&we(Ye),d==null||d(Ye))},ut=function(Ye){var Ge=Ye;r!=="tags"&&(Ge=Ye.map(function(Tt){var Rt=q.get(Tt);return Rt==null?void 0:Rt.value}).filter(function(Tt){return Tt!==void 0}));var rt=Array.from(new Set([].concat(Oe(Te),Oe(Ge))));we(rt),rt.forEach(function(Tt){Le(Tt,!0)})},dt=l.useMemo(function(){var He=_!==!1&&h!==!1;return K(K({},oe),{},{flattenOptions:Ae,onActiveValue:Ve,defaultActiveFirstOption:Be,onSelect:We,menuItemSelectedIcon:T,rawValues:Te,fieldNames:W,virtual:He,direction:$,listHeight:P,listItemHeight:O,childrenAsData:U,maxCount:j,optionRender:E})},[j,oe,Ae,Ve,Be,We,T,Te,W,_,h,$,P,O,U,E]);return l.createElement(t$.Provider,{value:dt},l.createElement(PH,ve({},B,{id:z,prefixCls:o,ref:t,omitDomProps:Zle,mode:r,displayValues:be,onDisplayValuesChange:Je,direction:$,searchValue:ee,onSearch:Ke,autoClearSearchValue:p,onSearchSplit:ut,dropdownMatchSelectWidth:h,OptionList:zle,emptyOptions:!Ae.length,activeValue:Re,activeDescendantId:"".concat(z,"_list_").concat(ke)})))}),a$=Jle;a$.Option=r$;a$.OptGroup=n$;function Yi(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const nl=(e,t)=>t||e,ece=()=>{const[,e]=Lr(),n=new un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"empty image"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tce=()=>{const[,e]=Lr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new un(t).onBackground(a).toHexShortString(),shadowColor:new un(n).onBackground(a).toHexShortString(),contentColor:new un(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"Simple Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.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"}),l.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:s}))))},nce=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},rce=nn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[nce(a)]});var ace=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=zH,description:o,children:i,imageStyle:s,style:c}=e,u=ace(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=l.useContext(it),g=d("empty",r),[v,m,h]=rce(g),[y]=mi("Empty"),b=typeof o<"u"?o:y==null?void 0:y.description,S=typeof b=="string"?b:"empty";let C=null;return typeof a=="string"?C=l.createElement("img",{alt:S,src:a}):C=a,v(l.createElement("div",Object.assign({className:ne(m,h,g,p==null?void 0:p.className,{[`${g}-normal`]:a===HH,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),c)},u),l.createElement("div",{className:`${g}-image`,style:s},C),b&&l.createElement("div",{className:`${g}-description`},b),i&&l.createElement("div",{className:`${g}-footer`},i)))};Mi.PRESENTED_IMAGE_DEFAULT=zH;Mi.PRESENTED_IMAGE_SIMPLE=HH;const Vb=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(it),r=n("empty");switch(t){case"Table":case"List":return le.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return le.createElement(Mi,null)}},dc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=l.useContext(it),s=l.useContext(iH),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=Hte.includes(u);return[u,d]},oce=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function UH(e,t){return e||oce(t)}const G3=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ice=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Qt(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(Vt)})},[O]),Ke=l.useContext(t$)||{},st=Ke.maxCount,Tt=Ke.rawValues,Rt=function(Pt,Ut,Lt){if(!(de&&CT(st)&&(Tt==null?void 0:Tt.size)>=st)){var Mt=!0,vt=Pt;T==null||T(null);var St=ble(Pt,O,CT(st)?st-Tt.size:void 0),nn=Lt?null:St;return h!=="combobox"&&nn&&(vt="",A==null||A(nn),Ue(!1),Mt=!1),P&&we!==vt&&P(vt,{source:Ut?"typing":"effect"}),Mt}},Ft=function(Pt){!Pt||!Pt.trim()||P(Pt,{source:"submit"})};l.useEffect(function(){!Ye&&!de&&h!=="combobox"&&Rt("",!1,!1)},[Ye]),l.useEffect(function(){qe&&y&&tt(!1),y&&!Ce.current&&Se(!1)},[y]);var pt=_H(),lt=ie(pt,2),Je=lt[0],ut=lt[1],It=l.useRef(!1),at=function(Pt){var Ut=Je(),Lt=Pt.key,Mt=Lt==="Enter";if(Mt&&(h!=="combobox"&&Pt.preventDefault(),Ye||Ue(!0)),ut(!!we),Lt==="Backspace"&&!Ut&&de&&!we&&d.length){for(var vt=Oe(d),St=null,nn=vt.length-1;nn>=0;nn-=1){var vn=vt[nn];if(!vn.disabled){vt.splice(nn,1),St=vn;break}}St&&f(vt,{type:"remove",values:[St]})}for(var bn=arguments.length,$e=new Array(bn>1?bn-1:0),Ie=1;Ie1?Ut-1:0),Mt=1;Mt1?St-1:0),vn=1;vn"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const FH=function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}};function Tle(e,t,n,r,a,o,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=FH(t,n,r,a);function p(b,S){jt.cancel(c.current),s.current+=S,u.current=S,!f(!1,S)&&(F3||b.preventDefault(),c.current=jt(function(){var C=d.current?10:1;i(s.current*C),s.current=0}))}function g(b,S){i(S,!0),F3||b.preventDefault()}var v=l.useRef(null),m=l.useRef(null);function h(b){if(e){jt.cancel(m.current),m.current=jt(function(){v.current=null},2);var S=b.deltaX,C=b.deltaY,x=b.shiftKey,E=S,I=C;(v.current==="sx"||!v.current&&x&&C&&!S)&&(E=C,I=0,v.current="sx");var R=Math.abs(E),T=Math.abs(I);v.current===null&&(v.current=o&&R>T?"x":"y"),v.current==="y"?p(b,I):g(b,E)}}function y(b){e&&(d.current=b.detail===u.current)}return[h,y]}function Rle(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ie(a,2),i=o[0],s=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=i.get(d),g=i.get(f);if(p===void 0||g===void 0)for(var v=e.length,m=s.length;m0&&arguments[0]!==void 0?arguments[0]:!1;d();var v=function(){s.current.forEach(function(h,y){if(h&&h.offsetParent){var b=If(h),S=b.offsetHeight;c.current.get(y)!==S&&c.current.set(y,b.offsetHeight)}}),i(function(h){return h+1})};g?v():u.current=jt(v)}function p(g,v){var m=e(g);s.current.get(m),v?(s.current.set(m,v),f()):s.current.delete(m)}return l.useEffect(function(){return d},[]),[p,f,c.current,o]}var j3=14/15;function Ole(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(g){if(r.current){var v=Math.ceil(g.touches[0].pageX),m=Math.ceil(g.touches[0].pageY),h=a.current-v,y=o.current-m,b=Math.abs(h)>Math.abs(y);b?a.current=v:o.current=m,n(b,b?h:y)&&g.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){b?h*=j3:y*=j3;var S=Math.floor(b?h:y);(!n(b,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16)}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Wt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}var Nle=10;function kle(e,t,n,r,a,o,i,s){var c=l.useRef(),u=l.useState(null),d=ie(u,2),f=d[0],p=d[1];return Wt(function(){if(f&&f.times=0;A-=1){var O=a(t[A]),k=n.get(O);if(k===void 0){b=!0;break}if(P-=k,P<=0)break}switch(x){case"top":C=I-h;break;case"bottom":C=R-y+h;break;default:{var N=e.current.scrollTop,M=N+y;IM&&(S="bottom")}}C!==null&&i(C),C!==f.lastTop&&(b=!0)}b&&p(K(K({},f),{},{times:f.times+1,targetAlign:S,lastTop:C}))}},[f,e.current]),function(g){if(g==null){s();return}if(jt.cancel(c.current),typeof g=="number")i(g);else if(g&&mt(g)==="object"){var v,m=g.align;"index"in g?v=g.index:v=t.findIndex(function(b){return a(b)===g.key});var h=g.offset,y=h===void 0?0:h;p({times:0,index:v,offset:y,originAlign:m})}}}function B3(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var z3=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,g=e.thumbStyle,v=l.useState(!1),m=ie(v,2),h=m[0],y=m[1],b=l.useState(null),S=ie(b,2),C=S[0],x=S[1],E=l.useState(null),I=ie(E,2),R=I[0],T=I[1],_=!r,$=l.useRef(),D=l.useRef(),P=l.useState(!1),A=ie(P,2),O=A[0],k=A[1],N=l.useRef(),M=function(){clearTimeout(N.current),k(!0),N.current=setTimeout(function(){k(!1)},3e3)},L=o-f||0,F=f-d||0,j=l.useMemo(function(){if(a===0||L===0)return 0;var ee=a/L;return ee*F},[a,L,F]),B=function(Z){Z.stopPropagation(),Z.preventDefault()},z=l.useRef({top:j,dragging:h,pageY:C,startTop:R});z.current={top:j,dragging:h,pageY:C,startTop:R};var H=function(Z){y(!0),x(B3(Z,u)),T(z.current.top),i(),Z.stopPropagation(),Z.preventDefault()};l.useEffect(function(){var ee=function(q){q.preventDefault()},Z=$.current,oe=D.current;return Z.addEventListener("touchstart",ee,{passive:!1}),oe.addEventListener("touchstart",H,{passive:!1}),function(){Z.removeEventListener("touchstart",ee),oe.removeEventListener("touchstart",H)}},[]);var U=l.useRef();U.current=L;var X=l.useRef();X.current=F,l.useEffect(function(){if(h){var ee,Z=function(q){var Q=z.current,ae=Q.dragging,se=Q.pageY,de=Q.startTop;jt.cancel(ee);var he=$.current.getBoundingClientRect(),ye=f/(u?he.width:he.height);if(ae){var pe=(B3(q,u)-se)*ye,J=de;!_&&u?J-=pe:J+=pe;var ce=U.current,ue=X.current,fe=ue?J/ue:0,be=Math.ceil(fe*ce);be=Math.max(be,0),be=Math.min(be,ce),ee=jt(function(){c(be,u)})}},oe=function(){y(!1),s()};return window.addEventListener("mousemove",Z,{passive:!0}),window.addEventListener("touchmove",Z,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),jt.cancel(ee)}}},[h]),l.useEffect(function(){return M(),function(){clearTimeout(N.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:M}});var W="".concat(n,"-scrollbar"),Y={position:"absolute",visibility:O?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,te.height="100%",te.width=d,_?te.left=j:te.right=j):(Y.width=8,Y.top=0,Y.bottom=0,_?Y.right=0:Y.left=0,te.width="100%",te.height=d,te.top=j),l.createElement("div",{ref:$,className:ne(W,V(V(V({},"".concat(W,"-horizontal"),u),"".concat(W,"-vertical"),!u),"".concat(W,"-visible"),O)),style:K(K({},Y),p),onMouseDown:B,onMouseMove:M},l.createElement("div",{ref:D,className:ne("".concat(W,"-thumb"),V({},"".concat(W,"-thumb-moving"),h)),style:K(K({},te),g),onMouseDown:H}))}),Ale=20;function H3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Ale),Math.floor(n)}var Mle=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Dle=[],Ple={overflowY:"auto",overflowAnchor:"none"};function Lle(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,p=e.itemKey,g=e.virtual,v=e.direction,m=e.scrollWidth,h=e.component,y=h===void 0?"div":h,b=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,x=e.innerProps,E=e.extraRender,I=e.styles,R=xt(e,Mle),T=l.useCallback(function(et){return typeof p=="function"?p(et):et==null?void 0:et[p]},[p]),_=$le(T),$=ie(_,4),D=$[0],P=$[1],A=$[2],O=$[3],k=!!(g!==!1&&o&&i),N=l.useMemo(function(){return Object.values(A.maps).reduce(function(et,ot){return et+ot},0)},[A.id,A.maps]),M=k&&d&&(Math.max(i*d.length,N)>o||!!m),L=v==="rtl",F=ne(r,V({},"".concat(r,"-rtl"),L),a),j=d||Dle,B=l.useRef(),z=l.useRef(),H=l.useRef(),U=l.useState(0),X=ie(U,2),W=X[0],Y=X[1],te=l.useState(0),ee=ie(te,2),Z=ee[0],oe=ee[1],re=l.useState(!1),q=ie(re,2),Q=q[0],ae=q[1],se=function(){ae(!0)},de=function(){ae(!1)},he={getKey:T};function ye(et){Y(function(ot){var Qe;typeof et=="function"?Qe=et(ot):Qe=et;var Xe=Ne(Qe);return B.current.scrollTop=Xe,Xe})}var pe=l.useRef({start:0,end:j.length}),J=l.useRef(),ce=Ile(j,T),ue=ie(ce,1),fe=ue[0];J.current=fe;var be=l.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!M){var et;return{scrollHeight:((et=z.current)===null||et===void 0?void 0:et.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var ot=0,Qe,Xe,gt,Et=j.length,$t=0;$t=W&&Qe===void 0&&(Qe=$t,Xe=ot),Qt>W+o&>===void 0&&(gt=$t),ot=Qt}return Qe===void 0&&(Qe=0,Xe=0,gt=Math.ceil(o/i)),gt===void 0&&(gt=j.length-1),gt=Math.min(gt+1,j.length-1),{scrollHeight:ot,start:Qe,end:gt,offset:Xe}},[M,k,W,j,O,o]),Ee=be.scrollHeight,Re=be.start,Fe=be.end,Ce=be.offset;pe.current.start=Re,pe.current.end=Fe;var ze=l.useState({width:0,height:o}),Pe=ie(ze,2),Ae=Pe[0],Se=Pe[1],_e=function(ot){Se({width:ot.offsetWidth,height:ot.offsetHeight})},we=l.useRef(),Te=l.useRef(),me=l.useMemo(function(){return H3(Ae.width,m)},[Ae.width,m]),xe=l.useMemo(function(){return H3(Ae.height,Ee)},[Ae.height,Ee]),Be=Ee-o,ke=l.useRef(Be);ke.current=Be;function Ne(et){var ot=et;return Number.isNaN(ke.current)||(ot=Math.min(ot,ke.current)),ot=Math.max(ot,0),ot}var He=W<=0,Ge=W>=Be,je=Z<=0,qe=Z>=m,tt=FH(He,Ge,je,qe),Ye=function(){return{x:L?-Z:Z,y:W}},ft=l.useRef(Ye()),ht=zt(function(et){if(S){var ot=K(K({},Ye()),et);(ft.current.x!==ot.x||ft.current.y!==ot.y)&&(S(ot),ft.current=ot)}});function Ue(et,ot){var Qe=et;ot?(xr.flushSync(function(){oe(Qe)}),ht()):ye(Qe)}function We(et){var ot=et.currentTarget.scrollTop;ot!==W&&ye(ot),b==null||b(et),ht()}var Ke=function(ot){var Qe=ot,Xe=m?m-Ae.width:0;return Qe=Math.max(Qe,0),Qe=Math.min(Qe,Xe),Qe},st=zt(function(et,ot){ot?(xr.flushSync(function(){oe(function(Qe){var Xe=Qe+(L?-et:et);return Ke(Xe)})}),ht()):ye(function(Qe){var Xe=Qe+et;return Xe})}),Tt=Tle(k,He,Ge,je,qe,!!m,st),Rt=ie(Tt,2),Ft=Rt[0],pt=Rt[1];Ole(k,B,function(et,ot,Qe){return tt(et,ot,Qe)?!1:(Ft({preventDefault:function(){},deltaX:et?ot:0,deltaY:et?0:ot}),!0)}),Wt(function(){function et(Qe){k&&Qe.preventDefault()}var ot=B.current;return ot.addEventListener("wheel",Ft,{passive:!1}),ot.addEventListener("DOMMouseScroll",pt,{passive:!0}),ot.addEventListener("MozMousePixelScroll",et,{passive:!1}),function(){ot.removeEventListener("wheel",Ft),ot.removeEventListener("DOMMouseScroll",pt),ot.removeEventListener("MozMousePixelScroll",et)}},[k]),Wt(function(){if(m){var et=Ke(Z);oe(et),ht({x:et})}},[Ae.width,m]);var lt=function(){var ot,Qe;(ot=we.current)===null||ot===void 0||ot.delayHidden(),(Qe=Te.current)===null||Qe===void 0||Qe.delayHidden()},Je=kle(B,j,A,i,T,function(){return P(!0)},ye,lt);l.useImperativeHandle(t,function(){return{nativeElement:H.current,getScrollInfo:Ye,scrollTo:function(ot){function Qe(Xe){return Xe&&mt(Xe)==="object"&&("left"in Xe||"top"in Xe)}Qe(ot)?(ot.left!==void 0&&oe(Ke(ot.left)),Je(ot.top)):Je(ot)}}}),Wt(function(){if(C){var et=j.slice(Re,Fe+1);C(et,j)}},[Re,Fe,j]);var ut=Rle(j,T,A,i),It=E==null?void 0:E({start:Re,end:Fe,virtual:M,offsetX:Z,offsetY:Ce,rtl:L,getSize:ut}),at=xle(j,Re,Fe,m,Z,D,f,he),bt=null;o&&(bt=K(V({},c?"height":"maxHeight",o),Ple),k&&(bt.overflowY="hidden",m&&(bt.overflowX="hidden"),Q&&(bt.pointerEvents="none")));var yt={};return L&&(yt.dir="rtl"),l.createElement("div",ve({ref:H,style:K(K({},u),{},{position:"relative"}),className:F},yt,R),l.createElement(Ur,{onResize:_e},l.createElement(y,{className:"".concat(r,"-holder"),style:bt,ref:B,onScroll:We,onMouseEnter:lt},l.createElement(LH,{prefixCls:r,height:Ee,offsetX:Z,offsetY:Ce,scrollWidth:m,onInnerResize:P,ref:z,innerProps:x,rtl:L,extra:It},at))),M&&Ee>o&&l.createElement(z3,{ref:we,prefixCls:r,scrollOffset:W,scrollRange:Ee,rtl:L,onScroll:Ue,onStartMove:se,onStopMove:de,spinSize:xe,containerSize:Ae.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),M&&m>Ae.width&&l.createElement(z3,{ref:Te,prefixCls:r,scrollOffset:Z,scrollRange:m,rtl:L,onScroll:Ue,onStartMove:se,onStopMove:de,spinSize:me,containerSize:Ae.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var Ub=l.forwardRef(Lle);Ub.displayName="List";function Fle(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jle=["disabled","title","children","style","className"];function U3(e){return typeof e=="string"||typeof e=="number"}var Ble=function(t,n){var r=RH(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,g=l.useContext(t$),v=g.maxCount,m=g.flattenOptions,h=g.onActiveValue,y=g.defaultActiveFirstOption,b=g.onSelect,S=g.menuItemSelectedIcon,C=g.rawValues,x=g.fieldNames,E=g.virtual,I=g.direction,R=g.listHeight,T=g.listItemHeight,_=g.optionRender,$="".concat(a,"-item"),D=Qs(function(){return m},[i,m],function(ee,Z){return Z[0]&&ee[1]!==Z[1]}),P=l.useRef(null),A=l.useMemo(function(){return s&&CT(v)&&(C==null?void 0:C.size)>=v},[s,v,C==null?void 0:C.size]),O=function(Z){Z.preventDefault()},k=function(Z){var oe;(oe=P.current)===null||oe===void 0||oe.scrollTo(typeof Z=="number"?{index:Z}:Z)},N=function(Z){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=D.length,q=0;q1&&arguments[1]!==void 0?arguments[1]:!1;j(Z);var re={source:oe?"keyboard":"mouse"},q=D[Z];if(!q){h(null,-1,re);return}h(q.value,Z,re)};l.useEffect(function(){B(y!==!1?N(0):-1)},[D.length,u]);var z=l.useCallback(function(ee){return C.has(ee)&&c!=="combobox"},[c,Oe(C).toString(),C.size]);l.useEffect(function(){var ee=setTimeout(function(){if(!s&&i&&C.size===1){var oe=Array.from(C)[0],re=D.findIndex(function(q){var Q=q.data;return Q.value===oe});re!==-1&&(B(re),k(re))}});if(i){var Z;(Z=P.current)===null||Z===void 0||Z.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[i,u]);var H=function(Z){Z!==void 0&&b(Z,{selected:!C.has(Z)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(Z){var oe=Z.which,re=Z.ctrlKey;switch(oe){case De.N:case De.P:case De.UP:case De.DOWN:{var q=0;if(oe===De.UP?q=-1:oe===De.DOWN?q=1:Fle()&&re&&(oe===De.N?q=1:oe===De.P&&(q=-1)),q!==0){var Q=N(F+q,q);k(Q),B(Q,!0)}break}case De.ENTER:{var ae,se=D[F];se&&!(se!=null&&(ae=se.data)!==null&&ae!==void 0&&ae.disabled)&&!A?H(se.value):H(void 0),i&&Z.preventDefault();break}case De.ESC:d(!1),i&&Z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Z){k(Z)}}}),D.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:O},f);var U=Object.keys(x).map(function(ee){return x[ee]}),X=function(Z){return Z.label};function W(ee,Z){var oe=ee.group;return{role:oe?"presentation":"option",id:"".concat(o,"_list_").concat(Z)}}var Y=function(Z){var oe=D[Z];if(!oe)return null;var re=oe.data||{},q=re.value,Q=oe.group,ae=Pn(re,!0),se=X(oe);return oe?l.createElement("div",ve({"aria-label":typeof se=="string"&&!Q?se:null},ae,{key:Z},W(oe,Z),{"aria-selected":z(q)}),q):null},te={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,E&&l.createElement("div",ve({},te,{style:{height:0,width:0,overflow:"hidden"}}),Y(F-1),Y(F),Y(F+1)),l.createElement(Ub,{itemKey:"key",ref:P,data:D,height:R,itemHeight:T,fullHeight:!1,onMouseDown:O,onScroll:p,virtual:E,direction:I,innerProps:E?null:te},function(ee,Z){var oe=ee.group,re=ee.groupOption,q=ee.data,Q=ee.label,ae=ee.value,se=q.key;if(oe){var de,he=(de=q.title)!==null&&de!==void 0?de:U3(Q)?Q.toString():void 0;return l.createElement("div",{className:ne($,"".concat($,"-group"),q.className),title:he},Q!==void 0?Q:se)}var ye=q.disabled,pe=q.title;q.children;var J=q.style,ce=q.className,ue=xt(q,jle),fe=Sn(ue,U),be=z(ae),Ee=ye||!be&&A,Re="".concat($,"-option"),Fe=ne($,Re,ce,V(V(V(V({},"".concat(Re,"-grouped"),re),"".concat(Re,"-active"),F===Z&&!Ee),"".concat(Re,"-disabled"),Ee),"".concat(Re,"-selected"),be)),Ce=X(ee),ze=!S||typeof S=="function"||be,Pe=typeof Ce=="number"?Ce:Ce||ae,Ae=U3(Pe)?Pe.toString():void 0;return pe!==void 0&&(Ae=pe),l.createElement("div",ve({},Pn(fe),E?{}:W(ee,Z),{"aria-selected":be,className:Fe,title:Ae,onMouseMove:function(){F===Z||Ee||B(Z)},onClick:function(){Ee||H(ae)},style:J}),l.createElement("div",{className:"".concat(Re,"-content")},typeof _=="function"?_(ee,{index:Z}):Pe),l.isValidElement(S)||be,ze&&l.createElement(Hb,{className:"".concat($,"-option-state"),customizeIcon:S,customizeIconProps:{value:ae,disabled:Ee,isSelected:be}},be?"✓":null))}))},zle=l.forwardRef(Ble);const Hle=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,i=o.values,s=o.options,c=e.map(function(f){if(f.label===void 0){var p;return K(K({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function oS(e,t){return AH(e).join("").toUpperCase().includes(t)}const Ule=function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,v){return a?oS(v[a],d):v[o]?oS(v[i!=="children"?i:"label"],d):oS(v[s],d)},p=u?function(g){return xT(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var v=f(n,p(g));if(v)c.push(g);else{var m=g[o].filter(function(h){return f(n,p(h))});m.length&&c.push(K(K({},g),{},V({},o,m)))}return}f(n,p(g))&&c.push(g)}),c},[e,r,a,n,t])};var V3=0,Vle=Dr();function Wle(){var e;return Vle?(e=V3,V3+=1):e="TEST_OR_SSR",e}function jH(e){var t=l.useState(),n=ie(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(Wle()))},[]),e||r}var Gle=["children","value"],qle=["children"];function Kle(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=xt(r,Gle);return K({key:n,value:o!==void 0?o:n,children:a},i)}function BH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ir(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,c=s.children,u=xt(s,qle);return t||!o?Kle(n):K(K({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:BH(c)})}).filter(function(n){return n})}var Yle=function(t,n,r,a,o){return l.useMemo(function(){var i=t,s=!t;s&&(i=BH(n));var c=new Map,u=new Map,d=function(g,v,m){m&&typeof m=="string"&&g.set(v[m],v)},f=function p(g){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},st=Ke.source,Tt=st===void 0?"keyboard":st;Ne(We),i&&r==="combobox"&&Ue!==null&&Tt==="keyboard"&&me(String(Ue))},[i,r]),je=function(We,Ke,st){var Tt=function(){var yt,et=fe(We);return[L?{label:et==null?void 0:et[W.label],value:We,key:(yt=et==null?void 0:et.key)!==null&&yt!==void 0?yt:We}:We,xT(et)]};if(Ke&&g){var Rt=Tt(),Ft=ie(Rt,2),pt=Ft[0],lt=Ft[1];g(pt,lt)}else if(!Ke&&v&&st!=="clear"){var Je=Tt(),ut=ie(Je,2),It=ut[0],at=ut[1];v(It,at)}},qe=W3(function(Ue,We){var Ke,st=H?We.selected:!0;st?Ke=H?[].concat(Oe(ue),[Ue]):[Ue]:Ke=ue.filter(function(Tt){return Tt.value!==Ue}),Se(Ke),je(Ue,st),r==="combobox"?me(""):(!ET||p)&&(Z(""),me(""))}),tt=function(We,Ke){Se(We);var st=Ke.type,Tt=Ke.values;(st==="remove"||st==="clear")&&Tt.forEach(function(Rt){je(Rt.value,!1,st)})},Ye=function(We,Ke){if(Z(We),me(null),Ke.source==="submit"){var st=(We||"").trim();if(st){var Tt=Array.from(new Set([].concat(Oe(Ee),[st])));Se(Tt),je(st,!0),Z("")}return}Ke.source!=="blur"&&(r==="combobox"&&Se(We),d==null||d(We))},ft=function(We){var Ke=We;r!=="tags"&&(Ke=We.map(function(Tt){var Rt=q.get(Tt);return Rt==null?void 0:Rt.value}).filter(function(Tt){return Tt!==void 0}));var st=Array.from(new Set([].concat(Oe(Ee),Oe(Ke))));Se(st),st.forEach(function(Tt){je(Tt,!0)})},ht=l.useMemo(function(){var Ue=_!==!1&&h!==!1;return K(K({},oe),{},{flattenOptions:Ae,onActiveValue:Ge,defaultActiveFirstOption:He,onSelect:qe,menuItemSelectedIcon:T,rawValues:Ee,fieldNames:W,virtual:Ue,direction:$,listHeight:P,listItemHeight:O,childrenAsData:U,maxCount:j,optionRender:E})},[j,oe,Ae,Ge,He,qe,T,Ee,W,_,h,$,P,O,U,E]);return l.createElement(t$.Provider,{value:ht},l.createElement(PH,ve({},B,{id:z,prefixCls:o,ref:t,omitDomProps:Zle,mode:r,displayValues:be,onDisplayValuesChange:tt,direction:$,searchValue:ee,onSearch:Ye,autoClearSearchValue:p,onSearchSplit:ft,dropdownMatchSelectWidth:h,OptionList:zle,emptyOptions:!Ae.length,activeValue:Te,activeDescendantId:"".concat(z,"_list_").concat(ke)})))}),a$=Jle;a$.Option=r$;a$.OptGroup=n$;function Yi(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const nl=(e,t)=>t||e,ece=()=>{const[,e]=Lr(),n=new un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"empty image"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tce=()=>{const[,e]=Lr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new un(t).onBackground(a).toHexShortString(),shadowColor:new un(n).onBackground(a).toHexShortString(),contentColor:new un(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"Simple Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.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"}),l.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:s}))))},nce=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},rce=tn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[nce(a)]});var ace=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=zH,description:o,children:i,imageStyle:s,style:c}=e,u=ace(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=l.useContext(ct),g=d("empty",r),[v,m,h]=rce(g),[y]=hi("Empty"),b=typeof o<"u"?o:y==null?void 0:y.description,S=typeof b=="string"?b:"empty";let C=null;return typeof a=="string"?C=l.createElement("img",{alt:S,src:a}):C=a,v(l.createElement("div",Object.assign({className:ne(m,h,g,p==null?void 0:p.className,{[`${g}-normal`]:a===HH,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),c)},u),l.createElement("div",{className:`${g}-image`,style:s},C),b&&l.createElement("div",{className:`${g}-description`},b),i&&l.createElement("div",{className:`${g}-footer`},i)))};Mi.PRESENTED_IMAGE_DEFAULT=zH;Mi.PRESENTED_IMAGE_SIMPLE=HH;const Vb=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(ct),r=n("empty");switch(t){case"Table":case"List":return le.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return le.createElement(Mi,null)}},dc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=l.useContext(ct),s=l.useContext(iH),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=Hte.includes(u);return[u,d]},oce=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function UH(e,t){return e||oce(t)}const G3=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ice=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Xt(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,[` ${a}${s}bottomLeft, ${o}${s}bottomLeft `]:{animationName:Lb},[` @@ -226,19 +226,19 @@ html body { `]:{animationName:jb},[`${i}${s}bottomLeft`]:{animationName:Fb},[` ${i}${s}topLeft, ${i}${s}topRight - `]:{animationName:Bb},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},G3(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"},vo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-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({},G3(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},fi(e,"slide-up"),fi(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down")]},VH=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:G(t),itemLineHeight:G(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},sce=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},WH=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=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:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},td()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},lce=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=sce(e),s=t?`${n}-${t}`:"",c=VH(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},WH(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(r)} 0`,lineHeight:G(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:G(c.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:G(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function iS(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{animationName:Bb},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},G3(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"},vo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-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({},G3(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},pi(e,"slide-up"),pi(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down")]},VH=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:G(t),itemLineHeight:G(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},sce=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},WH=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=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:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},td()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},lce=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=sce(e),s=t?`${n}-${t}`:"",c=VH(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},WH(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(r)} 0`,lineHeight:G(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:G(c.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:G(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function iS(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lce(e,t),a]}const cce=e=>{const{componentCls:t}=e,n=zt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=zt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[iS(e),iS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},iS(r,"lg")]};function sS(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Qt(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lce(e,t),a]}const cce=e=>{const{componentCls:t}=e,n=Bt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Bt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[iS(e),iS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},iS(r,"lg")]};function sS(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Xt(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:G(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${G(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:G(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${G(r)}`,"&:after":{display:"none"}}}}}}}function uce(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[sS(e),sS(zt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${G(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${G(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:G(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${G(r)}`,"&:after":{display:"none"}}}}}}}function uce(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[sS(e),sS(Bt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${G(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).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()}}}},sS(zt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dce=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:g,colorBgContainer:v,colorFillSecondary:m,colorBgContainerDisabled:h,colorTextDisabled:y}=e,b=s*2,S=r*2,C=Math.min(a-b,a-S),x=Math.min(o-b,o-S),E=Math.min(i-b,i-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:v,clearBg:v,singleItemHeightLG:i,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:x,multipleItemHeightLG:E,multipleSelectorBgDisabled:h,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},GH=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${G(a)} ${t.activeShadowColor}`,outline:0}}}},q3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},GH(e,t))}),fce=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},GH(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),q3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),q3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${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:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),qH=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},K3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qH(e,t))}),pce=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},qH(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),K3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),K3(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gce=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),mce=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},fce(e)),pce(e)),gce(e))}),hce=e=>{const{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"}}}},vce=e=>{const{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","-webkit-appearance":"none"}}}},bce=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},Qt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hce(e)),vce(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},vo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},vo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},td()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},yce=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},bce(e),uce(e),cce(e),ice(e),{[`${t}-rtl`]:{direction:"rtl"}},ag(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},KH=nn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=zt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yce(r),mce(r)]},dce,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Sce={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"},wce=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Sce}))},Wb=l.forwardRef(wce),Cce={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"},xce=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Cce}))},Gb=l.forwardRef(xce),Ece={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"},Ice=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Ece}))},o$=l.forwardRef(Ice);function i$(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const g=n??l.createElement(uc,null),v=b=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&b,s&&d);let m=null;if(t!==void 0)m=v(t);else if(o)m=v(l.createElement(Gi,{spin:!0}));else{const b=`${c}-suffix`;m=S=>{let{open:C,showSearch:x}=S;return v(C&&x?l.createElement(o$,{className:b}):l.createElement(Gb,{className:b}))}}let h=null;r!==void 0?h=r:i?h=l.createElement(Wb,null):h=null;let y=null;return a!==void 0?y=a:y=l.createElement(da,null),{clearIcon:g,suffixIcon:m,itemIcon:h,removeIcon:y}}function YH(e,t){return t!==void 0?t:e!==null}var Tce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:g,disabled:v,notFoundContent:m,status:h,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:S,direction:C,style:x,allowClear:E,variant:I,dropdownStyle:R,transitionName:T,tagRender:_,maxCount:$}=e,D=Tce(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"]),{getPopupContainer:P,getPrefixCls:A,renderEmpty:O,direction:k,virtual:N,popupMatchSelectWidth:M,popupOverflow:L,select:F}=l.useContext(it),[,j]=Lr(),B=p??(j==null?void 0:j.controlHeight),z=A("select",r),H=A(),U=C??k,{compactSize:X,compactItemClassnames:W}=es(z,U),[Y,te]=dc("select",I,a),ee=Yn(z),[Z,oe,re]=KH(z,ee),q=l.useMemo(()=>{const{mode:Re}=e;if(Re!=="combobox")return Re===XH?"combobox":Re},[e.mode]),Q=q==="multiple"||q==="tags",ae=YH(e.suffixIcon,e.showArrow),se=(n=S??b)!==null&&n!==void 0?n:M,{status:de,hasFeedback:he,isFormItemInput:ye,feedbackIcon:pe}=l.useContext(Rr),J=nl(de,h);let ce;m!==void 0?ce=m:q==="combobox"?ce=null:ce=(O==null?void 0:O("Select"))||l.createElement(Vb,{componentName:"Select"});const{suffixIcon:ue,itemIcon:fe,removeIcon:be,clearIcon:Te}=i$(Object.assign(Object.assign({},D),{multiple:Q,hasFeedback:he,feedbackIcon:pe,showSuffixIcon:ae,prefixCls:z,componentName:"Select"})),_e=E===!0?{clearIcon:Te}:E,Pe=yn(D,["suffixIcon","itemIcon"]),Ee=ne(c||u,{[`${z}-dropdown-${U}`]:U==="rtl"},i,re,ee,oe),Fe=dr(Re=>{var me;return(me=g??X)!==null&&me!==void 0?me:Re}),De=l.useContext(Gr),Ae=v??De,we=ne({[`${z}-lg`]:Fe==="large",[`${z}-sm`]:Fe==="small",[`${z}-rtl`]:U==="rtl",[`${z}-${Y}`]:te,[`${z}-in-form-item`]:ye},Yi(z,J,he),W,F==null?void 0:F.className,o,i,re,ee,oe),$e=l.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[Ce]=Ji("SelectLike",R==null?void 0:R.zIndex);return Z(l.createElement(a$,Object.assign({ref:t,virtual:N,showSearch:F==null?void 0:F.showSearch},Pe,{style:Object.assign(Object.assign({},F==null?void 0:F.style),x),dropdownMatchSelectWidth:se,transitionName:bo(H,"slide-up",T),builtinPlacements:UH(y,L),listHeight:d,listItemHeight:B,mode:q,prefixCls:z,placement:$e,direction:U,suffixIcon:ue,menuItemSelectedIcon:fe,removeIcon:be,allowClear:_e,notFoundContent:ce,className:we,getPopupContainer:s||P,dropdownClassName:Ee,disabled:Ae,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Ce}),maxCount:Q?$:void 0,tagRender:Q?_:void 0})))},br=l.forwardRef(Rce),_ce=ug(br);br.SECRET_COMBOBOX_MODE_DO_NOT_USE=XH;br.Option=r$;br.OptGroup=n$;br._InternalPanelDoNotUseOrYouWillBeFired=_ce;const Jl=["xxl","xl","lg","md","sm","xs"],$ce=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Oce=e=>{const t=e,n=[].concat(Jl).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function s$(){const[,e]=l.useReducer(t=>t+1,0);return e}function qb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=s$(),r=ZH();return qt(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const Sv=e=>e?typeof e=="function"?e():e:null;function l$(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return l.createElement("div",{className:ne("".concat(n,"-content"),o),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Mc={shiftX:64,adjustY:1},Dc={adjustX:1,shiftY:!0},to=[0,0],Nce={left:{points:["cr","cl"],overflow:Dc,offset:[-4,0],targetOffset:to},right:{points:["cl","cr"],overflow:Dc,offset:[4,0],targetOffset:to},top:{points:["bc","tc"],overflow:Mc,offset:[0,-4],targetOffset:to},bottom:{points:["tc","bc"],overflow:Mc,offset:[0,4],targetOffset:to},topLeft:{points:["bl","tl"],overflow:Mc,offset:[0,-4],targetOffset:to},leftTop:{points:["tr","tl"],overflow:Dc,offset:[-4,0],targetOffset:to},topRight:{points:["br","tr"],overflow:Mc,offset:[0,-4],targetOffset:to},rightTop:{points:["tl","tr"],overflow:Dc,offset:[4,0],targetOffset:to},bottomRight:{points:["tr","br"],overflow:Mc,offset:[0,4],targetOffset:to},rightBottom:{points:["bl","br"],overflow:Dc,offset:[4,0],targetOffset:to},bottomLeft:{points:["tl","bl"],overflow:Mc,offset:[0,4],targetOffset:to},leftBottom:{points:["br","bl"],overflow:Dc,offset:[-4,0],targetOffset:to}},kce=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Ace=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,v=t.onVisibleChange,m=t.afterVisibleChange,h=t.transitionName,y=t.animation,b=t.motion,S=t.placement,C=S===void 0?"right":S,x=t.align,E=x===void 0?{}:x,I=t.destroyTooltipOnHide,R=I===void 0?!1:I,T=t.defaultVisible,_=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,P=t.id,A=t.showArrow,O=A===void 0?!0:A,k=xt(t,kce),N=l.useRef(null);l.useImperativeHandle(n,function(){return N.current});var M=K({},k);"visible"in t&&(M.popupVisible=t.visible);var L=function(){return l.createElement(l$,{key:"content",prefixCls:p,id:P,overlayInnerStyle:$},D)};return l.createElement(fg,ve({popupClassName:r,prefixCls:p,popup:L,action:o,builtinPlacements:Nce,popupPlacement:C,ref:N,popupAlign:E,getPopupContainer:_,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:h,popupAnimation:y,popupMotion:b,defaultPopupVisible:T,autoDestroy:R,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:O},M),g)};const Mce=l.forwardRef(Ace);function Kb(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,p=d,g=2*a-s,v=c,m=2*a-o,h=i,y=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),S=`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,C=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${g} ${v} A ${r} ${r} 0 0 0 ${m} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:S}}const QH=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},JH=8;function Yb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?JH:r}}function ym(e,t){return e?t:{}}function c$(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},QH(e,t,a)),{"&:before":{background:t}})]},ym(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ym(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ym(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),ym(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Dce(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Y3={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"]}},Pce={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"]}},Lce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function eU(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(Y3).forEach(u=>{const d=r&&Pce[u]||Y3[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,Lce.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const p=Yb({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal+s;break}f.overflow=Dce(u,p,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const Fce=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${G(e.calc(u).div(2).equal())} ${G(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,JH)}},[`${t}-content`]:{position:"relative"}}),a9(e,(f,p)=>{let{darkColor:g}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},c$(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jce=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Yb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Kb(zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),tU=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return nn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=zt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Fce(s),lg(r,"zoom-big-fast")]},jce,{resetStyle:!1,injectStyle:t})(e)},Bce=bp.map(e=>`${e}-inverse`),zce=["success","processing","error","default","warning"];function nU(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Oe(Bce),Oe(bp)).includes(e):bp.includes(e)}function Hce(e){return zce.includes(e)}function rU(e,t){const n=nU(t),r=ne({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const Uce=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(it),c=s("tooltip",t),[u,d,f]=tU(c),p=rU(c,o),g=p.arrowStyle,v=Object.assign(Object.assign({},i),p.overlayStyle),m=ne(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(l.createElement("div",{className:m,style:g},l.createElement("div",{className:`${c}-arrow`}),l.createElement(l$,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:v}),a)))};var Vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:v=!0,title:m,overlay:h,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:S=!0}=e,C=!!v,[,x]=Lr(),{getPopupContainer:E,getPrefixCls:I,direction:R}=l.useContext(it),T=Js(),_=l.useRef(null),$=()=>{var ce;(ce=_.current)===null||ce===void 0||ce.forceAlign()};l.useImperativeHandle(t,()=>{var ce;return{forceAlign:$,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:(ce=_.current)===null||ce===void 0?void 0:ce.nativeElement}});const[D,P]=on(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!m&&!h&&m!==0,O=ce=>{var ue,fe;P(A?!1:ce),A||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,ce),(fe=e.onVisibleChange)===null||fe===void 0||fe.call(e,ce))},k=l.useMemo(()=>{var ce,ue;let fe=b;return typeof v=="object"&&(fe=(ue=(ce=v.pointAtCenter)!==null&&ce!==void 0?ce:v.arrowPointAtCenter)!==null&&ue!==void 0?ue:b),y||eU({arrowPointAtCenter:fe,autoAdjustOverflow:S,arrowWidth:C?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[b,v,y,x]),N=l.useMemo(()=>m===0?m:h||m||"",[h,m]),M=l.createElement(di,{space:!0},typeof N=="function"?N():N),{getPopupContainer:L,placement:F="top",mouseEnterDelay:j=.1,mouseLeaveDelay:B=.1,overlayStyle:z,rootClassName:H}=e,U=Vce(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=I("tooltip",a),W=I(),Y=e["data-popover-inject"];let te=D;!("open"in e)&&!("visible"in e)&&A&&(te=!1);const ee=l.isValidElement(d)&&!x9(d)?d:l.createElement("span",null,d),Z=ee.props,oe=!Z.className||typeof Z.className=="string"?ne(Z.className,o||`${X}-open`):Z.className,[re,q,Q]=tU(X,!Y),ae=rU(X,c),se=ae.arrowStyle,de=Object.assign(Object.assign({},u),ae.overlayStyle),he=ne(s,{[`${X}-rtl`]:R==="rtl"},ae.className,H,q,Q),[ye,pe]=Ji("Tooltip",U.zIndex),J=l.createElement(Mce,Object.assign({},U,{zIndex:ye,showArrow:C,placement:F,mouseEnterDelay:j,mouseLeaveDelay:B,prefixCls:X,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},se),z),getTooltipContainer:L||i||E,ref:_,builtinPlacements:k,overlay:M,visible:te,onVisibleChange:O,afterVisibleChange:f??p,overlayInnerStyle:de,arrowContent:l.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:bo(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),te?ur(ee,{className:oe}):ee);return re(l.createElement(tg.Provider,{value:pe},J))}),tn=Wce;tn._InternalPanelDoNotUseOrYouWillBeFired=Uce;const Gce=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:p,titleBorderBottom:g,innerContentPadding:v,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Qt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a,borderBottom:g,padding:m},[`${t}-inner-content`]:{color:n,padding:v}})},c$(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},qce=e=>{const{componentCls:t}=e;return{[t]:bp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Kce=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,p=n-r,g=p/2,v=p/2-t,m=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Kb(e)),Yb({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${m}px ${v}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${m}px`:0})},aU=nn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=zt(e,{popoverBg:t,popoverColor:n});return[Gce(r),qce(r),lg(r,"zoom-big")]},Kce,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Yce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},t),n&&l.createElement("div",{className:`${r}-inner-content`},n))},Xce=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:s,children:c}=e,u=Sv(i),d=Sv(s),f=ne(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return l.createElement("div",{className:f,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(l$,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(oU,{prefixCls:n,title:u,content:d})))},Zce=e=>{const{prefixCls:t,className:n}=e,r=Yce(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(it),o=a("popover",t),[i,s,c]=aU(o);return i(l.createElement(Xce,Object.assign({},r,{prefixCls:o,hashId:s,className:ne(n,c)})))};var Qce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:g,overlayStyle:v={}}=e,m=Qce(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=l.useContext(it),y=h("popover",a),[b,S,C]=aU(y),x=h(),E=ne(s,S,C),[I,R]=on(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=(A,O)=>{R(A,!0),g==null||g(A,O)},_=A=>{A.keyCode===Me.ESC&&T(!1,A)},$=A=>{T(A)},D=Sv(o),P=Sv(i);return b(l.createElement(tn,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:v},m,{prefixCls:y,overlayClassName:E,ref:t,open:I,onOpenChange:$,overlay:D||P?l.createElement(oU,{prefixCls:y,title:D,content:P}):null,transitionName:bo(x,"zoom-big",m.transitionName),"data-popover-inject":!0}),ur(d,{onKeyDown:A=>{var O,k;l.isValidElement(d)&&((k=d==null?void 0:(O=d.props).onKeyDown)===null||k===void 0||k.call(O,A)),_(A)}})))}),iU=Jce;iU._InternalPanelDoNotUseOrYouWillBeFired=Zce;var eue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},tue=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:eue}))},Hs=l.forwardRef(tue),nue=Me.ESC,rue=Me.TAB;function aue(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case nue:s();break;case rue:{var p=!1;i.current||(p=c()),p?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Bt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var oue=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Pr(t,o==null?void 0:o.ref);return le.createElement(le.Fragment,null,r&&le.createElement("div",{className:"".concat(a,"-arrow")}),le.cloneElement(o,{ref:Ho(o)?i:void 0}))}),Pc={adjustX:1,adjustY:1},Lc=[0,0],iue={topLeft:{points:["bl","tl"],overflow:Pc,offset:[0,-4],targetOffset:Lc},top:{points:["bc","tc"],overflow:Pc,offset:[0,-4],targetOffset:Lc},topRight:{points:["br","tr"],overflow:Pc,offset:[0,-4],targetOffset:Lc},bottomLeft:{points:["tl","bl"],overflow:Pc,offset:[0,4],targetOffset:Lc},bottom:{points:["tc","bc"],overflow:Pc,offset:[0,4],targetOffset:Lc},bottomRight:{points:["tr","br"],overflow:Pc,offset:[0,4],targetOffset:Lc}},sue=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function lue(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,g=p===void 0?iue:p,v=e.getPopupContainer,m=e.showAction,h=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,S=e.visible,C=e.trigger,x=C===void 0?["hover"]:C,E=e.autoFocus,I=e.overlay,R=e.children,T=e.onVisibleChange,_=xt(e,sue),$=le.useState(),D=ie($,2),P=D[0],A=D[1],O="visible"in e?S:P,k=le.useRef(null),N=le.useRef(null),M=le.useRef(null);le.useImperativeHandle(t,function(){return k.current});var L=function(Y){A(Y),T==null||T(Y)};aue({visible:O,triggerRef:M,onVisibleChange:L,autoFocus:E,overlayRef:N});var F=function(Y){var te=e.onOverlayClick;A(!1),te&&te(Y)},j=function(){return le.createElement(oue,{ref:N,overlay:I,prefixCls:i,arrow:a})},B=function(){return typeof I=="function"?j:j()},z=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!te},H=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(i,"-open")},U=le.cloneElement(R,{className:ne((n=R.props)===null||n===void 0?void 0:n.className,O&&H()),ref:Ho(R)?Pr(M,R.ref):void 0}),X=h;return!X&&x.indexOf("contextMenu")!==-1&&(X=["click"]),le.createElement(fg,ve({builtinPlacements:g},_,{prefixCls:i,ref:k,popupClassName:ne(y,V({},"".concat(i,"-show-arrow"),a)),popupStyle:b,action:x,showAction:m,hideAction:X,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:O,stretch:z()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:F,getPopupContainer:v}),U)}const sU=le.forwardRef(lue);var lU=l.createContext(null);function cU(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function uU(e){var t=l.useContext(lU);return cU(t,e)}var cue=["children","locked"],Wo=l.createContext(null);function uue(e,t){var n=K({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Cp(e){var t=e.children,n=e.locked,r=xt(e,cue),a=l.useContext(Wo),o=Qs(function(){return uue(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!Uo(i[1],s[1],!0))});return l.createElement(Wo.Provider,{value:o},t)}var due=[],dU=l.createContext(null);function Xb(){return l.useContext(dU)}var fU=l.createContext(due);function sd(e){var t=l.useContext(fU);return l.useMemo(function(){return e!==void 0?[].concat(Oe(t),[e]):t},[t,e])}var pU=l.createContext(null),u$=l.createContext({});function X3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ad(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function fue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Oe(e.querySelectorAll("*")).filter(function(r){return X3(r,t)});return X3(e,t)&&n.unshift(e),n}var IT=Me.LEFT,TT=Me.RIGHT,RT=Me.UP,xh=Me.DOWN,Eh=Me.ENTER,gU=Me.ESC,zd=Me.HOME,Hd=Me.END,Z3=[RT,xh,IT,TT];function pue(e,t,n,r){var a,o,i,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===Eh)return{inlineTrigger:!0};var p=(a={},V(a,RT,c),V(a,xh,u),a),g=(o={},V(o,IT,n?u:c),V(o,TT,n?c:u),V(o,xh,d),V(o,Eh,d),o),v=(i={},V(i,RT,c),V(i,xh,u),V(i,Eh,d),V(i,gU,f),V(i,IT,n?d:f),V(i,TT,n?f:d),i),m={inline:p,horizontal:g,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v},h=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(h){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function gue(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function mue(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function d$(e,t){var n=fue(e,!0);return n.filter(function(r){return t.has(r)})}function Q3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=d$(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var _T=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(cU(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function hue(e,t,n,r,a,o,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var p=function(){Bt.cancel(d.current)};return l.useEffect(function(){return function(){p()}},[]),function(g){var v=g.which;if([].concat(Z3,[Eh,gU,zd,Hd]).includes(v)){var m=o(),h=_T(m,r),y=h,b=y.elements,S=y.key2element,C=y.element2key,x=S.get(t),E=mue(x,b),I=C.get(E),R=pue(e,i(I,!0).length===1,n,v);if(!R&&v!==zd&&v!==Hd)return;(Z3.includes(v)||[zd,Hd].includes(v))&&g.preventDefault();var T=function(N){if(N){var M=N,L=N.querySelector("a");L!=null&&L.getAttribute("href")&&(M=L);var F=C.get(N);s(F),p(),d.current=Bt(function(){f.current===F&&M.focus()})}};if([zd,Hd].includes(v)||R.sibling||!E){var _;!E||e==="inline"?_=a.current:_=gue(E);var $,D=d$(_,b);v===zd?$=D[0]:v===Hd?$=D[D.length-1]:$=Q3(_,b,E,R.offset),T($)}else if(R.inlineTrigger)c(I);else if(R.offset>0)c(I,!0),p(),d.current=Bt(function(){h=_T(m,r);var k=E.getAttribute("aria-controls"),N=document.getElementById(k),M=Q3(N,h.elements);T(M)},5);else if(R.offset<0){var P=i(I,!0),A=P[P.length-2],O=S.get(A);c(A,!1),T(O)}}u==null||u(g)}}function vue(e){Promise.resolve().then(e)}var f$="__RC_UTIL_PATH_SPLIT__",J3=function(t){return t.join(f$)},bue=function(t){return t.split(f$)},$T="rc-menu-more";function yue(){var e=l.useState({}),t=ie(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),i=ie(o,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},p=l.useCallback(function(S,C){var x=J3(C);a.current.set(x,S),r.current.set(S,x),u.current+=1;var E=u.current;vue(function(){E===u.current&&f()})},[]),g=l.useCallback(function(S,C){var x=J3(C);a.current.delete(x),r.current.delete(S)},[]),v=l.useCallback(function(S){c(S)},[]),m=l.useCallback(function(S,C){var x=r.current.get(S)||"",E=bue(x);return C&&s.includes(E[0])&&E.unshift($T),E},[s]),h=l.useCallback(function(S,C){return S.filter(function(x){return x!==void 0}).some(function(x){var E=m(x,!0);return E.includes(C)})},[m]),y=function(){var C=Oe(r.current.keys());return s.length&&C.push($T),C},b=l.useCallback(function(S){var C="".concat(r.current.get(S)).concat(f$),x=new Set;return Oe(a.current.keys()).forEach(function(E){E.startsWith(C)&&x.add(a.current.get(E))}),x},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:h,getKeyPath:m,getKeys:y,getSubPathKeys:b}}function rf(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(b.motionAppear=!1);var S=b.onVisibleChanged;return b.onVisibleChanged=function(C){return!p.current&&!C&&h(!0),S==null?void 0:S(C)},m?null:l.createElement(Cp,{mode:o,locked:!p.current},l.createElement(qr,ve({visible:y},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var x=C.className,E=C.style;return l.createElement(p$,{id:t,className:x,style:E},a)}))}var Pue=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Lue=["active"],Fue=l.forwardRef(function(e,t){var n,r=e.style,a=e.className,o=e.title,i=e.eventKey;e.warnKey;var s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,g=e.popupOffset,v=e.popupStyle,m=e.onClick,h=e.onMouseEnter,y=e.onMouseLeave,b=e.onTitleClick,S=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=xt(e,Pue),E=uU(i),I=l.useContext(Wo),R=I.prefixCls,T=I.mode,_=I.openKeys,$=I.disabled,D=I.overflowDisabled,P=I.activeKey,A=I.selectedKeys,O=I.itemIcon,k=I.expandIcon,N=I.onItemClick,M=I.onOpenChange,L=I.onActive,F=l.useContext(u$),j=F._internalRenderSubMenuItem,B=l.useContext(pU),z=B.isSubPathKey,H=sd(),U="".concat(R,"-submenu"),X=$||s,W=l.useRef(),Y=l.useRef(),te=d??O,ee=f??k,Z=_.includes(i),oe=!D&&Z,re=z(A,i),q=mU(i,X,S,C),Q=q.active,ae=xt(q,Lue),se=l.useState(!1),de=ie(se,2),he=de[0],ye=de[1],pe=function(Ce){X||ye(Ce)},J=function(Ce){pe(!0),h==null||h({key:i,domEvent:Ce})},ce=function(Ce){pe(!1),y==null||y({key:i,domEvent:Ce})},ue=l.useMemo(function(){return Q||(T!=="inline"?he||z([P],i):!1)},[T,Q,P,he,i,z]),fe=hU(H.length),be=function(Ce){X||(b==null||b({key:i,domEvent:Ce}),T==="inline"&&M(i,!Z))},Te=rf(function($e){m==null||m(wv($e)),N($e)}),_e=function(Ce){T!=="inline"&&M(i,Ce)},Pe=function(){L(i)},Ee=E&&"".concat(E,"-popup"),Fe=l.createElement("div",ve({role:"menuitem",style:fe,className:"".concat(U,"-title"),tabIndex:X?null:-1,ref:W,title:typeof o=="string"?o:null,"data-menu-id":D&&E?null:E,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":X,onClick:be,onFocus:Pe},ae),o,l.createElement(vU,{icon:T!=="horizontal"?ee:void 0,props:K(K({},e),{},{isOpen:oe,isSubMenu:!0})},l.createElement("i",{className:"".concat(U,"-arrow")}))),De=l.useRef(T);if(T!=="inline"&&H.length>1?De.current="vertical":De.current=T,!D){var Ae=De.current;Fe=l.createElement(Mue,{mode:Ae,prefixCls:U,visible:!c&&oe&&T!=="inline",popupClassName:p,popupOffset:g,popupStyle:v,popup:l.createElement(Cp,{mode:Ae==="horizontal"?"vertical":Ae},l.createElement(p$,{id:Ee,ref:Y},u)),disabled:X,onVisibleChange:_e},Fe)}var we=l.createElement(Bo.Item,ve({ref:t,role:"none"},x,{component:"li",style:r,className:ne(U,"".concat(U,"-").concat(T),a,(n={},V(n,"".concat(U,"-open"),oe),V(n,"".concat(U,"-active"),ue),V(n,"".concat(U,"-selected"),re),V(n,"".concat(U,"-disabled"),X),n)),onMouseEnter:J,onMouseLeave:ce}),Fe,!D&&l.createElement(Due,{id:Ee,open:oe,keyPath:H},u));return j&&(we=j(we,e,{selected:re,active:ue,open:oe,disabled:X})),l.createElement(Cp,{onItemClick:Te,mode:T==="horizontal"?"vertical":T,itemIcon:te,expandIcon:ee},we)}),Zb=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=sd(n),o=g$(r,a),i=Xb();l.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=l.createElement(Fue,ve({ref:t},e),o),l.createElement(fU.Provider,{value:a},s)});function m$(e){var t=e.className,n=e.style,r=l.useContext(Wo),a=r.prefixCls,o=Xb();return o?null:l.createElement("li",{role:"separator",className:ne("".concat(a,"-item-divider"),t),style:n})}var jue=["className","title","eventKey","children"],Bue=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=xt(e,jue),i=l.useContext(Wo),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",ve({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:ne(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),h$=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=sd(n),o=g$(r,a),i=Xb();return i?o:l.createElement(Bue,ve({ref:t},yn(e,["warnKey"])),o)}),zue=["label","children","key","type"];function OT(e,t){var n=t.item,r=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&ht(i)==="object"){var c=i,u=c.label,d=c.children,f=c.key,p=c.type,g=xt(c,zue),v=f??"tmp-".concat(s);return d||p==="group"?p==="group"?l.createElement(r,ve({key:v},g,{title:u}),OT(d,t)):l.createElement(a,ve({key:v},g,{title:u}),OT(d,t)):p==="divider"?l.createElement(o,ve({key:v},g)):l.createElement(n,ve({key:v},g),u)}return null}).filter(function(i){return i})}function tM(e,t,n,r){var a=e,o=K({divider:m$,item:pg,group:h$,submenu:Zb},r);return t&&(a=OT(t,o)),g$(a,n)}var Hue=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ul=[],Uue=l.forwardRef(function(e,t){var n,r,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,c=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,p=a.items,g=a.children,v=a.direction,m=a.id,h=a.mode,y=h===void 0?"vertical":h,b=a.inlineCollapsed,S=a.disabled,C=a.disabledOverflow,x=a.subMenuOpenDelay,E=x===void 0?.1:x,I=a.subMenuCloseDelay,R=I===void 0?.1:I,T=a.forceSubMenuRender,_=a.defaultOpenKeys,$=a.openKeys,D=a.activeKey,P=a.defaultActiveFirst,A=a.selectable,O=A===void 0?!0:A,k=a.multiple,N=k===void 0?!1:k,M=a.defaultSelectedKeys,L=a.selectedKeys,F=a.onSelect,j=a.onDeselect,B=a.inlineIndent,z=B===void 0?24:B,H=a.motion,U=a.defaultMotions,X=a.triggerSubMenuAction,W=X===void 0?"hover":X,Y=a.builtinPlacements,te=a.itemIcon,ee=a.expandIcon,Z=a.overflowedIndicator,oe=Z===void 0?"...":Z,re=a.overflowedIndicatorPopupClassName,q=a.getPopupContainer,Q=a.onClick,ae=a.onOpenChange,se=a.onKeyDown;a.openAnimation,a.openTransitionName;var de=a._internalRenderMenuItem,he=a._internalRenderSubMenuItem,ye=a._internalComponents,pe=xt(a,Hue),J=l.useMemo(function(){return[tM(g,p,ul,ye),tM(g,p,ul,{})]},[g,p,ye]),ce=ie(J,2),ue=ce[0],fe=ce[1],be=l.useState(!1),Te=ie(be,2),_e=Te[0],Pe=Te[1],Ee=l.useRef(),Fe=wue(m),De=v==="rtl",Ae=on(_,{value:$,postState:function(Dt){return Dt||ul}}),we=ie(Ae,2),$e=we[0],Ce=we[1],Re=function(Dt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function mt(){Ce(Dt),ae==null||ae(Dt)}Ft?xr.flushSync(mt):mt()},me=l.useState($e),Ie=ie(me,2),je=Ie[0],ke=Ie[1],Ne=l.useRef(!1),Be=l.useMemo(function(){return(y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1]},[y,b]),Ve=ie(Be,2),Le=Ve[0],We=Ve[1],Je=Le==="inline",Ke=l.useState(Le),ut=ie(Ke,2),dt=ut[0],He=ut[1],Ye=l.useState(We),Ge=ie(Ye,2),rt=Ge[0],Tt=Ge[1];l.useEffect(function(){He(Le),Tt(We),Ne.current&&(Je?Ce(je):Re(ul))},[Le,We]);var Rt=l.useState(0),jt=ie(Rt,2),ft=jt[0],st=jt[1],Ze=ft>=ue.length-1||dt!=="horizontal"||C;l.useEffect(function(){Je&&ke($e)},[$e]),l.useEffect(function(){return Ne.current=!0,function(){Ne.current=!1}},[]);var lt=yue(),It=lt.registerPath,at=lt.unregisterPath,vt=lt.refreshOverflowKeys,bt=lt.isSubPathKey,Qe=lt.getKeyPath,ot=lt.getKeys,Xe=lt.getSubPathKeys,qe=l.useMemo(function(){return{registerPath:It,unregisterPath:at}},[It,at]),pt=l.useMemo(function(){return{isSubPathKey:bt}},[bt]);l.useEffect(function(){vt(Ze?ul:ue.slice(ft+1).map(function(Ht){return Ht.key}))},[ft,Ze]);var Et=on(D||P&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:D}),_t=ie(Et,2),Xt=_t[0],Jt=_t[1],Yt=rf(function(Ht){Jt(Ht)}),rn=rf(function(){Jt(void 0)});l.useImperativeHandle(t,function(){return{list:Ee.current,focus:function(Dt){var Ft,mt=ot(),Se=_T(mt,Fe),xe=Se.elements,ze=Se.key2element,gt=Se.element2key,yt=d$(Ee.current,xe),Gt=Xt??(yt[0]?gt.get(yt[0]):(Ft=ue.find(function(et){return!et.props.disabled}))===null||Ft===void 0?void 0:Ft.key),Ct=ze.get(Gt);if(Gt&&Ct){var $t;Ct==null||($t=Ct.focus)===null||$t===void 0||$t.call(Ct,Dt)}}}});var St=on(M||[],{value:L,postState:function(Dt){return Array.isArray(Dt)?Dt:Dt==null?ul:[Dt]}}),wt=ie(St,2),Nt=wt[0],hn=wt[1],Fn=function(Dt){if(O){var Ft=Dt.key,mt=Nt.includes(Ft),Se;N?mt?Se=Nt.filter(function(ze){return ze!==Ft}):Se=[].concat(Oe(Nt),[Ft]):Se=[Ft],hn(Se);var xe=K(K({},Dt),{},{selectedKeys:Se});mt?j==null||j(xe):F==null||F(xe)}!N&&$e.length&&dt!=="inline"&&Re(ul)},rr=rf(function(Ht){Q==null||Q(wv(Ht)),Fn(Ht)}),fr=rf(function(Ht,Dt){var Ft=$e.filter(function(Se){return Se!==Ht});if(Dt)Ft.push(Ht);else if(dt!=="inline"){var mt=Xe(Ht);Ft=Ft.filter(function(Se){return!mt.has(Se)})}Uo($e,Ft,!0)||Re(Ft,!0)}),jr=function(Dt,Ft){var mt=Ft??!$e.includes(Dt);fr(Dt,mt)},yr=hue(dt,Xt,De,Fe,Ee,ot,Qe,Jt,jr,se);l.useEffect(function(){Pe(!0)},[]);var Wn=l.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:he}},[de,he]),Wt=dt!=="horizontal"||C?ue:ue.map(function(Ht,Dt){return l.createElement(Cp,{key:Ht.key,overflowDisabled:Dt>ft},Ht)}),Lt=l.createElement(Bo,ve({id:m,ref:Ee,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:pg,className:ne(i,"".concat(i,"-root"),"".concat(i,"-").concat(dt),u,(r={},V(r,"".concat(i,"-inline-collapsed"),rt),V(r,"".concat(i,"-rtl"),De),r),s),dir:v,style:c,role:"menu",tabIndex:f,data:Wt,renderRawItem:function(Dt){return Dt},renderRawRest:function(Dt){var Ft=Dt.length,mt=Ft?ue.slice(-Ft):null;return l.createElement(Zb,{eventKey:$T,title:oe,disabled:Ze,internalPopupClose:Ft===0,popupClassName:re},mt)},maxCount:dt!=="horizontal"||C?Bo.INVALIDATE:Bo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Dt){st(Dt)},onKeyDown:yr},pe));return l.createElement(u$.Provider,{value:Wn},l.createElement(lU.Provider,{value:Fe},l.createElement(Cp,{prefixCls:i,rootClassName:s,mode:dt,openKeys:$e,rtl:De,disabled:S,motion:_e?H:null,defaultMotions:_e?U:null,activeKey:Xt,onActive:Yt,onInactive:rn,selectedKeys:Nt,inlineIndent:z,subMenuOpenDelay:E,subMenuCloseDelay:R,forceSubMenuRender:T,builtinPlacements:Y,triggerSubMenuAction:W,getPopupContainer:q,itemIcon:te,expandIcon:ee,onItemClick:rr,onOpenChange:fr},l.createElement(pU.Provider,{value:pt},Lt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(dU.Provider,{value:qe},fe)))))}),ld=Uue;ld.Item=pg;ld.SubMenu=Zb;ld.ItemGroup=h$;ld.Divider=m$;var Vue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Wue=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Vue}))},Gue=l.forwardRef(Wue),que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Kue=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:que}))},xp=l.forwardRef(Kue);const Yue=e=>!isNaN(parseFloat(e))&&isFinite(e),yU=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Xue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Jb=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:g,breakpoint:v,onCollapse:m,onBreakpoint:h}=e,y=Xue(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=l.useContext(yU),[S,C]=l.useState("collapsed"in e?e.collapsed:i),[x,E]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const I=(P,A)=>{"collapsed"in e||C(P),m==null||m(P,A)},R=l.useRef();R.current=P=>{E(P.matches),h==null||h(P.matches),S!==P.matches&&I(P.matches,"responsive")},l.useEffect(()=>{function P(O){return R.current(O)}let A;if(typeof window<"u"){const{matchMedia:O}=window;if(O&&v&&v in nM){A=O(`screen and (max-width: ${nM[v]})`);try{A.addEventListener("change",P)}catch{A.addListener(P)}P(A)}}return()=>{try{A==null||A.removeEventListener("change",P)}catch{A==null||A.removeListener(P)}}},[v]),l.useEffect(()=>{const P=Zue("ant-sider-");return b.addSider(P),()=>b.removeSider(P)},[]);const T=()=>{I(!S,"clickTrigger")},{getPrefixCls:_}=l.useContext(it),$=()=>{const P=_("layout-sider",n),A=yn(y,["collapsed"]),O=S?p:f,k=Yue(O)?`${O}px`:String(O),N=parseFloat(String(p||0))===0?l.createElement("span",{onClick:T,className:ne(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${d?"right":"left"}`),style:g},a||l.createElement(Gue,null)):null,F={expanded:d?l.createElement(Hs,null):l.createElement(xp,null),collapsed:d?l.createElement(xp,null):l.createElement(Hs,null)}[S?"collapsed":"expanded"],j=a!==null?N||l.createElement("div",{className:`${P}-trigger`,onClick:T,style:{width:k}},a||F):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),z=ne(P,`${P}-${s}`,{[`${P}-collapsed`]:!!S,[`${P}-has-trigger`]:u&&a!==null&&!N,[`${P}-below`]:!!x,[`${P}-zero-width`]:parseFloat(k)===0},r);return l.createElement("aside",Object.assign({className:z},A,{style:B,ref:t}),l.createElement("div",{className:`${P}-children`},o),u||x&&N?j:null)},D=l.useMemo(()=>({siderCollapsed:S}),[S]);return l.createElement(Qb.Provider,{value:D},$())});var Que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Jue=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Que}))},v$=l.forwardRef(Jue);const Cv=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ede=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=ede(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(it),i=o("menu",t),s=ne({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(m$,Object.assign({className:s},a))},wU=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(Cv),p=b=>{const S=l.createElement("span",{className:`${s}-title-content`},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:g}=l.useContext(Qb);let v=o;typeof o>"u"?v=c?r:"":o===!1&&(v="");const m={title:v};!g&&!f&&(m.title=null,m.open=!1);const h=sr(r).length;let y=l.createElement(pg,Object.assign({},yn(e,["title","icon","danger"]),{className:ne({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(a?h+1:h)===1},n),title:typeof o=="string"?o:void 0}),ur(a,{className:ne(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p(f));return d||(y=l.createElement(tn,Object.assign({},m,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),y)),y};var tde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=tde(e,["children"]),a=l.useContext(xv),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=AJ(n),s=Qi(t,i?n.ref:null);return l.createElement(xv.Provider,{value:o},l.createElement(di,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),nde=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},sS(Bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dce=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:g,colorBgContainer:v,colorFillSecondary:m,colorBgContainerDisabled:h,colorTextDisabled:y}=e,b=s*2,S=r*2,C=Math.min(a-b,a-S),x=Math.min(o-b,o-S),E=Math.min(i-b,i-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:v,clearBg:v,singleItemHeightLG:i,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:x,multipleItemHeightLG:E,multipleSelectorBgDisabled:h,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},GH=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${G(a)} ${t.activeShadowColor}`,outline:0}}}},q3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},GH(e,t))}),fce=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},GH(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),q3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),q3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${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:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),qH=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},K3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qH(e,t))}),pce=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},qH(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),K3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),K3(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gce=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),mce=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},fce(e)),pce(e)),gce(e))}),hce=e=>{const{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"}}}},vce=e=>{const{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","-webkit-appearance":"none"}}}},bce=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},Xt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hce(e)),vce(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},vo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},vo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},td()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},yce=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},bce(e),uce(e),cce(e),ice(e),{[`${t}-rtl`]:{direction:"rtl"}},ag(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},KH=tn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Bt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yce(r),mce(r)]},dce,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Sce={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"},wce=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Sce}))},Wb=l.forwardRef(wce),Cce={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"},xce=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Cce}))},Gb=l.forwardRef(xce),Ece={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"},Ice=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Ece}))},o$=l.forwardRef(Ice);function i$(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const g=n??l.createElement(uc,null),v=b=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&b,s&&d);let m=null;if(t!==void 0)m=v(t);else if(o)m=v(l.createElement(Gi,{spin:!0}));else{const b=`${c}-suffix`;m=S=>{let{open:C,showSearch:x}=S;return v(C&&x?l.createElement(o$,{className:b}):l.createElement(Gb,{className:b}))}}let h=null;r!==void 0?h=r:i?h=l.createElement(Wb,null):h=null;let y=null;return a!==void 0?y=a:y=l.createElement(da,null),{clearIcon:g,suffixIcon:m,itemIcon:h,removeIcon:y}}function YH(e,t){return t!==void 0?t:e!==null}var Tce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:g,disabled:v,notFoundContent:m,status:h,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:S,direction:C,style:x,allowClear:E,variant:I,dropdownStyle:R,transitionName:T,tagRender:_,maxCount:$}=e,D=Tce(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"]),{getPopupContainer:P,getPrefixCls:A,renderEmpty:O,direction:k,virtual:N,popupMatchSelectWidth:M,popupOverflow:L,select:F}=l.useContext(ct),[,j]=Lr(),B=p??(j==null?void 0:j.controlHeight),z=A("select",r),H=A(),U=C??k,{compactSize:X,compactItemClassnames:W}=es(z,U),[Y,te]=dc("select",I,a),ee=Yn(z),[Z,oe,re]=KH(z,ee),q=l.useMemo(()=>{const{mode:Te}=e;if(Te!=="combobox")return Te===XH?"combobox":Te},[e.mode]),Q=q==="multiple"||q==="tags",ae=YH(e.suffixIcon,e.showArrow),se=(n=S??b)!==null&&n!==void 0?n:M,{status:de,hasFeedback:he,isFormItemInput:ye,feedbackIcon:pe}=l.useContext(Rr),J=nl(de,h);let ce;m!==void 0?ce=m:q==="combobox"?ce=null:ce=(O==null?void 0:O("Select"))||l.createElement(Vb,{componentName:"Select"});const{suffixIcon:ue,itemIcon:fe,removeIcon:be,clearIcon:Ee}=i$(Object.assign(Object.assign({},D),{multiple:Q,hasFeedback:he,feedbackIcon:pe,showSuffixIcon:ae,prefixCls:z,componentName:"Select"})),Re=E===!0?{clearIcon:Ee}:E,Fe=Sn(D,["suffixIcon","itemIcon"]),Ce=ne(c||u,{[`${z}-dropdown-${U}`]:U==="rtl"},i,re,ee,oe),ze=dr(Te=>{var me;return(me=g??X)!==null&&me!==void 0?me:Te}),Pe=l.useContext(Gr),Ae=v??Pe,Se=ne({[`${z}-lg`]:ze==="large",[`${z}-sm`]:ze==="small",[`${z}-rtl`]:U==="rtl",[`${z}-${Y}`]:te,[`${z}-in-form-item`]:ye},Yi(z,J,he),W,F==null?void 0:F.className,o,i,re,ee,oe),_e=l.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[we]=Ji("SelectLike",R==null?void 0:R.zIndex);return Z(l.createElement(a$,Object.assign({ref:t,virtual:N,showSearch:F==null?void 0:F.showSearch},Fe,{style:Object.assign(Object.assign({},F==null?void 0:F.style),x),dropdownMatchSelectWidth:se,transitionName:bo(H,"slide-up",T),builtinPlacements:UH(y,L),listHeight:d,listItemHeight:B,mode:q,prefixCls:z,placement:_e,direction:U,suffixIcon:ue,menuItemSelectedIcon:fe,removeIcon:be,allowClear:Re,notFoundContent:ce,className:Se,getPopupContainer:s||P,dropdownClassName:Ce,disabled:Ae,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:we}),maxCount:Q?$:void 0,tagRender:Q?_:void 0})))},br=l.forwardRef(Rce),_ce=ug(br);br.SECRET_COMBOBOX_MODE_DO_NOT_USE=XH;br.Option=r$;br.OptGroup=n$;br._InternalPanelDoNotUseOrYouWillBeFired=_ce;const Jl=["xxl","xl","lg","md","sm","xs"],$ce=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Oce=e=>{const t=e,n=[].concat(Jl).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function s$(){const[,e]=l.useReducer(t=>t+1,0);return e}function qb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=s$(),r=ZH();return Wt(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const Sv=e=>e?typeof e=="function"?e():e:null;function l$(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return l.createElement("div",{className:ne("".concat(n,"-content"),o),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Mc={shiftX:64,adjustY:1},Dc={adjustX:1,shiftY:!0},to=[0,0],Nce={left:{points:["cr","cl"],overflow:Dc,offset:[-4,0],targetOffset:to},right:{points:["cl","cr"],overflow:Dc,offset:[4,0],targetOffset:to},top:{points:["bc","tc"],overflow:Mc,offset:[0,-4],targetOffset:to},bottom:{points:["tc","bc"],overflow:Mc,offset:[0,4],targetOffset:to},topLeft:{points:["bl","tl"],overflow:Mc,offset:[0,-4],targetOffset:to},leftTop:{points:["tr","tl"],overflow:Dc,offset:[-4,0],targetOffset:to},topRight:{points:["br","tr"],overflow:Mc,offset:[0,-4],targetOffset:to},rightTop:{points:["tl","tr"],overflow:Dc,offset:[4,0],targetOffset:to},bottomRight:{points:["tr","br"],overflow:Mc,offset:[0,4],targetOffset:to},rightBottom:{points:["bl","br"],overflow:Dc,offset:[4,0],targetOffset:to},bottomLeft:{points:["tl","bl"],overflow:Mc,offset:[0,4],targetOffset:to},leftBottom:{points:["br","bl"],overflow:Dc,offset:[-4,0],targetOffset:to}},kce=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Ace=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,v=t.onVisibleChange,m=t.afterVisibleChange,h=t.transitionName,y=t.animation,b=t.motion,S=t.placement,C=S===void 0?"right":S,x=t.align,E=x===void 0?{}:x,I=t.destroyTooltipOnHide,R=I===void 0?!1:I,T=t.defaultVisible,_=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,P=t.id,A=t.showArrow,O=A===void 0?!0:A,k=xt(t,kce),N=l.useRef(null);l.useImperativeHandle(n,function(){return N.current});var M=K({},k);"visible"in t&&(M.popupVisible=t.visible);var L=function(){return l.createElement(l$,{key:"content",prefixCls:p,id:P,overlayInnerStyle:$},D)};return l.createElement(fg,ve({popupClassName:r,prefixCls:p,popup:L,action:o,builtinPlacements:Nce,popupPlacement:C,ref:N,popupAlign:E,getPopupContainer:_,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:h,popupAnimation:y,popupMotion:b,defaultPopupVisible:T,autoDestroy:R,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:O},M),g)};const Mce=l.forwardRef(Ace);function Kb(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,p=d,g=2*a-s,v=c,m=2*a-o,h=i,y=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),S=`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,C=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${g} ${v} A ${r} ${r} 0 0 0 ${m} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:S}}const QH=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},JH=8;function Yb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?JH:r}}function ym(e,t){return e?t:{}}function c$(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},QH(e,t,a)),{"&:before":{background:t}})]},ym(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ym(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ym(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),ym(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Dce(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Y3={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"]}},Pce={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"]}},Lce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function eU(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(Y3).forEach(u=>{const d=r&&Pce[u]||Y3[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,Lce.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const p=Yb({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal+s;break}f.overflow=Dce(u,p,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const Fce=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${G(e.calc(u).div(2).equal())} ${G(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,JH)}},[`${t}-content`]:{position:"relative"}}),a9(e,(f,p)=>{let{darkColor:g}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},c$(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jce=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Yb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Kb(Bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),tU=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return tn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=Bt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Fce(s),lg(r,"zoom-big-fast")]},jce,{resetStyle:!1,injectStyle:t})(e)},Bce=bp.map(e=>`${e}-inverse`),zce=["success","processing","error","default","warning"];function nU(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Oe(Bce),Oe(bp)).includes(e):bp.includes(e)}function Hce(e){return zce.includes(e)}function rU(e,t){const n=nU(t),r=ne({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const Uce=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(ct),c=s("tooltip",t),[u,d,f]=tU(c),p=rU(c,o),g=p.arrowStyle,v=Object.assign(Object.assign({},i),p.overlayStyle),m=ne(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(l.createElement("div",{className:m,style:g},l.createElement("div",{className:`${c}-arrow`}),l.createElement(l$,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:v}),a)))};var Vce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:v=!0,title:m,overlay:h,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:S=!0}=e,C=!!v,[,x]=Lr(),{getPopupContainer:E,getPrefixCls:I,direction:R}=l.useContext(ct),T=Js(),_=l.useRef(null),$=()=>{var ce;(ce=_.current)===null||ce===void 0||ce.forceAlign()};l.useImperativeHandle(t,()=>{var ce;return{forceAlign:$,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:(ce=_.current)===null||ce===void 0?void 0:ce.nativeElement}});const[D,P]=on(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!m&&!h&&m!==0,O=ce=>{var ue,fe;P(A?!1:ce),A||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,ce),(fe=e.onVisibleChange)===null||fe===void 0||fe.call(e,ce))},k=l.useMemo(()=>{var ce,ue;let fe=b;return typeof v=="object"&&(fe=(ue=(ce=v.pointAtCenter)!==null&&ce!==void 0?ce:v.arrowPointAtCenter)!==null&&ue!==void 0?ue:b),y||eU({arrowPointAtCenter:fe,autoAdjustOverflow:S,arrowWidth:C?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[b,v,y,x]),N=l.useMemo(()=>m===0?m:h||m||"",[h,m]),M=l.createElement(fi,{space:!0},typeof N=="function"?N():N),{getPopupContainer:L,placement:F="top",mouseEnterDelay:j=.1,mouseLeaveDelay:B=.1,overlayStyle:z,rootClassName:H}=e,U=Vce(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=I("tooltip",a),W=I(),Y=e["data-popover-inject"];let te=D;!("open"in e)&&!("visible"in e)&&A&&(te=!1);const ee=l.isValidElement(d)&&!x9(d)?d:l.createElement("span",null,d),Z=ee.props,oe=!Z.className||typeof Z.className=="string"?ne(Z.className,o||`${X}-open`):Z.className,[re,q,Q]=tU(X,!Y),ae=rU(X,c),se=ae.arrowStyle,de=Object.assign(Object.assign({},u),ae.overlayStyle),he=ne(s,{[`${X}-rtl`]:R==="rtl"},ae.className,H,q,Q),[ye,pe]=Ji("Tooltip",U.zIndex),J=l.createElement(Mce,Object.assign({},U,{zIndex:ye,showArrow:C,placement:F,mouseEnterDelay:j,mouseLeaveDelay:B,prefixCls:X,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},se),z),getTooltipContainer:L||i||E,ref:_,builtinPlacements:k,overlay:M,visible:te,onVisibleChange:O,afterVisibleChange:f??p,overlayInnerStyle:de,arrowContent:l.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:bo(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),te?ur(ee,{className:oe}):ee);return re(l.createElement(tg.Provider,{value:pe},J))}),en=Wce;en._InternalPanelDoNotUseOrYouWillBeFired=Uce;const Gce=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:p,titleBorderBottom:g,innerContentPadding:v,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Xt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a,borderBottom:g,padding:m},[`${t}-inner-content`]:{color:n,padding:v}})},c$(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},qce=e=>{const{componentCls:t}=e;return{[t]:bp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Kce=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,p=n-r,g=p/2,v=p/2-t,m=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Kb(e)),Yb({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${m}px ${v}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${m}px`:0})},aU=tn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Bt(e,{popoverBg:t,popoverColor:n});return[Gce(r),qce(r),lg(r,"zoom-big")]},Kce,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Yce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},t),n&&l.createElement("div",{className:`${r}-inner-content`},n))},Xce=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:s,children:c}=e,u=Sv(i),d=Sv(s),f=ne(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return l.createElement("div",{className:f,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(l$,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(oU,{prefixCls:n,title:u,content:d})))},Zce=e=>{const{prefixCls:t,className:n}=e,r=Yce(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(ct),o=a("popover",t),[i,s,c]=aU(o);return i(l.createElement(Xce,Object.assign({},r,{prefixCls:o,hashId:s,className:ne(n,c)})))};var Qce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:g,overlayStyle:v={}}=e,m=Qce(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=l.useContext(ct),y=h("popover",a),[b,S,C]=aU(y),x=h(),E=ne(s,S,C),[I,R]=on(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=(A,O)=>{R(A,!0),g==null||g(A,O)},_=A=>{A.keyCode===De.ESC&&T(!1,A)},$=A=>{T(A)},D=Sv(o),P=Sv(i);return b(l.createElement(en,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:v},m,{prefixCls:y,overlayClassName:E,ref:t,open:I,onOpenChange:$,overlay:D||P?l.createElement(oU,{prefixCls:y,title:D,content:P}):null,transitionName:bo(x,"zoom-big",m.transitionName),"data-popover-inject":!0}),ur(d,{onKeyDown:A=>{var O,k;l.isValidElement(d)&&((k=d==null?void 0:(O=d.props).onKeyDown)===null||k===void 0||k.call(O,A)),_(A)}})))}),iU=Jce;iU._InternalPanelDoNotUseOrYouWillBeFired=Zce;var eue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},tue=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:eue}))},Hs=l.forwardRef(tue),nue=De.ESC,rue=De.TAB;function aue(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case nue:s();break;case rue:{var p=!1;i.current||(p=c()),p?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&jt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var oue=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Pr(t,o==null?void 0:o.ref);return le.createElement(le.Fragment,null,r&&le.createElement("div",{className:"".concat(a,"-arrow")}),le.cloneElement(o,{ref:Ho(o)?i:void 0}))}),Pc={adjustX:1,adjustY:1},Lc=[0,0],iue={topLeft:{points:["bl","tl"],overflow:Pc,offset:[0,-4],targetOffset:Lc},top:{points:["bc","tc"],overflow:Pc,offset:[0,-4],targetOffset:Lc},topRight:{points:["br","tr"],overflow:Pc,offset:[0,-4],targetOffset:Lc},bottomLeft:{points:["tl","bl"],overflow:Pc,offset:[0,4],targetOffset:Lc},bottom:{points:["tc","bc"],overflow:Pc,offset:[0,4],targetOffset:Lc},bottomRight:{points:["tr","br"],overflow:Pc,offset:[0,4],targetOffset:Lc}},sue=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function lue(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,g=p===void 0?iue:p,v=e.getPopupContainer,m=e.showAction,h=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,S=e.visible,C=e.trigger,x=C===void 0?["hover"]:C,E=e.autoFocus,I=e.overlay,R=e.children,T=e.onVisibleChange,_=xt(e,sue),$=le.useState(),D=ie($,2),P=D[0],A=D[1],O="visible"in e?S:P,k=le.useRef(null),N=le.useRef(null),M=le.useRef(null);le.useImperativeHandle(t,function(){return k.current});var L=function(Y){A(Y),T==null||T(Y)};aue({visible:O,triggerRef:M,onVisibleChange:L,autoFocus:E,overlayRef:N});var F=function(Y){var te=e.onOverlayClick;A(!1),te&&te(Y)},j=function(){return le.createElement(oue,{ref:N,overlay:I,prefixCls:i,arrow:a})},B=function(){return typeof I=="function"?j:j()},z=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!te},H=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(i,"-open")},U=le.cloneElement(R,{className:ne((n=R.props)===null||n===void 0?void 0:n.className,O&&H()),ref:Ho(R)?Pr(M,R.ref):void 0}),X=h;return!X&&x.indexOf("contextMenu")!==-1&&(X=["click"]),le.createElement(fg,ve({builtinPlacements:g},_,{prefixCls:i,ref:k,popupClassName:ne(y,V({},"".concat(i,"-show-arrow"),a)),popupStyle:b,action:x,showAction:m,hideAction:X,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:O,stretch:z()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:F,getPopupContainer:v}),U)}const sU=le.forwardRef(lue);var lU=l.createContext(null);function cU(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function uU(e){var t=l.useContext(lU);return cU(t,e)}var cue=["children","locked"],Wo=l.createContext(null);function uue(e,t){var n=K({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Cp(e){var t=e.children,n=e.locked,r=xt(e,cue),a=l.useContext(Wo),o=Qs(function(){return uue(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!Uo(i[1],s[1],!0))});return l.createElement(Wo.Provider,{value:o},t)}var due=[],dU=l.createContext(null);function Xb(){return l.useContext(dU)}var fU=l.createContext(due);function sd(e){var t=l.useContext(fU);return l.useMemo(function(){return e!==void 0?[].concat(Oe(t),[e]):t},[t,e])}var pU=l.createContext(null),u$=l.createContext({});function X3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ad(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function fue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Oe(e.querySelectorAll("*")).filter(function(r){return X3(r,t)});return X3(e,t)&&n.unshift(e),n}var IT=De.LEFT,TT=De.RIGHT,RT=De.UP,xh=De.DOWN,Eh=De.ENTER,gU=De.ESC,zd=De.HOME,Hd=De.END,Z3=[RT,xh,IT,TT];function pue(e,t,n,r){var a,o,i,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===Eh)return{inlineTrigger:!0};var p=(a={},V(a,RT,c),V(a,xh,u),a),g=(o={},V(o,IT,n?u:c),V(o,TT,n?c:u),V(o,xh,d),V(o,Eh,d),o),v=(i={},V(i,RT,c),V(i,xh,u),V(i,Eh,d),V(i,gU,f),V(i,IT,n?d:f),V(i,TT,n?f:d),i),m={inline:p,horizontal:g,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v},h=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(h){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function gue(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function mue(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function d$(e,t){var n=fue(e,!0);return n.filter(function(r){return t.has(r)})}function Q3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=d$(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var _T=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(cU(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function hue(e,t,n,r,a,o,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var p=function(){jt.cancel(d.current)};return l.useEffect(function(){return function(){p()}},[]),function(g){var v=g.which;if([].concat(Z3,[Eh,gU,zd,Hd]).includes(v)){var m=o(),h=_T(m,r),y=h,b=y.elements,S=y.key2element,C=y.element2key,x=S.get(t),E=mue(x,b),I=C.get(E),R=pue(e,i(I,!0).length===1,n,v);if(!R&&v!==zd&&v!==Hd)return;(Z3.includes(v)||[zd,Hd].includes(v))&&g.preventDefault();var T=function(N){if(N){var M=N,L=N.querySelector("a");L!=null&&L.getAttribute("href")&&(M=L);var F=C.get(N);s(F),p(),d.current=jt(function(){f.current===F&&M.focus()})}};if([zd,Hd].includes(v)||R.sibling||!E){var _;!E||e==="inline"?_=a.current:_=gue(E);var $,D=d$(_,b);v===zd?$=D[0]:v===Hd?$=D[D.length-1]:$=Q3(_,b,E,R.offset),T($)}else if(R.inlineTrigger)c(I);else if(R.offset>0)c(I,!0),p(),d.current=jt(function(){h=_T(m,r);var k=E.getAttribute("aria-controls"),N=document.getElementById(k),M=Q3(N,h.elements);T(M)},5);else if(R.offset<0){var P=i(I,!0),A=P[P.length-2],O=S.get(A);c(A,!1),T(O)}}u==null||u(g)}}function vue(e){Promise.resolve().then(e)}var f$="__RC_UTIL_PATH_SPLIT__",J3=function(t){return t.join(f$)},bue=function(t){return t.split(f$)},$T="rc-menu-more";function yue(){var e=l.useState({}),t=ie(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),i=ie(o,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},p=l.useCallback(function(S,C){var x=J3(C);a.current.set(x,S),r.current.set(S,x),u.current+=1;var E=u.current;vue(function(){E===u.current&&f()})},[]),g=l.useCallback(function(S,C){var x=J3(C);a.current.delete(x),r.current.delete(S)},[]),v=l.useCallback(function(S){c(S)},[]),m=l.useCallback(function(S,C){var x=r.current.get(S)||"",E=bue(x);return C&&s.includes(E[0])&&E.unshift($T),E},[s]),h=l.useCallback(function(S,C){return S.filter(function(x){return x!==void 0}).some(function(x){var E=m(x,!0);return E.includes(C)})},[m]),y=function(){var C=Oe(r.current.keys());return s.length&&C.push($T),C},b=l.useCallback(function(S){var C="".concat(r.current.get(S)).concat(f$),x=new Set;return Oe(a.current.keys()).forEach(function(E){E.startsWith(C)&&x.add(a.current.get(E))}),x},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:h,getKeyPath:m,getKeys:y,getSubPathKeys:b}}function rf(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(b.motionAppear=!1);var S=b.onVisibleChanged;return b.onVisibleChanged=function(C){return!p.current&&!C&&h(!0),S==null?void 0:S(C)},m?null:l.createElement(Cp,{mode:o,locked:!p.current},l.createElement(qr,ve({visible:y},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var x=C.className,E=C.style;return l.createElement(p$,{id:t,className:x,style:E},a)}))}var Pue=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Lue=["active"],Fue=l.forwardRef(function(e,t){var n,r=e.style,a=e.className,o=e.title,i=e.eventKey;e.warnKey;var s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,g=e.popupOffset,v=e.popupStyle,m=e.onClick,h=e.onMouseEnter,y=e.onMouseLeave,b=e.onTitleClick,S=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=xt(e,Pue),E=uU(i),I=l.useContext(Wo),R=I.prefixCls,T=I.mode,_=I.openKeys,$=I.disabled,D=I.overflowDisabled,P=I.activeKey,A=I.selectedKeys,O=I.itemIcon,k=I.expandIcon,N=I.onItemClick,M=I.onOpenChange,L=I.onActive,F=l.useContext(u$),j=F._internalRenderSubMenuItem,B=l.useContext(pU),z=B.isSubPathKey,H=sd(),U="".concat(R,"-submenu"),X=$||s,W=l.useRef(),Y=l.useRef(),te=d??O,ee=f??k,Z=_.includes(i),oe=!D&&Z,re=z(A,i),q=mU(i,X,S,C),Q=q.active,ae=xt(q,Lue),se=l.useState(!1),de=ie(se,2),he=de[0],ye=de[1],pe=function(we){X||ye(we)},J=function(we){pe(!0),h==null||h({key:i,domEvent:we})},ce=function(we){pe(!1),y==null||y({key:i,domEvent:we})},ue=l.useMemo(function(){return Q||(T!=="inline"?he||z([P],i):!1)},[T,Q,P,he,i,z]),fe=hU(H.length),be=function(we){X||(b==null||b({key:i,domEvent:we}),T==="inline"&&M(i,!Z))},Ee=rf(function(_e){m==null||m(wv(_e)),N(_e)}),Re=function(we){T!=="inline"&&M(i,we)},Fe=function(){L(i)},Ce=E&&"".concat(E,"-popup"),ze=l.createElement("div",ve({role:"menuitem",style:fe,className:"".concat(U,"-title"),tabIndex:X?null:-1,ref:W,title:typeof o=="string"?o:null,"data-menu-id":D&&E?null:E,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":X,onClick:be,onFocus:Fe},ae),o,l.createElement(vU,{icon:T!=="horizontal"?ee:void 0,props:K(K({},e),{},{isOpen:oe,isSubMenu:!0})},l.createElement("i",{className:"".concat(U,"-arrow")}))),Pe=l.useRef(T);if(T!=="inline"&&H.length>1?Pe.current="vertical":Pe.current=T,!D){var Ae=Pe.current;ze=l.createElement(Mue,{mode:Ae,prefixCls:U,visible:!c&&oe&&T!=="inline",popupClassName:p,popupOffset:g,popupStyle:v,popup:l.createElement(Cp,{mode:Ae==="horizontal"?"vertical":Ae},l.createElement(p$,{id:Ce,ref:Y},u)),disabled:X,onVisibleChange:Re},ze)}var Se=l.createElement(Bo.Item,ve({ref:t,role:"none"},x,{component:"li",style:r,className:ne(U,"".concat(U,"-").concat(T),a,(n={},V(n,"".concat(U,"-open"),oe),V(n,"".concat(U,"-active"),ue),V(n,"".concat(U,"-selected"),re),V(n,"".concat(U,"-disabled"),X),n)),onMouseEnter:J,onMouseLeave:ce}),ze,!D&&l.createElement(Due,{id:Ce,open:oe,keyPath:H},u));return j&&(Se=j(Se,e,{selected:re,active:ue,open:oe,disabled:X})),l.createElement(Cp,{onItemClick:Ee,mode:T==="horizontal"?"vertical":T,itemIcon:te,expandIcon:ee},Se)}),Zb=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=sd(n),o=g$(r,a),i=Xb();l.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=l.createElement(Fue,ve({ref:t},e),o),l.createElement(fU.Provider,{value:a},s)});function m$(e){var t=e.className,n=e.style,r=l.useContext(Wo),a=r.prefixCls,o=Xb();return o?null:l.createElement("li",{role:"separator",className:ne("".concat(a,"-item-divider"),t),style:n})}var jue=["className","title","eventKey","children"],Bue=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=xt(e,jue),i=l.useContext(Wo),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",ve({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:ne(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),h$=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=sd(n),o=g$(r,a),i=Xb();return i?o:l.createElement(Bue,ve({ref:t},Sn(e,["warnKey"])),o)}),zue=["label","children","key","type"];function OT(e,t){var n=t.item,r=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&mt(i)==="object"){var c=i,u=c.label,d=c.children,f=c.key,p=c.type,g=xt(c,zue),v=f??"tmp-".concat(s);return d||p==="group"?p==="group"?l.createElement(r,ve({key:v},g,{title:u}),OT(d,t)):l.createElement(a,ve({key:v},g,{title:u}),OT(d,t)):p==="divider"?l.createElement(o,ve({key:v},g)):l.createElement(n,ve({key:v},g),u)}return null}).filter(function(i){return i})}function tM(e,t,n,r){var a=e,o=K({divider:m$,item:pg,group:h$,submenu:Zb},r);return t&&(a=OT(t,o)),g$(a,n)}var Hue=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ul=[],Uue=l.forwardRef(function(e,t){var n,r,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,c=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,p=a.items,g=a.children,v=a.direction,m=a.id,h=a.mode,y=h===void 0?"vertical":h,b=a.inlineCollapsed,S=a.disabled,C=a.disabledOverflow,x=a.subMenuOpenDelay,E=x===void 0?.1:x,I=a.subMenuCloseDelay,R=I===void 0?.1:I,T=a.forceSubMenuRender,_=a.defaultOpenKeys,$=a.openKeys,D=a.activeKey,P=a.defaultActiveFirst,A=a.selectable,O=A===void 0?!0:A,k=a.multiple,N=k===void 0?!1:k,M=a.defaultSelectedKeys,L=a.selectedKeys,F=a.onSelect,j=a.onDeselect,B=a.inlineIndent,z=B===void 0?24:B,H=a.motion,U=a.defaultMotions,X=a.triggerSubMenuAction,W=X===void 0?"hover":X,Y=a.builtinPlacements,te=a.itemIcon,ee=a.expandIcon,Z=a.overflowedIndicator,oe=Z===void 0?"...":Z,re=a.overflowedIndicatorPopupClassName,q=a.getPopupContainer,Q=a.onClick,ae=a.onOpenChange,se=a.onKeyDown;a.openAnimation,a.openTransitionName;var de=a._internalRenderMenuItem,he=a._internalRenderSubMenuItem,ye=a._internalComponents,pe=xt(a,Hue),J=l.useMemo(function(){return[tM(g,p,ul,ye),tM(g,p,ul,{})]},[g,p,ye]),ce=ie(J,2),ue=ce[0],fe=ce[1],be=l.useState(!1),Ee=ie(be,2),Re=Ee[0],Fe=Ee[1],Ce=l.useRef(),ze=wue(m),Pe=v==="rtl",Ae=on(_,{value:$,postState:function(Lt){return Lt||ul}}),Se=ie(Ae,2),_e=Se[0],we=Se[1],Te=function(Lt){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vt(){we(Lt),ae==null||ae(Lt)}Mt?xr.flushSync(vt):vt()},me=l.useState(_e),xe=ie(me,2),Be=xe[0],ke=xe[1],Ne=l.useRef(!1),He=l.useMemo(function(){return(y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1]},[y,b]),Ge=ie(He,2),je=Ge[0],qe=Ge[1],tt=je==="inline",Ye=l.useState(je),ft=ie(Ye,2),ht=ft[0],Ue=ft[1],We=l.useState(qe),Ke=ie(We,2),st=Ke[0],Tt=Ke[1];l.useEffect(function(){Ue(je),Tt(qe),Ne.current&&(tt?we(Be):Te(ul))},[je,qe]);var Rt=l.useState(0),Ft=ie(Rt,2),pt=Ft[0],lt=Ft[1],Je=pt>=ue.length-1||ht!=="horizontal"||C;l.useEffect(function(){tt&&ke(_e)},[_e]),l.useEffect(function(){return Ne.current=!0,function(){Ne.current=!1}},[]);var ut=yue(),It=ut.registerPath,at=ut.unregisterPath,bt=ut.refreshOverflowKeys,yt=ut.isSubPathKey,et=ut.getKeyPath,ot=ut.getKeys,Qe=ut.getSubPathKeys,Xe=l.useMemo(function(){return{registerPath:It,unregisterPath:at}},[It,at]),gt=l.useMemo(function(){return{isSubPathKey:yt}},[yt]);l.useEffect(function(){bt(Je?ul:ue.slice(pt+1).map(function(Ut){return Ut.key}))},[pt,Je]);var Et=on(D||P&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:D}),$t=ie(Et,2),qt=$t[0],Zt=$t[1],Kt=rf(function(Ut){Zt(Ut)}),Qt=rf(function(){Zt(void 0)});l.useImperativeHandle(t,function(){return{list:Ce.current,focus:function(Lt){var Mt,vt=ot(),St=_T(vt,ze),nn=St.elements,vn=St.key2element,bn=St.element2key,$e=d$(Ce.current,nn),Ie=qt??($e[0]?bn.get($e[0]):(Mt=ue.find(function(Le){return!Le.props.disabled}))===null||Mt===void 0?void 0:Mt.key),Me=vn.get(Ie);if(Ie&&Me){var Ze;Me==null||(Ze=Me.focus)===null||Ze===void 0||Ze.call(Me,Lt)}}}});var wt=on(M||[],{value:L,postState:function(Lt){return Array.isArray(Lt)?Lt:Lt==null?ul:[Lt]}}),Ct=ie(wt,2),Ot=Ct[0],mn=Ct[1],Bn=function(Lt){if(O){var Mt=Lt.key,vt=Ot.includes(Mt),St;N?vt?St=Ot.filter(function(vn){return vn!==Mt}):St=[].concat(Oe(Ot),[Mt]):St=[Mt],mn(St);var nn=K(K({},Lt),{},{selectedKeys:St});vt?j==null||j(nn):F==null||F(nn)}!N&&_e.length&&ht!=="inline"&&Te(ul)},sr=rf(function(Ut){Q==null||Q(wv(Ut)),Bn(Ut)}),fr=rf(function(Ut,Lt){var Mt=_e.filter(function(St){return St!==Ut});if(Lt)Mt.push(Ut);else if(ht!=="inline"){var vt=Qe(Ut);Mt=Mt.filter(function(St){return!vt.has(St)})}Uo(_e,Mt,!0)||Te(Mt,!0)}),jr=function(Lt,Mt){var vt=Mt??!_e.includes(Lt);fr(Lt,vt)},yr=hue(ht,qt,Pe,ze,Ce,ot,et,Zt,jr,se);l.useEffect(function(){Fe(!0)},[]);var zn=l.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:he}},[de,he]),Vt=ht!=="horizontal"||C?ue:ue.map(function(Ut,Lt){return l.createElement(Cp,{key:Ut.key,overflowDisabled:Lt>pt},Ut)}),Pt=l.createElement(Bo,ve({id:m,ref:Ce,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:pg,className:ne(i,"".concat(i,"-root"),"".concat(i,"-").concat(ht),u,(r={},V(r,"".concat(i,"-inline-collapsed"),st),V(r,"".concat(i,"-rtl"),Pe),r),s),dir:v,style:c,role:"menu",tabIndex:f,data:Vt,renderRawItem:function(Lt){return Lt},renderRawRest:function(Lt){var Mt=Lt.length,vt=Mt?ue.slice(-Mt):null;return l.createElement(Zb,{eventKey:$T,title:oe,disabled:Je,internalPopupClose:Mt===0,popupClassName:re},vt)},maxCount:ht!=="horizontal"||C?Bo.INVALIDATE:Bo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Lt){lt(Lt)},onKeyDown:yr},pe));return l.createElement(u$.Provider,{value:zn},l.createElement(lU.Provider,{value:ze},l.createElement(Cp,{prefixCls:i,rootClassName:s,mode:ht,openKeys:_e,rtl:Pe,disabled:S,motion:Re?H:null,defaultMotions:Re?U:null,activeKey:qt,onActive:Kt,onInactive:Qt,selectedKeys:Ot,inlineIndent:z,subMenuOpenDelay:E,subMenuCloseDelay:R,forceSubMenuRender:T,builtinPlacements:Y,triggerSubMenuAction:W,getPopupContainer:q,itemIcon:te,expandIcon:ee,onItemClick:sr,onOpenChange:fr},l.createElement(pU.Provider,{value:gt},Pt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(dU.Provider,{value:Xe},fe)))))}),ld=Uue;ld.Item=pg;ld.SubMenu=Zb;ld.ItemGroup=h$;ld.Divider=m$;var Vue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Wue=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Vue}))},Gue=l.forwardRef(Wue),que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Kue=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:que}))},xp=l.forwardRef(Kue);const Yue=e=>!isNaN(parseFloat(e))&&isFinite(e),yU=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Xue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Jb=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:g,breakpoint:v,onCollapse:m,onBreakpoint:h}=e,y=Xue(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=l.useContext(yU),[S,C]=l.useState("collapsed"in e?e.collapsed:i),[x,E]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const I=(P,A)=>{"collapsed"in e||C(P),m==null||m(P,A)},R=l.useRef();R.current=P=>{E(P.matches),h==null||h(P.matches),S!==P.matches&&I(P.matches,"responsive")},l.useEffect(()=>{function P(O){return R.current(O)}let A;if(typeof window<"u"){const{matchMedia:O}=window;if(O&&v&&v in nM){A=O(`screen and (max-width: ${nM[v]})`);try{A.addEventListener("change",P)}catch{A.addListener(P)}P(A)}}return()=>{try{A==null||A.removeEventListener("change",P)}catch{A==null||A.removeListener(P)}}},[v]),l.useEffect(()=>{const P=Zue("ant-sider-");return b.addSider(P),()=>b.removeSider(P)},[]);const T=()=>{I(!S,"clickTrigger")},{getPrefixCls:_}=l.useContext(ct),$=()=>{const P=_("layout-sider",n),A=Sn(y,["collapsed"]),O=S?p:f,k=Yue(O)?`${O}px`:String(O),N=parseFloat(String(p||0))===0?l.createElement("span",{onClick:T,className:ne(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${d?"right":"left"}`),style:g},a||l.createElement(Gue,null)):null,F={expanded:d?l.createElement(Hs,null):l.createElement(xp,null),collapsed:d?l.createElement(xp,null):l.createElement(Hs,null)}[S?"collapsed":"expanded"],j=a!==null?N||l.createElement("div",{className:`${P}-trigger`,onClick:T,style:{width:k}},a||F):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),z=ne(P,`${P}-${s}`,{[`${P}-collapsed`]:!!S,[`${P}-has-trigger`]:u&&a!==null&&!N,[`${P}-below`]:!!x,[`${P}-zero-width`]:parseFloat(k)===0},r);return l.createElement("aside",Object.assign({className:z},A,{style:B,ref:t}),l.createElement("div",{className:`${P}-children`},o),u||x&&N?j:null)},D=l.useMemo(()=>({siderCollapsed:S}),[S]);return l.createElement(Qb.Provider,{value:D},$())});var Que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Jue=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Que}))},v$=l.forwardRef(Jue);const Cv=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ede=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=ede(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(ct),i=o("menu",t),s=ne({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(m$,Object.assign({className:s},a))},wU=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(Cv),p=b=>{const S=l.createElement("span",{className:`${s}-title-content`},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:g}=l.useContext(Qb);let v=o;typeof o>"u"?v=c?r:"":o===!1&&(v="");const m={title:v};!g&&!f&&(m.title=null,m.open=!1);const h=ir(r).length;let y=l.createElement(pg,Object.assign({},Sn(e,["title","icon","danger"]),{className:ne({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(a?h+1:h)===1},n),title:typeof o=="string"?o:void 0}),ur(a,{className:ne(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p(f));return d||(y=l.createElement(en,Object.assign({},m,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),y)),y};var tde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=tde(e,["children"]),a=l.useContext(xv),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=AJ(n),s=Qi(t,i?n.ref:null);return l.createElement(xv.Provider,{value:o},l.createElement(fi,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),nde=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},rde=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${G(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(n)})`}}}}},rM=e=>Object.assign({},Wi(e)),aM=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:o,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:v,itemPaddingInline:m,motionDurationMid:h,itemHoverColor:y,lineType:b,colorSplit:S,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:R,dangerItemSelectedBg:T,popupBg:_,itemHoverBg:$,itemActiveBg:D,menuSubMenuBg:P,horizontalItemSelectedColor:A,horizontalItemSelectedBg:O,horizontalItemBorderRadius:k,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},rM(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},rM(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:R}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${G(u)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(f)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${v}`,`opacity ${h} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(",")}}}}}},oM=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:s,itemWidth:c}=e,u=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:a,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item, @@ -249,8 +249,8 @@ html body { > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G(e.calc(f).div(2).equal())} - ${G(d)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:G(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},vo),{paddingInline:g})}}]},iM=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},td()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},sM=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(i)})`}}}}},ode=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:m,lineType:h,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},Vo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),Vo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${G(s)} ${G(c)}`,fontSize:b,lineHeight:y,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:h,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),iM(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},iM(e)),sM(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),sM(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(m)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ide=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:v,controlItemBgActive:m,colorBgTextHover:h,controlHeightLG:y,lineHeight:b,colorBgElevated:S,marginXXS:C,padding:x,fontSize:E,controlHeightSM:I,fontSizeLG:R,colorTextLightSolid:T,colorErrorHover:_}=e,$=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,P=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new un(T).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:D,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:S,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:I-E,collapsedIconSize:R,groupTitleFontSize:E,darkItemDisabledColor:new un(T).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${D}px)`:`calc(100% - ${P*2}px)`}},sde=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return nn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:m,darkGroupTitleColor:h,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:x,popupBg:E,darkPopupBg:I}=a,R=a.calc(s).div(7).mul(5).equal(),T=zt(a,{menuArrowSize:R,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(R).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),_=zt(T,{itemColor:c,itemHoverColor:y,groupTitleColor:h,itemSelectedColor:p,itemBg:d,popupBg:I,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:x,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:g});return[ode(T),nde(T),ade(T),aM(T,"light"),aM(_,"dark"),rde(T),sg(T),fi(T,"slide-up"),fi(T,"slide-down"),lg(T,"zoom-big")]},ide,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},xU=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=l.useContext(Cv),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=sd();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${s}-title-content`},a);else{const v=l.isValidElement(a)&&a.type==="span";f=l.createElement(l.Fragment,null,ur(r,{className:ne(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),v?a:l.createElement("span",{className:`${s}-title-content`},a))}const p=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=Ji("Menu");return l.createElement(Cv.Provider,{value:p},l.createElement(Zb,Object.assign({},yn(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${o||u}`),popupStyle:{zIndex:g}})))};var lde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=l.useContext(xv),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:c}=l.useContext(it),u=o(),{prefixCls:d,className:f,style:p,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:h,siderCollapsed:y,rootClassName:b,mode:S,selectable:C,onClick:x,overflowedIndicatorPopupClassName:E}=e,I=lde(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=yn(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:S});const T=Ut(function(){var B;x==null||x.apply(void 0,arguments),(B=a.onClick)===null||B===void 0||B.call(a)}),_=a.mode||S,$=C??a.selectable,D=l.useMemo(()=>y!==void 0?y:h,[h,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:ju(u),other:{motionName:`${u}-zoom-big`}},A=o("menu",d||a.prefixCls),O=Yn(A),[k,N,M]=sde(A,O,!r),L=ne(`${A}-${g}`,c==null?void 0:c.className,f),F=l.useMemo(()=>{var B,z;if(typeof v=="function"||lS(v))return v||null;if(typeof a.expandIcon=="function"||lS(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||lS(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const H=(B=v??(a==null?void 0:a.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return ur(H,{className:ne(`${A}-submenu-expand-icon`,l.isValidElement(H)?(z=H.props)===null||z===void 0?void 0:z.className:void 0)})},[v,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,A]),j=l.useMemo(()=>({prefixCls:A,inlineCollapsed:D||!1,direction:s,firstLevel:!0,theme:g,mode:_,disableMenuItemTitleTooltip:m}),[A,D,s,m,g]);return k(l.createElement(xv.Provider,{value:null},l.createElement(Cv.Provider,{value:j},l.createElement(ld,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(v$,null),overflowedIndicatorPopupClassName:ne(A,`${A}-${g}`,E),mode:_,selectable:$,onClick:T},R,{inlineCollapsed:D,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:L,prefixCls:A,direction:s,defaultMotions:P,expandIcon:F,ref:t,rootClassName:ne(b,N,a.rootClassName,M,O),_internalComponents:cde})))))}),pi=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Qb);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(ude,Object.assign({ref:n},e,r))});pi.Item=wU;pi.SubMenu=xU;pi.Divider=SU;pi.ItemGroup=h$;const dde=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},fde=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:G(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},vo),{paddingInline:g})}}]},iM=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},td()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},sM=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(i)})`}}}}},ode=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:m,lineType:h,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},Vo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),Vo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${G(s)} ${G(c)}`,fontSize:b,lineHeight:y,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:h,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),iM(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},iM(e)),sM(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),sM(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(m)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ide=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:v,controlItemBgActive:m,colorBgTextHover:h,controlHeightLG:y,lineHeight:b,colorBgElevated:S,marginXXS:C,padding:x,fontSize:E,controlHeightSM:I,fontSizeLG:R,colorTextLightSolid:T,colorErrorHover:_}=e,$=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,P=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new un(T).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:D,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:S,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:I-E,collapsedIconSize:R,groupTitleFontSize:E,darkItemDisabledColor:new un(T).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${D}px)`:`calc(100% - ${P*2}px)`}},sde=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return tn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:m,darkGroupTitleColor:h,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:x,popupBg:E,darkPopupBg:I}=a,R=a.calc(s).div(7).mul(5).equal(),T=Bt(a,{menuArrowSize:R,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(R).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),_=Bt(T,{itemColor:c,itemHoverColor:y,groupTitleColor:h,itemSelectedColor:p,itemBg:d,popupBg:I,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:x,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:g});return[ode(T),nde(T),ade(T),aM(T,"light"),aM(_,"dark"),rde(T),sg(T),pi(T,"slide-up"),pi(T,"slide-down"),lg(T,"zoom-big")]},ide,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},xU=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=l.useContext(Cv),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=sd();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${s}-title-content`},a);else{const v=l.isValidElement(a)&&a.type==="span";f=l.createElement(l.Fragment,null,ur(r,{className:ne(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),v?a:l.createElement("span",{className:`${s}-title-content`},a))}const p=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=Ji("Menu");return l.createElement(Cv.Provider,{value:p},l.createElement(Zb,Object.assign({},Sn(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${o||u}`),popupStyle:{zIndex:g}})))};var lde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=l.useContext(xv),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:c}=l.useContext(ct),u=o(),{prefixCls:d,className:f,style:p,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:h,siderCollapsed:y,rootClassName:b,mode:S,selectable:C,onClick:x,overflowedIndicatorPopupClassName:E}=e,I=lde(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=Sn(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:S});const T=zt(function(){var B;x==null||x.apply(void 0,arguments),(B=a.onClick)===null||B===void 0||B.call(a)}),_=a.mode||S,$=C??a.selectable,D=l.useMemo(()=>y!==void 0?y:h,[h,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:ju(u),other:{motionName:`${u}-zoom-big`}},A=o("menu",d||a.prefixCls),O=Yn(A),[k,N,M]=sde(A,O,!r),L=ne(`${A}-${g}`,c==null?void 0:c.className,f),F=l.useMemo(()=>{var B,z;if(typeof v=="function"||lS(v))return v||null;if(typeof a.expandIcon=="function"||lS(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||lS(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const H=(B=v??(a==null?void 0:a.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return ur(H,{className:ne(`${A}-submenu-expand-icon`,l.isValidElement(H)?(z=H.props)===null||z===void 0?void 0:z.className:void 0)})},[v,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,A]),j=l.useMemo(()=>({prefixCls:A,inlineCollapsed:D||!1,direction:s,firstLevel:!0,theme:g,mode:_,disableMenuItemTitleTooltip:m}),[A,D,s,m,g]);return k(l.createElement(xv.Provider,{value:null},l.createElement(Cv.Provider,{value:j},l.createElement(ld,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(v$,null),overflowedIndicatorPopupClassName:ne(A,`${A}-${g}`,E),mode:_,selectable:$,onClick:T},R,{inlineCollapsed:D,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:L,prefixCls:A,direction:s,defaultMotions:P,expandIcon:F,ref:t,rootClassName:ne(b,N,a.rootClassName,M,O),_internalComponents:cde})))))}),gi=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Qb);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(ude,Object.assign({ref:n},e,r))});gi.Item=wU;gi.SubMenu=xU;gi.Divider=SU;gi.ItemGroup=h$;const dde=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},fde=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, @@ -264,11 +264,11 @@ html body { &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Fb},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Bb}}},c$(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Qt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ui(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(v)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${G(u)} ${G(v)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ui(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[fi(e,"slide-up"),fi(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down"),lg(e,"zoom-big")]]},pde=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Yb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Kb(e)),gde=nn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=zt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[fde(o),dde(o)]},pde,{resetStyle:!1}),gg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:v,visible:m,onVisibleChange:h,mouseEnterDelay:y=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:S=!0,placement:C="",overlay:x,transitionName:E}=e,{getPopupContainer:I,getPrefixCls:R,direction:T,dropdown:_}=l.useContext(it);Js();const $=l.useMemo(()=>{const re=R();return E!==void 0?E:C.includes("top")?`${re}-slide-down`:`${re}-slide-up`},[R,C,E]),D=l.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:T==="rtl"?"bottomRight":"bottomLeft",[C,T]),P=R("dropdown",a),A=Yn(P),[O,k,N]=gde(P,A),[,M]=Lr(),L=l.Children.only(o),F=ur(L,{className:ne(`${P}-trigger`,{[`${P}-rtl`]:T==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),j=s?[]:i,B=!!(j!=null&&j.includes("contextMenu")),[z,H]=on(!1,{value:g??m}),U=Ut(re=>{v==null||v(re,{source:"trigger"}),h==null||h(re),H(re)}),X=ne(d,f,k,N,A,_==null?void 0:_.className,{[`${P}-rtl`]:T==="rtl"}),W=eU({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:M.marginXXS,arrowWidth:r?M.sizePopupArrow:0,borderRadius:M.borderRadius}),Y=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(v==null||v(!1,{source:"menu"}),H(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),te=()=>{let re;return n!=null&&n.items?re=l.createElement(pi,Object.assign({},n)):typeof x=="function"?re=x():re=x,c&&(re=c(re)),re=l.Children.only(typeof re=="string"?l.createElement("span",null,re):re),l.createElement(CU,{prefixCls:`${P}-menu`,rootClassName:ne(N,A),expandIcon:l.createElement("span",{className:`${P}-menu-submenu-arrow`},l.createElement(Hs,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:q=>{}},re)},[ee,Z]=Ji("Dropdown",p==null?void 0:p.zIndex);let oe=l.createElement(sU,Object.assign({alignPoint:B},yn(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:b,visible:z,builtinPlacements:W,arrow:!!r,overlayClassName:X,prefixCls:P,getPopupContainer:u||I,transitionName:$,trigger:j,overlay:te,placement:D,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),p),{zIndex:ee})}),F);return ee&&(oe=l.createElement(tg.Provider,{value:Z},oe)),O(oe)};function mde(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const hde=ug(gg,"dropdown",e=>e,mde),vde=e=>l.createElement(hde,Object.assign({},e),l.createElement("span",null));gg._InternalPanelDoNotUseOrYouWillBeFired=vde;const e0=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(it),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};e0.__ANT_BREADCRUMB_SEPARATOR=!0;var bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function EU(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=bde(t,["className","onClick"]),s=Object.assign(Object.assign({},Mn(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?l.createElement("a",Object.assign({},s,{className:ne(`${e}-link`,a),href:r}),n):l.createElement("span",Object.assign({},s,{className:ne(`${e}-link`,a)}),n)}function Sde(e,t){return(r,a,o,i,s)=>{if(t)return t(r,a,o,i);const c=yde(r,a);return EU(e,r,c,s)}}var NT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:s}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const p=a||{},{items:g}=p,v=NT(p,["items"]);f.menu=Object.assign(Object.assign({},v),{items:g==null?void 0:g.map((m,h)=>{var{key:y,title:b,label:S,path:C}=m,x=NT(m,["key","title","label","path"]);let E=S??b;return C&&(E=l.createElement("a",{href:`${s}${C}`},E)),Object.assign(Object.assign({},x),{key:y??h,label:E})})})}else o&&(f.overlay=o);return l.createElement(gg,Object.assign({placement:"bottom"},f),l.createElement("span",{className:`${t}-overlay-link`},d,l.createElement(Gb,null)))}return d})(r);return u!=null?l.createElement(l.Fragment,null,l.createElement("li",null,u),n&&l.createElement(e0,null,n)):null},TU=e=>{const{prefixCls:t,children:n,href:r}=e,a=NT(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(it),i=o("breadcrumb",t);return l.createElement(IU,Object.assign({},a,{prefixCls:i}),EU(i,a,n,r))};TU.__ANT_BREADCRUMB_ITEM=!0;const wde=TU,Cde=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${G(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ui(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Bb}}},c$(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Xt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},di(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(v)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${G(u)} ${G(v)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},di(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[pi(e,"slide-up"),pi(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down"),lg(e,"zoom-big")]]},pde=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Yb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Kb(e)),gde=tn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=Bt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[fde(o),dde(o)]},pde,{resetStyle:!1}),gg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:v,visible:m,onVisibleChange:h,mouseEnterDelay:y=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:S=!0,placement:C="",overlay:x,transitionName:E}=e,{getPopupContainer:I,getPrefixCls:R,direction:T,dropdown:_}=l.useContext(ct);Js();const $=l.useMemo(()=>{const re=R();return E!==void 0?E:C.includes("top")?`${re}-slide-down`:`${re}-slide-up`},[R,C,E]),D=l.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:T==="rtl"?"bottomRight":"bottomLeft",[C,T]),P=R("dropdown",a),A=Yn(P),[O,k,N]=gde(P,A),[,M]=Lr(),L=l.Children.only(o),F=ur(L,{className:ne(`${P}-trigger`,{[`${P}-rtl`]:T==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),j=s?[]:i,B=!!(j!=null&&j.includes("contextMenu")),[z,H]=on(!1,{value:g??m}),U=zt(re=>{v==null||v(re,{source:"trigger"}),h==null||h(re),H(re)}),X=ne(d,f,k,N,A,_==null?void 0:_.className,{[`${P}-rtl`]:T==="rtl"}),W=eU({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:M.marginXXS,arrowWidth:r?M.sizePopupArrow:0,borderRadius:M.borderRadius}),Y=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(v==null||v(!1,{source:"menu"}),H(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),te=()=>{let re;return n!=null&&n.items?re=l.createElement(gi,Object.assign({},n)):typeof x=="function"?re=x():re=x,c&&(re=c(re)),re=l.Children.only(typeof re=="string"?l.createElement("span",null,re):re),l.createElement(CU,{prefixCls:`${P}-menu`,rootClassName:ne(N,A),expandIcon:l.createElement("span",{className:`${P}-menu-submenu-arrow`},l.createElement(Hs,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:q=>{}},re)},[ee,Z]=Ji("Dropdown",p==null?void 0:p.zIndex);let oe=l.createElement(sU,Object.assign({alignPoint:B},Sn(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:b,visible:z,builtinPlacements:W,arrow:!!r,overlayClassName:X,prefixCls:P,getPopupContainer:u||I,transitionName:$,trigger:j,overlay:te,placement:D,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),p),{zIndex:ee})}),F);return ee&&(oe=l.createElement(tg.Provider,{value:Z},oe)),O(oe)};function mde(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const hde=ug(gg,"dropdown",e=>e,mde),vde=e=>l.createElement(hde,Object.assign({},e),l.createElement("span",null));gg._InternalPanelDoNotUseOrYouWillBeFired=vde;const e0=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(ct),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};e0.__ANT_BREADCRUMB_SEPARATOR=!0;var bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function EU(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=bde(t,["className","onClick"]),s=Object.assign(Object.assign({},Pn(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?l.createElement("a",Object.assign({},s,{className:ne(`${e}-link`,a),href:r}),n):l.createElement("span",Object.assign({},s,{className:ne(`${e}-link`,a)}),n)}function Sde(e,t){return(r,a,o,i,s)=>{if(t)return t(r,a,o,i);const c=yde(r,a);return EU(e,r,c,s)}}var NT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:s}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const p=a||{},{items:g}=p,v=NT(p,["items"]);f.menu=Object.assign(Object.assign({},v),{items:g==null?void 0:g.map((m,h)=>{var{key:y,title:b,label:S,path:C}=m,x=NT(m,["key","title","label","path"]);let E=S??b;return C&&(E=l.createElement("a",{href:`${s}${C}`},E)),Object.assign(Object.assign({},x),{key:y??h,label:E})})})}else o&&(f.overlay=o);return l.createElement(gg,Object.assign({placement:"bottom"},f),l.createElement("span",{className:`${t}-overlay-link`},d,l.createElement(Gb,null)))}return d})(r);return u!=null?l.createElement(l.Fragment,null,l.createElement("li",null,u),n&&l.createElement(e0,null,n)):null},TU=e=>{const{prefixCls:t,children:n,href:r}=e,a=NT(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(ct),i=o("breadcrumb",t);return l.createElement(IU,Object.assign({},a,{prefixCls:i}),EU(i,a,n,r))};TU.__ANT_BREADCRUMB_ITEM=!0;const wde=TU,Cde=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${G(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},di(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${G(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},xde=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Ede=nn("Breadcrumb",e=>{const t=zt(e,{});return Cde(t)},xde);var lM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,s=lM(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:i})})}),a}function Tde(e,t){return l.useMemo(()=>e||(t?t.map(Ide):null),[e,t])}var Rde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},mg=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:s,children:c,itemRender:u,params:d={}}=e,f=Rde(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:g,breadcrumb:v}=l.useContext(it);let m;const h=p("breadcrumb",t),[y,b,S]=Ede(h),C=Tde(s,i),x=Sde(h,u);if(C&&C.length>0){const R=[],T=s||i;m=C.map((_,$)=>{const{path:D,key:P,type:A,menu:O,overlay:k,onClick:N,className:M,separator:L,dropdownProps:F}=_,j=_de(d,D);j!==void 0&&R.push(j);const B=P??$;if(A==="separator")return l.createElement(e0,{key:B},L);const z={},H=$===C.length-1;O?z.menu=O:k&&(z.overlay=k);let{href:U}=_;return R.length&&j!==void 0&&(U=`#/${R.join("/")}`),l.createElement(IU,Object.assign({key:B},z,Mn(_,{data:!0,aria:!0}),{className:M,dropdownProps:F,href:U,separator:H?"":n,onClick:N,prefixCls:h}),x(_,d,T,R,U))})}else if(c){const R=sr(c).length;m=sr(c).map((T,_)=>{if(!T)return T;const $=_===R-1;return ur(T,{separator:$?"":n,key:_})})}const E=ne(h,v==null?void 0:v.className,{[`${h}-rtl`]:g==="rtl"},a,o,b,S),I=Object.assign(Object.assign({},v==null?void 0:v.style),r);return y(l.createElement("nav",Object.assign({className:E,style:I},f),l.createElement("ol",null,m)))};mg.Item=wde;mg.Separator=e0;var RU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",c="hour",u="day",d="week",f="month",p="quarter",g="year",v="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var O=["th","st","nd","rd"],k=A%100;return"["+A+(O[(k-20)%10]||O[k]||O[0])+"]"}},S=function(A,O,k){var N=String(A);return!N||N.length>=O?A:""+Array(O+1-N.length).join(k)+A},C={s:S,z:function(A){var O=-A.utcOffset(),k=Math.abs(O),N=Math.floor(k/60),M=k%60;return(O<=0?"+":"-")+S(N,2,"0")+":"+S(M,2,"0")},m:function A(O,k){if(O.date()1)return A(F[0])}else{var j=O.name;E[j]=O,M=j}return!N&&M&&(x=M),M||!N&&x},_=function(A,O){if(R(A))return A.clone();var k=typeof O=="object"?O:{};return k.date=A,k.args=arguments,new D(k)},$=C;$.l=T,$.i=R,$.w=function(A,O){return _(A,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var D=function(){function A(k){this.$L=T(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[I]=!0}var O=A.prototype;return O.parse=function(k){this.$d=function(N){var M=N.date,L=N.utc;if(M===null)return new Date(NaN);if($.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var F=M.match(h);if(F){var j=F[2]-1||0,B=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(M)}(k),this.init()},O.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},O.$utils=function(){return $},O.isValid=function(){return this.$d.toString()!==m},O.isSame=function(k,N){var M=_(k);return this.startOf(N)<=M&&M<=this.endOf(N)},O.isAfter=function(k,N){return _(k)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var p=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(OU);var Mde=OU.exports;const Dde=fa(Mde);var NU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(NU);var Pde=NU.exports;const Lde=fa(Pde);var kU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return o.bind(this)(d)}}})})(kU);var Fde=kU.exports;const jde=fa(Fde);var AU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(h){this[m]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var y=h.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(m)}],f=function(m){var h=s[m];return h&&(h.indexOf?h:h.s.concat(h.f))},p=function(m,h){var y,b=s.meridiem;if(b){for(var S=1;S<=24;S+=1)if(m.indexOf(b(S,0,h))>-1){y=S>12;break}}else y=m===(h?"pm":"PM");return y},g={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[i,function(m){var h=s.ordinal,y=m.match(/\d+/);if(this.day=y[0],h)for(var b=1;b<=31;b+=1)h(b).replace(/\[|\]/g,"")===m&&(this.day=b)}],M:[o,u("month")],MM:[a,u("month")],MMM:[i,function(m){var h=f("months"),y=(f("monthsShort")||h.map(function(b){return b.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(m){var h=f("months").indexOf(m)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function v(m){var h,y;h=m,y=s&&s.formats;for(var b=(m=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,_,$){var D=$&&$.toUpperCase();return _||y[$]||n[$]||y[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,A,O){return A||O.slice(1)})})).match(r),S=b.length,C=0;C-1)return new Date((N==="X"?1e3:1)*k);var L=v(N)(k),F=L.year,j=L.month,B=L.day,z=L.hours,H=L.minutes,U=L.seconds,X=L.milliseconds,W=L.zone,Y=new Date,te=B||(F||j?1:Y.getDate()),ee=F||Y.getFullYear(),Z=0;F&&!j||(Z=j>0?j-1:Y.getMonth());var oe=z||0,re=H||0,q=U||0,Q=X||0;return W?new Date(Date.UTC(ee,Z,te,oe,re,q,Q+60*W.offset*1e3)):M?new Date(Date.UTC(ee,Z,te,oe,re,q,Q)):new Date(ee,Z,te,oe,re,q,Q)}catch{return new Date("")}}(x,R,E),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),$&&x!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var P=R.length,A=1;A<=P;A+=1){I[1]=R[A-1];var O=y.apply(this,I);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}A===P&&(this.$d=new Date(""))}else S.call(this,C)}}})})(AU);var Bde=AU.exports;const zde=fa(Bde);ba.extend(zde);ba.extend(jde);ba.extend(Nde);ba.extend(Ade);ba.extend(Dde);ba.extend(Lde);ba.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var Hde={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},dl=function(t){var n=Hde[t];return n||t.split("_")[0]},cM=function(){ez(!1,"Not match any format. Please help to fire a issue about this.")},Ude={getNow:function(){return ba()},getFixedDate:function(t){return ba(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ba().locale(dl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(dl(t)).weekday(0)},getWeek:function(t,n){return n.locale(dl(t)).week()},getShortWeekDays:function(t){return ba().locale(dl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ba().locale(dl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(dl(t)).format(r)},parse:function(t,n,r){for(var a=dl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=ie(r,2),o=a[0],i=a[1],s=function(d,f){i(function(p){return Nf(p,f,d)})},c=l.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,s]}function BU(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function Wde(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,g=e.yearFormat,v=e.cellYearFormat,m=e.cellQuarterFormat,h=e.dayFormat,y=e.cellDateFormat,b=BU(t,n,r,a,o);return K(K({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:y||h||"D"})}function zU(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return le.useMemo(function(){return Wde(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Ud(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Gde=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function qde(e){var t=n0(e,Gde),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=ht(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function Kde(e){return e&&typeof e=="string"}function HU(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function UU(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var c,u,d,f=[o,i,s].some(function(v){return v===!1}),p=[o,i,s].some(function(v){return v===!0}),g=f?!0:!p;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,s=(d=s)!==null&&d!==void 0?d:g}return[o,i,s,a]}function VU(e){var t=e.showTime,n=qde(e),r=ie(n,2),a=r[0],o=r[1],i=t&&ht(t)==="object"?t:{},s=K(K({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,p=HU(u,d,f,c),g=UU(p,u,d,f,c),v=ie(g,3);return u=v[0],d=v[1],f=v[2],[s,K(K({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,o]}function WU(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=PU(e,a,null),c=s,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function Ir(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Ev(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function Qde(e,t,n,r,a){var o=Ut(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!na(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!na(e,t,a,i,s.type))});return o}function Jde(e,t,n){return l.useMemo(function(){var r=PU(e,t,n),a=fc(r),o=a[0],i=ht(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function efe(e,t,n){return typeof e[0]=="function"||n?!0:t}function tfe(e,t,n,r){var a=Ut(function(o,i){var s=K({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:s.from}))||{},f=d.disabledHours,p=d.disabledMinutes,g=d.disabledSeconds,v=d.disabledMilliseconds,m=r.disabledHours,h=r.disabledMinutes,y=r.disabledSeconds,b=f||m,S=p||h,C=g||y,x=e.getHour(o),E=e.getMinute(o),I=e.getSecond(o),R=e.getMillisecond(o);if(b&&b().includes(x)||S&&S(x).includes(E)||C&&C(x,E).includes(I)||v&&v(x,E,I).includes(R))return!0}return!1});return a}function wm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&fc(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function KU(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,p=e.order,g=p===void 0?!0:p,v=e.components,m=v===void 0?{}:v,h=e.inputRender,y=e.allowClear,b=e.clearIcon,S=e.needConfirm,C=e.multiple,x=e.format,E=e.inputReadOnly,I=e.disabledDate,R=e.minDate,T=e.maxDate,_=e.showTime,$=e.value,D=e.defaultValue,P=e.pickerValue,A=e.defaultPickerValue,O=wm($),k=wm(D),N=wm(P),M=wm(A),L=o==="date"&&_?"datetime":o,F=L==="time"||L==="datetime",j=F||C,B=S??F,z=VU(e),H=ie(z,4),U=H[0],X=H[1],W=H[2],Y=H[3],te=zU(r,X),ee=l.useMemo(function(){return WU(L,W,Y,U,te)},[L,W,Y,U,te]),Z=l.useMemo(function(){return K(K({},e),{},{prefixCls:s,locale:te,picker:o,styles:u,classNames:f,order:g,components:K({input:h},m),clearIcon:Yde(s,y,b),showTime:ee,value:O,defaultValue:k,pickerValue:N,defaultPickerValue:M},t==null?void 0:t())},[e]),oe=Jde(L,te,x),re=ie(oe,2),q=re[0],Q=re[1],ae=efe(q,E,C),se=Qde(n,r,I,R,T),de=tfe(n,o,se,ee),he=l.useMemo(function(){return K(K({},Z),{},{needConfirm:B,inputReadOnly:ae,disabledDate:se})},[Z,B,ae,se]);return[he,L,j,q,Q,de]}function nfe(e,t,n){var r=on(t,{value:e}),a=ie(r,2),o=a[0],i=a[1],s=le.useRef(e),c=le.useRef(),u=function(){Bt.cancel(c.current)},d=Ut(function(){i(s.current),n&&o!==s.current&&n(s.current)}),f=Ut(function(p,g){u(),s.current=p,p||g?d():c.current=Bt(d)});return le.useEffect(function(){return u},[]),[o,f]}function YU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=nfe(a,t||!1,r),i=ie(o,2),s=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function XU(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function ZU(e,t){return l.useMemo(function(){return e||(t?(pn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ie(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function C$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,Pl(function(){if(e)r.current(e);else{var a=Bt(function(){r.current(e)},n);return function(){Bt.cancel(a)}}},[e])}function QU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=ie(r,2),o=a[0],i=a[1],s=l.useState(!1),c=ie(s,2),u=c[0],d=c[1],f=l.useRef([]),p=l.useRef(null),g=function(y){d(y)},v=function(y){return y&&(p.current=y),p.current},m=function(y){var b=f.current,S=new Set(b.filter(function(x){return y[x]||t[x]})),C=b[b.length-1]===0?1:0;return S.size>=2||e[C]?null:C};return C$(u||n,function(){u||(f.current=[])}),l.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,g,v,o,i,m,f.current]}function rfe(e,t,n,r,a,o){var i=n[n.length-1],s=function(u,d){var f=ie(e,2),p=f[0],g=f[1],v=K(K({},d),{},{from:LU(e,n)});return i===1&&t[0]&&p&&!na(r,a,p,u,v.type)&&r.isAfter(p,u)||i===0&&t[1]&&g&&!na(r,a,g,u,v.type)&&r.isAfter(u,g)?!0:o==null?void 0:o(u,v)};return s}function of(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var uS=[];function JU(e,t,n,r,a,o,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:uS,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:uS,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:uS,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,v=i==="time",m=o||0,h=function(N){var M=e.getNow();return v&&(M=Ev(e,M)),c[N]||n[N]||M},y=ie(u,2),b=y[0],S=y[1],C=on(function(){return h(0)},{value:b}),x=ie(C,2),E=x[0],I=x[1],R=on(function(){return h(1)},{value:S}),T=ie(R,2),_=T[0],$=T[1],D=l.useMemo(function(){var k=[E,_][m];return v?k:Ev(e,k,d[m])},[v,E,_,m,e,d]),P=function(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[I,$][m];L(N);var F=[E,_];F[m]=N,f&&(!na(e,t,E,F[0],i)||!na(e,t,_,F[1],i))&&f(F,{source:M,range:m===1?"end":"start",mode:r})},A=function(N,M){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},F=L[i];if(F&&!na(e,t,N,M,F))return of(e,i,M,-1);if(i==="year"&&N){var j=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(M)/10);if(j!==B)return of(e,i,M,-1)}}return M},O=l.useRef(null);return qt(function(){if(a&&!c[m]){var k=v?null:e.getNow();if(O.current!==null&&O.current!==m?k=[E,_][m^1]:n[m]?k=m===0?n[0]:A(n[0],n[1]):n[m^1]&&(k=n[m^1]),k){p&&e.isAfter(p,k)&&(k=p);var N=s?of(e,i,k,1):k;g&&e.isAfter(N,g)&&(k=s?of(e,i,g,-1):g),P(k,"reset")}}},[a,m,n[m]]),l.useEffect(function(){a?O.current=m:O.current=null},[a,m]),qt(function(){a&&c&&c[m]&&P(c[m],"reset")},[a,m]),[D,P]}function eV(e,t){var n=l.useRef(e),r=l.useState({}),a=ie(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,o({})};return[i,s,i(!0)]}var afe=[];function tV(e,t,n){var r=function(i){return i.map(function(s){return Ir(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=a.includes(c);(!u||!r)&&i.push({label:b$(c,o),value:c,disabled:u})}return i}function x$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,p=f===void 0?100:f,g=r.hideDisabledOptions,v=r.disabledTime,m=r.disabledHours,h=r.disabledMinutes,y=r.disabledSeconds,b=l.useMemo(function(){return n||e.getNow()},[n,e]),S=l.useCallback(function(M){var L=(v==null?void 0:v(M))||{};return[L.disabledHours||m||Cm,L.disabledMinutes||h||Cm,L.disabledSeconds||y||Cm,L.disabledMilliseconds||Cm]},[v,m,h,y]),C=l.useMemo(function(){return S(b)},[b,S]),x=ie(C,4),E=x[0],I=x[1],R=x[2],T=x[3],_=l.useCallback(function(M,L,F,j){var B=xm(0,23,i,g,M()),z=a?B.map(function(W){return K(K({},W),{},{label:b$(W.value%12||12,2)})}):B,H=function(Y){return xm(0,59,c,g,L(Y))},U=function(Y,te){return xm(0,59,d,g,F(Y,te))},X=function(Y,te,ee){return xm(0,999,p,g,j(Y,te,ee),3)};return[z,H,U,X]},[g,i,a,p,c,d]),$=l.useMemo(function(){return _(E,I,R,T)},[_,E,I,R,T]),D=ie($,4),P=D[0],A=D[1],O=D[2],k=D[3],N=function(L,F){var j=function(){return P},B=A,z=O,H=k;if(F){var U=S(F),X=ie(U,4),W=X[0],Y=X[1],te=X[2],ee=X[3],Z=_(W,Y,te,ee),oe=ie(Z,4),re=oe[0],q=oe[1],Q=oe[2],ae=oe[3];j=function(){return re},B=q,z=Q,H=ae}var se=ife(L,j,B,z,H,e);return se};return[N,P,A,O,k]}function sfe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=l.useContext(Yo),g=p.prefixCls,v=p.locale,m=p.button,h=m===void 0?"button":m,y=d.getNow(),b=x$(d,o,y),S=ie(b,1),C=S[0],x=r==null?void 0:r(t),E=f(y,{type:t}),I=function(){if(!E){var A=C(y);s(A)}},R="".concat(g,"-now"),T="".concat(R,"-btn"),_=a&&l.createElement("li",{className:R},l.createElement("a",{className:ne(T,E&&"".concat(T,"-disabled")),"aria-disabled":E,onClick:I},n==="date"?v.today:v.now)),$=u&&l.createElement("li",{className:"".concat(g,"-ok")},l.createElement(h,{disabled:c,onClick:i},v.ok)),D=(_||$)&&l.createElement("ul",{className:"".concat(g,"-ranges")},_,$);return!x&&!D?null:l.createElement("div",{className:"".concat(g,"-footer")},x&&l.createElement("div",{className:"".concat(g,"-footer-extra")},x),D)}function iV(e,t,n){function r(a,o){var i=a.findIndex(function(c){return na(e,t,c,o,n)});if(i===-1)return[].concat(Oe(a),[o]);var s=Oe(a);return s.splice(i,1),s}return r}var pc=l.createContext(null);function a0(){return l.useContext(pc)}function cd(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,g=e.pickerValue,v=e.onSelect,m=e.prevIcon,h=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,S=r.getNow(),C={now:S,values:p,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:v,panelType:t,prevIcon:m,nextIcon:h,superPrevIcon:y,superNextIcon:b};return[C,S]}var Ms=l.createContext({});function hg(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,g=e.disabledDate,v=a0(),m=v.prefixCls,h=v.panelType,y=v.now,b=v.disabledDate,S=v.cellRender,C=v.onHover,x=v.hoverValue,E=v.hoverRangeValue,I=v.generateConfig,R=v.values,T=v.locale,_=v.onSelect,$=g||b,D="".concat(m,"-cell"),P=l.useContext(Ms),A=P.onCellDblClick,O=function(z){return R.some(function(H){return H&&na(I,T,z,H,h)})},k=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;J($e),h==null||h($e),Ce&&ce($e)},fe=function($e,Ce){te($e),Ce&&ue(Ce),ce(Ce,$e)},be=function($e){if(de($e),ue($e),Y!==C){var Ce=["decade","year"],Re=[].concat(Ce,["month"]),me={quarter:[].concat(Ce,["quarter"]),week:[].concat(Oe(Re),["week"]),date:[].concat(Oe(Re),["date"])},Ie=me[C]||Re,je=Ie.indexOf(Y),ke=Ie[je+1];ke&&fe(ke,$e)}},Te=l.useMemo(function(){var we,$e;if(Array.isArray(I)){var Ce=ie(I,2);we=Ce[0],$e=Ce[1]}else we=I;return!we&&!$e?null:(we=we||$e,$e=$e||we,a.isAfter(we,$e)?[$e,we]:[we,$e])},[I,a]),_e=y$(R,T,_),Pe=D[ee]||bfe[ee]||o0,Ee=l.useContext(Ms),Fe=l.useMemo(function(){return K(K({},Ee),{},{hideHeader:P})},[Ee,P]),De="".concat(A,"-panel"),Ae=n0(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Ms.Provider,{value:Fe},l.createElement("div",{ref:O,tabIndex:c,className:ne(De,V({},"".concat(De,"-rtl"),o==="rtl"))},l.createElement(Pe,ve({},Ae,{showTime:H,prefixCls:A,locale:B,generateConfig:a,onModeChange:fe,pickerValue:pe,onPickerValueChange:function($e){ue($e,!0)},value:ae[0],onSelect:be,values:ae,cellRender:_e,hoverRangeValue:Te,hoverValue:E}))))}var dS=l.memo(l.forwardRef(yfe));function Sfe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(Yo),d=u.prefixCls,f=u.generateConfig,p=l.useCallback(function(b,S){return of(f,t,b,S)},[f,t]),g=l.useMemo(function(){return p(r,1)},[r,p]),v=function(S){a(p(S,-1))},m={onCellDblClick:function(){o&&i()}},h=t==="time",y=K(K({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return s?y.hoverRangeValue=c:y.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(Ms.Provider,{value:K(K({},m),{},{hideNext:!0})},l.createElement(dS,y)),l.createElement(Ms.Provider,{value:K(K({},m),{},{hidePrev:!0})},l.createElement(dS,ve({},y,{pickerValue:g,onPickerValueChange:v})))):l.createElement(Ms.Provider,{value:K({},m)},l.createElement(dS,y))}function dM(e){return typeof e=="function"?e():e}function wfe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,i){var s=o.label,c=o.value;return l.createElement("li",{key:i,onClick:function(){r(dM(c))},onMouseEnter:function(){a(dM(c))},onMouseLeave:function(){a(null)}},s)}))):null}function lV(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,g=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,h=e.direction,y=e.value,b=e.onSelect,S=e.isInvalid,C=e.defaultOpenValue,x=e.onOk,E=e.onSubmit,I=l.useContext(Yo),R=I.prefixCls,T="".concat(R,"-panel"),_=h==="rtl",$=l.useRef(null),D=l.useRef(null),P=l.useState(0),A=ie(P,2),O=A[0],k=A[1],N=l.useState(0),M=ie(N,2),L=M[0],F=M[1],j=function(se){se.offsetWidth&&k(se.offsetWidth)};l.useEffect(function(){if(o){var ae,se=((ae=$.current)===null||ae===void 0?void 0:ae.offsetWidth)||0,de=O-se;c<=de?F(0):F(c+se-O)}},[O,c,o]);function B(ae){return ae.filter(function(se){return se})}var z=l.useMemo(function(){return B(fc(y))},[y]),H=r==="time"&&!z.length,U=l.useMemo(function(){return H?B([C]):z},[H,z,C]),X=H?C:z,W=l.useMemo(function(){return U.length?U.some(function(ae){return S(ae)}):!0},[U,S]),Y=function(){H&&b(C),x(),E()},te=l.createElement("div",{className:"".concat(R,"-panel-layout")},l.createElement(wfe,{prefixCls:R,presets:d,onClick:p,onHover:f}),l.createElement("div",null,l.createElement(Sfe,ve({},e,{value:X})),l.createElement(sfe,ve({},e,{showNow:i?!1:a,invalid:W,onSubmit:Y}))));t&&(te=t(te));var ee="".concat(T,"-container"),Z="marginLeft",oe="marginRight",re=l.createElement("div",{onMouseDown:m,tabIndex:-1,className:ne(ee,"".concat(R,"-").concat(n,"-panel-container")),style:V(V({},_?oe:Z,L),_?Z:oe,"auto"),onFocus:g,onBlur:v},te);if(o){var q=t0(u,_),Q=MU(q,_);re=l.createElement("div",{onMouseDown:m,ref:D,className:ne("".concat(R,"-range-wrapper"),"".concat(R,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:$,className:"".concat(R,"-range-arrow"),style:V({},Q,c)}),l.createElement(Ur,{onResize:j},re))}return re}function cV(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,g=e.onInputChange,v=e.onInvalid,m=e.open,h=e.onOpenChange,y=e.onKeyDown,b=e.onChange,S=e.activeHelp,C=e.name,x=e.autoComplete,E=e.id,I=e.value,R=e.invalid,T=e.placeholder,_=e.disabled,$=e.activeIndex,D=e.allHelp,P=e.picker,A=function(B,z){var H=a.locale.parse(o.locale,B,[z]);return H&&a.isValidate(H)?H:null},O=n[0],k=l.useCallback(function(j){return Ir(j,{locale:o,format:O,generateConfig:a})},[o,a,O]),N=l.useMemo(function(){return I.map(k)},[I,k]),M=l.useMemo(function(){var j=P==="time"?8:10,B=typeof O=="function"?O(a.getNow()).length:O.length;return Math.max(j,B)+2},[O,P,a]),L=function(B){for(var z=0;z=s&&n<=c)return o;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u0?Je:Ke));var Ye=He+Ve,Ge=Ke-Je+1;return String(Je+(Ge+Ye-Je)%Ge)};switch($e){case"Backspace":case"Delete":Ce="",Re=Ie;break;case"ArrowLeft":Ce="",je(-1);break;case"ArrowRight":Ce="",je(1);break;case"ArrowUp":Ce="",Re=ke(1);break;case"ArrowDown":Ce="",Re=ke(-1);break;default:isNaN(Number($e))||(Ce=j+$e,Re=Ce);break}if(Ce!==null&&(B(Ce),Ce.length>=me&&(je(1),B(""))),Re!==null){var Ne=Z.slice(0,se)+b$(Re,me)+Z.slice(de);ye(Ne.slice(0,i.length))}ee({})},Fe=l.useRef();qt(function(){if(!(!P||!i||ce.current)){if(!q.match(Z)){ye(i);return}return re.current.setSelectionRange(se,de),Fe.current=Bt(function(){re.current.setSelectionRange(se,de)}),function(){Bt.cancel(Fe.current)}}},[q,i,P,Z,U,se,de,te,ye]);var De=i?{onFocus:be,onBlur:_e,onKeyDown:Ee,onMouseDown:ue,onMouseUp:fe,onPaste:J}:{};return l.createElement("div",{ref:oe,className:ne(_,V(V({},"".concat(_,"-active"),n&&a),"".concat(_,"-placeholder"),u))},l.createElement(T,ve({ref:re,"aria-invalid":m,autoComplete:"off"},y,{onKeyDown:Pe,onBlur:Te},De,{value:Z,onChange:pe})),l.createElement(i0,{type:"suffix",icon:o}),h)}),_fe=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],$fe=["index"];function Ofe(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,o=e.separator,i=o===void 0?"~":o,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,p=e.onClick,g=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var m=e.disabled,h=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,S=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,E=xt(e,_fe),I=y==="rtl",R=l.useContext(Yo),T=R.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var Z=n||{};return[Z.start,Z.end]},[n]),$=l.useRef(),D=l.useRef(),P=l.useRef(),A=function(oe){var re;return(re=[D,P][oe])===null||re===void 0?void 0:re.current};l.useImperativeHandle(t,function(){return{nativeElement:$.current,focus:function(oe){if(ht(oe)==="object"){var re,q=oe||{},Q=q.index,ae=Q===void 0?0:Q,se=xt(q,$fe);(re=A(ae))===null||re===void 0||re.focus(se)}else{var de;(de=A(oe??0))===null||de===void 0||de.focus()}},blur:function(){var oe,re;(oe=A(0))===null||oe===void 0||oe.blur(),(re=A(1))===null||re===void 0||re.blur()}}});var O=uV(E),k=l.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=cV(K(K({},e),{},{id:_,placeholder:k})),M=ie(N,1),L=M[0],F=t0(S,I),j=MU(F,I),B=F==null?void 0:F.toLowerCase().endsWith("right"),z=l.useState({position:"absolute",width:0}),H=ie(z,2),U=H[0],X=H[1],W=Ut(function(){var Z=A(s);if(Z){var oe=Z.nativeElement,re=oe.offsetWidth,q=oe.offsetLeft,Q=oe.offsetParent,ae=(Q==null?void 0:Q.offsetWidth)||0,se=B?ae-re-q:q;X(function(de){return K(K({},de),{},V({width:re},j,se))}),b(se)}});l.useEffect(function(){W()},[s]);var Y=r&&(v[0]&&!m[0]||v[1]&&!m[1]),te=x&&!m[0],ee=x&&!te&&!m[1];return l.createElement(Ur,{onResize:W},l.createElement("div",ve({},O,{className:ne(T,"".concat(T,"-range"),V(V(V(V({},"".concat(T,"-focused"),c),"".concat(T,"-disabled"),m.every(function(Z){return Z})),"".concat(T,"-invalid"),h.some(function(Z){return Z})),"".concat(T,"-rtl"),I),d),style:f,ref:$,onClick:p,onMouseDown:function(oe){var re=oe.target;re!==D.current.inputElement&&re!==P.current.inputElement&&oe.preventDefault(),C==null||C(oe)}}),l.createElement(MT,ve({ref:D},L(0),{autoFocus:te,"date-range":"start"})),l.createElement("div",{className:"".concat(T,"-range-separator")},i),l.createElement(MT,ve({ref:P},L(1),{autoFocus:ee,"date-range":"end"})),l.createElement("div",{className:"".concat(T,"-active-bar"),style:U}),l.createElement(i0,{type:"suffix",icon:a}),Y&&l.createElement(AT,{icon:r,onClear:g})))}var Nfe=l.forwardRef(Ofe);function pM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Im(e){return e===1?"end":"start"}function kfe(e,t){var n=KU(e,function(){var Ct=e.disabled,$t=e.allowEmpty,et=pM(Ct,!1),Mt=pM($t,!1);return{disabled:et,allowEmpty:Mt}}),r=ie(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,p=a.classNames,g=a.placement,v=a.defaultValue,m=a.value,h=a.needConfirm,y=a.onKeyDown,b=a.disabled,S=a.allowEmpty,C=a.disabledDate,x=a.minDate,E=a.maxDate,I=a.defaultOpen,R=a.open,T=a.onOpenChange,_=a.locale,$=a.generateConfig,D=a.picker,P=a.showNow,A=a.showToday,O=a.showTime,k=a.mode,N=a.onPanelChange,M=a.onCalendarChange,L=a.onOk,F=a.defaultPickerValue,j=a.pickerValue,B=a.onPickerValueChange,z=a.inputReadOnly,H=a.suffixIcon,U=a.onFocus,X=a.onBlur,W=a.presets,Y=a.ranges,te=a.components,ee=a.cellRender,Z=a.dateRender,oe=a.monthCellRender,re=a.onClick,q=XU(t),Q=YU(R,I,b,T),ae=ie(Q,2),se=ae[0],de=ae[1],he=function($t,et){(b.some(function(Mt){return!Mt})||!$t)&&de($t,et)},ye=rV($,_,s,!0,!1,v,m,M,L),pe=ie(ye,5),J=pe[0],ce=pe[1],ue=pe[2],fe=pe[3],be=pe[4],Te=ue(),_e=QU(b,S,se),Pe=ie(_e,7),Ee=Pe[0],Fe=Pe[1],De=Pe[2],Ae=Pe[3],we=Pe[4],$e=Pe[5],Ce=Pe[6],Re=function($t,et){Fe(!0),U==null||U($t,{range:Im(et??Ae)})},me=function($t,et){Fe(!1),X==null||X($t,{range:Im(et??Ae)})},Ie=l.useMemo(function(){if(!O)return null;var Ct=O.disabledTime,$t=Ct?function(et){var Mt=Im(Ae),gn=LU(Te,Ce,Ae);return Ct(et,Mt,{from:gn})}:void 0;return K(K({},O),{},{disabledTime:$t})},[O,Ae,Te,Ce]),je=on([D,D],{value:k}),ke=ie(je,2),Ne=ke[0],Be=ke[1],Ve=Ne[Ae]||D,Le=Ve==="date"&&Ie?"datetime":Ve,We=Le===D&&Le!=="time",Je=oV(D,Ve,P,A,!0),Ke=aV(a,J,ce,ue,fe,b,s,Ee,se,u),ut=ie(Ke,2),dt=ut[0],He=ut[1],Ye=rfe(Te,b,Ce,$,_,C),Ge=jU(Te,u,S),rt=ie(Ge,2),Tt=rt[0],Rt=rt[1],jt=JU($,_,Te,Ne,se,Ae,o,We,F,j,Ie==null?void 0:Ie.defaultOpenValue,B,x,E),ft=ie(jt,2),st=ft[0],Ze=ft[1],lt=Ut(function(Ct,$t,et){var Mt=Nf(Ne,Ae,$t);if((Mt[0]!==Ne[0]||Mt[1]!==Ne[1])&&Be(Mt),N&&et!==!1){var gn=Oe(Te);Ct&&(gn[Ae]=Ct),N(gn,Mt)}}),It=function($t,et){return Nf(Te,et,$t)},at=function($t,et){var Mt=Te;$t&&(Mt=It($t,Ae));var gn=$e(Mt);fe(Mt),dt(Ae,gn===null),gn===null?he(!1,{force:!0}):et||q.current.focus({index:gn})},vt=function($t){var et,Mt=$t.target.getRootNode();if(!q.current.nativeElement.contains((et=Mt.activeElement)!==null&&et!==void 0?et:document.activeElement)){var gn=b.findIndex(function(Gn){return!Gn});gn>=0&&q.current.focus({index:gn})}he(!0),re==null||re($t)},bt=function(){He(null),he(!1,{force:!0})},Qe=l.useState(null),ot=ie(Qe,2),Xe=ot[0],qe=ot[1],pt=l.useState(null),Et=ie(pt,2),_t=Et[0],Xt=Et[1],Jt=l.useMemo(function(){return _t||Te},[Te,_t]);l.useEffect(function(){se||Xt(null)},[se]);var Yt=l.useState(0),rn=ie(Yt,2),St=rn[0],wt=rn[1],Nt=ZU(W,Y),hn=function($t){Xt($t),qe("preset")},Fn=function($t){var et=He($t);et&&he(!1,{force:!0})},rr=function($t){at($t)},fr=function($t){Xt($t?It($t,Ae):null),qe("cell")},jr=function($t){he(!0),Re($t)},yr=function(){De("panel")},Wn=function($t){var et=Nf(Te,Ae,$t);fe(et),!h&&!i&&o===Le&&at($t)},Wt=function(){he(!1)},Lt=y$(ee,Z,oe,Im(Ae)),Ht=Te[Ae]||null,Dt=Ut(function(Ct){return u(Ct,{activeIndex:Ae})}),Ft=l.useMemo(function(){var Ct=Mn(a,!1),$t=yn(a,[].concat(Oe(Object.keys(Ct)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return $t},[a]),mt=l.createElement(lV,ve({},Ft,{showNow:Je,showTime:Ie,range:!0,multiplePanel:We,activeOffset:St,placement:g,disabledDate:Ye,onFocus:jr,onBlur:me,onPanelMouseDown:yr,picker:D,mode:Ve,internalMode:Le,onPanelChange:lt,format:c,value:Ht,isInvalid:Dt,onChange:null,onSelect:Wn,pickerValue:st,defaultOpenValue:fc(O==null?void 0:O.defaultOpenValue)[Ae],onPickerValueChange:Ze,hoverValue:Jt,onHover:fr,needConfirm:h,onSubmit:at,onOk:be,presets:Nt,onPresetHover:hn,onPresetSubmit:Fn,onNow:rr,cellRender:Lt})),Se=function($t,et){var Mt=It($t,et);fe(Mt)},xe=function(){De("input")},ze=function($t,et){De("input"),he(!0,{inherit:!0}),Ae!==et&&se&&!h&&i&&at(null,!0),we(et),Re($t,et)},gt=function($t,et){if(he(!1),!h&&De()==="input"){var Mt=$e(Te);dt(Ae,Mt===null)}me($t,et)},yt=function($t,et){$t.key==="Tab"&&at(null,!0),y==null||y($t,et)},Gt=l.useMemo(function(){return{prefixCls:d,locale:_,generateConfig:$,button:te.button,input:te.input}},[d,_,$,te.button,te.input]);return qt(function(){se&&Ae!==void 0&<(null,D,!1)},[se,Ae,D]),qt(function(){var Ct=De();!se&&Ct==="input"&&(he(!1),at(null,!0)),!se&&i&&!h&&Ct==="panel"&&(he(!0),at())},[se]),l.createElement(Yo.Provider,{value:Gt},l.createElement(DU,ve({},FU(a),{popupElement:mt,popupStyle:f.popup,popupClassName:p.popup,visible:se,onClose:Wt,range:!0}),l.createElement(Nfe,ve({},a,{ref:q,suffixIcon:H,activeIndex:Ee||se?Ae:null,activeHelp:!!_t,allHelp:!!_t&&Xe==="preset",focused:Ee,onFocus:ze,onBlur:gt,onKeyDown:yt,onSubmit:at,value:Jt,maskFormat:c,onChange:Se,onInputChange:xe,format:s,inputReadOnly:z,disabled:b,open:se,onOpenChange:he,onClick:vt,onClear:bt,invalid:Tt,onInvalid:Rt,onActiveOffset:wt}))))}var Afe=l.forwardRef(kfe);function Mfe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function g(h,y){return l.createElement("span",{className:ne("".concat(f,"-item")),title:typeof h=="string"?h:null},l.createElement("span",{className:"".concat(f,"-item-content")},h),!s&&y&&l.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},o))}function v(h){var y=i(h),b=function(C){C&&C.stopPropagation(),r(h)};return g(y,b)}function m(h){var y="+ ".concat(h.length," ...");return g(y)}return l.createElement("div",{className:d},l.createElement(Bo,{prefixCls:p,data:n,renderItem:v,renderRest:m,itemKey:function(y){return i(y)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Dfe=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Pfe(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,g=e.internalPicker,v=e.value,m=e.onChange,h=e.onSubmit;e.onInputChange;var y=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,C=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,R=e.removeIcon,T=xt(e,Dfe),_=x==="rtl",$=l.useContext(Yo),D=$.prefixCls,P=l.useRef(),A=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(U){var X;(X=A.current)===null||X===void 0||X.focus(U)},blur:function(){var U;(U=A.current)===null||U===void 0||U.blur()}}});var O=uV(T),k=function(U){m([U])},N=function(U){var X=v.filter(function(W){return W&&!na(s,i,W,U,g)});m(X),n||h()},M=cV(K(K({},e),{},{onChange:k}),function(H){var U=H.valueTexts;return{value:U[0]||"",active:o}}),L=ie(M,2),F=L[0],j=L[1],B=!!(r&&v.length&&!S),z=y?l.createElement(l.Fragment,null,l.createElement(Mfe,{prefixCls:D,value:v,onRemove:N,formatDate:j,maxTagCount:b,disabled:S,removeIcon:R,placeholder:c}),l.createElement("input",{className:"".concat(D,"-multiple-input"),value:v.map(j).join(","),ref:A,readOnly:!0,autoFocus:I}),l.createElement(i0,{type:"suffix",icon:a}),B&&l.createElement(AT,{icon:r,onClear:p})):l.createElement(MT,ve({ref:A},F(),{autoFocus:I,suffixIcon:a,clearIcon:B&&l.createElement(AT,{icon:r,onClear:p}),showActiveCls:!1}));return l.createElement("div",ve({},O,{className:ne(D,V(V(V(V(V({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),o),"".concat(D,"-disabled"),S),"".concat(D,"-invalid"),C),"".concat(D,"-rtl"),_),u),style:d,ref:P,onClick:f,onMouseDown:function(U){var X,W=U.target;W!==((X=A.current)===null||X===void 0?void 0:X.inputElement)&&U.preventDefault(),E==null||E(U)}}),z)}var Lfe=l.forwardRef(Pfe);function Ffe(e,t){var n=KU(e),r=ie(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,p=d.styles,g=d.classNames,v=d.order,m=d.defaultValue,h=d.value,y=d.needConfirm,b=d.onChange,S=d.onKeyDown,C=d.disabled,x=d.disabledDate,E=d.minDate,I=d.maxDate,R=d.defaultOpen,T=d.open,_=d.onOpenChange,$=d.locale,D=d.generateConfig,P=d.picker,A=d.showNow,O=d.showToday,k=d.showTime,N=d.mode,M=d.onPanelChange,L=d.onCalendarChange,F=d.onOk,j=d.multiple,B=d.defaultPickerValue,z=d.pickerValue,H=d.onPickerValueChange,U=d.inputReadOnly,X=d.suffixIcon,W=d.removeIcon,Y=d.onFocus,te=d.onBlur,ee=d.presets,Z=d.components,oe=d.cellRender,re=d.dateRender,q=d.monthCellRender,Q=d.onClick,ae=XU(t);function se(mt){return mt===null?null:j?mt:mt[0]}var de=iV(D,$,o),he=YU(T,R,[C],_),ye=ie(he,2),pe=ye[0],J=ye[1],ce=function(Se,xe,ze){if(L){var gt=K({},ze);delete gt.range,L(se(Se),se(xe),gt)}},ue=function(Se){F==null||F(se(Se))},fe=rV(D,$,s,!1,v,m,h,ce,ue),be=ie(fe,5),Te=be[0],_e=be[1],Pe=be[2],Ee=be[3],Fe=be[4],De=Pe(),Ae=QU([C]),we=ie(Ae,4),$e=we[0],Ce=we[1],Re=we[2],me=we[3],Ie=function(Se){Ce(!0),Y==null||Y(Se,{})},je=function(Se){Ce(!1),te==null||te(Se,{})},ke=on(P,{value:N}),Ne=ie(ke,2),Be=Ne[0],Ve=Ne[1],Le=Be==="date"&&k?"datetime":Be,We=oV(P,Be,A,O),Je=b&&function(mt,Se){b(se(mt),se(Se))},Ke=aV(K(K({},a),{},{onChange:Je}),Te,_e,Pe,Ee,[],s,$e,pe,u),ut=ie(Ke,2),dt=ut[1],He=jU(De,u),Ye=ie(He,2),Ge=Ye[0],rt=Ye[1],Tt=l.useMemo(function(){return Ge.some(function(mt){return mt})},[Ge]),Rt=function(Se,xe){if(H){var ze=K(K({},xe),{},{mode:xe.mode[0]});delete ze.range,H(Se[0],ze)}},jt=JU(D,$,De,[Be],pe,me,o,!1,B,z,fc(k==null?void 0:k.defaultOpenValue),Rt,E,I),ft=ie(jt,2),st=ft[0],Ze=ft[1],lt=Ut(function(mt,Se,xe){if(Ve(Se),M&&xe!==!1){var ze=mt||De[De.length-1];M(ze,Se)}}),It=function(){dt(Pe()),J(!1,{force:!0})},at=function(Se){!C&&!ae.current.nativeElement.contains(document.activeElement)&&ae.current.focus(),J(!0),Q==null||Q(Se)},vt=function(){dt(null),J(!1,{force:!0})},bt=l.useState(null),Qe=ie(bt,2),ot=Qe[0],Xe=Qe[1],qe=l.useState(null),pt=ie(qe,2),Et=pt[0],_t=pt[1],Xt=l.useMemo(function(){var mt=[Et].concat(Oe(De)).filter(function(Se){return Se});return j?mt:mt.slice(0,1)},[De,Et,j]),Jt=l.useMemo(function(){return!j&&Et?[Et]:De.filter(function(mt){return mt})},[De,Et,j]);l.useEffect(function(){pe||_t(null)},[pe]);var Yt=ZU(ee),rn=function(Se){_t(Se),Xe("preset")},St=function(Se){var xe=j?de(Pe(),Se):[Se],ze=dt(xe);ze&&!j&&J(!1,{force:!0})},wt=function(Se){St(Se)},Nt=function(Se){_t(Se),Xe("cell")},hn=function(Se){J(!0),Ie(Se)},Fn=function(Se){Re("panel");var xe=j?de(Pe(),Se):[Se];Ee(xe),!y&&!i&&o===Le&&It()},rr=function(){J(!1)},fr=y$(oe,re,q),jr=l.useMemo(function(){var mt=Mn(a,!1),Se=yn(a,[].concat(Oe(Object.keys(mt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return K(K({},Se),{},{multiple:a.multiple})},[a]),yr=l.createElement(lV,ve({},jr,{showNow:We,showTime:k,disabledDate:x,onFocus:hn,onBlur:je,picker:P,mode:Be,internalMode:Le,onPanelChange:lt,format:c,value:De,isInvalid:u,onChange:null,onSelect:Fn,pickerValue:st,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:Ze,hoverValue:Xt,onHover:Nt,needConfirm:y,onSubmit:It,onOk:Fe,presets:Yt,onPresetHover:rn,onPresetSubmit:St,onNow:wt,cellRender:fr})),Wn=function(Se){Ee(Se)},Wt=function(){Re("input")},Lt=function(Se){Re("input"),J(!0,{inherit:!0}),Ie(Se)},Ht=function(Se){J(!1),je(Se)},Dt=function(Se,xe){Se.key==="Tab"&&It(),S==null||S(Se,xe)},Ft=l.useMemo(function(){return{prefixCls:f,locale:$,generateConfig:D,button:Z.button,input:Z.input}},[f,$,D,Z.button,Z.input]);return qt(function(){pe&&me!==void 0&<(null,P,!1)},[pe,me,P]),qt(function(){var mt=Re();!pe&&mt==="input"&&(J(!1),It()),!pe&&i&&!y&&mt==="panel"&&(J(!0),It())},[pe]),l.createElement(Yo.Provider,{value:Ft},l.createElement(DU,ve({},FU(a),{popupElement:yr,popupStyle:p.popup,popupClassName:g.popup,visible:pe,onClose:rr}),l.createElement(Lfe,ve({},a,{ref:ae,suffixIcon:X,removeIcon:W,activeHelp:!!Et,allHelp:!!Et&&ot==="preset",focused:$e,onFocus:Lt,onBlur:Ht,onKeyDown:Dt,onSubmit:It,value:Jt,maskFormat:c,onChange:Wn,onInputChange:Wt,internalPicker:o,format:s,inputReadOnly:U,disabled:C,open:pe,onOpenChange:J,onClick:at,onClear:vt,invalid:Tt,onInvalid:function(Se){rt(Se,0)}}))))}var jfe=l.forwardRef(Ffe);const dV=l.createContext(null),Bfe=dV.Provider,fV=l.createContext(null),zfe=fV.Provider;var Hfe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],pV=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,p=e.title,g=e.onChange,v=xt(e,Hfe),m=l.useRef(null),h=l.useRef(null),y=on(u,{value:i}),b=ie(y,2),S=b[0],C=b[1];l.useImperativeHandle(t,function(){return{focus:function(R){var T;(T=m.current)===null||T===void 0||T.focus(R)},blur:function(){var R;(R=m.current)===null||R===void 0||R.blur()},input:m.current,nativeElement:h.current}});var x=ne(r,a,V(V({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),E=function(R){s||("checked"in e||C(R.target.checked),g==null||g({target:K(K({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return l.createElement("span",{className:x,title:p,style:o,ref:h},l.createElement("input",ve({},v,{className:"".concat(r,"-input"),ref:m,onChange:E,disabled:s,checked:!!S,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});const Ufe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Qt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Vfe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:g,dotColorDisabled:v,lineType:m,radioColor:h,radioBgColor:y,calc:b}=e,S=`${t}-inner`,x=b(a).sub(b(4).mul(2)),E=b(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${G(d)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},Wi(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:b(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${b(x).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},Wfe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:g,controlHeightSM:v,paddingXS:m,borderRadius:h,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:S,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:E,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:R,colorPrimary:T,colorPrimaryHover:_,colorPrimaryActive:$,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:A,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(O(n).sub(O(a).mul(2)).equal()),background:f,border:`${G(a)} ${o} ${i}`,borderBlockStartWidth:O(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(a).mul(-1).equal(),insetInlineStart:O(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(a)} ${o} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:G(O(g).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:O(m).sub(a).equal(),paddingBlock:0,lineHeight:G(O(v).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:T},"&:has(:focus-visible)":Object.assign({},Wi(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:T,background:S,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:D,borderColor:D,"&:hover":{color:C,background:P,borderColor:P},"&:active":{color:C,background:A,borderColor:A}},"&-disabled":{color:x,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:I,borderColor:i,boxShadow:"none"}}}},Gfe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:g,colorWhite:v}=e,m=4,h=o,y=t?h-m*2:h-(m+a)*2;return{radioSize:h,dotSize:y,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:v,radioBgColor:t?s:f}},gV=nn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,o=zt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Ufe(o),Vfe(o),Wfe(o)]},Gfe,{unitless:{radioSize:!0,dotSize:!0}});var qfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=l.useContext(dV),o=l.useContext(fV),{getPrefixCls:i,direction:s,radio:c}=l.useContext(it),u=l.useRef(null),d=Pr(t,u),{isFormItemInput:f}=l.useContext(Rr),p=A=>{var O,k;(O=e.onChange)===null||O===void 0||O.call(e,A),(k=a==null?void 0:a.onChange)===null||k===void 0||k.call(a,A)},{prefixCls:g,className:v,rootClassName:m,children:h,style:y,title:b}=e,S=qfe(e,["prefixCls","className","rootClassName","children","style","title"]),C=i("radio",g),x=((a==null?void 0:a.optionType)||o)==="button",E=x?`${C}-button`:C,I=Yn(C),[R,T,_]=gV(C,I),$=Object.assign({},S),D=l.useContext(Gr);a&&($.name=a.name,$.onChange=p,$.checked=e.value===a.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:a.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:D;const P=ne(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},c==null?void 0:c.className,v,m,T,_,I);return R(l.createElement(rg,{component:"Radio",disabled:$.disabled},l.createElement("label",{className:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},l.createElement(pV,Object.assign({},$,{className:ne($.className,{[Nb]:!x}),type:"radio",prefixCls:E,ref:d})),h!==void 0?l.createElement("span",null,h):null)))},Iv=l.forwardRef(Kfe),Yfe=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(it),[a,o]=on(e.defaultValue,{value:e.value}),i=A=>{const O=a,k=A.target.value;"value"in e||o(k);const{onChange:N}=e;N&&k!==O&&N(A)},{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:p,children:g,size:v,style:m,id:h,onMouseEnter:y,onMouseLeave:b,onFocus:S,onBlur:C}=e,x=n("radio",s),E=`${x}-group`,I=Yn(x),[R,T,_]=gV(x,I);let $=g;d&&d.length>0&&($=d.map(A=>typeof A=="string"||typeof A=="number"?l.createElement(Iv,{key:A.toString(),prefixCls:x,disabled:p,value:A,checked:a===A},A):l.createElement(Iv,{key:`radio-group-value-options-${A.value}`,prefixCls:x,disabled:A.disabled||p,value:A.value,checked:a===A.value,title:A.title,style:A.style,id:A.id,required:A.required},A.label)));const D=dr(v),P=ne(E,`${E}-${f}`,{[`${E}-${D}`]:D,[`${E}-rtl`]:r==="rtl"},c,u,T,_,I);return R(l.createElement("div",Object.assign({},Mn(e,{aria:!0,data:!0}),{className:P,style:m,onMouseEnter:y,onMouseLeave:b,onFocus:S,onBlur:C,id:h,ref:t}),l.createElement(Bfe,{value:{onChange:i,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},$)))}),Xfe=l.memo(Yfe);var Zfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=l.useContext(it),{prefixCls:r}=e,a=Zfe(e,["prefixCls"]),o=n("radio",r);return l.createElement(zfe,{value:"button"},l.createElement(Iv,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},Jfe=l.forwardRef(Qfe),Va=Iv;Va.Button=Jfe;Va.Group=Xfe;Va.__ANT_RADIO=!0;function vg(e){return zt(e,{inputAffixPadding:e.paddingXXS})}const bg=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:g,colorPrimary:v,controlOutlineWidth:m,controlOutline:h,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:p,activeBorderColor:v,hoverBorderColor:g,activeShadow:`0 0 0 ${m}px ${h}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},epe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),s0=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({},epe(zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),E$=(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}}),gM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},E$(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),I$=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E$(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},s0(e))}),gM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),gM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),mM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),mV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},mM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),mM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},s0(e))}})}),T$=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},hV=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),hM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hV(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),R$=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},s0(e))}),hM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),hM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),vM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),vV=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},vM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),vM(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),_$=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bV=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${G(t)} ${G(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},$$=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),yg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_$(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},bV(e)),"&-sm":Object.assign({},$$(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yV=e=>{const{componentCls:t,antCls:n}=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({},bV(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},$$(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-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,[`${n}-select ${n}-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,[`${n}-select ${n}-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"},Vo()),{[`${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},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${G(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},xde=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Ede=tn("Breadcrumb",e=>{const t=Bt(e,{});return Cde(t)},xde);var lM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,s=lM(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:i})})}),a}function Tde(e,t){return l.useMemo(()=>e||(t?t.map(Ide):null),[e,t])}var Rde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},mg=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:s,children:c,itemRender:u,params:d={}}=e,f=Rde(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:g,breadcrumb:v}=l.useContext(ct);let m;const h=p("breadcrumb",t),[y,b,S]=Ede(h),C=Tde(s,i),x=Sde(h,u);if(C&&C.length>0){const R=[],T=s||i;m=C.map((_,$)=>{const{path:D,key:P,type:A,menu:O,overlay:k,onClick:N,className:M,separator:L,dropdownProps:F}=_,j=_de(d,D);j!==void 0&&R.push(j);const B=P??$;if(A==="separator")return l.createElement(e0,{key:B},L);const z={},H=$===C.length-1;O?z.menu=O:k&&(z.overlay=k);let{href:U}=_;return R.length&&j!==void 0&&(U=`#/${R.join("/")}`),l.createElement(IU,Object.assign({key:B},z,Pn(_,{data:!0,aria:!0}),{className:M,dropdownProps:F,href:U,separator:H?"":n,onClick:N,prefixCls:h}),x(_,d,T,R,U))})}else if(c){const R=ir(c).length;m=ir(c).map((T,_)=>{if(!T)return T;const $=_===R-1;return ur(T,{separator:$?"":n,key:_})})}const E=ne(h,v==null?void 0:v.className,{[`${h}-rtl`]:g==="rtl"},a,o,b,S),I=Object.assign(Object.assign({},v==null?void 0:v.style),r);return y(l.createElement("nav",Object.assign({className:E,style:I},f),l.createElement("ol",null,m)))};mg.Item=wde;mg.Separator=e0;var RU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",c="hour",u="day",d="week",f="month",p="quarter",g="year",v="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var O=["th","st","nd","rd"],k=A%100;return"["+A+(O[(k-20)%10]||O[k]||O[0])+"]"}},S=function(A,O,k){var N=String(A);return!N||N.length>=O?A:""+Array(O+1-N.length).join(k)+A},C={s:S,z:function(A){var O=-A.utcOffset(),k=Math.abs(O),N=Math.floor(k/60),M=k%60;return(O<=0?"+":"-")+S(N,2,"0")+":"+S(M,2,"0")},m:function A(O,k){if(O.date()1)return A(F[0])}else{var j=O.name;E[j]=O,M=j}return!N&&M&&(x=M),M||!N&&x},_=function(A,O){if(R(A))return A.clone();var k=typeof O=="object"?O:{};return k.date=A,k.args=arguments,new D(k)},$=C;$.l=T,$.i=R,$.w=function(A,O){return _(A,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var D=function(){function A(k){this.$L=T(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[I]=!0}var O=A.prototype;return O.parse=function(k){this.$d=function(N){var M=N.date,L=N.utc;if(M===null)return new Date(NaN);if($.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var F=M.match(h);if(F){var j=F[2]-1||0,B=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(M)}(k),this.init()},O.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},O.$utils=function(){return $},O.isValid=function(){return this.$d.toString()!==m},O.isSame=function(k,N){var M=_(k);return this.startOf(N)<=M&&M<=this.endOf(N)},O.isAfter=function(k,N){return _(k)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var p=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(OU);var Mde=OU.exports;const Dde=fa(Mde);var NU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(NU);var Pde=NU.exports;const Lde=fa(Pde);var kU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return o.bind(this)(d)}}})})(kU);var Fde=kU.exports;const jde=fa(Fde);var AU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(h){this[m]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var y=h.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(m)}],f=function(m){var h=s[m];return h&&(h.indexOf?h:h.s.concat(h.f))},p=function(m,h){var y,b=s.meridiem;if(b){for(var S=1;S<=24;S+=1)if(m.indexOf(b(S,0,h))>-1){y=S>12;break}}else y=m===(h?"pm":"PM");return y},g={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[a,u("day")],Do:[i,function(m){var h=s.ordinal,y=m.match(/\d+/);if(this.day=y[0],h)for(var b=1;b<=31;b+=1)h(b).replace(/\[|\]/g,"")===m&&(this.day=b)}],M:[o,u("month")],MM:[a,u("month")],MMM:[i,function(m){var h=f("months"),y=(f("monthsShort")||h.map(function(b){return b.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(m){var h=f("months").indexOf(m)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function v(m){var h,y;h=m,y=s&&s.formats;for(var b=(m=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,_,$){var D=$&&$.toUpperCase();return _||y[$]||n[$]||y[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,A,O){return A||O.slice(1)})})).match(r),S=b.length,C=0;C-1)return new Date((N==="X"?1e3:1)*k);var L=v(N)(k),F=L.year,j=L.month,B=L.day,z=L.hours,H=L.minutes,U=L.seconds,X=L.milliseconds,W=L.zone,Y=new Date,te=B||(F||j?1:Y.getDate()),ee=F||Y.getFullYear(),Z=0;F&&!j||(Z=j>0?j-1:Y.getMonth());var oe=z||0,re=H||0,q=U||0,Q=X||0;return W?new Date(Date.UTC(ee,Z,te,oe,re,q,Q+60*W.offset*1e3)):M?new Date(Date.UTC(ee,Z,te,oe,re,q,Q)):new Date(ee,Z,te,oe,re,q,Q)}catch{return new Date("")}}(x,R,E),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),$&&x!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var P=R.length,A=1;A<=P;A+=1){I[1]=R[A-1];var O=y.apply(this,I);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}A===P&&(this.$d=new Date(""))}else S.call(this,C)}}})})(AU);var Bde=AU.exports;const zde=fa(Bde);ba.extend(zde);ba.extend(jde);ba.extend(Nde);ba.extend(Ade);ba.extend(Dde);ba.extend(Lde);ba.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var Hde={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},dl=function(t){var n=Hde[t];return n||t.split("_")[0]},cM=function(){ez(!1,"Not match any format. Please help to fire a issue about this.")},Ude={getNow:function(){return ba()},getFixedDate:function(t){return ba(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ba().locale(dl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(dl(t)).weekday(0)},getWeek:function(t,n){return n.locale(dl(t)).week()},getShortWeekDays:function(t){return ba().locale(dl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ba().locale(dl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(dl(t)).format(r)},parse:function(t,n,r){for(var a=dl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=ie(r,2),o=a[0],i=a[1],s=function(d,f){i(function(p){return Nf(p,f,d)})},c=l.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,s]}function BU(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function Wde(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,g=e.yearFormat,v=e.cellYearFormat,m=e.cellQuarterFormat,h=e.dayFormat,y=e.cellDateFormat,b=BU(t,n,r,a,o);return K(K({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:y||h||"D"})}function zU(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return le.useMemo(function(){return Wde(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Ud(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Gde=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function qde(e){var t=n0(e,Gde),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=mt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function Kde(e){return e&&typeof e=="string"}function HU(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function UU(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var c,u,d,f=[o,i,s].some(function(v){return v===!1}),p=[o,i,s].some(function(v){return v===!0}),g=f?!0:!p;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,s=(d=s)!==null&&d!==void 0?d:g}return[o,i,s,a]}function VU(e){var t=e.showTime,n=qde(e),r=ie(n,2),a=r[0],o=r[1],i=t&&mt(t)==="object"?t:{},s=K(K({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,p=HU(u,d,f,c),g=UU(p,u,d,f,c),v=ie(g,3);return u=v[0],d=v[1],f=v[2],[s,K(K({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,o]}function WU(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=PU(e,a,null),c=s,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function Ir(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Ev(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function Qde(e,t,n,r,a){var o=zt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!na(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!na(e,t,a,i,s.type))});return o}function Jde(e,t,n){return l.useMemo(function(){var r=PU(e,t,n),a=fc(r),o=a[0],i=mt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function efe(e,t,n){return typeof e[0]=="function"||n?!0:t}function tfe(e,t,n,r){var a=zt(function(o,i){var s=K({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:s.from}))||{},f=d.disabledHours,p=d.disabledMinutes,g=d.disabledSeconds,v=d.disabledMilliseconds,m=r.disabledHours,h=r.disabledMinutes,y=r.disabledSeconds,b=f||m,S=p||h,C=g||y,x=e.getHour(o),E=e.getMinute(o),I=e.getSecond(o),R=e.getMillisecond(o);if(b&&b().includes(x)||S&&S(x).includes(E)||C&&C(x,E).includes(I)||v&&v(x,E,I).includes(R))return!0}return!1});return a}function wm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&fc(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function KU(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,p=e.order,g=p===void 0?!0:p,v=e.components,m=v===void 0?{}:v,h=e.inputRender,y=e.allowClear,b=e.clearIcon,S=e.needConfirm,C=e.multiple,x=e.format,E=e.inputReadOnly,I=e.disabledDate,R=e.minDate,T=e.maxDate,_=e.showTime,$=e.value,D=e.defaultValue,P=e.pickerValue,A=e.defaultPickerValue,O=wm($),k=wm(D),N=wm(P),M=wm(A),L=o==="date"&&_?"datetime":o,F=L==="time"||L==="datetime",j=F||C,B=S??F,z=VU(e),H=ie(z,4),U=H[0],X=H[1],W=H[2],Y=H[3],te=zU(r,X),ee=l.useMemo(function(){return WU(L,W,Y,U,te)},[L,W,Y,U,te]),Z=l.useMemo(function(){return K(K({},e),{},{prefixCls:s,locale:te,picker:o,styles:u,classNames:f,order:g,components:K({input:h},m),clearIcon:Yde(s,y,b),showTime:ee,value:O,defaultValue:k,pickerValue:N,defaultPickerValue:M},t==null?void 0:t())},[e]),oe=Jde(L,te,x),re=ie(oe,2),q=re[0],Q=re[1],ae=efe(q,E,C),se=Qde(n,r,I,R,T),de=tfe(n,o,se,ee),he=l.useMemo(function(){return K(K({},Z),{},{needConfirm:B,inputReadOnly:ae,disabledDate:se})},[Z,B,ae,se]);return[he,L,j,q,Q,de]}function nfe(e,t,n){var r=on(t,{value:e}),a=ie(r,2),o=a[0],i=a[1],s=le.useRef(e),c=le.useRef(),u=function(){jt.cancel(c.current)},d=zt(function(){i(s.current),n&&o!==s.current&&n(s.current)}),f=zt(function(p,g){u(),s.current=p,p||g?d():c.current=jt(d)});return le.useEffect(function(){return u},[]),[o,f]}function YU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=nfe(a,t||!1,r),i=ie(o,2),s=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function XU(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function ZU(e,t){return l.useMemo(function(){return e||(t?(pn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ie(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function C$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,Pl(function(){if(e)r.current(e);else{var a=jt(function(){r.current(e)},n);return function(){jt.cancel(a)}}},[e])}function QU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=ie(r,2),o=a[0],i=a[1],s=l.useState(!1),c=ie(s,2),u=c[0],d=c[1],f=l.useRef([]),p=l.useRef(null),g=function(y){d(y)},v=function(y){return y&&(p.current=y),p.current},m=function(y){var b=f.current,S=new Set(b.filter(function(x){return y[x]||t[x]})),C=b[b.length-1]===0?1:0;return S.size>=2||e[C]?null:C};return C$(u||n,function(){u||(f.current=[])}),l.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,g,v,o,i,m,f.current]}function rfe(e,t,n,r,a,o){var i=n[n.length-1],s=function(u,d){var f=ie(e,2),p=f[0],g=f[1],v=K(K({},d),{},{from:LU(e,n)});return i===1&&t[0]&&p&&!na(r,a,p,u,v.type)&&r.isAfter(p,u)||i===0&&t[1]&&g&&!na(r,a,g,u,v.type)&&r.isAfter(u,g)?!0:o==null?void 0:o(u,v)};return s}function of(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var uS=[];function JU(e,t,n,r,a,o,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:uS,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:uS,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:uS,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,v=i==="time",m=o||0,h=function(N){var M=e.getNow();return v&&(M=Ev(e,M)),c[N]||n[N]||M},y=ie(u,2),b=y[0],S=y[1],C=on(function(){return h(0)},{value:b}),x=ie(C,2),E=x[0],I=x[1],R=on(function(){return h(1)},{value:S}),T=ie(R,2),_=T[0],$=T[1],D=l.useMemo(function(){var k=[E,_][m];return v?k:Ev(e,k,d[m])},[v,E,_,m,e,d]),P=function(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[I,$][m];L(N);var F=[E,_];F[m]=N,f&&(!na(e,t,E,F[0],i)||!na(e,t,_,F[1],i))&&f(F,{source:M,range:m===1?"end":"start",mode:r})},A=function(N,M){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},F=L[i];if(F&&!na(e,t,N,M,F))return of(e,i,M,-1);if(i==="year"&&N){var j=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(M)/10);if(j!==B)return of(e,i,M,-1)}}return M},O=l.useRef(null);return Wt(function(){if(a&&!c[m]){var k=v?null:e.getNow();if(O.current!==null&&O.current!==m?k=[E,_][m^1]:n[m]?k=m===0?n[0]:A(n[0],n[1]):n[m^1]&&(k=n[m^1]),k){p&&e.isAfter(p,k)&&(k=p);var N=s?of(e,i,k,1):k;g&&e.isAfter(N,g)&&(k=s?of(e,i,g,-1):g),P(k,"reset")}}},[a,m,n[m]]),l.useEffect(function(){a?O.current=m:O.current=null},[a,m]),Wt(function(){a&&c&&c[m]&&P(c[m],"reset")},[a,m]),[D,P]}function eV(e,t){var n=l.useRef(e),r=l.useState({}),a=ie(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,o({})};return[i,s,i(!0)]}var afe=[];function tV(e,t,n){var r=function(i){return i.map(function(s){return Ir(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=a.includes(c);(!u||!r)&&i.push({label:b$(c,o),value:c,disabled:u})}return i}function x$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,p=f===void 0?100:f,g=r.hideDisabledOptions,v=r.disabledTime,m=r.disabledHours,h=r.disabledMinutes,y=r.disabledSeconds,b=l.useMemo(function(){return n||e.getNow()},[n,e]),S=l.useCallback(function(M){var L=(v==null?void 0:v(M))||{};return[L.disabledHours||m||Cm,L.disabledMinutes||h||Cm,L.disabledSeconds||y||Cm,L.disabledMilliseconds||Cm]},[v,m,h,y]),C=l.useMemo(function(){return S(b)},[b,S]),x=ie(C,4),E=x[0],I=x[1],R=x[2],T=x[3],_=l.useCallback(function(M,L,F,j){var B=xm(0,23,i,g,M()),z=a?B.map(function(W){return K(K({},W),{},{label:b$(W.value%12||12,2)})}):B,H=function(Y){return xm(0,59,c,g,L(Y))},U=function(Y,te){return xm(0,59,d,g,F(Y,te))},X=function(Y,te,ee){return xm(0,999,p,g,j(Y,te,ee),3)};return[z,H,U,X]},[g,i,a,p,c,d]),$=l.useMemo(function(){return _(E,I,R,T)},[_,E,I,R,T]),D=ie($,4),P=D[0],A=D[1],O=D[2],k=D[3],N=function(L,F){var j=function(){return P},B=A,z=O,H=k;if(F){var U=S(F),X=ie(U,4),W=X[0],Y=X[1],te=X[2],ee=X[3],Z=_(W,Y,te,ee),oe=ie(Z,4),re=oe[0],q=oe[1],Q=oe[2],ae=oe[3];j=function(){return re},B=q,z=Q,H=ae}var se=ife(L,j,B,z,H,e);return se};return[N,P,A,O,k]}function sfe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=l.useContext(Yo),g=p.prefixCls,v=p.locale,m=p.button,h=m===void 0?"button":m,y=d.getNow(),b=x$(d,o,y),S=ie(b,1),C=S[0],x=r==null?void 0:r(t),E=f(y,{type:t}),I=function(){if(!E){var A=C(y);s(A)}},R="".concat(g,"-now"),T="".concat(R,"-btn"),_=a&&l.createElement("li",{className:R},l.createElement("a",{className:ne(T,E&&"".concat(T,"-disabled")),"aria-disabled":E,onClick:I},n==="date"?v.today:v.now)),$=u&&l.createElement("li",{className:"".concat(g,"-ok")},l.createElement(h,{disabled:c,onClick:i},v.ok)),D=(_||$)&&l.createElement("ul",{className:"".concat(g,"-ranges")},_,$);return!x&&!D?null:l.createElement("div",{className:"".concat(g,"-footer")},x&&l.createElement("div",{className:"".concat(g,"-footer-extra")},x),D)}function iV(e,t,n){function r(a,o){var i=a.findIndex(function(c){return na(e,t,c,o,n)});if(i===-1)return[].concat(Oe(a),[o]);var s=Oe(a);return s.splice(i,1),s}return r}var pc=l.createContext(null);function a0(){return l.useContext(pc)}function cd(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,g=e.pickerValue,v=e.onSelect,m=e.prevIcon,h=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,S=r.getNow(),C={now:S,values:p,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:v,panelType:t,prevIcon:m,nextIcon:h,superPrevIcon:y,superNextIcon:b};return[C,S]}var Ms=l.createContext({});function hg(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,g=e.disabledDate,v=a0(),m=v.prefixCls,h=v.panelType,y=v.now,b=v.disabledDate,S=v.cellRender,C=v.onHover,x=v.hoverValue,E=v.hoverRangeValue,I=v.generateConfig,R=v.values,T=v.locale,_=v.onSelect,$=g||b,D="".concat(m,"-cell"),P=l.useContext(Ms),A=P.onCellDblClick,O=function(z){return R.some(function(H){return H&&na(I,T,z,H,h)})},k=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;J(_e),h==null||h(_e),we&&ce(_e)},fe=function(_e,we){te(_e),we&&ue(we),ce(we,_e)},be=function(_e){if(de(_e),ue(_e),Y!==C){var we=["decade","year"],Te=[].concat(we,["month"]),me={quarter:[].concat(we,["quarter"]),week:[].concat(Oe(Te),["week"]),date:[].concat(Oe(Te),["date"])},xe=me[C]||Te,Be=xe.indexOf(Y),ke=xe[Be+1];ke&&fe(ke,_e)}},Ee=l.useMemo(function(){var Se,_e;if(Array.isArray(I)){var we=ie(I,2);Se=we[0],_e=we[1]}else Se=I;return!Se&&!_e?null:(Se=Se||_e,_e=_e||Se,a.isAfter(Se,_e)?[_e,Se]:[Se,_e])},[I,a]),Re=y$(R,T,_),Fe=D[ee]||bfe[ee]||o0,Ce=l.useContext(Ms),ze=l.useMemo(function(){return K(K({},Ce),{},{hideHeader:P})},[Ce,P]),Pe="".concat(A,"-panel"),Ae=n0(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Ms.Provider,{value:ze},l.createElement("div",{ref:O,tabIndex:c,className:ne(Pe,V({},"".concat(Pe,"-rtl"),o==="rtl"))},l.createElement(Fe,ve({},Ae,{showTime:H,prefixCls:A,locale:B,generateConfig:a,onModeChange:fe,pickerValue:pe,onPickerValueChange:function(_e){ue(_e,!0)},value:ae[0],onSelect:be,values:ae,cellRender:Re,hoverRangeValue:Ee,hoverValue:E}))))}var dS=l.memo(l.forwardRef(yfe));function Sfe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(Yo),d=u.prefixCls,f=u.generateConfig,p=l.useCallback(function(b,S){return of(f,t,b,S)},[f,t]),g=l.useMemo(function(){return p(r,1)},[r,p]),v=function(S){a(p(S,-1))},m={onCellDblClick:function(){o&&i()}},h=t==="time",y=K(K({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return s?y.hoverRangeValue=c:y.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(Ms.Provider,{value:K(K({},m),{},{hideNext:!0})},l.createElement(dS,y)),l.createElement(Ms.Provider,{value:K(K({},m),{},{hidePrev:!0})},l.createElement(dS,ve({},y,{pickerValue:g,onPickerValueChange:v})))):l.createElement(Ms.Provider,{value:K({},m)},l.createElement(dS,y))}function dM(e){return typeof e=="function"?e():e}function wfe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,i){var s=o.label,c=o.value;return l.createElement("li",{key:i,onClick:function(){r(dM(c))},onMouseEnter:function(){a(dM(c))},onMouseLeave:function(){a(null)}},s)}))):null}function lV(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,g=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,h=e.direction,y=e.value,b=e.onSelect,S=e.isInvalid,C=e.defaultOpenValue,x=e.onOk,E=e.onSubmit,I=l.useContext(Yo),R=I.prefixCls,T="".concat(R,"-panel"),_=h==="rtl",$=l.useRef(null),D=l.useRef(null),P=l.useState(0),A=ie(P,2),O=A[0],k=A[1],N=l.useState(0),M=ie(N,2),L=M[0],F=M[1],j=function(se){se.offsetWidth&&k(se.offsetWidth)};l.useEffect(function(){if(o){var ae,se=((ae=$.current)===null||ae===void 0?void 0:ae.offsetWidth)||0,de=O-se;c<=de?F(0):F(c+se-O)}},[O,c,o]);function B(ae){return ae.filter(function(se){return se})}var z=l.useMemo(function(){return B(fc(y))},[y]),H=r==="time"&&!z.length,U=l.useMemo(function(){return H?B([C]):z},[H,z,C]),X=H?C:z,W=l.useMemo(function(){return U.length?U.some(function(ae){return S(ae)}):!0},[U,S]),Y=function(){H&&b(C),x(),E()},te=l.createElement("div",{className:"".concat(R,"-panel-layout")},l.createElement(wfe,{prefixCls:R,presets:d,onClick:p,onHover:f}),l.createElement("div",null,l.createElement(Sfe,ve({},e,{value:X})),l.createElement(sfe,ve({},e,{showNow:i?!1:a,invalid:W,onSubmit:Y}))));t&&(te=t(te));var ee="".concat(T,"-container"),Z="marginLeft",oe="marginRight",re=l.createElement("div",{onMouseDown:m,tabIndex:-1,className:ne(ee,"".concat(R,"-").concat(n,"-panel-container")),style:V(V({},_?oe:Z,L),_?Z:oe,"auto"),onFocus:g,onBlur:v},te);if(o){var q=t0(u,_),Q=MU(q,_);re=l.createElement("div",{onMouseDown:m,ref:D,className:ne("".concat(R,"-range-wrapper"),"".concat(R,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:$,className:"".concat(R,"-range-arrow"),style:V({},Q,c)}),l.createElement(Ur,{onResize:j},re))}return re}function cV(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,g=e.onInputChange,v=e.onInvalid,m=e.open,h=e.onOpenChange,y=e.onKeyDown,b=e.onChange,S=e.activeHelp,C=e.name,x=e.autoComplete,E=e.id,I=e.value,R=e.invalid,T=e.placeholder,_=e.disabled,$=e.activeIndex,D=e.allHelp,P=e.picker,A=function(B,z){var H=a.locale.parse(o.locale,B,[z]);return H&&a.isValidate(H)?H:null},O=n[0],k=l.useCallback(function(j){return Ir(j,{locale:o,format:O,generateConfig:a})},[o,a,O]),N=l.useMemo(function(){return I.map(k)},[I,k]),M=l.useMemo(function(){var j=P==="time"?8:10,B=typeof O=="function"?O(a.getNow()).length:O.length;return Math.max(j,B)+2},[O,P,a]),L=function(B){for(var z=0;z=s&&n<=c)return o;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u0?tt:Ye));var We=Ue+Ge,Ke=Ye-tt+1;return String(tt+(Ke+We-tt)%Ke)};switch(_e){case"Backspace":case"Delete":we="",Te=xe;break;case"ArrowLeft":we="",Be(-1);break;case"ArrowRight":we="",Be(1);break;case"ArrowUp":we="",Te=ke(1);break;case"ArrowDown":we="",Te=ke(-1);break;default:isNaN(Number(_e))||(we=j+_e,Te=we);break}if(we!==null&&(B(we),we.length>=me&&(Be(1),B(""))),Te!==null){var Ne=Z.slice(0,se)+b$(Te,me)+Z.slice(de);ye(Ne.slice(0,i.length))}ee({})},ze=l.useRef();Wt(function(){if(!(!P||!i||ce.current)){if(!q.match(Z)){ye(i);return}return re.current.setSelectionRange(se,de),ze.current=jt(function(){re.current.setSelectionRange(se,de)}),function(){jt.cancel(ze.current)}}},[q,i,P,Z,U,se,de,te,ye]);var Pe=i?{onFocus:be,onBlur:Re,onKeyDown:Ce,onMouseDown:ue,onMouseUp:fe,onPaste:J}:{};return l.createElement("div",{ref:oe,className:ne(_,V(V({},"".concat(_,"-active"),n&&a),"".concat(_,"-placeholder"),u))},l.createElement(T,ve({ref:re,"aria-invalid":m,autoComplete:"off"},y,{onKeyDown:Fe,onBlur:Ee},Pe,{value:Z,onChange:pe})),l.createElement(i0,{type:"suffix",icon:o}),h)}),_fe=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],$fe=["index"];function Ofe(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,o=e.separator,i=o===void 0?"~":o,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,p=e.onClick,g=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var m=e.disabled,h=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,S=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,E=xt(e,_fe),I=y==="rtl",R=l.useContext(Yo),T=R.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var Z=n||{};return[Z.start,Z.end]},[n]),$=l.useRef(),D=l.useRef(),P=l.useRef(),A=function(oe){var re;return(re=[D,P][oe])===null||re===void 0?void 0:re.current};l.useImperativeHandle(t,function(){return{nativeElement:$.current,focus:function(oe){if(mt(oe)==="object"){var re,q=oe||{},Q=q.index,ae=Q===void 0?0:Q,se=xt(q,$fe);(re=A(ae))===null||re===void 0||re.focus(se)}else{var de;(de=A(oe??0))===null||de===void 0||de.focus()}},blur:function(){var oe,re;(oe=A(0))===null||oe===void 0||oe.blur(),(re=A(1))===null||re===void 0||re.blur()}}});var O=uV(E),k=l.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=cV(K(K({},e),{},{id:_,placeholder:k})),M=ie(N,1),L=M[0],F=t0(S,I),j=MU(F,I),B=F==null?void 0:F.toLowerCase().endsWith("right"),z=l.useState({position:"absolute",width:0}),H=ie(z,2),U=H[0],X=H[1],W=zt(function(){var Z=A(s);if(Z){var oe=Z.nativeElement,re=oe.offsetWidth,q=oe.offsetLeft,Q=oe.offsetParent,ae=(Q==null?void 0:Q.offsetWidth)||0,se=B?ae-re-q:q;X(function(de){return K(K({},de),{},V({width:re},j,se))}),b(se)}});l.useEffect(function(){W()},[s]);var Y=r&&(v[0]&&!m[0]||v[1]&&!m[1]),te=x&&!m[0],ee=x&&!te&&!m[1];return l.createElement(Ur,{onResize:W},l.createElement("div",ve({},O,{className:ne(T,"".concat(T,"-range"),V(V(V(V({},"".concat(T,"-focused"),c),"".concat(T,"-disabled"),m.every(function(Z){return Z})),"".concat(T,"-invalid"),h.some(function(Z){return Z})),"".concat(T,"-rtl"),I),d),style:f,ref:$,onClick:p,onMouseDown:function(oe){var re=oe.target;re!==D.current.inputElement&&re!==P.current.inputElement&&oe.preventDefault(),C==null||C(oe)}}),l.createElement(MT,ve({ref:D},L(0),{autoFocus:te,"date-range":"start"})),l.createElement("div",{className:"".concat(T,"-range-separator")},i),l.createElement(MT,ve({ref:P},L(1),{autoFocus:ee,"date-range":"end"})),l.createElement("div",{className:"".concat(T,"-active-bar"),style:U}),l.createElement(i0,{type:"suffix",icon:a}),Y&&l.createElement(AT,{icon:r,onClear:g})))}var Nfe=l.forwardRef(Ofe);function pM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Im(e){return e===1?"end":"start"}function kfe(e,t){var n=KU(e,function(){var Me=e.disabled,Ze=e.allowEmpty,Le=pM(Me,!1),it=pM(Ze,!1);return{disabled:Le,allowEmpty:it}}),r=ie(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,p=a.classNames,g=a.placement,v=a.defaultValue,m=a.value,h=a.needConfirm,y=a.onKeyDown,b=a.disabled,S=a.allowEmpty,C=a.disabledDate,x=a.minDate,E=a.maxDate,I=a.defaultOpen,R=a.open,T=a.onOpenChange,_=a.locale,$=a.generateConfig,D=a.picker,P=a.showNow,A=a.showToday,O=a.showTime,k=a.mode,N=a.onPanelChange,M=a.onCalendarChange,L=a.onOk,F=a.defaultPickerValue,j=a.pickerValue,B=a.onPickerValueChange,z=a.inputReadOnly,H=a.suffixIcon,U=a.onFocus,X=a.onBlur,W=a.presets,Y=a.ranges,te=a.components,ee=a.cellRender,Z=a.dateRender,oe=a.monthCellRender,re=a.onClick,q=XU(t),Q=YU(R,I,b,T),ae=ie(Q,2),se=ae[0],de=ae[1],he=function(Ze,Le){(b.some(function(it){return!it})||!Ze)&&de(Ze,Le)},ye=rV($,_,s,!0,!1,v,m,M,L),pe=ie(ye,5),J=pe[0],ce=pe[1],ue=pe[2],fe=pe[3],be=pe[4],Ee=ue(),Re=QU(b,S,se),Fe=ie(Re,7),Ce=Fe[0],ze=Fe[1],Pe=Fe[2],Ae=Fe[3],Se=Fe[4],_e=Fe[5],we=Fe[6],Te=function(Ze,Le){ze(!0),U==null||U(Ze,{range:Im(Le??Ae)})},me=function(Ze,Le){ze(!1),X==null||X(Ze,{range:Im(Le??Ae)})},xe=l.useMemo(function(){if(!O)return null;var Me=O.disabledTime,Ze=Me?function(Le){var it=Im(Ae),Nt=LU(Ee,we,Ae);return Me(Le,it,{from:Nt})}:void 0;return K(K({},O),{},{disabledTime:Ze})},[O,Ae,Ee,we]),Be=on([D,D],{value:k}),ke=ie(Be,2),Ne=ke[0],He=ke[1],Ge=Ne[Ae]||D,je=Ge==="date"&&xe?"datetime":Ge,qe=je===D&&je!=="time",tt=oV(D,Ge,P,A,!0),Ye=aV(a,J,ce,ue,fe,b,s,Ce,se,u),ft=ie(Ye,2),ht=ft[0],Ue=ft[1],We=rfe(Ee,b,we,$,_,C),Ke=jU(Ee,u,S),st=ie(Ke,2),Tt=st[0],Rt=st[1],Ft=JU($,_,Ee,Ne,se,Ae,o,qe,F,j,xe==null?void 0:xe.defaultOpenValue,B,x,E),pt=ie(Ft,2),lt=pt[0],Je=pt[1],ut=zt(function(Me,Ze,Le){var it=Nf(Ne,Ae,Ze);if((it[0]!==Ne[0]||it[1]!==Ne[1])&&He(it),N&&Le!==!1){var Nt=Oe(Ee);Me&&(Nt[Ae]=Me),N(Nt,it)}}),It=function(Ze,Le){return Nf(Ee,Le,Ze)},at=function(Ze,Le){var it=Ee;Ze&&(it=It(Ze,Ae));var Nt=_e(it);fe(it),ht(Ae,Nt===null),Nt===null?he(!1,{force:!0}):Le||q.current.focus({index:Nt})},bt=function(Ze){var Le,it=Ze.target.getRootNode();if(!q.current.nativeElement.contains((Le=it.activeElement)!==null&&Le!==void 0?Le:document.activeElement)){var Nt=b.findIndex(function(an){return!an});Nt>=0&&q.current.focus({index:Nt})}he(!0),re==null||re(Ze)},yt=function(){Ue(null),he(!1,{force:!0})},et=l.useState(null),ot=ie(et,2),Qe=ot[0],Xe=ot[1],gt=l.useState(null),Et=ie(gt,2),$t=Et[0],qt=Et[1],Zt=l.useMemo(function(){return $t||Ee},[Ee,$t]);l.useEffect(function(){se||qt(null)},[se]);var Kt=l.useState(0),Qt=ie(Kt,2),wt=Qt[0],Ct=Qt[1],Ot=ZU(W,Y),mn=function(Ze){qt(Ze),Xe("preset")},Bn=function(Ze){var Le=Ue(Ze);Le&&he(!1,{force:!0})},sr=function(Ze){at(Ze)},fr=function(Ze){qt(Ze?It(Ze,Ae):null),Xe("cell")},jr=function(Ze){he(!0),Te(Ze)},yr=function(){Pe("panel")},zn=function(Ze){var Le=Nf(Ee,Ae,Ze);fe(Le),!h&&!i&&o===je&&at(Ze)},Vt=function(){he(!1)},Pt=y$(ee,Z,oe,Im(Ae)),Ut=Ee[Ae]||null,Lt=zt(function(Me){return u(Me,{activeIndex:Ae})}),Mt=l.useMemo(function(){var Me=Pn(a,!1),Ze=Sn(a,[].concat(Oe(Object.keys(Me)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ze},[a]),vt=l.createElement(lV,ve({},Mt,{showNow:tt,showTime:xe,range:!0,multiplePanel:qe,activeOffset:wt,placement:g,disabledDate:We,onFocus:jr,onBlur:me,onPanelMouseDown:yr,picker:D,mode:Ge,internalMode:je,onPanelChange:ut,format:c,value:Ut,isInvalid:Lt,onChange:null,onSelect:zn,pickerValue:lt,defaultOpenValue:fc(O==null?void 0:O.defaultOpenValue)[Ae],onPickerValueChange:Je,hoverValue:Zt,onHover:fr,needConfirm:h,onSubmit:at,onOk:be,presets:Ot,onPresetHover:mn,onPresetSubmit:Bn,onNow:sr,cellRender:Pt})),St=function(Ze,Le){var it=It(Ze,Le);fe(it)},nn=function(){Pe("input")},vn=function(Ze,Le){Pe("input"),he(!0,{inherit:!0}),Ae!==Le&&se&&!h&&i&&at(null,!0),Se(Le),Te(Ze,Le)},bn=function(Ze,Le){if(he(!1),!h&&Pe()==="input"){var it=_e(Ee);ht(Ae,it===null)}me(Ze,Le)},$e=function(Ze,Le){Ze.key==="Tab"&&at(null,!0),y==null||y(Ze,Le)},Ie=l.useMemo(function(){return{prefixCls:d,locale:_,generateConfig:$,button:te.button,input:te.input}},[d,_,$,te.button,te.input]);return Wt(function(){se&&Ae!==void 0&&ut(null,D,!1)},[se,Ae,D]),Wt(function(){var Me=Pe();!se&&Me==="input"&&(he(!1),at(null,!0)),!se&&i&&!h&&Me==="panel"&&(he(!0),at())},[se]),l.createElement(Yo.Provider,{value:Ie},l.createElement(DU,ve({},FU(a),{popupElement:vt,popupStyle:f.popup,popupClassName:p.popup,visible:se,onClose:Vt,range:!0}),l.createElement(Nfe,ve({},a,{ref:q,suffixIcon:H,activeIndex:Ce||se?Ae:null,activeHelp:!!$t,allHelp:!!$t&&Qe==="preset",focused:Ce,onFocus:vn,onBlur:bn,onKeyDown:$e,onSubmit:at,value:Zt,maskFormat:c,onChange:St,onInputChange:nn,format:s,inputReadOnly:z,disabled:b,open:se,onOpenChange:he,onClick:bt,onClear:yt,invalid:Tt,onInvalid:Rt,onActiveOffset:Ct}))))}var Afe=l.forwardRef(kfe);function Mfe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function g(h,y){return l.createElement("span",{className:ne("".concat(f,"-item")),title:typeof h=="string"?h:null},l.createElement("span",{className:"".concat(f,"-item-content")},h),!s&&y&&l.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},o))}function v(h){var y=i(h),b=function(C){C&&C.stopPropagation(),r(h)};return g(y,b)}function m(h){var y="+ ".concat(h.length," ...");return g(y)}return l.createElement("div",{className:d},l.createElement(Bo,{prefixCls:p,data:n,renderItem:v,renderRest:m,itemKey:function(y){return i(y)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Dfe=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Pfe(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,g=e.internalPicker,v=e.value,m=e.onChange,h=e.onSubmit;e.onInputChange;var y=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,C=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,R=e.removeIcon,T=xt(e,Dfe),_=x==="rtl",$=l.useContext(Yo),D=$.prefixCls,P=l.useRef(),A=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(U){var X;(X=A.current)===null||X===void 0||X.focus(U)},blur:function(){var U;(U=A.current)===null||U===void 0||U.blur()}}});var O=uV(T),k=function(U){m([U])},N=function(U){var X=v.filter(function(W){return W&&!na(s,i,W,U,g)});m(X),n||h()},M=cV(K(K({},e),{},{onChange:k}),function(H){var U=H.valueTexts;return{value:U[0]||"",active:o}}),L=ie(M,2),F=L[0],j=L[1],B=!!(r&&v.length&&!S),z=y?l.createElement(l.Fragment,null,l.createElement(Mfe,{prefixCls:D,value:v,onRemove:N,formatDate:j,maxTagCount:b,disabled:S,removeIcon:R,placeholder:c}),l.createElement("input",{className:"".concat(D,"-multiple-input"),value:v.map(j).join(","),ref:A,readOnly:!0,autoFocus:I}),l.createElement(i0,{type:"suffix",icon:a}),B&&l.createElement(AT,{icon:r,onClear:p})):l.createElement(MT,ve({ref:A},F(),{autoFocus:I,suffixIcon:a,clearIcon:B&&l.createElement(AT,{icon:r,onClear:p}),showActiveCls:!1}));return l.createElement("div",ve({},O,{className:ne(D,V(V(V(V(V({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),o),"".concat(D,"-disabled"),S),"".concat(D,"-invalid"),C),"".concat(D,"-rtl"),_),u),style:d,ref:P,onClick:f,onMouseDown:function(U){var X,W=U.target;W!==((X=A.current)===null||X===void 0?void 0:X.inputElement)&&U.preventDefault(),E==null||E(U)}}),z)}var Lfe=l.forwardRef(Pfe);function Ffe(e,t){var n=KU(e),r=ie(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,p=d.styles,g=d.classNames,v=d.order,m=d.defaultValue,h=d.value,y=d.needConfirm,b=d.onChange,S=d.onKeyDown,C=d.disabled,x=d.disabledDate,E=d.minDate,I=d.maxDate,R=d.defaultOpen,T=d.open,_=d.onOpenChange,$=d.locale,D=d.generateConfig,P=d.picker,A=d.showNow,O=d.showToday,k=d.showTime,N=d.mode,M=d.onPanelChange,L=d.onCalendarChange,F=d.onOk,j=d.multiple,B=d.defaultPickerValue,z=d.pickerValue,H=d.onPickerValueChange,U=d.inputReadOnly,X=d.suffixIcon,W=d.removeIcon,Y=d.onFocus,te=d.onBlur,ee=d.presets,Z=d.components,oe=d.cellRender,re=d.dateRender,q=d.monthCellRender,Q=d.onClick,ae=XU(t);function se(vt){return vt===null?null:j?vt:vt[0]}var de=iV(D,$,o),he=YU(T,R,[C],_),ye=ie(he,2),pe=ye[0],J=ye[1],ce=function(St,nn,vn){if(L){var bn=K({},vn);delete bn.range,L(se(St),se(nn),bn)}},ue=function(St){F==null||F(se(St))},fe=rV(D,$,s,!1,v,m,h,ce,ue),be=ie(fe,5),Ee=be[0],Re=be[1],Fe=be[2],Ce=be[3],ze=be[4],Pe=Fe(),Ae=QU([C]),Se=ie(Ae,4),_e=Se[0],we=Se[1],Te=Se[2],me=Se[3],xe=function(St){we(!0),Y==null||Y(St,{})},Be=function(St){we(!1),te==null||te(St,{})},ke=on(P,{value:N}),Ne=ie(ke,2),He=Ne[0],Ge=Ne[1],je=He==="date"&&k?"datetime":He,qe=oV(P,He,A,O),tt=b&&function(vt,St){b(se(vt),se(St))},Ye=aV(K(K({},a),{},{onChange:tt}),Ee,Re,Fe,Ce,[],s,_e,pe,u),ft=ie(Ye,2),ht=ft[1],Ue=jU(Pe,u),We=ie(Ue,2),Ke=We[0],st=We[1],Tt=l.useMemo(function(){return Ke.some(function(vt){return vt})},[Ke]),Rt=function(St,nn){if(H){var vn=K(K({},nn),{},{mode:nn.mode[0]});delete vn.range,H(St[0],vn)}},Ft=JU(D,$,Pe,[He],pe,me,o,!1,B,z,fc(k==null?void 0:k.defaultOpenValue),Rt,E,I),pt=ie(Ft,2),lt=pt[0],Je=pt[1],ut=zt(function(vt,St,nn){if(Ge(St),M&&nn!==!1){var vn=vt||Pe[Pe.length-1];M(vn,St)}}),It=function(){ht(Fe()),J(!1,{force:!0})},at=function(St){!C&&!ae.current.nativeElement.contains(document.activeElement)&&ae.current.focus(),J(!0),Q==null||Q(St)},bt=function(){ht(null),J(!1,{force:!0})},yt=l.useState(null),et=ie(yt,2),ot=et[0],Qe=et[1],Xe=l.useState(null),gt=ie(Xe,2),Et=gt[0],$t=gt[1],qt=l.useMemo(function(){var vt=[Et].concat(Oe(Pe)).filter(function(St){return St});return j?vt:vt.slice(0,1)},[Pe,Et,j]),Zt=l.useMemo(function(){return!j&&Et?[Et]:Pe.filter(function(vt){return vt})},[Pe,Et,j]);l.useEffect(function(){pe||$t(null)},[pe]);var Kt=ZU(ee),Qt=function(St){$t(St),Qe("preset")},wt=function(St){var nn=j?de(Fe(),St):[St],vn=ht(nn);vn&&!j&&J(!1,{force:!0})},Ct=function(St){wt(St)},Ot=function(St){$t(St),Qe("cell")},mn=function(St){J(!0),xe(St)},Bn=function(St){Te("panel");var nn=j?de(Fe(),St):[St];Ce(nn),!y&&!i&&o===je&&It()},sr=function(){J(!1)},fr=y$(oe,re,q),jr=l.useMemo(function(){var vt=Pn(a,!1),St=Sn(a,[].concat(Oe(Object.keys(vt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return K(K({},St),{},{multiple:a.multiple})},[a]),yr=l.createElement(lV,ve({},jr,{showNow:qe,showTime:k,disabledDate:x,onFocus:mn,onBlur:Be,picker:P,mode:He,internalMode:je,onPanelChange:ut,format:c,value:Pe,isInvalid:u,onChange:null,onSelect:Bn,pickerValue:lt,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:Je,hoverValue:qt,onHover:Ot,needConfirm:y,onSubmit:It,onOk:ze,presets:Kt,onPresetHover:Qt,onPresetSubmit:wt,onNow:Ct,cellRender:fr})),zn=function(St){Ce(St)},Vt=function(){Te("input")},Pt=function(St){Te("input"),J(!0,{inherit:!0}),xe(St)},Ut=function(St){J(!1),Be(St)},Lt=function(St,nn){St.key==="Tab"&&It(),S==null||S(St,nn)},Mt=l.useMemo(function(){return{prefixCls:f,locale:$,generateConfig:D,button:Z.button,input:Z.input}},[f,$,D,Z.button,Z.input]);return Wt(function(){pe&&me!==void 0&&ut(null,P,!1)},[pe,me,P]),Wt(function(){var vt=Te();!pe&&vt==="input"&&(J(!1),It()),!pe&&i&&!y&&vt==="panel"&&(J(!0),It())},[pe]),l.createElement(Yo.Provider,{value:Mt},l.createElement(DU,ve({},FU(a),{popupElement:yr,popupStyle:p.popup,popupClassName:g.popup,visible:pe,onClose:sr}),l.createElement(Lfe,ve({},a,{ref:ae,suffixIcon:X,removeIcon:W,activeHelp:!!Et,allHelp:!!Et&&ot==="preset",focused:_e,onFocus:Pt,onBlur:Ut,onKeyDown:Lt,onSubmit:It,value:Zt,maskFormat:c,onChange:zn,onInputChange:Vt,internalPicker:o,format:s,inputReadOnly:U,disabled:C,open:pe,onOpenChange:J,onClick:at,onClear:bt,invalid:Tt,onInvalid:function(St){st(St,0)}}))))}var jfe=l.forwardRef(Ffe);const dV=l.createContext(null),Bfe=dV.Provider,fV=l.createContext(null),zfe=fV.Provider;var Hfe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],pV=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,p=e.title,g=e.onChange,v=xt(e,Hfe),m=l.useRef(null),h=l.useRef(null),y=on(u,{value:i}),b=ie(y,2),S=b[0],C=b[1];l.useImperativeHandle(t,function(){return{focus:function(R){var T;(T=m.current)===null||T===void 0||T.focus(R)},blur:function(){var R;(R=m.current)===null||R===void 0||R.blur()},input:m.current,nativeElement:h.current}});var x=ne(r,a,V(V({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),E=function(R){s||("checked"in e||C(R.target.checked),g==null||g({target:K(K({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return l.createElement("span",{className:x,title:p,style:o,ref:h},l.createElement("input",ve({},v,{className:"".concat(r,"-input"),ref:m,onChange:E,disabled:s,checked:!!S,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});const Ufe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Xt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Vfe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:g,dotColorDisabled:v,lineType:m,radioColor:h,radioBgColor:y,calc:b}=e,S=`${t}-inner`,x=b(a).sub(b(4).mul(2)),E=b(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Xt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${G(d)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Xt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},Wi(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:b(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${b(x).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},Wfe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:g,controlHeightSM:v,paddingXS:m,borderRadius:h,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:S,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:E,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:R,colorPrimary:T,colorPrimaryHover:_,colorPrimaryActive:$,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:A,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(O(n).sub(O(a).mul(2)).equal()),background:f,border:`${G(a)} ${o} ${i}`,borderBlockStartWidth:O(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(a).mul(-1).equal(),insetInlineStart:O(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(a)} ${o} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:G(O(g).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:O(m).sub(a).equal(),paddingBlock:0,lineHeight:G(O(v).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:T},"&:has(:focus-visible)":Object.assign({},Wi(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:T,background:S,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:D,borderColor:D,"&:hover":{color:C,background:P,borderColor:P},"&:active":{color:C,background:A,borderColor:A}},"&-disabled":{color:x,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:I,borderColor:i,boxShadow:"none"}}}},Gfe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:g,colorWhite:v}=e,m=4,h=o,y=t?h-m*2:h-(m+a)*2;return{radioSize:h,dotSize:y,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:v,radioBgColor:t?s:f}},gV=tn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,o=Bt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Ufe(o),Vfe(o),Wfe(o)]},Gfe,{unitless:{radioSize:!0,dotSize:!0}});var qfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=l.useContext(dV),o=l.useContext(fV),{getPrefixCls:i,direction:s,radio:c}=l.useContext(ct),u=l.useRef(null),d=Pr(t,u),{isFormItemInput:f}=l.useContext(Rr),p=A=>{var O,k;(O=e.onChange)===null||O===void 0||O.call(e,A),(k=a==null?void 0:a.onChange)===null||k===void 0||k.call(a,A)},{prefixCls:g,className:v,rootClassName:m,children:h,style:y,title:b}=e,S=qfe(e,["prefixCls","className","rootClassName","children","style","title"]),C=i("radio",g),x=((a==null?void 0:a.optionType)||o)==="button",E=x?`${C}-button`:C,I=Yn(C),[R,T,_]=gV(C,I),$=Object.assign({},S),D=l.useContext(Gr);a&&($.name=a.name,$.onChange=p,$.checked=e.value===a.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:a.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:D;const P=ne(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},c==null?void 0:c.className,v,m,T,_,I);return R(l.createElement(rg,{component:"Radio",disabled:$.disabled},l.createElement("label",{className:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},l.createElement(pV,Object.assign({},$,{className:ne($.className,{[Nb]:!x}),type:"radio",prefixCls:E,ref:d})),h!==void 0?l.createElement("span",null,h):null)))},Iv=l.forwardRef(Kfe),Yfe=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ct),[a,o]=on(e.defaultValue,{value:e.value}),i=A=>{const O=a,k=A.target.value;"value"in e||o(k);const{onChange:N}=e;N&&k!==O&&N(A)},{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:p,children:g,size:v,style:m,id:h,onMouseEnter:y,onMouseLeave:b,onFocus:S,onBlur:C}=e,x=n("radio",s),E=`${x}-group`,I=Yn(x),[R,T,_]=gV(x,I);let $=g;d&&d.length>0&&($=d.map(A=>typeof A=="string"||typeof A=="number"?l.createElement(Iv,{key:A.toString(),prefixCls:x,disabled:p,value:A,checked:a===A},A):l.createElement(Iv,{key:`radio-group-value-options-${A.value}`,prefixCls:x,disabled:A.disabled||p,value:A.value,checked:a===A.value,title:A.title,style:A.style,id:A.id,required:A.required},A.label)));const D=dr(v),P=ne(E,`${E}-${f}`,{[`${E}-${D}`]:D,[`${E}-rtl`]:r==="rtl"},c,u,T,_,I);return R(l.createElement("div",Object.assign({},Pn(e,{aria:!0,data:!0}),{className:P,style:m,onMouseEnter:y,onMouseLeave:b,onFocus:S,onBlur:C,id:h,ref:t}),l.createElement(Bfe,{value:{onChange:i,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},$)))}),Xfe=l.memo(Yfe);var Zfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=l.useContext(ct),{prefixCls:r}=e,a=Zfe(e,["prefixCls"]),o=n("radio",r);return l.createElement(zfe,{value:"button"},l.createElement(Iv,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},Jfe=l.forwardRef(Qfe),Va=Iv;Va.Button=Jfe;Va.Group=Xfe;Va.__ANT_RADIO=!0;function vg(e){return Bt(e,{inputAffixPadding:e.paddingXXS})}const bg=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:g,colorPrimary:v,controlOutlineWidth:m,controlOutline:h,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:p,activeBorderColor:v,hoverBorderColor:g,activeShadow:`0 0 0 ${m}px ${h}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:S,activeBg:S,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},epe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),s0=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({},epe(Bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),E$=(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}}),gM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},E$(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),I$=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E$(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},s0(e))}),gM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),gM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),mM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),mV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},mM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),mM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},s0(e))}})}),T$=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},hV=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),hM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hV(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),R$=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},s0(e))}),hM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),hM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),vM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),vV=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},vM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),vM(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),_$=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bV=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${G(t)} ${G(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},$$=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),yg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_$(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},bV(e)),"&-sm":Object.assign({},$$(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yV=e=>{const{componentCls:t,antCls:n}=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({},bV(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},$$(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-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,[`${n}-select ${n}-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,[`${n}-select ${n}-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"},Vo()),{[`${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, & > ${n}-picker-range @@ -281,12 +281,12 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-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}}}})}},tpe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),yg(e)),I$(e)),R$(e)),T$(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},npe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G(e.inputAffixPadding)}`}}}},rpe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},yg(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:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),npe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},ape=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qt(e)),yV(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:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},mV(e)),vV(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}}})})}},ope=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-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, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-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}}}})}},tpe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),yg(e)),I$(e)),R$(e)),T$(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},npe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G(e.inputAffixPadding)}`}}}},rpe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},yg(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:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),npe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},ape=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Xt(e)),yV(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:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},mV(e)),vV(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}}})})}},ope=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-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}}}}},ipe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},spe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},O$=nn("Input",e=>{const t=zt(e,vg(e));return[tpe(t),ipe(t),rpe(t),ape(t),ope(t),spe(t),ag(t)]},bg,{resetFont:!1}),pS=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=VH(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:G(o.itemLineHeight)}}}]},lpe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=zt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=zt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[pS(a,"small"),pS(e),pS(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},WH(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},cpe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:g,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:G(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view), + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},spe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},O$=tn("Input",e=>{const t=Bt(e,vg(e));return[tpe(t),ipe(t),rpe(t),ape(t),ope(t),spe(t),ag(t)]},bg,{resetFont:!1}),pS=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=VH(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:G(o.itemLineHeight)}}}]},lpe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Bt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Bt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[pS(a,"small"),pS(e),pS(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},WH(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},cpe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:g,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:G(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${G(s)} ${c} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, @@ -297,7 +297,7 @@ html body { &-selected ${r}, ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:N}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new un(k).setAlpha(.5).toHexString()},[r]:{color:k}}},"&-range-hover td:before":{background:j}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${G(c)} ${G(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${G(f)} ${p} ${h}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${D}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:M},"&-column":{flex:"1 0 auto",width:L,margin:`${G(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(F).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${G(f)} ${p} ${h}`},"&-active":{background:new un(j).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(B).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(F).div(2).equal(),color:_,lineHeight:G(F),borderRadius:O,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:j}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},dpe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${G(r)} ${u} ${d}`,"&-extra":{padding:`0 ${G(a)}`,lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${G(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:G(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},fpe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},ppe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),f=Math.min(a-s,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},gpe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},bg(e)),ppe(e)),Kb(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),mpe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},I$(e)),R$(e)),T$(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},gS=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),i=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${G(o)} ${G(r)} ${G(i)}`}},hpe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},vpe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:g,controlHeightSM:v,paddingInlineSM:m,paddingXS:h,marginXS:y,colorTextDescription:b,lineWidthBold:S,colorPrimary:C,motionDurationSlow:x,zIndexPopup:E,paddingXXS:I,sizePopupArrow:R,colorBgElevated:T,borderRadiusLG:_,boxShadowSecondary:$,borderRadiusSM:D,colorSplit:P,cellHoverBg:A,presetsWidth:O,presetsMaxWidth:k,boxShadowPopoverArrow:N,fontHeight:M,fontHeightLG:L,lineHeightLG:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Qt(e)),gS(e,r,M,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},_$(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},gS(e,p,L,a)),{[`${t}-input > input`]:{fontSize:g,lineHeight:F}}),"&-small":Object.assign({},gS(e,v,M,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:S,background:C,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${G(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Qt(e)),upe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:M},"&-column":{flex:"1 0 auto",width:L,margin:`${G(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(F).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${G(f)} ${p} ${h}`},"&-active":{background:new un(j).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(B).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(F).div(2).equal(),color:_,lineHeight:G(F),borderRadius:O,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:j}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},dpe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${G(r)} ${u} ${d}`,"&-extra":{padding:`0 ${G(a)}`,lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${G(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:G(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},fpe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},ppe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),f=Math.min(a-s,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},gpe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},bg(e)),ppe(e)),Kb(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),mpe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},I$(e)),R$(e)),T$(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},gS=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),i=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${G(o)} ${G(r)} ${G(i)}`}},hpe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},vpe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:g,controlHeightSM:v,paddingInlineSM:m,paddingXS:h,marginXS:y,colorTextDescription:b,lineWidthBold:S,colorPrimary:C,motionDurationSlow:x,zIndexPopup:E,paddingXXS:I,sizePopupArrow:R,colorBgElevated:T,borderRadiusLG:_,boxShadowSecondary:$,borderRadiusSM:D,colorSplit:P,cellHoverBg:A,presetsWidth:O,presetsMaxWidth:k,boxShadowPopoverArrow:N,fontHeight:M,fontHeightLG:L,lineHeightLG:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Xt(e)),gS(e,r,M,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},_$(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},gS(e,p,L,a)),{[`${t}-input > input`]:{fontSize:g,lineHeight:F}}),"&-small":Object.assign({},gS(e,v,M,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:S,background:C,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${G(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Xt(e)),upe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, @@ -307,9 +307,9 @@ html body { &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Lb},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Bb},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Fb},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},QH(e,T,N)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:_,boxShadow:$,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:O,maxWidth:k,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${G(o)} ${i} ${P}`,li:Object.assign(Object.assign({},vo),{borderRadius:D,paddingInline:h,paddingBlock:e.calc(v).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:y},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${G(e.calc(R).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},fi(e,"slide-up"),fi(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down")]},SV=nn("DatePicker",e=>{const t=zt(vg(e),fpe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dpe(t),vpe(t),mpe(t),hpe(t),lpe(t),ag(e,{focusElCls:`${e.componentCls}-focused`})]},gpe);var bpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ype=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:bpe}))},wV=l.forwardRef(ype);const l0=l.createContext(null);var Spe=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=ie(d,2),p=f[0],g=f[1],v=l.useRef(),m=le.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function h(){Bt.cancel(v.current)}return l.useEffect(function(){var y={};if(n)if(r){y.width=m(n.width);var b=a?"right":"left";u==="start"&&(y[b]=n[b]),u==="center"&&(y[b]=n[b]+n.width/2,y.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=m(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return h(),v.current=Bt(function(){g(y)}),h},[n,r,a,u,m]),{style:p}},bM={width:0,height:0,left:0,top:0};function wpe(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||bM,i=o.left+o.width,s=0;sA?(D=_,E.current="x"):(D=$,E.current="y"),t(-D,-D)&&T.preventDefault()}var R=l.useRef(null);R.current={onTouchStart:S,onTouchMove:C,onTouchEnd:x,onWheel:I},l.useEffect(function(){function T(P){R.current.onTouchStart(P)}function _(P){R.current.onTouchMove(P)}function $(P){R.current.onTouchEnd(P)}function D(P){R.current.onWheel(P)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",D,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",$)}},[])}function CV(e){var t=l.useState(0),n=ie(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,Pl(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function Epe(e){var t=l.useRef([]),n=l.useState({}),r=ie(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=CV(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var CM={width:0,height:0,left:0,top:0,right:0};function Ipe(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,v=g,m=0;mp+t){v=m-1;break}}for(var y=0,b=g-1;b>=0;b-=1){var S=e.get(s[b].key)||CM;if(S[f]=v?[0,0]:[y,v]},[e,t,r,a,o,p,c,s.map(function(g){return g.key}).join("_"),u])}function xM(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Tpe="TABS_DQ";function xV(e){return String(e).replace(/"/g,Tpe)}function EV(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var IV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),EM=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return ht(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Rpe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,m=e.onTabClick,h=e.getPopupContainer,y=e.popupClassName,b=l.useState(!1),S=ie(b,2),C=S[0],x=S[1],E=l.useState(null),I=ie(E,2),R=I[0],T=I[1],_=c.icon,$=_===void 0?"More":_,D="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),A=R!==null?"".concat(D,"-").concat(R):null,O=o==null?void 0:o.dropdownAriaLabel;function k(z,H){z.preventDefault(),z.stopPropagation(),f.onEdit("remove",{key:H,event:z})}var N=l.createElement(ld,{onClick:function(H){var U=H.key,X=H.domEvent;m(U,X),x(!1)},prefixCls:"".concat(P,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[R],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(z){var H=z.closable,U=z.disabled,X=z.closeIcon,W=z.key,Y=z.label,te=EV(H,X,f,U);return l.createElement(pg,{key:W,id:"".concat(D,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:U},l.createElement("span",null,Y),te&&l.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(Z){Z.stopPropagation(),k(Z,W)}},X||f.removeIcon||"×"))}));function M(z){for(var H=a.filter(function(te){return!te.disabled}),U=H.findIndex(function(te){return te.key===R})||0,X=H.length,W=0;WZe?"left":"right"})}),P=ie(D,2),A=P[0],O=P[1],k=yM(0,function(st,Ze){!$&&m&&m({direction:st>Ze?"top":"bottom"})}),N=ie(k,2),M=N[0],L=N[1],F=l.useState([0,0]),j=ie(F,2),B=j[0],z=j[1],H=l.useState([0,0]),U=ie(H,2),X=U[0],W=U[1],Y=l.useState([0,0]),te=ie(Y,2),ee=te[0],Z=te[1],oe=l.useState([0,0]),re=ie(oe,2),q=re[0],Q=re[1],ae=Epe(new Map),se=ie(ae,2),de=se[0],he=se[1],ye=wpe(S,de,X[0]),pe=Tm(B,$),J=Tm(X,$),ce=Tm(ee,$),ue=Tm(q,$),fe=pePe?Pe:st}var Fe=l.useRef(null),De=l.useState(),Ae=ie(De,2),we=Ae[0],$e=Ae[1];function Ce(){$e(Date.now())}function Re(){Fe.current&&clearTimeout(Fe.current)}xpe(I,function(st,Ze){function lt(It,at){It(function(vt){var bt=Ee(vt+at);return bt})}return fe?($?lt(O,st):lt(L,Ze),Re(),Ce(),!0):!1}),l.useEffect(function(){return Re(),we&&(Fe.current=setTimeout(function(){$e(0)},100)),Re},[we]);var me=Ipe(ye,be,$?A:M,J,ce,ue,K(K({},e),{},{tabs:S})),Ie=ie(me,2),je=Ie[0],ke=Ie[1],Ne=Ut(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Ze=ye.get(st)||{width:0,height:0,left:0,right:0,top:0};if($){var lt=A;s?Ze.rightA+be&&(lt=Ze.right+Ze.width-be):Ze.left<-A?lt=-Ze.left:Ze.left+Ze.width>-A+be&&(lt=-(Ze.left+Ze.width-be)),L(0),O(Ee(lt))}else{var It=M;Ze.top<-M?It=-Ze.top:Ze.top+Ze.height>-M+be&&(It=-(Ze.top+Ze.height-be)),O(0),L(Ee(It))}}),Be={};f==="top"||f==="bottom"?Be[s?"marginRight":"marginLeft"]=p:Be.marginTop=p;var Ve=S.map(function(st,Ze){var lt=st.key;return l.createElement($pe,{id:a,prefixCls:b,key:lt,tab:st,style:Ze===0?void 0:Be,closable:st.closable,editable:u,active:lt===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(at){v(lt,at)},onFocus:function(){Ne(lt),Ce(),I.current&&(s||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),Le=function(){return he(function(){var Ze,lt=new Map,It=(Ze=R.current)===null||Ze===void 0?void 0:Ze.getBoundingClientRect();return S.forEach(function(at){var vt,bt=at.key,Qe=(vt=R.current)===null||vt===void 0?void 0:vt.querySelector('[data-node-key="'.concat(xV(bt),'"]'));if(Qe){var ot=Ope(Qe,It),Xe=ie(ot,4),qe=Xe[0],pt=Xe[1],Et=Xe[2],_t=Xe[3];lt.set(bt,{width:qe,height:pt,left:Et,top:_t})}}),lt})};l.useEffect(function(){Le()},[S.map(function(st){return st.key}).join("_")]);var We=CV(function(){var st=Fc(C),Ze=Fc(x),lt=Fc(E);z([st[0]-Ze[0]-lt[0],st[1]-Ze[1]-lt[1]]);var It=Fc(_);Z(It);var at=Fc(T);Q(at);var vt=Fc(R);W([vt[0]-It[0],vt[1]-It[1]]),Le()}),Je=S.slice(0,je),Ke=S.slice(ke+1),ut=[].concat(Oe(Je),Oe(Ke)),dt=ye.get(i),He=Spe({activeTabOffset:dt,horizontal:$,indicator:h,rtl:s}),Ye=He.style;l.useEffect(function(){Ne()},[i,_e,Pe,xM(dt),xM(ye),$]),l.useEffect(function(){We()},[s]);var Ge=!!ut.length,rt="".concat(b,"-nav-wrap"),Tt,Rt,jt,ft;return $?s?(Rt=A>0,Tt=A!==Pe):(Tt=A<0,Rt=A!==_e):(jt=M<0,ft=M!==_e),l.createElement(Ur,{onResize:We},l.createElement("div",{ref:Qi(t,C),role:"tablist",className:ne("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ce()}},l.createElement(EM,{ref:x,position:"left",extra:c,prefixCls:b}),l.createElement(Ur,{onResize:We},l.createElement("div",{className:ne(rt,V(V(V(V({},"".concat(rt,"-ping-left"),Tt),"".concat(rt,"-ping-right"),Rt),"".concat(rt,"-ping-top"),jt),"".concat(rt,"-ping-bottom"),ft)),ref:I},l.createElement(Ur,{onResize:We},l.createElement("div",{ref:R,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(M,"px)"),transition:we?"none":void 0}},Ve,l.createElement(IV,{ref:_,prefixCls:b,locale:d,editable:u,style:K(K({},Ve.length===0?void 0:Be),{},{visibility:Ge?"hidden":null})}),l.createElement("div",{className:ne("".concat(b,"-ink-bar"),V({},"".concat(b,"-ink-bar-animated"),o.inkBar)),style:Ye}))))),l.createElement(_pe,ve({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:T,prefixCls:b,tabs:ut,className:!Ge&&Te,tabMoving:!!we})),l.createElement(EM,{ref:E,position:"right",extra:c,prefixCls:b})))}),TV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:ne(n,i&&"".concat(n,"-active"),r),ref:t},c)}),Npe=["renderTabBar"],kpe=["label","key"],Ape=function(t){var n=t.renderTabBar,r=xt(t,Npe),a=l.useContext(l0),o=a.tabs;if(n){var i=K(K({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=xt(s,kpe);return l.createElement(TV,ve({tab:c,key:u,tabKey:u},d))})});return n(i,IM)}return l.createElement(IM,r)},Mpe=["key","forceRender","style","className","destroyInactiveTabPane"],Dpe=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(l0),c=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:ne("".concat(c,"-content-holder"))},l.createElement("div",{className:ne("".concat(c,"-content"),"".concat(c,"-content-").concat(o),V({},"".concat(c,"-content-animated"),d))},u.map(function(p){var g=p.key,v=p.forceRender,m=p.style,h=p.className,y=p.destroyInactiveTabPane,b=xt(p,Mpe),S=g===r;return l.createElement(qr,ve({key:g,visible:S,forceRender:v,removeOnLeave:!!(i||y),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(C,x){var E=C.style,I=C.className;return l.createElement(TV,ve({},b,{prefixCls:f,id:n,tabKey:g,animated:d,active:S,style:K(K({},m),E),className:ne(h,I),ref:x}))})})))};function Ppe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=K({inkBar:!0},ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Lpe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],TM=0,Fpe=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,g=p===void 0?"top":p,v=e.tabBarGutter,m=e.tabBarStyle,h=e.tabBarExtraContent,y=e.locale,b=e.more,S=e.destroyInactiveTabPane,C=e.renderTabBar,x=e.onChange,E=e.onTabClick,I=e.onTabScroll,R=e.getPopupContainer,T=e.popupClassName,_=e.indicator,$=xt(e,Lpe),D=l.useMemo(function(){return(i||[]).filter(function(q){return q&&ht(q)==="object"&&"key"in q})},[i]),P=s==="rtl",A=Ppe(f),O=l.useState(!1),k=ie(O,2),N=k[0],M=k[1];l.useEffect(function(){M(zb())},[]);var L=on(function(){var q;return(q=D[0])===null||q===void 0?void 0:q.key},{value:c,defaultValue:u}),F=ie(L,2),j=F[0],B=F[1],z=l.useState(function(){return D.findIndex(function(q){return q.key===j})}),H=ie(z,2),U=H[0],X=H[1];l.useEffect(function(){var q=D.findIndex(function(ae){return ae.key===j});if(q===-1){var Q;q=Math.max(0,Math.min(U,D.length-1)),B((Q=D[q])===null||Q===void 0?void 0:Q.key)}X(q)},[D.map(function(q){return q.key}).join("_"),j,U]);var W=on(null,{value:n}),Y=ie(W,2),te=Y[0],ee=Y[1];l.useEffect(function(){n||(ee("rc-tabs-".concat(TM)),TM+=1)},[]);function Z(q,Q){E==null||E(q,Q);var ae=q!==j;B(q),ae&&(x==null||x(q))}var oe={id:te,activeKey:j,animated:A,tabPosition:g,rtl:P,mobile:N},re=K(K({},oe),{},{editable:d,locale:y,more:b,tabBarGutter:v,onTabClick:Z,onTabScroll:I,extra:h,style:m,panes:null,getPopupContainer:R,popupClassName:T,indicator:_});return l.createElement(l0.Provider,{value:{tabs:D,prefixCls:a}},l.createElement("div",ve({ref:t,id:n,className:ne(a,"".concat(a,"-").concat(g),V(V(V({},"".concat(a,"-mobile"),N),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),P),o)},$),l.createElement(Ape,ve({},re,{renderTabBar:C})),l.createElement(Dpe,ve({destroyInactiveTabPane:S},oe,{animated:A}))))});const jpe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Bpe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},jpe),{motionName:bo(e,"switch")})),n}var zpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function Upe(e,t){if(e)return e;const n=sr(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=zpe(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return Hpe(n)}const Vpe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[fi(e,"slide-up"),fi(e,"slide-down")]]},Wpe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${G(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:G(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:G(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadiusLG)} 0 0 ${G(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Gpe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Qt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${G(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},vo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${G(e.paddingXXS)} ${G(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qpe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${G(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Fb},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},QH(e,T,N)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:_,boxShadow:$,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:O,maxWidth:k,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${G(o)} ${i} ${P}`,li:Object.assign(Object.assign({},vo),{borderRadius:D,paddingInline:h,paddingBlock:e.calc(v).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:y},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${G(e.calc(R).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},pi(e,"slide-up"),pi(e,"slide-down"),zu(e,"move-up"),zu(e,"move-down")]},SV=tn("DatePicker",e=>{const t=Bt(vg(e),fpe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dpe(t),vpe(t),mpe(t),hpe(t),lpe(t),ag(e,{focusElCls:`${e.componentCls}-focused`})]},gpe);var bpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ype=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:bpe}))},wV=l.forwardRef(ype);const l0=l.createContext(null);var Spe=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=ie(d,2),p=f[0],g=f[1],v=l.useRef(),m=le.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function h(){jt.cancel(v.current)}return l.useEffect(function(){var y={};if(n)if(r){y.width=m(n.width);var b=a?"right":"left";u==="start"&&(y[b]=n[b]),u==="center"&&(y[b]=n[b]+n.width/2,y.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=m(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return h(),v.current=jt(function(){g(y)}),h},[n,r,a,u,m]),{style:p}},bM={width:0,height:0,left:0,top:0};function wpe(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||bM,i=o.left+o.width,s=0;sA?(D=_,E.current="x"):(D=$,E.current="y"),t(-D,-D)&&T.preventDefault()}var R=l.useRef(null);R.current={onTouchStart:S,onTouchMove:C,onTouchEnd:x,onWheel:I},l.useEffect(function(){function T(P){R.current.onTouchStart(P)}function _(P){R.current.onTouchMove(P)}function $(P){R.current.onTouchEnd(P)}function D(P){R.current.onWheel(P)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",D,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",$)}},[])}function CV(e){var t=l.useState(0),n=ie(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,Pl(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function Epe(e){var t=l.useRef([]),n=l.useState({}),r=ie(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=CV(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var CM={width:0,height:0,left:0,top:0,right:0};function Ipe(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,v=g,m=0;mp+t){v=m-1;break}}for(var y=0,b=g-1;b>=0;b-=1){var S=e.get(s[b].key)||CM;if(S[f]=v?[0,0]:[y,v]},[e,t,r,a,o,p,c,s.map(function(g){return g.key}).join("_"),u])}function xM(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Tpe="TABS_DQ";function xV(e){return String(e).replace(/"/g,Tpe)}function EV(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var IV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),EM=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return mt(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Rpe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,m=e.onTabClick,h=e.getPopupContainer,y=e.popupClassName,b=l.useState(!1),S=ie(b,2),C=S[0],x=S[1],E=l.useState(null),I=ie(E,2),R=I[0],T=I[1],_=c.icon,$=_===void 0?"More":_,D="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),A=R!==null?"".concat(D,"-").concat(R):null,O=o==null?void 0:o.dropdownAriaLabel;function k(z,H){z.preventDefault(),z.stopPropagation(),f.onEdit("remove",{key:H,event:z})}var N=l.createElement(ld,{onClick:function(H){var U=H.key,X=H.domEvent;m(U,X),x(!1)},prefixCls:"".concat(P,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[R],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(z){var H=z.closable,U=z.disabled,X=z.closeIcon,W=z.key,Y=z.label,te=EV(H,X,f,U);return l.createElement(pg,{key:W,id:"".concat(D,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:U},l.createElement("span",null,Y),te&&l.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(Z){Z.stopPropagation(),k(Z,W)}},X||f.removeIcon||"×"))}));function M(z){for(var H=a.filter(function(te){return!te.disabled}),U=H.findIndex(function(te){return te.key===R})||0,X=H.length,W=0;WJe?"left":"right"})}),P=ie(D,2),A=P[0],O=P[1],k=yM(0,function(lt,Je){!$&&m&&m({direction:lt>Je?"top":"bottom"})}),N=ie(k,2),M=N[0],L=N[1],F=l.useState([0,0]),j=ie(F,2),B=j[0],z=j[1],H=l.useState([0,0]),U=ie(H,2),X=U[0],W=U[1],Y=l.useState([0,0]),te=ie(Y,2),ee=te[0],Z=te[1],oe=l.useState([0,0]),re=ie(oe,2),q=re[0],Q=re[1],ae=Epe(new Map),se=ie(ae,2),de=se[0],he=se[1],ye=wpe(S,de,X[0]),pe=Tm(B,$),J=Tm(X,$),ce=Tm(ee,$),ue=Tm(q,$),fe=peFe?Fe:lt}var ze=l.useRef(null),Pe=l.useState(),Ae=ie(Pe,2),Se=Ae[0],_e=Ae[1];function we(){_e(Date.now())}function Te(){ze.current&&clearTimeout(ze.current)}xpe(I,function(lt,Je){function ut(It,at){It(function(bt){var yt=Ce(bt+at);return yt})}return fe?($?ut(O,lt):ut(L,Je),Te(),we(),!0):!1}),l.useEffect(function(){return Te(),Se&&(ze.current=setTimeout(function(){_e(0)},100)),Te},[Se]);var me=Ipe(ye,be,$?A:M,J,ce,ue,K(K({},e),{},{tabs:S})),xe=ie(me,2),Be=xe[0],ke=xe[1],Ne=zt(function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Je=ye.get(lt)||{width:0,height:0,left:0,right:0,top:0};if($){var ut=A;s?Je.rightA+be&&(ut=Je.right+Je.width-be):Je.left<-A?ut=-Je.left:Je.left+Je.width>-A+be&&(ut=-(Je.left+Je.width-be)),L(0),O(Ce(ut))}else{var It=M;Je.top<-M?It=-Je.top:Je.top+Je.height>-M+be&&(It=-(Je.top+Je.height-be)),O(0),L(Ce(It))}}),He={};f==="top"||f==="bottom"?He[s?"marginRight":"marginLeft"]=p:He.marginTop=p;var Ge=S.map(function(lt,Je){var ut=lt.key;return l.createElement($pe,{id:a,prefixCls:b,key:ut,tab:lt,style:Je===0?void 0:He,closable:lt.closable,editable:u,active:ut===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(at){v(ut,at)},onFocus:function(){Ne(ut),we(),I.current&&(s||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),je=function(){return he(function(){var Je,ut=new Map,It=(Je=R.current)===null||Je===void 0?void 0:Je.getBoundingClientRect();return S.forEach(function(at){var bt,yt=at.key,et=(bt=R.current)===null||bt===void 0?void 0:bt.querySelector('[data-node-key="'.concat(xV(yt),'"]'));if(et){var ot=Ope(et,It),Qe=ie(ot,4),Xe=Qe[0],gt=Qe[1],Et=Qe[2],$t=Qe[3];ut.set(yt,{width:Xe,height:gt,left:Et,top:$t})}}),ut})};l.useEffect(function(){je()},[S.map(function(lt){return lt.key}).join("_")]);var qe=CV(function(){var lt=Fc(C),Je=Fc(x),ut=Fc(E);z([lt[0]-Je[0]-ut[0],lt[1]-Je[1]-ut[1]]);var It=Fc(_);Z(It);var at=Fc(T);Q(at);var bt=Fc(R);W([bt[0]-It[0],bt[1]-It[1]]),je()}),tt=S.slice(0,Be),Ye=S.slice(ke+1),ft=[].concat(Oe(tt),Oe(Ye)),ht=ye.get(i),Ue=Spe({activeTabOffset:ht,horizontal:$,indicator:h,rtl:s}),We=Ue.style;l.useEffect(function(){Ne()},[i,Re,Fe,xM(ht),xM(ye),$]),l.useEffect(function(){qe()},[s]);var Ke=!!ft.length,st="".concat(b,"-nav-wrap"),Tt,Rt,Ft,pt;return $?s?(Rt=A>0,Tt=A!==Fe):(Tt=A<0,Rt=A!==Re):(Ft=M<0,pt=M!==Re),l.createElement(Ur,{onResize:qe},l.createElement("div",{ref:Qi(t,C),role:"tablist",className:ne("".concat(b,"-nav"),n),style:r,onKeyDown:function(){we()}},l.createElement(EM,{ref:x,position:"left",extra:c,prefixCls:b}),l.createElement(Ur,{onResize:qe},l.createElement("div",{className:ne(st,V(V(V(V({},"".concat(st,"-ping-left"),Tt),"".concat(st,"-ping-right"),Rt),"".concat(st,"-ping-top"),Ft),"".concat(st,"-ping-bottom"),pt)),ref:I},l.createElement(Ur,{onResize:qe},l.createElement("div",{ref:R,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(M,"px)"),transition:Se?"none":void 0}},Ge,l.createElement(IV,{ref:_,prefixCls:b,locale:d,editable:u,style:K(K({},Ge.length===0?void 0:He),{},{visibility:Ke?"hidden":null})}),l.createElement("div",{className:ne("".concat(b,"-ink-bar"),V({},"".concat(b,"-ink-bar-animated"),o.inkBar)),style:We}))))),l.createElement(_pe,ve({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:T,prefixCls:b,tabs:ft,className:!Ke&&Ee,tabMoving:!!Se})),l.createElement(EM,{ref:E,position:"right",extra:c,prefixCls:b})))}),TV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:ne(n,i&&"".concat(n,"-active"),r),ref:t},c)}),Npe=["renderTabBar"],kpe=["label","key"],Ape=function(t){var n=t.renderTabBar,r=xt(t,Npe),a=l.useContext(l0),o=a.tabs;if(n){var i=K(K({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=xt(s,kpe);return l.createElement(TV,ve({tab:c,key:u,tabKey:u},d))})});return n(i,IM)}return l.createElement(IM,r)},Mpe=["key","forceRender","style","className","destroyInactiveTabPane"],Dpe=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(l0),c=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:ne("".concat(c,"-content-holder"))},l.createElement("div",{className:ne("".concat(c,"-content"),"".concat(c,"-content-").concat(o),V({},"".concat(c,"-content-animated"),d))},u.map(function(p){var g=p.key,v=p.forceRender,m=p.style,h=p.className,y=p.destroyInactiveTabPane,b=xt(p,Mpe),S=g===r;return l.createElement(qr,ve({key:g,visible:S,forceRender:v,removeOnLeave:!!(i||y),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(C,x){var E=C.style,I=C.className;return l.createElement(TV,ve({},b,{prefixCls:f,id:n,tabKey:g,animated:d,active:S,style:K(K({},m),E),className:ne(h,I),ref:x}))})})))};function Ppe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=K({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Lpe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],TM=0,Fpe=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,g=p===void 0?"top":p,v=e.tabBarGutter,m=e.tabBarStyle,h=e.tabBarExtraContent,y=e.locale,b=e.more,S=e.destroyInactiveTabPane,C=e.renderTabBar,x=e.onChange,E=e.onTabClick,I=e.onTabScroll,R=e.getPopupContainer,T=e.popupClassName,_=e.indicator,$=xt(e,Lpe),D=l.useMemo(function(){return(i||[]).filter(function(q){return q&&mt(q)==="object"&&"key"in q})},[i]),P=s==="rtl",A=Ppe(f),O=l.useState(!1),k=ie(O,2),N=k[0],M=k[1];l.useEffect(function(){M(zb())},[]);var L=on(function(){var q;return(q=D[0])===null||q===void 0?void 0:q.key},{value:c,defaultValue:u}),F=ie(L,2),j=F[0],B=F[1],z=l.useState(function(){return D.findIndex(function(q){return q.key===j})}),H=ie(z,2),U=H[0],X=H[1];l.useEffect(function(){var q=D.findIndex(function(ae){return ae.key===j});if(q===-1){var Q;q=Math.max(0,Math.min(U,D.length-1)),B((Q=D[q])===null||Q===void 0?void 0:Q.key)}X(q)},[D.map(function(q){return q.key}).join("_"),j,U]);var W=on(null,{value:n}),Y=ie(W,2),te=Y[0],ee=Y[1];l.useEffect(function(){n||(ee("rc-tabs-".concat(TM)),TM+=1)},[]);function Z(q,Q){E==null||E(q,Q);var ae=q!==j;B(q),ae&&(x==null||x(q))}var oe={id:te,activeKey:j,animated:A,tabPosition:g,rtl:P,mobile:N},re=K(K({},oe),{},{editable:d,locale:y,more:b,tabBarGutter:v,onTabClick:Z,onTabScroll:I,extra:h,style:m,panes:null,getPopupContainer:R,popupClassName:T,indicator:_});return l.createElement(l0.Provider,{value:{tabs:D,prefixCls:a}},l.createElement("div",ve({ref:t,id:n,className:ne(a,"".concat(a,"-").concat(g),V(V(V({},"".concat(a,"-mobile"),N),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),P),o)},$),l.createElement(Ape,ve({},re,{renderTabBar:C})),l.createElement(Dpe,ve({destroyInactiveTabPane:S},oe,{animated:A}))))});const jpe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Bpe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},jpe),{motionName:bo(e,"switch")})),n}var zpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function Upe(e,t){if(e)return e;const n=ir(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=zpe(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return Hpe(n)}const Vpe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[pi(e,"slide-up"),pi(e,"slide-down")]]},Wpe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${G(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:G(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:G(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadiusLG)} 0 0 ${G(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Gpe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Xt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${G(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},vo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${G(e.paddingXXS)} ${G(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qpe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${G(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:G(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Kpe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadius)} ${G(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${G(e.borderRadius)} ${G(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadius)} ${G(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadius)} 0 0 ${G(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ype=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ui(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Xpe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:G(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:G(e.marginXS)},marginLeft:{_skip_check_:!0,value:G(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Zpe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${G(e.paddingXS)}`,background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},ui(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ype(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Qpe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Jpe=nn("Tabs",e=>{const t=zt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${G(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${G(e.horizontalItemGutter)}`});return[Kpe(t),Xpe(t),qpe(t),Gpe(t),Wpe(t),Zpe(t),Vpe(t)]},Qpe),ege=()=>null;var tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,i,s,c,u,d,f;const{type:p,className:g,rootClassName:v,size:m,onEdit:h,hideAdd:y,centered:b,addIcon:S,removeIcon:C,moreIcon:x,more:E,popupClassName:I,children:R,items:T,animated:_,style:$,indicatorSize:D,indicator:P}=e,A=tge(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=A,{direction:k,tabs:N,getPrefixCls:M,getPopupContainer:L}=l.useContext(it),F=M("tabs",O),j=Yn(F),[B,z,H]=Jpe(F,j);let U;p==="editable-card"&&(U={onEdit:(oe,re)=>{let{key:q,event:Q}=re;h==null||h(oe==="add"?Q:q,oe)},removeIcon:(t=C??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:l.createElement(da,null),addIcon:(S??(N==null?void 0:N.addIcon))||l.createElement(wV,null),showAdd:y!==!0});const X=M(),W=dr(m),Y=Upe(T,R),te=Bpe(F,_),ee=Object.assign(Object.assign({},N==null?void 0:N.style),$),Z={align:(n=P==null?void 0:P.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=P==null?void 0:P.size)!==null&&a!==void 0?a:D)!==null&&o!==void 0?o:(i=N==null?void 0:N.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(l.createElement(Fpe,Object.assign({direction:k,getPopupContainer:L},A,{items:Y,className:ne({[`${F}-${W}`]:W,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:p==="editable-card",[`${F}-centered`]:b},N==null?void 0:N.className,g,v,z,H,j),popupClassName:ne(I,z,H,j),style:ee,editable:U,more:Object.assign({icon:(f=(d=(u=(c=N==null?void 0:N.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:N==null?void 0:N.moreIcon)!==null&&d!==void 0?d:x)!==null&&f!==void 0?f:l.createElement(v$,null),transitionName:`${X}-slide-up`},E),prefixCls:F,animated:te,indicator:Z})))};RV.TabPane=ege;var nge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=nge(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(it),i=o("card",t),s=ne(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:s}))},rge=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${G(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},Vo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},vo),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:G(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Kpe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadius)} ${G(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${G(e.borderRadius)} ${G(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadius)} ${G(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadius)} 0 0 ${G(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ype=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},di(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Xpe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:G(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:G(e.marginXS)},marginLeft:{_skip_check_:!0,value:G(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Zpe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${G(e.paddingXS)}`,background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},di(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ype(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Qpe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Jpe=tn("Tabs",e=>{const t=Bt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${G(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${G(e.horizontalItemGutter)}`});return[Kpe(t),Xpe(t),qpe(t),Gpe(t),Wpe(t),Zpe(t),Vpe(t)]},Qpe),ege=()=>null;var tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,i,s,c,u,d,f;const{type:p,className:g,rootClassName:v,size:m,onEdit:h,hideAdd:y,centered:b,addIcon:S,removeIcon:C,moreIcon:x,more:E,popupClassName:I,children:R,items:T,animated:_,style:$,indicatorSize:D,indicator:P}=e,A=tge(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=A,{direction:k,tabs:N,getPrefixCls:M,getPopupContainer:L}=l.useContext(ct),F=M("tabs",O),j=Yn(F),[B,z,H]=Jpe(F,j);let U;p==="editable-card"&&(U={onEdit:(oe,re)=>{let{key:q,event:Q}=re;h==null||h(oe==="add"?Q:q,oe)},removeIcon:(t=C??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:l.createElement(da,null),addIcon:(S??(N==null?void 0:N.addIcon))||l.createElement(wV,null),showAdd:y!==!0});const X=M(),W=dr(m),Y=Upe(T,R),te=Bpe(F,_),ee=Object.assign(Object.assign({},N==null?void 0:N.style),$),Z={align:(n=P==null?void 0:P.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=P==null?void 0:P.size)!==null&&a!==void 0?a:D)!==null&&o!==void 0?o:(i=N==null?void 0:N.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(l.createElement(Fpe,Object.assign({direction:k,getPopupContainer:L},A,{items:Y,className:ne({[`${F}-${W}`]:W,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:p==="editable-card",[`${F}-centered`]:b},N==null?void 0:N.className,g,v,z,H,j),popupClassName:ne(I,z,H,j),style:ee,editable:U,more:Object.assign({icon:(f=(d=(u=(c=N==null?void 0:N.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:N==null?void 0:N.moreIcon)!==null&&d!==void 0?d:x)!==null&&f!==void 0?f:l.createElement(v$,null),transitionName:`${X}-slide-up`},E),prefixCls:F,animated:te,indicator:Z})))};RV.TabPane=ege;var nge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=nge(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(ct),i=o("card",t),s=ne(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:s}))},rge=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${G(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},Vo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},vo),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},age=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -318,18 +318,18 @@ html body { ${G(a)} ${G(a)} 0 0 ${n}, ${G(a)} 0 0 0 ${n} inset, 0 ${G(a)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},oge=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${G(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},Vo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:G(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:G(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${o}`}}})},ige=e=>Object.assign(Object.assign({margin:`${G(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Vo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},vo),"&-description":{color:e.colorTextDescription}}),sge=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${G(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${G(e.padding)} ${G(n)}`}}},lge=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cge=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:rge(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},Vo()),[`${t}-grid`]:age(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:oge(e),[`${t}-meta`]:ige(e)}),[`${t}-bordered`]:{border:`${G(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:sge(e),[`${t}-loading`]:lge(e),[`${t}-rtl`]:{direction:"rtl"}}},uge=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${G(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},dge=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),fge=nn("Card",e=>{const t=zt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[cge(t),uge(t)]},dge);var RM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,a))}))},gge=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:g,cover:v,actions:m,tabList:h,children:y,activeTabKey:b,defaultActiveTabKey:S,tabBarExtraContent:C,hoverable:x,tabProps:E={},classNames:I,styles:R}=e,T=RM(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:D}=l.useContext(it),P=de=>{var he;(he=e.onTabChange)===null||he===void 0||he.call(e,de)},A=de=>{var he;return ne((he=D==null?void 0:D.classNames)===null||he===void 0?void 0:he[de],I==null?void 0:I[de])},O=de=>{var he;return Object.assign(Object.assign({},(he=D==null?void 0:D.styles)===null||he===void 0?void 0:he[de]),R==null?void 0:R[de])},k=l.useMemo(()=>{let de=!1;return l.Children.forEach(y,he=>{(he==null?void 0:he.type)===_V&&(de=!0)}),de},[y]),N=_("card",n),[M,L,F]=fge(N),j=l.createElement(tl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=b!==void 0,z=Object.assign(Object.assign({},E),{[B?"activeKey":"defaultActiveKey"]:B?b:S,tabBarExtraContent:C});let H;const U=dr(p),X=!U||U==="default"?"large":U,W=h?l.createElement(RV,Object.assign({size:X},z,{className:`${N}-head-tabs`,onChange:P,items:h.map(de=>{var{tab:he}=de,ye=RM(de,["tab"]);return Object.assign({label:he},ye)})})):null;if(u||i||W){const de=ne(`${N}-head`,A("header")),he=ne(`${N}-head-title`,A("title")),ye=ne(`${N}-extra`,A("extra")),pe=Object.assign(Object.assign({},s),O("header"));H=l.createElement("div",{className:de,style:pe},l.createElement("div",{className:`${N}-head-wrapper`},u&&l.createElement("div",{className:he,style:O("title")},u),i&&l.createElement("div",{className:ye,style:O("extra")},i)),W)}const Y=ne(`${N}-cover`,A("cover")),te=v?l.createElement("div",{className:Y,style:O("cover")},v):null,ee=ne(`${N}-body`,A("body")),Z=Object.assign(Object.assign({},c),O("body")),oe=l.createElement("div",{className:ee,style:Z},d?j:y),re=ne(`${N}-actions`,A("actions")),q=m!=null&&m.length?l.createElement(pge,{actionClasses:re,actionStyle:O("actions"),actions:m}):null,Q=yn(T,["onTabChange"]),ae=ne(N,D==null?void 0:D.className,{[`${N}-loading`]:d,[`${N}-bordered`]:f,[`${N}-hoverable`]:x,[`${N}-contain-grid`]:k,[`${N}-contain-tabs`]:h==null?void 0:h.length,[`${N}-${U}`]:U,[`${N}-type-${g}`]:!!g,[`${N}-rtl`]:$==="rtl"},r,a,L,F),se=Object.assign(Object.assign({},D==null?void 0:D.style),o);return M(l.createElement("div",Object.assign({ref:t},Q,{className:ae,style:se}),H,te,oe,q))});var mge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=mge(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(it),c=s("card",t),u=ne(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=a?l.createElement("div",{className:`${c}-meta-title`},a):null,p=o?l.createElement("div",{className:`${c}-meta-description`},o):null,g=f||p?l.createElement("div",{className:`${c}-meta-detail`},f,p):null;return l.createElement("div",Object.assign({},i,{className:u}),d,g)},dd=gge;dd.Grid=_V;dd.Meta=hge;function vge(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function g(){d&&clearTimeout(d)}function v(h){var y=h||{},b=y.upcomingOnly,S=b===void 0?!1:b;g(),f=!S}function m(){for(var h=arguments.length,y=new Array(h),b=0;be?s?(p=Date.now(),o||(d=setTimeout(u?E:x,e))):x():o!==!0&&(d=setTimeout(u?E:x,u===void 0?e-C:e))}return m.cancel=v,m}function bge(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return vge(e,t,{debounceMode:o!==!1})}function Sa(e,t){return e[t]}var yge=["children"];function $V(e,t){return"".concat(e,"-").concat(t)}function Sge(e){return e&&e.type&&e.type.isTreeNode}function Sg(e,t){return e??t}function Hu(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function OV(e){function t(n){var r=sr(n);return r.map(function(a){if(!Sge(a))return pn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,c=xt(i,yge),u=K({key:o},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(a){return a})}return t(e)}function mS(e,t,n){var r=Hu(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,g){for(var v=$V(f?f.pos:"0",g),m=Sg(p[o],v),h,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),wge(e,function(g){var v=g.node,m=g.index,h=g.pos,y=g.key,b=g.parentPos,S=g.level,C=g.nodes,x={node:v,nodes:C,index:m,key:y,pos:h,level:S},E=Sg(y,h);d[h]=x,f[E]=x,x.parent=d[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,p)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),a&&a(p),p}function kf(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Sa(d,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function pr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,g=e.eventKey,v=K(K({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return pn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}function NV(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Cge(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function xge(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var p=f.key,g=f.node,v=f.children,m=v===void 0?[]:v;a.has(p)&&!r(g)&&m.filter(function(h){return!r(h.node)}).forEach(function(h){a.add(h.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var p=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(p.key);return}var v=!0,m=!1;(p.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var y=h.key,b=a.has(y);v&&!b&&(v=!1),!m&&(b||o.has(y))&&(m=!0)}),v&&a.add(p.key),m&&o.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(NV(o,a))}}function Ege(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(p){var g=p.key,v=p.node,m=p.children,h=m===void 0?[]:m;!o.has(g)&&!i.has(g)&&!a(v)&&h.filter(function(y){return!a(y.node)}).forEach(function(y){o.delete(y.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var g=p.parent,v=p.node;if(!(a(v)||!p.parent||u.has(p.parent.key))){if(a(p.parent.node)){u.add(g.key);return}var m=!0,h=!1;(g.children||[]).filter(function(y){return!a(y.node)}).forEach(function(y){var b=y.key,S=o.has(b);m&&!S&&(m=!1),!h&&(S||i.has(b))&&(h=!0)}),m||o.delete(g.key),h&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(NV(i,o))}}function Bi(e,t,n,r){var a=[],o;r?o=r:o=Cge;var i=new Set(e.filter(function(d){var f=!!Sa(n,d);return f||a.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,g=s.get(p);g||(g=new Set,s.set(p,g)),g.add(f),c=Math.max(c,p)}),pn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=xge(i,s,c,o):u=Ege(i,t.halfCheckedKeys,s,c,o),u}const Ige=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Qt(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({},Wi(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(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:`${G(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}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},oge=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${G(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},Vo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:G(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:G(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${o}`}}})},ige=e=>Object.assign(Object.assign({margin:`${G(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Vo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},vo),"&-description":{color:e.colorTextDescription}}),sge=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${G(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${G(e.padding)} ${G(n)}`}}},lge=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cge=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:rge(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},Vo()),[`${t}-grid`]:age(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:oge(e),[`${t}-meta`]:ige(e)}),[`${t}-bordered`]:{border:`${G(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:sge(e),[`${t}-loading`]:lge(e),[`${t}-rtl`]:{direction:"rtl"}}},uge=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${G(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},dge=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),fge=tn("Card",e=>{const t=Bt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[cge(t),uge(t)]},dge);var RM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,a))}))},gge=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:g,cover:v,actions:m,tabList:h,children:y,activeTabKey:b,defaultActiveTabKey:S,tabBarExtraContent:C,hoverable:x,tabProps:E={},classNames:I,styles:R}=e,T=RM(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:D}=l.useContext(ct),P=de=>{var he;(he=e.onTabChange)===null||he===void 0||he.call(e,de)},A=de=>{var he;return ne((he=D==null?void 0:D.classNames)===null||he===void 0?void 0:he[de],I==null?void 0:I[de])},O=de=>{var he;return Object.assign(Object.assign({},(he=D==null?void 0:D.styles)===null||he===void 0?void 0:he[de]),R==null?void 0:R[de])},k=l.useMemo(()=>{let de=!1;return l.Children.forEach(y,he=>{(he==null?void 0:he.type)===_V&&(de=!0)}),de},[y]),N=_("card",n),[M,L,F]=fge(N),j=l.createElement(tl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=b!==void 0,z=Object.assign(Object.assign({},E),{[B?"activeKey":"defaultActiveKey"]:B?b:S,tabBarExtraContent:C});let H;const U=dr(p),X=!U||U==="default"?"large":U,W=h?l.createElement(RV,Object.assign({size:X},z,{className:`${N}-head-tabs`,onChange:P,items:h.map(de=>{var{tab:he}=de,ye=RM(de,["tab"]);return Object.assign({label:he},ye)})})):null;if(u||i||W){const de=ne(`${N}-head`,A("header")),he=ne(`${N}-head-title`,A("title")),ye=ne(`${N}-extra`,A("extra")),pe=Object.assign(Object.assign({},s),O("header"));H=l.createElement("div",{className:de,style:pe},l.createElement("div",{className:`${N}-head-wrapper`},u&&l.createElement("div",{className:he,style:O("title")},u),i&&l.createElement("div",{className:ye,style:O("extra")},i)),W)}const Y=ne(`${N}-cover`,A("cover")),te=v?l.createElement("div",{className:Y,style:O("cover")},v):null,ee=ne(`${N}-body`,A("body")),Z=Object.assign(Object.assign({},c),O("body")),oe=l.createElement("div",{className:ee,style:Z},d?j:y),re=ne(`${N}-actions`,A("actions")),q=m!=null&&m.length?l.createElement(pge,{actionClasses:re,actionStyle:O("actions"),actions:m}):null,Q=Sn(T,["onTabChange"]),ae=ne(N,D==null?void 0:D.className,{[`${N}-loading`]:d,[`${N}-bordered`]:f,[`${N}-hoverable`]:x,[`${N}-contain-grid`]:k,[`${N}-contain-tabs`]:h==null?void 0:h.length,[`${N}-${U}`]:U,[`${N}-type-${g}`]:!!g,[`${N}-rtl`]:$==="rtl"},r,a,L,F),se=Object.assign(Object.assign({},D==null?void 0:D.style),o);return M(l.createElement("div",Object.assign({ref:t},Q,{className:ae,style:se}),H,te,oe,q))});var mge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=mge(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(ct),c=s("card",t),u=ne(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=a?l.createElement("div",{className:`${c}-meta-title`},a):null,p=o?l.createElement("div",{className:`${c}-meta-description`},o):null,g=f||p?l.createElement("div",{className:`${c}-meta-detail`},f,p):null;return l.createElement("div",Object.assign({},i,{className:u}),d,g)},dd=gge;dd.Grid=_V;dd.Meta=hge;function vge(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function g(){d&&clearTimeout(d)}function v(h){var y=h||{},b=y.upcomingOnly,S=b===void 0?!1:b;g(),f=!S}function m(){for(var h=arguments.length,y=new Array(h),b=0;be?s?(p=Date.now(),o||(d=setTimeout(u?E:x,e))):x():o!==!0&&(d=setTimeout(u?E:x,u===void 0?e-C:e))}return m.cancel=v,m}function bge(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return vge(e,t,{debounceMode:o!==!1})}function Sa(e,t){return e[t]}var yge=["children"];function $V(e,t){return"".concat(e,"-").concat(t)}function Sge(e){return e&&e.type&&e.type.isTreeNode}function Sg(e,t){return e??t}function Hu(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function OV(e){function t(n){var r=ir(n);return r.map(function(a){if(!Sge(a))return pn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,c=xt(i,yge),u=K({key:o},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(a){return a})}return t(e)}function mS(e,t,n){var r=Hu(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,g){for(var v=$V(f?f.pos:"0",g),m=Sg(p[o],v),h,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),wge(e,function(g){var v=g.node,m=g.index,h=g.pos,y=g.key,b=g.parentPos,S=g.level,C=g.nodes,x={node:v,nodes:C,index:m,key:y,pos:h,level:S},E=Sg(y,h);d[h]=x,f[E]=x,x.parent=d[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,p)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),a&&a(p),p}function kf(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Sa(d,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function pr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,g=e.eventKey,v=K(K({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return pn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}function NV(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Cge(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function xge(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var p=f.key,g=f.node,v=f.children,m=v===void 0?[]:v;a.has(p)&&!r(g)&&m.filter(function(h){return!r(h.node)}).forEach(function(h){a.add(h.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var p=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(p.key);return}var v=!0,m=!1;(p.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var y=h.key,b=a.has(y);v&&!b&&(v=!1),!m&&(b||o.has(y))&&(m=!0)}),v&&a.add(p.key),m&&o.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(NV(o,a))}}function Ege(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(p){var g=p.key,v=p.node,m=p.children,h=m===void 0?[]:m;!o.has(g)&&!i.has(g)&&!a(v)&&h.filter(function(y){return!a(y.node)}).forEach(function(y){o.delete(y.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var g=p.parent,v=p.node;if(!(a(v)||!p.parent||u.has(p.parent.key))){if(a(p.parent.node)){u.add(g.key);return}var m=!0,h=!1;(g.children||[]).filter(function(y){return!a(y.node)}).forEach(function(y){var b=y.key,S=o.has(b);m&&!S&&(m=!1),!h&&(S||i.has(b))&&(h=!0)}),m||o.delete(g.key),h&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(NV(i,o))}}function Bi(e,t,n,r){var a=[],o;r?o=r:o=Cge;var i=new Set(e.filter(function(d){var f=!!Sa(n,d);return f||a.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,g=s.get(p);g||(g=new Set,s.set(p,g)),g.add(f),c=Math.max(c,p)}),pn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=xge(i,s,c,o):u=Ege(i,t.halfCheckedKeys,s,c,o),u}const Ige=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Xt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Xt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Xt(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({},Wi(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(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:`${G(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}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-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}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&: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} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-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 N$(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Ige(n)]}const kV=nn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[N$(n,e)]}),AV=le.createContext(null);var Tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,g=Tge(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:m,checkbox:h}=l.useContext(it),y=l.useContext(AV),{isFormItemInput:b}=l.useContext(Rr),S=l.useContext(Gr),C=(n=(y==null?void 0:y.disabled)||p)!==null&&n!==void 0?n:S,x=l.useRef(g.value);l.useEffect(()=>{y==null||y.registerValue(g.value)},[]),l.useEffect(()=>{if(!f)return g.value!==x.current&&(y==null||y.cancelValue(x.current),y==null||y.registerValue(g.value),x.current=g.value),()=>y==null?void 0:y.cancelValue(g.value)},[g.value]);const E=v("checkbox",r),I=Yn(E),[R,T,_]=kV(E,I),$=Object.assign({},g);y&&!f&&($.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:i,value:g.value})},$.name=y.name,$.checked=y.value.includes(g.value));const D=ne(`${E}-wrapper`,{[`${E}-rtl`]:m==="rtl",[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:b},h==null?void 0:h.className,a,o,_,I,T),P=ne({[`${E}-indeterminate`]:s},Nb,T),A=s?"mixed":void 0;return R(l.createElement(rg,{component:"Checkbox",disabled:C},l.createElement("label",{className:D,style:Object.assign(Object.assign({},h==null?void 0:h.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(pV,Object.assign({"aria-checked":A},$,{prefixCls:E,className:P,disabled:C,ref:t})),i!==void 0&&l.createElement("span",null,i))))},MV=l.forwardRef(Rge);var _ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:s,style:c,onChange:u}=e,d=_ge(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=l.useContext(it),[g,v]=l.useState(d.value||n||[]),[m,h]=l.useState([]);l.useEffect(()=>{"value"in d&&v(d.value||[])},[d.value]);const y=l.useMemo(()=>a.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[a]),b=O=>{h(k=>k.filter(N=>N!==O))},S=O=>{h(k=>[].concat(Oe(k),[O]))},C=O=>{const k=g.indexOf(O.value),N=Oe(g);k===-1?N.push(O.value):N.splice(k,1),"value"in d||v(N),u==null||u(N.filter(M=>m.includes(M)).sort((M,L)=>{const F=y.findIndex(B=>B.value===M),j=y.findIndex(B=>B.value===L);return F-j}))},x=f("checkbox",o),E=`${x}-group`,I=Yn(x),[R,T,_]=kV(x,I),$=yn(d,["value","disabled"]),D=a.length?y.map(O=>l.createElement(MV,{prefixCls:x,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:g.includes(O.value),onChange:O.onChange,className:`${E}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,P={toggleOption:C,value:g,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:b},A=ne(E,{[`${E}-rtl`]:p==="rtl"},i,s,_,I,T);return R(l.createElement("div",Object.assign({className:A,style:c},$,{ref:t}),l.createElement(AV.Provider,{value:P},D)))}),Xi=MV;Xi.Group=$ge;Xi.__ANT_CHECKBOX=!0;const DV=l.createContext({}),Oge=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Nge=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},kge=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},DT=(e,t)=>kge(e,t),Age=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:Object.assign({},DT(e,n))}),Mge=()=>({}),Dge=()=>({}),Pge=nn("Grid",Oge,Mge),Lge=nn("Grid",e=>{const t=zt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Nge(t),DT(t,""),DT(t,"-xs"),Object.keys(n).map(r=>Age(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Dge);var Fge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(it),{gutter:a,wrap:o}=l.useContext(DV),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:p,children:g,flex:v,style:m}=e,h=Fge(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",i),[b,S,C]=Lge(y),x={};let E={};jge.forEach(T=>{let _={};const $=e[T];typeof $=="number"?_.span=$:typeof $=="object"&&(_=$||{}),delete h[T],E=Object.assign(Object.assign({},E),{[`${y}-${T}-${_.span}`]:_.span!==void 0,[`${y}-${T}-order-${_.order}`]:_.order||_.order===0,[`${y}-${T}-offset-${_.offset}`]:_.offset||_.offset===0,[`${y}-${T}-push-${_.push}`]:_.push||_.push===0,[`${y}-${T}-pull-${_.pull}`]:_.pull||_.pull===0,[`${y}-rtl`]:r==="rtl"}),_.flex&&(E[`${y}-${T}-flex`]=!0,x[`--${y}-${T}-flex`]=_M(_.flex))});const I=ne(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},p,E,S,C),R={};if(a&&a[0]>0){const T=a[0]/2;R.paddingLeft=T,R.paddingRight=T}return v&&(R.flex=_M(v),o===!1&&!R.minWidth&&(R.minWidth=0)),b(l.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},R),m),x),className:I,ref:t}),g))});var Bge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Ba=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:c=0,wrap:u}=e,d=Bge(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=l.useContext(it),[g,v]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,h]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=$M(a,m),b=$M(r,m),S=l.useRef(c),C=ZH();l.useEffect(()=>{const N=C.subscribe(M=>{h(M);const L=S.current||0;(!Array.isArray(L)&&typeof L=="object"||Array.isArray(L)&&(typeof L[0]=="object"||typeof L[1]=="object"))&&v(M)});return()=>C.unsubscribe(N)},[]);const x=()=>{const N=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((L,F)=>{if(typeof L=="object")for(let j=0;j0?_[0]/-2:void 0;P&&(D.marginLeft=P,D.marginRight=P);const[A,O]=_;D.rowGap=O;const k=l.useMemo(()=>({gutter:[A,O],wrap:u}),[A,O,u]);return I(l.createElement(DV.Provider,{value:k},l.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},D),i),ref:t}),s)))});var PV=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,s=e.isActive,c=e.role,u=le.useState(s||r),d=ie(u,2),f=d[0],p=d[1];return le.useEffect(function(){(r||s)&&p(!0)},[r,s]),f?le.createElement("div",{ref:t,className:ne("".concat(n,"-content"),V(V({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:c},le.createElement("div",{className:"".concat(n,"-content-box")},i)):null});PV.displayName="PanelContent";var zge=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],LV=le.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,g=e.extra,v=e.header,m=e.expandIcon,h=e.openMotion,y=e.destroyInactivePanel,b=e.children,S=xt(e,zge),C=d==="disabled",x=d==="header",E=d==="icon",I=g!=null&&typeof g!="boolean",R=function(){i==null||i(p)},T=function(O){(O.key==="Enter"||O.keyCode===Me.ENTER||O.which===Me.ENTER)&&R()},_=typeof m=="function"?m(e):le.createElement("i",{className:"arrow"});_&&(_=le.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?R:void 0},_));var $=ne(V(V(V({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),o),"".concat(u,"-item-disabled"),C),c),D=ne(a,V(V(V({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),x),"".concat(u,"-icon-collapsible-only"),E)),P={className:D,"aria-expanded":o,"aria-disabled":C,onKeyDown:T};return!x&&!E&&(P.onClick=R,P.role=f?"tab":"button",P.tabIndex=C?-1:0),le.createElement("div",ve({},S,{ref:t,className:$}),le.createElement("div",P,r&&_,le.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?R:void 0},v),I&&le.createElement("div",{className:"".concat(u,"-extra")},g)),le.createElement(qr,ve({visible:o,leavedClassName:"".concat(u,"-content-hidden")},h,{forceRender:s,removeOnLeave:y}),function(A,O){var k=A.className,N=A.style;return le.createElement(PV,{ref:O,prefixCls:u,className:k,style:N,isActive:o,forceRender:s,role:f?"tabpanel":void 0},b)}))}),Hge=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Uge=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,p){var g=f.children,v=f.label,m=f.key,h=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,S=xt(f,Hge),C=String(m??p),x=h??o,E=b??i,I=function(_){x!=="disabled"&&(s(_),y==null||y(_))},R=!1;return a?R=c[0]===C:R=c.indexOf(C)>-1,le.createElement(LV,ve({},S,{prefixCls:r,key:C,panelKey:C,isActive:R,accordion:a,openMotion:u,expandIcon:d,header:v,collapsible:x,onItemClick:I,destroyInactivePanel:E}),g)})},Vge=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=t.key||String(n),g=t.props,v=g.header,m=g.headerClass,h=g.destroyInactivePanel,y=g.collapsible,b=g.onItemClick,S=!1;o?S=u[0]===p:S=u.indexOf(p)>-1;var C=y??i,x=function(R){C!=="disabled"&&(c(R),b==null||b(R))},E={key:p,panelKey:p,header:v,headerClass:m,isActive:S,prefixCls:a,destroyInactivePanel:h??s,openMotion:d,accordion:o,children:t.props.children,onItemClick:x,expandIcon:f,collapsible:C};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(I){typeof E[I]>"u"&&delete E[I]}),le.cloneElement(t,E))};function Wge(e,t,n){return Array.isArray(e)?Uge(e,n):sr(t).map(function(r,a){return Vge(r,a,n)})}function Gge(e){var t=e;if(!Array.isArray(t)){var n=ht(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var qge=le.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,g=e.activeKey,v=e.defaultActiveKey,m=e.onChange,h=e.items,y=ne(r,c),b=on([],{value:g,onChange:function(T){return m==null?void 0:m(T)},defaultValue:v,postState:Gge}),S=ie(b,2),C=S[0],x=S[1],E=function(T){return x(function(){if(s)return C[0]===T?[]:[T];var _=C.indexOf(T),$=_>-1;return $?C.filter(function(D){return D!==T}):[].concat(Oe(C),[T])})};pn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=Wge(h,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:C});return le.createElement("div",ve({ref:t,className:y,style:i,role:s?"tablist":void 0},Mn(e,{aria:!0,data:!0})),I)});const k$=Object.assign(qge,{Panel:LV});k$.Panel;const Kge=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(it),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),s=ne({[`${i}-no-arrow`]:!o},a);return l.createElement(k$.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),Yge=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:g,colorTextDisabled:v,fontSizeLG:m,lineHeight:h,lineHeightLG:y,marginSM:b,paddingSM:S,paddingLG:C,paddingXS:x,motionDurationSlow:E,fontSizeIcon:I,contentPadding:R,fontHeight:T,fontHeightLG:_}=e,$=`${G(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Qt(e)),{backgroundColor:a,border:$,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&: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} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-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 N$(e,t){const n=Bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Ige(n)]}const kV=tn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[N$(n,e)]}),AV=le.createContext(null);var Tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,g=Tge(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:m,checkbox:h}=l.useContext(ct),y=l.useContext(AV),{isFormItemInput:b}=l.useContext(Rr),S=l.useContext(Gr),C=(n=(y==null?void 0:y.disabled)||p)!==null&&n!==void 0?n:S,x=l.useRef(g.value);l.useEffect(()=>{y==null||y.registerValue(g.value)},[]),l.useEffect(()=>{if(!f)return g.value!==x.current&&(y==null||y.cancelValue(x.current),y==null||y.registerValue(g.value),x.current=g.value),()=>y==null?void 0:y.cancelValue(g.value)},[g.value]);const E=v("checkbox",r),I=Yn(E),[R,T,_]=kV(E,I),$=Object.assign({},g);y&&!f&&($.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:i,value:g.value})},$.name=y.name,$.checked=y.value.includes(g.value));const D=ne(`${E}-wrapper`,{[`${E}-rtl`]:m==="rtl",[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:b},h==null?void 0:h.className,a,o,_,I,T),P=ne({[`${E}-indeterminate`]:s},Nb,T),A=s?"mixed":void 0;return R(l.createElement(rg,{component:"Checkbox",disabled:C},l.createElement("label",{className:D,style:Object.assign(Object.assign({},h==null?void 0:h.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(pV,Object.assign({"aria-checked":A},$,{prefixCls:E,className:P,disabled:C,ref:t})),i!==void 0&&l.createElement("span",null,i))))},MV=l.forwardRef(Rge);var _ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:s,style:c,onChange:u}=e,d=_ge(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=l.useContext(ct),[g,v]=l.useState(d.value||n||[]),[m,h]=l.useState([]);l.useEffect(()=>{"value"in d&&v(d.value||[])},[d.value]);const y=l.useMemo(()=>a.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[a]),b=O=>{h(k=>k.filter(N=>N!==O))},S=O=>{h(k=>[].concat(Oe(k),[O]))},C=O=>{const k=g.indexOf(O.value),N=Oe(g);k===-1?N.push(O.value):N.splice(k,1),"value"in d||v(N),u==null||u(N.filter(M=>m.includes(M)).sort((M,L)=>{const F=y.findIndex(B=>B.value===M),j=y.findIndex(B=>B.value===L);return F-j}))},x=f("checkbox",o),E=`${x}-group`,I=Yn(x),[R,T,_]=kV(x,I),$=Sn(d,["value","disabled"]),D=a.length?y.map(O=>l.createElement(MV,{prefixCls:x,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:g.includes(O.value),onChange:O.onChange,className:`${E}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,P={toggleOption:C,value:g,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:b},A=ne(E,{[`${E}-rtl`]:p==="rtl"},i,s,_,I,T);return R(l.createElement("div",Object.assign({className:A,style:c},$,{ref:t}),l.createElement(AV.Provider,{value:P},D)))}),Xi=MV;Xi.Group=$ge;Xi.__ANT_CHECKBOX=!0;const DV=l.createContext({}),Oge=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Nge=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},kge=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},DT=(e,t)=>kge(e,t),Age=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:Object.assign({},DT(e,n))}),Mge=()=>({}),Dge=()=>({}),Pge=tn("Grid",Oge,Mge),Lge=tn("Grid",e=>{const t=Bt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Nge(t),DT(t,""),DT(t,"-xs"),Object.keys(n).map(r=>Age(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Dge);var Fge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(ct),{gutter:a,wrap:o}=l.useContext(DV),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:p,children:g,flex:v,style:m}=e,h=Fge(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",i),[b,S,C]=Lge(y),x={};let E={};jge.forEach(T=>{let _={};const $=e[T];typeof $=="number"?_.span=$:typeof $=="object"&&(_=$||{}),delete h[T],E=Object.assign(Object.assign({},E),{[`${y}-${T}-${_.span}`]:_.span!==void 0,[`${y}-${T}-order-${_.order}`]:_.order||_.order===0,[`${y}-${T}-offset-${_.offset}`]:_.offset||_.offset===0,[`${y}-${T}-push-${_.push}`]:_.push||_.push===0,[`${y}-${T}-pull-${_.pull}`]:_.pull||_.pull===0,[`${y}-rtl`]:r==="rtl"}),_.flex&&(E[`${y}-${T}-flex`]=!0,x[`--${y}-${T}-flex`]=_M(_.flex))});const I=ne(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},p,E,S,C),R={};if(a&&a[0]>0){const T=a[0]/2;R.paddingLeft=T,R.paddingRight=T}return v&&(R.flex=_M(v),o===!1&&!R.minWidth&&(R.minWidth=0)),b(l.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},R),m),x),className:I,ref:t}),g))});var Bge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Ba=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:c=0,wrap:u}=e,d=Bge(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=l.useContext(ct),[g,v]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,h]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=$M(a,m),b=$M(r,m),S=l.useRef(c),C=ZH();l.useEffect(()=>{const N=C.subscribe(M=>{h(M);const L=S.current||0;(!Array.isArray(L)&&typeof L=="object"||Array.isArray(L)&&(typeof L[0]=="object"||typeof L[1]=="object"))&&v(M)});return()=>C.unsubscribe(N)},[]);const x=()=>{const N=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((L,F)=>{if(typeof L=="object")for(let j=0;j0?_[0]/-2:void 0;P&&(D.marginLeft=P,D.marginRight=P);const[A,O]=_;D.rowGap=O;const k=l.useMemo(()=>({gutter:[A,O],wrap:u}),[A,O,u]);return I(l.createElement(DV.Provider,{value:k},l.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},D),i),ref:t}),s)))});var PV=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,s=e.isActive,c=e.role,u=le.useState(s||r),d=ie(u,2),f=d[0],p=d[1];return le.useEffect(function(){(r||s)&&p(!0)},[r,s]),f?le.createElement("div",{ref:t,className:ne("".concat(n,"-content"),V(V({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:c},le.createElement("div",{className:"".concat(n,"-content-box")},i)):null});PV.displayName="PanelContent";var zge=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],LV=le.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,g=e.extra,v=e.header,m=e.expandIcon,h=e.openMotion,y=e.destroyInactivePanel,b=e.children,S=xt(e,zge),C=d==="disabled",x=d==="header",E=d==="icon",I=g!=null&&typeof g!="boolean",R=function(){i==null||i(p)},T=function(O){(O.key==="Enter"||O.keyCode===De.ENTER||O.which===De.ENTER)&&R()},_=typeof m=="function"?m(e):le.createElement("i",{className:"arrow"});_&&(_=le.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?R:void 0},_));var $=ne(V(V(V({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),o),"".concat(u,"-item-disabled"),C),c),D=ne(a,V(V(V({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),x),"".concat(u,"-icon-collapsible-only"),E)),P={className:D,"aria-expanded":o,"aria-disabled":C,onKeyDown:T};return!x&&!E&&(P.onClick=R,P.role=f?"tab":"button",P.tabIndex=C?-1:0),le.createElement("div",ve({},S,{ref:t,className:$}),le.createElement("div",P,r&&_,le.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?R:void 0},v),I&&le.createElement("div",{className:"".concat(u,"-extra")},g)),le.createElement(qr,ve({visible:o,leavedClassName:"".concat(u,"-content-hidden")},h,{forceRender:s,removeOnLeave:y}),function(A,O){var k=A.className,N=A.style;return le.createElement(PV,{ref:O,prefixCls:u,className:k,style:N,isActive:o,forceRender:s,role:f?"tabpanel":void 0},b)}))}),Hge=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Uge=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,p){var g=f.children,v=f.label,m=f.key,h=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,S=xt(f,Hge),C=String(m??p),x=h??o,E=b??i,I=function(_){x!=="disabled"&&(s(_),y==null||y(_))},R=!1;return a?R=c[0]===C:R=c.indexOf(C)>-1,le.createElement(LV,ve({},S,{prefixCls:r,key:C,panelKey:C,isActive:R,accordion:a,openMotion:u,expandIcon:d,header:v,collapsible:x,onItemClick:I,destroyInactivePanel:E}),g)})},Vge=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=t.key||String(n),g=t.props,v=g.header,m=g.headerClass,h=g.destroyInactivePanel,y=g.collapsible,b=g.onItemClick,S=!1;o?S=u[0]===p:S=u.indexOf(p)>-1;var C=y??i,x=function(R){C!=="disabled"&&(c(R),b==null||b(R))},E={key:p,panelKey:p,header:v,headerClass:m,isActive:S,prefixCls:a,destroyInactivePanel:h??s,openMotion:d,accordion:o,children:t.props.children,onItemClick:x,expandIcon:f,collapsible:C};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(I){typeof E[I]>"u"&&delete E[I]}),le.cloneElement(t,E))};function Wge(e,t,n){return Array.isArray(e)?Uge(e,n):ir(t).map(function(r,a){return Vge(r,a,n)})}function Gge(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var qge=le.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,g=e.activeKey,v=e.defaultActiveKey,m=e.onChange,h=e.items,y=ne(r,c),b=on([],{value:g,onChange:function(T){return m==null?void 0:m(T)},defaultValue:v,postState:Gge}),S=ie(b,2),C=S[0],x=S[1],E=function(T){return x(function(){if(s)return C[0]===T?[]:[T];var _=C.indexOf(T),$=_>-1;return $?C.filter(function(D){return D!==T}):[].concat(Oe(C),[T])})};pn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=Wge(h,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:C});return le.createElement("div",ve({ref:t,className:y,style:i,role:s?"tablist":void 0},Pn(e,{aria:!0,data:!0})),I)});const k$=Object.assign(qge,{Panel:LV});k$.Panel;const Kge=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(ct),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),s=ne({[`${i}-no-arrow`]:!o},a);return l.createElement(k$.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),Yge=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:g,colorTextDisabled:v,fontSizeLG:m,lineHeight:h,lineHeightLG:y,marginSM:b,paddingSM:S,paddingLG:C,paddingXS:x,motionDurationSlow:E,fontSizeIcon:I,contentPadding:R,fontHeight:T,fontHeightLG:_}=e,$=`${G(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Xt(e)),{backgroundColor:a,border:$,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${G(c)} ${G(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:h,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},td()),{fontSize:I,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(S).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${G(c)} ${G(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Xge=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Zge=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Qge=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Jge=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),eme=nn("Collapse",e=>{const t=zt(e,{collapseHeaderPaddingSM:`${G(e.paddingXS)} ${G(e.paddingSM)}`,collapseHeaderPaddingLG:`${G(e.padding)} ${G(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Yge(t),Zge(t),Qge(t),Xge(t),sg(t)]},Jge),tme=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=l.useContext(it),{prefixCls:o,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:g,expandIcon:v}=e,m=dr($=>{var D;return(D=f??$)!==null&&D!==void 0?D:"middle"}),h=n("collapse",o),y=n(),[b,S,C]=eme(h),x=l.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),E=v??(a==null?void 0:a.expandIcon),I=l.useCallback(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const D=typeof E=="function"?E($):l.createElement(Hs,{rotate:$.isActive?90:void 0,"aria-label":$.isActive?"expanded":"collapsed"});return ur(D,()=>{var P;return{className:ne((P=D==null?void 0:D.props)===null||P===void 0?void 0:P.className,`${h}-arrow`)}})},[E,h]),R=ne(`${h}-icon-position-${x}`,{[`${h}-borderless`]:!u,[`${h}-rtl`]:r==="rtl",[`${h}-ghost`]:!!d,[`${h}-${m}`]:m!=="middle"},a==null?void 0:a.className,i,s,S,C),T=Object.assign(Object.assign({},ju(y)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),_=l.useMemo(()=>g?sr(g).map(($,D)=>{var P,A;if(!((P=$.props)===null||P===void 0)&&P.disabled){const O=(A=$.key)!==null&&A!==void 0?A:String(D),{disabled:k,collapsible:N}=$.props,M=Object.assign(Object.assign({},yn($.props,["disabled"])),{key:O,collapsible:N??(k?"disabled":void 0)});return ur($,M)}return $}):null,[g]);return b(l.createElement(k$,Object.assign({ref:t,openMotion:T},yn(e,["rootClassName"]),{expandIcon:I,prefixCls:h,className:R,style:Object.assign(Object.assign({},a==null?void 0:a.style),c)}),_))}),A$=Object.assign(tme,{Panel:Kge}),nme=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{borderBlockStart:`${G(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${G(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},rme=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),ame=nn("Divider",e=>{const t=zt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[nme(t)]},rme,{unitless:{orientationMargin:!0}});var ome=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(it),{prefixCls:a,type:o="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:g,style:v}=e,m=ome(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),h=t("divider",a),[y,b,S]=ame(h),C=!!d,x=i==="left"&&s!=null,E=i==="right"&&s!=null,I=ne(h,r==null?void 0:r.className,b,S,`${h}-${o}`,{[`${h}-with-text`]:C,[`${h}-with-text-${i}`]:C,[`${h}-dashed`]:!!f,[`${h}-${p}`]:p!=="solid",[`${h}-plain`]:!!g,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:x,[`${h}-no-default-orientation-margin-right`]:E},c,u),R=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),T=Object.assign(Object.assign({},x&&{marginLeft:R}),E&&{marginRight:R});return y(l.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},m,{role:"separator"}),d&&o!=="vertical"&&l.createElement("span",{className:`${h}-inner-text`,style:T},d)))};var ime={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"},sme=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:ime}))},lme=l.forwardRef(sme);function PT(){return typeof BigInt=="function"}function FV(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function jl(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function M$(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Tl(e){var t=String(e);if(M$(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&D$(t)?t.length-t.indexOf(".")-1:0}function u0(e){var t=String(e);if(M$(e)){if(e>Number.MAX_SAFE_INTEGER)return String(PT()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":jl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ume=function(){function e(t){if(Dn(this,e),V(this,"origin",""),V(this,"number",void 0),V(this,"empty",void 0),FV(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Pn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":u0(this.number):this.origin}}]),e}();function _o(e){return PT()?new cme(e):new ume(e)}function Th(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=jl(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,c="".concat(t).concat(s),u="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=_o(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return Th(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function dme(e){return!!(e.addonBefore||e.addonAfter)}function fme(e){return!!(e.prefix||e.suffix||e.allowClear)}function OM(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Tv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=OM(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=OM(t,e,r),n(a);return}n(a)}}function jV(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var P$=le.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,g=e.disabled,v=e.readOnly,m=e.focused,h=e.triggerFocus,y=e.allowClear,b=e.value,S=e.handleReset,C=e.hidden,x=e.classes,E=e.classNames,I=e.dataAttrs,R=e.styles,T=e.components,_=e.onClear,$=o??a,D=(T==null?void 0:T.affixWrapper)||"span",P=(T==null?void 0:T.groupWrapper)||"span",A=(T==null?void 0:T.wrapper)||"span",O=(T==null?void 0:T.groupAddon)||"span",k=l.useRef(null),N=function(q){var Q;(Q=k.current)!==null&&Q!==void 0&&Q.contains(q.target)&&(h==null||h())},M=fme(e),L=l.cloneElement($,{value:b,className:ne($.props.className,!M&&(E==null?void 0:E.variant))||null}),F=l.useRef(null);if(le.useImperativeHandle(t,function(){return{nativeElement:F.current||k.current}}),M){var j=null;if(y){var B=!g&&!v&&b,z="".concat(i,"-clear-icon"),H=ht(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";j=le.createElement("span",{onClick:function(q){S==null||S(q),_==null||_()},onMouseDown:function(q){return q.preventDefault()},className:ne(z,V(V({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!c)),role:"button",tabIndex:-1},H)}var U="".concat(i,"-affix-wrapper"),X=ne(U,V(V(V(V(V({},"".concat(i,"-disabled"),g),"".concat(U,"-disabled"),g),"".concat(U,"-focused"),m),"".concat(U,"-readonly"),v),"".concat(U,"-input-with-clear-btn"),c&&y&&b),x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),W=(c||y)&&le.createElement("span",{className:ne("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:R==null?void 0:R.suffix},j,c);L=le.createElement(D,ve({className:X,style:R==null?void 0:R.affixWrapper,onClick:N},I==null?void 0:I.affixWrapper,{ref:k}),s&&le.createElement("span",{className:ne("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:R==null?void 0:R.prefix},s),L,W)}if(dme(e)){var Y="".concat(i,"-group"),te="".concat(Y,"-addon"),ee="".concat(Y,"-wrapper"),Z=ne("".concat(i,"-wrapper"),Y,x==null?void 0:x.wrapper,E==null?void 0:E.wrapper),oe=ne(ee,V({},"".concat(ee,"-disabled"),g),x==null?void 0:x.group,E==null?void 0:E.groupWrapper);L=le.createElement(P,{className:oe,ref:F},le.createElement(A,{className:Z},u&&le.createElement(O,{className:te},u),L,d&&le.createElement(O,{className:te},d)))}return le.cloneElement(L,{className:ne((n=L.props)===null||n===void 0?void 0:n.className,f)||null,style:K(K({},(r=L.props)===null||r===void 0?void 0:r.style),p),hidden:C})}),pme=["show"];function BV(e,t){return l.useMemo(function(){var n={};t&&(n.show=ht(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,a=r.show,o=xt(r,pme);return K(K({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var gme=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mme=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,p=e.htmlSize,g=e.className,v=e.maxLength,m=e.suffix,h=e.showCount,y=e.count,b=e.type,S=b===void 0?"text":b,C=e.classes,x=e.classNames,E=e.styles,I=e.onCompositionStart,R=e.onCompositionEnd,T=xt(e,gme),_=l.useState(!1),$=ie(_,2),D=$[0],P=$[1],A=l.useRef(!1),O=l.useRef(!1),k=l.useRef(null),N=l.useRef(null),M=function(ue){k.current&&jV(k.current,ue)},L=on(e.defaultValue,{value:e.value}),F=ie(L,2),j=F[0],B=F[1],z=j==null?"":String(j),H=l.useState(null),U=ie(H,2),X=U[0],W=U[1],Y=BV(y,h),te=Y.max||v,ee=Y.strategy(z),Z=!!te&&ee>te;l.useImperativeHandle(t,function(){var ce;return{focus:M,blur:function(){var fe;(fe=k.current)===null||fe===void 0||fe.blur()},setSelectionRange:function(fe,be,Te){var _e;(_e=k.current)===null||_e===void 0||_e.setSelectionRange(fe,be,Te)},select:function(){var fe;(fe=k.current)===null||fe===void 0||fe.select()},input:k.current,nativeElement:((ce=N.current)===null||ce===void 0?void 0:ce.nativeElement)||k.current}}),l.useEffect(function(){P(function(ce){return ce&&f?!1:ce})},[f]);var oe=function(ue,fe,be){var Te=fe;if(!A.current&&Y.exceedFormatter&&Y.max&&Y.strategy(fe)>Y.max){if(Te=Y.exceedFormatter(fe,{max:Y.max}),fe!==Te){var _e,Pe;W([((_e=k.current)===null||_e===void 0?void 0:_e.selectionStart)||0,((Pe=k.current)===null||Pe===void 0?void 0:Pe.selectionEnd)||0])}}else if(be.source==="compositionEnd")return;B(Te),k.current&&Tv(k.current,ue,r,Te)};l.useEffect(function(){if(X){var ce;(ce=k.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,Oe(X))}},[X]);var re=function(ue){oe(ue,ue.target.value,{source:"change"})},q=function(ue){A.current=!1,oe(ue,ue.currentTarget.value,{source:"compositionEnd"}),R==null||R(ue)},Q=function(ue){i&&ue.key==="Enter"&&!O.current&&(O.current=!0,i(ue)),s==null||s(ue)},ae=function(ue){ue.key==="Enter"&&(O.current=!1),c==null||c(ue)},se=function(ue){P(!0),a==null||a(ue)},de=function(ue){P(!1),o==null||o(ue)},he=function(ue){B(""),M(),k.current&&Tv(k.current,ue,r)},ye=Z&&"".concat(d,"-out-of-range"),pe=function(){var ue=yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return le.createElement("input",ve({autoComplete:n},ue,{onChange:re,onFocus:se,onBlur:de,onKeyDown:Q,onKeyUp:ae,className:ne(d,V({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:E==null?void 0:E.input,ref:k,size:p,type:S,onCompositionStart:function(be){A.current=!0,I==null||I(be)},onCompositionEnd:q}))},J=function(){var ue=Number(te)>0;if(m||Y.show){var fe=Y.showFormatter?Y.showFormatter({value:z,count:ee,maxLength:te}):"".concat(ee).concat(ue?" / ".concat(te):"");return le.createElement(le.Fragment,null,Y.show&&le.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),V({},"".concat(d,"-show-count-has-suffix"),!!m),x==null?void 0:x.count),style:K({},E==null?void 0:E.count)},fe),m)}return null};return le.createElement(P$,ve({},T,{prefixCls:d,className:ne(g,ye),handleReset:he,value:z,focused:D,triggerFocus:M,suffix:J(),disabled:f,classes:C,classNames:x,styles:E}),pe())});function hme(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function vme(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,o),u=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=s[u-1],p=o.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(g){pn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var bme=function(){var t=l.useState(!1),n=ie(t,2),r=n[0],a=n[1];return qt(function(){a(zb())},[]),r},yme=200,Sme=600;function wme(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(S,C){S.preventDefault(),d(),u.current(C);function x(){u.current(C),s.current=setTimeout(x,yme)}s.current=setTimeout(x,Sme)};l.useEffect(function(){return function(){d(),c.current.forEach(function(b){return Bt.cancel(b)})}},[]);var p=bme();if(p)return null;var g="".concat(t,"-handler"),v=ne(g,"".concat(g,"-up"),V({},"".concat(g,"-up-disabled"),a)),m=ne(g,"".concat(g,"-down"),V({},"".concat(g,"-down-disabled"),o)),h=function(){return c.current.push(Bt(d))},y={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return l.createElement("div",{className:"".concat(g,"-wrap")},l.createElement("span",ve({},y,{onMouseDown:function(S){f(S,!0)},"aria-label":"Increase Value","aria-disabled":a,className:v}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",ve({},y,{onMouseDown:function(S){f(S,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:m}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function NM(e){var t=typeof e=="number"?u0(e):jl(e).fullStr,n=t.includes(".");return n?jl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Cme=function(){var e=l.useRef(0),t=function(){Bt.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=Bt(function(){n()})}};var xme=["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"],Eme=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],kM=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},AM=function(t){var n=_o(t);return n.isInvalidate()?null:n},Ime=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,v=e.downHandler,m=e.keyboard,h=e.changeOnWheel,y=h===void 0?!1:h,b=e.controls,S=b===void 0?!0:b;e.classNames;var C=e.stringMode,x=e.parser,E=e.formatter,I=e.precision,R=e.decimalSeparator,T=e.onChange,_=e.onInput,$=e.onPressEnter,D=e.onStep,P=e.changeOnBlur,A=P===void 0?!0:P,O=e.domRef,k=xt(e,xme),N="".concat(n,"-input"),M=l.useRef(null),L=l.useState(!1),F=ie(L,2),j=F[0],B=F[1],z=l.useRef(!1),H=l.useRef(!1),U=l.useRef(!1),X=l.useState(function(){return _o(d??u)}),W=ie(X,2),Y=W[0],te=W[1];function ee(Ne){d===void 0&&te(Ne)}var Z=l.useCallback(function(Ne,Be){if(!Be)return I>=0?I:Math.max(Tl(Ne),Tl(c))},[I,c]),oe=l.useCallback(function(Ne){var Be=String(Ne);if(x)return x(Be);var Ve=Be;return R&&(Ve=Ve.replace(R,".")),Ve.replace(/[^\w.-]+/g,"")},[x,R]),re=l.useRef(""),q=l.useCallback(function(Ne,Be){if(E)return E(Ne,{userTyping:Be,input:String(re.current)});var Ve=typeof Ne=="number"?u0(Ne):Ne;if(!Be){var Le=Z(Ve,Be);if(D$(Ve)&&(R||Le>=0)){var We=R||".";Ve=Th(Ve,We,Le)}}return Ve},[E,Z,R]),Q=l.useState(function(){var Ne=u??d;return Y.isInvalidate()&&["string","number"].includes(ht(Ne))?Number.isNaN(Ne)?"":Ne:q(Y.toString(),!1)}),ae=ie(Q,2),se=ae[0],de=ae[1];re.current=se;function he(Ne,Be){de(q(Ne.isInvalidate()?Ne.toString(!1):Ne.toString(!Be),Be))}var ye=l.useMemo(function(){return AM(i)},[i,I]),pe=l.useMemo(function(){return AM(o)},[o,I]),J=l.useMemo(function(){return!ye||!Y||Y.isInvalidate()?!1:ye.lessEquals(Y)},[ye,Y]),ce=l.useMemo(function(){return!pe||!Y||Y.isInvalidate()?!1:Y.lessEquals(pe)},[pe,Y]),ue=vme(M.current,j),fe=ie(ue,2),be=fe[0],Te=fe[1],_e=function(Be){return ye&&!Be.lessEquals(ye)?ye:pe&&!pe.lessEquals(Be)?pe:null},Pe=function(Be){return!_e(Be)},Ee=function(Be,Ve){var Le=Be,We=Pe(Le)||Le.isEmpty();if(!Le.isEmpty()&&!Ve&&(Le=_e(Le)||Le,We=!0),!p&&!f&&We){var Je=Le.toString(),Ke=Z(Je,Ve);return Ke>=0&&(Le=_o(Th(Je,".",Ke)),Pe(Le)||(Le=_o(Th(Je,".",Ke,!0)))),Le.equals(Y)||(ee(Le),T==null||T(Le.isEmpty()?null:kM(C,Le)),d===void 0&&he(Le,Ve)),Le}return Y},Fe=Cme(),De=function Ne(Be){if(be(),re.current=Be,de(Be),!H.current){var Ve=oe(Be),Le=_o(Ve);Le.isNaN()||Ee(Le,!0)}_==null||_(Be),Fe(function(){var We=Be;x||(We=Be.replace(/。/g,".")),We!==Be&&Ne(We)})},Ae=function(){H.current=!0},we=function(){H.current=!1,De(M.current.value)},$e=function(Be){De(Be.target.value)},Ce=function(Be){var Ve;if(!(Be&&J||!Be&&ce)){z.current=!1;var Le=_o(U.current?NM(c):c);Be||(Le=Le.negate());var We=(Y||_o(0)).add(Le.toString()),Je=Ee(We,!1);D==null||D(kM(C,Je),{offset:U.current?NM(c):c,type:Be?"up":"down"}),(Ve=M.current)===null||Ve===void 0||Ve.focus()}},Re=function(Be){var Ve=_o(oe(se)),Le;Ve.isNaN()?Le=Ee(Y,Be):Le=Ee(Ve,Be),d!==void 0?he(Y,!1):Le.isNaN()||he(Le,!1)},me=function(){z.current=!0},Ie=function(Be){var Ve=Be.key,Le=Be.shiftKey;z.current=!0,U.current=Le,Ve==="Enter"&&(H.current||(z.current=!1),Re(!1),$==null||$(Be)),m!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ve)&&(Ce(Ve==="Up"||Ve==="ArrowUp"),Be.preventDefault())},je=function(){z.current=!1,U.current=!1};l.useEffect(function(){if(y&&j){var Ne=function(Le){Ce(Le.deltaY<0),Le.preventDefault()},Be=M.current;if(Be)return Be.addEventListener("wheel",Ne,{passive:!1}),function(){return Be.removeEventListener("wheel",Ne)}}});var ke=function(){A&&Re(!1),B(!1),z.current=!1};return Pl(function(){Y.isInvalidate()||he(Y,!1)},[I,E]),Pl(function(){var Ne=_o(d);te(Ne);var Be=_o(oe(se));(!Ne.equals(Be)||!z.current||E)&&he(Ne,z.current)},[d]),Pl(function(){E&&Te()},[se]),l.createElement("div",{ref:O,className:ne(n,r,V(V(V(V(V({},"".concat(n,"-focused"),j),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!Pe(Y))),style:a,onFocus:function(){B(!0)},onBlur:ke,onKeyDown:Ie,onKeyUp:je,onCompositionStart:Ae,onCompositionEnd:we,onBeforeInput:me},S&&l.createElement(wme,{prefixCls:n,upNode:g,downNode:v,upDisabled:J,downDisabled:ce,onStep:Ce}),l.createElement("div",{className:"".concat(N,"-wrap")},l.createElement("input",ve({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:c},k,{ref:Pr(M,t),className:N,value:se,onChange:$e,disabled:f,readOnly:p}))))}),Tme=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,g=xt(e,Eme),v=l.useRef(null),m=l.useRef(null),h=l.useRef(null),y=function(S){h.current&&jV(h.current,S)};return l.useImperativeHandle(t,function(){return hme(h.current,{nativeElement:v.current.nativeElement||m.current})}),l.createElement(P$,{className:f,triggerFocus:y,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},l.createElement(Ime,ve({prefixCls:o,disabled:n,ref:h,domRef:m,className:p==null?void 0:p.input},g)))});const Rme=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},bg(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},MM=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},_me=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:g,colorTextDescription:v,motionDurationMid:m,handleHoverColor:h,handleOpacity:y,paddingInline:b,paddingBlock:S,handleBg:C,handleActiveBg:x,colorTextDisabled:E,borderRadiusSM:I,borderRadiusLG:R,controlWidth:T,handleBorderColor:_,filledHandleBg:$,lineHeightLG:D,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),yg(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:a}),I$(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}}})),R$(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),T$(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:D,borderRadius:R,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${G(p)} ${G(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:I,[`input${t}-input`]:{height:P(c).sub(P(n).mul(2)).equal(),padding:`${G(f)} ${G(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Qt(e)),yV(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:I}}},mV(e)),vV(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({},Qt(e)),{width:"100%",padding:`${G(S)} ${G(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),_$(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",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:0,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Qge=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Jge=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),eme=tn("Collapse",e=>{const t=Bt(e,{collapseHeaderPaddingSM:`${G(e.paddingXS)} ${G(e.paddingSM)}`,collapseHeaderPaddingLG:`${G(e.padding)} ${G(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Yge(t),Zge(t),Qge(t),Xge(t),sg(t)]},Jge),tme=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=l.useContext(ct),{prefixCls:o,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:g,expandIcon:v}=e,m=dr($=>{var D;return(D=f??$)!==null&&D!==void 0?D:"middle"}),h=n("collapse",o),y=n(),[b,S,C]=eme(h),x=l.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),E=v??(a==null?void 0:a.expandIcon),I=l.useCallback(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const D=typeof E=="function"?E($):l.createElement(Hs,{rotate:$.isActive?90:void 0,"aria-label":$.isActive?"expanded":"collapsed"});return ur(D,()=>{var P;return{className:ne((P=D==null?void 0:D.props)===null||P===void 0?void 0:P.className,`${h}-arrow`)}})},[E,h]),R=ne(`${h}-icon-position-${x}`,{[`${h}-borderless`]:!u,[`${h}-rtl`]:r==="rtl",[`${h}-ghost`]:!!d,[`${h}-${m}`]:m!=="middle"},a==null?void 0:a.className,i,s,S,C),T=Object.assign(Object.assign({},ju(y)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),_=l.useMemo(()=>g?ir(g).map(($,D)=>{var P,A;if(!((P=$.props)===null||P===void 0)&&P.disabled){const O=(A=$.key)!==null&&A!==void 0?A:String(D),{disabled:k,collapsible:N}=$.props,M=Object.assign(Object.assign({},Sn($.props,["disabled"])),{key:O,collapsible:N??(k?"disabled":void 0)});return ur($,M)}return $}):null,[g]);return b(l.createElement(k$,Object.assign({ref:t,openMotion:T},Sn(e,["rootClassName"]),{expandIcon:I,prefixCls:h,className:R,style:Object.assign(Object.assign({},a==null?void 0:a.style),c)}),_))}),A$=Object.assign(tme,{Panel:Kge}),nme=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{borderBlockStart:`${G(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${G(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},rme=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),ame=tn("Divider",e=>{const t=Bt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[nme(t)]},rme,{unitless:{orientationMargin:!0}});var ome=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(ct),{prefixCls:a,type:o="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:g,style:v}=e,m=ome(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),h=t("divider",a),[y,b,S]=ame(h),C=!!d,x=i==="left"&&s!=null,E=i==="right"&&s!=null,I=ne(h,r==null?void 0:r.className,b,S,`${h}-${o}`,{[`${h}-with-text`]:C,[`${h}-with-text-${i}`]:C,[`${h}-dashed`]:!!f,[`${h}-${p}`]:p!=="solid",[`${h}-plain`]:!!g,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:x,[`${h}-no-default-orientation-margin-right`]:E},c,u),R=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),T=Object.assign(Object.assign({},x&&{marginLeft:R}),E&&{marginRight:R});return y(l.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},m,{role:"separator"}),d&&o!=="vertical"&&l.createElement("span",{className:`${h}-inner-text`,style:T},d)))};var ime={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"},sme=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:ime}))},lme=l.forwardRef(sme);function PT(){return typeof BigInt=="function"}function FV(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function jl(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function M$(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Tl(e){var t=String(e);if(M$(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&D$(t)?t.length-t.indexOf(".")-1:0}function u0(e){var t=String(e);if(M$(e)){if(e>Number.MAX_SAFE_INTEGER)return String(PT()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":jl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ume=function(){function e(t){if(Ln(this,e),V(this,"origin",""),V(this,"number",void 0),V(this,"empty",void 0),FV(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Fn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":u0(this.number):this.origin}}]),e}();function _o(e){return PT()?new cme(e):new ume(e)}function Th(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=jl(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,c="".concat(t).concat(s),u="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=_o(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return Th(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function dme(e){return!!(e.addonBefore||e.addonAfter)}function fme(e){return!!(e.prefix||e.suffix||e.allowClear)}function OM(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Tv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=OM(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=OM(t,e,r),n(a);return}n(a)}}function jV(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var P$=le.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,g=e.disabled,v=e.readOnly,m=e.focused,h=e.triggerFocus,y=e.allowClear,b=e.value,S=e.handleReset,C=e.hidden,x=e.classes,E=e.classNames,I=e.dataAttrs,R=e.styles,T=e.components,_=e.onClear,$=o??a,D=(T==null?void 0:T.affixWrapper)||"span",P=(T==null?void 0:T.groupWrapper)||"span",A=(T==null?void 0:T.wrapper)||"span",O=(T==null?void 0:T.groupAddon)||"span",k=l.useRef(null),N=function(q){var Q;(Q=k.current)!==null&&Q!==void 0&&Q.contains(q.target)&&(h==null||h())},M=fme(e),L=l.cloneElement($,{value:b,className:ne($.props.className,!M&&(E==null?void 0:E.variant))||null}),F=l.useRef(null);if(le.useImperativeHandle(t,function(){return{nativeElement:F.current||k.current}}),M){var j=null;if(y){var B=!g&&!v&&b,z="".concat(i,"-clear-icon"),H=mt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";j=le.createElement("span",{onClick:function(q){S==null||S(q),_==null||_()},onMouseDown:function(q){return q.preventDefault()},className:ne(z,V(V({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!c)),role:"button",tabIndex:-1},H)}var U="".concat(i,"-affix-wrapper"),X=ne(U,V(V(V(V(V({},"".concat(i,"-disabled"),g),"".concat(U,"-disabled"),g),"".concat(U,"-focused"),m),"".concat(U,"-readonly"),v),"".concat(U,"-input-with-clear-btn"),c&&y&&b),x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),W=(c||y)&&le.createElement("span",{className:ne("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:R==null?void 0:R.suffix},j,c);L=le.createElement(D,ve({className:X,style:R==null?void 0:R.affixWrapper,onClick:N},I==null?void 0:I.affixWrapper,{ref:k}),s&&le.createElement("span",{className:ne("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:R==null?void 0:R.prefix},s),L,W)}if(dme(e)){var Y="".concat(i,"-group"),te="".concat(Y,"-addon"),ee="".concat(Y,"-wrapper"),Z=ne("".concat(i,"-wrapper"),Y,x==null?void 0:x.wrapper,E==null?void 0:E.wrapper),oe=ne(ee,V({},"".concat(ee,"-disabled"),g),x==null?void 0:x.group,E==null?void 0:E.groupWrapper);L=le.createElement(P,{className:oe,ref:F},le.createElement(A,{className:Z},u&&le.createElement(O,{className:te},u),L,d&&le.createElement(O,{className:te},d)))}return le.cloneElement(L,{className:ne((n=L.props)===null||n===void 0?void 0:n.className,f)||null,style:K(K({},(r=L.props)===null||r===void 0?void 0:r.style),p),hidden:C})}),pme=["show"];function BV(e,t){return l.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,a=r.show,o=xt(r,pme);return K(K({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var gme=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mme=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,p=e.htmlSize,g=e.className,v=e.maxLength,m=e.suffix,h=e.showCount,y=e.count,b=e.type,S=b===void 0?"text":b,C=e.classes,x=e.classNames,E=e.styles,I=e.onCompositionStart,R=e.onCompositionEnd,T=xt(e,gme),_=l.useState(!1),$=ie(_,2),D=$[0],P=$[1],A=l.useRef(!1),O=l.useRef(!1),k=l.useRef(null),N=l.useRef(null),M=function(ue){k.current&&jV(k.current,ue)},L=on(e.defaultValue,{value:e.value}),F=ie(L,2),j=F[0],B=F[1],z=j==null?"":String(j),H=l.useState(null),U=ie(H,2),X=U[0],W=U[1],Y=BV(y,h),te=Y.max||v,ee=Y.strategy(z),Z=!!te&&ee>te;l.useImperativeHandle(t,function(){var ce;return{focus:M,blur:function(){var fe;(fe=k.current)===null||fe===void 0||fe.blur()},setSelectionRange:function(fe,be,Ee){var Re;(Re=k.current)===null||Re===void 0||Re.setSelectionRange(fe,be,Ee)},select:function(){var fe;(fe=k.current)===null||fe===void 0||fe.select()},input:k.current,nativeElement:((ce=N.current)===null||ce===void 0?void 0:ce.nativeElement)||k.current}}),l.useEffect(function(){P(function(ce){return ce&&f?!1:ce})},[f]);var oe=function(ue,fe,be){var Ee=fe;if(!A.current&&Y.exceedFormatter&&Y.max&&Y.strategy(fe)>Y.max){if(Ee=Y.exceedFormatter(fe,{max:Y.max}),fe!==Ee){var Re,Fe;W([((Re=k.current)===null||Re===void 0?void 0:Re.selectionStart)||0,((Fe=k.current)===null||Fe===void 0?void 0:Fe.selectionEnd)||0])}}else if(be.source==="compositionEnd")return;B(Ee),k.current&&Tv(k.current,ue,r,Ee)};l.useEffect(function(){if(X){var ce;(ce=k.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,Oe(X))}},[X]);var re=function(ue){oe(ue,ue.target.value,{source:"change"})},q=function(ue){A.current=!1,oe(ue,ue.currentTarget.value,{source:"compositionEnd"}),R==null||R(ue)},Q=function(ue){i&&ue.key==="Enter"&&!O.current&&(O.current=!0,i(ue)),s==null||s(ue)},ae=function(ue){ue.key==="Enter"&&(O.current=!1),c==null||c(ue)},se=function(ue){P(!0),a==null||a(ue)},de=function(ue){P(!1),o==null||o(ue)},he=function(ue){B(""),M(),k.current&&Tv(k.current,ue,r)},ye=Z&&"".concat(d,"-out-of-range"),pe=function(){var ue=Sn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return le.createElement("input",ve({autoComplete:n},ue,{onChange:re,onFocus:se,onBlur:de,onKeyDown:Q,onKeyUp:ae,className:ne(d,V({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:E==null?void 0:E.input,ref:k,size:p,type:S,onCompositionStart:function(be){A.current=!0,I==null||I(be)},onCompositionEnd:q}))},J=function(){var ue=Number(te)>0;if(m||Y.show){var fe=Y.showFormatter?Y.showFormatter({value:z,count:ee,maxLength:te}):"".concat(ee).concat(ue?" / ".concat(te):"");return le.createElement(le.Fragment,null,Y.show&&le.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),V({},"".concat(d,"-show-count-has-suffix"),!!m),x==null?void 0:x.count),style:K({},E==null?void 0:E.count)},fe),m)}return null};return le.createElement(P$,ve({},T,{prefixCls:d,className:ne(g,ye),handleReset:he,value:z,focused:D,triggerFocus:M,suffix:J(),disabled:f,classes:C,classNames:x,styles:E}),pe())});function hme(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function vme(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,o),u=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=s[u-1],p=o.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(g){pn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var bme=function(){var t=l.useState(!1),n=ie(t,2),r=n[0],a=n[1];return Wt(function(){a(zb())},[]),r},yme=200,Sme=600;function wme(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(S,C){S.preventDefault(),d(),u.current(C);function x(){u.current(C),s.current=setTimeout(x,yme)}s.current=setTimeout(x,Sme)};l.useEffect(function(){return function(){d(),c.current.forEach(function(b){return jt.cancel(b)})}},[]);var p=bme();if(p)return null;var g="".concat(t,"-handler"),v=ne(g,"".concat(g,"-up"),V({},"".concat(g,"-up-disabled"),a)),m=ne(g,"".concat(g,"-down"),V({},"".concat(g,"-down-disabled"),o)),h=function(){return c.current.push(jt(d))},y={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return l.createElement("div",{className:"".concat(g,"-wrap")},l.createElement("span",ve({},y,{onMouseDown:function(S){f(S,!0)},"aria-label":"Increase Value","aria-disabled":a,className:v}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",ve({},y,{onMouseDown:function(S){f(S,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:m}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function NM(e){var t=typeof e=="number"?u0(e):jl(e).fullStr,n=t.includes(".");return n?jl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Cme=function(){var e=l.useRef(0),t=function(){jt.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=jt(function(){n()})}};var xme=["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"],Eme=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],kM=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},AM=function(t){var n=_o(t);return n.isInvalidate()?null:n},Ime=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,v=e.downHandler,m=e.keyboard,h=e.changeOnWheel,y=h===void 0?!1:h,b=e.controls,S=b===void 0?!0:b;e.classNames;var C=e.stringMode,x=e.parser,E=e.formatter,I=e.precision,R=e.decimalSeparator,T=e.onChange,_=e.onInput,$=e.onPressEnter,D=e.onStep,P=e.changeOnBlur,A=P===void 0?!0:P,O=e.domRef,k=xt(e,xme),N="".concat(n,"-input"),M=l.useRef(null),L=l.useState(!1),F=ie(L,2),j=F[0],B=F[1],z=l.useRef(!1),H=l.useRef(!1),U=l.useRef(!1),X=l.useState(function(){return _o(d??u)}),W=ie(X,2),Y=W[0],te=W[1];function ee(Ne){d===void 0&&te(Ne)}var Z=l.useCallback(function(Ne,He){if(!He)return I>=0?I:Math.max(Tl(Ne),Tl(c))},[I,c]),oe=l.useCallback(function(Ne){var He=String(Ne);if(x)return x(He);var Ge=He;return R&&(Ge=Ge.replace(R,".")),Ge.replace(/[^\w.-]+/g,"")},[x,R]),re=l.useRef(""),q=l.useCallback(function(Ne,He){if(E)return E(Ne,{userTyping:He,input:String(re.current)});var Ge=typeof Ne=="number"?u0(Ne):Ne;if(!He){var je=Z(Ge,He);if(D$(Ge)&&(R||je>=0)){var qe=R||".";Ge=Th(Ge,qe,je)}}return Ge},[E,Z,R]),Q=l.useState(function(){var Ne=u??d;return Y.isInvalidate()&&["string","number"].includes(mt(Ne))?Number.isNaN(Ne)?"":Ne:q(Y.toString(),!1)}),ae=ie(Q,2),se=ae[0],de=ae[1];re.current=se;function he(Ne,He){de(q(Ne.isInvalidate()?Ne.toString(!1):Ne.toString(!He),He))}var ye=l.useMemo(function(){return AM(i)},[i,I]),pe=l.useMemo(function(){return AM(o)},[o,I]),J=l.useMemo(function(){return!ye||!Y||Y.isInvalidate()?!1:ye.lessEquals(Y)},[ye,Y]),ce=l.useMemo(function(){return!pe||!Y||Y.isInvalidate()?!1:Y.lessEquals(pe)},[pe,Y]),ue=vme(M.current,j),fe=ie(ue,2),be=fe[0],Ee=fe[1],Re=function(He){return ye&&!He.lessEquals(ye)?ye:pe&&!pe.lessEquals(He)?pe:null},Fe=function(He){return!Re(He)},Ce=function(He,Ge){var je=He,qe=Fe(je)||je.isEmpty();if(!je.isEmpty()&&!Ge&&(je=Re(je)||je,qe=!0),!p&&!f&&qe){var tt=je.toString(),Ye=Z(tt,Ge);return Ye>=0&&(je=_o(Th(tt,".",Ye)),Fe(je)||(je=_o(Th(tt,".",Ye,!0)))),je.equals(Y)||(ee(je),T==null||T(je.isEmpty()?null:kM(C,je)),d===void 0&&he(je,Ge)),je}return Y},ze=Cme(),Pe=function Ne(He){if(be(),re.current=He,de(He),!H.current){var Ge=oe(He),je=_o(Ge);je.isNaN()||Ce(je,!0)}_==null||_(He),ze(function(){var qe=He;x||(qe=He.replace(/。/g,".")),qe!==He&&Ne(qe)})},Ae=function(){H.current=!0},Se=function(){H.current=!1,Pe(M.current.value)},_e=function(He){Pe(He.target.value)},we=function(He){var Ge;if(!(He&&J||!He&&ce)){z.current=!1;var je=_o(U.current?NM(c):c);He||(je=je.negate());var qe=(Y||_o(0)).add(je.toString()),tt=Ce(qe,!1);D==null||D(kM(C,tt),{offset:U.current?NM(c):c,type:He?"up":"down"}),(Ge=M.current)===null||Ge===void 0||Ge.focus()}},Te=function(He){var Ge=_o(oe(se)),je;Ge.isNaN()?je=Ce(Y,He):je=Ce(Ge,He),d!==void 0?he(Y,!1):je.isNaN()||he(je,!1)},me=function(){z.current=!0},xe=function(He){var Ge=He.key,je=He.shiftKey;z.current=!0,U.current=je,Ge==="Enter"&&(H.current||(z.current=!1),Te(!1),$==null||$(He)),m!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ge)&&(we(Ge==="Up"||Ge==="ArrowUp"),He.preventDefault())},Be=function(){z.current=!1,U.current=!1};l.useEffect(function(){if(y&&j){var Ne=function(je){we(je.deltaY<0),je.preventDefault()},He=M.current;if(He)return He.addEventListener("wheel",Ne,{passive:!1}),function(){return He.removeEventListener("wheel",Ne)}}});var ke=function(){A&&Te(!1),B(!1),z.current=!1};return Pl(function(){Y.isInvalidate()||he(Y,!1)},[I,E]),Pl(function(){var Ne=_o(d);te(Ne);var He=_o(oe(se));(!Ne.equals(He)||!z.current||E)&&he(Ne,z.current)},[d]),Pl(function(){E&&Ee()},[se]),l.createElement("div",{ref:O,className:ne(n,r,V(V(V(V(V({},"".concat(n,"-focused"),j),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!Fe(Y))),style:a,onFocus:function(){B(!0)},onBlur:ke,onKeyDown:xe,onKeyUp:Be,onCompositionStart:Ae,onCompositionEnd:Se,onBeforeInput:me},S&&l.createElement(wme,{prefixCls:n,upNode:g,downNode:v,upDisabled:J,downDisabled:ce,onStep:we}),l.createElement("div",{className:"".concat(N,"-wrap")},l.createElement("input",ve({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:c},k,{ref:Pr(M,t),className:N,value:se,onChange:_e,disabled:f,readOnly:p}))))}),Tme=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,g=xt(e,Eme),v=l.useRef(null),m=l.useRef(null),h=l.useRef(null),y=function(S){h.current&&jV(h.current,S)};return l.useImperativeHandle(t,function(){return hme(h.current,{nativeElement:v.current.nativeElement||m.current})}),l.createElement(P$,{className:f,triggerFocus:y,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},l.createElement(Ime,ve({prefixCls:o,disabled:n,ref:h,domRef:m,className:p==null?void 0:p.input},g)))});const Rme=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},bg(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},MM=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},_me=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:g,colorTextDescription:v,motionDurationMid:m,handleHoverColor:h,handleOpacity:y,paddingInline:b,paddingBlock:S,handleBg:C,handleActiveBg:x,colorTextDisabled:E,borderRadiusSM:I,borderRadiusLG:R,controlWidth:T,handleBorderColor:_,filledHandleBg:$,lineHeightLG:D,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),yg(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:a}),I$(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}}})),R$(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),T$(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:D,borderRadius:R,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${G(p)} ${G(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:I,[`input${t}-input`]:{height:P(c).sub(P(n).mul(2)).equal(),padding:`${G(f)} ${G(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Xt(e)),yV(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:I}}},mV(e)),vV(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({},Xt(e)),{width:"100%",padding:`${G(S)} ${G(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),_$(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",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:0,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${G(n)} ${r} ${_}`,transition:`all ${m} linear`,"&:active":{background:x},"&:hover":{height:"60%",[` @@ -341,7 +341,7 @@ html body { `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:E}})}]},$me=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${G(n)} 0`}},yg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${G(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${G(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:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},Ome=nn("InputNumber",e=>{const t=zt(e,vg(e));return[_me(t),$me(t),ag(t)]},Rme,{unitless:{handleOpacity:!0}});var Nme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(it),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:g,bordered:v,readOnly:m,status:h,controls:y,variant:b}=e,S=Nme(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),x=Yn(C),[E,I,R]=Ome(C,x),{compactSize:T,compactItemClassnames:_}=es(C,r);let $=l.createElement(lme,{className:`${C}-handler-up-inner`}),D=l.createElement(Gb,{className:`${C}-handler-down-inner`});const P=typeof y=="boolean"?y:void 0;typeof y=="object"&&($=typeof y.upIcon>"u"?$:l.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),D=typeof y.downIcon>"u"?D:l.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:A,status:O,isFormItemInput:k,feedbackIcon:N}=l.useContext(Rr),M=nl(O,h),L=dr(Y=>{var te;return(te=s??T)!==null&&te!==void 0?te:Y}),F=l.useContext(Gr),j=c??F,[B,z]=dc("inputNumber",b,v),H=A&&l.createElement(l.Fragment,null,N),U=ne({[`${C}-lg`]:L==="large",[`${C}-sm`]:L==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:k},I),X=`${C}-group`,W=l.createElement(Tme,Object.assign({ref:a,disabled:j,className:ne(R,x,o,i,_),upHandler:$,downHandler:D,prefixCls:C,readOnly:m,controls:P,prefix:p,suffix:H||g,addonBefore:d&&l.createElement(di,{form:!0,space:!0},d),addonAfter:f&&l.createElement(di,{form:!0,space:!0},f),classNames:{input:U,variant:ne({[`${C}-${B}`]:z},Yi(C,M,A)),affixWrapper:ne({[`${C}-affix-wrapper-sm`]:L==="small",[`${C}-affix-wrapper-lg`]:L==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl"},I),wrapper:ne({[`${X}-rtl`]:r==="rtl"},I),groupWrapper:ne({[`${C}-group-wrapper-sm`]:L==="small",[`${C}-group-wrapper-lg`]:L==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:z},Yi(`${C}-group-wrapper`,M,A),I)}},S));return E(W)}),HV=zV,kme=e=>l.createElement(Ko,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(zV,Object.assign({},e)));HV._InternalPanelDoNotUseOrYouWillBeFired=kme;const Ame=e=>{const{getPrefixCls:t,direction:n}=l.useContext(it),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[s,c]=O$(i),u=ne(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),d=l.useContext(Rr),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(Rr.Provider,{value:f},e.children)))},UV=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:le.createElement(uc,null)}),t};function VV(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Mme(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Dme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:v,style:m,styles:h,rootClassName:y,onChange:b,classNames:S,variant:C}=e,x=Dme(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:I,input:R}=le.useContext(it),T=E("input",r),_=l.useRef(null),$=Yn(T),[D,P,A]=O$(T,$),{compactSize:O,compactItemClassnames:k}=es(T,I),N=dr(re=>{var q;return(q=i??O)!==null&&q!==void 0?q:re}),M=le.useContext(Gr),L=s??M,{status:F,hasFeedback:j,feedbackIcon:B}=l.useContext(Rr),z=nl(F,o),H=Mme(e)||!!j;l.useRef(H);const U=VV(_,!0),X=re=>{U(),c==null||c(re)},W=re=>{U(),u==null||u(re)},Y=re=>{U(),b==null||b(re)},te=(j||d)&&le.createElement(le.Fragment,null,d,j&&B),ee=UV(f??(R==null?void 0:R.allowClear)),[Z,oe]=dc("input",C,a);return D(le.createElement(mme,Object.assign({ref:Pr(t,_),prefixCls:T,autoComplete:R==null?void 0:R.autoComplete},x,{disabled:L,onBlur:X,onFocus:W,style:Object.assign(Object.assign({},R==null?void 0:R.style),m),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),h),suffix:te,allowClear:ee,className:ne(v,y,A,$,k,R==null?void 0:R.className),onChange:Y,addonBefore:g&&le.createElement(di,{form:!0,space:!0},g),addonAfter:p&&le.createElement(di,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},S),R==null?void 0:R.classNames),{input:ne({[`${T}-sm`]:N==="small",[`${T}-lg`]:N==="large",[`${T}-rtl`]:I==="rtl"},S==null?void 0:S.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,P),variant:ne({[`${T}-${Z}`]:oe},Yi(T,z)),affixWrapper:ne({[`${T}-affix-wrapper-sm`]:N==="small",[`${T}-affix-wrapper-lg`]:N==="large",[`${T}-affix-wrapper-rtl`]:I==="rtl"},P),wrapper:ne({[`${T}-group-rtl`]:I==="rtl"},P),groupWrapper:ne({[`${T}-group-wrapper-sm`]:N==="small",[`${T}-group-wrapper-lg`]:N==="large",[`${T}-group-wrapper-rtl`]:I==="rtl",[`${T}-group-wrapper-${Z}`]:oe},Yi(`${T}-group-wrapper`,z,j),P)})})))}),Lme=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},Fme=nn(["Input","OTP"],e=>{const t=zt(e,vg(e));return[Lme(t)]},bg);var jme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:i}=e,s=jme(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=v=>{r(o,v.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const f=()=>{Bt(()=>{var v;const m=(v=d.current)===null||v===void 0?void 0:v.input;document.activeElement===m&&m&&m.select()})},p=v=>{let{key:m}=v;m==="ArrowLeft"?a(o-1):m==="ArrowRight"&&a(o+1),f()},g=v=>{v.key==="Backspace"&&!n&&a(o-1),f()};return l.createElement(d0,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:p,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var zme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:g}=e,v=zme(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:m,direction:h}=l.useContext(it),y=m("otp",n),b=Mn(v,{aria:!0,data:!0,attr:!0}),S=Yn(y),[C,x,E]=Fme(y,S),I=dr(j=>a??j),R=l.useContext(Rr),T=nl(R.status,f),_=l.useMemo(()=>Object.assign(Object.assign({},R),{status:T,hasFeedback:!1,feedbackIcon:null}),[R,T]),$=l.useRef(null),D=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var j;(j=D.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let B=0;Bc?c(j):j,[A,O]=l.useState(Rm(P(o||"")));l.useEffect(()=>{i!==void 0&&O(Rm(i))},[i]);const k=Ut(j=>{O(j),s&&j.length===r&&j.every(B=>B)&&j.some((B,z)=>A[z]!==B)&&s(j.join(""))}),N=Ut((j,B)=>{let z=Oe(A);for(let U=0;U=0&&!z[U];U-=1)z.pop();const H=P(z.map(U=>U||" ").join(""));return z=Rm(H).map((U,X)=>U===" "&&!z[X]?z[X]:U),z}),M=(j,B)=>{var z;const H=N(j,B),U=Math.min(j+B.length,r-1);U!==j&&((z=D.current[U])===null||z===void 0||z.focus()),k(H)},L=j=>{var B;(B=D.current[j])===null||B===void 0||B.focus()},F={variant:u,disabled:d,status:T,mask:g};return C(l.createElement("div",Object.assign({},b,{ref:$,className:ne(y,{[`${y}-sm`]:I==="small",[`${y}-lg`]:I==="large",[`${y}-rtl`]:h==="rtl"},E,x)}),l.createElement(Rr.Provider,{value:_},Array.from({length:r}).map((j,B)=>{const z=`otp-${B}`,H=A[B]||"";return l.createElement(Bme,Object.assign({ref:U=>{D.current[B]=U},key:z,index:B,size:I,htmlSize:1,className:`${y}-input`,onChange:M,value:H,onActiveChange:L,autoFocus:B===0&&p},F))}))))});var Ume={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Vme=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Ume}))},Wme=l.forwardRef(Vme),Gme={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"},qme=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Gme}))},WV=l.forwardRef(qme),Kme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?l.createElement(WV,null):l.createElement(Wme,null),Xme={click:"onClick",hover:"onMouseOver"},Zme=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=Yme}=e,i=typeof a=="object"&&a.visible!==void 0,[s,c]=l.useState(()=>i?a.visible:!1),u=l.useRef(null);l.useEffect(()=>{i&&c(a.visible)},[i,a]);const d=VV(u),f=()=>{n||(s&&d(),c(R=>{var T;const _=!R;return typeof a=="object"&&((T=a.onVisibleChange)===null||T===void 0||T.call(a,_)),_}))},p=R=>{const T=Xme[r]||"",_=o(s),$={[T]:f,className:`${R}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return l.cloneElement(l.isValidElement(_)?_:l.createElement("span",null,_),$)},{className:g,prefixCls:v,inputPrefixCls:m,size:h}=e,y=Kme(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=l.useContext(it),S=b("input",m),C=b("input-password",v),x=a&&p(C),E=ne(C,g,{[`${C}-${h}`]:!!h}),I=Object.assign(Object.assign({},yn(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:E,prefixCls:S,suffix:x});return h&&(I.size=h),l.createElement(d0,Object.assign({ref:Pr(t,u)},I))});var Qme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:v}=e,m=Qme(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:y}=l.useContext(it),b=l.useRef(!1),S=h("input-search",n),C=h("input",r),{compactSize:x}=es(S,y),E=dr(F=>{var j;return(j=o??x)!==null&&j!==void 0?j:F}),I=l.useRef(null),R=F=>{F!=null&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),p==null||p(F)},T=F=>{var j;document.activeElement===((j=I.current)===null||j===void 0?void 0:j.input)&&F.preventDefault()},_=F=>{var j,B;f&&f((B=(j=I.current)===null||j===void 0?void 0:j.input)===null||B===void 0?void 0:B.value,F,{source:"input"})},$=F=>{b.current||u||_(F)},D=typeof s=="boolean"?l.createElement(o$,null):null,P=`${S}-button`;let A;const O=s||{},k=O.type&&O.type.__ANT_BUTTON===!0;k||O.type==="button"?A=ur(O,Object.assign({onMouseDown:T,onClick:F=>{var j,B;(B=(j=O==null?void 0:O.props)===null||j===void 0?void 0:j.onClick)===null||B===void 0||B.call(j,F),_(F)},key:"enterButton"},k?{className:P,size:E}:{})):A=l.createElement(Pt,{className:P,type:s?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:T,onClick:_,loading:u,icon:D},s),c&&(A=[A,ur(c,{key:"addonAfter"})]);const N=ne(S,{[`${S}-rtl`]:y==="rtl",[`${S}-${E}`]:!!E,[`${S}-with-button`]:!!s},a),M=F=>{b.current=!0,g==null||g(F)},L=F=>{b.current=!1,v==null||v(F)};return l.createElement(d0,Object.assign({ref:Pr(I,t),onPressEnter:$},m,{size:E,onCompositionStart:M,onCompositionEnd:L,prefixCls:C,addonAfter:A,suffix:i,onChange:R,className:N,disabled:d}))});var ehe=` + `]:{color:E}})}]},$me=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${G(n)} 0`}},yg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${G(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${G(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:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},Ome=tn("InputNumber",e=>{const t=Bt(e,vg(e));return[_me(t),$me(t),ag(t)]},Rme,{unitless:{handleOpacity:!0}});var Nme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(ct),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:g,bordered:v,readOnly:m,status:h,controls:y,variant:b}=e,S=Nme(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),x=Yn(C),[E,I,R]=Ome(C,x),{compactSize:T,compactItemClassnames:_}=es(C,r);let $=l.createElement(lme,{className:`${C}-handler-up-inner`}),D=l.createElement(Gb,{className:`${C}-handler-down-inner`});const P=typeof y=="boolean"?y:void 0;typeof y=="object"&&($=typeof y.upIcon>"u"?$:l.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),D=typeof y.downIcon>"u"?D:l.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:A,status:O,isFormItemInput:k,feedbackIcon:N}=l.useContext(Rr),M=nl(O,h),L=dr(Y=>{var te;return(te=s??T)!==null&&te!==void 0?te:Y}),F=l.useContext(Gr),j=c??F,[B,z]=dc("inputNumber",b,v),H=A&&l.createElement(l.Fragment,null,N),U=ne({[`${C}-lg`]:L==="large",[`${C}-sm`]:L==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:k},I),X=`${C}-group`,W=l.createElement(Tme,Object.assign({ref:a,disabled:j,className:ne(R,x,o,i,_),upHandler:$,downHandler:D,prefixCls:C,readOnly:m,controls:P,prefix:p,suffix:H||g,addonBefore:d&&l.createElement(fi,{form:!0,space:!0},d),addonAfter:f&&l.createElement(fi,{form:!0,space:!0},f),classNames:{input:U,variant:ne({[`${C}-${B}`]:z},Yi(C,M,A)),affixWrapper:ne({[`${C}-affix-wrapper-sm`]:L==="small",[`${C}-affix-wrapper-lg`]:L==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl"},I),wrapper:ne({[`${X}-rtl`]:r==="rtl"},I),groupWrapper:ne({[`${C}-group-wrapper-sm`]:L==="small",[`${C}-group-wrapper-lg`]:L==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:z},Yi(`${C}-group-wrapper`,M,A),I)}},S));return E(W)}),HV=zV,kme=e=>l.createElement(Ko,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(zV,Object.assign({},e)));HV._InternalPanelDoNotUseOrYouWillBeFired=kme;const Ame=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ct),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[s,c]=O$(i),u=ne(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),d=l.useContext(Rr),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(Rr.Provider,{value:f},e.children)))},UV=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:le.createElement(uc,null)}),t};function VV(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Mme(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Dme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:v,style:m,styles:h,rootClassName:y,onChange:b,classNames:S,variant:C}=e,x=Dme(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:I,input:R}=le.useContext(ct),T=E("input",r),_=l.useRef(null),$=Yn(T),[D,P,A]=O$(T,$),{compactSize:O,compactItemClassnames:k}=es(T,I),N=dr(re=>{var q;return(q=i??O)!==null&&q!==void 0?q:re}),M=le.useContext(Gr),L=s??M,{status:F,hasFeedback:j,feedbackIcon:B}=l.useContext(Rr),z=nl(F,o),H=Mme(e)||!!j;l.useRef(H);const U=VV(_,!0),X=re=>{U(),c==null||c(re)},W=re=>{U(),u==null||u(re)},Y=re=>{U(),b==null||b(re)},te=(j||d)&&le.createElement(le.Fragment,null,d,j&&B),ee=UV(f??(R==null?void 0:R.allowClear)),[Z,oe]=dc("input",C,a);return D(le.createElement(mme,Object.assign({ref:Pr(t,_),prefixCls:T,autoComplete:R==null?void 0:R.autoComplete},x,{disabled:L,onBlur:X,onFocus:W,style:Object.assign(Object.assign({},R==null?void 0:R.style),m),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),h),suffix:te,allowClear:ee,className:ne(v,y,A,$,k,R==null?void 0:R.className),onChange:Y,addonBefore:g&&le.createElement(fi,{form:!0,space:!0},g),addonAfter:p&&le.createElement(fi,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},S),R==null?void 0:R.classNames),{input:ne({[`${T}-sm`]:N==="small",[`${T}-lg`]:N==="large",[`${T}-rtl`]:I==="rtl"},S==null?void 0:S.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,P),variant:ne({[`${T}-${Z}`]:oe},Yi(T,z)),affixWrapper:ne({[`${T}-affix-wrapper-sm`]:N==="small",[`${T}-affix-wrapper-lg`]:N==="large",[`${T}-affix-wrapper-rtl`]:I==="rtl"},P),wrapper:ne({[`${T}-group-rtl`]:I==="rtl"},P),groupWrapper:ne({[`${T}-group-wrapper-sm`]:N==="small",[`${T}-group-wrapper-lg`]:N==="large",[`${T}-group-wrapper-rtl`]:I==="rtl",[`${T}-group-wrapper-${Z}`]:oe},Yi(`${T}-group-wrapper`,z,j),P)})})))}),Lme=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},Fme=tn(["Input","OTP"],e=>{const t=Bt(e,vg(e));return[Lme(t)]},bg);var jme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:i}=e,s=jme(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=v=>{r(o,v.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const f=()=>{jt(()=>{var v;const m=(v=d.current)===null||v===void 0?void 0:v.input;document.activeElement===m&&m&&m.select()})},p=v=>{let{key:m}=v;m==="ArrowLeft"?a(o-1):m==="ArrowRight"&&a(o+1),f()},g=v=>{v.key==="Backspace"&&!n&&a(o-1),f()};return l.createElement(d0,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:p,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var zme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:g}=e,v=zme(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:m,direction:h}=l.useContext(ct),y=m("otp",n),b=Pn(v,{aria:!0,data:!0,attr:!0}),S=Yn(y),[C,x,E]=Fme(y,S),I=dr(j=>a??j),R=l.useContext(Rr),T=nl(R.status,f),_=l.useMemo(()=>Object.assign(Object.assign({},R),{status:T,hasFeedback:!1,feedbackIcon:null}),[R,T]),$=l.useRef(null),D=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var j;(j=D.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let B=0;Bc?c(j):j,[A,O]=l.useState(Rm(P(o||"")));l.useEffect(()=>{i!==void 0&&O(Rm(i))},[i]);const k=zt(j=>{O(j),s&&j.length===r&&j.every(B=>B)&&j.some((B,z)=>A[z]!==B)&&s(j.join(""))}),N=zt((j,B)=>{let z=Oe(A);for(let U=0;U=0&&!z[U];U-=1)z.pop();const H=P(z.map(U=>U||" ").join(""));return z=Rm(H).map((U,X)=>U===" "&&!z[X]?z[X]:U),z}),M=(j,B)=>{var z;const H=N(j,B),U=Math.min(j+B.length,r-1);U!==j&&((z=D.current[U])===null||z===void 0||z.focus()),k(H)},L=j=>{var B;(B=D.current[j])===null||B===void 0||B.focus()},F={variant:u,disabled:d,status:T,mask:g};return C(l.createElement("div",Object.assign({},b,{ref:$,className:ne(y,{[`${y}-sm`]:I==="small",[`${y}-lg`]:I==="large",[`${y}-rtl`]:h==="rtl"},E,x)}),l.createElement(Rr.Provider,{value:_},Array.from({length:r}).map((j,B)=>{const z=`otp-${B}`,H=A[B]||"";return l.createElement(Bme,Object.assign({ref:U=>{D.current[B]=U},key:z,index:B,size:I,htmlSize:1,className:`${y}-input`,onChange:M,value:H,onActiveChange:L,autoFocus:B===0&&p},F))}))))});var Ume={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Vme=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Ume}))},Wme=l.forwardRef(Vme),Gme={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"},qme=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Gme}))},WV=l.forwardRef(qme),Kme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?l.createElement(WV,null):l.createElement(Wme,null),Xme={click:"onClick",hover:"onMouseOver"},Zme=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=Yme}=e,i=typeof a=="object"&&a.visible!==void 0,[s,c]=l.useState(()=>i?a.visible:!1),u=l.useRef(null);l.useEffect(()=>{i&&c(a.visible)},[i,a]);const d=VV(u),f=()=>{n||(s&&d(),c(R=>{var T;const _=!R;return typeof a=="object"&&((T=a.onVisibleChange)===null||T===void 0||T.call(a,_)),_}))},p=R=>{const T=Xme[r]||"",_=o(s),$={[T]:f,className:`${R}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return l.cloneElement(l.isValidElement(_)?_:l.createElement("span",null,_),$)},{className:g,prefixCls:v,inputPrefixCls:m,size:h}=e,y=Kme(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=l.useContext(ct),S=b("input",m),C=b("input-password",v),x=a&&p(C),E=ne(C,g,{[`${C}-${h}`]:!!h}),I=Object.assign(Object.assign({},Sn(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:E,prefixCls:S,suffix:x});return h&&(I.size=h),l.createElement(d0,Object.assign({ref:Pr(t,u)},I))});var Qme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:v}=e,m=Qme(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:y}=l.useContext(ct),b=l.useRef(!1),S=h("input-search",n),C=h("input",r),{compactSize:x}=es(S,y),E=dr(F=>{var j;return(j=o??x)!==null&&j!==void 0?j:F}),I=l.useRef(null),R=F=>{F!=null&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),p==null||p(F)},T=F=>{var j;document.activeElement===((j=I.current)===null||j===void 0?void 0:j.input)&&F.preventDefault()},_=F=>{var j,B;f&&f((B=(j=I.current)===null||j===void 0?void 0:j.input)===null||B===void 0?void 0:B.value,F,{source:"input"})},$=F=>{b.current||u||_(F)},D=typeof s=="boolean"?l.createElement(o$,null):null,P=`${S}-button`;let A;const O=s||{},k=O.type&&O.type.__ANT_BUTTON===!0;k||O.type==="button"?A=ur(O,Object.assign({onMouseDown:T,onClick:F=>{var j,B;(B=(j=O==null?void 0:O.props)===null||j===void 0?void 0:j.onClick)===null||B===void 0||B.call(j,F),_(F)},key:"enterButton"},k?{className:P,size:E}:{})):A=l.createElement(Dt,{className:P,type:s?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:T,onClick:_,loading:u,icon:D},s),c&&(A=[A,ur(c,{key:"addonAfter"})]);const N=ne(S,{[`${S}-rtl`]:y==="rtl",[`${S}-${E}`]:!!E,[`${S}-with-button`]:!!s},a),M=F=>{b.current=!0,g==null||g(F)},L=F=>{b.current=!1,v==null||v(F)};return l.createElement(d0,Object.assign({ref:Pr(I,t),onPressEnter:$},m,{size:E,onCompositionStart:M,onCompositionEnd:L,prefixCls:C,addonAfter:A,suffix:i,onChange:R,className:N,disabled:d}))});var ehe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -352,7 +352,7 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,the=["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"],hS={},no;function nhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&hS[n])return hS[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=the.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(hS[n]=c),c}function rhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");var a=nhe(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;no.setAttribute("style","".concat(c,";").concat(ehe)),no.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=no.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){no.value=" ";var g=no.scrollHeight-o;n!==null&&(u=g*n,s==="border-box"&&(u=u+o+i),p=Math.max(u,p)),r!==null&&(d=g*r,s==="border-box"&&(d=d+o+i),f=p>d?"":"hidden",p=Math.min(d,p))}var v={height:p,overflowY:f,resize:"none"};return u&&(v.minHeight=u),d&&(v.maxHeight=d),v}var ahe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vS=0,bS=1,yS=2,ohe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=xt(n,ahe),g=on(a,{value:o,postState:function(H){return H??""}}),v=ie(g,2),m=v[0],h=v[1],y=function(H){h(H.target.value),f==null||f(H)},b=l.useRef();l.useImperativeHandle(t,function(){return{textArea:b.current}});var S=l.useMemo(function(){return i&&ht(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=ie(S,2),x=C[0],E=C[1],I=!!i,R=function(){try{if(document.activeElement===b.current){var H=b.current,U=H.selectionStart,X=H.selectionEnd,W=H.scrollTop;b.current.setSelectionRange(U,X),b.current.scrollTop=W}}catch{}},T=l.useState(yS),_=ie(T,2),$=_[0],D=_[1],P=l.useState(),A=ie(P,2),O=A[0],k=A[1],N=function(){D(vS)};qt(function(){I&&N()},[o,x,E,I]),qt(function(){if($===vS)D(bS);else if($===bS){var z=rhe(b.current,!1,x,E);D(yS),k(z)}else R()},[$]);var M=l.useRef(),L=function(){Bt.cancel(M.current)},F=function(H){$===yS&&(s==null||s(H),i&&(L(),M.current=Bt(function(){N()})))};l.useEffect(function(){return L},[]);var j=I?O:null,B=K(K({},u),j);return($===vS||$===bS)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(Ur,{onResize:F,disabled:!(i||s)},l.createElement("textarea",ve({},p,{ref:b,style:B,className:ne(r,c,V({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:y})))}),ihe=["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"],she=le.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,m=e.showCount,h=e.count,y=e.className,b=e.style,S=e.disabled,C=e.hidden,x=e.classNames,E=e.styles,I=e.onResize,R=e.onClear,T=e.onPressEnter,_=e.readOnly,$=e.autoSize,D=e.onKeyDown,P=xt(e,ihe),A=on(r,{value:a,defaultValue:r}),O=ie(A,2),k=O[0],N=O[1],M=k==null?"":String(k),L=le.useState(!1),F=ie(L,2),j=F[0],B=F[1],z=le.useRef(!1),H=le.useState(null),U=ie(H,2),X=U[0],W=U[1],Y=l.useRef(null),te=l.useRef(null),ee=function(){var we;return(we=te.current)===null||we===void 0?void 0:we.textArea},Z=function(){ee().focus()};l.useImperativeHandle(t,function(){var Ae;return{resizableTextArea:te.current,focus:Z,blur:function(){ee().blur()},nativeElement:((Ae=Y.current)===null||Ae===void 0?void 0:Ae.nativeElement)||ee()}}),l.useEffect(function(){B(function(Ae){return!S&&Ae})},[S]);var oe=le.useState(null),re=ie(oe,2),q=re[0],Q=re[1];le.useEffect(function(){if(q){var Ae;(Ae=ee()).setSelectionRange.apply(Ae,Oe(q))}},[q]);var ae=BV(h,m),se=(n=ae.max)!==null&&n!==void 0?n:u,de=Number(se)>0,he=ae.strategy(M),ye=!!se&&he>se,pe=function(we,$e){var Ce=$e;!z.current&&ae.exceedFormatter&&ae.max&&ae.strategy($e)>ae.max&&(Ce=ae.exceedFormatter($e,{max:ae.max}),$e!==Ce&&Q([ee().selectionStart||0,ee().selectionEnd||0])),N(Ce),Tv(we.currentTarget,we,s,Ce)},J=function(we){z.current=!0,d==null||d(we)},ce=function(we){z.current=!1,pe(we,we.currentTarget.value),f==null||f(we)},ue=function(we){pe(we,we.target.value)},fe=function(we){we.key==="Enter"&&T&&T(we),D==null||D(we)},be=function(we){B(!0),o==null||o(we)},Te=function(we){B(!1),i==null||i(we)},_e=function(we){N(""),Z(),Tv(ee(),we,s)},Pe=p,Ee;ae.show&&(ae.showFormatter?Ee=ae.showFormatter({value:M,count:he,maxLength:se}):Ee="".concat(he).concat(de?" / ".concat(se):""),Pe=le.createElement(le.Fragment,null,Pe,le.createElement("span",{className:ne("".concat(v,"-data-count"),x==null?void 0:x.count),style:E==null?void 0:E.count},Ee)));var Fe=function(we){var $e;I==null||I(we),($e=ee())!==null&&$e!==void 0&&$e.style.height&&W(!0)},De=!$&&!m&&!c;return le.createElement(P$,{ref:Y,value:M,allowClear:c,handleReset:_e,suffix:Pe,prefixCls:v,classNames:K(K({},x),{},{affixWrapper:ne(x==null?void 0:x.affixWrapper,V(V({},"".concat(v,"-show-count"),m),"".concat(v,"-textarea-allow-clear"),c))}),disabled:S,focused:j,className:ne(y,ye&&"".concat(v,"-out-of-range")),style:K(K({},b),X&&!De?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:C,readOnly:_,onClear:R},le.createElement(ohe,ve({},P,{autoSize:$,maxLength:u,onKeyDown:fe,onChange:ue,onFocus:be,onBlur:Te,onCompositionStart:J,onCompositionEnd:ce,className:ne(x==null?void 0:x.textarea),style:K(K({},E==null?void 0:E.textarea),{},{resize:b==null?void 0:b.resize}),disabled:S,prefixCls:v,onResize:Fe,ref:te,readOnly:_})))}),lhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:g,styles:v,variant:m}=e,h=lhe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:S}=l.useContext(it),C=dr(i),x=l.useContext(Gr),E=s??x,{status:I,hasFeedback:R,feedbackIcon:T}=l.useContext(Rr),_=nl(I,c),$=l.useRef(null);l.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=$.current)===null||F===void 0?void 0:F.resizableTextArea,focus:j=>{var B,z;Pme((z=(B=$.current)===null||B===void 0?void 0:B.resizableTextArea)===null||z===void 0?void 0:z.textArea,j)},blur:()=>{var j;return(j=$.current)===null||j===void 0?void 0:j.blur()}}});const D=y("input",a),P=Yn(D),[A,O,k]=O$(D,P),[N,M]=dc("textArea",m,o),L=UV(u??(S==null?void 0:S.allowClear));return A(l.createElement(she,Object.assign({autoComplete:S==null?void 0:S.autoComplete},h,{style:Object.assign(Object.assign({},S==null?void 0:S.style),g),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),v),disabled:E,allowClear:L,className:ne(k,P,p,f,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},d),S==null?void 0:S.classNames),{textarea:ne({[`${D}-sm`]:C==="small",[`${D}-lg`]:C==="large"},O,d==null?void 0:d.textarea,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${D}-${N}`]:M},Yi(D,_)),affixWrapper:ne(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:b==="rtl",[`${D}-affix-wrapper-sm`]:C==="small",[`${D}-affix-wrapper-lg`]:C==="large",[`${D}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},O)}),prefixCls:D,suffix:R&&l.createElement("span",{className:`${D}-textarea-suffix`},T),ref:$})))}),en=d0;en.Group=Ame;en.Search=Jme;en.TextArea=GV;en.Password=Zme;en.OTP=Hme;function LT(e,t,n){return(e-t)/(n-t)}function L$(e,t,n,r){var a=LT(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function lu(e,t){return Array.isArray(e)?e[t]:e}var gc=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),che=l.createContext({}),uhe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],DM=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,g=e.onFocus,v=e.onMouseEnter,m=xt(e,uhe),h=l.useContext(gc),y=h.min,b=h.max,S=h.direction,C=h.disabled,x=h.keyboard,E=h.range,I=h.tabIndex,R=h.ariaLabelForHandle,T=h.ariaLabelledByForHandle,_=h.ariaValueTextFormatterForHandle,$=h.styles,D=h.classNames,P="".concat(n,"-handle"),A=function(H){C||o(H,a)},O=function(H){g==null||g(H,a)},k=function(H){v(H,a)},N=function(H){if(!C&&x){var U=null;switch(H.which||H.keyCode){case Me.LEFT:U=S==="ltr"||S==="btt"?-1:1;break;case Me.RIGHT:U=S==="ltr"||S==="btt"?1:-1;break;case Me.UP:U=S!=="ttb"?1:-1;break;case Me.DOWN:U=S!=="ttb"?-1:1;break;case Me.HOME:U="min";break;case Me.END:U="max";break;case Me.PAGE_UP:U=2;break;case Me.PAGE_DOWN:U=-2;break;case Me.BACKSPACE:case Me.DELETE:i(a);break}U!==null&&(H.preventDefault(),f(U,a))}},M=function(H){switch(H.which||H.keyCode){case Me.LEFT:case Me.RIGHT:case Me.UP:case Me.DOWN:case Me.HOME:case Me.END:case Me.PAGE_UP:case Me.PAGE_DOWN:p==null||p();break}},L=L$(S,r,y,b),F={};if(a!==null){var j;F={tabIndex:C?null:lu(I,a),role:"slider","aria-valuemin":y,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":C,"aria-label":lu(R,a),"aria-labelledby":lu(T,a),"aria-valuetext":(j=lu(_,a))===null||j===void 0?void 0:j(r),"aria-orientation":S==="ltr"||S==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:O,onMouseEnter:k,onKeyDown:N,onKeyUp:M}}var B=l.createElement("div",ve({ref:t,className:ne(P,V(V(V({},"".concat(P,"-").concat(a+1),a!==null&&E),"".concat(P,"-dragging"),u),"".concat(P,"-dragging-delete"),d),D.handle),style:K(K(K({},L),s),$.handle)},F,m));return c&&(B=c(B,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),dhe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],fhe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=xt(e,dhe),g=l.useRef({}),v=l.useState(!1),m=ie(v,2),h=m[0],y=m[1],b=l.useState(-1),S=ie(b,2),C=S[0],x=S[1],E=function($){x($),y(!0)},I=function($,D){E(D),f==null||f($)},R=function($,D){E(D)};l.useImperativeHandle(t,function(){return{focus:function($){var D;(D=g.current[$])===null||D===void 0||D.focus()},hideHelp:function(){xr.flushSync(function(){y(!1)})}}});var T=K({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:I,onMouseEnter:R},p);return l.createElement(l.Fragment,null,i.map(function(_,$){var D=u===$;return l.createElement(DM,ve({ref:function(A){A?g.current[$]=A:delete g.current[$]},dragging:D,draggingDelete:D&&d,style:lu(r,$),key:$,value:_,valueIndex:$},T))}),c&&h&&l.createElement(DM,ve({key:"a11y"},T,{value:i[C],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),phe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=l.useContext(gc),c=s.min,u=s.max,d=s.direction,f=s.includedStart,p=s.includedEnd,g=s.included,v="".concat(n,"-text"),m=L$(d,o,c,u);return l.createElement("span",{className:ne(v,V({},"".concat(v,"-active"),g&&f<=o&&o<=p)),style:K(K({},m),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){i(o)}},a)},ghe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?l.createElement("div",{className:o},r.map(function(i){var s=i.value,c=i.style,u=i.label;return l.createElement(phe,{key:s,prefixCls:o,style:c,value:s,onClick:a},u)})):null},mhe=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=l.useContext(gc),s=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,p=i.includedEnd,g="".concat(n,"-dot"),v=d&&f<=r&&r<=p,m=K(K({},L$(u,r,s,c)),typeof a=="function"?a(r):a);return v&&(m=K(K({},m),typeof o=="function"?o(r):o)),l.createElement("span",{className:ne(g,V({},"".concat(g,"-active"),v)),style:m})},hhe=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=l.useContext(gc),c=s.min,u=s.max,d=s.step,f=l.useMemo(function(){var p=new Set;if(r.forEach(function(v){p.add(v.value)}),a&&d!==null)for(var g=c;g<=u;)p.add(g),g+=d;return Array.from(p)},[c,u,d,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return l.createElement(mhe,{prefixCls:n,key:p,value:p,style:o,activeStyle:i})}))},PM=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,c=t.replaceCls,u=l.useContext(gc),d=u.direction,f=u.min,p=u.max,g=u.disabled,v=u.range,m=u.classNames,h="".concat(n,"-track"),y=LT(a,f,p),b=LT(o,f,p),S=function(I){!g&&s&&s(I,-1)},C={};switch(d){case"rtl":C.right="".concat(y*100,"%"),C.width="".concat(b*100-y*100,"%");break;case"btt":C.bottom="".concat(y*100,"%"),C.height="".concat(b*100-y*100,"%");break;case"ttb":C.top="".concat(y*100,"%"),C.height="".concat(b*100-y*100,"%");break;default:C.left="".concat(y*100,"%"),C.width="".concat(b*100-y*100,"%")}var x=c||ne(h,V(V({},"".concat(h,"-").concat(i+1),i!==null&&v),"".concat(n,"-track-draggable"),s),m.track);return l.createElement("div",{className:x,style:K(K({},C),r),onMouseDown:S,onTouchStart:S})},vhe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=l.useContext(gc),c=s.included,u=s.range,d=s.min,f=s.styles,p=s.classNames,g=l.useMemo(function(){if(!u){if(a.length===0)return[];var m=o??d,h=a[0];return[{start:Math.min(m,h),end:Math.max(m,h)}]}for(var y=[],b=0;bbhe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var b,S=v[h],C=S+m,x=[];r.forEach(function(_){x.push(_.value)}),x.push(e,t),x.push(s(S));var E=m>0?1:-1;y==="unit"?x.push(s(S+E*n)):x.push(s(C)),x=x.filter(function(_){return _!==null}).filter(function(_){return m<0?_<=S:_>=S}),y==="unit"&&(x=x.filter(function(_){return _!==S}));var I=y==="unit"?S:C;b=x[0];var R=Math.abs(b-I);if(x.forEach(function(_){var $=Math.abs(_-I);$1){var T=Oe(v);return T[h]=b,g(T,m-E,h,y)}return b}else{if(m==="min")return e;if(m==="max")return t}},d=function(v,m,h){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[h],S=u(v,m,h,y);return{value:S,changed:S!==b}},f=function(v){return o===null&&v===0||typeof o=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(c),S=b[h],C=u(b,m,h,y);if(b[h]=C,a===!1){var x=o||0;h>0&&b[h-1]!==S&&(b[h]=Math.max(b[h],b[h-1]+x)),h0;T-=1)for(var _=!0;f(b[T]-b[T-1])&&_;){var $=d(b,-1,T-1);b[T-1]=$.value,_=$.changed}for(var D=b.length-1;D>0;D-=1)for(var P=!0;f(b[D]-b[D-1])&&P;){var A=d(b,-1,D-1);b[D-1]=A.value,P=A.changed}for(var O=0;O=0?k:!1},[k,Pe]),Fe=l.useMemo(function(){return Object.keys(W||{}).map(function(Xe){var qe=W[Xe],pt={value:Number(Xe)};return qe&&ht(qe)==="object"&&!l.isValidElement(qe)&&("label"in qe||"style"in qe)?(pt.style=qe.style,pt.label=qe.label):pt.label=qe,pt}).filter(function(Xe){var qe=Xe.label;return qe||typeof qe=="number"}).sort(function(Xe,qe){return Xe.value-qe.value})},[W]),De=She(Te,_e,Pe,Fe,A,Ee),Ae=ie(De,2),we=Ae[0],$e=Ae[1],Ce=on(E,{value:x}),Re=ie(Ce,2),me=Re[0],Ie=Re[1],je=l.useMemo(function(){var Xe=me==null?[]:Array.isArray(me)?me:[me],qe=ie(Xe,1),pt=qe[0],Et=pt===void 0?Te:pt,_t=me===null?[]:[Et];if(J){if(_t=Oe(Xe),R||me===void 0){var Xt=R>=0?R+1:2;for(_t=_t.slice(0,Xt);_t.length=0&&se.current.focus(Xe)}jt(null)},[Rt]);var st=l.useMemo(function(){return ue&&Pe===null?!1:ue},[ue,Pe]),Ze=Ut(function(Xe,qe){He(Xe,qe),_==null||_(ke(je))}),lt=Je!==-1;l.useEffect(function(){if(!lt){var Xe=je.lastIndexOf(Ke);se.current.focus(Xe)}},[lt]);var It=l.useMemo(function(){return Oe(dt).sort(function(Xe,qe){return Xe-qe})},[dt]),at=l.useMemo(function(){return J?[It[0],It[It.length-1]]:[Te,It[0]]},[It,J,Te]),vt=ie(at,2),bt=vt[0],Qe=vt[1];l.useImperativeHandle(t,function(){return{focus:function(){se.current.focus(0)},blur:function(){var qe,pt=document,Et=pt.activeElement;(qe=de.current)!==null&&qe!==void 0&&qe.contains(Et)&&(Et==null||Et.blur())}}}),l.useEffect(function(){p&&se.current.focus(0)},[]);var ot=l.useMemo(function(){return{min:Te,max:_e,direction:he,disabled:u,keyboard:f,step:Pe,included:F,includedStart:bt,includedEnd:Qe,range:J,tabIndex:re,ariaLabelForHandle:q,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:ae,styles:s||{},classNames:i||{}}},[Te,_e,he,u,f,Pe,F,bt,Qe,J,re,q,Q,ae,s,i]);return l.createElement(gc.Provider,{value:ot},l.createElement("div",{ref:de,className:ne(r,a,V(V(V(V({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),M),"".concat(r,"-horizontal"),!M),"".concat(r,"-with-marks"),Fe.length)),style:o,onMouseDown:Ge},l.createElement("div",{className:ne("".concat(r,"-rail"),i==null?void 0:i.rail),style:K(K({},H),s==null?void 0:s.rail)}),Z!==!1&&l.createElement(vhe,{prefixCls:r,style:B,values:je,startPoint:j,onStartMove:st?Ze:void 0}),l.createElement(hhe,{prefixCls:r,marks:Fe,dots:Y,style:U,activeStyle:X}),l.createElement(fhe,{ref:se,prefixCls:r,style:z,values:dt,draggingIndex:Je,draggingDelete:ut,onStartMove:Ze,onOffsetChange:ft,onFocus:g,onBlur:v,handleRender:te,activeHandleRender:ee,onChangeComplete:Be,onDelete:ce?Ve:void 0}),l.createElement(ghe,{prefixCls:r,marks:Fe,onClick:Ye})))});const FM=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,a=l.useRef(null),o=n&&!r,i=l.useRef(null);function s(){Bt.cancel(i.current),i.current=null}function c(){i.current=Bt(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),i.current=null})}return l.useEffect(()=>(o?c():s(),s),[o,e.title]),l.createElement(tn,Object.assign({ref:Pr(a,t)},e,{open:o}))}),xhe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:g,handleLineWidth:v,handleLineWidthHover:m,motionDurationMid:h}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",height:r,margin:`${G(i)} ${G(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${G(o)} ${G(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${h}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${h}`},[`${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 ${G(v)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(v).mul(-1).equal(),insetBlockStart:u(v).mul(-1).equal(),width:u(d).add(u(v).mul(2)).equal(),height:u(d).add(u(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${G(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` +`,the=["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"],hS={},no;function nhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&hS[n])return hS[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=the.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(hS[n]=c),c}function rhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");var a=nhe(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;no.setAttribute("style","".concat(c,";").concat(ehe)),no.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=no.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){no.value=" ";var g=no.scrollHeight-o;n!==null&&(u=g*n,s==="border-box"&&(u=u+o+i),p=Math.max(u,p)),r!==null&&(d=g*r,s==="border-box"&&(d=d+o+i),f=p>d?"":"hidden",p=Math.min(d,p))}var v={height:p,overflowY:f,resize:"none"};return u&&(v.minHeight=u),d&&(v.maxHeight=d),v}var ahe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vS=0,bS=1,yS=2,ohe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=xt(n,ahe),g=on(a,{value:o,postState:function(H){return H??""}}),v=ie(g,2),m=v[0],h=v[1],y=function(H){h(H.target.value),f==null||f(H)},b=l.useRef();l.useImperativeHandle(t,function(){return{textArea:b.current}});var S=l.useMemo(function(){return i&&mt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=ie(S,2),x=C[0],E=C[1],I=!!i,R=function(){try{if(document.activeElement===b.current){var H=b.current,U=H.selectionStart,X=H.selectionEnd,W=H.scrollTop;b.current.setSelectionRange(U,X),b.current.scrollTop=W}}catch{}},T=l.useState(yS),_=ie(T,2),$=_[0],D=_[1],P=l.useState(),A=ie(P,2),O=A[0],k=A[1],N=function(){D(vS)};Wt(function(){I&&N()},[o,x,E,I]),Wt(function(){if($===vS)D(bS);else if($===bS){var z=rhe(b.current,!1,x,E);D(yS),k(z)}else R()},[$]);var M=l.useRef(),L=function(){jt.cancel(M.current)},F=function(H){$===yS&&(s==null||s(H),i&&(L(),M.current=jt(function(){N()})))};l.useEffect(function(){return L},[]);var j=I?O:null,B=K(K({},u),j);return($===vS||$===bS)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(Ur,{onResize:F,disabled:!(i||s)},l.createElement("textarea",ve({},p,{ref:b,style:B,className:ne(r,c,V({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:y})))}),ihe=["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"],she=le.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,m=e.showCount,h=e.count,y=e.className,b=e.style,S=e.disabled,C=e.hidden,x=e.classNames,E=e.styles,I=e.onResize,R=e.onClear,T=e.onPressEnter,_=e.readOnly,$=e.autoSize,D=e.onKeyDown,P=xt(e,ihe),A=on(r,{value:a,defaultValue:r}),O=ie(A,2),k=O[0],N=O[1],M=k==null?"":String(k),L=le.useState(!1),F=ie(L,2),j=F[0],B=F[1],z=le.useRef(!1),H=le.useState(null),U=ie(H,2),X=U[0],W=U[1],Y=l.useRef(null),te=l.useRef(null),ee=function(){var Se;return(Se=te.current)===null||Se===void 0?void 0:Se.textArea},Z=function(){ee().focus()};l.useImperativeHandle(t,function(){var Ae;return{resizableTextArea:te.current,focus:Z,blur:function(){ee().blur()},nativeElement:((Ae=Y.current)===null||Ae===void 0?void 0:Ae.nativeElement)||ee()}}),l.useEffect(function(){B(function(Ae){return!S&&Ae})},[S]);var oe=le.useState(null),re=ie(oe,2),q=re[0],Q=re[1];le.useEffect(function(){if(q){var Ae;(Ae=ee()).setSelectionRange.apply(Ae,Oe(q))}},[q]);var ae=BV(h,m),se=(n=ae.max)!==null&&n!==void 0?n:u,de=Number(se)>0,he=ae.strategy(M),ye=!!se&&he>se,pe=function(Se,_e){var we=_e;!z.current&&ae.exceedFormatter&&ae.max&&ae.strategy(_e)>ae.max&&(we=ae.exceedFormatter(_e,{max:ae.max}),_e!==we&&Q([ee().selectionStart||0,ee().selectionEnd||0])),N(we),Tv(Se.currentTarget,Se,s,we)},J=function(Se){z.current=!0,d==null||d(Se)},ce=function(Se){z.current=!1,pe(Se,Se.currentTarget.value),f==null||f(Se)},ue=function(Se){pe(Se,Se.target.value)},fe=function(Se){Se.key==="Enter"&&T&&T(Se),D==null||D(Se)},be=function(Se){B(!0),o==null||o(Se)},Ee=function(Se){B(!1),i==null||i(Se)},Re=function(Se){N(""),Z(),Tv(ee(),Se,s)},Fe=p,Ce;ae.show&&(ae.showFormatter?Ce=ae.showFormatter({value:M,count:he,maxLength:se}):Ce="".concat(he).concat(de?" / ".concat(se):""),Fe=le.createElement(le.Fragment,null,Fe,le.createElement("span",{className:ne("".concat(v,"-data-count"),x==null?void 0:x.count),style:E==null?void 0:E.count},Ce)));var ze=function(Se){var _e;I==null||I(Se),(_e=ee())!==null&&_e!==void 0&&_e.style.height&&W(!0)},Pe=!$&&!m&&!c;return le.createElement(P$,{ref:Y,value:M,allowClear:c,handleReset:Re,suffix:Fe,prefixCls:v,classNames:K(K({},x),{},{affixWrapper:ne(x==null?void 0:x.affixWrapper,V(V({},"".concat(v,"-show-count"),m),"".concat(v,"-textarea-allow-clear"),c))}),disabled:S,focused:j,className:ne(y,ye&&"".concat(v,"-out-of-range")),style:K(K({},b),X&&!Pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:C,readOnly:_,onClear:R},le.createElement(ohe,ve({},P,{autoSize:$,maxLength:u,onKeyDown:fe,onChange:ue,onFocus:be,onBlur:Ee,onCompositionStart:J,onCompositionEnd:ce,className:ne(x==null?void 0:x.textarea),style:K(K({},E==null?void 0:E.textarea),{},{resize:b==null?void 0:b.resize}),disabled:S,prefixCls:v,onResize:ze,ref:te,readOnly:_})))}),lhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:g,styles:v,variant:m}=e,h=lhe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:S}=l.useContext(ct),C=dr(i),x=l.useContext(Gr),E=s??x,{status:I,hasFeedback:R,feedbackIcon:T}=l.useContext(Rr),_=nl(I,c),$=l.useRef(null);l.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=$.current)===null||F===void 0?void 0:F.resizableTextArea,focus:j=>{var B,z;Pme((z=(B=$.current)===null||B===void 0?void 0:B.resizableTextArea)===null||z===void 0?void 0:z.textArea,j)},blur:()=>{var j;return(j=$.current)===null||j===void 0?void 0:j.blur()}}});const D=y("input",a),P=Yn(D),[A,O,k]=O$(D,P),[N,M]=dc("textArea",m,o),L=UV(u??(S==null?void 0:S.allowClear));return A(l.createElement(she,Object.assign({autoComplete:S==null?void 0:S.autoComplete},h,{style:Object.assign(Object.assign({},S==null?void 0:S.style),g),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),v),disabled:E,allowClear:L,className:ne(k,P,p,f,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},d),S==null?void 0:S.classNames),{textarea:ne({[`${D}-sm`]:C==="small",[`${D}-lg`]:C==="large"},O,d==null?void 0:d.textarea,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${D}-${N}`]:M},Yi(D,_)),affixWrapper:ne(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:b==="rtl",[`${D}-affix-wrapper-sm`]:C==="small",[`${D}-affix-wrapper-lg`]:C==="large",[`${D}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},O)}),prefixCls:D,suffix:R&&l.createElement("span",{className:`${D}-textarea-suffix`},T),ref:$})))}),Jt=d0;Jt.Group=Ame;Jt.Search=Jme;Jt.TextArea=GV;Jt.Password=Zme;Jt.OTP=Hme;function LT(e,t,n){return(e-t)/(n-t)}function L$(e,t,n,r){var a=LT(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function lu(e,t){return Array.isArray(e)?e[t]:e}var gc=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),che=l.createContext({}),uhe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],DM=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,g=e.onFocus,v=e.onMouseEnter,m=xt(e,uhe),h=l.useContext(gc),y=h.min,b=h.max,S=h.direction,C=h.disabled,x=h.keyboard,E=h.range,I=h.tabIndex,R=h.ariaLabelForHandle,T=h.ariaLabelledByForHandle,_=h.ariaValueTextFormatterForHandle,$=h.styles,D=h.classNames,P="".concat(n,"-handle"),A=function(H){C||o(H,a)},O=function(H){g==null||g(H,a)},k=function(H){v(H,a)},N=function(H){if(!C&&x){var U=null;switch(H.which||H.keyCode){case De.LEFT:U=S==="ltr"||S==="btt"?-1:1;break;case De.RIGHT:U=S==="ltr"||S==="btt"?1:-1;break;case De.UP:U=S!=="ttb"?1:-1;break;case De.DOWN:U=S!=="ttb"?-1:1;break;case De.HOME:U="min";break;case De.END:U="max";break;case De.PAGE_UP:U=2;break;case De.PAGE_DOWN:U=-2;break;case De.BACKSPACE:case De.DELETE:i(a);break}U!==null&&(H.preventDefault(),f(U,a))}},M=function(H){switch(H.which||H.keyCode){case De.LEFT:case De.RIGHT:case De.UP:case De.DOWN:case De.HOME:case De.END:case De.PAGE_UP:case De.PAGE_DOWN:p==null||p();break}},L=L$(S,r,y,b),F={};if(a!==null){var j;F={tabIndex:C?null:lu(I,a),role:"slider","aria-valuemin":y,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":C,"aria-label":lu(R,a),"aria-labelledby":lu(T,a),"aria-valuetext":(j=lu(_,a))===null||j===void 0?void 0:j(r),"aria-orientation":S==="ltr"||S==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:O,onMouseEnter:k,onKeyDown:N,onKeyUp:M}}var B=l.createElement("div",ve({ref:t,className:ne(P,V(V(V({},"".concat(P,"-").concat(a+1),a!==null&&E),"".concat(P,"-dragging"),u),"".concat(P,"-dragging-delete"),d),D.handle),style:K(K(K({},L),s),$.handle)},F,m));return c&&(B=c(B,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),dhe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],fhe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=xt(e,dhe),g=l.useRef({}),v=l.useState(!1),m=ie(v,2),h=m[0],y=m[1],b=l.useState(-1),S=ie(b,2),C=S[0],x=S[1],E=function($){x($),y(!0)},I=function($,D){E(D),f==null||f($)},R=function($,D){E(D)};l.useImperativeHandle(t,function(){return{focus:function($){var D;(D=g.current[$])===null||D===void 0||D.focus()},hideHelp:function(){xr.flushSync(function(){y(!1)})}}});var T=K({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:I,onMouseEnter:R},p);return l.createElement(l.Fragment,null,i.map(function(_,$){var D=u===$;return l.createElement(DM,ve({ref:function(A){A?g.current[$]=A:delete g.current[$]},dragging:D,draggingDelete:D&&d,style:lu(r,$),key:$,value:_,valueIndex:$},T))}),c&&h&&l.createElement(DM,ve({key:"a11y"},T,{value:i[C],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),phe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=l.useContext(gc),c=s.min,u=s.max,d=s.direction,f=s.includedStart,p=s.includedEnd,g=s.included,v="".concat(n,"-text"),m=L$(d,o,c,u);return l.createElement("span",{className:ne(v,V({},"".concat(v,"-active"),g&&f<=o&&o<=p)),style:K(K({},m),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){i(o)}},a)},ghe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?l.createElement("div",{className:o},r.map(function(i){var s=i.value,c=i.style,u=i.label;return l.createElement(phe,{key:s,prefixCls:o,style:c,value:s,onClick:a},u)})):null},mhe=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=l.useContext(gc),s=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,p=i.includedEnd,g="".concat(n,"-dot"),v=d&&f<=r&&r<=p,m=K(K({},L$(u,r,s,c)),typeof a=="function"?a(r):a);return v&&(m=K(K({},m),typeof o=="function"?o(r):o)),l.createElement("span",{className:ne(g,V({},"".concat(g,"-active"),v)),style:m})},hhe=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=l.useContext(gc),c=s.min,u=s.max,d=s.step,f=l.useMemo(function(){var p=new Set;if(r.forEach(function(v){p.add(v.value)}),a&&d!==null)for(var g=c;g<=u;)p.add(g),g+=d;return Array.from(p)},[c,u,d,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return l.createElement(mhe,{prefixCls:n,key:p,value:p,style:o,activeStyle:i})}))},PM=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,c=t.replaceCls,u=l.useContext(gc),d=u.direction,f=u.min,p=u.max,g=u.disabled,v=u.range,m=u.classNames,h="".concat(n,"-track"),y=LT(a,f,p),b=LT(o,f,p),S=function(I){!g&&s&&s(I,-1)},C={};switch(d){case"rtl":C.right="".concat(y*100,"%"),C.width="".concat(b*100-y*100,"%");break;case"btt":C.bottom="".concat(y*100,"%"),C.height="".concat(b*100-y*100,"%");break;case"ttb":C.top="".concat(y*100,"%"),C.height="".concat(b*100-y*100,"%");break;default:C.left="".concat(y*100,"%"),C.width="".concat(b*100-y*100,"%")}var x=c||ne(h,V(V({},"".concat(h,"-").concat(i+1),i!==null&&v),"".concat(n,"-track-draggable"),s),m.track);return l.createElement("div",{className:x,style:K(K({},C),r),onMouseDown:S,onTouchStart:S})},vhe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=l.useContext(gc),c=s.included,u=s.range,d=s.min,f=s.styles,p=s.classNames,g=l.useMemo(function(){if(!u){if(a.length===0)return[];var m=o??d,h=a[0];return[{start:Math.min(m,h),end:Math.max(m,h)}]}for(var y=[],b=0;bbhe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var b,S=v[h],C=S+m,x=[];r.forEach(function(_){x.push(_.value)}),x.push(e,t),x.push(s(S));var E=m>0?1:-1;y==="unit"?x.push(s(S+E*n)):x.push(s(C)),x=x.filter(function(_){return _!==null}).filter(function(_){return m<0?_<=S:_>=S}),y==="unit"&&(x=x.filter(function(_){return _!==S}));var I=y==="unit"?S:C;b=x[0];var R=Math.abs(b-I);if(x.forEach(function(_){var $=Math.abs(_-I);$1){var T=Oe(v);return T[h]=b,g(T,m-E,h,y)}return b}else{if(m==="min")return e;if(m==="max")return t}},d=function(v,m,h){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[h],S=u(v,m,h,y);return{value:S,changed:S!==b}},f=function(v){return o===null&&v===0||typeof o=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(c),S=b[h],C=u(b,m,h,y);if(b[h]=C,a===!1){var x=o||0;h>0&&b[h-1]!==S&&(b[h]=Math.max(b[h],b[h-1]+x)),h0;T-=1)for(var _=!0;f(b[T]-b[T-1])&&_;){var $=d(b,-1,T-1);b[T-1]=$.value,_=$.changed}for(var D=b.length-1;D>0;D-=1)for(var P=!0;f(b[D]-b[D-1])&&P;){var A=d(b,-1,D-1);b[D-1]=A.value,P=A.changed}for(var O=0;O=0?k:!1},[k,Fe]),ze=l.useMemo(function(){return Object.keys(W||{}).map(function(Qe){var Xe=W[Qe],gt={value:Number(Qe)};return Xe&&mt(Xe)==="object"&&!l.isValidElement(Xe)&&("label"in Xe||"style"in Xe)?(gt.style=Xe.style,gt.label=Xe.label):gt.label=Xe,gt}).filter(function(Qe){var Xe=Qe.label;return Xe||typeof Xe=="number"}).sort(function(Qe,Xe){return Qe.value-Xe.value})},[W]),Pe=She(Ee,Re,Fe,ze,A,Ce),Ae=ie(Pe,2),Se=Ae[0],_e=Ae[1],we=on(E,{value:x}),Te=ie(we,2),me=Te[0],xe=Te[1],Be=l.useMemo(function(){var Qe=me==null?[]:Array.isArray(me)?me:[me],Xe=ie(Qe,1),gt=Xe[0],Et=gt===void 0?Ee:gt,$t=me===null?[]:[Et];if(J){if($t=Oe(Qe),R||me===void 0){var qt=R>=0?R+1:2;for($t=$t.slice(0,qt);$t.length=0&&se.current.focus(Qe)}Ft(null)},[Rt]);var lt=l.useMemo(function(){return ue&&Fe===null?!1:ue},[ue,Fe]),Je=zt(function(Qe,Xe){Ue(Qe,Xe),_==null||_(ke(Be))}),ut=tt!==-1;l.useEffect(function(){if(!ut){var Qe=Be.lastIndexOf(Ye);se.current.focus(Qe)}},[ut]);var It=l.useMemo(function(){return Oe(ht).sort(function(Qe,Xe){return Qe-Xe})},[ht]),at=l.useMemo(function(){return J?[It[0],It[It.length-1]]:[Ee,It[0]]},[It,J,Ee]),bt=ie(at,2),yt=bt[0],et=bt[1];l.useImperativeHandle(t,function(){return{focus:function(){se.current.focus(0)},blur:function(){var Xe,gt=document,Et=gt.activeElement;(Xe=de.current)!==null&&Xe!==void 0&&Xe.contains(Et)&&(Et==null||Et.blur())}}}),l.useEffect(function(){p&&se.current.focus(0)},[]);var ot=l.useMemo(function(){return{min:Ee,max:Re,direction:he,disabled:u,keyboard:f,step:Fe,included:F,includedStart:yt,includedEnd:et,range:J,tabIndex:re,ariaLabelForHandle:q,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:ae,styles:s||{},classNames:i||{}}},[Ee,Re,he,u,f,Fe,F,yt,et,J,re,q,Q,ae,s,i]);return l.createElement(gc.Provider,{value:ot},l.createElement("div",{ref:de,className:ne(r,a,V(V(V(V({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),M),"".concat(r,"-horizontal"),!M),"".concat(r,"-with-marks"),ze.length)),style:o,onMouseDown:Ke},l.createElement("div",{className:ne("".concat(r,"-rail"),i==null?void 0:i.rail),style:K(K({},H),s==null?void 0:s.rail)}),Z!==!1&&l.createElement(vhe,{prefixCls:r,style:B,values:Be,startPoint:j,onStartMove:lt?Je:void 0}),l.createElement(hhe,{prefixCls:r,marks:ze,dots:Y,style:U,activeStyle:X}),l.createElement(fhe,{ref:se,prefixCls:r,style:z,values:ht,draggingIndex:tt,draggingDelete:ft,onStartMove:Je,onOffsetChange:pt,onFocus:g,onBlur:v,handleRender:te,activeHandleRender:ee,onChangeComplete:He,onDelete:ce?Ge:void 0}),l.createElement(ghe,{prefixCls:r,marks:ze,onClick:We})))});const FM=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,a=l.useRef(null),o=n&&!r,i=l.useRef(null);function s(){jt.cancel(i.current),i.current=null}function c(){i.current=jt(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),i.current=null})}return l.useEffect(()=>(o?c():s(),s),[o,e.title]),l.createElement(en,Object.assign({ref:Pr(a,t)},e,{open:o}))}),xhe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:g,handleLineWidth:v,handleLineWidthHover:m,motionDurationMid:h}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{position:"relative",height:r,margin:`${G(i)} ${G(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${G(o)} ${G(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${h}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${h}`},[`${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 ${G(v)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(v).mul(-1).equal(),insetBlockStart:u(v).mul(-1).equal(),width:u(d).add(u(v).mul(2)).equal(),height:u(d).add(u(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${G(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${h}, inset-block-start ${h}, width ${h}, @@ -364,15 +364,15 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${G(v)} ${c}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},qV=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=s(r).mul(3).sub(a).div(2).equal(),v=s(a).sub(r).div(2).equal(),m=t?{borderWidth:`${G(v)} 0`,transform:`translateY(${G(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${G(v)}`,transform:`translateX(${G(e.calc(v).mul(-1).equal())})`};return{[c]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},Ehe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},qV(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Ihe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},qV(e,!1)),{height:"100%"})}},The=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new un(i).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Rhe=nn("Slider",e=>{const t=zt(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[xhe(t),Ehe(t),Ihe(t)]},The),_he=l.createContext({});function SS(){const[e,t]=l.useState(!1),n=l.useRef(),r=()=>{Bt.cancel(n.current)},a=o=>{r(),o?t(o):n.current=Bt(()=>{t(o)})};return l.useEffect(()=>r,[]),[e,a]}var $he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const Nhe=le.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:g={},onChangeComplete:v}=e,m=$he(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:h}=e,{direction:y,slider:b,getPrefixCls:S,getPopupContainer:C}=le.useContext(it),x=le.useContext(Gr),E=s??x,{handleRender:I,direction:R}=le.useContext(_he),_=(R||y)==="rtl",[$,D]=SS(),[P,A]=SS(),O=Object.assign({},g),{open:k,placement:N,getPopupContainer:M,prefixCls:L,formatter:F}=O,j=k??d,B=($||P)&&j!==!1,z=Ohe(F,u),[H,U]=SS(),X=se=>{v==null||v(se),U(!1)},W=(se,de)=>se||(de?_?"left":"right":"top"),Y=S("slider",n),[te,ee,Z]=Rhe(Y),oe=ne(a,b==null?void 0:b.className,o,{[`${Y}-rtl`]:_,[`${Y}-lock`]:H},ee,Z);_&&!m.vertical&&(m.reverse=!m.reverse),le.useEffect(()=>{const se=()=>{Bt(()=>{A(!1)},1)};return document.addEventListener("mouseup",se),()=>{document.removeEventListener("mouseup",se)}},[]);const re=r&&!j,q=I||((se,de)=>{const{index:he}=de,ye=se.props;function pe(fe,be,Te){var _e,Pe,Ee,Fe;Te&&((Pe=(_e=m)[fe])===null||Pe===void 0||Pe.call(_e,be)),(Fe=(Ee=ye)[fe])===null||Fe===void 0||Fe.call(Ee,be)}const J=Object.assign(Object.assign({},ye),{onMouseEnter:fe=>{D(!0),pe("onMouseEnter",fe)},onMouseLeave:fe=>{D(!1),pe("onMouseLeave",fe)},onMouseDown:fe=>{A(!0),U(!0),pe("onMouseDown",fe)},onFocus:fe=>{var be;A(!0),(be=m.onFocus)===null||be===void 0||be.call(m,fe),pe("onFocus",fe,!0)},onBlur:fe=>{var be;A(!1),(be=m.onBlur)===null||be===void 0||be.call(m,fe),pe("onBlur",fe,!0)}}),ce=le.cloneElement(se,J),ue=(!!j||B)&&z!==null;return re?ce:le.createElement(FM,Object.assign({},O,{prefixCls:S("tooltip",L??c),title:z?z(de.value):"",open:ue,placement:W(N??p,h),key:he,overlayClassName:`${Y}-tooltip`,getPopupContainer:M||f||C}),ce)}),Q=re?(se,de)=>{const he=le.cloneElement(se,{style:Object.assign(Object.assign({},se.props.style),{visibility:"hidden"})});return le.createElement(FM,Object.assign({},O,{prefixCls:S("tooltip",L??c),title:z?z(de.value):"",open:z!==null&&B,placement:W(N??p,h),key:"tooltip",overlayClassName:`${Y}-tooltip`,getPopupContainer:M||f||C,draggingDelete:de.draggingDelete}),he)}:void 0,ae=Object.assign(Object.assign({},b==null?void 0:b.style),i);return te(le.createElement(Che,Object.assign({},m,{step:m.step,range:r,className:oe,style:ae,disabled:E,ref:t,prefixCls:Y,handleRender:q,activeHandleRender:Q,onChangeComplete:X})))});var khe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Ahe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:khe}))},KV=l.forwardRef(Ahe),Mhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Dhe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Mhe}))},YV=l.forwardRef(Dhe),Phe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Lhe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Phe}))},Fhe=l.forwardRef(Lhe);function jhe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Bhe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function F$(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function XV(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=i$(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[zhe,Hhe]=["week","WeekPicker"],[Uhe,Vhe]=["month","MonthPicker"],[Whe,Ghe]=["year","YearPicker"],[qhe,Khe]=["quarter","QuarterPicker"],[ZV,jM]=["time","TimePicker"],Yhe=e=>l.createElement(Pt,Object.assign({size:"small",type:"primary"},e));function QV(e){return l.useMemo(()=>Object.assign({button:Yhe},e),[e])}var Xhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:f,disabled:p,bordered:g=!0,placeholder:v,popupClassName:m,dropdownClassName:h,status:y,rootClassName:b,variant:S,picker:C}=n,x=Xhe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=l.useRef(null),{getPrefixCls:I,direction:R,getPopupContainer:T,rangePicker:_}=l.useContext(it),$=I("picker",o),{compactSize:D,compactItemClassnames:P}=es($,R),A=I(),[O,k]=dc("rangePicker",S,g),N=Yn($),[M,L,F]=SV($,N),[j]=XV(n,$),B=QV(s),z=dr(q=>{var Q;return(Q=f??D)!==null&&Q!==void 0?Q:q}),H=l.useContext(Gr),U=p??H,X=l.useContext(Rr),{hasFeedback:W,status:Y,feedbackIcon:te}=X,ee=l.createElement(l.Fragment,null,C===ZV?l.createElement(YV,null):l.createElement(KV,null),W&&te);l.useImperativeHandle(r,()=>E.current);const[Z]=mi("Calendar",pv),oe=Object.assign(Object.assign({},Z),n.locale),[re]=Ji("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return M(l.createElement(di,{space:!0},l.createElement(Afe,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${$}-separator`},l.createElement(Fhe,null)),disabled:U,ref:E,popupAlign:F$(R,d),placement:d,placeholder:Bhe(oe,C,v),suffixIcon:ee,prevIcon:l.createElement("span",{className:`${$}-prev-icon`}),nextIcon:l.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:C},x,{className:ne({[`${$}-${z}`]:z,[`${$}-${O}`]:k},Yi($,nl(Y,y),W),L,P,c,_==null?void 0:_.className,F,N,b),style:Object.assign(Object.assign({},_==null?void 0:_.style),u),locale:oe.lang,prefixCls:$,getPopupContainer:i||T,generateConfig:e,components:B,direction:R,classNames:{popup:ne(L,m||h,F,N,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:re})},allowClear:j}))))});var Qhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===jM?"timePicker":"datePicker";return l.forwardRef((p,g)=>{var v;const{prefixCls:m,getPopupContainer:h,components:y,style:b,className:S,rootClassName:C,size:x,bordered:E,placement:I,placeholder:R,popupClassName:T,dropdownClassName:_,disabled:$,status:D,variant:P,onCalendarChange:A}=p,O=Qhe(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:N,getPopupContainer:M,[d]:L}=l.useContext(it),F=k("picker",m),{compactSize:j,compactItemClassnames:B}=es(F,N),z=l.useRef(null),[H,U]=dc("datePicker",P,E),X=Yn(F),[W,Y,te]=SV(F,X);l.useImperativeHandle(g,()=>z.current);const ee={showToday:!0},Z=c||p.picker,oe=k(),{onSelect:re,multiple:q}=O,Q=re&&c==="time"&&!q,ae=(Fe,De,Ae)=>{A==null||A(Fe,De,Ae),Q&&re(Fe)},[se,de]=XV(p,F),he=QV(y),ye=dr(Fe=>{var De;return(De=x??j)!==null&&De!==void 0?De:Fe}),pe=l.useContext(Gr),J=$??pe,ce=l.useContext(Rr),{hasFeedback:ue,status:fe,feedbackIcon:be}=ce,Te=l.createElement(l.Fragment,null,Z==="time"?l.createElement(YV,null):l.createElement(KV,null),ue&&be),[_e]=mi("DatePicker",pv),Pe=Object.assign(Object.assign({},_e),p.locale),[Ee]=Ji("DatePicker",(v=p.popupStyle)===null||v===void 0?void 0:v.zIndex);return W(l.createElement(di,{space:!0},l.createElement(jfe,Object.assign({ref:z,placeholder:jhe(Pe,Z,R),suffixIcon:Te,dropdownAlign:F$(N,I),placement:I,prevIcon:l.createElement("span",{className:`${F}-prev-icon`}),nextIcon:l.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${oe}-slide-up`,picker:c,onCalendarChange:ae},ee,O,{locale:Pe.lang,className:ne({[`${F}-${ye}`]:ye,[`${F}-${H}`]:U},Yi(F,nl(fe,D),ue),Y,B,L==null?void 0:L.className,S,te,X,C),style:Object.assign(Object.assign({},L==null?void 0:L.style),b),prefixCls:F,getPopupContainer:h||M,generateConfig:e,components:he,direction:N,disabled:J,classNames:{popup:ne(Y,te,X,C,T||_)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:Ee})},allowClear:se,removeIcon:de}))))})},n=t(),r=t(zhe,Hhe),a=t(Uhe,Vhe),o=t(Whe,Ghe),i=t(qhe,Khe),s=t(ZV,jM);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},JV=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=Jhe(e),s=Zhe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=s,c.TimePicker=o,c.QuarterPicker=i,c},fd=JV(Ude);function eW(e){const t=F$(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const eve=ug(fd,"picker",null,eW);fd._InternalPanelDoNotUseOrYouWillBeFired=eve;const tve=ug(fd.RangePicker,"picker",null,eW);fd._InternalRangePanelDoNotUseOrYouWillBeFired=tve;fd.generatePicker=JV;var BM=l.createContext(null),tW=l.createContext({}),nve=["prefixCls","className","containerRef"],rve=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=xt(t,nve),i=l.useContext(tW),s=i.panel,c=Qi(s,a);return l.createElement("div",ve({className:ne("".concat(n,"-content"),r),role:"dialog",ref:c},Mn(t,{aria:!0}),{"aria-modal":"true"},o))};function zM(e){return typeof e=="string"&&String(Number(e))===e?(pn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var HM={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ave(e,t){var n,r,a,o=e.prefixCls,i=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,g=e.classNames,v=e.rootClassName,m=e.rootStyle,h=e.zIndex,y=e.className,b=e.id,S=e.style,C=e.motion,x=e.width,E=e.height,I=e.children,R=e.mask,T=e.maskClosable,_=e.maskMotion,$=e.maskClassName,D=e.maskStyle,P=e.afterOpenChange,A=e.onClose,O=e.onMouseEnter,k=e.onMouseOver,N=e.onMouseLeave,M=e.onClick,L=e.onKeyDown,F=e.onKeyUp,j=e.styles,B=e.drawerRender,z=l.useRef(),H=l.useRef(),U=l.useRef();l.useImperativeHandle(t,function(){return z.current});var X=function(J){var ce=J.keyCode,ue=J.shiftKey;switch(ce){case Me.TAB:{if(ce===Me.TAB){if(!ue&&document.activeElement===U.current){var fe;(fe=H.current)===null||fe===void 0||fe.focus({preventScroll:!0})}else if(ue&&document.activeElement===H.current){var be;(be=U.current)===null||be===void 0||be.focus({preventScroll:!0})}}break}case Me.ESC:{A&&p&&(J.stopPropagation(),A(J));break}}};l.useEffect(function(){if(i&&f){var pe;(pe=z.current)===null||pe===void 0||pe.focus({preventScroll:!0})}},[i]);var W=l.useState(!1),Y=ie(W,2),te=Y[0],ee=Y[1],Z=l.useContext(BM),oe;typeof u=="boolean"?oe=u?{}:{distance:0}:oe=u||{};var re=(n=(r=(a=oe)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:Z==null?void 0:Z.pushDistance)!==null&&n!==void 0?n:180,q=l.useMemo(function(){return{pushDistance:re,push:function(){ee(!0)},pull:function(){ee(!1)}}},[re]);l.useEffect(function(){if(i){var pe;Z==null||(pe=Z.push)===null||pe===void 0||pe.call(Z)}else{var J;Z==null||(J=Z.pull)===null||J===void 0||J.call(Z)}},[i]),l.useEffect(function(){return function(){var pe;Z==null||(pe=Z.pull)===null||pe===void 0||pe.call(Z)}},[]);var Q=R&&l.createElement(qr,ve({key:"mask"},_,{visible:i}),function(pe,J){var ce=pe.className,ue=pe.style;return l.createElement("div",{className:ne("".concat(o,"-mask"),ce,g==null?void 0:g.mask,$),style:K(K(K({},ue),D),j==null?void 0:j.mask),onClick:T&&i?A:void 0,ref:J})}),ae=typeof C=="function"?C(s):C,se={};if(te&&re)switch(s){case"top":se.transform="translateY(".concat(re,"px)");break;case"bottom":se.transform="translateY(".concat(-re,"px)");break;case"left":se.transform="translateX(".concat(re,"px)");break;default:se.transform="translateX(".concat(-re,"px)");break}s==="left"||s==="right"?se.width=zM(x):se.height=zM(E);var de={onMouseEnter:O,onMouseOver:k,onMouseLeave:N,onClick:M,onKeyDown:L,onKeyUp:F},he=l.createElement(qr,ve({key:"panel"},ae,{visible:i,forceRender:d,onVisibleChanged:function(J){P==null||P(J)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(pe,J){var ce=pe.className,ue=pe.style,fe=l.createElement(rve,ve({id:b,containerRef:J,prefixCls:o,className:ne(y,g==null?void 0:g.content),style:K(K({},S),j==null?void 0:j.content)},Mn(e,{aria:!0}),de),I);return l.createElement("div",ve({className:ne("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,ce),style:K(K(K({},se),ue),j==null?void 0:j.wrapper)},Mn(e,{data:!0})),B?B(fe):fe)}),ye=K({},m);return h&&(ye.zIndex=h),l.createElement(BM.Provider,{value:q},l.createElement("div",{className:ne(o,"".concat(o,"-").concat(s),v,V(V({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:ye,tabIndex:-1,ref:z,onKeyDown:X},Q,l.createElement("div",{tabIndex:0,ref:H,style:HM,"aria-hidden":"true","data-sentinel":"start"}),he,l.createElement("div",{tabIndex:0,ref:U,style:HM,"aria-hidden":"true","data-sentinel":"end"})))}var ove=l.forwardRef(ave),ive=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,s=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,p=t.width,g=p===void 0?378:p,v=t.mask,m=v===void 0?!0:v,h=t.maskClosable,y=h===void 0?!0:h,b=t.getContainer,S=t.forceRender,C=t.afterOpenChange,x=t.destroyOnClose,E=t.onMouseEnter,I=t.onMouseOver,R=t.onMouseLeave,T=t.onClick,_=t.onKeyDown,$=t.onKeyUp,D=t.panelRef,P=l.useState(!1),A=ie(P,2),O=A[0],k=A[1],N=l.useState(!1),M=ie(N,2),L=M[0],F=M[1];qt(function(){F(!0)},[]);var j=L?r:!1,B=l.useRef(),z=l.useRef();qt(function(){j&&(z.current=document.activeElement)},[j]);var H=function(te){var ee;if(k(te),C==null||C(te),!te&&z.current&&!((ee=B.current)!==null&&ee!==void 0&&ee.contains(z.current))){var Z;(Z=z.current)===null||Z===void 0||Z.focus({preventScroll:!0})}},U=l.useMemo(function(){return{panel:D}},[D]);if(!S&&!O&&!j&&x)return null;var X={onMouseEnter:E,onMouseOver:I,onMouseLeave:R,onClick:T,onKeyDown:_,onKeyUp:$},W=K(K({},t),{},{open:j,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:m,maskClosable:y,inline:b===!1,afterOpenChange:H,ref:B},X);return l.createElement(tW.Provider,{value:U},l.createElement(Ab,{open:j||S||O,autoDestroy:!1,getContainer:b,autoLock:m&&(j||O)},l.createElement(ove,W)))};const nW=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:i,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:p,classNames:g,styles:v}=e,{drawer:m}=l.useContext(it),h=l.useCallback(x=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},x),[c]),[y,b]=J_(Bu(e),Bu(m),{closable:!0,closeIconRender:h}),S=l.useMemo(()=>{var x,E;return!a&&!y?null:l.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(x=m==null?void 0:m.styles)===null||x===void 0?void 0:x.header),u),v==null?void 0:v.header),className:ne(`${r}-header`,{[`${r}-header-close-only`]:y&&!a&&!i},(E=m==null?void 0:m.classNames)===null||E===void 0?void 0:E.header,g==null?void 0:g.header)},l.createElement("div",{className:`${r}-header-title`},b,a&&l.createElement("div",{className:`${r}-title`},a)),i&&l.createElement("div",{className:`${r}-extra`},i))},[y,b,i,u,r,a]),C=l.useMemo(()=>{var x,E;if(!o)return null;const I=`${r}-footer`;return l.createElement("div",{className:ne(I,(x=m==null?void 0:m.classNames)===null||x===void 0?void 0:x.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(E=m==null?void 0:m.styles)===null||E===void 0?void 0:E.footer),f),v==null?void 0:v.footer)},o)},[o,f,r]);return l.createElement(l.Fragment,null,S,l.createElement("div",{className:ne(`${r}-body`,g==null?void 0:g.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),d),v==null?void 0:v.body)},s?l.createElement(tl,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),C)},sve=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},rW=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),aW=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},rW({opacity:e},{opacity:1})),lve=(e,t)=>[aW(.7,t),rW({transform:sve(e)},{transform:"none"})],cve=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:aW(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:lve(a,n)}),{})}}},uve=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:p,lineWidth:g,lineType:v,colorSplit:m,marginXS:h,colorIcon:y,colorIconHover:b,colorBgTextHover:S,colorBgTextActive:C,colorText:x,fontWeightStrong:E,footerPaddingBlock:I,footerPaddingInline:R,calc:T}=e,_=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${G(u)} ${G(d)}`,fontSize:f,lineHeight:p,borderBottom:`${G(g)} ${v} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:T(f).add(c).equal(),height:T(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:h,color:y,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:C}},ui(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${G(I)} ${G(R)}`,borderTop:`${G(g)} ${v} ${m}`},"&-rtl":{direction:"rtl"}}}},dve=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),oW=nn("Drawer",e=>{const t=zt(e,{});return[uve(t),cve(t)]},dve);var iW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=fve,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:p,className:g,visible:v,afterVisibleChange:m,maskStyle:h,drawerStyle:y,contentWrapperStyle:b}=e,S=iW(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:x,direction:E,drawer:I}=l.useContext(it),R=x("drawer",d),[T,_,$]=oW(R),D=f===void 0&&C?()=>C(document.body):f,P=ne({"no-mask":!o,[`${R}-rtl`]:E==="rtl"},t,_,$),A=l.useMemo(()=>n??(a==="large"?736:378),[n,a]),O=l.useMemo(()=>r??(a==="large"?736:378),[r,a]),k={motionName:bo(R,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=U=>({motionName:bo(R,`panel-motion-${U}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),M=lH(),[L,F]=Ji("Drawer",S.zIndex),{classNames:j={},styles:B={}}=S,{classNames:z={},styles:H={}}=I||{};return T(l.createElement(di,{form:!0,space:!0},l.createElement(tg.Provider,{value:F},l.createElement(ive,Object.assign({prefixCls:R,onClose:u,maskMotion:k,motion:N},S,{classNames:{mask:ne(j.mask,z.mask),content:ne(j.content,z.content),wrapper:ne(j.wrapper,z.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),h),H.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),H.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),b),H.wrapper)},open:s??v,mask:o,push:i,width:A,height:O,style:Object.assign(Object.assign({},I==null?void 0:I.style),p),className:ne(I==null?void 0:I.className,g),rootClassName:P,getContainer:D,afterOpenChange:c??m,panelRef:M,zIndex:L}),l.createElement(nW,Object.assign({prefixCls:R},S,{onClose:u}))))))},pve=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=iW(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=l.useContext(it),s=i("drawer",t),[c,u,d]=oW(s),f=ne(s,`${s}-pure`,`${s}-${a}`,u,d,r);return c(l.createElement("div",{className:f,style:n},l.createElement(nW,Object.assign({prefixCls:s},o))))};sW._InternalPanelDoNotUseOrYouWillBeFired=pve;function UM(e){return["small","middle","large"].includes(e)}function VM(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const lW=le.createContext({latestIndex:0}),gve=lW.Provider,mve=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=l.useContext(lW);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=l.useContext(it),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:p,direction:g="horizontal",prefixCls:v,split:m,style:h,wrap:y=!1,classNames:b,styles:S}=e,C=hve(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,E]=Array.isArray(c)?c:[c,c],I=UM(E),R=UM(x),T=VM(E),_=VM(x),$=sr(p,{keepEmpty:!0}),D=u===void 0&&g==="horizontal"?"center":u,P=o("space",v),[A,O,k]=A9(P),N=ne(P,i==null?void 0:i.className,O,`${P}-${g}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${D}`]:D,[`${P}-gap-row-${E}`]:I,[`${P}-gap-col-${x}`]:R},d,f,k),M=ne(`${P}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let L=0;const F=$.map((z,H)=>{var U,X;z!=null&&(L=H);const W=(z==null?void 0:z.key)||`${M}-${H}`;return l.createElement(mve,{className:M,key:W,index:H,split:m,style:(U=S==null?void 0:S.item)!==null&&U!==void 0?U:(X=i==null?void 0:i.styles)===null||X===void 0?void 0:X.item},z)}),j=l.useMemo(()=>({latestIndex:L}),[L]);if($.length===0)return null;const B={};return y&&(B.flexWrap="wrap"),!R&&_&&(B.columnGap=x),!I&&T&&(B.rowGap=E),A(l.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),h)},C),l.createElement(gve,{value:j},F)))}),Mo=vve;Mo.Compact=$ae;var bve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(it),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:g,arrow:v,autoFocus:m,overlay:h,trigger:y,align:b,open:S,onOpenChange:C,placement:x,getPopupContainer:E,href:I,icon:R=l.createElement(v$,null),title:T,buttonsRender:_=Y=>Y,mouseEnterDelay:$,mouseLeaveDelay:D,overlayClassName:P,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:k}=e,N=bve(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),M=n("dropdown",a),L=`${M}-button`,F={menu:g,arrow:v,autoFocus:m,align:b,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:E||t,mouseEnterDelay:$,mouseLeaveDelay:D,overlayClassName:P,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:k},{compactSize:j,compactItemClassnames:B}=es(M,r),z=ne(L,B,p);"overlay"in e&&(F.overlay=h),"open"in e&&(F.open=S),"placement"in e?F.placement=x:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const H=l.createElement(Pt,{type:o,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:T},f),U=l.createElement(Pt,{type:o,danger:i,icon:R}),[X,W]=_([H,U]);return l.createElement(Mo.Compact,Object.assign({className:z,size:j,block:!0},N),X,l.createElement(gg,Object.assign({},F),W))};cW.__ANT_BUTTON=!0;const f0=gg;f0.Button=cW;var yve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},Sve=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:yve}))},wve=l.forwardRef(Sve);function Rv(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Cve=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},qV=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=s(r).mul(3).sub(a).div(2).equal(),v=s(a).sub(r).div(2).equal(),m=t?{borderWidth:`${G(v)} 0`,transform:`translateY(${G(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${G(v)}`,transform:`translateX(${G(e.calc(v).mul(-1).equal())})`};return{[c]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},Ehe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},qV(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Ihe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},qV(e,!1)),{height:"100%"})}},The=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new un(i).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Rhe=tn("Slider",e=>{const t=Bt(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[xhe(t),Ehe(t),Ihe(t)]},The),_he=l.createContext({});function SS(){const[e,t]=l.useState(!1),n=l.useRef(),r=()=>{jt.cancel(n.current)},a=o=>{r(),o?t(o):n.current=jt(()=>{t(o)})};return l.useEffect(()=>r,[]),[e,a]}var $he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const Nhe=le.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:g={},onChangeComplete:v}=e,m=$he(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:h}=e,{direction:y,slider:b,getPrefixCls:S,getPopupContainer:C}=le.useContext(ct),x=le.useContext(Gr),E=s??x,{handleRender:I,direction:R}=le.useContext(_he),_=(R||y)==="rtl",[$,D]=SS(),[P,A]=SS(),O=Object.assign({},g),{open:k,placement:N,getPopupContainer:M,prefixCls:L,formatter:F}=O,j=k??d,B=($||P)&&j!==!1,z=Ohe(F,u),[H,U]=SS(),X=se=>{v==null||v(se),U(!1)},W=(se,de)=>se||(de?_?"left":"right":"top"),Y=S("slider",n),[te,ee,Z]=Rhe(Y),oe=ne(a,b==null?void 0:b.className,o,{[`${Y}-rtl`]:_,[`${Y}-lock`]:H},ee,Z);_&&!m.vertical&&(m.reverse=!m.reverse),le.useEffect(()=>{const se=()=>{jt(()=>{A(!1)},1)};return document.addEventListener("mouseup",se),()=>{document.removeEventListener("mouseup",se)}},[]);const re=r&&!j,q=I||((se,de)=>{const{index:he}=de,ye=se.props;function pe(fe,be,Ee){var Re,Fe,Ce,ze;Ee&&((Fe=(Re=m)[fe])===null||Fe===void 0||Fe.call(Re,be)),(ze=(Ce=ye)[fe])===null||ze===void 0||ze.call(Ce,be)}const J=Object.assign(Object.assign({},ye),{onMouseEnter:fe=>{D(!0),pe("onMouseEnter",fe)},onMouseLeave:fe=>{D(!1),pe("onMouseLeave",fe)},onMouseDown:fe=>{A(!0),U(!0),pe("onMouseDown",fe)},onFocus:fe=>{var be;A(!0),(be=m.onFocus)===null||be===void 0||be.call(m,fe),pe("onFocus",fe,!0)},onBlur:fe=>{var be;A(!1),(be=m.onBlur)===null||be===void 0||be.call(m,fe),pe("onBlur",fe,!0)}}),ce=le.cloneElement(se,J),ue=(!!j||B)&&z!==null;return re?ce:le.createElement(FM,Object.assign({},O,{prefixCls:S("tooltip",L??c),title:z?z(de.value):"",open:ue,placement:W(N??p,h),key:he,overlayClassName:`${Y}-tooltip`,getPopupContainer:M||f||C}),ce)}),Q=re?(se,de)=>{const he=le.cloneElement(se,{style:Object.assign(Object.assign({},se.props.style),{visibility:"hidden"})});return le.createElement(FM,Object.assign({},O,{prefixCls:S("tooltip",L??c),title:z?z(de.value):"",open:z!==null&&B,placement:W(N??p,h),key:"tooltip",overlayClassName:`${Y}-tooltip`,getPopupContainer:M||f||C,draggingDelete:de.draggingDelete}),he)}:void 0,ae=Object.assign(Object.assign({},b==null?void 0:b.style),i);return te(le.createElement(Che,Object.assign({},m,{step:m.step,range:r,className:oe,style:ae,disabled:E,ref:t,prefixCls:Y,handleRender:q,activeHandleRender:Q,onChangeComplete:X})))});var khe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Ahe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:khe}))},KV=l.forwardRef(Ahe),Mhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Dhe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Mhe}))},YV=l.forwardRef(Dhe),Phe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Lhe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Phe}))},Fhe=l.forwardRef(Lhe);function jhe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Bhe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function F$(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function XV(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=i$(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[zhe,Hhe]=["week","WeekPicker"],[Uhe,Vhe]=["month","MonthPicker"],[Whe,Ghe]=["year","YearPicker"],[qhe,Khe]=["quarter","QuarterPicker"],[ZV,jM]=["time","TimePicker"],Yhe=e=>l.createElement(Dt,Object.assign({size:"small",type:"primary"},e));function QV(e){return l.useMemo(()=>Object.assign({button:Yhe},e),[e])}var Xhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:f,disabled:p,bordered:g=!0,placeholder:v,popupClassName:m,dropdownClassName:h,status:y,rootClassName:b,variant:S,picker:C}=n,x=Xhe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=l.useRef(null),{getPrefixCls:I,direction:R,getPopupContainer:T,rangePicker:_}=l.useContext(ct),$=I("picker",o),{compactSize:D,compactItemClassnames:P}=es($,R),A=I(),[O,k]=dc("rangePicker",S,g),N=Yn($),[M,L,F]=SV($,N),[j]=XV(n,$),B=QV(s),z=dr(q=>{var Q;return(Q=f??D)!==null&&Q!==void 0?Q:q}),H=l.useContext(Gr),U=p??H,X=l.useContext(Rr),{hasFeedback:W,status:Y,feedbackIcon:te}=X,ee=l.createElement(l.Fragment,null,C===ZV?l.createElement(YV,null):l.createElement(KV,null),W&&te);l.useImperativeHandle(r,()=>E.current);const[Z]=hi("Calendar",pv),oe=Object.assign(Object.assign({},Z),n.locale),[re]=Ji("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return M(l.createElement(fi,{space:!0},l.createElement(Afe,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${$}-separator`},l.createElement(Fhe,null)),disabled:U,ref:E,popupAlign:F$(R,d),placement:d,placeholder:Bhe(oe,C,v),suffixIcon:ee,prevIcon:l.createElement("span",{className:`${$}-prev-icon`}),nextIcon:l.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:C},x,{className:ne({[`${$}-${z}`]:z,[`${$}-${O}`]:k},Yi($,nl(Y,y),W),L,P,c,_==null?void 0:_.className,F,N,b),style:Object.assign(Object.assign({},_==null?void 0:_.style),u),locale:oe.lang,prefixCls:$,getPopupContainer:i||T,generateConfig:e,components:B,direction:R,classNames:{popup:ne(L,m||h,F,N,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:re})},allowClear:j}))))});var Qhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===jM?"timePicker":"datePicker";return l.forwardRef((p,g)=>{var v;const{prefixCls:m,getPopupContainer:h,components:y,style:b,className:S,rootClassName:C,size:x,bordered:E,placement:I,placeholder:R,popupClassName:T,dropdownClassName:_,disabled:$,status:D,variant:P,onCalendarChange:A}=p,O=Qhe(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:N,getPopupContainer:M,[d]:L}=l.useContext(ct),F=k("picker",m),{compactSize:j,compactItemClassnames:B}=es(F,N),z=l.useRef(null),[H,U]=dc("datePicker",P,E),X=Yn(F),[W,Y,te]=SV(F,X);l.useImperativeHandle(g,()=>z.current);const ee={showToday:!0},Z=c||p.picker,oe=k(),{onSelect:re,multiple:q}=O,Q=re&&c==="time"&&!q,ae=(ze,Pe,Ae)=>{A==null||A(ze,Pe,Ae),Q&&re(ze)},[se,de]=XV(p,F),he=QV(y),ye=dr(ze=>{var Pe;return(Pe=x??j)!==null&&Pe!==void 0?Pe:ze}),pe=l.useContext(Gr),J=$??pe,ce=l.useContext(Rr),{hasFeedback:ue,status:fe,feedbackIcon:be}=ce,Ee=l.createElement(l.Fragment,null,Z==="time"?l.createElement(YV,null):l.createElement(KV,null),ue&&be),[Re]=hi("DatePicker",pv),Fe=Object.assign(Object.assign({},Re),p.locale),[Ce]=Ji("DatePicker",(v=p.popupStyle)===null||v===void 0?void 0:v.zIndex);return W(l.createElement(fi,{space:!0},l.createElement(jfe,Object.assign({ref:z,placeholder:jhe(Fe,Z,R),suffixIcon:Ee,dropdownAlign:F$(N,I),placement:I,prevIcon:l.createElement("span",{className:`${F}-prev-icon`}),nextIcon:l.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${oe}-slide-up`,picker:c,onCalendarChange:ae},ee,O,{locale:Fe.lang,className:ne({[`${F}-${ye}`]:ye,[`${F}-${H}`]:U},Yi(F,nl(fe,D),ue),Y,B,L==null?void 0:L.className,S,te,X,C),style:Object.assign(Object.assign({},L==null?void 0:L.style),b),prefixCls:F,getPopupContainer:h||M,generateConfig:e,components:he,direction:N,disabled:J,classNames:{popup:ne(Y,te,X,C,T||_)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:Ce})},allowClear:se,removeIcon:de}))))})},n=t(),r=t(zhe,Hhe),a=t(Uhe,Vhe),o=t(Whe,Ghe),i=t(qhe,Khe),s=t(ZV,jM);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},JV=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=Jhe(e),s=Zhe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=s,c.TimePicker=o,c.QuarterPicker=i,c},fd=JV(Ude);function eW(e){const t=F$(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const eve=ug(fd,"picker",null,eW);fd._InternalPanelDoNotUseOrYouWillBeFired=eve;const tve=ug(fd.RangePicker,"picker",null,eW);fd._InternalRangePanelDoNotUseOrYouWillBeFired=tve;fd.generatePicker=JV;var BM=l.createContext(null),tW=l.createContext({}),nve=["prefixCls","className","containerRef"],rve=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=xt(t,nve),i=l.useContext(tW),s=i.panel,c=Qi(s,a);return l.createElement("div",ve({className:ne("".concat(n,"-content"),r),role:"dialog",ref:c},Pn(t,{aria:!0}),{"aria-modal":"true"},o))};function zM(e){return typeof e=="string"&&String(Number(e))===e?(pn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var HM={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ave(e,t){var n,r,a,o=e.prefixCls,i=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,g=e.classNames,v=e.rootClassName,m=e.rootStyle,h=e.zIndex,y=e.className,b=e.id,S=e.style,C=e.motion,x=e.width,E=e.height,I=e.children,R=e.mask,T=e.maskClosable,_=e.maskMotion,$=e.maskClassName,D=e.maskStyle,P=e.afterOpenChange,A=e.onClose,O=e.onMouseEnter,k=e.onMouseOver,N=e.onMouseLeave,M=e.onClick,L=e.onKeyDown,F=e.onKeyUp,j=e.styles,B=e.drawerRender,z=l.useRef(),H=l.useRef(),U=l.useRef();l.useImperativeHandle(t,function(){return z.current});var X=function(J){var ce=J.keyCode,ue=J.shiftKey;switch(ce){case De.TAB:{if(ce===De.TAB){if(!ue&&document.activeElement===U.current){var fe;(fe=H.current)===null||fe===void 0||fe.focus({preventScroll:!0})}else if(ue&&document.activeElement===H.current){var be;(be=U.current)===null||be===void 0||be.focus({preventScroll:!0})}}break}case De.ESC:{A&&p&&(J.stopPropagation(),A(J));break}}};l.useEffect(function(){if(i&&f){var pe;(pe=z.current)===null||pe===void 0||pe.focus({preventScroll:!0})}},[i]);var W=l.useState(!1),Y=ie(W,2),te=Y[0],ee=Y[1],Z=l.useContext(BM),oe;typeof u=="boolean"?oe=u?{}:{distance:0}:oe=u||{};var re=(n=(r=(a=oe)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:Z==null?void 0:Z.pushDistance)!==null&&n!==void 0?n:180,q=l.useMemo(function(){return{pushDistance:re,push:function(){ee(!0)},pull:function(){ee(!1)}}},[re]);l.useEffect(function(){if(i){var pe;Z==null||(pe=Z.push)===null||pe===void 0||pe.call(Z)}else{var J;Z==null||(J=Z.pull)===null||J===void 0||J.call(Z)}},[i]),l.useEffect(function(){return function(){var pe;Z==null||(pe=Z.pull)===null||pe===void 0||pe.call(Z)}},[]);var Q=R&&l.createElement(qr,ve({key:"mask"},_,{visible:i}),function(pe,J){var ce=pe.className,ue=pe.style;return l.createElement("div",{className:ne("".concat(o,"-mask"),ce,g==null?void 0:g.mask,$),style:K(K(K({},ue),D),j==null?void 0:j.mask),onClick:T&&i?A:void 0,ref:J})}),ae=typeof C=="function"?C(s):C,se={};if(te&&re)switch(s){case"top":se.transform="translateY(".concat(re,"px)");break;case"bottom":se.transform="translateY(".concat(-re,"px)");break;case"left":se.transform="translateX(".concat(re,"px)");break;default:se.transform="translateX(".concat(-re,"px)");break}s==="left"||s==="right"?se.width=zM(x):se.height=zM(E);var de={onMouseEnter:O,onMouseOver:k,onMouseLeave:N,onClick:M,onKeyDown:L,onKeyUp:F},he=l.createElement(qr,ve({key:"panel"},ae,{visible:i,forceRender:d,onVisibleChanged:function(J){P==null||P(J)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(pe,J){var ce=pe.className,ue=pe.style,fe=l.createElement(rve,ve({id:b,containerRef:J,prefixCls:o,className:ne(y,g==null?void 0:g.content),style:K(K({},S),j==null?void 0:j.content)},Pn(e,{aria:!0}),de),I);return l.createElement("div",ve({className:ne("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,ce),style:K(K(K({},se),ue),j==null?void 0:j.wrapper)},Pn(e,{data:!0})),B?B(fe):fe)}),ye=K({},m);return h&&(ye.zIndex=h),l.createElement(BM.Provider,{value:q},l.createElement("div",{className:ne(o,"".concat(o,"-").concat(s),v,V(V({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:ye,tabIndex:-1,ref:z,onKeyDown:X},Q,l.createElement("div",{tabIndex:0,ref:H,style:HM,"aria-hidden":"true","data-sentinel":"start"}),he,l.createElement("div",{tabIndex:0,ref:U,style:HM,"aria-hidden":"true","data-sentinel":"end"})))}var ove=l.forwardRef(ave),ive=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,s=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,p=t.width,g=p===void 0?378:p,v=t.mask,m=v===void 0?!0:v,h=t.maskClosable,y=h===void 0?!0:h,b=t.getContainer,S=t.forceRender,C=t.afterOpenChange,x=t.destroyOnClose,E=t.onMouseEnter,I=t.onMouseOver,R=t.onMouseLeave,T=t.onClick,_=t.onKeyDown,$=t.onKeyUp,D=t.panelRef,P=l.useState(!1),A=ie(P,2),O=A[0],k=A[1],N=l.useState(!1),M=ie(N,2),L=M[0],F=M[1];Wt(function(){F(!0)},[]);var j=L?r:!1,B=l.useRef(),z=l.useRef();Wt(function(){j&&(z.current=document.activeElement)},[j]);var H=function(te){var ee;if(k(te),C==null||C(te),!te&&z.current&&!((ee=B.current)!==null&&ee!==void 0&&ee.contains(z.current))){var Z;(Z=z.current)===null||Z===void 0||Z.focus({preventScroll:!0})}},U=l.useMemo(function(){return{panel:D}},[D]);if(!S&&!O&&!j&&x)return null;var X={onMouseEnter:E,onMouseOver:I,onMouseLeave:R,onClick:T,onKeyDown:_,onKeyUp:$},W=K(K({},t),{},{open:j,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:m,maskClosable:y,inline:b===!1,afterOpenChange:H,ref:B},X);return l.createElement(tW.Provider,{value:U},l.createElement(Ab,{open:j||S||O,autoDestroy:!1,getContainer:b,autoLock:m&&(j||O)},l.createElement(ove,W)))};const nW=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:i,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:p,classNames:g,styles:v}=e,{drawer:m}=l.useContext(ct),h=l.useCallback(x=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},x),[c]),[y,b]=J_(Bu(e),Bu(m),{closable:!0,closeIconRender:h}),S=l.useMemo(()=>{var x,E;return!a&&!y?null:l.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(x=m==null?void 0:m.styles)===null||x===void 0?void 0:x.header),u),v==null?void 0:v.header),className:ne(`${r}-header`,{[`${r}-header-close-only`]:y&&!a&&!i},(E=m==null?void 0:m.classNames)===null||E===void 0?void 0:E.header,g==null?void 0:g.header)},l.createElement("div",{className:`${r}-header-title`},b,a&&l.createElement("div",{className:`${r}-title`},a)),i&&l.createElement("div",{className:`${r}-extra`},i))},[y,b,i,u,r,a]),C=l.useMemo(()=>{var x,E;if(!o)return null;const I=`${r}-footer`;return l.createElement("div",{className:ne(I,(x=m==null?void 0:m.classNames)===null||x===void 0?void 0:x.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(E=m==null?void 0:m.styles)===null||E===void 0?void 0:E.footer),f),v==null?void 0:v.footer)},o)},[o,f,r]);return l.createElement(l.Fragment,null,S,l.createElement("div",{className:ne(`${r}-body`,g==null?void 0:g.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),d),v==null?void 0:v.body)},s?l.createElement(tl,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),C)},sve=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},rW=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),aW=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},rW({opacity:e},{opacity:1})),lve=(e,t)=>[aW(.7,t),rW({transform:sve(e)},{transform:"none"})],cve=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:aW(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:lve(a,n)}),{})}}},uve=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:p,lineWidth:g,lineType:v,colorSplit:m,marginXS:h,colorIcon:y,colorIconHover:b,colorBgTextHover:S,colorBgTextActive:C,colorText:x,fontWeightStrong:E,footerPaddingBlock:I,footerPaddingInline:R,calc:T}=e,_=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${G(u)} ${G(d)}`,fontSize:f,lineHeight:p,borderBottom:`${G(g)} ${v} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:T(f).add(c).equal(),height:T(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:h,color:y,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:C}},di(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${G(I)} ${G(R)}`,borderTop:`${G(g)} ${v} ${m}`},"&-rtl":{direction:"rtl"}}}},dve=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),oW=tn("Drawer",e=>{const t=Bt(e,{});return[uve(t),cve(t)]},dve);var iW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=fve,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:p,className:g,visible:v,afterVisibleChange:m,maskStyle:h,drawerStyle:y,contentWrapperStyle:b}=e,S=iW(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:x,direction:E,drawer:I}=l.useContext(ct),R=x("drawer",d),[T,_,$]=oW(R),D=f===void 0&&C?()=>C(document.body):f,P=ne({"no-mask":!o,[`${R}-rtl`]:E==="rtl"},t,_,$),A=l.useMemo(()=>n??(a==="large"?736:378),[n,a]),O=l.useMemo(()=>r??(a==="large"?736:378),[r,a]),k={motionName:bo(R,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=U=>({motionName:bo(R,`panel-motion-${U}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),M=lH(),[L,F]=Ji("Drawer",S.zIndex),{classNames:j={},styles:B={}}=S,{classNames:z={},styles:H={}}=I||{};return T(l.createElement(fi,{form:!0,space:!0},l.createElement(tg.Provider,{value:F},l.createElement(ive,Object.assign({prefixCls:R,onClose:u,maskMotion:k,motion:N},S,{classNames:{mask:ne(j.mask,z.mask),content:ne(j.content,z.content),wrapper:ne(j.wrapper,z.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),h),H.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),H.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),b),H.wrapper)},open:s??v,mask:o,push:i,width:A,height:O,style:Object.assign(Object.assign({},I==null?void 0:I.style),p),className:ne(I==null?void 0:I.className,g),rootClassName:P,getContainer:D,afterOpenChange:c??m,panelRef:M,zIndex:L}),l.createElement(nW,Object.assign({prefixCls:R},S,{onClose:u}))))))},pve=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=iW(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=l.useContext(ct),s=i("drawer",t),[c,u,d]=oW(s),f=ne(s,`${s}-pure`,`${s}-${a}`,u,d,r);return c(l.createElement("div",{className:f,style:n},l.createElement(nW,Object.assign({prefixCls:s},o))))};sW._InternalPanelDoNotUseOrYouWillBeFired=pve;function UM(e){return["small","middle","large"].includes(e)}function VM(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const lW=le.createContext({latestIndex:0}),gve=lW.Provider,mve=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=l.useContext(lW);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=l.useContext(ct),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:p,direction:g="horizontal",prefixCls:v,split:m,style:h,wrap:y=!1,classNames:b,styles:S}=e,C=hve(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,E]=Array.isArray(c)?c:[c,c],I=UM(E),R=UM(x),T=VM(E),_=VM(x),$=ir(p,{keepEmpty:!0}),D=u===void 0&&g==="horizontal"?"center":u,P=o("space",v),[A,O,k]=A9(P),N=ne(P,i==null?void 0:i.className,O,`${P}-${g}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${D}`]:D,[`${P}-gap-row-${E}`]:I,[`${P}-gap-col-${x}`]:R},d,f,k),M=ne(`${P}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let L=0;const F=$.map((z,H)=>{var U,X;z!=null&&(L=H);const W=(z==null?void 0:z.key)||`${M}-${H}`;return l.createElement(mve,{className:M,key:W,index:H,split:m,style:(U=S==null?void 0:S.item)!==null&&U!==void 0?U:(X=i==null?void 0:i.styles)===null||X===void 0?void 0:X.item},z)}),j=l.useMemo(()=>({latestIndex:L}),[L]);if($.length===0)return null;const B={};return y&&(B.flexWrap="wrap"),!R&&_&&(B.columnGap=x),!I&&T&&(B.rowGap=E),A(l.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),h)},C),l.createElement(gve,{value:j},F)))}),Mo=vve;Mo.Compact=$ae;var bve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(ct),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:g,arrow:v,autoFocus:m,overlay:h,trigger:y,align:b,open:S,onOpenChange:C,placement:x,getPopupContainer:E,href:I,icon:R=l.createElement(v$,null),title:T,buttonsRender:_=Y=>Y,mouseEnterDelay:$,mouseLeaveDelay:D,overlayClassName:P,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:k}=e,N=bve(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),M=n("dropdown",a),L=`${M}-button`,F={menu:g,arrow:v,autoFocus:m,align:b,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:E||t,mouseEnterDelay:$,mouseLeaveDelay:D,overlayClassName:P,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:k},{compactSize:j,compactItemClassnames:B}=es(M,r),z=ne(L,B,p);"overlay"in e&&(F.overlay=h),"open"in e&&(F.open=S),"placement"in e?F.placement=x:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const H=l.createElement(Dt,{type:o,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:T},f),U=l.createElement(Dt,{type:o,danger:i,icon:R}),[X,W]=_([H,U]);return l.createElement(Mo.Compact,Object.assign({className:z,size:j,block:!0},N),X,l.createElement(gg,Object.assign({},F),W))};cW.__ANT_BUTTON=!0;const f0=gg;f0.Button=cW;var yve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},Sve=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:yve}))},wve=l.forwardRef(Sve);function Rv(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Cve=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},xve=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),WM=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Eve=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Qt(e)),xve(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},WM(e,e.controlHeightSM)),"&-large":Object.assign({},WM(e,e.controlHeightLG))})}},Ive=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:a,antCls:o,labelRequiredMarkColor:i,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},xve=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),WM=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Eve=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Xt(e)),xve(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},WM(e,e.controlHeightSM)),"&-large":Object.assign({},WM(e,e.controlHeightLG))})}},Ive=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:a,antCls:o,labelRequiredMarkColor:i,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:e$,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},GM=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Tve=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Do=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),uW=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Do(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Rve=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, ${r}-col-xl-24${n}-label`]:Do(e)}},[`@media (max-width: ${G(e.screenXSMax)})`]:[uW(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Do(e)}}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Do(e)}}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Do(e)}}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Do(e)}}}}},_ve=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:Do(e),[`@media (max-width: ${G(e.screenXSMax)})`]:[uW(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Do(e)}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Do(e)}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Do(e)}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Do(e)}}}},$ve=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),dW=(e,t)=>zt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),j$=nn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=dW(e,n);return[Eve(r),Ive(r),Cve(r),GM(r,r.componentCls),GM(r,r.formItemCls),Tve(r),Rve(r),_ve(r),sg(r),e$]},$ve,{order:-1e3}),qM=[];function wS(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const fW=e=>{let{help:t,helpStatus:n,errors:r=qM,warnings:a=qM,className:o,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(Q_),u=`${c}-item-explain`,d=Yn(c),[f,p,g]=j$(c,d),v=l.useMemo(()=>ju(c),[c]),m=Rv(r),h=Rv(a),y=l.useMemo(()=>t!=null?[wS(t,"help",n)]:[].concat(Oe(m.map((S,C)=>wS(S,"error","error",C))),Oe(h.map((S,C)=>wS(S,"warning","warning",C)))),[t,n,m,h]),b={};return i&&(b.id=`${i}_help`),f(l.createElement(qr,{motionDeadline:v.motionDeadline,motionName:`${c}-show-help`,visible:!!y.length,onVisibleChanged:s},S=>{const{className:C,style:x}=S;return l.createElement("div",Object.assign({},b,{className:ne(u,C,g,d,o,p),style:x,role:"alert"}),l.createElement(H_,Object.assign({keys:y},ju(c),{motionName:`${c}-show-help-item`,component:!1}),E=>{const{key:I,error:R,errorStatus:T,className:_,style:$}=E;return l.createElement("div",{key:I,className:ne(_,{[`${u}-${T}`]:T}),style:$},R)}))}))},Ove=["parentNode"],Nve="form_item";function Af(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function pW(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Ove.includes(n)?`${Nve}_${n}`:n}function gW(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}function KM(e){return Af(e).join("_")}function kve(e,t){const n=t.getFieldInstance(e),r=nz(n);if(r)return r;const a=pW(Af(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function mW(e){const[t]=Z_(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=KM(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=kve(a,r);i&&Ore(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=KM(a);return n.current[o]}}),[e,t]);return[r]}var Ave=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(Gr),{getPrefixCls:r,direction:a,form:o}=l.useContext(it),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:p,labelAlign:g,labelWrap:v,labelCol:m,wrapperCol:h,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:S,requiredMark:C,onFinishFailed:x,name:E,style:I,feedbackIcons:R,variant:T}=e,_=Ave(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=dr(u),D=l.useContext(Bz),P=l.useMemo(()=>C!==void 0?C:y?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[y,C,o]),A=p??(o==null?void 0:o.colon),O=r("form",i),k=Yn(O),[N,M,L]=j$(O,k),F=ne(O,`${O}-${b}`,{[`${O}-hide-required-mark`]:P===!1,[`${O}-rtl`]:a==="rtl",[`${O}-${$}`]:$},L,k,M,o==null?void 0:o.className,s,c),[j]=mW(f),{__INTERNAL__:B}=j;B.name=E;const z=l.useMemo(()=>({name:E,labelAlign:g,labelCol:m,labelWrap:v,wrapperCol:h,vertical:b==="vertical",colon:A,requiredMark:P,itemRef:B.itemRef,form:j,feedbackIcons:R}),[E,g,m,h,b,A,P,j,R]),H=l.useRef(null);l.useImperativeHandle(t,()=>{var W;return Object.assign(Object.assign({},j),{nativeElement:(W=H.current)===null||W===void 0?void 0:W.nativeElement})});const U=(W,Y)=>{if(W){let te={block:"nearest"};typeof W=="object"&&(te=W),j.scrollToField(Y,te)}},X=W=>{if(x==null||x(W),W.errorFields.length){const Y=W.errorFields[0].name;if(S!==void 0){U(S,Y);return}o&&o.scrollToFirstError!==void 0&&U(o.scrollToFirstError,Y)}};return N(l.createElement(iH.Provider,{value:T},l.createElement(F_,{disabled:d},l.createElement(Xl.Provider,{value:$},l.createElement(oH,{validateMessages:D},l.createElement(Ki.Provider,{value:z},l.createElement(od,Object.assign({id:E},_,{name:E,onFinishFailed:X,form:j,ref:H,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:F}))))))))},Dve=l.forwardRef(Mve);function Pve(e){if(typeof e=="function")return e;const t=sr(e);return t.length<=1?t[0]:t}const hW=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(Rr);return{status:e,errors:t,warnings:n}};hW.Context=Rr;function Lve(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,Bt.cancel(r.current),r.current=null}),[]);function i(s){o.current||(r.current===null&&(a.current=[],r.current=Bt(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(s))}return[t,i]}function Fve(){const{itemRef:e}=l.useContext(Ki),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=Pr(e(r),o)),t.current.ref}return n}const jve=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Bve=nd(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=dW(e,n);return[jve(r)]}),zve=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,g=`${t}-item`,v=l.useContext(Ki),m=r||v.wrapperCol||{},h=ne(`${g}-control`,m.className),y=l.useMemo(()=>Object.assign({},v),[v]);delete y.labelCol,delete y.wrapperCol;const b=l.createElement("div",{className:`${g}-control-input`},l.createElement("div",{className:`${g}-control-input-content`},a)),S=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),C=f!==null||o.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(Q_.Provider,{value:S},l.createElement(fW,{fieldId:d,errors:o,warnings:i,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,x={};d&&(x.id=`${d}_extra`);const E=c?l.createElement("div",Object.assign({},x,{className:`${g}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:b,errorList:C,extra:E}):l.createElement(l.Fragment,null,b,C,E);return l.createElement(Ki.Provider,{value:y},l.createElement(Rn,Object.assign({},m,{className:h}),I),l.createElement(Bve,{prefixCls:t}))};var Hve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Uve=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Hve}))},vW=l.forwardRef(Uve),Vve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[p]=mi("Form"),{labelAlign:g,labelCol:v,labelWrap:m,colon:h}=l.useContext(Ki);if(!n)return null;const y=a||v||{},b=o||g,S=`${t}-item-label`,C=ne(S,b==="left"&&`${S}-left`,y.className,{[`${S}-wrap`]:!!m});let x=n;const E=i===!0||h!==!1&&i!==!1;E&&!d&&typeof n=="string"&&n.trim()&&(x=n.replace(/[:|:]\s*$/,""));const R=Wve(u);if(R){const{icon:D=l.createElement(vW,null)}=R,P=Vve(R,["icon"]),A=l.createElement(tn,Object.assign({},P),l.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:O=>{O.preventDefault()},tabIndex:null}));x=l.createElement(l.Fragment,null,x,A)}const T=c==="optional",_=typeof c=="function";_?x=c(x,{required:!!s}):T&&!s&&(x=l.createElement(l.Fragment,null,x,l.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=ci.Form)===null||f===void 0?void 0:f.optional))));const $=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:T||_,[`${t}-item-no-colon`]:!E});return l.createElement(Rn,Object.assign({},y,{className:C}),l.createElement("label",{htmlFor:r,className:$,title:typeof n=="string"?n:""},x))},qve={success:eg,warning:$b,error:uc,validating:Gi};function bW(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(Ki),f=gW(n,r,s,null,!!a,o),{isFormItemInput:p,status:g,hasFeedback:v,feedbackIcon:m}=l.useContext(Rr),h=l.useMemo(()=>{var y;let b;if(a){const C=a!==!0&&a.icons||d,x=f&&((y=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),E=f&&qve[f];b=x!==!1&&E?l.createElement("span",{className:ne(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},x||l.createElement(E,null)):null}const S={status:f||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:b,isFormItemInput:!0};return c&&(S.status=(f??g)||"",S.isFormItemInput=p,S.hasFeedback=!!(a??v),S.feedbackIcon=a!==void 0?S.feedbackIcon:m),S},[f,a,c,p,g]);return l.createElement(Rr.Provider,{value:h},t)}var Kve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if($&&I.current){const L=getComputedStyle(I.current);A(parseInt(L.marginBottom,10))}},[$,D]);const O=L=>{L||A(null)},N=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=L?R:u.errors,j=L?T:u.warnings;return gW(F,j,u,"",!!d,c)}(),M=ne(S,n,r,{[`${S}-with-help`]:_||R.length||T.length,[`${S}-has-feedback`]:N&&d,[`${S}-has-success`]:N==="success",[`${S}-has-warning`]:N==="warning",[`${S}-has-error`]:N==="error",[`${S}-is-validating`]:N==="validating",[`${S}-hidden`]:f,[`${S}-${y}`]:y});return l.createElement("div",{className:M,style:a,ref:I},l.createElement(Ba,Object.assign({className:`${S}-row`},yn(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(Gve,Object.assign({htmlFor:g},e,{requiredMark:C,required:v??m,prefixCls:t,vertical:E})),l.createElement(zve,Object.assign({},e,u,{errors:R,warnings:T,prefixCls:t,status:N,help:o,marginBottom:P,onErrorVisibleChanged:O}),l.createElement(aH.Provider,{value:h},l.createElement(bW,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},p)))),!!P&&l.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-P}}))}const Xve="__SPLIT__";function Zve(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const Qve=l.memo(e=>{let{children:t}=e;return t},(e,t)=>Zve(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function YM(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Jve(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:g,hidden:v,help:m,layout:h}=e,{getPrefixCls:y}=l.useContext(it),{name:b}=l.useContext(Ki),S=Pve(c),C=typeof S=="function",x=l.useContext(aH),{validateTrigger:E}=l.useContext(Ql),I=g!==void 0?g:E,R=t!=null,T=y("form",o),_=Yn(T),[$,D,P]=j$(T,_);Js();const A=l.useContext(Sp),O=l.useRef(),[k,N]=Lve({}),[M,L]=Zl(()=>YM()),F=W=>{const Y=A==null?void 0:A.getKey(W.name);if(L(W.destroy?YM():W,!0),n&&m!==!1&&x){let te=W.name;if(W.destroy)te=O.current||te;else if(Y!==void 0){const[ee,Z]=Y;te=[ee].concat(Oe(Z)),O.current=te}x(W,te)}},j=(W,Y)=>{N(te=>{const ee=Object.assign({},te),oe=[].concat(Oe(W.name.slice(0,-1)),Oe(Y)).join(Xve);return W.destroy?delete ee[oe]:ee[oe]=W,ee})},[B,z]=l.useMemo(()=>{const W=Oe(M.errors),Y=Oe(M.warnings);return Object.values(k).forEach(te=>{W.push.apply(W,Oe(te.errors||[])),Y.push.apply(Y,Oe(te.warnings||[]))}),[W,Y]},[k,M.errors,M.warnings]),H=Fve();function U(W,Y,te){return n&&!v?l.createElement(bW,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:M,errors:B,warnings:z,noStyle:!0},W):l.createElement(Yve,Object.assign({key:"row"},e,{className:ne(r,P,_,D),prefixCls:T,fieldId:Y,isRequired:te,errors:B,warnings:z,meta:M,onSubItemMetaChange:j,layout:h}),W)}if(!R&&!C&&!a)return $(U(S));let X={};return typeof d=="string"?X.label=d:t&&(X.label=String(t)),f&&(X=Object.assign(Object.assign({},X),f)),$(l.createElement(X_,Object.assign({},e,{messageVariables:X,trigger:p,validateTrigger:I,onMetaChange:F}),(W,Y,te)=>{const ee=Af(t).length&&Y?Y.name:[],Z=pW(ee,b),oe=u!==void 0?u:!!(s!=null&&s.some(Q=>{if(Q&&typeof Q=="object"&&Q.required&&!Q.warningOnly)return!0;if(typeof Q=="function"){const ae=Q(te);return(ae==null?void 0:ae.required)&&!(ae!=null&&ae.warningOnly)}return!1})),re=Object.assign({},W);let q=null;if(Array.isArray(S)&&R)q=S;else if(!(C&&(!(i||a)||R))){if(!(a&&!C&&!R))if(l.isValidElement(S)){const Q=Object.assign(Object.assign({},S.props),re);if(Q.id||(Q.id=Z),m||B.length>0||z.length>0||e.extra){const de=[];(m||B.length>0)&&de.push(`${Z}_help`),e.extra&&de.push(`${Z}_extra`),Q["aria-describedby"]=de.join(" ")}B.length>0&&(Q["aria-invalid"]="true"),oe&&(Q["aria-required"]="true"),Ho(S)&&(Q.ref=H(ee,S)),new Set([].concat(Oe(Af(p)),Oe(Af(I)))).forEach(de=>{Q[de]=function(){for(var he,ye,pe,J,ce,ue=arguments.length,fe=new Array(ue),be=0;be{var{prefixCls:t,children:n}=e,r=ebe(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(it),o=a("form",t),i=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(eH,Object.assign({},r),(s,c,u)=>l.createElement(Q_.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function nbe(){const{form:e}=l.useContext(Ki);return e}const Zt=Dve;Zt.Item=wg;Zt.List=tbe;Zt.ErrorList=fW;Zt.useForm=mW;Zt.useFormInstance=nbe;Zt.useWatch=rH;Zt.Provider=oH;Zt.create=()=>{};function XM(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function _m(e,t,n,r){var a=ip.unstable_batchedUpdates?function(i){ip.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}function rbe(e,t,n){return typeof n=="boolean"?n:e.length?!0:sr(t).some(a=>a.type===Jb)}const abe=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:a,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:a},[`${t}-sider-zero-width-trigger`]:{color:o,background:a,border:`1px solid ${n}`,borderInlineStart:0}}}},obe=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:a,footerBg:o,triggerBg:i,headerHeight:s,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:g,motionDurationMid:v,motionDurationSlow:m,fontSize:h,borderRadius:y,bodyBg:b,headerBg:S,siderBg:C}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:C,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:a,lineHeight:G(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:p,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},abe(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:c,color:u,lineHeight:G(s),background:S,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:h,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},ibe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},yW=nn("Layout",e=>[obe(e)],ibe,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var SW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((i,s)=>l.createElement(a,Object.assign({ref:s,suffixCls:t,tagName:n},i)))}const B$=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=SW(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(it),c=s("layout",n),[u,d,f]=yW(c),p=r?`${c}-${r}`:c;return u(l.createElement(o,Object.assign({className:ne(n||p,a,d,f),ref:t},i)))}),sbe=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(it),[r,a]=l.useState([]),{prefixCls:o,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,p=SW(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=yn(p,["suffixCls"]),{getPrefixCls:v,layout:m}=l.useContext(it),h=v("layout",o),y=rbe(r,c,u),[b,S,C]=yW(h),x=ne(h,{[`${h}-has-sider`]:y,[`${h}-rtl`]:n==="rtl"},m==null?void 0:m.className,i,s,S,C),E=l.useMemo(()=>({siderHook:{addSider:I=>{a(R=>[].concat(Oe(R),[I]))},removeSider:I=>{a(R=>R.filter(T=>T!==I))}}}),[]);return b(l.createElement(yU.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},m==null?void 0:m.style),f)},g),c)))}),lbe=p0({tagName:"div",displayName:"Layout"})(sbe),wW=p0({suffixCls:"header",tagName:"header",displayName:"Header"})(B$),CW=p0({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(B$),xW=p0({suffixCls:"content",tagName:"main",displayName:"Content"})(B$),gi=lbe;gi.Header=wW;gi.Footer=CW;gi.Content=xW;gi.Sider=Jb;gi._InternalSiderContext=Qb;const EW=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var cbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ube=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:cbe}))},ZM=l.forwardRef(ube),dbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},fbe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:dbe}))},QM=l.forwardRef(fbe),pbe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},gbe=["10","20","50","100"],mbe=function(t){var n=t.pageSizeOptions,r=n===void 0?gbe:n,a=t.locale,o=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,p=t.disabled,g=t.buildOptionText,v=le.useState(""),m=ie(v,2),h=m[0],y=m[1],b=function(){return!h||Number.isNaN(h)?void 0:Number(h)},S=typeof g=="function"?g:function(A){return"".concat(A," ").concat(a.items_per_page)},C=function(O){o==null||o(Number(O))},x=function(O){y(O.target.value)},E=function(O){s||h===""||(y(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(b())))},I=function(O){h!==""&&(O.keyCode===Me.ENTER||O.type==="click")&&(y(""),c==null||c(b()))},R=function(){return r.some(function(O){return O.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(O,k){var N=Number.isNaN(Number(O))?0:Number(O),M=Number.isNaN(Number(k))?0:Number(k);return N-M})},T="".concat(u,"-options");if(!o&&!c)return null;var _=null,$=null,D=null;if(o&&d){var P=R().map(function(A,O){return le.createElement(d.Option,{key:O,value:A.toString()},S(A))});_=le.createElement(d,{disabled:p,prefixCls:f,showSearch:!1,className:"".concat(T,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:C,getPopupContainer:function(O){return O.parentNode},"aria-label":a.page_size,defaultOpen:!1},P)}return c&&(s&&(D=typeof s=="boolean"?le.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:p,className:"".concat(T,"-quick-jumper-button")},a.jump_to_confirm):le.createElement("span",{onClick:I,onKeyUp:I},s)),$=le.createElement("div",{className:"".concat(T,"-quick-jumper")},a.jump_to,le.createElement("input",{disabled:p,type:"text",value:h,onChange:x,onKeyUp:I,onBlur:E,"aria-label":a.page}),a.page,D)),le.createElement("li",{className:T},_,$)},Wd=function(t){var n,r=t.rootPrefixCls,a=t.page,o=t.active,i=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),p=ne(f,"".concat(f,"-").concat(a),(n={},V(n,"".concat(f,"-active"),o),V(n,"".concat(f,"-disabled"),!a),n),i),g=function(){c(a)},v=function(y){u(y,c,a)},m=d(a,"page",le.createElement("a",{rel:"nofollow"},a));return m?le.createElement("li",{title:s?String(a):null,className:p,onClick:g,onKeyDown:v,tabIndex:0},m):null},hbe=function(t,n,r){return r};function JM(){}function eD(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function fl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var vbe=function(t){var n,r=t.prefixCls,a=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,s=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,p=t.total,g=p===void 0?0:p,v=t.pageSize,m=t.defaultPageSize,h=m===void 0?10:m,y=t.onChange,b=y===void 0?JM:y,S=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,E=x===void 0?!0:x,I=t.showQuickJumper,R=t.showLessItems,T=t.showTitle,_=T===void 0?!0:T,$=t.onShowSizeChange,D=$===void 0?JM:$,P=t.locale,A=P===void 0?pbe:P,O=t.style,k=t.totalBoundaryShowSizeChanger,N=k===void 0?50:k,M=t.disabled,L=t.simple,F=t.showTotal,j=t.showSizeChanger,B=t.pageSizeOptions,z=t.itemRender,H=z===void 0?hbe:z,U=t.jumpPrevIcon,X=t.jumpNextIcon,W=t.prevIcon,Y=t.nextIcon,te=le.useRef(null),ee=on(10,{value:v,defaultValue:h}),Z=ie(ee,2),oe=Z[0],re=Z[1],q=on(1,{value:u,defaultValue:f,postState:function(wt){return Math.max(1,Math.min(wt,fl(void 0,oe,g)))}}),Q=ie(q,2),ae=Q[0],se=Q[1],de=le.useState(ae),he=ie(de,2),ye=he[0],pe=he[1];l.useEffect(function(){pe(ae)},[ae]);var J=Math.max(1,ae-(R?3:5)),ce=Math.min(fl(void 0,oe,g),ae+(R?3:5));function ue(St,wt){var Nt=St||le.createElement("button",{type:"button","aria-label":wt,className:"".concat(a,"-item-link")});return typeof St=="function"&&(Nt=le.createElement(St,K({},t))),Nt}function fe(St){var wt=St.target.value,Nt=fl(void 0,oe,g),hn;return wt===""?hn=wt:Number.isNaN(Number(wt))?hn=ye:wt>=Nt?hn=Nt:hn=Number(wt),hn}function be(St){return eD(St)&&St!==ae&&eD(g)&&g>0}var Te=g>oe?I:!1;function _e(St){(St.keyCode===Me.UP||St.keyCode===Me.DOWN)&&St.preventDefault()}function Pe(St){var wt=fe(St);switch(wt!==ye&&pe(wt),St.keyCode){case Me.ENTER:De(wt);break;case Me.UP:De(wt-1);break;case Me.DOWN:De(wt+1);break}}function Ee(St){De(fe(St))}function Fe(St){var wt=fl(St,oe,g),Nt=ae>wt&&wt!==0?wt:ae;re(St),pe(Nt),D==null||D(ae,St),se(Nt),b==null||b(Nt,St)}function De(St){if(be(St)&&!M){var wt=fl(void 0,oe,g),Nt=St;return St>wt?Nt=wt:St<1&&(Nt=1),Nt!==ye&&pe(Nt),se(Nt),b==null||b(Nt,oe),Nt}return ae}var Ae=ae>1,we=aeN;function Ce(){Ae&&De(ae-1)}function Re(){we&&De(ae+1)}function me(){De(J)}function Ie(){De(ce)}function je(St,wt){if(St.key==="Enter"||St.charCode===Me.ENTER||St.keyCode===Me.ENTER){for(var Nt=arguments.length,hn=new Array(Nt>2?Nt-2:0),Fn=2;Fng?g:ae*oe])),He=null,Ye=fl(void 0,oe,g);if(S&&g<=oe)return null;var Ge=[],rt={rootPrefixCls:a,onClick:De,onKeyPress:je,showTitle:_,itemRender:H,page:-1},Tt=ae-1>0?ae-1:0,Rt=ae+1=lt*2&&ae!==3&&(Ge[0]=le.cloneElement(Ge[0],{className:ne("".concat(a,"-item-after-jump-prev"),Ge[0].props.className)}),Ge.unshift(Ke)),Ye-ae>=lt*2&&ae!==Ye-2){var pt=Ge[Ge.length-1];Ge[Ge.length-1]=le.cloneElement(pt,{className:ne("".concat(a,"-item-before-jump-next"),pt.props.className)}),Ge.push(He)}ot!==1&&Ge.unshift(le.createElement(Wd,ve({},rt,{key:1,page:1}))),Xe!==Ye&&Ge.push(le.createElement(Wd,ve({},rt,{key:Ye,page:Ye})))}var Et=Le(Tt);if(Et){var _t=!Ae||!Ye;Et=le.createElement("li",{title:_?A.prev_page:null,onClick:Ce,tabIndex:_t?null:0,onKeyDown:ke,className:ne("".concat(a,"-prev"),V({},"".concat(a,"-disabled"),_t)),"aria-disabled":_t},Et)}var Xt=We(Rt);if(Xt){var Jt,Yt;L?(Jt=!we,Yt=Ae?0:null):(Jt=!we||!Ye,Yt=Jt?null:0),Xt=le.createElement("li",{title:_?A.next_page:null,onClick:Re,tabIndex:Yt,onKeyDown:Ne,className:ne("".concat(a,"-next"),V({},"".concat(a,"-disabled"),Jt)),"aria-disabled":Jt},Xt)}var rn=ne(a,s,(n={},V(n,"".concat(a,"-start"),C==="start"),V(n,"".concat(a,"-center"),C==="center"),V(n,"".concat(a,"-end"),C==="end"),V(n,"".concat(a,"-simple"),L),V(n,"".concat(a,"-disabled"),M),n));return le.createElement("ul",ve({className:rn,style:O,ref:te},ut),dt,Et,L?Ze:Ge,Xt,le.createElement(mbe,{locale:A,rootPrefixCls:a,disabled:M,selectComponentClass:c,selectPrefixCls:i,changeSize:$e?Fe:null,pageSize:oe,pageSizeOptions:B,quickGo:Te?De:null,goButton:st}))};const IW=e=>l.createElement(br,Object.assign({},e,{showSearch:!0,size:"small"})),TW=e=>l.createElement(br,Object.assign({},e,{showSearch:!0,size:"middle"}));IW.Option=br.Option;TW.Option=br.Option;const bbe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ybe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + ${n}-col-xl-24${t}-label`]:Do(e),[`@media (max-width: ${G(e.screenXSMax)})`]:[uW(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Do(e)}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Do(e)}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Do(e)}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Do(e)}}}},$ve=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),dW=(e,t)=>Bt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),j$=tn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=dW(e,n);return[Eve(r),Ive(r),Cve(r),GM(r,r.componentCls),GM(r,r.formItemCls),Tve(r),Rve(r),_ve(r),sg(r),e$]},$ve,{order:-1e3}),qM=[];function wS(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const fW=e=>{let{help:t,helpStatus:n,errors:r=qM,warnings:a=qM,className:o,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(Q_),u=`${c}-item-explain`,d=Yn(c),[f,p,g]=j$(c,d),v=l.useMemo(()=>ju(c),[c]),m=Rv(r),h=Rv(a),y=l.useMemo(()=>t!=null?[wS(t,"help",n)]:[].concat(Oe(m.map((S,C)=>wS(S,"error","error",C))),Oe(h.map((S,C)=>wS(S,"warning","warning",C)))),[t,n,m,h]),b={};return i&&(b.id=`${i}_help`),f(l.createElement(qr,{motionDeadline:v.motionDeadline,motionName:`${c}-show-help`,visible:!!y.length,onVisibleChanged:s},S=>{const{className:C,style:x}=S;return l.createElement("div",Object.assign({},b,{className:ne(u,C,g,d,o,p),style:x,role:"alert"}),l.createElement(H_,Object.assign({keys:y},ju(c),{motionName:`${c}-show-help-item`,component:!1}),E=>{const{key:I,error:R,errorStatus:T,className:_,style:$}=E;return l.createElement("div",{key:I,className:ne(_,{[`${u}-${T}`]:T}),style:$},R)}))}))},Ove=["parentNode"],Nve="form_item";function Af(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function pW(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Ove.includes(n)?`${Nve}_${n}`:n}function gW(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}function KM(e){return Af(e).join("_")}function kve(e,t){const n=t.getFieldInstance(e),r=nz(n);if(r)return r;const a=pW(Af(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function mW(e){const[t]=Z_(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=KM(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=kve(a,r);i&&Ore(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=KM(a);return n.current[o]}}),[e,t]);return[r]}var Ave=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(Gr),{getPrefixCls:r,direction:a,form:o}=l.useContext(ct),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:p,labelAlign:g,labelWrap:v,labelCol:m,wrapperCol:h,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:S,requiredMark:C,onFinishFailed:x,name:E,style:I,feedbackIcons:R,variant:T}=e,_=Ave(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=dr(u),D=l.useContext(Bz),P=l.useMemo(()=>C!==void 0?C:y?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[y,C,o]),A=p??(o==null?void 0:o.colon),O=r("form",i),k=Yn(O),[N,M,L]=j$(O,k),F=ne(O,`${O}-${b}`,{[`${O}-hide-required-mark`]:P===!1,[`${O}-rtl`]:a==="rtl",[`${O}-${$}`]:$},L,k,M,o==null?void 0:o.className,s,c),[j]=mW(f),{__INTERNAL__:B}=j;B.name=E;const z=l.useMemo(()=>({name:E,labelAlign:g,labelCol:m,labelWrap:v,wrapperCol:h,vertical:b==="vertical",colon:A,requiredMark:P,itemRef:B.itemRef,form:j,feedbackIcons:R}),[E,g,m,h,b,A,P,j,R]),H=l.useRef(null);l.useImperativeHandle(t,()=>{var W;return Object.assign(Object.assign({},j),{nativeElement:(W=H.current)===null||W===void 0?void 0:W.nativeElement})});const U=(W,Y)=>{if(W){let te={block:"nearest"};typeof W=="object"&&(te=W),j.scrollToField(Y,te)}},X=W=>{if(x==null||x(W),W.errorFields.length){const Y=W.errorFields[0].name;if(S!==void 0){U(S,Y);return}o&&o.scrollToFirstError!==void 0&&U(o.scrollToFirstError,Y)}};return N(l.createElement(iH.Provider,{value:T},l.createElement(F_,{disabled:d},l.createElement(Xl.Provider,{value:$},l.createElement(oH,{validateMessages:D},l.createElement(Ki.Provider,{value:z},l.createElement(od,Object.assign({id:E},_,{name:E,onFinishFailed:X,form:j,ref:H,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:F}))))))))},Dve=l.forwardRef(Mve);function Pve(e){if(typeof e=="function")return e;const t=ir(e);return t.length<=1?t[0]:t}const hW=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(Rr);return{status:e,errors:t,warnings:n}};hW.Context=Rr;function Lve(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,jt.cancel(r.current),r.current=null}),[]);function i(s){o.current||(r.current===null&&(a.current=[],r.current=jt(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(s))}return[t,i]}function Fve(){const{itemRef:e}=l.useContext(Ki),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=Pr(e(r),o)),t.current.ref}return n}const jve=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Bve=nd(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=dW(e,n);return[jve(r)]}),zve=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,g=`${t}-item`,v=l.useContext(Ki),m=r||v.wrapperCol||{},h=ne(`${g}-control`,m.className),y=l.useMemo(()=>Object.assign({},v),[v]);delete y.labelCol,delete y.wrapperCol;const b=l.createElement("div",{className:`${g}-control-input`},l.createElement("div",{className:`${g}-control-input-content`},a)),S=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),C=f!==null||o.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(Q_.Provider,{value:S},l.createElement(fW,{fieldId:d,errors:o,warnings:i,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,x={};d&&(x.id=`${d}_extra`);const E=c?l.createElement("div",Object.assign({},x,{className:`${g}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:b,errorList:C,extra:E}):l.createElement(l.Fragment,null,b,C,E);return l.createElement(Ki.Provider,{value:y},l.createElement($n,Object.assign({},m,{className:h}),I),l.createElement(Bve,{prefixCls:t}))};var Hve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Uve=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Hve}))},vW=l.forwardRef(Uve),Vve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[p]=hi("Form"),{labelAlign:g,labelCol:v,labelWrap:m,colon:h}=l.useContext(Ki);if(!n)return null;const y=a||v||{},b=o||g,S=`${t}-item-label`,C=ne(S,b==="left"&&`${S}-left`,y.className,{[`${S}-wrap`]:!!m});let x=n;const E=i===!0||h!==!1&&i!==!1;E&&!d&&typeof n=="string"&&n.trim()&&(x=n.replace(/[:|:]\s*$/,""));const R=Wve(u);if(R){const{icon:D=l.createElement(vW,null)}=R,P=Vve(R,["icon"]),A=l.createElement(en,Object.assign({},P),l.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:O=>{O.preventDefault()},tabIndex:null}));x=l.createElement(l.Fragment,null,x,A)}const T=c==="optional",_=typeof c=="function";_?x=c(x,{required:!!s}):T&&!s&&(x=l.createElement(l.Fragment,null,x,l.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=ui.Form)===null||f===void 0?void 0:f.optional))));const $=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:T||_,[`${t}-item-no-colon`]:!E});return l.createElement($n,Object.assign({},y,{className:C}),l.createElement("label",{htmlFor:r,className:$,title:typeof n=="string"?n:""},x))},qve={success:eg,warning:$b,error:uc,validating:Gi};function bW(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(Ki),f=gW(n,r,s,null,!!a,o),{isFormItemInput:p,status:g,hasFeedback:v,feedbackIcon:m}=l.useContext(Rr),h=l.useMemo(()=>{var y;let b;if(a){const C=a!==!0&&a.icons||d,x=f&&((y=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),E=f&&qve[f];b=x!==!1&&E?l.createElement("span",{className:ne(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},x||l.createElement(E,null)):null}const S={status:f||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:b,isFormItemInput:!0};return c&&(S.status=(f??g)||"",S.isFormItemInput=p,S.hasFeedback=!!(a??v),S.feedbackIcon=a!==void 0?S.feedbackIcon:m),S},[f,a,c,p,g]);return l.createElement(Rr.Provider,{value:h},t)}var Kve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if($&&I.current){const L=getComputedStyle(I.current);A(parseInt(L.marginBottom,10))}},[$,D]);const O=L=>{L||A(null)},N=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=L?R:u.errors,j=L?T:u.warnings;return gW(F,j,u,"",!!d,c)}(),M=ne(S,n,r,{[`${S}-with-help`]:_||R.length||T.length,[`${S}-has-feedback`]:N&&d,[`${S}-has-success`]:N==="success",[`${S}-has-warning`]:N==="warning",[`${S}-has-error`]:N==="error",[`${S}-is-validating`]:N==="validating",[`${S}-hidden`]:f,[`${S}-${y}`]:y});return l.createElement("div",{className:M,style:a,ref:I},l.createElement(Ba,Object.assign({className:`${S}-row`},Sn(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(Gve,Object.assign({htmlFor:g},e,{requiredMark:C,required:v??m,prefixCls:t,vertical:E})),l.createElement(zve,Object.assign({},e,u,{errors:R,warnings:T,prefixCls:t,status:N,help:o,marginBottom:P,onErrorVisibleChanged:O}),l.createElement(aH.Provider,{value:h},l.createElement(bW,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},p)))),!!P&&l.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-P}}))}const Xve="__SPLIT__";function Zve(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const Qve=l.memo(e=>{let{children:t}=e;return t},(e,t)=>Zve(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function YM(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Jve(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:g,hidden:v,help:m,layout:h}=e,{getPrefixCls:y}=l.useContext(ct),{name:b}=l.useContext(Ki),S=Pve(c),C=typeof S=="function",x=l.useContext(aH),{validateTrigger:E}=l.useContext(Ql),I=g!==void 0?g:E,R=t!=null,T=y("form",o),_=Yn(T),[$,D,P]=j$(T,_);Js();const A=l.useContext(Sp),O=l.useRef(),[k,N]=Lve({}),[M,L]=Zl(()=>YM()),F=W=>{const Y=A==null?void 0:A.getKey(W.name);if(L(W.destroy?YM():W,!0),n&&m!==!1&&x){let te=W.name;if(W.destroy)te=O.current||te;else if(Y!==void 0){const[ee,Z]=Y;te=[ee].concat(Oe(Z)),O.current=te}x(W,te)}},j=(W,Y)=>{N(te=>{const ee=Object.assign({},te),oe=[].concat(Oe(W.name.slice(0,-1)),Oe(Y)).join(Xve);return W.destroy?delete ee[oe]:ee[oe]=W,ee})},[B,z]=l.useMemo(()=>{const W=Oe(M.errors),Y=Oe(M.warnings);return Object.values(k).forEach(te=>{W.push.apply(W,Oe(te.errors||[])),Y.push.apply(Y,Oe(te.warnings||[]))}),[W,Y]},[k,M.errors,M.warnings]),H=Fve();function U(W,Y,te){return n&&!v?l.createElement(bW,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:M,errors:B,warnings:z,noStyle:!0},W):l.createElement(Yve,Object.assign({key:"row"},e,{className:ne(r,P,_,D),prefixCls:T,fieldId:Y,isRequired:te,errors:B,warnings:z,meta:M,onSubItemMetaChange:j,layout:h}),W)}if(!R&&!C&&!a)return $(U(S));let X={};return typeof d=="string"?X.label=d:t&&(X.label=String(t)),f&&(X=Object.assign(Object.assign({},X),f)),$(l.createElement(X_,Object.assign({},e,{messageVariables:X,trigger:p,validateTrigger:I,onMetaChange:F}),(W,Y,te)=>{const ee=Af(t).length&&Y?Y.name:[],Z=pW(ee,b),oe=u!==void 0?u:!!(s!=null&&s.some(Q=>{if(Q&&typeof Q=="object"&&Q.required&&!Q.warningOnly)return!0;if(typeof Q=="function"){const ae=Q(te);return(ae==null?void 0:ae.required)&&!(ae!=null&&ae.warningOnly)}return!1})),re=Object.assign({},W);let q=null;if(Array.isArray(S)&&R)q=S;else if(!(C&&(!(i||a)||R))){if(!(a&&!C&&!R))if(l.isValidElement(S)){const Q=Object.assign(Object.assign({},S.props),re);if(Q.id||(Q.id=Z),m||B.length>0||z.length>0||e.extra){const de=[];(m||B.length>0)&&de.push(`${Z}_help`),e.extra&&de.push(`${Z}_extra`),Q["aria-describedby"]=de.join(" ")}B.length>0&&(Q["aria-invalid"]="true"),oe&&(Q["aria-required"]="true"),Ho(S)&&(Q.ref=H(ee,S)),new Set([].concat(Oe(Af(p)),Oe(Af(I)))).forEach(de=>{Q[de]=function(){for(var he,ye,pe,J,ce,ue=arguments.length,fe=new Array(ue),be=0;be{var{prefixCls:t,children:n}=e,r=ebe(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(ct),o=a("form",t),i=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(eH,Object.assign({},r),(s,c,u)=>l.createElement(Q_.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function nbe(){const{form:e}=l.useContext(Ki);return e}const Yt=Dve;Yt.Item=wg;Yt.List=tbe;Yt.ErrorList=fW;Yt.useForm=mW;Yt.useFormInstance=nbe;Yt.useWatch=rH;Yt.Provider=oH;Yt.create=()=>{};function XM(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function _m(e,t,n,r){var a=ip.unstable_batchedUpdates?function(i){ip.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}function rbe(e,t,n){return typeof n=="boolean"?n:e.length?!0:ir(t).some(a=>a.type===Jb)}const abe=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:a,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:a},[`${t}-sider-zero-width-trigger`]:{color:o,background:a,border:`1px solid ${n}`,borderInlineStart:0}}}},obe=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:a,footerBg:o,triggerBg:i,headerHeight:s,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:g,motionDurationMid:v,motionDurationSlow:m,fontSize:h,borderRadius:y,bodyBg:b,headerBg:S,siderBg:C}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:C,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:a,lineHeight:G(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:p,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},abe(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:c,color:u,lineHeight:G(s),background:S,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:h,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},ibe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},yW=tn("Layout",e=>[obe(e)],ibe,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var SW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((i,s)=>l.createElement(a,Object.assign({ref:s,suffixCls:t,tagName:n},i)))}const B$=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=SW(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(ct),c=s("layout",n),[u,d,f]=yW(c),p=r?`${c}-${r}`:c;return u(l.createElement(o,Object.assign({className:ne(n||p,a,d,f),ref:t},i)))}),sbe=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(ct),[r,a]=l.useState([]),{prefixCls:o,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,p=SW(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=Sn(p,["suffixCls"]),{getPrefixCls:v,layout:m}=l.useContext(ct),h=v("layout",o),y=rbe(r,c,u),[b,S,C]=yW(h),x=ne(h,{[`${h}-has-sider`]:y,[`${h}-rtl`]:n==="rtl"},m==null?void 0:m.className,i,s,S,C),E=l.useMemo(()=>({siderHook:{addSider:I=>{a(R=>[].concat(Oe(R),[I]))},removeSider:I=>{a(R=>R.filter(T=>T!==I))}}}),[]);return b(l.createElement(yU.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},m==null?void 0:m.style),f)},g),c)))}),lbe=p0({tagName:"div",displayName:"Layout"})(sbe),wW=p0({suffixCls:"header",tagName:"header",displayName:"Header"})(B$),CW=p0({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(B$),xW=p0({suffixCls:"content",tagName:"main",displayName:"Content"})(B$),mi=lbe;mi.Header=wW;mi.Footer=CW;mi.Content=xW;mi.Sider=Jb;mi._InternalSiderContext=Qb;const EW=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var cbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ube=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:cbe}))},ZM=l.forwardRef(ube),dbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},fbe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:dbe}))},QM=l.forwardRef(fbe),pbe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},gbe=["10","20","50","100"],mbe=function(t){var n=t.pageSizeOptions,r=n===void 0?gbe:n,a=t.locale,o=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,p=t.disabled,g=t.buildOptionText,v=le.useState(""),m=ie(v,2),h=m[0],y=m[1],b=function(){return!h||Number.isNaN(h)?void 0:Number(h)},S=typeof g=="function"?g:function(A){return"".concat(A," ").concat(a.items_per_page)},C=function(O){o==null||o(Number(O))},x=function(O){y(O.target.value)},E=function(O){s||h===""||(y(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(b())))},I=function(O){h!==""&&(O.keyCode===De.ENTER||O.type==="click")&&(y(""),c==null||c(b()))},R=function(){return r.some(function(O){return O.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(O,k){var N=Number.isNaN(Number(O))?0:Number(O),M=Number.isNaN(Number(k))?0:Number(k);return N-M})},T="".concat(u,"-options");if(!o&&!c)return null;var _=null,$=null,D=null;if(o&&d){var P=R().map(function(A,O){return le.createElement(d.Option,{key:O,value:A.toString()},S(A))});_=le.createElement(d,{disabled:p,prefixCls:f,showSearch:!1,className:"".concat(T,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:C,getPopupContainer:function(O){return O.parentNode},"aria-label":a.page_size,defaultOpen:!1},P)}return c&&(s&&(D=typeof s=="boolean"?le.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:p,className:"".concat(T,"-quick-jumper-button")},a.jump_to_confirm):le.createElement("span",{onClick:I,onKeyUp:I},s)),$=le.createElement("div",{className:"".concat(T,"-quick-jumper")},a.jump_to,le.createElement("input",{disabled:p,type:"text",value:h,onChange:x,onKeyUp:I,onBlur:E,"aria-label":a.page}),a.page,D)),le.createElement("li",{className:T},_,$)},Wd=function(t){var n,r=t.rootPrefixCls,a=t.page,o=t.active,i=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),p=ne(f,"".concat(f,"-").concat(a),(n={},V(n,"".concat(f,"-active"),o),V(n,"".concat(f,"-disabled"),!a),n),i),g=function(){c(a)},v=function(y){u(y,c,a)},m=d(a,"page",le.createElement("a",{rel:"nofollow"},a));return m?le.createElement("li",{title:s?String(a):null,className:p,onClick:g,onKeyDown:v,tabIndex:0},m):null},hbe=function(t,n,r){return r};function JM(){}function eD(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function fl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var vbe=function(t){var n,r=t.prefixCls,a=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,s=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,p=t.total,g=p===void 0?0:p,v=t.pageSize,m=t.defaultPageSize,h=m===void 0?10:m,y=t.onChange,b=y===void 0?JM:y,S=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,E=x===void 0?!0:x,I=t.showQuickJumper,R=t.showLessItems,T=t.showTitle,_=T===void 0?!0:T,$=t.onShowSizeChange,D=$===void 0?JM:$,P=t.locale,A=P===void 0?pbe:P,O=t.style,k=t.totalBoundaryShowSizeChanger,N=k===void 0?50:k,M=t.disabled,L=t.simple,F=t.showTotal,j=t.showSizeChanger,B=t.pageSizeOptions,z=t.itemRender,H=z===void 0?hbe:z,U=t.jumpPrevIcon,X=t.jumpNextIcon,W=t.prevIcon,Y=t.nextIcon,te=le.useRef(null),ee=on(10,{value:v,defaultValue:h}),Z=ie(ee,2),oe=Z[0],re=Z[1],q=on(1,{value:u,defaultValue:f,postState:function(Ct){return Math.max(1,Math.min(Ct,fl(void 0,oe,g)))}}),Q=ie(q,2),ae=Q[0],se=Q[1],de=le.useState(ae),he=ie(de,2),ye=he[0],pe=he[1];l.useEffect(function(){pe(ae)},[ae]);var J=Math.max(1,ae-(R?3:5)),ce=Math.min(fl(void 0,oe,g),ae+(R?3:5));function ue(wt,Ct){var Ot=wt||le.createElement("button",{type:"button","aria-label":Ct,className:"".concat(a,"-item-link")});return typeof wt=="function"&&(Ot=le.createElement(wt,K({},t))),Ot}function fe(wt){var Ct=wt.target.value,Ot=fl(void 0,oe,g),mn;return Ct===""?mn=Ct:Number.isNaN(Number(Ct))?mn=ye:Ct>=Ot?mn=Ot:mn=Number(Ct),mn}function be(wt){return eD(wt)&&wt!==ae&&eD(g)&&g>0}var Ee=g>oe?I:!1;function Re(wt){(wt.keyCode===De.UP||wt.keyCode===De.DOWN)&&wt.preventDefault()}function Fe(wt){var Ct=fe(wt);switch(Ct!==ye&&pe(Ct),wt.keyCode){case De.ENTER:Pe(Ct);break;case De.UP:Pe(Ct-1);break;case De.DOWN:Pe(Ct+1);break}}function Ce(wt){Pe(fe(wt))}function ze(wt){var Ct=fl(wt,oe,g),Ot=ae>Ct&&Ct!==0?Ct:ae;re(wt),pe(Ot),D==null||D(ae,wt),se(Ot),b==null||b(Ot,wt)}function Pe(wt){if(be(wt)&&!M){var Ct=fl(void 0,oe,g),Ot=wt;return wt>Ct?Ot=Ct:wt<1&&(Ot=1),Ot!==ye&&pe(Ot),se(Ot),b==null||b(Ot,oe),Ot}return ae}var Ae=ae>1,Se=aeN;function we(){Ae&&Pe(ae-1)}function Te(){Se&&Pe(ae+1)}function me(){Pe(J)}function xe(){Pe(ce)}function Be(wt,Ct){if(wt.key==="Enter"||wt.charCode===De.ENTER||wt.keyCode===De.ENTER){for(var Ot=arguments.length,mn=new Array(Ot>2?Ot-2:0),Bn=2;Bng?g:ae*oe])),Ue=null,We=fl(void 0,oe,g);if(S&&g<=oe)return null;var Ke=[],st={rootPrefixCls:a,onClick:Pe,onKeyPress:Be,showTitle:_,itemRender:H,page:-1},Tt=ae-1>0?ae-1:0,Rt=ae+1=ut*2&&ae!==3&&(Ke[0]=le.cloneElement(Ke[0],{className:ne("".concat(a,"-item-after-jump-prev"),Ke[0].props.className)}),Ke.unshift(Ye)),We-ae>=ut*2&&ae!==We-2){var gt=Ke[Ke.length-1];Ke[Ke.length-1]=le.cloneElement(gt,{className:ne("".concat(a,"-item-before-jump-next"),gt.props.className)}),Ke.push(Ue)}ot!==1&&Ke.unshift(le.createElement(Wd,ve({},st,{key:1,page:1}))),Qe!==We&&Ke.push(le.createElement(Wd,ve({},st,{key:We,page:We})))}var Et=je(Tt);if(Et){var $t=!Ae||!We;Et=le.createElement("li",{title:_?A.prev_page:null,onClick:we,tabIndex:$t?null:0,onKeyDown:ke,className:ne("".concat(a,"-prev"),V({},"".concat(a,"-disabled"),$t)),"aria-disabled":$t},Et)}var qt=qe(Rt);if(qt){var Zt,Kt;L?(Zt=!Se,Kt=Ae?0:null):(Zt=!Se||!We,Kt=Zt?null:0),qt=le.createElement("li",{title:_?A.next_page:null,onClick:Te,tabIndex:Kt,onKeyDown:Ne,className:ne("".concat(a,"-next"),V({},"".concat(a,"-disabled"),Zt)),"aria-disabled":Zt},qt)}var Qt=ne(a,s,(n={},V(n,"".concat(a,"-start"),C==="start"),V(n,"".concat(a,"-center"),C==="center"),V(n,"".concat(a,"-end"),C==="end"),V(n,"".concat(a,"-simple"),L),V(n,"".concat(a,"-disabled"),M),n));return le.createElement("ul",ve({className:Qt,style:O,ref:te},ft),ht,Et,L?Je:Ke,qt,le.createElement(mbe,{locale:A,rootPrefixCls:a,disabled:M,selectComponentClass:c,selectPrefixCls:i,changeSize:_e?ze:null,pageSize:oe,pageSizeOptions:B,quickGo:Ee?Pe:null,goButton:lt}))};const IW=e=>l.createElement(br,Object.assign({},e,{showSearch:!0,size:"small"})),TW=e=>l.createElement(br,Object.assign({},e,{showSearch:!0,size:"middle"}));IW.Option=br.Option;TW.Option=br.Option;const bbe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ybe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),input:Object.assign(Object.assign({},$$(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Sbe=e=>{const{componentCls:t}=e;return{[` @@ -387,7 +387,7 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:G(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto",[`${n}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},yg(e)),E$(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},s0(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Cbe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},xbe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Cbe(e)),wbe(e)),Sbe(e)),ybe(e)),bbe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Ebe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ui(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Wi(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Wi(e))}}}},RW=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},bg(e)),_W=e=>zt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},vg(e)),Ibe=nn("Pagination",e=>{const t=_W(e);return[xbe(t),Ebe(t)]},RW),Tbe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Rbe=nd(["Pagination","bordered"],e=>{const t=_W(e);return[Tbe(t)]},RW);var _be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=_be(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=qb(d),[,v]=Lr(),{getPrefixCls:m,direction:h,pagination:y={}}=l.useContext(it),b=m("pagination",n),[S,C,x]=Ibe(b),E=f??y.showSizeChanger,I=l.useMemo(()=>{const O=l.createElement("span",{className:`${b}-item-ellipsis`},"•••"),k=l.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?l.createElement(Hs,null):l.createElement(xp,null)),N=l.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?l.createElement(xp,null):l.createElement(Hs,null)),M=l.createElement("a",{className:`${b}-item-link`},l.createElement("div",{className:`${b}-item-container`},h==="rtl"?l.createElement(QM,{className:`${b}-item-link-icon`}):l.createElement(ZM,{className:`${b}-item-link-icon`}),O)),L=l.createElement("a",{className:`${b}-item-link`},l.createElement("div",{className:`${b}-item-container`},h==="rtl"?l.createElement(ZM,{className:`${b}-item-link-icon`}):l.createElement(QM,{className:`${b}-item-link-icon`}),O));return{prevIcon:k,nextIcon:N,jumpPrevIcon:M,jumpNextIcon:L}},[h,b]),[R]=mi("Pagination",zz),T=Object.assign(Object.assign({},R),c),_=dr(s),$=_==="small"||!!(g&&!_&&d),D=m("select",r),P=ne({[`${b}-${t}`]:!!t,[`${b}-mini`]:$,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:v.wireframe},y==null?void 0:y.className,a,o,C,x),A=Object.assign(Object.assign({},y==null?void 0:y.style),i);return S(l.createElement(l.Fragment,null,v.wireframe&&l.createElement(Rbe,{prefixCls:b}),l.createElement(vbe,Object.assign({},I,p,{style:A,prefixCls:b,selectPrefixCls:D,className:P,selectComponentClass:u||($?IW:TW),locale:T,showSizeChanger:E}))))},_v=100,$W=_v/5,OW=_v/2-$W/2,CS=OW*2*Math.PI,tD=50,nD=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:OW,cx:tD,cy:tD,strokeWidth:$W,style:n})},$be=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[i,s]=l.useState(!1);qt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!i)return null;const u={strokeDashoffset:`${CS/4}`,strokeDasharray:`${CS*c/100} ${CS*(100-c)/100}`};return l.createElement("span",{className:ne(a,`${r}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${_v} ${_v}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(nD,{dotClassName:r,hasCircleCls:!0}),l.createElement(nD,{dotClassName:r,style:u})))};function Obe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ne(a,n>0&&o)},l.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement($be,{prefixCls:t,percent:n}))}function Nbe(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?ur(n,{className:ne(n.props.className,a),percent:r}):l.createElement(Obe,{prefixCls:t,percent:r})}const kbe=new sn("antSpinMove",{to:{opacity:1}}),Abe=new sn("antRotate",{to:{transform:"rotate(405deg)"}}),Mbe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:kbe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Abe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Dbe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Pbe=nn("Spin",e=>{const t=zt(e,{spinDotDefault:e.colorTextDescription});return[Mbe(t)]},Dbe),Lbe=200,rD=[[30,.05],[70,.03],[96,.01]];function Fbe(e,t){const[n,r]=l.useState(0),a=l.useRef(),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(a.current)}),[o,e]),o?n:t}var jbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:g,percent:v}=e,m=jbe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:h,direction:y,spin:b}=l.useContext(it),S=h("spin",n),[C,x,E]=Pbe(S),[I,R]=l.useState(()=>r&&!Bbe(r,a)),T=Fbe(I,v);l.useEffect(()=>{if(r){const k=bge(a,()=>{R(!0)});return k(),()=>{var N;(N=k==null?void 0:k.cancel)===null||N===void 0||N.call(k)}}R(!1)},[a,r]);const _=l.useMemo(()=>typeof f<"u"&&!p,[f,p]),$=ne(S,b==null?void 0:b.className,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:I,[`${S}-show-text`]:!!c,[`${S}-rtl`]:y==="rtl"},o,!p&&i,x,E),D=ne(`${S}-container`,{[`${S}-blur`]:I}),P=(t=g??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:NW,A=Object.assign(Object.assign({},b==null?void 0:b.style),d),O=l.createElement("div",Object.assign({},m,{style:A,className:$,"aria-live":"polite","aria-busy":I}),l.createElement(Nbe,{prefixCls:S,indicator:P,percent:T}),c&&(_||p)?l.createElement("div",{className:`${S}-text`},c):null);return C(_?l.createElement("div",Object.assign({},m,{className:ne(`${S}-nested-loading`,u,x,E)}),I&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:D,key:"container"},f)):p?l.createElement("div",{className:ne(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:I},i,x,E)},O):O)};H$.setDefaultIndicator=e=>{NW=e};const U$=le.createContext({});U$.Consumer;var kW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=kW(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(it),c=s("list",t),u=ne(`${c}-item-meta`,n),d=le.createElement("div",{className:`${c}-item-meta-content`},a&&le.createElement("h4",{className:`${c}-item-meta-title`},a),o&&le.createElement("div",{className:`${c}-item-meta-description`},o));return le.createElement("div",Object.assign({},i,{className:u}),r&&le.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},Hbe=le.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:s,classNames:c,colStyle:u}=e,d=kW(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=l.useContext(U$),{getPrefixCls:g,list:v}=l.useContext(it),m=I=>{var R,T;return ne((T=(R=v==null?void 0:v.item)===null||R===void 0?void 0:R.classNames)===null||T===void 0?void 0:T[I],c==null?void 0:c[I])},h=I=>{var R,T;return Object.assign(Object.assign({},(T=(R=v==null?void 0:v.item)===null||R===void 0?void 0:R.styles)===null||T===void 0?void 0:T[I]),i==null?void 0:i[I])},y=()=>{let I=!1;return l.Children.forEach(r,R=>{typeof R=="string"&&(I=!0)}),I&&l.Children.count(r)>1},b=()=>p==="vertical"?!!o:!y(),S=g("list",n),C=a&&a.length>0&&le.createElement("ul",{className:ne(`${S}-item-action`,m("actions")),key:"actions",style:h("actions")},a.map((I,R)=>le.createElement("li",{key:`${S}-item-action-${R}`},I,R!==a.length-1&&le.createElement("em",{className:`${S}-item-action-split`})))),x=f?"div":"li",E=le.createElement(x,Object.assign({},d,f?{}:{ref:t},{className:ne(`${S}-item`,{[`${S}-item-no-flex`]:!b()},s)}),p==="vertical"&&o?[le.createElement("div",{className:`${S}-item-main`,key:"content"},r,C),le.createElement("div",{className:ne(`${S}-item-extra`,m("extra")),key:"extra",style:h("extra")},o)]:[r,C,ur(o,{key:"extra"})]);return f?le.createElement(Rn,{ref:t,flex:1,style:u},E):E}),wu=Hbe;wu.Meta=zbe;const Ube=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${G(a)} ${G(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},Vbe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${G(i)}`}}}}}},Wbe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:p,margin:g,colorText:v,colorTextDescription:m,motionDurationSlow:h,lineWidth:y,headerBg:b,footerBg:S,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:E,titleMarginBottom:I,descriptionFontSize:R}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:S},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{margin:`0 0 ${G(e.marginXXS)} 0`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${h}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:m,fontSize:R,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${G(p)}`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${G(s)} 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${G(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Gbe=e=>({contentWidth:220,itemPadding:`${G(e.paddingContentVertical)} 0`,itemPaddingSM:`${G(e.paddingContentVerticalSM)} ${G(e.paddingContentHorizontal)}`,itemPaddingLG:`${G(e.paddingContentVerticalLG)} ${G(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),qbe=nn("List",e=>{const t=zt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Wbe(t),Ube(t),Vbe(t)]},Gbe);var Kbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(pe,J)=>{var ce;I(pe),T(J),t&&((ce=t==null?void 0:t[ye])===null||ce===void 0||ce.call(t,pe,J))},k=O("onChange"),N=O("onShowSizeChange"),M=(ye,pe)=>{if(!b)return null;let J;return typeof y=="function"?J=y(ye):y?J=ye[y]:J=ye.key,J||(J=`list-item-${pe}`),l.createElement(l.Fragment,{key:J},b(ye,pe))},L=()=>!!(d||t||m),F=_("list",n),[j,B,z]=qbe(F);let H=h;typeof H=="boolean"&&(H={spinning:H});const U=!!(H!=null&&H.spinning),X=dr(g);let W="";switch(X){case"large":W="lg";break;case"small":W="sm";break}const Y=ne(F,{[`${F}-vertical`]:u==="vertical",[`${F}-${W}`]:W,[`${F}-split`]:a,[`${F}-bordered`]:r,[`${F}-loading`]:U,[`${F}-grid`]:!!f,[`${F}-something-after-last-item`]:L(),[`${F}-rtl`]:D==="rtl"},P==null?void 0:P.className,o,i,B,z),te=EW(A,{total:p.length,current:E,pageSize:R},t||{}),ee=Math.ceil(te.total/te.pageSize);te.current>ee&&(te.current=ee);const Z=t&&l.createElement("div",{className:ne(`${F}-pagination`)},l.createElement(z$,Object.assign({align:"end"},te,{onChange:k,onShowSizeChange:N})));let oe=Oe(p);t&&p.length>(te.current-1)*te.pageSize&&(oe=Oe(p).splice((te.current-1)*te.pageSize,te.pageSize));const re=Object.keys(f||{}).some(ye=>["xs","sm","md","lg","xl","xxl"].includes(ye)),q=qb(re),Q=l.useMemo(()=>{for(let ye=0;ye{if(!f)return;const ye=Q&&f[Q]?f[Q]:f.column;if(ye)return{width:`${100/ye}%`,maxWidth:`${100/ye}%`}},[JSON.stringify(f),Q]);let se=U&&l.createElement("div",{style:{minHeight:53}});if(oe.length>0){const ye=oe.map((pe,J)=>M(pe,J));se=f?l.createElement(Ba,{gutter:f.gutter},l.Children.map(ye,pe=>l.createElement("div",{key:pe==null?void 0:pe.key,style:ae},pe))):l.createElement("ul",{className:`${F}-items`},ye)}else!c&&!U&&(se=l.createElement("div",{className:`${F}-empty-text`},(S==null?void 0:S.emptyText)||($==null?void 0:$("List"))||l.createElement(Vb,{componentName:"List"})));const de=te.position||"bottom",he=l.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return j(l.createElement(U$.Provider,{value:he},l.createElement("div",Object.assign({style:Object.assign(Object.assign({},P==null?void 0:P.style),s),className:Y},C),(de==="top"||de==="both")&&Z,v&&l.createElement("div",{className:`${F}-header`},v),l.createElement(H$,Object.assign({},H),se,c),m&&l.createElement("div",{className:`${F}-footer`},m),d||(de==="bottom"||de==="both")&&Z)))}Us.Item=wu;let io=null,Rl=e=>e(),Ep=[],Ip={};function aD(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Ip,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const Ybe=le.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(it),o=Ip.prefixCls||a("message"),i=l.useContext(Rse),[s,c]=N9(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return le.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),Xbe=le.forwardRef((e,t)=>{const[n,r]=le.useState(aD),a=()=>{r(aD)};le.useEffect(a,[]);const o=b9(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),c=o.getTheme(),u=le.createElement(Ybe,{ref:t,sync:a,messageConfig:n});return le.createElement(Ko,{prefixCls:i,iconPrefixCls:s,theme:c},o.holderRender?o.holderRender(u):u)});function g0(){if(!io){const e=document.createDocumentFragment(),t={fragment:e};io=t,Rl(()=>{G_(le.createElement(Xbe,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,g0())})}}),e)});return}io.instance&&(Ep.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Rl(()=>{const r=io.instance.open(Object.assign(Object.assign({},Ip),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Rl(()=>{io==null||io.instance.destroy(e.key)});break;default:Rl(()=>{var r;const a=(r=io.instance)[t].apply(r,Oe(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Ep=[])}function Zbe(e){Ip=Object.assign(Object.assign({},Ip),e),Rl(()=>{var t;(t=io==null?void 0:io.sync)===null||t===void 0||t.call(io)})}function Qbe(e){const t=W_(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Ep.push(a),()=>{r?Rl(()=>{r()}):a.skipped=!0}});return g0(),t}function Jbe(e,t){const n=W_(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return Ep.push(o),()=>{a?Rl(()=>{a()}):o.skipped=!0}});return g0(),n}const e0e=e=>{Ep.push({type:"destroy",key:e}),g0()},t0e=["success","info","warning","error","loading"],n0e={open:Qbe,destroy:e0e,config:Zbe,useMessage:iae,_InternalPanelDoNotUseOrYouWillBeFired:Qre},tt=n0e;t0e.forEach(e=>{tt[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:s,footer:c}=e,u=r0e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(it),f=d(),p=t||d("modal"),g=Yn(f),[v,m,h]=gH(p,g),y=`${p}-confirm`;let b={};return o?b={closable:a??!1,title:"",footer:"",children:l.createElement(hH,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:b={closable:a??!0,title:i,footer:c!==null&&l.createElement(uH,Object.assign({},e)),children:s},v(l.createElement(K9,Object.assign({prefixCls:p,className:ne(m,`${p}-pure-panel`,o&&y,o&&`${y}-${o}`,n,h,g)},u,{closeIcon:cH(p,r),closable:a},b)))},o0e=IH(a0e);function AW(e){return cg(SH(e))}const _n=mH;_n.useModal=Tse;_n.info=function(t){return cg(wH(t))};_n.success=function(t){return cg(CH(t))};_n.error=function(t){return cg(xH(t))};_n.warning=AW;_n.warn=AW;_n.confirm=function(t){return cg(EH(t))};_n.destroyAll=function(){for(;Il.length;){const t=Il.pop();t&&t()}};_n.config=wse;_n._InternalPanelDoNotUseOrYouWillBeFired=o0e;var i0e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},s0e=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},oD=0,l0e=Dr();function c0e(){var e;return l0e?(e=oD,oD+=1):e="TEST_OR_SSR",e}const u0e=function(e){var t=l.useState(),n=ie(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(c0e()))},[]),e||r};var iD=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function sD(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var d0e=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&ht(r)==="object",g=p?"#FFF":void 0,v=d/2,m=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:v,cy:v,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!p)return m;var h="".concat(a,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",b=sD(r,(360-f)/360),S=sD(r,1),C="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(S.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:h},m),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},l.createElement(iD,{bg:x},l.createElement(iD,{bg:C}))))}),sf=100,xS=function(t,n,r,a,o,i,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-a)/100*n;u==="round"&&a!==100&&(v+=d/2,v>=n&&(v=n-.01));var m=sf/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(o+p+g,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"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}},f0e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function lD(e){var t=e??[];return Array.isArray(t)?t:[t]}var p0e=function(t){var n=K(K({},i0e),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,g=n.style,v=n.className,m=n.strokeColor,h=n.percent,y=xt(n,f0e),b=sf/2,S=u0e(r),C="".concat(S,"-gradient"),x=b-i/2,E=Math.PI*2*x,I=u>0?90+u/2:-90,R=E*((360-u)/360),T=ht(o)==="object"?o:{count:o,gap:2},_=T.count,$=T.gap,D=lD(h),P=lD(m),A=P.find(function(j){return j&&ht(j)==="object"}),O=A&&ht(A)==="object",k=O?"butt":p,N=xS(E,R,0,100,I,u,d,f,k,i),M=s0e(),L=function(){var B=0;return D.map(function(z,H){var U=P[H]||P[P.length-1],X=xS(E,R,B,z,I,u,d,U,k,i);return B+=z,l.createElement(d0e,{key:H,color:U,ptg:z,radius:x,prefixCls:a,gradientId:C,style:X,strokeLinecap:k,strokeWidth:i,gapDegree:u,ref:function(Y){M[H]=Y},size:sf})}).reverse()},F=function(){var B=Math.round(_*(D[0]/100)),z=100/_,H=0;return new Array(_).fill(null).map(function(U,X){var W=X<=B-1?P[0]:f,Y=W&&ht(W)==="object"?"url(#".concat(C,")"):void 0,te=xS(E,R,H,z,I,u,d,W,"butt",i,$);return H+=(R-te.strokeDashoffset+$)*100/R,l.createElement("circle",{key:X,className:"".concat(a,"-circle-path"),r:x,cx:b,cy:b,stroke:Y,strokeWidth:i,opacity:1,style:te,ref:function(Z){M[X]=Z}})})};return l.createElement("svg",ve({className:ne("".concat(a,"-circle"),v),viewBox:"0 0 ".concat(sf," ").concat(sf),style:g,id:r,role:"presentation"},y),!_&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:x,cx:b,cy:b,stroke:f,strokeLinecap:k,strokeWidth:s||i,style:N}),_?F():L())};function Ds(e){return!e||e<0?0:e>100?100:e}function $v(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const g0e=e=>{let{percent:t,success:n,successPercent:r}=e;const a=Ds($v({success:n,successPercent:r}));return[a,Ds(Ds(t)-a)]},m0e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||bu.green,n||null]},m0=(e,t,n)=>{var r,a,o,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,c]},h0e=3,v0e=e=>h0e/e*100,b0e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:c,success:u,size:d=i,steps:f}=e,[p,g]=m0(d,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(v0e(p),6));const m={width:p,height:g,fontSize:p*.15+6},h=l.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),y=g0e(e),b=a||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=m0e({success:u,strokeColor:e.strokeColor}),x=ne(`${t}-inner`,{[`${t}-circle-gradient`]:S}),E=l.createElement(p0e,{steps:f,percent:f?y[1]:y,strokeWidth:v,trailWidth:v,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:b}),I=p<=20,R=l.createElement("div",{className:x,style:m},E,!I&&c);return I?l.createElement(tn,{title:c},R):R},Ov="--progress-line-stroke-color",MW="--progress-percent",cD=e=>{const t=e?"100%":"-100%";return new sn(`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}})},y0e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Qt(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(${Ov})`]},height:"100%",width:`calc(1 / var(${MW}) * 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",[n]:{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 ${G(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:cD(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:cD(!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}}})}},S0e=e=>{const{componentCls:t,iconCls:n}=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%)",[n]:{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"}}}},w0e=e=>{const{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}}}}}},C0e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},x0e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),E0e=nn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=zt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[y0e(n),S0e(n),w0e(n),C0e(n)]},x0e);var I0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},R0e=(e,t)=>{const{from:n=bu.blue,to:r=bu.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=I0e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=T0e(o),c=`linear-gradient(${a}, ${s})`;return{background:c,[Ov]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Ov]:i}},_0e=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:g}=d,v=i&&typeof i!="string"?R0e(i,n):{[Ov]:i,background:i},m=s==="square"||s==="butt"?0:void 0,h=a??[-1,o||(a==="small"?6:8)],[y,b]=m0(h,"line",{strokeWidth:o}),S={backgroundColor:u||void 0,borderRadius:m},C=Object.assign(Object.assign({width:`${Ds(r)}%`,height:b,borderRadius:m},v),{[MW]:Ds(r)/100}),x=$v(e),E={width:`${Ds(x)}%`,height:b,borderRadius:m,backgroundColor:f==null?void 0:f.strokeColor},I={width:y<0?"100%":y},R=l.createElement("div",{className:`${t}-inner`,style:S},l.createElement("div",{className:ne(`${t}-bg`,`${t}-bg-${g}`),style:C},g==="inner"&&c),x!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:E})),T=g==="outer"&&p==="start",_=g==="outer"&&p==="end";return g==="outer"&&p==="center"?l.createElement("div",{className:`${t}-layout-bottom`},R,c):l.createElement("div",{className:`${t}-outer`,style:I},T&&c,R,_&&c)},$0e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:o,trailColor:i=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,a],[p,g]=m0(f,"step",{steps:n,strokeWidth:a}),v=p/n,m=new Array(n);for(let h=0;h{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:g,percentPosition:v={}}=e,m=O0e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:h="end",type:y="outer"}=v,b=Array.isArray(i)?i[0]:i,S=typeof i=="string"||Array.isArray(i)?i:void 0,C=l.useMemo(()=>{if(b){const L=typeof b=="string"?b:Object.values(b)[0];return new un(L).isLight()}return!1},[i]),x=l.useMemo(()=>{var L,F;const j=$v(e);return parseInt(j!==void 0?(L=j??0)===null||L===void 0?void 0:L.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),E=l.useMemo(()=>!N0e.includes(f)&&x>=100?"success":f||"normal",[f,x]),{getPrefixCls:I,direction:R,progress:T}=l.useContext(it),_=I("progress",n),[$,D,P]=E0e(_),A=d==="line",O=A&&!o,k=l.useMemo(()=>{if(!u)return null;const L=$v(e);let F;const j=p||(z=>`${z}%`),B=A&&C&&y==="inner";return y==="inner"||p||E!=="exception"&&E!=="success"?F=j(Ds(s),Ds(L)):E==="exception"?F=A?l.createElement(uc,null):l.createElement(da,null):E==="success"&&(F=A?l.createElement(eg,null):l.createElement(Wb,null)),l.createElement("span",{className:ne(`${_}-text`,{[`${_}-text-bright`]:B,[`${_}-text-${h}`]:O,[`${_}-text-${y}`]:O}),title:typeof F=="string"?F:void 0},F)},[u,s,x,E,d,_,p]);let N;d==="line"?N=o?l.createElement($0e,Object.assign({},e,{strokeColor:S,prefixCls:_,steps:typeof o=="object"?o.count:o}),k):l.createElement(_0e,Object.assign({},e,{strokeColor:b,prefixCls:_,direction:R,percentPosition:{align:h,type:y}}),k):(d==="circle"||d==="dashboard")&&(N=l.createElement(b0e,Object.assign({},e,{strokeColor:b,prefixCls:_,progressStatus:E}),k));const M=ne(_,`${_}-status-${E}`,{[`${_}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${_}-inline-circle`]:d==="circle"&&m0(c,"circle")[0]<=20,[`${_}-line`]:O,[`${_}-line-align-${h}`]:O,[`${_}-line-position-${y}`]:O,[`${_}-steps`]:o,[`${_}-show-info`]:u,[`${_}-${c}`]:typeof c=="string",[`${_}-rtl`]:R==="rtl"},T==null?void 0:T.className,r,a,D,P);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T==null?void 0:T.style),g),className:M,role:"progressbar","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100},yn(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});var k0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},A0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:k0e}))},M0e=l.forwardRef(A0e),D0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},P0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:D0e}))},L0e=l.forwardRef(P0e),F0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},j0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:F0e}))},B0e=l.forwardRef(j0e),z0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},H0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:z0e}))},U0e=l.forwardRef(H0e),V0e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},W0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:V0e}))},G0e=l.forwardRef(W0e),q0e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},K0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:q0e}))},Y0e=l.forwardRef(K0e),X0e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Z0e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:X0e}))},Q0e=l.forwardRef(Z0e),J0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},eye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:J0e}))},uD=l.forwardRef(eye),tye={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},nye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:tye}))},dD=l.forwardRef(nye),rye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},aye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:rye}))},oye=l.forwardRef(aye),iye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},sye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:iye}))},fD=l.forwardRef(sye),lye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},cye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:lye}))},uye=l.forwardRef(cye),dye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},fye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:dye}))},pye=l.forwardRef(fye),gye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},mye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:gye}))},hye=l.forwardRef(mye),vye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},bye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:vye}))},yye=l.forwardRef(bye),Sye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},wye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Sye}))},DW=l.forwardRef(wye),Cye={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"},xye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Cye}))},Tp=l.forwardRef(xye),Eye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},Iye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Eye}))},ES=l.forwardRef(Iye),Tye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},Rye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Tye}))},_ye=l.forwardRef(Rye),$ye={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"},Oye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:$ye}))},V$=l.forwardRef(Oye),Nye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},kye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Nye}))},v0=l.forwardRef(kye),Aye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Mye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Aye}))},Dye=l.forwardRef(Mye),Pye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},Lye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Pye}))},Fye=l.forwardRef(Lye),jye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Bye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:jye}))},PW=l.forwardRef(Bye),zye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Hye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:zye}))},Uye=l.forwardRef(Hye),Vye={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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"},Wye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Vye}))},Gye=l.forwardRef(Wye),qye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Kye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:qye}))},Yye=l.forwardRef(Kye),Xye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},Zye=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Xye}))},Qye=l.forwardRef(Zye),Jye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},eSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Jye}))},LW=l.forwardRef(eSe),tSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},nSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:tSe}))},W$=l.forwardRef(nSe),rSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},aSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:rSe}))},oSe=l.forwardRef(aSe),iSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},sSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:iSe}))},lSe=l.forwardRef(sSe),cSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},uSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:cSe}))},dSe=l.forwardRef(uSe),fSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},pSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:fSe}))},gSe=l.forwardRef(pSe),mSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},hSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:mSe}))},vSe=l.forwardRef(hSe),bSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},ySe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:bSe}))},SSe=l.forwardRef(ySe),wSe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},CSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:wSe}))},FW=l.forwardRef(CSe),xSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},ESe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:xSe}))},cu=l.forwardRef(ESe),ISe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"},TSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:ISe}))},RSe=l.forwardRef(TSe),_Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},$Se=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:_Se}))},OSe=l.forwardRef($Se),NSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},kSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:NSe}))},ASe=l.forwardRef(kSe),MSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},DSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:MSe}))},PSe=l.forwardRef(DSe),LSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},FSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:LSe}))},jSe=l.forwardRef(FSe),BSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},zSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:BSe}))},HSe=l.forwardRef(zSe),USe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},VSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:USe}))},WSe=l.forwardRef(VSe),GSe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},qSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:GSe}))},KSe=l.forwardRef(qSe),YSe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},XSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:YSe}))},ZSe=l.forwardRef(XSe),QSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},JSe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:QSe}))},pD=l.forwardRef(JSe),e1e={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"},t1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:e1e}))},n1e=l.forwardRef(t1e),r1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},a1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:r1e}))},gD=l.forwardRef(a1e),o1e={icon:function(t,n){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:n}},{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:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{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"},i1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:o1e}))},s1e=l.forwardRef(i1e),l1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},c1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:l1e}))},_l=l.forwardRef(c1e),u1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},d1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:u1e}))},f1e=l.forwardRef(d1e),p1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},g1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:p1e}))},m1e=l.forwardRef(g1e),h1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},v1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:h1e}))},mD=l.forwardRef(v1e),b1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},y1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:b1e}))},jW=l.forwardRef(y1e),S1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},w1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:S1e}))},BW=l.forwardRef(w1e),C1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},x1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:C1e}))},E1e=l.forwardRef(x1e),I1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},T1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:I1e}))},G$=l.forwardRef(T1e),R1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},_1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:R1e}))},$1e=l.forwardRef(_1e),O1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},N1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:O1e}))},zW=l.forwardRef(N1e),k1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},A1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:k1e}))},M1e=l.forwardRef(A1e),D1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},P1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:D1e}))},L1e=l.forwardRef(P1e),F1e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},j1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:F1e}))},B1e=l.forwardRef(j1e),z1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},H1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:z1e}))},HW=l.forwardRef(H1e),U1e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},V1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:U1e}))},W1e=l.forwardRef(V1e),G1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},q1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:G1e}))},K1e=l.forwardRef(q1e),Y1e={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"},X1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Y1e}))},Z1e=l.forwardRef(X1e),Q1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},J1e=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:Q1e}))},ewe=l.forwardRef(J1e),twe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},nwe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:twe}))},UW=l.forwardRef(nwe),rwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},awe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:rwe}))},VW=l.forwardRef(awe),owe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},iwe=function(t,n){return l.createElement(nt,ve({},t,{ref:n,icon:owe}))},FT=l.forwardRef(iwe),swe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function hD(e){return typeof e=="string"}function WW(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,p=e.title,g=e.subTitle,v=e.progressDot,m=e.stepIcon,h=e.tailContent,y=e.icons,b=e.stepIndex,S=e.onStepClick,C=e.onClick,x=e.render,E=xt(e,swe),I=!!S&&!d,R={};I&&(R.role="button",R.tabIndex=0,R.onClick=function(A){C==null||C(A),S(b)},R.onKeyDown=function(A){var O=A.which;(O===Me.ENTER||O===Me.SPACE)&&S(b)});var T=function(){var O,k,N=ne("".concat(r,"-icon"),"".concat(s,"icon"),(O={},V(O,"".concat(s,"icon-").concat(c),c&&hD(c)),V(O,"".concat(s,"icon-check"),!c&&i==="finish"&&(y&&!y.finish||!y)),V(O,"".concat(s,"icon-cross"),!c&&i==="error"&&(y&&!y.error||!y)),O)),M=l.createElement("span",{className:"".concat(r,"-icon-dot")});return v?typeof v=="function"?k=l.createElement("span",{className:"".concat(r,"-icon")},v(M,{index:u-1,status:i,title:p,description:f})):k=l.createElement("span",{className:"".concat(r,"-icon")},M):c&&!hD(c)?k=l.createElement("span",{className:"".concat(r,"-icon")},c):y&&y.finish&&i==="finish"?k=l.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&i==="error"?k=l.createElement("span",{className:"".concat(r,"-icon")},y.error):c||i==="finish"||i==="error"?k=l.createElement("span",{className:N}):k=l.createElement("span",{className:"".concat(r,"-icon")},u),m&&(k=m({index:u-1,status:i,title:p,description:f,node:k})),k},_=i||"wait",$=ne("".concat(r,"-item"),"".concat(r,"-item-").concat(_),n,(t={},V(t,"".concat(r,"-item-custom"),c),V(t,"".concat(r,"-item-active"),o),V(t,"".concat(r,"-item-disabled"),d===!0),t)),D=K({},a),P=l.createElement("div",ve({},E,{className:$,style:D}),l.createElement("div",ve({onClick:C},R,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},h),l.createElement("div",{className:"".concat(r,"-item-icon")},T()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},p,g&&l.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&l.createElement("div",{className:"".concat(r,"-item-description")},f))));return x&&(P=x(P)||null),P}var lwe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function q$(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,p=f===void 0?"horizontal":f,g=e.iconPrefix,v=g===void 0?"rc":g,m=e.status,h=m===void 0?"process":m,y=e.size,b=e.current,S=b===void 0?0:b,C=e.progressDot,x=C===void 0?!1:C,E=e.stepIcon,I=e.initial,R=I===void 0?0:I,T=e.icons,_=e.onChange,$=e.itemRender,D=e.items,P=D===void 0?[]:D,A=xt(e,lwe),O=d==="navigation",k=d==="inline",N=k||x,M=k?"horizontal":c,L=k?void 0:y,F=N?"vertical":p,j=ne(r,"".concat(r,"-").concat(M),i,(t={},V(t,"".concat(r,"-").concat(L),L),V(t,"".concat(r,"-label-").concat(F),M==="horizontal"),V(t,"".concat(r,"-dot"),!!N),V(t,"".concat(r,"-navigation"),O),V(t,"".concat(r,"-inline"),k),t)),B=function(U){_&&S!==U&&_(U)},z=function(U,X){var W=K({},U),Y=R+X;return h==="error"&&X===S-1&&(W.className="".concat(r,"-next-error")),W.status||(Y===S?W.status=h:Y{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:G(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},uwe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},dwe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${G(o)} ${G(e.paddingXXS)} 0`,margin:`0 ${G(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},fwe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${G(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},pwe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},vo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${G(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${G(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${G(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},gwe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${G(d)} !important`,height:`${G(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${G(f)} !important`,height:`${G(f)} !important`}}}}},mwe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${G(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${G(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:G(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:G(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${G(e.calc(o).add(e.paddingXS).equal())} 0 ${G(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},hwe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},vwe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${G(e.marginXS)}`,fontSize:r,lineHeight:G(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:G(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:G(n),transform:"none"}}}}},bwe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:G(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${G(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${G(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:G(n)}}}}},ywe="wait",Swe="process",wwe="finish",Cwe="error",$m=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},xwe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[a]:Object.assign({},Wi(e))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:G(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${G(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:G(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},$m(ywe,e)),$m(Swe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),$m(wwe,e)),$m(Cwe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Ewe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Iwe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),xwe(e)),Ewe(e)),cwe(e)),vwe(e)),bwe(e)),uwe(e)),fwe(e)),mwe(e)),pwe(e)),hwe(e)),gwe(e)),dwe(e))}},Twe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),Rwe=nn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=zt(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[Iwe(f)]},Twe);function _we(e){return e.filter(t=>t)}function $we(e,t){if(e)return e;const n=sr(t).map(r=>{if(l.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return _we(n)}var Owe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:s=!0,current:c=0,children:u,style:d}=e,f=Owe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=qb(s),{getPrefixCls:g,direction:v,steps:m}=l.useContext(it),h=l.useMemo(()=>s&&p?"vertical":o,[p,o]),y=dr(n),b=g("steps",e.prefixCls),[S,C,x]=Rwe(b),E=e.type==="inline",I=g("",e.iconPrefix),R=$we(i,u),T=E?void 0:t,_=Object.assign(Object.assign({},m==null?void 0:m.style),d),$=ne(m==null?void 0:m.className,{[`${b}-rtl`]:v==="rtl",[`${b}-with-progress`]:T!==void 0},r,a,C,x),D={finish:l.createElement(Wb,{className:`${b}-finish-icon`}),error:l.createElement(da,{className:`${b}-error-icon`})},P=O=>{let{node:k,status:N}=O;if(N==="process"&&T!==void 0){const M=y==="small"?32:40;return l.createElement("div",{className:`${b}-progress-icon`},l.createElement(h0,{type:"circle",percent:T,size:M,strokeWidth:4,format:()=>null}),k)}return k},A=(O,k)=>O.description?l.createElement(tn,{title:O.description},k):k;return S(l.createElement(q$,Object.assign({icons:D},f,{style:_,current:c,size:y,items:R,itemRender:E?A:void 0,stepIcon:P,direction:h,prefixCls:b,iconPrefix:I,className:$})))};K$.Step=q$.Step;var Nwe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],GW=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,g=e.onChange,v=e.onKeyDown,m=xt(e,Nwe),h=on(!1,{value:i,defaultValue:s}),y=ie(h,2),b=y[0],S=y[1];function C(R,T){var _=b;return c||(_=R,S(_),g==null||g(_,T)),_}function x(R){R.which===Me.LEFT?C(!1,R):R.which===Me.RIGHT&&C(!0,R),v==null||v(R)}function E(R){var T=C(!b,R);p==null||p(T,R)}var I=ne(a,o,(n={},V(n,"".concat(a,"-checked"),b),V(n,"".concat(a,"-disabled"),c),n));return l.createElement("button",ve({},m,{type:"button",role:"switch","aria-checked":b,disabled:c,className:I,ref:t,onKeyDown:x,onClick:E}),u,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},d),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});GW.displayName="Switch";const kwe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=G(c(s).add(c(r).mul(2)).equal()),f=G(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:G(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${G(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Awe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Mwe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${G(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Dwe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:s}=e,c=`${t}-inner`,u=G(s(i).add(s(r).mul(2)).equal()),d=G(s(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},Pwe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:G(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ui(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Lwe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,s=2,c=o-s*2,u=i-s*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new un("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},Fwe=nn("Switch",e=>{const t=zt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Pwe(t),Dwe(t),Mwe(t),Awe(t),kwe(t)]},Lwe);var jwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:g}=e,v=jwe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,h]=on(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:y,direction:b,switch:S}=l.useContext(it),C=l.useContext(Gr),x=(a??C)||o,E=y("switch",n),I=l.createElement("div",{className:`${E}-handle`},o&&l.createElement(Gi,{className:`${E}-loading-icon`})),[R,T,_]=Fwe(E),$=dr(r),D=ne(S==null?void 0:S.className,{[`${E}-small`]:$==="small",[`${E}-loading`]:o,[`${E}-rtl`]:b==="rtl"},i,s,T,_),P=Object.assign(Object.assign({},S==null?void 0:S.style),c),A=function(){h(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return R(l.createElement(rg,{component:"Switch"},l.createElement(GW,Object.assign({},v,{checked:m,onChange:A,prefixCls:E,className:D,style:P,disabled:x,ref:t,loadingIcon:I}))))}),va=Bwe;va.__ANT_SWITCH=!0;var gs={},Cg="rc-table-internal-hook";function Y$(e){var t=l.createContext(void 0),n=function(a){var o=a.value,i=a.children,s=l.useRef(o);s.current=o;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ie(c,1),d=u[0];return qt(function(){xr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function oa(e,t){var n=Ut(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var p={};return t.forEach(function(g){p[g]=f[g]}),p}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=ie(c,2),d=u[1];return qt(function(){if(!r)return;function f(p){var g=n(p);Uo(s.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),s.current}function zwe(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var i=Ho(a),s=function(u,d){var f=i?{ref:d}:{},p=l.useRef(0),g=l.useRef(u),v=t();return v!==null?l.createElement(a,ve({},u,f)):((!o||o(g.current,u))&&(p.current+=1),g.current=u,l.createElement(e.Provider,{value:p.current},l.createElement(a,ve({},u,f))))};return i?l.forwardRef(s):s}function r(a,o){var i=Ho(a),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(a,ve({},u,f))};return i?l.memo(l.forwardRef(s),o):l.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var X$=zwe(),qW=X$.makeImmutable,pd=X$.responseImmutable,Hwe=X$.useImmutableMark,_a=Y$(),KW=l.createContext({renderWithProps:!1}),Uwe="RC_TABLE_KEY";function Vwe(e){return e==null?[]:Array.isArray(e)?e:[e]}function b0(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,s=o||Vwe(i).join("-")||Uwe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function jT(e){return e!=null}function Wwe(e){return e&&ht(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function Gwe(e,t,n,r,a,o){var i=l.useContext(KW),s=Hwe(),c=Qs(function(){if(jT(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Ha(e,u),f=d,p=void 0;if(a){var g=a(d,e,n);Wwe(g)?(f=g.children,p=g.props,i.renderWithProps=!0):f=g}return[f,p]},[s,e,r,t,a,n],function(u,d){if(o){var f=ie(u,2),p=f[1],g=ie(d,2),v=g[1];return o(v,p)}return i.renderWithProps?!0:!Uo(u,d,!0)});return c}function qwe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function Kwe(e,t){return oa(_a,function(n){var r=qwe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Ywe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function Xwe(e){var t,n,r,a,o,i,s,c,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,g=e.prefixCls,v=e.className,m=e.align,h=e.record,y=e.render,b=e.dataIndex,S=e.renderIndex,C=e.shouldCellUpdate,x=e.index,E=e.rowType,I=e.colSpan,R=e.rowSpan,T=e.fixLeft,_=e.fixRight,$=e.firstFixLeft,D=e.lastFixLeft,P=e.firstFixRight,A=e.lastFixRight,O=e.appendNode,k=e.additionalProps,N=k===void 0?{}:k,M=e.isSticky,L="".concat(g,"-cell"),F=oa(_a,["supportSticky","allColumnsFixedLeft","rowHoverable"]),j=F.supportSticky,B=F.allColumnsFixedLeft,z=F.rowHoverable,H=Gwe(h,b,S,d,y,C),U=ie(H,2),X=U[0],W=U[1],Y={},te=typeof T=="number"&&j,ee=typeof _=="number"&&j;te&&(Y.position="sticky",Y.left=T),ee&&(Y.position="sticky",Y.right=_);var Z=(t=(n=(r=W==null?void 0:W.colSpan)!==null&&r!==void 0?r:N.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,oe=(a=(o=(i=W==null?void 0:W.rowSpan)!==null&&i!==void 0?i:N.rowSpan)!==null&&o!==void 0?o:R)!==null&&a!==void 0?a:1,re=Kwe(x,oe),q=ie(re,2),Q=q[0],ae=q[1],se=Ut(function(ue){var fe;h&&ae(x,x+oe-1),N==null||(fe=N.onMouseEnter)===null||fe===void 0||fe.call(N,ue)}),de=Ut(function(ue){var fe;h&&ae(-1,-1),N==null||(fe=N.onMouseLeave)===null||fe===void 0||fe.call(N,ue)});if(Z===0||oe===0)return null;var he=(s=N.title)!==null&&s!==void 0?s:Ywe({rowType:E,ellipsis:f,children:X}),ye=ne(L,v,(c={},V(c,"".concat(L,"-fix-left"),te&&j),V(c,"".concat(L,"-fix-left-first"),$&&j),V(c,"".concat(L,"-fix-left-last"),D&&j),V(c,"".concat(L,"-fix-left-all"),D&&B&&j),V(c,"".concat(L,"-fix-right"),ee&&j),V(c,"".concat(L,"-fix-right-first"),P&&j),V(c,"".concat(L,"-fix-right-last"),A&&j),V(c,"".concat(L,"-ellipsis"),f),V(c,"".concat(L,"-with-append"),O),V(c,"".concat(L,"-fix-sticky"),(te||ee)&&M&&j),V(c,"".concat(L,"-row-hover"),!W&&Q),c),N.className,W==null?void 0:W.className),pe={};m&&(pe.textAlign=m);var J=K(K(K(K({},Y),N.style),pe),W==null?void 0:W.style),ce=X;return ht(ce)==="object"&&!Array.isArray(ce)&&!l.isValidElement(ce)&&(ce=null),f&&(D||P)&&(ce=l.createElement("span",{className:"".concat(L,"-content")},ce)),l.createElement(u,ve({},W,N,{className:ye,style:J,title:he,scope:p,onMouseEnter:z?se:void 0,onMouseLeave:z?de:void 0,colSpan:Z!==1?Z:null,rowSpan:oe!==1?oe:null}),O,ce)}const mc=l.memo(Xwe);function Z$(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},s,c;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,p=!1,g=n[t+1],v=n[e-1],m=g&&!g.fixed||v&&!v.fixed||n.every(function(C){return C.fixed==="left"});if(a==="rtl"){if(s!==void 0){var h=v&&v.fixed==="left";p=!h&&m}else if(c!==void 0){var y=g&&g.fixed==="right";f=!y&&m}}else if(s!==void 0){var b=g&&g.fixed==="left";u=!b&&m}else if(c!==void 0){var S=v&&v.fixed==="right";d=!S&&m}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var YW=l.createContext({});function Zwe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,s=e.align,c=oa(_a,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(YW),p=f.scrollColumnIndex,g=f.stickyOffsets,v=f.flattenColumns,m=n+o-1,h=m+1===p?o+1:o,y=Z$(n,n+h-1,v,g,d);return l.createElement(mc,ve({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:h,rowSpan:i,render:function(){return r}},y))}var Qwe=["children"];function Jwe(e){var t=e.children,n=xt(e,Qwe);return l.createElement("tr",n,t)}function y0(e){var t=e.children;return t}y0.Row=Jwe;y0.Cell=Zwe;function eCe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=oa(_a,"prefixCls"),o=r.length-1,i=r[o],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return l.createElement(YW.Provider,{value:s},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Om=pd(eCe);var XW=y0;function tCe(e){return null}function nCe(e){return null}function ZW(e,t,n,r,a,o,i){e.push({record:t,indent:n,index:i});var s=o(t),c=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?$-1:0),P=1;P<$;P++)D[P-1]=arguments[P];x==null||x.apply(void 0,[_].concat(D))},I;typeof g=="string"?I=g:typeof g=="function"&&(I=g(e,n,r));var R=b0(o);return K(K({},a),{},{columnsKey:R,nestExpandable:v,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:S,rowSupportExpand:m,expandable:h,rowProps:K(K({},C),{},{className:ne(I,C==null?void 0:C.className),onClick:E})})}function eG(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=oa(_a,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,g=u.componentWidth,v=u.horizonScroll,m=n;return(c?v&&g:p)&&(m=l.createElement("div",{style:{width:g-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},m)),l.createElement(r,{className:o,style:{display:i?null:"none"}},l.createElement(mc,{component:a,prefixCls:t,colSpan:s},m))}function tG(e,t,n,r,a){var o=e.record,i=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,p=e.expandIcon,g=e.expanded,v=e.hasNestChildren,m=e.onTriggerExpand,h=s[n],y=c[n],b;n===(u||0)&&d&&(b=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(i,"-row-indent indent-level-").concat(r)}),p({prefixCls:i,expanded:g,expandable:v,record:o,onExpand:m})));var S;return t.onCell&&(S=t.onCell(o,a)),{key:h,fixedInfo:y,appendCellNode:b,additionalCellProps:S||{}}}function rCe(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,i=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=JW(r,i,a,c),g=p.prefixCls,v=p.flattenColumns,m=p.expandedRowClassName,h=p.expandedRowRender,y=p.rowProps,b=p.expanded,S=p.rowSupportExpand,C=l.useRef(!1);C.current||(C.current=b);var x=m&&m(r,a,c),E=l.createElement(u,ve({},y,{"data-row-key":i,className:ne(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),y==null?void 0:y.className,c>=1?x:""),style:K(K({},n),y==null?void 0:y.style)}),v.map(function(T,_){var $=T.render,D=T.dataIndex,P=T.className,A=tG(p,T,_,c,a),O=A.key,k=A.fixedInfo,N=A.appendCellNode,M=A.additionalCellProps;return l.createElement(mc,ve({className:P,ellipsis:T.ellipsis,align:T.align,scope:T.rowScope,component:T.rowScope?f:d,prefixCls:g,key:O,record:r,index:a,renderIndex:o,dataIndex:D,render:$,shouldCellUpdate:T.shouldCellUpdate},k,{appendNode:N,additionalProps:M}))})),I;if(S&&(C.current||b)){var R=h(r,a,c+1,b);I=l.createElement(eG,{expanded:b,className:ne("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),x),prefixCls:g,component:u,cellComponent:d,colSpan:v.length,isEmpty:!1},R)}return l.createElement(l.Fragment,null,E,I)}const aCe=pd(rCe);function oCe(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(Ur,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function iCe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(Ur.Collection,{onBatchResize:function(o){o.forEach(function(i){var s=i.data,c=i.size;r(s,c.offsetWidth)})}},n.map(function(a){return l.createElement(oCe,{key:a,columnKey:a,onColumnResize:r})})))}function sCe(e){var t=e.data,n=e.measureColumnWidth,r=oa(_a,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,p=QW(t,d,u,c),g=l.useRef({renderWithProps:!1}),v=o(["body","wrapper"],"tbody"),m=o(["body","row"],"tr"),h=o(["body","cell"],"td"),y=o(["body","cell"],"th"),b;t.length?b=p.map(function(C,x){var E=C.record,I=C.indent,R=C.index,T=c(E,x);return l.createElement(aCe,{key:T,rowKey:T,record:E,index:x,renderIndex:R,rowComponent:m,cellComponent:h,scopeCellComponent:y,getRowKey:c,indent:I})}):b=l.createElement(eG,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:m,cellComponent:h,colSpan:s.length,isEmpty:!0},f);var S=b0(s);return l.createElement(KW.Provider,{value:g.current},l.createElement(v,{className:"".concat(a,"-tbody")},n&&l.createElement(iCe,{prefixCls:a,columnsKey:S,onColumnResize:i}),b))}const lCe=pd(sCe);var cCe=["expandable"],Mf="RC_TABLE_INTERNAL_COL_DEFINE";function uCe(e){var t=e.expandable,n=xt(e,cCe),r;return"expandable"in e?r=K(K({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var dCe=["columnType"];function nG(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=[],o=r||n.length,i=!1,s=o-1;s>=0;s-=1){var c=t[s],u=n&&n[s],d=u&&u[Mf];if(c||d||i){var f=d||{};f.columnType;var p=xt(f,dCe);a.unshift(l.createElement("col",ve({key:s,style:{width:c}},p))),i=!0}}return l.createElement("colgroup",null,a)}var fCe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function pCe(e,t){return l.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:i,prefixCls:d,key:g[m]},y,{additionalProps:b,rowType:"header"}))}))};function hCe(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var p={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,v=f.children;return v&&v.length>0&&(g=n(v,u,c+1).reduce(function(m,h){return m+h},0),p.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(p.rowSpan=f.rowSpan),p.colSpan=g,p.colEnd=p.colStart+g-1,t[c].push(p),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function bCe(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var g=yD(t,p.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),s=a,c=i/a,u=0,d=e.map(function(p){var g=K({},p),v=yD(t,g.width);if(v)g.width=v;else{var m=Math.floor(c);g.width=s===1?i:m,i-=m,s-=1}return u+=g.width,g});if(u0?K(K({},t),{},{children:rG(n)}):t})}function BT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ht(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,s="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(Oe(n),Oe(BT(c,s).map(function(u){return K({fixed:i},u)}))):[].concat(Oe(n),[K(K({key:s},r),{},{fixed:i})])},[])}function wCe(e){return e.map(function(t){var n=t.fixed,r=xt(t,SCe),a=n;return n==="left"?a="right":n==="right"&&(a="left"),K({fixed:a},r)})}function CCe(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,g=e.direction,v=e.expandRowByClick,m=e.columnWidth,h=e.fixed,y=e.scrollWidth,b=e.clientWidth,S=l.useMemo(function(){var D=r||Q$(a)||[];return rG(D.slice())},[r,a]),C=l.useMemo(function(){if(o){var D,P=S.slice();if(!P.includes(gs)){var A=p||0;A>=0&&P.splice(A,0,gs)}var O=P.indexOf(gs);P=P.filter(function(L,F){return L!==gs||F===O});var k=S[O],N;(h==="left"||h)&&!p?N="left":(h==="right"||h)&&p===S.length?N="right":N=k?k.fixed:null;var M=(D={},V(D,Mf,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),V(D,"title",s),V(D,"fixed",N),V(D,"className","".concat(n,"-row-expand-icon-cell")),V(D,"width",m),V(D,"render",function(F,j,B){var z=c(j,B),H=i.has(z),U=f?f(j):!0,X=d({prefixCls:n,expanded:H,expandable:U,record:j,onExpand:u});return v?l.createElement("span",{onClick:function(Y){return Y.stopPropagation()}},X):X}),D);return P.map(function(L){return L===gs?M:L})}return S.filter(function(L){return L!==gs})},[o,S,c,i,d,g]),x=l.useMemo(function(){var D=C;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,C,g]),E=l.useMemo(function(){return g==="rtl"?wCe(BT(x)):BT(x)},[x,g,y]),I=l.useMemo(function(){for(var D=-1,P=E.length-1;P>=0;P-=1){var A=E[P].fixed;if(A==="left"||A===!0){D=P;break}}if(D>=0)for(var O=0;O<=D;O+=1){var k=E[O].fixed;if(k!=="left"&&k!==!0)return!0}var N=E.findIndex(function(F){var j=F.fixed;return j==="right"});if(N>=0)for(var M=N;M=f&&(M=f-p),i({scrollLeft:M/f*(d+2)}),b.current.x=A.pageX},$=function(){I.current=Bt(function(){if(o.current){var A=XM(o.current).top,O=A+o.current.offsetHeight,k=c===window?document.documentElement.scrollTop+window.innerHeight:XM(c).top+c.clientHeight;O-e3()<=k||A>=k-s?y(function(N){return K(K({},N),{},{isHiddenScrollBar:!0})}):y(function(N){return K(K({},N),{},{isHiddenScrollBar:!1})})}})},D=function(A){y(function(O){return K(K({},O),{},{scrollLeft:A/d*f||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:D,checkScrollBarVisible:$}}),l.useEffect(function(){var P=_m(document.body,"mouseup",R,!1),A=_m(document.body,"mousemove",_,!1);return $(),function(){P.remove(),A.remove()}},[p,x]),l.useEffect(function(){var P=_m(c,"scroll",$,!1),A=_m(window,"resize",$,!1);return function(){P.remove(),A.remove()}},[c]),l.useEffect(function(){h.isHiddenScrollBar||y(function(P){var A=o.current;return A?K(K({},P),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):P})},[h.isHiddenScrollBar]),d<=f||!p||h.isHiddenScrollBar?null:l.createElement("div",{style:{height:e3(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:T,ref:g,className:ne("".concat(u,"-sticky-scroll-bar"),V({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))};const kCe=l.forwardRef(NCe);var oG="rc-table",ACe=[],MCe={};function DCe(){return"No Data"}function PCe(e,t){var n,r=K({rowKey:"key",prefixCls:oG,emptyText:DCe},e),a=r.prefixCls,o=r.className,i=r.rowClassName,s=r.style,c=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,g=r.title,v=r.footer,m=r.summary,h=r.caption,y=r.id,b=r.showHeader,S=r.components,C=r.emptyText,x=r.onRow,E=r.onHeaderRow,I=r.onScroll,R=r.internalHooks,T=r.transformColumns,_=r.internalRefs,$=r.tailor,D=r.getContainerWidth,P=r.sticky,A=r.rowHoverable,O=A===void 0?!0:A,k=c||ACe,N=!!k.length,M=R===Cg,L=l.useCallback(function(et,Mt){return Ha(S,et)||Mt},[S]),F=l.useMemo(function(){return typeof u=="function"?u:function(et){var Mt=et&&et[u];return Mt}},[u]),j=L(["body"]),B=_Ce(),z=ie(B,3),H=z[0],U=z[1],X=z[2],W=ICe(r,k,F),Y=ie(W,6),te=Y[0],ee=Y[1],Z=Y[2],oe=Y[3],re=Y[4],q=Y[5],Q=d==null?void 0:d.x,ae=l.useState(0),se=ie(ae,2),de=se[0],he=se[1],ye=CCe(K(K(K({},r),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:Z,getRowKey:F,onTriggerExpand:q,expandIcon:oe,expandIconColumnIndex:te.expandIconColumnIndex,direction:p,scrollWidth:M&&$&&typeof Q=="number"?Q:null,clientWidth:de}),M?T:null),pe=ie(ye,4),J=pe[0],ce=pe[1],ue=pe[2],fe=pe[3],be=ue??Q,Te=l.useMemo(function(){return{columns:J,flattenColumns:ce}},[J,ce]),_e=l.useRef(),Pe=l.useRef(),Ee=l.useRef(),Fe=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:_e.current,scrollTo:function(Mt){var gn;if(Ee.current instanceof HTMLElement){var Gn=Mt.index,jn=Mt.top,Na=Mt.key;if(jn){var ka;(ka=Ee.current)===null||ka===void 0||ka.scrollTo({top:jn})}else{var Io,yi=Na??F(k[Gn]);(Io=Ee.current.querySelector('[data-row-key="'.concat(yi,'"]')))===null||Io===void 0||Io.scrollIntoView()}}else(gn=Ee.current)!==null&&gn!==void 0&&gn.scrollTo&&Ee.current.scrollTo(Mt)}}});var De=l.useRef(),Ae=l.useState(!1),we=ie(Ae,2),$e=we[0],Ce=we[1],Re=l.useState(!1),me=ie(Re,2),Ie=me[0],je=me[1],ke=aG(new Map),Ne=ie(ke,2),Be=Ne[0],Ve=Ne[1],Le=b0(ce),We=Le.map(function(et){return Be.get(et)}),Je=l.useMemo(function(){return We},[We.join("_")]),Ke=OCe(Je,ce,p),ut=d&&jT(d.y),dt=d&&jT(be)||!!te.fixed,He=dt&&ce.some(function(et){var Mt=et.fixed;return Mt}),Ye=l.useRef(),Ge=$Ce(P,a),rt=Ge.isSticky,Tt=Ge.offsetHeader,Rt=Ge.offsetSummary,jt=Ge.offsetScroll,ft=Ge.stickyClassName,st=Ge.container,Ze=l.useMemo(function(){return m==null?void 0:m(k)},[m,k]),lt=(ut||rt)&&l.isValidElement(Ze)&&Ze.type===y0&&Ze.props.fixed,It,at,vt;ut&&(at={overflowY:"scroll",maxHeight:d.y}),dt&&(It={overflowX:"auto"},ut||(at={overflowY:"hidden"}),vt={width:be===!0?"auto":be,minWidth:"100%"});var bt=l.useCallback(function(et,Mt){ad(_e.current)&&Ve(function(gn){if(gn.get(et)!==Mt){var Gn=new Map(gn);return Gn.set(et,Mt),Gn}return gn})},[]),Qe=RCe(),ot=ie(Qe,2),Xe=ot[0],qe=ot[1];function pt(et,Mt){Mt&&(typeof Mt=="function"?Mt(et):Mt.scrollLeft!==et&&(Mt.scrollLeft=et,Mt.scrollLeft!==et&&setTimeout(function(){Mt.scrollLeft=et},0)))}var Et=Ut(function(et){var Mt=et.currentTarget,gn=et.scrollLeft,Gn=p==="rtl",jn=typeof gn=="number"?gn:Mt.scrollLeft,Na=Mt||MCe;if(!qe()||qe()===Na){var ka;Xe(Na),pt(jn,Pe.current),pt(jn,Ee.current),pt(jn,De.current),pt(jn,(ka=Ye.current)===null||ka===void 0?void 0:ka.setScrollLeft)}var Io=Mt||Pe.current;if(Io){var yi=Io.scrollWidth,ll=Io.clientWidth;if(yi===ll){Ce(!1),je(!1);return}Gn?(Ce(-jn0)):(Ce(jn>0),je(jn1?h-A:0,k=K(K(K({},R),u),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:O,pointerEvents:"auto"}),N=l.useMemo(function(){return f?D<=1:_===0||D===0||D>1},[D,_,f]);N?k.visibility="hidden":f&&(k.height=p==null?void 0:p(D));var M=N?function(){return null}:g,L={};return(D===0||_===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(mc,ve({className:ne(m,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:C,record:c,index:o,renderIndex:s,dataIndex:v,render:M,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:E,additionalProps:K(K({},I),{},{style:k},L)}))}var BCe=["data","index","className","rowKey","style","extra","getHeight"],zCe=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=xt(e,BCe),d=n.record,f=n.indent,p=n.index,g=oa(_a,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=g.scrollX,m=g.flattenColumns,h=g.prefixCls,y=g.fixColumn,b=g.componentWidth,S=oa(J$,["getComponent"]),C=S.getComponent,x=JW(d,o,r,f),E=C(["body","row"],"div"),I=C(["body","cell"],"div"),R=x.rowSupportExpand,T=x.expanded,_=x.rowProps,$=x.expandedRowRender,D=x.expandedRowClassName,P;if(R&&T){var A=$(d,r,f+1,T),O=D==null?void 0:D(d,r,f),k={};y&&(k={style:V({},"--virtual-width","".concat(b,"px"))});var N="".concat(h,"-expanded-row-cell");P=l.createElement(E,{className:ne("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(f+1),O)},l.createElement(mc,{component:I,prefixCls:h,className:ne(N,V({},"".concat(N,"-fixed"),y)),additionalProps:k},A))}var M=K(K({},i),{},{width:v});s&&(M.position="absolute",M.pointerEvents="none");var L=l.createElement(E,ve({},_,u,{"data-row-key":o,ref:R?null:t,className:ne(a,"".concat(h,"-row"),_==null?void 0:_.className,V({},"".concat(h,"-row-extra"),s)),style:K(K({},M),_==null?void 0:_.style)}),m.map(function(F,j){return l.createElement(jCe,{key:j,component:I,rowInfo:x,column:F,colIndex:j,indent:f,index:r,renderIndex:p,record:d,inverse:s,getHeight:c})}));return R?l.createElement("div",{ref:t},L,P):L}),CD=pd(zCe),HCe=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=oa(_a,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),o=a.flattenColumns,i=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.emptyNode,p=a.scrollX,g=oa(J$),v=g.sticky,m=g.scrollY,h=g.listItemHeight,y=g.getComponent,b=g.onScroll,S=l.useRef(),C=QW(n,d,c,s),x=l.useMemo(function(){var k=0;return o.map(function(N){var M=N.width,L=N.key;return k+=M,[L,M,k]})},[o]),E=l.useMemo(function(){return x.map(function(k){return k[2]})},[x]);l.useEffect(function(){x.forEach(function(k){var N=ie(k,2),M=N[0],L=N[1];i(M,L)})},[x]),l.useImperativeHandle(t,function(){var k={scrollTo:function(M){var L;(L=S.current)===null||L===void 0||L.scrollTo(M)}};return Object.defineProperty(k,"scrollLeft",{get:function(){var M;return((M=S.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var L;(L=S.current)===null||L===void 0||L.scrollTo({left:M})}}),k});var I=function(N,M){var L,F=(L=C[M])===null||L===void 0?void 0:L.record,j=N.onCell;if(j){var B,z=j(F,M);return(B=z==null?void 0:z.rowSpan)!==null&&B!==void 0?B:1}return 1},R=function(N){var M=N.start,L=N.end,F=N.getSize,j=N.offsetY;if(L<0)return null;for(var B=o.filter(function(q){return I(q,M)===0}),z=M,H=function(Q){if(B=B.filter(function(ae){return I(ae,Q)===0}),!B.length)return z=Q,1},U=M;U>=0&&!H(U);U-=1);for(var X=o.filter(function(q){return I(q,L)!==1}),W=L,Y=function(Q){if(X=X.filter(function(ae){return I(ae,Q)!==1}),!X.length)return W=Math.max(Q-1,L),1},te=L;te1})&&ee.push(Q)},oe=z;oe<=W;oe+=1)Z(oe);var re=ee.map(function(q){var Q=C[q],ae=s(Q.record,q),se=function(ye){var pe=q+ye-1,J=s(C[pe].record,pe),ce=F(ae,J);return ce.bottom-ce.top},de=F(ae);return l.createElement(CD,{key:q,data:Q,rowKey:ae,index:q,style:{top:-j+de.top},extra:!0,getHeight:se})});return re},T=l.useMemo(function(){return{columnsOffset:E}},[E]),_="".concat(u,"-tbody"),$=y(["body","wrapper"]),D=y(["body","row"],"div"),P=y(["body","cell"],"div"),A;if(C.length){var O={};v&&(O.position="sticky",O.bottom=0,ht(v)==="object"&&v.offsetScroll&&(O.bottom=v.offsetScroll)),A=l.createElement(Ub,{fullHeight:!1,ref:S,prefixCls:"".concat(_,"-virtual"),styles:{horizontalScrollBar:O},className:_,height:m,itemHeight:h||24,data:C,itemKey:function(N){return s(N.record)},component:$,scrollWidth:p,onVirtualScroll:function(N){var M=N.x;r({scrollLeft:M})},onScroll:b,extraRender:R},function(k,N,M){var L=s(k.record,N);return l.createElement(CD,{data:k,rowKey:L,index:N,style:M.style})})}else A=l.createElement(D,{className:ne("".concat(u,"-placeholder"))},l.createElement(mc,{component:P,prefixCls:u},f));return l.createElement(sG.Provider,{value:T},A)}),UCe=pd(HCe),VCe=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(UCe,{ref:r,data:t,onScroll:a})};function WCe(e,t){var n=e.columns,r=e.scroll,a=e.sticky,o=e.prefixCls,i=o===void 0?oG:o,s=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},p=f.x,g=f.y;typeof p!="number"&&(p=1),typeof g!="number"&&(g=500);var v=Ut(function(y,b){return Ha(u,y)||b}),m=Ut(d),h=l.useMemo(function(){return{sticky:a,scrollY:g,listItemHeight:c,getComponent:v,onScroll:m}},[a,g,c,v,m]);return l.createElement(J$.Provider,{value:h},l.createElement(gd,ve({},e,{className:ne(s,"".concat(i,"-virtual")),scroll:K(K({},r),{},{x:p}),components:K(K({},u),{},{body:VCe}),columns:n,internalHooks:Cg,tailor:!0,ref:t})))}var GCe=l.forwardRef(WCe);function lG(e){return qW(GCe,e)}lG();const qCe=e=>null,KCe=e=>null;var eO=l.createContext(null),YCe=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function Ti(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function tO(e){return e.split("-")}function exe(e,t){var n=[],r=Sa(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,c=i.children;n.push(s),a(c)})}return a(r.children),n}function txe(e){if(e.parent){var t=tO(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function nxe(e){var t=tO(e.pos);return Number(t[t.length-1])===0}function ID(e,t,n,r,a,o,i,s,c,u){var d,f=e.clientX,p=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,m=g.height,h=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),y=(h-12)/r,b=c.filter(function(k){var N;return(N=s[k])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),S=Sa(s,n.props.eventKey);if(p-1.5?o({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:A,dropPosition:0})?_=0:o({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:$,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:T,dropContainerKey:_===0?null:((d=S.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function TD(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function IS(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return pn(!1,"`checkedKeys` is not an array or an object"),null;return t}function zT(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Sa(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),Oe(n)}function rxe(e){const[t,n]=l.useState(null);return[l.useCallback((o,i,s)=>{const c=t??o,u=Math.min(c||0,o),d=Math.max(c||0,o),f=i.slice(u,d+1).map(v=>e(v)),p=f.some(v=>!s.has(v)),g=[];return f.forEach(v=>{p?(s.has(v)||g.push(v),s.add(v)):(s.delete(v),g.push(v))}),n(p?d:null),g},[t]),o=>{n(o)}]}const ds={},HT="SELECT_ALL",UT="SELECT_INVERT",VT="SELECT_NONE",RD=[],cG=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Oe(n),Oe(cG(e,r[e]))))}),n},axe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:i,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:v,fixed:m,renderCell:h,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:S,data:C,pageData:x,getRecordByKey:E,getRowKey:I,expandType:R,childrenColumnName:T,locale:_,getPopupContainer:$}=e,D=Js(),[P,A]=rxe(Z=>Z),[O,k]=on(r||a||RD,{value:r}),N=l.useRef(new Map),M=l.useCallback(Z=>{if(n){const oe=new Map;Z.forEach(re=>{let q=E(re);!q&&N.current.has(re)&&(q=N.current.get(re)),oe.set(re,q)}),N.current=oe}},[E,n]);l.useEffect(()=>{M(O)},[O]);const{keyEntities:L}=l.useMemo(()=>{if(b)return{keyEntities:null};let Z=C;if(n){const oe=new Set(C.map((q,Q)=>I(q,Q))),re=Array.from(N.current).reduce((q,Q)=>{let[ae,se]=Q;return oe.has(ae)?q:q.concat(se)},[]);Z=[].concat(Oe(Z),Oe(re))}return c0(Z,{externalGetKey:I,childrenPropName:T})},[C,I,b,T,n]),F=l.useMemo(()=>cG(T,x),[T,x]),j=l.useMemo(()=>{const Z=new Map;return F.forEach((oe,re)=>{const q=I(oe,re),Q=(o?o(oe):null)||{};Z.set(q,Q)}),Z},[F,I,o]),B=l.useCallback(Z=>{var oe;return!!(!((oe=j.get(I(Z)))===null||oe===void 0)&&oe.disabled)},[j,I]),[z,H]=l.useMemo(()=>{if(b)return[O||[],[]];const{checkedKeys:Z,halfCheckedKeys:oe}=Bi(O,!0,L,B);return[Z||[],oe]},[O,b,L,B]),U=l.useMemo(()=>{const Z=g==="radio"?z.slice(0,1):z;return new Set(Z)},[z,g]),X=l.useMemo(()=>g==="radio"?new Set:new Set(H),[H,g]);l.useEffect(()=>{t||k(RD)},[!!t]);const W=l.useCallback((Z,oe)=>{let re,q;M(Z),n?(re=Z,q=Z.map(Q=>N.current.get(Q))):(re=[],q=[],Z.forEach(Q=>{const ae=E(Q);ae!==void 0&&(re.push(Q),q.push(ae))})),k(re),i==null||i(re,q,{type:oe})},[k,E,i,n]),Y=l.useCallback((Z,oe,re,q)=>{if(s){const Q=re.map(ae=>E(ae));s(E(Z),oe,Q,q)}W(re,"single")},[s,E,W]),te=l.useMemo(()=>!v||y?null:(v===!0?[HT,UT,VT]:v).map(oe=>oe===HT?{key:"all",text:_.selectionAll,onSelect(){W(C.map((re,q)=>I(re,q)).filter(re=>{const q=j.get(re);return!(q!=null&&q.disabled)||U.has(re)}),"all")}}:oe===UT?{key:"invert",text:_.selectInvert,onSelect(){const re=new Set(U);x.forEach((Q,ae)=>{const se=I(Q,ae),de=j.get(se);de!=null&&de.disabled||(re.has(se)?re.delete(se):re.add(se))});const q=Array.from(re);u&&(D.deprecated(!1,"onSelectInvert","onChange"),u(q)),W(q,"invert")}}:oe===VT?{key:"none",text:_.selectNone,onSelect(){d==null||d(),W(Array.from(U).filter(re=>{const q=j.get(re);return q==null?void 0:q.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:function(){for(var re,q,Q=arguments.length,ae=new Array(Q),se=0;se{var oe;if(!t)return Z.filter(Ee=>Ee!==ds);let re=Oe(Z);const q=new Set(U),Q=F.map(I).filter(Ee=>!j.get(Ee).disabled),ae=Q.every(Ee=>q.has(Ee)),se=Q.some(Ee=>q.has(Ee)),de=()=>{const Ee=[];ae?Q.forEach(De=>{q.delete(De),Ee.push(De)}):Q.forEach(De=>{q.has(De)||(q.add(De),Ee.push(De))});const Fe=Array.from(q);c==null||c(!ae,Fe.map(De=>E(De)),Ee.map(De=>E(De))),W(Fe,"all"),A(null)};let he,ye;if(g!=="radio"){let Ee;if(te){const $e={getPopupContainer:$,items:te.map((Ce,Re)=>{const{key:me,text:Ie,onSelect:je}=Ce;return{key:me??Re,onClick:()=>{je==null||je(Q)},label:Ie}})};Ee=l.createElement("div",{className:`${S}-selection-extra`},l.createElement(f0,{menu:$e,getPopupContainer:$},l.createElement("span",null,l.createElement(Gb,null))))}const Fe=F.map(($e,Ce)=>{const Re=I($e,Ce),me=j.get(Re)||{};return Object.assign({checked:q.has(Re)},me)}).filter($e=>{let{disabled:Ce}=$e;return Ce}),De=!!Fe.length&&Fe.length===F.length,Ae=De&&Fe.every($e=>{let{checked:Ce}=$e;return Ce}),we=De&&Fe.some($e=>{let{checked:Ce}=$e;return Ce});ye=l.createElement(Xi,{checked:De?Ae:!!F.length&&ae,indeterminate:De?!Ae&&we:!ae&&se,onChange:de,disabled:F.length===0||De,"aria-label":Ee?"Custom selection":"Select all",skipGroup:!0}),he=!y&&l.createElement("div",{className:`${S}-selection`},ye,Ee)}let pe;g==="radio"?pe=(Ee,Fe,De)=>{const Ae=I(Fe,De),we=q.has(Ae);return{node:l.createElement(Va,Object.assign({},j.get(Ae),{checked:we,onClick:$e=>$e.stopPropagation(),onChange:$e=>{q.has(Ae)||Y(Ae,!0,[Ae],$e.nativeEvent)}})),checked:we}}:pe=(Ee,Fe,De)=>{var Ae;const we=I(Fe,De),$e=q.has(we),Ce=X.has(we),Re=j.get(we);let me;return R==="nest"?me=Ce:me=(Ae=Re==null?void 0:Re.indeterminate)!==null&&Ae!==void 0?Ae:Ce,{node:l.createElement(Xi,Object.assign({},Re,{indeterminate:me,checked:$e,skipGroup:!0,onClick:Ie=>Ie.stopPropagation(),onChange:Ie=>{let{nativeEvent:je}=Ie;const{shiftKey:ke}=je,Ne=Q.findIndex(Ve=>Ve===we),Be=z.some(Ve=>Q.includes(Ve));if(ke&&b&&Be){const Ve=P(Ne,Q,q),Le=Array.from(q);f==null||f(!$e,Le.map(We=>E(We)),Ve.map(We=>E(We))),W(Le,"multiple")}else{const Ve=z;if(b){const Le=$e?Qo(Ve,we):Ti(Ve,we);Y(we,!$e,Le,je)}else{const Le=Bi([].concat(Oe(Ve),[we]),!0,L,B),{checkedKeys:We,halfCheckedKeys:Je}=Le;let Ke=We;if($e){const ut=new Set(We);ut.delete(we),Ke=Bi(Array.from(ut),{checked:!1,halfCheckedKeys:Je},L,B).checkedKeys}Y(we,!$e,Ke,je)}}A($e?null:Ne)}})),checked:$e}};const J=(Ee,Fe,De)=>{const{node:Ae,checked:we}=pe(Ee,Fe,De);return h?h(we,Fe,De,Ae):Ae};if(!re.includes(ds))if(re.findIndex(Ee=>{var Fe;return((Fe=Ee[Mf])===null||Fe===void 0?void 0:Fe.columnType)==="EXPAND_COLUMN"})===0){const[Ee,...Fe]=re;re=[Ee,ds].concat(Oe(Fe))}else re=[ds].concat(Oe(re));const ce=re.indexOf(ds);re=re.filter((Ee,Fe)=>Ee!==ds||Fe===ce);const ue=re[ce-1],fe=re[ce+1];let be=m;be===void 0&&((fe==null?void 0:fe.fixed)!==void 0?be=fe.fixed:(ue==null?void 0:ue.fixed)!==void 0&&(be=ue.fixed)),be&&ue&&((oe=ue[Mf])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&ue.fixed===void 0&&(ue.fixed=be);const Te=ne(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:v&&g==="checkbox"}),_e=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ye):t.columnTitle:he,Pe={fixed:be,width:p,className:`${S}-selection-column`,title:_e(),render:J,onCell:t.onCell,[Mf]:{className:Te}};return re.map(Ee=>Ee===ds?Pe:Ee)},[I,F,t,z,U,X,p,te,R,j,f,Y,B]),U]};function oxe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function ixe(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):oxe(r,n)})}function sxe(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:ne(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&o,[`${s}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function lxe(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),s=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);o=r-s-c}return o}}const Vs=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function md(e,t){return t?`${t}-${e}`:`${e}`}const S0=(e,t)=>typeof e=="function"?e(t):e,cxe=(e,t)=>{const n=S0(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function uxe(e){const t=l.useRef(e),n=s$();return[()=>t.current,r=>{t.current=r,n()}]}function dxe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return l.createElement("div",{style:a})}function uG(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function fxe(e,t){var n=l.useState(!1),r=ie(n,2),a=r[0],o=r[1];qt(function(){if(a)return e(),function(){t()}},[a]),qt(function(){return o(!0),function(){o(!1)}},[])}var pxe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],dG=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,p=xt(t,pxe),g=l.useState(!0),v=ie(g,2),m=v[0],h=v[1],y=l.useContext(eO),b=y.prefixCls,S=i&&s!=="hide";qt(function(){i&&S!==m&&h(S)},[i]);var C=function(){i&&c()},x=l.useRef(!1),E=function(){i&&!x.current&&(x.current=!0,u())};fxe(C,E);var I=function(T){S===T&&E()};return i?l.createElement(qr,ve({ref:n,visible:m},o,{motionAppear:s==="show",onVisibleChanged:I}),function(R,T){var _=R.className,$=R.style;return l.createElement("div",{ref:T,className:ne("".concat(b,"-treenode-motion"),_),style:$},i.map(function(D){var P=Object.assign({},(uG(D.data),D.data)),A=D.title,O=D.key,k=D.isStart,N=D.isEnd;delete P.children;var M=kf(O,f);return l.createElement(Uu,ve({},P,M,{title:A,active:d,data:D.data,key:O,isStart:k,isEnd:N}))}))}):l.createElement(Uu,ve({domRef:n,className:r,style:a},p,{active:d}))};dG.displayName="MotionTreeNode";var gxe=l.forwardRef(dG);function mxe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var pG=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,m=e.motion,h=e.height,y=e.itemHeight,b=e.virtual,S=e.focusable,C=e.activeItem,x=e.focused,E=e.tabIndex,I=e.onKeyDown,R=e.onFocus,T=e.onBlur,_=e.onActiveChange,$=e.onListChangeStart,D=e.onListChangeEnd,P=xt(e,hxe),A=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(pe){A.current.scrollTo(pe)},getIndentWidth:function(){return O.current.offsetWidth}}});var k=l.useState(a),N=ie(k,2),M=N[0],L=N[1],F=l.useState(r),j=ie(F,2),B=j[0],z=j[1],H=l.useState(r),U=ie(H,2),X=U[0],W=U[1],Y=l.useState([]),te=ie(Y,2),ee=te[0],Z=te[1],oe=l.useState(null),re=ie(oe,2),q=re[0],Q=re[1],ae=l.useRef(r);ae.current=r;function se(){var ye=ae.current;z(ye),W(ye),Z([]),Q(null),D()}qt(function(){L(a);var ye=mxe(M,a);if(ye.key!==null)if(ye.add){var pe=B.findIndex(function(Te){var _e=Te.key;return _e===ye.key}),J=ND(_D(B,r,ye.key),b,h,y),ce=B.slice();ce.splice(pe+1,0,OD),W(ce),Z(J),Q("show")}else{var ue=r.findIndex(function(Te){var _e=Te.key;return _e===ye.key}),fe=ND(_D(r,B,ye.key),b,h,y),be=r.slice();be.splice(ue+1,0,OD),W(be),Z(fe),Q("hide")}else B!==r&&(z(r),W(r))},[a,r]),l.useEffect(function(){p||se()},[p]);var de=m?X:r,he={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:v,keyEntities:d};return l.createElement(l.Fragment,null,x&&C&&l.createElement("span",{style:$D,"aria-live":"assertive"},bxe(C)),l.createElement("div",null,l.createElement("input",{style:$D,disabled:S===!1||f,tabIndex:S!==!1?E:null,onKeyDown:I,onFocus:R,onBlur:T,value:"",onChange:vxe,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),l.createElement(Ub,ve({},P,{data:de,itemKey:kD,height:h,fullHeight:!1,virtual:b,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:A,onVisibleChange:function(pe,J){var ce=new Set(pe),ue=J.filter(function(fe){return!ce.has(fe)});ue.some(function(fe){return kD(fe)===tc})&&se()}}),function(ye){var pe=ye.pos,J=Object.assign({},(uG(ye.data),ye.data)),ce=ye.title,ue=ye.key,fe=ye.isStart,be=ye.isEnd,Te=Sg(ue,pe);delete J.key,delete J.children;var _e=kf(Te,he);return l.createElement(gxe,ve({},J,_e,{title:ce,active:!!C&&ue===C.key,pos:pe,data:ye.data,isStart:fe,isEnd:be,motion:m,motionNodes:ue===tc?ee:null,motionType:q,onMotionStart:$,onMotionEnd:se,treeNodeRequiredProps:he,onMouseMove:function(){_(null)}}))}))});pG.displayName="NodeList";var yxe=10,w0=function(e){Qa(n,e);var t=xo(n);function n(){var r;Dn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,g=f.dropPosition,v=f.dropTargetKey,m=f.dropTargetPos,h=f.dropAllowed;if(h){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var b=K(K({},kf(v,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===v,data:Sa(r.state.keyEntities,v).node}),S=p.indexOf(v)!==-1;pn(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=tO(m),x={event:s,node:pr(b),dragNode:r.dragNode?pr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:g!==0,dropPosition:g+Number(C[C.length-1])};d||y==null||y(x),r.dragNode=null}}}),V(Ue(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),V(Ue(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,g=c.key,v=c.isLeaf;if(!(v||s.shiftKey||s.metaKey||s.ctrlKey)){var m=f.filter(function(y){return y.key===g})[0],h=pr(K(K({},kf(g,r.getTreeNodeRequiredProps())),{},{data:m.data}));r.setExpandedKeys(p?Qo(d,g):Ti(d,g)),r.onNodeExpand(s,h)}}),V(Ue(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ue(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ue(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,g=r.props,v=g.onSelect,m=g.multiple,h=c.selected,y=c[p.key],b=!h;b?m?u=Ti(u,y):u=[y]:u=Qo(u,y);var S=u.map(function(C){var x=Sa(f,C);return x?x.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),v==null||v(u,{event:"select",selected:b,node:c,selectedNodes:S,nativeEvent:s.nativeEvent})}),V(Ue(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,p=d.checkedKeys,g=d.halfCheckedKeys,v=r.props,m=v.checkStrictly,h=v.onCheck,y=c.key,b,S={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(m){var C=u?Ti(p,y):Qo(p,y),x=Qo(g,y);b={checked:C,halfChecked:x},S.checkedNodes=C.map(function($){return Sa(f,$)}).filter(function($){return $}).map(function($){return $.node}),r.setUncontrolledState({checkedKeys:C})}else{var E=Bi([].concat(Oe(p),[y]),!0,f),I=E.checkedKeys,R=E.halfCheckedKeys;if(!u){var T=new Set(I);T.delete(y);var _=Bi(Array.from(T),{checked:!1,halfCheckedKeys:R},f);I=_.checkedKeys,R=_.halfCheckedKeys}b=I,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=R,I.forEach(function($){var D=Sa(f,$);if(D){var P=D.node,A=D.pos;S.checkedNodes.push(P),S.checkedNodesPositions.push({node:P,pos:A})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:R})}h==null||h(b,S)}),V(Ue(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Sa(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var p=new Promise(function(g,v){r.setState(function(m){var h=m.loadedKeys,y=h===void 0?[]:h,b=m.loadingKeys,S=b===void 0?[]:b,C=r.props,x=C.loadData,E=C.onLoad;if(!x||y.indexOf(u)!==-1||S.indexOf(u)!==-1)return null;var I=x(s);return I.then(function(){var R=r.state.loadedKeys,T=Ti(R,u);E==null||E(T,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:T}),r.setState(function(_){return{loadingKeys:Qo(_.loadingKeys,u)}}),g()}).catch(function(R){if(r.setState(function(_){return{loadingKeys:Qo(_.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=yxe){var T=r.state.loadedKeys;pn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ti(T,u)}),g()}v(R)}),{loadingKeys:Ti(S,u)}})});return p.catch(function(){}),p}}),V(Ue(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),V(Ue(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),V(Ue(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),V(Ue(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(s).forEach(function(g){if(g in r.props){f=!1;return}d=!0,p[g]=s[g]}),d&&(!c||f)&&r.setState(K(K({},p),u))}}),V(Ue(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Pn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,p=a.dropTargetKey,g=a.dropPosition,v=a.dragOverNodeKey,m=a.indent,h=this.props,y=h.prefixCls,b=h.className,S=h.style,C=h.showLine,x=h.focusable,E=h.tabIndex,I=E===void 0?0:E,R=h.selectable,T=h.showIcon,_=h.icon,$=h.switcherIcon,D=h.draggable,P=h.checkable,A=h.checkStrictly,O=h.disabled,k=h.motion,N=h.loadData,M=h.filterTreeNode,L=h.height,F=h.itemHeight,j=h.virtual,B=h.titleRender,z=h.dropIndicatorRender,H=h.onContextMenu,U=h.onScroll,X=h.direction,W=h.rootClassName,Y=h.rootStyle,te=Mn(this.props,{aria:!0,data:!0}),ee;return D&&(ht(D)==="object"?ee=D:typeof D=="function"?ee={nodeDraggable:D}:ee={}),l.createElement(eO.Provider,{value:{prefixCls:y,selectable:R,showIcon:T,icon:_,switcherIcon:$,draggable:ee,draggingNodeKey:c,checkable:P,checkStrictly:A,disabled:O,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:g,dragOverNodeKey:v,indent:m,direction:X,dropIndicatorRender:z,loadData:N,filterTreeNode:M,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:ne(y,b,W,V(V(V({},"".concat(y,"-show-line"),C),"".concat(y,"-focused"),o),"".concat(y,"-active-focused"),u!==null)),style:Y},l.createElement(pG,ve({ref:this.listRef,prefixCls:y,style:S,data:i,disabled:O,selectable:R,checkable:!!P,motion:k,dragging:c!==null,height:L,itemHeight:F,virtual:j,focusable:x,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:U},this.getTreeNodeRequiredProps(),te))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function c(E){return!i&&E in a||i&&i[E]!==a[E]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=Hu(a.fieldNames),s.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(pn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=OV(a.children)),u){s.treeData=u;var f=c0(u,{fieldNames:d});s.keyEntities=K(V({},tc,fG),f.keyEntities)}var p=s.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?zT(a.expandedKeys,p):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=K({},p);delete g[tc],s.expandedKeys=Object.keys(g).map(function(E){return g[E].key})}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?zT(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var v=mS(u||o.treeData,s.expandedKeys||o.expandedKeys,d);s.flattenNodes=v}if(a.selectable&&(c("selectedKeys")?s.selectedKeys=TD(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=TD(a.defaultSelectedKeys,a))),a.checkable){var m;if(c("checkedKeys")?m=IS(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?m=IS(a.defaultCheckedKeys)||{}:u&&(m=IS(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),m){var h=m,y=h.checkedKeys,b=y===void 0?[]:y,S=h.halfCheckedKeys,C=S===void 0?[]:S;if(!a.checkStrictly){var x=Bi(b,!0,p);b=x.checkedKeys,C=x.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=C}}return c("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n}(l.Component);V(w0,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:dxe,allowDrop:function(){return!0},expandAction:!1});V(w0,"TreeNode",Uu);const Sxe=new sn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),wxe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Cxe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),xxe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},Qt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Wi(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Sxe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${G(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:G(o),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},wxe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:G(o),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${G(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:G(o),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:G(o),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:G(o),userSelect:"none"},Cxe(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${G(t.calc(o).div(2).equal())} !important`}}}}})}},Exe=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},gG=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=zt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[xxe(e,o),Exe(o)]},mG=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Ixe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},mG(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Txe=nn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:N$(`${n}-checkbox`,e)},gG(n,e),sg(e)]},Ixe),AD=4;function Rxe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",c={[i]:-n*a+AD,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+AD;break}return le.createElement("div",{style:c,className:`${r}-drop-indicator`})}const hG=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:i,expanded:s,loading:c}=r;if(c)return l.isValidElement(o)?o:l.createElement(Gi,{className:`${t}-switcher-loading-icon`});let u;if(a&&typeof a=="object"&&(u=a.showLeafIcon),i){if(!a)return null;if(typeof u!="boolean"&&u){const p=typeof u=="function"?u(r):u,g=`${t}-switcher-line-custom-icon`;return l.isValidElement(p)?ur(p,{className:ne(p.props.className||"",g)}):p}return u?l.createElement(PW,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return l.isValidElement(f)?ur(f,{className:ne(f.props.className||"",d)}):f!==void 0?f:a?s?l.createElement(WSe,{className:`${t}-switcher-line-icon`}):l.createElement(f1e,{className:`${t}-switcher-line-icon`}):l.createElement(G0e,{className:d})},vG=le.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=le.useContext(it),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:g=!1,children:v,checkable:m=!1,selectable:h=!0,draggable:y,motion:b,style:S}=e,C=r("tree",s),x=r(),E=b??Object.assign(Object.assign({},ju(x)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:m,selectable:h,showIcon:u,motion:E,blockNode:g,showLine:!!d,dropIndicatorRender:Rxe}),[R,T,_]=Txe(C),[,$]=Lr(),D=$.paddingXS/2+(((n=$.Tree)===null||n===void 0?void 0:n.titleHeight)||$.controlHeightSM),P=le.useMemo(()=>{if(!y)return!1;let O={};switch(typeof y){case"function":O.nodeDraggable=y;break;case"object":O=Object.assign({},y);break}return O.icon!==!1&&(O.icon=O.icon||le.createElement(vSe,null)),O},[y]),A=O=>le.createElement(hG,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:O,showLine:d});return R(le.createElement(w0,Object.assign({itemHeight:D,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),S),prefixCls:C,className:ne({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:g,[`${C}-unselectable`]:!h,[`${C}-rtl`]:a==="rtl"},i==null?void 0:i.className,c,T,_),direction:a,checkable:m&&le.createElement("span",{className:`${C}-checkbox-inner`}),selectable:h,switcherIcon:A,draggable:P}),v))}),MD=0,TS=1,DD=2;function nO(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],c=i[a];t(s,i)!==!1&&nO(c||[],t,n)}e.forEach(o)}function _xe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const i=[];let s=MD;if(r&&r===a)return[r];if(!r||!a)return[];function c(u){return u===r||u===a}return nO(t,u=>{if(s===DD)return!1;if(c(u)){if(i.push(u),s===MD)s=TS;else if(s===TS)return s=DD,!1}else s===TS&&i.push(u);return n.includes(u)},Hu(o)),i}function RS(e,t,n){const r=Oe(t),a=[];return nO(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},Hu(n)),a}var PD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=PD(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:R}=c0(LD(o));let T;return n?T=Object.keys(R):r?T=zT(o.expandedKeys||a||[],R):T=o.expandedKeys||a||[],T},[u,d]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,p]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&p(o.expandedKeys)},[o.expandedKeys]);const g=(R,T)=>{var _;return"expandedKeys"in o||p(R),(_=o.onExpand)===null||_===void 0?void 0:_.call(o,R,T)},v=(R,T)=>{var _;const{multiple:$,fieldNames:D}=o,{node:P,nativeEvent:A}=T,{key:O=""}=P,k=LD(o),N=Object.assign(Object.assign({},T),{selected:!0}),M=(A==null?void 0:A.ctrlKey)||(A==null?void 0:A.metaKey),L=A==null?void 0:A.shiftKey;let F;$&&M?(F=R,i.current=O,s.current=F,N.selectedNodes=RS(k,F,D)):$&&L?(F=Array.from(new Set([].concat(Oe(s.current||[]),Oe(_xe({treeData:k,expandedKeys:f,startKey:O,endKey:i.current,fieldNames:D}))))),N.selectedNodes=RS(k,F,D)):(F=[O],i.current=O,s.current=F,N.selectedNodes=RS(k,F,D)),(_=o.onSelect)===null||_===void 0||_.call(o,F,N),"selectedKeys"in o||d(F)},{getPrefixCls:m,direction:h}=l.useContext(it),{prefixCls:y,className:b,showIcon:S=!0,expandAction:C="click"}=o,x=PD(o,["prefixCls","className","showIcon","expandAction"]),E=m("tree",y),I=ne(`${E}-directory`,{[`${E}-directory-rtl`]:h==="rtl"},b);return l.createElement(vG,Object.assign({icon:$xe,ref:t,blockNode:!0},x,{showIcon:S,expandAction:C,prefixCls:E,className:I,expandedKeys:f,selectedKeys:u,onSelect:v,onExpand:g}))},Nxe=l.forwardRef(Oxe),rO=vG;rO.DirectoryTree=Nxe;rO.TreeNode=Uu;const FD=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(en,{prefix:l.createElement(o$,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},kxe=e=>{const{keyCode:t}=e;t===Me.ENTER&&e.stopPropagation()},Axe=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:kxe,ref:t},e.children));function Cu(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Oe(t),Oe(Cu(a))))}),t}function Mxe(e){return e.some(t=>{let{children:n}=t;return n})}function bG(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function yG(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:yG({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i})};const d=a?Xi:Va,f={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return o.trim()?typeof i=="function"?i(o,s)?f:null:bG(o,s.text)?f:null:f})}function _S(e){return e||[]}const Dxe=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:i,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:p,triggerFilter:g,locale:v,children:m,getPopupContainer:h,rootClassName:y}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:S,filterResetToDefaultFilteredValue:C,defaultFilteredValue:x,filterDropdownVisible:E,onFilterDropdownVisibleChange:I}=o,[R,T]=l.useState(!1),_=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),$=de=>{T(de),S==null||S(de),I==null||I(de)},D=(n=b??E)!==null&&n!==void 0?n:R,P=p==null?void 0:p.filteredKeys,[A,O]=uxe(_S(P)),k=de=>{let{selectedKeys:he}=de;O(he)},N=(de,he)=>{let{node:ye,checked:pe}=he;k(u?{selectedKeys:de}:{selectedKeys:pe&&ye.key?[ye.key]:[]})};l.useEffect(()=>{R&&k({selectedKeys:_S(P)})},[P]);const[M,L]=l.useState([]),F=de=>{L(de)},[j,B]=l.useState(""),z=de=>{const{value:he}=de.target;B(he)};l.useEffect(()=>{R||B("")},[R]);const H=de=>{const he=de!=null&&de.length?de:null;if(he===null&&(!p||!p.filteredKeys)||Uo(he,p==null?void 0:p.filteredKeys,!0))return null;g({column:o,key:s,filteredKeys:he})},U=()=>{$(!1),H(A())},X=function(){let{confirm:de,closeDropdown:he}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&H([]),he&&$(!1),B(""),O(C?(x||[]).map(ye=>String(ye)):[])},W=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&$(!1),H(A())},Y=(de,he)=>{he.source==="trigger"&&(de&&P!==void 0&&O(_S(P)),$(de),!de&&!o.filterDropdown&&c&&U())},te=ne({[`${i}-menu-without-submenu`]:!Mxe(o.filters||[])}),ee=de=>{if(de.target.checked){const he=Cu(o==null?void 0:o.filters).map(ye=>String(ye));O(he)}else O([])},Z=de=>{let{filters:he}=de;return(he||[]).map((ye,pe)=>{const J=String(ye.value),ce={title:ye.text,key:ye.value!==void 0?J:String(pe)};return ye.children&&(ce.children=Z({filters:ye.children})),ce})},oe=de=>{var he;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((he=de.children)===null||he===void 0?void 0:he.map(ye=>oe(ye)))||[]})};let re;const{direction:q,renderEmpty:Q}=l.useContext(it);if(typeof o.filterDropdown=="function")re=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:de=>k({selectedKeys:de}),selectedKeys:A(),confirm:W,clearFilters:X,filters:o.filters,visible:D,close:()=>{$(!1)}});else if(o.filterDropdown)re=o.filterDropdown;else{const de=A()||[],he=()=>{var pe;const J=(pe=Q==null?void 0:Q("Table.filter"))!==null&&pe!==void 0?pe:l.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return J;if(d==="tree")return l.createElement(l.Fragment,null,l.createElement(FD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:v}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},u?l.createElement(Xi,{checked:de.length===Cu(o.filters).length,indeterminate:de.length>0&&de.lengthtypeof f=="function"?f(j,oe(fe)):bG(j,fe.title):void 0})));const ce=yG({filters:o.filters||[],filterSearch:f,prefixCls:a,filteredKeys:A(),filterMultiple:u,searchValue:j}),ue=ce.every(fe=>fe===null);return l.createElement(l.Fragment,null,l.createElement(FD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:v}),ue?J:l.createElement(pi,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:te,onSelect:k,onDeselect:k,selectedKeys:de,getPopupContainer:h,openKeys:M,onOpenChange:F,items:ce}))},ye=()=>C?Uo((x||[]).map(pe=>String(pe)),de,!0):de.length===0;re=l.createElement(l.Fragment,null,he(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(Pt,{type:"link",size:"small",disabled:ye(),onClick:()=>X()},v.filterReset),l.createElement(Pt,{type:"primary",size:"small",onClick:U},v.filterConfirm)))}o.filterDropdown&&(re=l.createElement(CU,{selectable:void 0},re));const ae=()=>l.createElement(Axe,{className:`${a}-dropdown`},re);let se;return typeof o.filterIcon=="function"?se=o.filterIcon(_):o.filterIcon?se=o.filterIcon:se=l.createElement(Yye,null),l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${r}-column-title`},m),l.createElement(f0,{dropdownRender:ae,trigger:["click"],open:D,onOpenChange:Y,getPopupContainer:h,placement:q==="rtl"?"bottomLeft":"bottomRight",rootClassName:y},l.createElement("span",{role:"button",tabIndex:-1,className:ne(`${a}-trigger`,{active:_}),onClick:de=>{de.stopPropagation()}},se)))},GT=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const s=md(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:a,key:Vs(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Vs(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Oe(r),Oe(GT(a.children,t,s))))}),r};function SG(e,t,n,r,a,o,i,s,c){return n.map((u,d)=>{const f=md(d,s),{filterOnClose:p=!0,filterMultiple:g=!0,filterMode:v,filterSearch:m}=u;let h=u;if(h.filters||h.filterDropdown){const y=Vs(h,f),b=r.find(S=>{let{key:C}=S;return y===C});h=Object.assign(Object.assign({},h),{title:S=>l.createElement(Dxe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:b,filterOnClose:p,filterMultiple:g,filterMode:v,filterSearch:m,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},S0(u.title,S))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:SG(e,t,h.children,r,a,o,i,f,c)})),h})}const jD=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const i=r,{filters:s,filterDropdown:c}=o;if(c)t[i]=a||null;else if(Array.isArray(a)){const u=Cu(s);t[i]=u.filter(d=>a.includes(String(d)))}else t[i]=null}),t},qT=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Cu(s),p=f.findIndex(v=>String(v)===String(d)),g=p!==-1?f[p]:d;return u[n]&&(u[n]=qT(u[n],t,n)),i(g,u)})):a},e),wG=e=>e.flatMap(t=>"children"in t?[t].concat(Oe(wG(t.children||[]))):[t]),Pxe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;Js();const c=l.useMemo(()=>wG(r||[]),[r]),[u,d]=l.useState(()=>GT(c,!0)),f=l.useMemo(()=>{const m=GT(c,!1);if(m.length===0)return m;let h=!0;if(m.forEach(y=>{let{filteredKeys:b}=y;b!==void 0&&(h=!1)}),h){const y=(c||[]).map((b,S)=>Vs(b,md(S)));return u.filter(b=>{let{key:S}=b;return y.includes(S)}).map(b=>{const S=c[y.findIndex(C=>C===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),S),forceFiltered:S.filtered})})}return m},[c,u]),p=l.useMemo(()=>jD(f),[f]),g=m=>{const h=f.filter(y=>{let{key:b}=y;return b!==m.key});h.push(m),d(h),a(jD(h),h)};return[m=>SG(t,n,m,f,i,g,o,void 0,s),f,p]},Lxe=(e,t,n)=>{const r=l.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,p)=>{const g=n(f,p);c.set(g,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var Fxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function Bxe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=Fxe(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:CG})),c=EW(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(p,g)=>{s({current:p??1,pageSize:g||c.pageSize})},f=(p,g)=>{var v;n&&((v=n.onChange)===null||v===void 0||v.call(n,p,g)),d(p,g),t(p,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const Rh="ascend",$S="descend",Nv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,BD=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,zxe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],KT=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Vs(o,i),multiplePriority:Nv(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const s=md(i,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(Oe(r),Oe(KT(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:Vs(o,s),multiplePriority:Nv(o),sortOrder:o.defaultSortOrder}))}),r},xG=(e,t,n,r,a,o,i,s)=>(t||[]).map((u,d)=>{const f=md(d,s);let p=u;if(p.sorter){const g=p.sortDirections||a,v=p.showSorterTooltip===void 0?i:p.showSorterTooltip,m=Vs(p,f),h=n.find(T=>{let{key:_}=T;return _===m}),y=h?h.sortOrder:null,b=zxe(g,y);let S;if(u.sortIcon)S=u.sortIcon({sortOrder:y});else{const T=g.includes(Rh)&&l.createElement(Q0e,{className:ne(`${e}-column-sorter-up`,{active:y===Rh})}),_=g.includes($S)&&l.createElement(Y0e,{className:ne(`${e}-column-sorter-down`,{active:y===$S})});S=l.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,_))}const{cancelSort:C,triggerAsc:x,triggerDesc:E}=o||{};let I=C;b===$S?I=E:b===Rh&&(I=x);const R=typeof v=="object"?Object.assign({title:I},v):{title:I};p=Object.assign(Object.assign({},p),{className:ne(p.className,{[`${e}-column-sort`]:y}),title:T=>{const _=`${e}-column-sorters`,$=l.createElement("span",{className:`${e}-column-title`},S0(u.title,T)),D=l.createElement("div",{className:_},$,S);return v?typeof v!="boolean"&&(v==null?void 0:v.target)==="sorter-icon"?l.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},$,l.createElement(tn,Object.assign({},R),S)):l.createElement(tn,Object.assign({},R),D):D},onHeaderCell:T=>{var _;const $=((_=u.onHeaderCell)===null||_===void 0?void 0:_.call(u,T))||{},D=$.onClick,P=$.onKeyDown;$.onClick=k=>{r({column:u,key:m,sortOrder:b,multiplePriority:Nv(u)}),D==null||D(k)},$.onKeyDown=k=>{k.keyCode===Me.ENTER&&(r({column:u,key:m,sortOrder:b,multiplePriority:Nv(u)}),P==null||P(k))};const A=cxe(u.title,{}),O=A==null?void 0:A.toString();return y?$["aria-sort"]=y==="ascend"?"ascending":"descending":$["aria-label"]=O||"",$.className=ne($.className,`${e}-column-has-sorters`),$.tabIndex=0,u.ellipsis&&($.title=(A??"").toString()),$}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:xG(e,p.children,n,r,a,o,i,f)})),p}),zD=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},HD=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(zD);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},zD(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t},YT=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(i=>{let{column:{sorter:s},sortOrder:c}=i;return BD(s)&&c});return o.length?a.sort((i,s)=>{for(let c=0;c{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:YT(s,t,n)}):i}):a},Hxe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[s,c]=l.useState(KT(n,!0)),u=(m,h)=>{const y=[];return m.forEach((b,S)=>{const C=md(S,h);if(y.push(Vs(b,C)),Array.isArray(b.children)){const x=u(b.children,C);y.push.apply(y,Oe(x))}}),y},d=l.useMemo(()=>{let m=!0;const h=KT(n,!1);if(!h.length){const C=u(n);return s.filter(x=>{let{key:E}=x;return C.includes(E)})}const y=[];function b(C){m?y.push(C):y.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let S=null;return h.forEach(C=>{S===null?(b(C),C.sortOrder&&(C.multiplePriority===!1?m=!1:S=!0)):(S&&C.multiplePriority!==!1||(m=!1),b(C))}),y},[n,s]),f=l.useMemo(()=>{var m,h;const y=d.map(b=>{let{column:S,sortOrder:C}=b;return{column:S,order:C}});return{sortColumns:y,sortColumn:(m=y[0])===null||m===void 0?void 0:m.column,sortOrder:(h=y[0])===null||h===void 0?void 0:h.order}},[d]),p=m=>{let h;m.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?h=[m]:h=[].concat(Oe(d.filter(y=>{let{key:b}=y;return b!==m.key})),[m]),c(h),i(HD(h),h)};return[m=>xG(t,m,d,p,r,a,o),d,f,()=>HD(d)]},EG=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=S0(r.title,t),"children"in a&&(a.children=EG(a.children,t)),a}),Uxe=e=>[l.useCallback(n=>EG(n,e),[e])],Vxe=iG((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Wxe=lG((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Gxe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${G(n)} ${r} ${a}`,d=(f,p,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(p).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:G(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto",[`${n}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},yg(e)),E$(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},s0(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Cbe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},xbe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Cbe(e)),wbe(e)),Sbe(e)),ybe(e)),bbe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Ebe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},di(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Wi(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Wi(e))}}}},RW=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},bg(e)),_W=e=>Bt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},vg(e)),Ibe=tn("Pagination",e=>{const t=_W(e);return[xbe(t),Ebe(t)]},RW),Tbe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Rbe=nd(["Pagination","bordered"],e=>{const t=_W(e);return[Tbe(t)]},RW);var _be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=_be(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=qb(d),[,v]=Lr(),{getPrefixCls:m,direction:h,pagination:y={}}=l.useContext(ct),b=m("pagination",n),[S,C,x]=Ibe(b),E=f??y.showSizeChanger,I=l.useMemo(()=>{const O=l.createElement("span",{className:`${b}-item-ellipsis`},"•••"),k=l.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?l.createElement(Hs,null):l.createElement(xp,null)),N=l.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?l.createElement(xp,null):l.createElement(Hs,null)),M=l.createElement("a",{className:`${b}-item-link`},l.createElement("div",{className:`${b}-item-container`},h==="rtl"?l.createElement(QM,{className:`${b}-item-link-icon`}):l.createElement(ZM,{className:`${b}-item-link-icon`}),O)),L=l.createElement("a",{className:`${b}-item-link`},l.createElement("div",{className:`${b}-item-container`},h==="rtl"?l.createElement(ZM,{className:`${b}-item-link-icon`}):l.createElement(QM,{className:`${b}-item-link-icon`}),O));return{prevIcon:k,nextIcon:N,jumpPrevIcon:M,jumpNextIcon:L}},[h,b]),[R]=hi("Pagination",zz),T=Object.assign(Object.assign({},R),c),_=dr(s),$=_==="small"||!!(g&&!_&&d),D=m("select",r),P=ne({[`${b}-${t}`]:!!t,[`${b}-mini`]:$,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:v.wireframe},y==null?void 0:y.className,a,o,C,x),A=Object.assign(Object.assign({},y==null?void 0:y.style),i);return S(l.createElement(l.Fragment,null,v.wireframe&&l.createElement(Rbe,{prefixCls:b}),l.createElement(vbe,Object.assign({},I,p,{style:A,prefixCls:b,selectPrefixCls:D,className:P,selectComponentClass:u||($?IW:TW),locale:T,showSizeChanger:E}))))},_v=100,$W=_v/5,OW=_v/2-$W/2,CS=OW*2*Math.PI,tD=50,nD=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:OW,cx:tD,cy:tD,strokeWidth:$W,style:n})},$be=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[i,s]=l.useState(!1);Wt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!i)return null;const u={strokeDashoffset:`${CS/4}`,strokeDasharray:`${CS*c/100} ${CS*(100-c)/100}`};return l.createElement("span",{className:ne(a,`${r}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${_v} ${_v}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(nD,{dotClassName:r,hasCircleCls:!0}),l.createElement(nD,{dotClassName:r,style:u})))};function Obe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ne(a,n>0&&o)},l.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement($be,{prefixCls:t,percent:n}))}function Nbe(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?ur(n,{className:ne(n.props.className,a),percent:r}):l.createElement(Obe,{prefixCls:t,percent:r})}const kbe=new sn("antSpinMove",{to:{opacity:1}}),Abe=new sn("antRotate",{to:{transform:"rotate(405deg)"}}),Mbe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:kbe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Abe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Dbe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Pbe=tn("Spin",e=>{const t=Bt(e,{spinDotDefault:e.colorTextDescription});return[Mbe(t)]},Dbe),Lbe=200,rD=[[30,.05],[70,.03],[96,.01]];function Fbe(e,t){const[n,r]=l.useState(0),a=l.useRef(),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(a.current)}),[o,e]),o?n:t}var jbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:g,percent:v}=e,m=jbe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:h,direction:y,spin:b}=l.useContext(ct),S=h("spin",n),[C,x,E]=Pbe(S),[I,R]=l.useState(()=>r&&!Bbe(r,a)),T=Fbe(I,v);l.useEffect(()=>{if(r){const k=bge(a,()=>{R(!0)});return k(),()=>{var N;(N=k==null?void 0:k.cancel)===null||N===void 0||N.call(k)}}R(!1)},[a,r]);const _=l.useMemo(()=>typeof f<"u"&&!p,[f,p]),$=ne(S,b==null?void 0:b.className,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:I,[`${S}-show-text`]:!!c,[`${S}-rtl`]:y==="rtl"},o,!p&&i,x,E),D=ne(`${S}-container`,{[`${S}-blur`]:I}),P=(t=g??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:NW,A=Object.assign(Object.assign({},b==null?void 0:b.style),d),O=l.createElement("div",Object.assign({},m,{style:A,className:$,"aria-live":"polite","aria-busy":I}),l.createElement(Nbe,{prefixCls:S,indicator:P,percent:T}),c&&(_||p)?l.createElement("div",{className:`${S}-text`},c):null);return C(_?l.createElement("div",Object.assign({},m,{className:ne(`${S}-nested-loading`,u,x,E)}),I&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:D,key:"container"},f)):p?l.createElement("div",{className:ne(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:I},i,x,E)},O):O)};H$.setDefaultIndicator=e=>{NW=e};const U$=le.createContext({});U$.Consumer;var kW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=kW(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(ct),c=s("list",t),u=ne(`${c}-item-meta`,n),d=le.createElement("div",{className:`${c}-item-meta-content`},a&&le.createElement("h4",{className:`${c}-item-meta-title`},a),o&&le.createElement("div",{className:`${c}-item-meta-description`},o));return le.createElement("div",Object.assign({},i,{className:u}),r&&le.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},Hbe=le.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:s,classNames:c,colStyle:u}=e,d=kW(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=l.useContext(U$),{getPrefixCls:g,list:v}=l.useContext(ct),m=I=>{var R,T;return ne((T=(R=v==null?void 0:v.item)===null||R===void 0?void 0:R.classNames)===null||T===void 0?void 0:T[I],c==null?void 0:c[I])},h=I=>{var R,T;return Object.assign(Object.assign({},(T=(R=v==null?void 0:v.item)===null||R===void 0?void 0:R.styles)===null||T===void 0?void 0:T[I]),i==null?void 0:i[I])},y=()=>{let I=!1;return l.Children.forEach(r,R=>{typeof R=="string"&&(I=!0)}),I&&l.Children.count(r)>1},b=()=>p==="vertical"?!!o:!y(),S=g("list",n),C=a&&a.length>0&&le.createElement("ul",{className:ne(`${S}-item-action`,m("actions")),key:"actions",style:h("actions")},a.map((I,R)=>le.createElement("li",{key:`${S}-item-action-${R}`},I,R!==a.length-1&&le.createElement("em",{className:`${S}-item-action-split`})))),x=f?"div":"li",E=le.createElement(x,Object.assign({},d,f?{}:{ref:t},{className:ne(`${S}-item`,{[`${S}-item-no-flex`]:!b()},s)}),p==="vertical"&&o?[le.createElement("div",{className:`${S}-item-main`,key:"content"},r,C),le.createElement("div",{className:ne(`${S}-item-extra`,m("extra")),key:"extra",style:h("extra")},o)]:[r,C,ur(o,{key:"extra"})]);return f?le.createElement($n,{ref:t,flex:1,style:u},E):E}),wu=Hbe;wu.Meta=zbe;const Ube=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${G(a)} ${G(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},Vbe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${G(i)}`}}}}}},Wbe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:p,margin:g,colorText:v,colorTextDescription:m,motionDurationSlow:h,lineWidth:y,headerBg:b,footerBg:S,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:E,titleMarginBottom:I,descriptionFontSize:R}=e;return{[t]:Object.assign(Object.assign({},Xt(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:S},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{margin:`0 0 ${G(e.marginXXS)} 0`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${h}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:m,fontSize:R,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${G(p)}`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${G(s)} 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${G(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Gbe=e=>({contentWidth:220,itemPadding:`${G(e.paddingContentVertical)} 0`,itemPaddingSM:`${G(e.paddingContentVerticalSM)} ${G(e.paddingContentHorizontal)}`,itemPaddingLG:`${G(e.paddingContentVerticalLG)} ${G(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),qbe=tn("List",e=>{const t=Bt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Wbe(t),Ube(t),Vbe(t)]},Gbe);var Kbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(pe,J)=>{var ce;I(pe),T(J),t&&((ce=t==null?void 0:t[ye])===null||ce===void 0||ce.call(t,pe,J))},k=O("onChange"),N=O("onShowSizeChange"),M=(ye,pe)=>{if(!b)return null;let J;return typeof y=="function"?J=y(ye):y?J=ye[y]:J=ye.key,J||(J=`list-item-${pe}`),l.createElement(l.Fragment,{key:J},b(ye,pe))},L=()=>!!(d||t||m),F=_("list",n),[j,B,z]=qbe(F);let H=h;typeof H=="boolean"&&(H={spinning:H});const U=!!(H!=null&&H.spinning),X=dr(g);let W="";switch(X){case"large":W="lg";break;case"small":W="sm";break}const Y=ne(F,{[`${F}-vertical`]:u==="vertical",[`${F}-${W}`]:W,[`${F}-split`]:a,[`${F}-bordered`]:r,[`${F}-loading`]:U,[`${F}-grid`]:!!f,[`${F}-something-after-last-item`]:L(),[`${F}-rtl`]:D==="rtl"},P==null?void 0:P.className,o,i,B,z),te=EW(A,{total:p.length,current:E,pageSize:R},t||{}),ee=Math.ceil(te.total/te.pageSize);te.current>ee&&(te.current=ee);const Z=t&&l.createElement("div",{className:ne(`${F}-pagination`)},l.createElement(z$,Object.assign({align:"end"},te,{onChange:k,onShowSizeChange:N})));let oe=Oe(p);t&&p.length>(te.current-1)*te.pageSize&&(oe=Oe(p).splice((te.current-1)*te.pageSize,te.pageSize));const re=Object.keys(f||{}).some(ye=>["xs","sm","md","lg","xl","xxl"].includes(ye)),q=qb(re),Q=l.useMemo(()=>{for(let ye=0;ye{if(!f)return;const ye=Q&&f[Q]?f[Q]:f.column;if(ye)return{width:`${100/ye}%`,maxWidth:`${100/ye}%`}},[JSON.stringify(f),Q]);let se=U&&l.createElement("div",{style:{minHeight:53}});if(oe.length>0){const ye=oe.map((pe,J)=>M(pe,J));se=f?l.createElement(Ba,{gutter:f.gutter},l.Children.map(ye,pe=>l.createElement("div",{key:pe==null?void 0:pe.key,style:ae},pe))):l.createElement("ul",{className:`${F}-items`},ye)}else!c&&!U&&(se=l.createElement("div",{className:`${F}-empty-text`},(S==null?void 0:S.emptyText)||($==null?void 0:$("List"))||l.createElement(Vb,{componentName:"List"})));const de=te.position||"bottom",he=l.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return j(l.createElement(U$.Provider,{value:he},l.createElement("div",Object.assign({style:Object.assign(Object.assign({},P==null?void 0:P.style),s),className:Y},C),(de==="top"||de==="both")&&Z,v&&l.createElement("div",{className:`${F}-header`},v),l.createElement(H$,Object.assign({},H),se,c),m&&l.createElement("div",{className:`${F}-footer`},m),d||(de==="bottom"||de==="both")&&Z)))}Us.Item=wu;let io=null,Rl=e=>e(),Ep=[],Ip={};function aD(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Ip,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const Ybe=le.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(ct),o=Ip.prefixCls||a("message"),i=l.useContext(Rse),[s,c]=N9(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return le.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),Xbe=le.forwardRef((e,t)=>{const[n,r]=le.useState(aD),a=()=>{r(aD)};le.useEffect(a,[]);const o=b9(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),c=o.getTheme(),u=le.createElement(Ybe,{ref:t,sync:a,messageConfig:n});return le.createElement(Ko,{prefixCls:i,iconPrefixCls:s,theme:c},o.holderRender?o.holderRender(u):u)});function g0(){if(!io){const e=document.createDocumentFragment(),t={fragment:e};io=t,Rl(()=>{G_(le.createElement(Xbe,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,g0())})}}),e)});return}io.instance&&(Ep.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Rl(()=>{const r=io.instance.open(Object.assign(Object.assign({},Ip),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Rl(()=>{io==null||io.instance.destroy(e.key)});break;default:Rl(()=>{var r;const a=(r=io.instance)[t].apply(r,Oe(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Ep=[])}function Zbe(e){Ip=Object.assign(Object.assign({},Ip),e),Rl(()=>{var t;(t=io==null?void 0:io.sync)===null||t===void 0||t.call(io)})}function Qbe(e){const t=W_(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Ep.push(a),()=>{r?Rl(()=>{r()}):a.skipped=!0}});return g0(),t}function Jbe(e,t){const n=W_(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return Ep.push(o),()=>{a?Rl(()=>{a()}):o.skipped=!0}});return g0(),n}const e0e=e=>{Ep.push({type:"destroy",key:e}),g0()},t0e=["success","info","warning","error","loading"],n0e={open:Qbe,destroy:e0e,config:Zbe,useMessage:iae,_InternalPanelDoNotUseOrYouWillBeFired:Qre},nt=n0e;t0e.forEach(e=>{nt[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:s,footer:c}=e,u=r0e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(ct),f=d(),p=t||d("modal"),g=Yn(f),[v,m,h]=gH(p,g),y=`${p}-confirm`;let b={};return o?b={closable:a??!1,title:"",footer:"",children:l.createElement(hH,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:b={closable:a??!0,title:i,footer:c!==null&&l.createElement(uH,Object.assign({},e)),children:s},v(l.createElement(K9,Object.assign({prefixCls:p,className:ne(m,`${p}-pure-panel`,o&&y,o&&`${y}-${o}`,n,h,g)},u,{closeIcon:cH(p,r),closable:a},b)))},o0e=IH(a0e);function AW(e){return cg(SH(e))}const On=mH;On.useModal=Tse;On.info=function(t){return cg(wH(t))};On.success=function(t){return cg(CH(t))};On.error=function(t){return cg(xH(t))};On.warning=AW;On.warn=AW;On.confirm=function(t){return cg(EH(t))};On.destroyAll=function(){for(;Il.length;){const t=Il.pop();t&&t()}};On.config=wse;On._InternalPanelDoNotUseOrYouWillBeFired=o0e;var i0e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},s0e=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},oD=0,l0e=Dr();function c0e(){var e;return l0e?(e=oD,oD+=1):e="TEST_OR_SSR",e}const u0e=function(e){var t=l.useState(),n=ie(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(c0e()))},[]),e||r};var iD=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function sD(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var d0e=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&mt(r)==="object",g=p?"#FFF":void 0,v=d/2,m=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:v,cy:v,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!p)return m;var h="".concat(a,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",b=sD(r,(360-f)/360),S=sD(r,1),C="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(S.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:h},m),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},l.createElement(iD,{bg:x},l.createElement(iD,{bg:C}))))}),sf=100,xS=function(t,n,r,a,o,i,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-a)/100*n;u==="round"&&a!==100&&(v+=d/2,v>=n&&(v=n-.01));var m=sf/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(o+p+g,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"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}},f0e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function lD(e){var t=e??[];return Array.isArray(t)?t:[t]}var p0e=function(t){var n=K(K({},i0e),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,g=n.style,v=n.className,m=n.strokeColor,h=n.percent,y=xt(n,f0e),b=sf/2,S=u0e(r),C="".concat(S,"-gradient"),x=b-i/2,E=Math.PI*2*x,I=u>0?90+u/2:-90,R=E*((360-u)/360),T=mt(o)==="object"?o:{count:o,gap:2},_=T.count,$=T.gap,D=lD(h),P=lD(m),A=P.find(function(j){return j&&mt(j)==="object"}),O=A&&mt(A)==="object",k=O?"butt":p,N=xS(E,R,0,100,I,u,d,f,k,i),M=s0e(),L=function(){var B=0;return D.map(function(z,H){var U=P[H]||P[P.length-1],X=xS(E,R,B,z,I,u,d,U,k,i);return B+=z,l.createElement(d0e,{key:H,color:U,ptg:z,radius:x,prefixCls:a,gradientId:C,style:X,strokeLinecap:k,strokeWidth:i,gapDegree:u,ref:function(Y){M[H]=Y},size:sf})}).reverse()},F=function(){var B=Math.round(_*(D[0]/100)),z=100/_,H=0;return new Array(_).fill(null).map(function(U,X){var W=X<=B-1?P[0]:f,Y=W&&mt(W)==="object"?"url(#".concat(C,")"):void 0,te=xS(E,R,H,z,I,u,d,W,"butt",i,$);return H+=(R-te.strokeDashoffset+$)*100/R,l.createElement("circle",{key:X,className:"".concat(a,"-circle-path"),r:x,cx:b,cy:b,stroke:Y,strokeWidth:i,opacity:1,style:te,ref:function(Z){M[X]=Z}})})};return l.createElement("svg",ve({className:ne("".concat(a,"-circle"),v),viewBox:"0 0 ".concat(sf," ").concat(sf),style:g,id:r,role:"presentation"},y),!_&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:x,cx:b,cy:b,stroke:f,strokeLinecap:k,strokeWidth:s||i,style:N}),_?F():L())};function Ds(e){return!e||e<0?0:e>100?100:e}function $v(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const g0e=e=>{let{percent:t,success:n,successPercent:r}=e;const a=Ds($v({success:n,successPercent:r}));return[a,Ds(Ds(t)-a)]},m0e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||bu.green,n||null]},m0=(e,t,n)=>{var r,a,o,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,c]},h0e=3,v0e=e=>h0e/e*100,b0e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:c,success:u,size:d=i,steps:f}=e,[p,g]=m0(d,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(v0e(p),6));const m={width:p,height:g,fontSize:p*.15+6},h=l.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),y=g0e(e),b=a||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=m0e({success:u,strokeColor:e.strokeColor}),x=ne(`${t}-inner`,{[`${t}-circle-gradient`]:S}),E=l.createElement(p0e,{steps:f,percent:f?y[1]:y,strokeWidth:v,trailWidth:v,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:b}),I=p<=20,R=l.createElement("div",{className:x,style:m},E,!I&&c);return I?l.createElement(en,{title:c},R):R},Ov="--progress-line-stroke-color",MW="--progress-percent",cD=e=>{const t=e?"100%":"-100%";return new sn(`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}})},y0e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Xt(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(${Ov})`]},height:"100%",width:`calc(1 / var(${MW}) * 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",[n]:{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 ${G(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:cD(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:cD(!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}}})}},S0e=e=>{const{componentCls:t,iconCls:n}=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%)",[n]:{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"}}}},w0e=e=>{const{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}}}}}},C0e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},x0e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),E0e=tn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Bt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[y0e(n),S0e(n),w0e(n),C0e(n)]},x0e);var I0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},R0e=(e,t)=>{const{from:n=bu.blue,to:r=bu.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=I0e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=T0e(o),c=`linear-gradient(${a}, ${s})`;return{background:c,[Ov]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Ov]:i}},_0e=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:g}=d,v=i&&typeof i!="string"?R0e(i,n):{[Ov]:i,background:i},m=s==="square"||s==="butt"?0:void 0,h=a??[-1,o||(a==="small"?6:8)],[y,b]=m0(h,"line",{strokeWidth:o}),S={backgroundColor:u||void 0,borderRadius:m},C=Object.assign(Object.assign({width:`${Ds(r)}%`,height:b,borderRadius:m},v),{[MW]:Ds(r)/100}),x=$v(e),E={width:`${Ds(x)}%`,height:b,borderRadius:m,backgroundColor:f==null?void 0:f.strokeColor},I={width:y<0?"100%":y},R=l.createElement("div",{className:`${t}-inner`,style:S},l.createElement("div",{className:ne(`${t}-bg`,`${t}-bg-${g}`),style:C},g==="inner"&&c),x!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:E})),T=g==="outer"&&p==="start",_=g==="outer"&&p==="end";return g==="outer"&&p==="center"?l.createElement("div",{className:`${t}-layout-bottom`},R,c):l.createElement("div",{className:`${t}-outer`,style:I},T&&c,R,_&&c)},$0e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:o,trailColor:i=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,a],[p,g]=m0(f,"step",{steps:n,strokeWidth:a}),v=p/n,m=new Array(n);for(let h=0;h{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:g,percentPosition:v={}}=e,m=O0e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:h="end",type:y="outer"}=v,b=Array.isArray(i)?i[0]:i,S=typeof i=="string"||Array.isArray(i)?i:void 0,C=l.useMemo(()=>{if(b){const L=typeof b=="string"?b:Object.values(b)[0];return new un(L).isLight()}return!1},[i]),x=l.useMemo(()=>{var L,F;const j=$v(e);return parseInt(j!==void 0?(L=j??0)===null||L===void 0?void 0:L.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),E=l.useMemo(()=>!N0e.includes(f)&&x>=100?"success":f||"normal",[f,x]),{getPrefixCls:I,direction:R,progress:T}=l.useContext(ct),_=I("progress",n),[$,D,P]=E0e(_),A=d==="line",O=A&&!o,k=l.useMemo(()=>{if(!u)return null;const L=$v(e);let F;const j=p||(z=>`${z}%`),B=A&&C&&y==="inner";return y==="inner"||p||E!=="exception"&&E!=="success"?F=j(Ds(s),Ds(L)):E==="exception"?F=A?l.createElement(uc,null):l.createElement(da,null):E==="success"&&(F=A?l.createElement(eg,null):l.createElement(Wb,null)),l.createElement("span",{className:ne(`${_}-text`,{[`${_}-text-bright`]:B,[`${_}-text-${h}`]:O,[`${_}-text-${y}`]:O}),title:typeof F=="string"?F:void 0},F)},[u,s,x,E,d,_,p]);let N;d==="line"?N=o?l.createElement($0e,Object.assign({},e,{strokeColor:S,prefixCls:_,steps:typeof o=="object"?o.count:o}),k):l.createElement(_0e,Object.assign({},e,{strokeColor:b,prefixCls:_,direction:R,percentPosition:{align:h,type:y}}),k):(d==="circle"||d==="dashboard")&&(N=l.createElement(b0e,Object.assign({},e,{strokeColor:b,prefixCls:_,progressStatus:E}),k));const M=ne(_,`${_}-status-${E}`,{[`${_}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${_}-inline-circle`]:d==="circle"&&m0(c,"circle")[0]<=20,[`${_}-line`]:O,[`${_}-line-align-${h}`]:O,[`${_}-line-position-${y}`]:O,[`${_}-steps`]:o,[`${_}-show-info`]:u,[`${_}-${c}`]:typeof c=="string",[`${_}-rtl`]:R==="rtl"},T==null?void 0:T.className,r,a,D,P);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T==null?void 0:T.style),g),className:M,role:"progressbar","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100},Sn(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});var k0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},A0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:k0e}))},M0e=l.forwardRef(A0e),D0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},P0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:D0e}))},L0e=l.forwardRef(P0e),F0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},j0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:F0e}))},B0e=l.forwardRef(j0e),z0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},H0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:z0e}))},U0e=l.forwardRef(H0e),V0e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},W0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:V0e}))},G0e=l.forwardRef(W0e),q0e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},K0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:q0e}))},Y0e=l.forwardRef(K0e),X0e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Z0e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:X0e}))},Q0e=l.forwardRef(Z0e),J0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},eye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:J0e}))},uD=l.forwardRef(eye),tye={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},nye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:tye}))},dD=l.forwardRef(nye),rye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},aye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:rye}))},oye=l.forwardRef(aye),iye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},sye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:iye}))},fD=l.forwardRef(sye),lye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},cye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:lye}))},uye=l.forwardRef(cye),dye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},fye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:dye}))},pye=l.forwardRef(fye),gye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},mye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:gye}))},hye=l.forwardRef(mye),vye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},bye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:vye}))},yye=l.forwardRef(bye),Sye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},wye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Sye}))},DW=l.forwardRef(wye),Cye={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"},xye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Cye}))},Tp=l.forwardRef(xye),Eye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},Iye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Eye}))},ES=l.forwardRef(Iye),Tye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},Rye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Tye}))},_ye=l.forwardRef(Rye),$ye={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"},Oye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:$ye}))},V$=l.forwardRef(Oye),Nye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},kye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Nye}))},v0=l.forwardRef(kye),Aye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Mye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Aye}))},Dye=l.forwardRef(Mye),Pye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},Lye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Pye}))},Fye=l.forwardRef(Lye),jye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Bye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:jye}))},PW=l.forwardRef(Bye),zye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Hye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:zye}))},Uye=l.forwardRef(Hye),Vye={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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"},Wye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Vye}))},Gye=l.forwardRef(Wye),qye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Kye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:qye}))},Yye=l.forwardRef(Kye),Xye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},Zye=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Xye}))},Qye=l.forwardRef(Zye),Jye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},eSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Jye}))},LW=l.forwardRef(eSe),tSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},nSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:tSe}))},W$=l.forwardRef(nSe),rSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},aSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:rSe}))},oSe=l.forwardRef(aSe),iSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},sSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:iSe}))},lSe=l.forwardRef(sSe),cSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},uSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:cSe}))},dSe=l.forwardRef(uSe),fSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},pSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:fSe}))},gSe=l.forwardRef(pSe),mSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},hSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:mSe}))},vSe=l.forwardRef(hSe),bSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},ySe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:bSe}))},SSe=l.forwardRef(ySe),wSe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},CSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:wSe}))},FW=l.forwardRef(CSe),xSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},ESe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:xSe}))},cu=l.forwardRef(ESe),ISe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"},TSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:ISe}))},RSe=l.forwardRef(TSe),_Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},$Se=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:_Se}))},OSe=l.forwardRef($Se),NSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},kSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:NSe}))},ASe=l.forwardRef(kSe),MSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},DSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:MSe}))},PSe=l.forwardRef(DSe),LSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},FSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:LSe}))},jSe=l.forwardRef(FSe),BSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},zSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:BSe}))},HSe=l.forwardRef(zSe),USe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},VSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:USe}))},WSe=l.forwardRef(VSe),GSe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},qSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:GSe}))},KSe=l.forwardRef(qSe),YSe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},XSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:YSe}))},ZSe=l.forwardRef(XSe),QSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},JSe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:QSe}))},pD=l.forwardRef(JSe),e1e={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"},t1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:e1e}))},n1e=l.forwardRef(t1e),r1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},a1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:r1e}))},gD=l.forwardRef(a1e),o1e={icon:function(t,n){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:n}},{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:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{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"},i1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:o1e}))},s1e=l.forwardRef(i1e),l1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},c1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:l1e}))},_l=l.forwardRef(c1e),u1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},d1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:u1e}))},f1e=l.forwardRef(d1e),p1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},g1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:p1e}))},m1e=l.forwardRef(g1e),h1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},v1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:h1e}))},mD=l.forwardRef(v1e),b1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},y1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:b1e}))},jW=l.forwardRef(y1e),S1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},w1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:S1e}))},BW=l.forwardRef(w1e),C1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},x1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:C1e}))},E1e=l.forwardRef(x1e),I1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},T1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:I1e}))},G$=l.forwardRef(T1e),R1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},_1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:R1e}))},$1e=l.forwardRef(_1e),O1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},N1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:O1e}))},zW=l.forwardRef(N1e),k1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},A1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:k1e}))},M1e=l.forwardRef(A1e),D1e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},P1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:D1e}))},L1e=l.forwardRef(P1e),F1e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},j1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:F1e}))},B1e=l.forwardRef(j1e),z1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},H1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:z1e}))},HW=l.forwardRef(H1e),U1e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},V1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:U1e}))},W1e=l.forwardRef(V1e),G1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},q1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:G1e}))},K1e=l.forwardRef(q1e),Y1e={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"},X1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Y1e}))},Z1e=l.forwardRef(X1e),Q1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},J1e=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:Q1e}))},ewe=l.forwardRef(J1e),twe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},nwe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:twe}))},UW=l.forwardRef(nwe),rwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},awe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:rwe}))},VW=l.forwardRef(awe),owe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},iwe=function(t,n){return l.createElement(rt,ve({},t,{ref:n,icon:owe}))},FT=l.forwardRef(iwe),swe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function hD(e){return typeof e=="string"}function WW(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,p=e.title,g=e.subTitle,v=e.progressDot,m=e.stepIcon,h=e.tailContent,y=e.icons,b=e.stepIndex,S=e.onStepClick,C=e.onClick,x=e.render,E=xt(e,swe),I=!!S&&!d,R={};I&&(R.role="button",R.tabIndex=0,R.onClick=function(A){C==null||C(A),S(b)},R.onKeyDown=function(A){var O=A.which;(O===De.ENTER||O===De.SPACE)&&S(b)});var T=function(){var O,k,N=ne("".concat(r,"-icon"),"".concat(s,"icon"),(O={},V(O,"".concat(s,"icon-").concat(c),c&&hD(c)),V(O,"".concat(s,"icon-check"),!c&&i==="finish"&&(y&&!y.finish||!y)),V(O,"".concat(s,"icon-cross"),!c&&i==="error"&&(y&&!y.error||!y)),O)),M=l.createElement("span",{className:"".concat(r,"-icon-dot")});return v?typeof v=="function"?k=l.createElement("span",{className:"".concat(r,"-icon")},v(M,{index:u-1,status:i,title:p,description:f})):k=l.createElement("span",{className:"".concat(r,"-icon")},M):c&&!hD(c)?k=l.createElement("span",{className:"".concat(r,"-icon")},c):y&&y.finish&&i==="finish"?k=l.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&i==="error"?k=l.createElement("span",{className:"".concat(r,"-icon")},y.error):c||i==="finish"||i==="error"?k=l.createElement("span",{className:N}):k=l.createElement("span",{className:"".concat(r,"-icon")},u),m&&(k=m({index:u-1,status:i,title:p,description:f,node:k})),k},_=i||"wait",$=ne("".concat(r,"-item"),"".concat(r,"-item-").concat(_),n,(t={},V(t,"".concat(r,"-item-custom"),c),V(t,"".concat(r,"-item-active"),o),V(t,"".concat(r,"-item-disabled"),d===!0),t)),D=K({},a),P=l.createElement("div",ve({},E,{className:$,style:D}),l.createElement("div",ve({onClick:C},R,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},h),l.createElement("div",{className:"".concat(r,"-item-icon")},T()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},p,g&&l.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&l.createElement("div",{className:"".concat(r,"-item-description")},f))));return x&&(P=x(P)||null),P}var lwe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function q$(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,p=f===void 0?"horizontal":f,g=e.iconPrefix,v=g===void 0?"rc":g,m=e.status,h=m===void 0?"process":m,y=e.size,b=e.current,S=b===void 0?0:b,C=e.progressDot,x=C===void 0?!1:C,E=e.stepIcon,I=e.initial,R=I===void 0?0:I,T=e.icons,_=e.onChange,$=e.itemRender,D=e.items,P=D===void 0?[]:D,A=xt(e,lwe),O=d==="navigation",k=d==="inline",N=k||x,M=k?"horizontal":c,L=k?void 0:y,F=N?"vertical":p,j=ne(r,"".concat(r,"-").concat(M),i,(t={},V(t,"".concat(r,"-").concat(L),L),V(t,"".concat(r,"-label-").concat(F),M==="horizontal"),V(t,"".concat(r,"-dot"),!!N),V(t,"".concat(r,"-navigation"),O),V(t,"".concat(r,"-inline"),k),t)),B=function(U){_&&S!==U&&_(U)},z=function(U,X){var W=K({},U),Y=R+X;return h==="error"&&X===S-1&&(W.className="".concat(r,"-next-error")),W.status||(Y===S?W.status=h:Y{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:G(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},uwe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},dwe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${G(o)} ${G(e.paddingXXS)} 0`,margin:`0 ${G(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},fwe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${G(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},pwe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},vo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${G(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${G(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${G(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},gwe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${G(d)} !important`,height:`${G(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${G(f)} !important`,height:`${G(f)} !important`}}}}},mwe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${G(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${G(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:G(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:G(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${G(e.calc(o).add(e.paddingXS).equal())} 0 ${G(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},hwe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},vwe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${G(e.marginXS)}`,fontSize:r,lineHeight:G(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:G(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:G(n),transform:"none"}}}}},bwe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:G(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${G(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${G(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:G(n)}}}}},ywe="wait",Swe="process",wwe="finish",Cwe="error",$m=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},xwe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[a]:Object.assign({},Wi(e))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:G(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${G(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:G(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},$m(ywe,e)),$m(Swe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),$m(wwe,e)),$m(Cwe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Ewe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},Iwe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),xwe(e)),Ewe(e)),cwe(e)),vwe(e)),bwe(e)),uwe(e)),fwe(e)),mwe(e)),pwe(e)),hwe(e)),gwe(e)),dwe(e))}},Twe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),Rwe=tn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=Bt(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[Iwe(f)]},Twe);function _we(e){return e.filter(t=>t)}function $we(e,t){if(e)return e;const n=ir(t).map(r=>{if(l.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return _we(n)}var Owe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:s=!0,current:c=0,children:u,style:d}=e,f=Owe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=qb(s),{getPrefixCls:g,direction:v,steps:m}=l.useContext(ct),h=l.useMemo(()=>s&&p?"vertical":o,[p,o]),y=dr(n),b=g("steps",e.prefixCls),[S,C,x]=Rwe(b),E=e.type==="inline",I=g("",e.iconPrefix),R=$we(i,u),T=E?void 0:t,_=Object.assign(Object.assign({},m==null?void 0:m.style),d),$=ne(m==null?void 0:m.className,{[`${b}-rtl`]:v==="rtl",[`${b}-with-progress`]:T!==void 0},r,a,C,x),D={finish:l.createElement(Wb,{className:`${b}-finish-icon`}),error:l.createElement(da,{className:`${b}-error-icon`})},P=O=>{let{node:k,status:N}=O;if(N==="process"&&T!==void 0){const M=y==="small"?32:40;return l.createElement("div",{className:`${b}-progress-icon`},l.createElement(h0,{type:"circle",percent:T,size:M,strokeWidth:4,format:()=>null}),k)}return k},A=(O,k)=>O.description?l.createElement(en,{title:O.description},k):k;return S(l.createElement(q$,Object.assign({icons:D},f,{style:_,current:c,size:y,items:R,itemRender:E?A:void 0,stepIcon:P,direction:h,prefixCls:b,iconPrefix:I,className:$})))};K$.Step=q$.Step;var Nwe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],GW=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,g=e.onChange,v=e.onKeyDown,m=xt(e,Nwe),h=on(!1,{value:i,defaultValue:s}),y=ie(h,2),b=y[0],S=y[1];function C(R,T){var _=b;return c||(_=R,S(_),g==null||g(_,T)),_}function x(R){R.which===De.LEFT?C(!1,R):R.which===De.RIGHT&&C(!0,R),v==null||v(R)}function E(R){var T=C(!b,R);p==null||p(T,R)}var I=ne(a,o,(n={},V(n,"".concat(a,"-checked"),b),V(n,"".concat(a,"-disabled"),c),n));return l.createElement("button",ve({},m,{type:"button",role:"switch","aria-checked":b,disabled:c,className:I,ref:t,onKeyDown:x,onClick:E}),u,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},d),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});GW.displayName="Switch";const kwe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=G(c(s).add(c(r).mul(2)).equal()),f=G(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:G(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${G(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Awe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Mwe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${G(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Dwe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:s}=e,c=`${t}-inner`,u=G(s(i).add(s(r).mul(2)).equal()),d=G(s(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},Pwe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:G(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),di(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Lwe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,s=2,c=o-s*2,u=i-s*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new un("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},Fwe=tn("Switch",e=>{const t=Bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Pwe(t),Dwe(t),Mwe(t),Awe(t),kwe(t)]},Lwe);var jwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:g}=e,v=jwe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,h]=on(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:y,direction:b,switch:S}=l.useContext(ct),C=l.useContext(Gr),x=(a??C)||o,E=y("switch",n),I=l.createElement("div",{className:`${E}-handle`},o&&l.createElement(Gi,{className:`${E}-loading-icon`})),[R,T,_]=Fwe(E),$=dr(r),D=ne(S==null?void 0:S.className,{[`${E}-small`]:$==="small",[`${E}-loading`]:o,[`${E}-rtl`]:b==="rtl"},i,s,T,_),P=Object.assign(Object.assign({},S==null?void 0:S.style),c),A=function(){h(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return R(l.createElement(rg,{component:"Switch"},l.createElement(GW,Object.assign({},v,{checked:m,onChange:A,prefixCls:E,className:D,style:P,disabled:x,ref:t,loadingIcon:I}))))}),va=Bwe;va.__ANT_SWITCH=!0;var gs={},Cg="rc-table-internal-hook";function Y$(e){var t=l.createContext(void 0),n=function(a){var o=a.value,i=a.children,s=l.useRef(o);s.current=o;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ie(c,1),d=u[0];return Wt(function(){xr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function oa(e,t){var n=zt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var p={};return t.forEach(function(g){p[g]=f[g]}),p}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=ie(c,2),d=u[1];return Wt(function(){if(!r)return;function f(p){var g=n(p);Uo(s.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),s.current}function zwe(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var i=Ho(a),s=function(u,d){var f=i?{ref:d}:{},p=l.useRef(0),g=l.useRef(u),v=t();return v!==null?l.createElement(a,ve({},u,f)):((!o||o(g.current,u))&&(p.current+=1),g.current=u,l.createElement(e.Provider,{value:p.current},l.createElement(a,ve({},u,f))))};return i?l.forwardRef(s):s}function r(a,o){var i=Ho(a),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(a,ve({},u,f))};return i?l.memo(l.forwardRef(s),o):l.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var X$=zwe(),qW=X$.makeImmutable,pd=X$.responseImmutable,Hwe=X$.useImmutableMark,_a=Y$(),KW=l.createContext({renderWithProps:!1}),Uwe="RC_TABLE_KEY";function Vwe(e){return e==null?[]:Array.isArray(e)?e:[e]}function b0(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,s=o||Vwe(i).join("-")||Uwe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function jT(e){return e!=null}function Wwe(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function Gwe(e,t,n,r,a,o){var i=l.useContext(KW),s=Hwe(),c=Qs(function(){if(jT(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Ha(e,u),f=d,p=void 0;if(a){var g=a(d,e,n);Wwe(g)?(f=g.children,p=g.props,i.renderWithProps=!0):f=g}return[f,p]},[s,e,r,t,a,n],function(u,d){if(o){var f=ie(u,2),p=f[1],g=ie(d,2),v=g[1];return o(v,p)}return i.renderWithProps?!0:!Uo(u,d,!0)});return c}function qwe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function Kwe(e,t){return oa(_a,function(n){var r=qwe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Ywe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function Xwe(e){var t,n,r,a,o,i,s,c,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,g=e.prefixCls,v=e.className,m=e.align,h=e.record,y=e.render,b=e.dataIndex,S=e.renderIndex,C=e.shouldCellUpdate,x=e.index,E=e.rowType,I=e.colSpan,R=e.rowSpan,T=e.fixLeft,_=e.fixRight,$=e.firstFixLeft,D=e.lastFixLeft,P=e.firstFixRight,A=e.lastFixRight,O=e.appendNode,k=e.additionalProps,N=k===void 0?{}:k,M=e.isSticky,L="".concat(g,"-cell"),F=oa(_a,["supportSticky","allColumnsFixedLeft","rowHoverable"]),j=F.supportSticky,B=F.allColumnsFixedLeft,z=F.rowHoverable,H=Gwe(h,b,S,d,y,C),U=ie(H,2),X=U[0],W=U[1],Y={},te=typeof T=="number"&&j,ee=typeof _=="number"&&j;te&&(Y.position="sticky",Y.left=T),ee&&(Y.position="sticky",Y.right=_);var Z=(t=(n=(r=W==null?void 0:W.colSpan)!==null&&r!==void 0?r:N.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,oe=(a=(o=(i=W==null?void 0:W.rowSpan)!==null&&i!==void 0?i:N.rowSpan)!==null&&o!==void 0?o:R)!==null&&a!==void 0?a:1,re=Kwe(x,oe),q=ie(re,2),Q=q[0],ae=q[1],se=zt(function(ue){var fe;h&&ae(x,x+oe-1),N==null||(fe=N.onMouseEnter)===null||fe===void 0||fe.call(N,ue)}),de=zt(function(ue){var fe;h&&ae(-1,-1),N==null||(fe=N.onMouseLeave)===null||fe===void 0||fe.call(N,ue)});if(Z===0||oe===0)return null;var he=(s=N.title)!==null&&s!==void 0?s:Ywe({rowType:E,ellipsis:f,children:X}),ye=ne(L,v,(c={},V(c,"".concat(L,"-fix-left"),te&&j),V(c,"".concat(L,"-fix-left-first"),$&&j),V(c,"".concat(L,"-fix-left-last"),D&&j),V(c,"".concat(L,"-fix-left-all"),D&&B&&j),V(c,"".concat(L,"-fix-right"),ee&&j),V(c,"".concat(L,"-fix-right-first"),P&&j),V(c,"".concat(L,"-fix-right-last"),A&&j),V(c,"".concat(L,"-ellipsis"),f),V(c,"".concat(L,"-with-append"),O),V(c,"".concat(L,"-fix-sticky"),(te||ee)&&M&&j),V(c,"".concat(L,"-row-hover"),!W&&Q),c),N.className,W==null?void 0:W.className),pe={};m&&(pe.textAlign=m);var J=K(K(K(K({},Y),N.style),pe),W==null?void 0:W.style),ce=X;return mt(ce)==="object"&&!Array.isArray(ce)&&!l.isValidElement(ce)&&(ce=null),f&&(D||P)&&(ce=l.createElement("span",{className:"".concat(L,"-content")},ce)),l.createElement(u,ve({},W,N,{className:ye,style:J,title:he,scope:p,onMouseEnter:z?se:void 0,onMouseLeave:z?de:void 0,colSpan:Z!==1?Z:null,rowSpan:oe!==1?oe:null}),O,ce)}const mc=l.memo(Xwe);function Z$(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},s,c;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,p=!1,g=n[t+1],v=n[e-1],m=g&&!g.fixed||v&&!v.fixed||n.every(function(C){return C.fixed==="left"});if(a==="rtl"){if(s!==void 0){var h=v&&v.fixed==="left";p=!h&&m}else if(c!==void 0){var y=g&&g.fixed==="right";f=!y&&m}}else if(s!==void 0){var b=g&&g.fixed==="left";u=!b&&m}else if(c!==void 0){var S=v&&v.fixed==="right";d=!S&&m}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var YW=l.createContext({});function Zwe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,s=e.align,c=oa(_a,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(YW),p=f.scrollColumnIndex,g=f.stickyOffsets,v=f.flattenColumns,m=n+o-1,h=m+1===p?o+1:o,y=Z$(n,n+h-1,v,g,d);return l.createElement(mc,ve({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:h,rowSpan:i,render:function(){return r}},y))}var Qwe=["children"];function Jwe(e){var t=e.children,n=xt(e,Qwe);return l.createElement("tr",n,t)}function y0(e){var t=e.children;return t}y0.Row=Jwe;y0.Cell=Zwe;function eCe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=oa(_a,"prefixCls"),o=r.length-1,i=r[o],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return l.createElement(YW.Provider,{value:s},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Om=pd(eCe);var XW=y0;function tCe(e){return null}function nCe(e){return null}function ZW(e,t,n,r,a,o,i){e.push({record:t,indent:n,index:i});var s=o(t),c=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?$-1:0),P=1;P<$;P++)D[P-1]=arguments[P];x==null||x.apply(void 0,[_].concat(D))},I;typeof g=="string"?I=g:typeof g=="function"&&(I=g(e,n,r));var R=b0(o);return K(K({},a),{},{columnsKey:R,nestExpandable:v,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:S,rowSupportExpand:m,expandable:h,rowProps:K(K({},C),{},{className:ne(I,C==null?void 0:C.className),onClick:E})})}function eG(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=oa(_a,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,g=u.componentWidth,v=u.horizonScroll,m=n;return(c?v&&g:p)&&(m=l.createElement("div",{style:{width:g-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},m)),l.createElement(r,{className:o,style:{display:i?null:"none"}},l.createElement(mc,{component:a,prefixCls:t,colSpan:s},m))}function tG(e,t,n,r,a){var o=e.record,i=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,p=e.expandIcon,g=e.expanded,v=e.hasNestChildren,m=e.onTriggerExpand,h=s[n],y=c[n],b;n===(u||0)&&d&&(b=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(i,"-row-indent indent-level-").concat(r)}),p({prefixCls:i,expanded:g,expandable:v,record:o,onExpand:m})));var S;return t.onCell&&(S=t.onCell(o,a)),{key:h,fixedInfo:y,appendCellNode:b,additionalCellProps:S||{}}}function rCe(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,i=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=JW(r,i,a,c),g=p.prefixCls,v=p.flattenColumns,m=p.expandedRowClassName,h=p.expandedRowRender,y=p.rowProps,b=p.expanded,S=p.rowSupportExpand,C=l.useRef(!1);C.current||(C.current=b);var x=m&&m(r,a,c),E=l.createElement(u,ve({},y,{"data-row-key":i,className:ne(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),y==null?void 0:y.className,c>=1?x:""),style:K(K({},n),y==null?void 0:y.style)}),v.map(function(T,_){var $=T.render,D=T.dataIndex,P=T.className,A=tG(p,T,_,c,a),O=A.key,k=A.fixedInfo,N=A.appendCellNode,M=A.additionalCellProps;return l.createElement(mc,ve({className:P,ellipsis:T.ellipsis,align:T.align,scope:T.rowScope,component:T.rowScope?f:d,prefixCls:g,key:O,record:r,index:a,renderIndex:o,dataIndex:D,render:$,shouldCellUpdate:T.shouldCellUpdate},k,{appendNode:N,additionalProps:M}))})),I;if(S&&(C.current||b)){var R=h(r,a,c+1,b);I=l.createElement(eG,{expanded:b,className:ne("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),x),prefixCls:g,component:u,cellComponent:d,colSpan:v.length,isEmpty:!1},R)}return l.createElement(l.Fragment,null,E,I)}const aCe=pd(rCe);function oCe(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(Ur,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function iCe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(Ur.Collection,{onBatchResize:function(o){o.forEach(function(i){var s=i.data,c=i.size;r(s,c.offsetWidth)})}},n.map(function(a){return l.createElement(oCe,{key:a,columnKey:a,onColumnResize:r})})))}function sCe(e){var t=e.data,n=e.measureColumnWidth,r=oa(_a,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,p=QW(t,d,u,c),g=l.useRef({renderWithProps:!1}),v=o(["body","wrapper"],"tbody"),m=o(["body","row"],"tr"),h=o(["body","cell"],"td"),y=o(["body","cell"],"th"),b;t.length?b=p.map(function(C,x){var E=C.record,I=C.indent,R=C.index,T=c(E,x);return l.createElement(aCe,{key:T,rowKey:T,record:E,index:x,renderIndex:R,rowComponent:m,cellComponent:h,scopeCellComponent:y,getRowKey:c,indent:I})}):b=l.createElement(eG,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:m,cellComponent:h,colSpan:s.length,isEmpty:!0},f);var S=b0(s);return l.createElement(KW.Provider,{value:g.current},l.createElement(v,{className:"".concat(a,"-tbody")},n&&l.createElement(iCe,{prefixCls:a,columnsKey:S,onColumnResize:i}),b))}const lCe=pd(sCe);var cCe=["expandable"],Mf="RC_TABLE_INTERNAL_COL_DEFINE";function uCe(e){var t=e.expandable,n=xt(e,cCe),r;return"expandable"in e?r=K(K({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var dCe=["columnType"];function nG(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=[],o=r||n.length,i=!1,s=o-1;s>=0;s-=1){var c=t[s],u=n&&n[s],d=u&&u[Mf];if(c||d||i){var f=d||{};f.columnType;var p=xt(f,dCe);a.unshift(l.createElement("col",ve({key:s,style:{width:c}},p))),i=!0}}return l.createElement("colgroup",null,a)}var fCe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function pCe(e,t){return l.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:i,prefixCls:d,key:g[m]},y,{additionalProps:b,rowType:"header"}))}))};function hCe(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var p={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,v=f.children;return v&&v.length>0&&(g=n(v,u,c+1).reduce(function(m,h){return m+h},0),p.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(p.rowSpan=f.rowSpan),p.colSpan=g,p.colEnd=p.colStart+g-1,t[c].push(p),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function bCe(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var g=yD(t,p.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),s=a,c=i/a,u=0,d=e.map(function(p){var g=K({},p),v=yD(t,g.width);if(v)g.width=v;else{var m=Math.floor(c);g.width=s===1?i:m,i-=m,s-=1}return u+=g.width,g});if(u0?K(K({},t),{},{children:rG(n)}):t})}function BT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&mt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,s="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(Oe(n),Oe(BT(c,s).map(function(u){return K({fixed:i},u)}))):[].concat(Oe(n),[K(K({key:s},r),{},{fixed:i})])},[])}function wCe(e){return e.map(function(t){var n=t.fixed,r=xt(t,SCe),a=n;return n==="left"?a="right":n==="right"&&(a="left"),K({fixed:a},r)})}function CCe(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,g=e.direction,v=e.expandRowByClick,m=e.columnWidth,h=e.fixed,y=e.scrollWidth,b=e.clientWidth,S=l.useMemo(function(){var D=r||Q$(a)||[];return rG(D.slice())},[r,a]),C=l.useMemo(function(){if(o){var D,P=S.slice();if(!P.includes(gs)){var A=p||0;A>=0&&P.splice(A,0,gs)}var O=P.indexOf(gs);P=P.filter(function(L,F){return L!==gs||F===O});var k=S[O],N;(h==="left"||h)&&!p?N="left":(h==="right"||h)&&p===S.length?N="right":N=k?k.fixed:null;var M=(D={},V(D,Mf,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),V(D,"title",s),V(D,"fixed",N),V(D,"className","".concat(n,"-row-expand-icon-cell")),V(D,"width",m),V(D,"render",function(F,j,B){var z=c(j,B),H=i.has(z),U=f?f(j):!0,X=d({prefixCls:n,expanded:H,expandable:U,record:j,onExpand:u});return v?l.createElement("span",{onClick:function(Y){return Y.stopPropagation()}},X):X}),D);return P.map(function(L){return L===gs?M:L})}return S.filter(function(L){return L!==gs})},[o,S,c,i,d,g]),x=l.useMemo(function(){var D=C;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,C,g]),E=l.useMemo(function(){return g==="rtl"?wCe(BT(x)):BT(x)},[x,g,y]),I=l.useMemo(function(){for(var D=-1,P=E.length-1;P>=0;P-=1){var A=E[P].fixed;if(A==="left"||A===!0){D=P;break}}if(D>=0)for(var O=0;O<=D;O+=1){var k=E[O].fixed;if(k!=="left"&&k!==!0)return!0}var N=E.findIndex(function(F){var j=F.fixed;return j==="right"});if(N>=0)for(var M=N;M=f&&(M=f-p),i({scrollLeft:M/f*(d+2)}),b.current.x=A.pageX},$=function(){I.current=jt(function(){if(o.current){var A=XM(o.current).top,O=A+o.current.offsetHeight,k=c===window?document.documentElement.scrollTop+window.innerHeight:XM(c).top+c.clientHeight;O-e3()<=k||A>=k-s?y(function(N){return K(K({},N),{},{isHiddenScrollBar:!0})}):y(function(N){return K(K({},N),{},{isHiddenScrollBar:!1})})}})},D=function(A){y(function(O){return K(K({},O),{},{scrollLeft:A/d*f||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:D,checkScrollBarVisible:$}}),l.useEffect(function(){var P=_m(document.body,"mouseup",R,!1),A=_m(document.body,"mousemove",_,!1);return $(),function(){P.remove(),A.remove()}},[p,x]),l.useEffect(function(){var P=_m(c,"scroll",$,!1),A=_m(window,"resize",$,!1);return function(){P.remove(),A.remove()}},[c]),l.useEffect(function(){h.isHiddenScrollBar||y(function(P){var A=o.current;return A?K(K({},P),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):P})},[h.isHiddenScrollBar]),d<=f||!p||h.isHiddenScrollBar?null:l.createElement("div",{style:{height:e3(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:T,ref:g,className:ne("".concat(u,"-sticky-scroll-bar"),V({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))};const kCe=l.forwardRef(NCe);var oG="rc-table",ACe=[],MCe={};function DCe(){return"No Data"}function PCe(e,t){var n,r=K({rowKey:"key",prefixCls:oG,emptyText:DCe},e),a=r.prefixCls,o=r.className,i=r.rowClassName,s=r.style,c=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,g=r.title,v=r.footer,m=r.summary,h=r.caption,y=r.id,b=r.showHeader,S=r.components,C=r.emptyText,x=r.onRow,E=r.onHeaderRow,I=r.onScroll,R=r.internalHooks,T=r.transformColumns,_=r.internalRefs,$=r.tailor,D=r.getContainerWidth,P=r.sticky,A=r.rowHoverable,O=A===void 0?!0:A,k=c||ACe,N=!!k.length,M=R===Cg,L=l.useCallback(function(Le,it){return Ha(S,Le)||it},[S]),F=l.useMemo(function(){return typeof u=="function"?u:function(Le){var it=Le&&Le[u];return it}},[u]),j=L(["body"]),B=_Ce(),z=ie(B,3),H=z[0],U=z[1],X=z[2],W=ICe(r,k,F),Y=ie(W,6),te=Y[0],ee=Y[1],Z=Y[2],oe=Y[3],re=Y[4],q=Y[5],Q=d==null?void 0:d.x,ae=l.useState(0),se=ie(ae,2),de=se[0],he=se[1],ye=CCe(K(K(K({},r),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:Z,getRowKey:F,onTriggerExpand:q,expandIcon:oe,expandIconColumnIndex:te.expandIconColumnIndex,direction:p,scrollWidth:M&&$&&typeof Q=="number"?Q:null,clientWidth:de}),M?T:null),pe=ie(ye,4),J=pe[0],ce=pe[1],ue=pe[2],fe=pe[3],be=ue??Q,Ee=l.useMemo(function(){return{columns:J,flattenColumns:ce}},[J,ce]),Re=l.useRef(),Fe=l.useRef(),Ce=l.useRef(),ze=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Re.current,scrollTo:function(it){var Nt;if(Ce.current instanceof HTMLElement){var an=it.index,wn=it.top,Na=it.key;if(wn){var ka;(ka=Ce.current)===null||ka===void 0||ka.scrollTo({top:wn})}else{var Io,Si=Na??F(k[an]);(Io=Ce.current.querySelector('[data-row-key="'.concat(Si,'"]')))===null||Io===void 0||Io.scrollIntoView()}}else(Nt=Ce.current)!==null&&Nt!==void 0&&Nt.scrollTo&&Ce.current.scrollTo(it)}}});var Pe=l.useRef(),Ae=l.useState(!1),Se=ie(Ae,2),_e=Se[0],we=Se[1],Te=l.useState(!1),me=ie(Te,2),xe=me[0],Be=me[1],ke=aG(new Map),Ne=ie(ke,2),He=Ne[0],Ge=Ne[1],je=b0(ce),qe=je.map(function(Le){return He.get(Le)}),tt=l.useMemo(function(){return qe},[qe.join("_")]),Ye=OCe(tt,ce,p),ft=d&&jT(d.y),ht=d&&jT(be)||!!te.fixed,Ue=ht&&ce.some(function(Le){var it=Le.fixed;return it}),We=l.useRef(),Ke=$Ce(P,a),st=Ke.isSticky,Tt=Ke.offsetHeader,Rt=Ke.offsetSummary,Ft=Ke.offsetScroll,pt=Ke.stickyClassName,lt=Ke.container,Je=l.useMemo(function(){return m==null?void 0:m(k)},[m,k]),ut=(ft||st)&&l.isValidElement(Je)&&Je.type===y0&&Je.props.fixed,It,at,bt;ft&&(at={overflowY:"scroll",maxHeight:d.y}),ht&&(It={overflowX:"auto"},ft||(at={overflowY:"hidden"}),bt={width:be===!0?"auto":be,minWidth:"100%"});var yt=l.useCallback(function(Le,it){ad(Re.current)&&Ge(function(Nt){if(Nt.get(Le)!==it){var an=new Map(Nt);return an.set(Le,it),an}return Nt})},[]),et=RCe(),ot=ie(et,2),Qe=ot[0],Xe=ot[1];function gt(Le,it){it&&(typeof it=="function"?it(Le):it.scrollLeft!==Le&&(it.scrollLeft=Le,it.scrollLeft!==Le&&setTimeout(function(){it.scrollLeft=Le},0)))}var Et=zt(function(Le){var it=Le.currentTarget,Nt=Le.scrollLeft,an=p==="rtl",wn=typeof Nt=="number"?Nt:it.scrollLeft,Na=it||MCe;if(!Xe()||Xe()===Na){var ka;Qe(Na),gt(wn,Fe.current),gt(wn,Ce.current),gt(wn,Pe.current),gt(wn,(ka=We.current)===null||ka===void 0?void 0:ka.setScrollLeft)}var Io=it||Fe.current;if(Io){var Si=Io.scrollWidth,ll=Io.clientWidth;if(Si===ll){we(!1),Be(!1);return}an?(we(-wn0)):(we(wn>0),Be(wn1?h-A:0,k=K(K(K({},R),u),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:O,pointerEvents:"auto"}),N=l.useMemo(function(){return f?D<=1:_===0||D===0||D>1},[D,_,f]);N?k.visibility="hidden":f&&(k.height=p==null?void 0:p(D));var M=N?function(){return null}:g,L={};return(D===0||_===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(mc,ve({className:ne(m,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:C,record:c,index:o,renderIndex:s,dataIndex:v,render:M,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:E,additionalProps:K(K({},I),{},{style:k},L)}))}var BCe=["data","index","className","rowKey","style","extra","getHeight"],zCe=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=xt(e,BCe),d=n.record,f=n.indent,p=n.index,g=oa(_a,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=g.scrollX,m=g.flattenColumns,h=g.prefixCls,y=g.fixColumn,b=g.componentWidth,S=oa(J$,["getComponent"]),C=S.getComponent,x=JW(d,o,r,f),E=C(["body","row"],"div"),I=C(["body","cell"],"div"),R=x.rowSupportExpand,T=x.expanded,_=x.rowProps,$=x.expandedRowRender,D=x.expandedRowClassName,P;if(R&&T){var A=$(d,r,f+1,T),O=D==null?void 0:D(d,r,f),k={};y&&(k={style:V({},"--virtual-width","".concat(b,"px"))});var N="".concat(h,"-expanded-row-cell");P=l.createElement(E,{className:ne("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(f+1),O)},l.createElement(mc,{component:I,prefixCls:h,className:ne(N,V({},"".concat(N,"-fixed"),y)),additionalProps:k},A))}var M=K(K({},i),{},{width:v});s&&(M.position="absolute",M.pointerEvents="none");var L=l.createElement(E,ve({},_,u,{"data-row-key":o,ref:R?null:t,className:ne(a,"".concat(h,"-row"),_==null?void 0:_.className,V({},"".concat(h,"-row-extra"),s)),style:K(K({},M),_==null?void 0:_.style)}),m.map(function(F,j){return l.createElement(jCe,{key:j,component:I,rowInfo:x,column:F,colIndex:j,indent:f,index:r,renderIndex:p,record:d,inverse:s,getHeight:c})}));return R?l.createElement("div",{ref:t},L,P):L}),CD=pd(zCe),HCe=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=oa(_a,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),o=a.flattenColumns,i=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.emptyNode,p=a.scrollX,g=oa(J$),v=g.sticky,m=g.scrollY,h=g.listItemHeight,y=g.getComponent,b=g.onScroll,S=l.useRef(),C=QW(n,d,c,s),x=l.useMemo(function(){var k=0;return o.map(function(N){var M=N.width,L=N.key;return k+=M,[L,M,k]})},[o]),E=l.useMemo(function(){return x.map(function(k){return k[2]})},[x]);l.useEffect(function(){x.forEach(function(k){var N=ie(k,2),M=N[0],L=N[1];i(M,L)})},[x]),l.useImperativeHandle(t,function(){var k={scrollTo:function(M){var L;(L=S.current)===null||L===void 0||L.scrollTo(M)}};return Object.defineProperty(k,"scrollLeft",{get:function(){var M;return((M=S.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var L;(L=S.current)===null||L===void 0||L.scrollTo({left:M})}}),k});var I=function(N,M){var L,F=(L=C[M])===null||L===void 0?void 0:L.record,j=N.onCell;if(j){var B,z=j(F,M);return(B=z==null?void 0:z.rowSpan)!==null&&B!==void 0?B:1}return 1},R=function(N){var M=N.start,L=N.end,F=N.getSize,j=N.offsetY;if(L<0)return null;for(var B=o.filter(function(q){return I(q,M)===0}),z=M,H=function(Q){if(B=B.filter(function(ae){return I(ae,Q)===0}),!B.length)return z=Q,1},U=M;U>=0&&!H(U);U-=1);for(var X=o.filter(function(q){return I(q,L)!==1}),W=L,Y=function(Q){if(X=X.filter(function(ae){return I(ae,Q)!==1}),!X.length)return W=Math.max(Q-1,L),1},te=L;te1})&&ee.push(Q)},oe=z;oe<=W;oe+=1)Z(oe);var re=ee.map(function(q){var Q=C[q],ae=s(Q.record,q),se=function(ye){var pe=q+ye-1,J=s(C[pe].record,pe),ce=F(ae,J);return ce.bottom-ce.top},de=F(ae);return l.createElement(CD,{key:q,data:Q,rowKey:ae,index:q,style:{top:-j+de.top},extra:!0,getHeight:se})});return re},T=l.useMemo(function(){return{columnsOffset:E}},[E]),_="".concat(u,"-tbody"),$=y(["body","wrapper"]),D=y(["body","row"],"div"),P=y(["body","cell"],"div"),A;if(C.length){var O={};v&&(O.position="sticky",O.bottom=0,mt(v)==="object"&&v.offsetScroll&&(O.bottom=v.offsetScroll)),A=l.createElement(Ub,{fullHeight:!1,ref:S,prefixCls:"".concat(_,"-virtual"),styles:{horizontalScrollBar:O},className:_,height:m,itemHeight:h||24,data:C,itemKey:function(N){return s(N.record)},component:$,scrollWidth:p,onVirtualScroll:function(N){var M=N.x;r({scrollLeft:M})},onScroll:b,extraRender:R},function(k,N,M){var L=s(k.record,N);return l.createElement(CD,{data:k,rowKey:L,index:N,style:M.style})})}else A=l.createElement(D,{className:ne("".concat(u,"-placeholder"))},l.createElement(mc,{component:P,prefixCls:u},f));return l.createElement(sG.Provider,{value:T},A)}),UCe=pd(HCe),VCe=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(UCe,{ref:r,data:t,onScroll:a})};function WCe(e,t){var n=e.columns,r=e.scroll,a=e.sticky,o=e.prefixCls,i=o===void 0?oG:o,s=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},p=f.x,g=f.y;typeof p!="number"&&(p=1),typeof g!="number"&&(g=500);var v=zt(function(y,b){return Ha(u,y)||b}),m=zt(d),h=l.useMemo(function(){return{sticky:a,scrollY:g,listItemHeight:c,getComponent:v,onScroll:m}},[a,g,c,v,m]);return l.createElement(J$.Provider,{value:h},l.createElement(gd,ve({},e,{className:ne(s,"".concat(i,"-virtual")),scroll:K(K({},r),{},{x:p}),components:K(K({},u),{},{body:VCe}),columns:n,internalHooks:Cg,tailor:!0,ref:t})))}var GCe=l.forwardRef(WCe);function lG(e){return qW(GCe,e)}lG();const qCe=e=>null,KCe=e=>null;var eO=l.createContext(null),YCe=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function Ti(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function tO(e){return e.split("-")}function exe(e,t){var n=[],r=Sa(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,c=i.children;n.push(s),a(c)})}return a(r.children),n}function txe(e){if(e.parent){var t=tO(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function nxe(e){var t=tO(e.pos);return Number(t[t.length-1])===0}function ID(e,t,n,r,a,o,i,s,c,u){var d,f=e.clientX,p=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,m=g.height,h=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),y=(h-12)/r,b=c.filter(function(k){var N;return(N=s[k])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),S=Sa(s,n.props.eventKey);if(p-1.5?o({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:A,dropPosition:0})?_=0:o({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:$,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:T,dropContainerKey:_===0?null:((d=S.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function TD(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function IS(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return pn(!1,"`checkedKeys` is not an array or an object"),null;return t}function zT(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Sa(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),Oe(n)}function rxe(e){const[t,n]=l.useState(null);return[l.useCallback((o,i,s)=>{const c=t??o,u=Math.min(c||0,o),d=Math.max(c||0,o),f=i.slice(u,d+1).map(v=>e(v)),p=f.some(v=>!s.has(v)),g=[];return f.forEach(v=>{p?(s.has(v)||g.push(v),s.add(v)):(s.delete(v),g.push(v))}),n(p?d:null),g},[t]),o=>{n(o)}]}const ds={},HT="SELECT_ALL",UT="SELECT_INVERT",VT="SELECT_NONE",RD=[],cG=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Oe(n),Oe(cG(e,r[e]))))}),n},axe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:i,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:v,fixed:m,renderCell:h,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:S,data:C,pageData:x,getRecordByKey:E,getRowKey:I,expandType:R,childrenColumnName:T,locale:_,getPopupContainer:$}=e,D=Js(),[P,A]=rxe(Z=>Z),[O,k]=on(r||a||RD,{value:r}),N=l.useRef(new Map),M=l.useCallback(Z=>{if(n){const oe=new Map;Z.forEach(re=>{let q=E(re);!q&&N.current.has(re)&&(q=N.current.get(re)),oe.set(re,q)}),N.current=oe}},[E,n]);l.useEffect(()=>{M(O)},[O]);const{keyEntities:L}=l.useMemo(()=>{if(b)return{keyEntities:null};let Z=C;if(n){const oe=new Set(C.map((q,Q)=>I(q,Q))),re=Array.from(N.current).reduce((q,Q)=>{let[ae,se]=Q;return oe.has(ae)?q:q.concat(se)},[]);Z=[].concat(Oe(Z),Oe(re))}return c0(Z,{externalGetKey:I,childrenPropName:T})},[C,I,b,T,n]),F=l.useMemo(()=>cG(T,x),[T,x]),j=l.useMemo(()=>{const Z=new Map;return F.forEach((oe,re)=>{const q=I(oe,re),Q=(o?o(oe):null)||{};Z.set(q,Q)}),Z},[F,I,o]),B=l.useCallback(Z=>{var oe;return!!(!((oe=j.get(I(Z)))===null||oe===void 0)&&oe.disabled)},[j,I]),[z,H]=l.useMemo(()=>{if(b)return[O||[],[]];const{checkedKeys:Z,halfCheckedKeys:oe}=Bi(O,!0,L,B);return[Z||[],oe]},[O,b,L,B]),U=l.useMemo(()=>{const Z=g==="radio"?z.slice(0,1):z;return new Set(Z)},[z,g]),X=l.useMemo(()=>g==="radio"?new Set:new Set(H),[H,g]);l.useEffect(()=>{t||k(RD)},[!!t]);const W=l.useCallback((Z,oe)=>{let re,q;M(Z),n?(re=Z,q=Z.map(Q=>N.current.get(Q))):(re=[],q=[],Z.forEach(Q=>{const ae=E(Q);ae!==void 0&&(re.push(Q),q.push(ae))})),k(re),i==null||i(re,q,{type:oe})},[k,E,i,n]),Y=l.useCallback((Z,oe,re,q)=>{if(s){const Q=re.map(ae=>E(ae));s(E(Z),oe,Q,q)}W(re,"single")},[s,E,W]),te=l.useMemo(()=>!v||y?null:(v===!0?[HT,UT,VT]:v).map(oe=>oe===HT?{key:"all",text:_.selectionAll,onSelect(){W(C.map((re,q)=>I(re,q)).filter(re=>{const q=j.get(re);return!(q!=null&&q.disabled)||U.has(re)}),"all")}}:oe===UT?{key:"invert",text:_.selectInvert,onSelect(){const re=new Set(U);x.forEach((Q,ae)=>{const se=I(Q,ae),de=j.get(se);de!=null&&de.disabled||(re.has(se)?re.delete(se):re.add(se))});const q=Array.from(re);u&&(D.deprecated(!1,"onSelectInvert","onChange"),u(q)),W(q,"invert")}}:oe===VT?{key:"none",text:_.selectNone,onSelect(){d==null||d(),W(Array.from(U).filter(re=>{const q=j.get(re);return q==null?void 0:q.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:function(){for(var re,q,Q=arguments.length,ae=new Array(Q),se=0;se{var oe;if(!t)return Z.filter(Ce=>Ce!==ds);let re=Oe(Z);const q=new Set(U),Q=F.map(I).filter(Ce=>!j.get(Ce).disabled),ae=Q.every(Ce=>q.has(Ce)),se=Q.some(Ce=>q.has(Ce)),de=()=>{const Ce=[];ae?Q.forEach(Pe=>{q.delete(Pe),Ce.push(Pe)}):Q.forEach(Pe=>{q.has(Pe)||(q.add(Pe),Ce.push(Pe))});const ze=Array.from(q);c==null||c(!ae,ze.map(Pe=>E(Pe)),Ce.map(Pe=>E(Pe))),W(ze,"all"),A(null)};let he,ye;if(g!=="radio"){let Ce;if(te){const _e={getPopupContainer:$,items:te.map((we,Te)=>{const{key:me,text:xe,onSelect:Be}=we;return{key:me??Te,onClick:()=>{Be==null||Be(Q)},label:xe}})};Ce=l.createElement("div",{className:`${S}-selection-extra`},l.createElement(f0,{menu:_e,getPopupContainer:$},l.createElement("span",null,l.createElement(Gb,null))))}const ze=F.map((_e,we)=>{const Te=I(_e,we),me=j.get(Te)||{};return Object.assign({checked:q.has(Te)},me)}).filter(_e=>{let{disabled:we}=_e;return we}),Pe=!!ze.length&&ze.length===F.length,Ae=Pe&&ze.every(_e=>{let{checked:we}=_e;return we}),Se=Pe&&ze.some(_e=>{let{checked:we}=_e;return we});ye=l.createElement(Xi,{checked:Pe?Ae:!!F.length&&ae,indeterminate:Pe?!Ae&&Se:!ae&&se,onChange:de,disabled:F.length===0||Pe,"aria-label":Ce?"Custom selection":"Select all",skipGroup:!0}),he=!y&&l.createElement("div",{className:`${S}-selection`},ye,Ce)}let pe;g==="radio"?pe=(Ce,ze,Pe)=>{const Ae=I(ze,Pe),Se=q.has(Ae);return{node:l.createElement(Va,Object.assign({},j.get(Ae),{checked:Se,onClick:_e=>_e.stopPropagation(),onChange:_e=>{q.has(Ae)||Y(Ae,!0,[Ae],_e.nativeEvent)}})),checked:Se}}:pe=(Ce,ze,Pe)=>{var Ae;const Se=I(ze,Pe),_e=q.has(Se),we=X.has(Se),Te=j.get(Se);let me;return R==="nest"?me=we:me=(Ae=Te==null?void 0:Te.indeterminate)!==null&&Ae!==void 0?Ae:we,{node:l.createElement(Xi,Object.assign({},Te,{indeterminate:me,checked:_e,skipGroup:!0,onClick:xe=>xe.stopPropagation(),onChange:xe=>{let{nativeEvent:Be}=xe;const{shiftKey:ke}=Be,Ne=Q.findIndex(Ge=>Ge===Se),He=z.some(Ge=>Q.includes(Ge));if(ke&&b&&He){const Ge=P(Ne,Q,q),je=Array.from(q);f==null||f(!_e,je.map(qe=>E(qe)),Ge.map(qe=>E(qe))),W(je,"multiple")}else{const Ge=z;if(b){const je=_e?Jo(Ge,Se):Ti(Ge,Se);Y(Se,!_e,je,Be)}else{const je=Bi([].concat(Oe(Ge),[Se]),!0,L,B),{checkedKeys:qe,halfCheckedKeys:tt}=je;let Ye=qe;if(_e){const ft=new Set(qe);ft.delete(Se),Ye=Bi(Array.from(ft),{checked:!1,halfCheckedKeys:tt},L,B).checkedKeys}Y(Se,!_e,Ye,Be)}}A(_e?null:Ne)}})),checked:_e}};const J=(Ce,ze,Pe)=>{const{node:Ae,checked:Se}=pe(Ce,ze,Pe);return h?h(Se,ze,Pe,Ae):Ae};if(!re.includes(ds))if(re.findIndex(Ce=>{var ze;return((ze=Ce[Mf])===null||ze===void 0?void 0:ze.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...ze]=re;re=[Ce,ds].concat(Oe(ze))}else re=[ds].concat(Oe(re));const ce=re.indexOf(ds);re=re.filter((Ce,ze)=>Ce!==ds||ze===ce);const ue=re[ce-1],fe=re[ce+1];let be=m;be===void 0&&((fe==null?void 0:fe.fixed)!==void 0?be=fe.fixed:(ue==null?void 0:ue.fixed)!==void 0&&(be=ue.fixed)),be&&ue&&((oe=ue[Mf])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&ue.fixed===void 0&&(ue.fixed=be);const Ee=ne(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:v&&g==="checkbox"}),Re=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ye):t.columnTitle:he,Fe={fixed:be,width:p,className:`${S}-selection-column`,title:Re(),render:J,onCell:t.onCell,[Mf]:{className:Ee}};return re.map(Ce=>Ce===ds?Fe:Ce)},[I,F,t,z,U,X,p,te,R,j,f,Y,B]),U]};function oxe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function ixe(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):oxe(r,n)})}function sxe(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:ne(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&o,[`${s}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function lxe(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),s=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);o=r-s-c}return o}}const Vs=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function md(e,t){return t?`${t}-${e}`:`${e}`}const S0=(e,t)=>typeof e=="function"?e(t):e,cxe=(e,t)=>{const n=S0(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function uxe(e){const t=l.useRef(e),n=s$();return[()=>t.current,r=>{t.current=r,n()}]}function dxe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return l.createElement("div",{style:a})}function uG(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function fxe(e,t){var n=l.useState(!1),r=ie(n,2),a=r[0],o=r[1];Wt(function(){if(a)return e(),function(){t()}},[a]),Wt(function(){return o(!0),function(){o(!1)}},[])}var pxe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],dG=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,p=xt(t,pxe),g=l.useState(!0),v=ie(g,2),m=v[0],h=v[1],y=l.useContext(eO),b=y.prefixCls,S=i&&s!=="hide";Wt(function(){i&&S!==m&&h(S)},[i]);var C=function(){i&&c()},x=l.useRef(!1),E=function(){i&&!x.current&&(x.current=!0,u())};fxe(C,E);var I=function(T){S===T&&E()};return i?l.createElement(qr,ve({ref:n,visible:m},o,{motionAppear:s==="show",onVisibleChanged:I}),function(R,T){var _=R.className,$=R.style;return l.createElement("div",{ref:T,className:ne("".concat(b,"-treenode-motion"),_),style:$},i.map(function(D){var P=Object.assign({},(uG(D.data),D.data)),A=D.title,O=D.key,k=D.isStart,N=D.isEnd;delete P.children;var M=kf(O,f);return l.createElement(Uu,ve({},P,M,{title:A,active:d,data:D.data,key:O,isStart:k,isEnd:N}))}))}):l.createElement(Uu,ve({domRef:n,className:r,style:a},p,{active:d}))};dG.displayName="MotionTreeNode";var gxe=l.forwardRef(dG);function mxe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var pG=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,m=e.motion,h=e.height,y=e.itemHeight,b=e.virtual,S=e.focusable,C=e.activeItem,x=e.focused,E=e.tabIndex,I=e.onKeyDown,R=e.onFocus,T=e.onBlur,_=e.onActiveChange,$=e.onListChangeStart,D=e.onListChangeEnd,P=xt(e,hxe),A=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(pe){A.current.scrollTo(pe)},getIndentWidth:function(){return O.current.offsetWidth}}});var k=l.useState(a),N=ie(k,2),M=N[0],L=N[1],F=l.useState(r),j=ie(F,2),B=j[0],z=j[1],H=l.useState(r),U=ie(H,2),X=U[0],W=U[1],Y=l.useState([]),te=ie(Y,2),ee=te[0],Z=te[1],oe=l.useState(null),re=ie(oe,2),q=re[0],Q=re[1],ae=l.useRef(r);ae.current=r;function se(){var ye=ae.current;z(ye),W(ye),Z([]),Q(null),D()}Wt(function(){L(a);var ye=mxe(M,a);if(ye.key!==null)if(ye.add){var pe=B.findIndex(function(Ee){var Re=Ee.key;return Re===ye.key}),J=ND(_D(B,r,ye.key),b,h,y),ce=B.slice();ce.splice(pe+1,0,OD),W(ce),Z(J),Q("show")}else{var ue=r.findIndex(function(Ee){var Re=Ee.key;return Re===ye.key}),fe=ND(_D(r,B,ye.key),b,h,y),be=r.slice();be.splice(ue+1,0,OD),W(be),Z(fe),Q("hide")}else B!==r&&(z(r),W(r))},[a,r]),l.useEffect(function(){p||se()},[p]);var de=m?X:r,he={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:v,keyEntities:d};return l.createElement(l.Fragment,null,x&&C&&l.createElement("span",{style:$D,"aria-live":"assertive"},bxe(C)),l.createElement("div",null,l.createElement("input",{style:$D,disabled:S===!1||f,tabIndex:S!==!1?E:null,onKeyDown:I,onFocus:R,onBlur:T,value:"",onChange:vxe,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),l.createElement(Ub,ve({},P,{data:de,itemKey:kD,height:h,fullHeight:!1,virtual:b,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:A,onVisibleChange:function(pe,J){var ce=new Set(pe),ue=J.filter(function(fe){return!ce.has(fe)});ue.some(function(fe){return kD(fe)===tc})&&se()}}),function(ye){var pe=ye.pos,J=Object.assign({},(uG(ye.data),ye.data)),ce=ye.title,ue=ye.key,fe=ye.isStart,be=ye.isEnd,Ee=Sg(ue,pe);delete J.key,delete J.children;var Re=kf(Ee,he);return l.createElement(gxe,ve({},J,Re,{title:ce,active:!!C&&ue===C.key,pos:pe,data:ye.data,isStart:fe,isEnd:be,motion:m,motionNodes:ue===tc?ee:null,motionType:q,onMotionStart:$,onMotionEnd:se,treeNodeRequiredProps:he,onMouseMove:function(){_(null)}}))}))});pG.displayName="NodeList";var yxe=10,w0=function(e){Qa(n,e);var t=xo(n);function n(){var r;Ln(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,g=f.dropPosition,v=f.dropTargetKey,m=f.dropTargetPos,h=f.dropAllowed;if(h){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),v!==null){var b=K(K({},kf(v,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===v,data:Sa(r.state.keyEntities,v).node}),S=p.indexOf(v)!==-1;pn(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=tO(m),x={event:s,node:pr(b),dragNode:r.dragNode?pr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:g!==0,dropPosition:g+Number(C[C.length-1])};d||y==null||y(x),r.dragNode=null}}}),V(Ve(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),V(Ve(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,g=c.key,v=c.isLeaf;if(!(v||s.shiftKey||s.metaKey||s.ctrlKey)){var m=f.filter(function(y){return y.key===g})[0],h=pr(K(K({},kf(g,r.getTreeNodeRequiredProps())),{},{data:m.data}));r.setExpandedKeys(p?Jo(d,g):Ti(d,g)),r.onNodeExpand(s,h)}}),V(Ve(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ve(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ve(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,g=r.props,v=g.onSelect,m=g.multiple,h=c.selected,y=c[p.key],b=!h;b?m?u=Ti(u,y):u=[y]:u=Jo(u,y);var S=u.map(function(C){var x=Sa(f,C);return x?x.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),v==null||v(u,{event:"select",selected:b,node:c,selectedNodes:S,nativeEvent:s.nativeEvent})}),V(Ve(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,p=d.checkedKeys,g=d.halfCheckedKeys,v=r.props,m=v.checkStrictly,h=v.onCheck,y=c.key,b,S={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(m){var C=u?Ti(p,y):Jo(p,y),x=Jo(g,y);b={checked:C,halfChecked:x},S.checkedNodes=C.map(function($){return Sa(f,$)}).filter(function($){return $}).map(function($){return $.node}),r.setUncontrolledState({checkedKeys:C})}else{var E=Bi([].concat(Oe(p),[y]),!0,f),I=E.checkedKeys,R=E.halfCheckedKeys;if(!u){var T=new Set(I);T.delete(y);var _=Bi(Array.from(T),{checked:!1,halfCheckedKeys:R},f);I=_.checkedKeys,R=_.halfCheckedKeys}b=I,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=R,I.forEach(function($){var D=Sa(f,$);if(D){var P=D.node,A=D.pos;S.checkedNodes.push(P),S.checkedNodesPositions.push({node:P,pos:A})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:R})}h==null||h(b,S)}),V(Ve(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Sa(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var p=new Promise(function(g,v){r.setState(function(m){var h=m.loadedKeys,y=h===void 0?[]:h,b=m.loadingKeys,S=b===void 0?[]:b,C=r.props,x=C.loadData,E=C.onLoad;if(!x||y.indexOf(u)!==-1||S.indexOf(u)!==-1)return null;var I=x(s);return I.then(function(){var R=r.state.loadedKeys,T=Ti(R,u);E==null||E(T,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:T}),r.setState(function(_){return{loadingKeys:Jo(_.loadingKeys,u)}}),g()}).catch(function(R){if(r.setState(function(_){return{loadingKeys:Jo(_.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=yxe){var T=r.state.loadedKeys;pn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ti(T,u)}),g()}v(R)}),{loadingKeys:Ti(S,u)}})});return p.catch(function(){}),p}}),V(Ve(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),V(Ve(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),V(Ve(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),V(Ve(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(s).forEach(function(g){if(g in r.props){f=!1;return}d=!0,p[g]=s[g]}),d&&(!c||f)&&r.setState(K(K({},p),u))}}),V(Ve(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Fn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,p=a.dropTargetKey,g=a.dropPosition,v=a.dragOverNodeKey,m=a.indent,h=this.props,y=h.prefixCls,b=h.className,S=h.style,C=h.showLine,x=h.focusable,E=h.tabIndex,I=E===void 0?0:E,R=h.selectable,T=h.showIcon,_=h.icon,$=h.switcherIcon,D=h.draggable,P=h.checkable,A=h.checkStrictly,O=h.disabled,k=h.motion,N=h.loadData,M=h.filterTreeNode,L=h.height,F=h.itemHeight,j=h.virtual,B=h.titleRender,z=h.dropIndicatorRender,H=h.onContextMenu,U=h.onScroll,X=h.direction,W=h.rootClassName,Y=h.rootStyle,te=Pn(this.props,{aria:!0,data:!0}),ee;return D&&(mt(D)==="object"?ee=D:typeof D=="function"?ee={nodeDraggable:D}:ee={}),l.createElement(eO.Provider,{value:{prefixCls:y,selectable:R,showIcon:T,icon:_,switcherIcon:$,draggable:ee,draggingNodeKey:c,checkable:P,checkStrictly:A,disabled:O,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:g,dragOverNodeKey:v,indent:m,direction:X,dropIndicatorRender:z,loadData:N,filterTreeNode:M,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:ne(y,b,W,V(V(V({},"".concat(y,"-show-line"),C),"".concat(y,"-focused"),o),"".concat(y,"-active-focused"),u!==null)),style:Y},l.createElement(pG,ve({ref:this.listRef,prefixCls:y,style:S,data:i,disabled:O,selectable:R,checkable:!!P,motion:k,dragging:c!==null,height:L,itemHeight:F,virtual:j,focusable:x,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:U},this.getTreeNodeRequiredProps(),te))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function c(E){return!i&&E in a||i&&i[E]!==a[E]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=Hu(a.fieldNames),s.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(pn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=OV(a.children)),u){s.treeData=u;var f=c0(u,{fieldNames:d});s.keyEntities=K(V({},tc,fG),f.keyEntities)}var p=s.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?zT(a.expandedKeys,p):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=K({},p);delete g[tc],s.expandedKeys=Object.keys(g).map(function(E){return g[E].key})}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?zT(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var v=mS(u||o.treeData,s.expandedKeys||o.expandedKeys,d);s.flattenNodes=v}if(a.selectable&&(c("selectedKeys")?s.selectedKeys=TD(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=TD(a.defaultSelectedKeys,a))),a.checkable){var m;if(c("checkedKeys")?m=IS(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?m=IS(a.defaultCheckedKeys)||{}:u&&(m=IS(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),m){var h=m,y=h.checkedKeys,b=y===void 0?[]:y,S=h.halfCheckedKeys,C=S===void 0?[]:S;if(!a.checkStrictly){var x=Bi(b,!0,p);b=x.checkedKeys,C=x.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=C}}return c("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n}(l.Component);V(w0,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:dxe,allowDrop:function(){return!0},expandAction:!1});V(w0,"TreeNode",Uu);const Sxe=new sn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),wxe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Cxe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),xxe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},Xt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Wi(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Sxe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${G(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:G(o),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},wxe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:G(o),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${G(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:G(o),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:G(o),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:G(o),userSelect:"none"},Cxe(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${G(t.calc(o).div(2).equal())} !important`}}}}})}},Exe=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},gG=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=Bt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[xxe(e,o),Exe(o)]},mG=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Ixe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},mG(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Txe=tn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:N$(`${n}-checkbox`,e)},gG(n,e),sg(e)]},Ixe),AD=4;function Rxe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",c={[i]:-n*a+AD,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+AD;break}return le.createElement("div",{style:c,className:`${r}-drop-indicator`})}const hG=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:i,expanded:s,loading:c}=r;if(c)return l.isValidElement(o)?o:l.createElement(Gi,{className:`${t}-switcher-loading-icon`});let u;if(a&&typeof a=="object"&&(u=a.showLeafIcon),i){if(!a)return null;if(typeof u!="boolean"&&u){const p=typeof u=="function"?u(r):u,g=`${t}-switcher-line-custom-icon`;return l.isValidElement(p)?ur(p,{className:ne(p.props.className||"",g)}):p}return u?l.createElement(PW,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return l.isValidElement(f)?ur(f,{className:ne(f.props.className||"",d)}):f!==void 0?f:a?s?l.createElement(WSe,{className:`${t}-switcher-line-icon`}):l.createElement(f1e,{className:`${t}-switcher-line-icon`}):l.createElement(G0e,{className:d})},vG=le.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=le.useContext(ct),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:g=!1,children:v,checkable:m=!1,selectable:h=!0,draggable:y,motion:b,style:S}=e,C=r("tree",s),x=r(),E=b??Object.assign(Object.assign({},ju(x)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:m,selectable:h,showIcon:u,motion:E,blockNode:g,showLine:!!d,dropIndicatorRender:Rxe}),[R,T,_]=Txe(C),[,$]=Lr(),D=$.paddingXS/2+(((n=$.Tree)===null||n===void 0?void 0:n.titleHeight)||$.controlHeightSM),P=le.useMemo(()=>{if(!y)return!1;let O={};switch(typeof y){case"function":O.nodeDraggable=y;break;case"object":O=Object.assign({},y);break}return O.icon!==!1&&(O.icon=O.icon||le.createElement(vSe,null)),O},[y]),A=O=>le.createElement(hG,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:O,showLine:d});return R(le.createElement(w0,Object.assign({itemHeight:D,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),S),prefixCls:C,className:ne({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:g,[`${C}-unselectable`]:!h,[`${C}-rtl`]:a==="rtl"},i==null?void 0:i.className,c,T,_),direction:a,checkable:m&&le.createElement("span",{className:`${C}-checkbox-inner`}),selectable:h,switcherIcon:A,draggable:P}),v))}),MD=0,TS=1,DD=2;function nO(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],c=i[a];t(s,i)!==!1&&nO(c||[],t,n)}e.forEach(o)}function _xe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const i=[];let s=MD;if(r&&r===a)return[r];if(!r||!a)return[];function c(u){return u===r||u===a}return nO(t,u=>{if(s===DD)return!1;if(c(u)){if(i.push(u),s===MD)s=TS;else if(s===TS)return s=DD,!1}else s===TS&&i.push(u);return n.includes(u)},Hu(o)),i}function RS(e,t,n){const r=Oe(t),a=[];return nO(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},Hu(n)),a}var PD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=PD(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:R}=c0(LD(o));let T;return n?T=Object.keys(R):r?T=zT(o.expandedKeys||a||[],R):T=o.expandedKeys||a||[],T},[u,d]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,p]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&p(o.expandedKeys)},[o.expandedKeys]);const g=(R,T)=>{var _;return"expandedKeys"in o||p(R),(_=o.onExpand)===null||_===void 0?void 0:_.call(o,R,T)},v=(R,T)=>{var _;const{multiple:$,fieldNames:D}=o,{node:P,nativeEvent:A}=T,{key:O=""}=P,k=LD(o),N=Object.assign(Object.assign({},T),{selected:!0}),M=(A==null?void 0:A.ctrlKey)||(A==null?void 0:A.metaKey),L=A==null?void 0:A.shiftKey;let F;$&&M?(F=R,i.current=O,s.current=F,N.selectedNodes=RS(k,F,D)):$&&L?(F=Array.from(new Set([].concat(Oe(s.current||[]),Oe(_xe({treeData:k,expandedKeys:f,startKey:O,endKey:i.current,fieldNames:D}))))),N.selectedNodes=RS(k,F,D)):(F=[O],i.current=O,s.current=F,N.selectedNodes=RS(k,F,D)),(_=o.onSelect)===null||_===void 0||_.call(o,F,N),"selectedKeys"in o||d(F)},{getPrefixCls:m,direction:h}=l.useContext(ct),{prefixCls:y,className:b,showIcon:S=!0,expandAction:C="click"}=o,x=PD(o,["prefixCls","className","showIcon","expandAction"]),E=m("tree",y),I=ne(`${E}-directory`,{[`${E}-directory-rtl`]:h==="rtl"},b);return l.createElement(vG,Object.assign({icon:$xe,ref:t,blockNode:!0},x,{showIcon:S,expandAction:C,prefixCls:E,className:I,expandedKeys:f,selectedKeys:u,onSelect:v,onExpand:g}))},Nxe=l.forwardRef(Oxe),rO=vG;rO.DirectoryTree=Nxe;rO.TreeNode=Uu;const FD=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Jt,{prefix:l.createElement(o$,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},kxe=e=>{const{keyCode:t}=e;t===De.ENTER&&e.stopPropagation()},Axe=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:kxe,ref:t},e.children));function Cu(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Oe(t),Oe(Cu(a))))}),t}function Mxe(e){return e.some(t=>{let{children:n}=t;return n})}function bG(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function yG(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:yG({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i})};const d=a?Xi:Va,f={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return o.trim()?typeof i=="function"?i(o,s)?f:null:bG(o,s.text)?f:null:f})}function _S(e){return e||[]}const Dxe=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:i,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:p,triggerFilter:g,locale:v,children:m,getPopupContainer:h,rootClassName:y}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:S,filterResetToDefaultFilteredValue:C,defaultFilteredValue:x,filterDropdownVisible:E,onFilterDropdownVisibleChange:I}=o,[R,T]=l.useState(!1),_=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),$=de=>{T(de),S==null||S(de),I==null||I(de)},D=(n=b??E)!==null&&n!==void 0?n:R,P=p==null?void 0:p.filteredKeys,[A,O]=uxe(_S(P)),k=de=>{let{selectedKeys:he}=de;O(he)},N=(de,he)=>{let{node:ye,checked:pe}=he;k(u?{selectedKeys:de}:{selectedKeys:pe&&ye.key?[ye.key]:[]})};l.useEffect(()=>{R&&k({selectedKeys:_S(P)})},[P]);const[M,L]=l.useState([]),F=de=>{L(de)},[j,B]=l.useState(""),z=de=>{const{value:he}=de.target;B(he)};l.useEffect(()=>{R||B("")},[R]);const H=de=>{const he=de!=null&&de.length?de:null;if(he===null&&(!p||!p.filteredKeys)||Uo(he,p==null?void 0:p.filteredKeys,!0))return null;g({column:o,key:s,filteredKeys:he})},U=()=>{$(!1),H(A())},X=function(){let{confirm:de,closeDropdown:he}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&H([]),he&&$(!1),B(""),O(C?(x||[]).map(ye=>String(ye)):[])},W=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&$(!1),H(A())},Y=(de,he)=>{he.source==="trigger"&&(de&&P!==void 0&&O(_S(P)),$(de),!de&&!o.filterDropdown&&c&&U())},te=ne({[`${i}-menu-without-submenu`]:!Mxe(o.filters||[])}),ee=de=>{if(de.target.checked){const he=Cu(o==null?void 0:o.filters).map(ye=>String(ye));O(he)}else O([])},Z=de=>{let{filters:he}=de;return(he||[]).map((ye,pe)=>{const J=String(ye.value),ce={title:ye.text,key:ye.value!==void 0?J:String(pe)};return ye.children&&(ce.children=Z({filters:ye.children})),ce})},oe=de=>{var he;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((he=de.children)===null||he===void 0?void 0:he.map(ye=>oe(ye)))||[]})};let re;const{direction:q,renderEmpty:Q}=l.useContext(ct);if(typeof o.filterDropdown=="function")re=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:de=>k({selectedKeys:de}),selectedKeys:A(),confirm:W,clearFilters:X,filters:o.filters,visible:D,close:()=>{$(!1)}});else if(o.filterDropdown)re=o.filterDropdown;else{const de=A()||[],he=()=>{var pe;const J=(pe=Q==null?void 0:Q("Table.filter"))!==null&&pe!==void 0?pe:l.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return J;if(d==="tree")return l.createElement(l.Fragment,null,l.createElement(FD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:v}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},u?l.createElement(Xi,{checked:de.length===Cu(o.filters).length,indeterminate:de.length>0&&de.lengthtypeof f=="function"?f(j,oe(fe)):bG(j,fe.title):void 0})));const ce=yG({filters:o.filters||[],filterSearch:f,prefixCls:a,filteredKeys:A(),filterMultiple:u,searchValue:j}),ue=ce.every(fe=>fe===null);return l.createElement(l.Fragment,null,l.createElement(FD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:v}),ue?J:l.createElement(gi,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:te,onSelect:k,onDeselect:k,selectedKeys:de,getPopupContainer:h,openKeys:M,onOpenChange:F,items:ce}))},ye=()=>C?Uo((x||[]).map(pe=>String(pe)),de,!0):de.length===0;re=l.createElement(l.Fragment,null,he(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(Dt,{type:"link",size:"small",disabled:ye(),onClick:()=>X()},v.filterReset),l.createElement(Dt,{type:"primary",size:"small",onClick:U},v.filterConfirm)))}o.filterDropdown&&(re=l.createElement(CU,{selectable:void 0},re));const ae=()=>l.createElement(Axe,{className:`${a}-dropdown`},re);let se;return typeof o.filterIcon=="function"?se=o.filterIcon(_):o.filterIcon?se=o.filterIcon:se=l.createElement(Yye,null),l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${r}-column-title`},m),l.createElement(f0,{dropdownRender:ae,trigger:["click"],open:D,onOpenChange:Y,getPopupContainer:h,placement:q==="rtl"?"bottomLeft":"bottomRight",rootClassName:y},l.createElement("span",{role:"button",tabIndex:-1,className:ne(`${a}-trigger`,{active:_}),onClick:de=>{de.stopPropagation()}},se)))},GT=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const s=md(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:a,key:Vs(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Vs(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Oe(r),Oe(GT(a.children,t,s))))}),r};function SG(e,t,n,r,a,o,i,s,c){return n.map((u,d)=>{const f=md(d,s),{filterOnClose:p=!0,filterMultiple:g=!0,filterMode:v,filterSearch:m}=u;let h=u;if(h.filters||h.filterDropdown){const y=Vs(h,f),b=r.find(S=>{let{key:C}=S;return y===C});h=Object.assign(Object.assign({},h),{title:S=>l.createElement(Dxe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:b,filterOnClose:p,filterMultiple:g,filterMode:v,filterSearch:m,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},S0(u.title,S))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:SG(e,t,h.children,r,a,o,i,f,c)})),h})}const jD=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const i=r,{filters:s,filterDropdown:c}=o;if(c)t[i]=a||null;else if(Array.isArray(a)){const u=Cu(s);t[i]=u.filter(d=>a.includes(String(d)))}else t[i]=null}),t},qT=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Cu(s),p=f.findIndex(v=>String(v)===String(d)),g=p!==-1?f[p]:d;return u[n]&&(u[n]=qT(u[n],t,n)),i(g,u)})):a},e),wG=e=>e.flatMap(t=>"children"in t?[t].concat(Oe(wG(t.children||[]))):[t]),Pxe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;Js();const c=l.useMemo(()=>wG(r||[]),[r]),[u,d]=l.useState(()=>GT(c,!0)),f=l.useMemo(()=>{const m=GT(c,!1);if(m.length===0)return m;let h=!0;if(m.forEach(y=>{let{filteredKeys:b}=y;b!==void 0&&(h=!1)}),h){const y=(c||[]).map((b,S)=>Vs(b,md(S)));return u.filter(b=>{let{key:S}=b;return y.includes(S)}).map(b=>{const S=c[y.findIndex(C=>C===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),S),forceFiltered:S.filtered})})}return m},[c,u]),p=l.useMemo(()=>jD(f),[f]),g=m=>{const h=f.filter(y=>{let{key:b}=y;return b!==m.key});h.push(m),d(h),a(jD(h),h)};return[m=>SG(t,n,m,f,i,g,o,void 0,s),f,p]},Lxe=(e,t,n)=>{const r=l.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,p)=>{const g=n(f,p);c.set(g,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var Fxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function Bxe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=Fxe(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:CG})),c=EW(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(p,g)=>{s({current:p??1,pageSize:g||c.pageSize})},f=(p,g)=>{var v;n&&((v=n.onChange)===null||v===void 0||v.call(n,p,g)),d(p,g),t(p,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const Rh="ascend",$S="descend",Nv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,BD=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,zxe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],KT=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Vs(o,i),multiplePriority:Nv(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const s=md(i,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(Oe(r),Oe(KT(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:Vs(o,s),multiplePriority:Nv(o),sortOrder:o.defaultSortOrder}))}),r},xG=(e,t,n,r,a,o,i,s)=>(t||[]).map((u,d)=>{const f=md(d,s);let p=u;if(p.sorter){const g=p.sortDirections||a,v=p.showSorterTooltip===void 0?i:p.showSorterTooltip,m=Vs(p,f),h=n.find(T=>{let{key:_}=T;return _===m}),y=h?h.sortOrder:null,b=zxe(g,y);let S;if(u.sortIcon)S=u.sortIcon({sortOrder:y});else{const T=g.includes(Rh)&&l.createElement(Q0e,{className:ne(`${e}-column-sorter-up`,{active:y===Rh})}),_=g.includes($S)&&l.createElement(Y0e,{className:ne(`${e}-column-sorter-down`,{active:y===$S})});S=l.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,_))}const{cancelSort:C,triggerAsc:x,triggerDesc:E}=o||{};let I=C;b===$S?I=E:b===Rh&&(I=x);const R=typeof v=="object"?Object.assign({title:I},v):{title:I};p=Object.assign(Object.assign({},p),{className:ne(p.className,{[`${e}-column-sort`]:y}),title:T=>{const _=`${e}-column-sorters`,$=l.createElement("span",{className:`${e}-column-title`},S0(u.title,T)),D=l.createElement("div",{className:_},$,S);return v?typeof v!="boolean"&&(v==null?void 0:v.target)==="sorter-icon"?l.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},$,l.createElement(en,Object.assign({},R),S)):l.createElement(en,Object.assign({},R),D):D},onHeaderCell:T=>{var _;const $=((_=u.onHeaderCell)===null||_===void 0?void 0:_.call(u,T))||{},D=$.onClick,P=$.onKeyDown;$.onClick=k=>{r({column:u,key:m,sortOrder:b,multiplePriority:Nv(u)}),D==null||D(k)},$.onKeyDown=k=>{k.keyCode===De.ENTER&&(r({column:u,key:m,sortOrder:b,multiplePriority:Nv(u)}),P==null||P(k))};const A=cxe(u.title,{}),O=A==null?void 0:A.toString();return y?$["aria-sort"]=y==="ascend"?"ascending":"descending":$["aria-label"]=O||"",$.className=ne($.className,`${e}-column-has-sorters`),$.tabIndex=0,u.ellipsis&&($.title=(A??"").toString()),$}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:xG(e,p.children,n,r,a,o,i,f)})),p}),zD=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},HD=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(zD);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},zD(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t},YT=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(i=>{let{column:{sorter:s},sortOrder:c}=i;return BD(s)&&c});return o.length?a.sort((i,s)=>{for(let c=0;c{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:YT(s,t,n)}):i}):a},Hxe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[s,c]=l.useState(KT(n,!0)),u=(m,h)=>{const y=[];return m.forEach((b,S)=>{const C=md(S,h);if(y.push(Vs(b,C)),Array.isArray(b.children)){const x=u(b.children,C);y.push.apply(y,Oe(x))}}),y},d=l.useMemo(()=>{let m=!0;const h=KT(n,!1);if(!h.length){const C=u(n);return s.filter(x=>{let{key:E}=x;return C.includes(E)})}const y=[];function b(C){m?y.push(C):y.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let S=null;return h.forEach(C=>{S===null?(b(C),C.sortOrder&&(C.multiplePriority===!1?m=!1:S=!0)):(S&&C.multiplePriority!==!1||(m=!1),b(C))}),y},[n,s]),f=l.useMemo(()=>{var m,h;const y=d.map(b=>{let{column:S,sortOrder:C}=b;return{column:S,order:C}});return{sortColumns:y,sortColumn:(m=y[0])===null||m===void 0?void 0:m.column,sortOrder:(h=y[0])===null||h===void 0?void 0:h.order}},[d]),p=m=>{let h;m.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?h=[m]:h=[].concat(Oe(d.filter(y=>{let{key:b}=y;return b!==m.key})),[m]),c(h),i(HD(h),h)};return[m=>xG(t,m,d,p,r,a,o),d,f,()=>HD(d)]},EG=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=S0(r.title,t),"children"in a&&(a.children=EG(a.children,t)),a}),Uxe=e=>[l.useCallback(n=>EG(n,e),[e])],Vxe=iG((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Wxe=lG((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Gxe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${G(n)} ${r} ${a}`,d=(f,p,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(p).mul(-1).equal())} ${G(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` > ${t}-content, > ${t}-header, @@ -399,7 +399,7 @@ html body { `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${G(n)} 0 ${G(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},qxe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},vo),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Kxe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Yxe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:p,tableExpandedRowBg:g,paddingXXS:v,expandIconMarginTop:m,expandIconSize:h,expandIconHalfInner:y,expandIconScale:b,calc:S}=e,C=`${G(a)} ${i} ${s}`,x=S(v).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},B_(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:G(h),background:c,border:C,borderRadius:d,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:x,insetInlineStart:x,height:a},"&::after":{top:x,bottom:x,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(S(f).mul(-1).equal())} ${G(S(p).mul(-1).equal())}`,padding:`${G(f)} ${G(p)}`}}}},Xxe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:p,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:m,motionDurationSlow:h,colorTextDescription:y,colorPrimary:b,tableHeaderFilterActiveBg:S,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:E,controlItemBgHover:I,controlItemBgActive:R,boxShadowSecondary:T,filterDropdownMenuBg:_,calc:$}=e,D=`${n}-dropdown`,P=`${t}-filter-dropdown`,A=`${n}-tree`,O=`${G(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${G(i)} ${G($(v).div(2).mul(-1).equal())}`,padding:`0 ${G(i)}`,color:p,fontSize:g,borderRadius:m,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:y,background:S},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},Qt(e)),{minWidth:a,backgroundColor:x,borderRadius:m,boxShadow:T,overflow:"hidden",[`${D}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${G(s)} 0`,color:C,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${G(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:I},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:R}}},[`${P}-search`]:{padding:s,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:C}}},[`${P}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G($(s).sub(u).equal())} ${G(s)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zxe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Kxe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Yxe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:p,tableExpandedRowBg:g,paddingXXS:v,expandIconMarginTop:m,expandIconSize:h,expandIconHalfInner:y,expandIconScale:b,calc:S}=e,C=`${G(a)} ${i} ${s}`,x=S(v).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},B_(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:G(h),background:c,border:C,borderRadius:d,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:x,insetInlineStart:x,height:a},"&::after":{top:x,bottom:x,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(S(f).mul(-1).equal())} ${G(S(p).mul(-1).equal())}`,padding:`${G(f)} ${G(p)}`}}}},Xxe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:p,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:m,motionDurationSlow:h,colorTextDescription:y,colorPrimary:b,tableHeaderFilterActiveBg:S,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:E,controlItemBgHover:I,controlItemBgActive:R,boxShadowSecondary:T,filterDropdownMenuBg:_,calc:$}=e,D=`${n}-dropdown`,P=`${t}-filter-dropdown`,A=`${n}-tree`,O=`${G(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${G(i)} ${G($(v).div(2).mul(-1).equal())}`,padding:`0 ${G(i)}`,color:p,fontSize:g,borderRadius:m,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:y,background:S},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},Xt(e)),{minWidth:a,backgroundColor:x,borderRadius:m,boxShadow:T,overflow:"hidden",[`${D}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${G(s)} 0`,color:C,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${G(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:I},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:R}}},[`${P}-search`]:{padding:s,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:C}}},[`${P}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G($(s).sub(u).equal())} ${G(s)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zxe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:o,background:i},[` @@ -435,7 +435,7 @@ html body { `]:{padding:`${G(i)} ${G(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:G(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${G(r(i).mul(-1).equal())} ${G(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:G(r(i).mul(-1).equal()),marginInline:`${G(r(n).sub(s).equal())} ${G(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:G(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},rEe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},aEe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,p=`${G(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},UD=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${G(a(n).mul(-1).equal())} 0 ${r}`}}}},oEe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,s=`${G(r)} ${a} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},iEe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:p,motionDurationMid:g,tableHeaderBg:v,tableHeaderCellSplitColor:m,tableFooterTextColor:h,tableFooterBg:y,calc:b}=e,S=`${G(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Vo()),{[t]:Object.assign(Object.assign({},Qt(e)),{fontSize:u,background:d,borderRadius:`${G(f)} ${G(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(f)} ${G(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},aEe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,p=`${G(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},UD=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${G(a(n).mul(-1).equal())} 0 ${r}`}}}},oEe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,s=`${G(r)} ${a} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},iEe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:p,motionDurationMid:g,tableHeaderBg:v,tableHeaderCellSplitColor:m,tableFooterTextColor:h,tableFooterBg:y,calc:b}=e,S=`${G(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Vo()),{[t]:Object.assign(Object.assign({},Xt(e)),{fontSize:u,background:d,borderRadius:`${G(f)} ${G(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(f)} ${G(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -446,7 +446,7 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:G(b(r).mul(-1).equal()),marginInline:`${G(b(o).sub(a).equal())} - ${G(b(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:v,borderBottom:S,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(a)}`,color:h,background:y}})}},sEe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:p,controlHeight:g,colorTextPlaceholder:v,fontSize:m,fontSizeSM:h,lineHeight:y,lineWidth:b,colorIcon:S,colorIconHover:C,opacityLoading:x,controlInteractiveSize:E}=e,I=new un(a).onBackground(n).toHexShortString(),R=new un(o).onBackground(n).toHexShortString(),T=new un(t).onBackground(n).toHexShortString(),_=new un(S),$=new un(C),D=E/2-b,P=D*2+b*3;return{headerBg:T,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:R,bodySortBg:T,rowHoverBg:T,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:p,footerBg:T,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:f,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:v,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*y-b*3)/2-Math.ceil((h*1.4-b*3)/2),headerIconColor:_.clone().setAlpha(_.getAlpha()*x).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*x).toRgbString(),expandIconHalfInner:D,expandIconSize:P,expandIconScale:E/P}},VD=2,lEe=nn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:p,rowExpandedBg:g,cellPaddingBlock:v,cellPaddingInline:m,cellPaddingBlockMD:h,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:S,borderColor:C,footerBg:x,footerColor:E,headerBorderRadius:I,cellFontSize:R,cellFontSizeMD:T,cellFontSizeSM:_,headerSplitColor:$,fixedHeaderSortActiveBg:D,headerFilterHoverBg:P,filterDropdownBg:A,expandIconBg:O,selectionColumnWidth:k,stickyScrollBarBg:N,calc:M}=e,L=zt(e,{tableFontSize:R,tableBg:r,tableRadius:I,tablePaddingVertical:v,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:S,tableBorderColor:C,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:x,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:D,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:A,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:p,zIndexTableFixed:VD,zIndexTableSticky:M(VD).add(1).equal({unit:!1}),tableFontSizeMiddle:T,tableFontSizeSmall:_,tableSelectionColumnWidth:k,tableExpandIconBg:O,tableExpandColumnWidth:M(a).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[iEe(L),Qxe(L),UD(L),rEe(L),Xxe(L),Gxe(L),Jxe(L),Yxe(L),UD(L),Kxe(L),tEe(L),Zxe(L),aEe(L),qxe(L),nEe(L),eEe(L),oEe(L)]},sEe,{unitless:{expandIconScale:!0}}),cEe=[],uEe=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:g,rowKey:v="key",rowClassName:m,columns:h,children:y,childrenColumnName:b,onChange:S,getPopupContainer:C,loading:x,expandIcon:E,expandable:I,expandedRowRender:R,expandIconColumnIndex:T,indentSize:_,scroll:$,sortDirections:D,locale:P,showSorterTooltip:A={target:"full-header"},virtual:O}=e;Js();const k=l.useMemo(()=>h||Q$(y),[h,y]),N=l.useMemo(()=>k.some(ft=>ft.responsive),[k]),M=qb(N),L=l.useMemo(()=>{const ft=new Set(Object.keys(M).filter(st=>M[st]));return k.filter(st=>!st.responsive||st.responsive.some(Ze=>ft.has(Ze)))},[k,M]),F=yn(e,["className","style","columns"]),{locale:j=ci,direction:B,table:z,renderEmpty:H,getPrefixCls:U,getPopupContainer:X}=l.useContext(it),W=dr(c),Y=Object.assign(Object.assign({},j.Table),P),te=f||cEe,ee=U("table",a),Z=U("dropdown",d),[,oe]=Lr(),re=Yn(ee),[q,Q,ae]=lEe(ee,re),se=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:T},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:de="children"}=se,he=l.useMemo(()=>te.some(ft=>ft==null?void 0:ft[de])?"nest":R||I!=null&&I.expandedRowRender?"row":null,[te]),ye={body:l.useRef()},pe=lxe(ee),J=l.useRef(null),ce=l.useRef(null);ixe(t,()=>Object.assign(Object.assign({},ce.current),{nativeElement:J.current}));const ue=l.useMemo(()=>typeof v=="function"?v:ft=>ft==null?void 0:ft[v],[v]),[fe]=Lxe(te,de,ue),be={},Te=function(ft,st){let Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var lt,It,at,vt;const bt=Object.assign(Object.assign({},be),ft);Ze&&((lt=be.resetPagination)===null||lt===void 0||lt.call(be),!((It=bt.pagination)===null||It===void 0)&&It.current&&(bt.pagination.current=1),p&&((at=p.onChange)===null||at===void 0||at.call(p,1,(vt=bt.pagination)===null||vt===void 0?void 0:vt.pageSize))),$&&$.scrollToFirstRowOnChange!==!1&&ye.body.current&&Are(0,{getContainer:()=>ye.body.current}),S==null||S(bt.pagination,bt.filters,bt.sorter,{currentDataSource:qT(YT(te,bt.sorterStates,de),bt.filterStates,de),action:st})},_e=(ft,st)=>{Te({sorter:ft,sorterStates:st},"sort",!1)},[Pe,Ee,Fe,De]=Hxe({prefixCls:ee,mergedColumns:L,onSorterChange:_e,sortDirections:D||["ascend","descend"],tableLocale:Y,showSorterTooltip:A}),Ae=l.useMemo(()=>YT(te,Ee,de),[te,Ee]);be.sorter=De(),be.sorterStates=Ee;const we=(ft,st)=>{Te({filters:ft,filterStates:st},"filter",!0)},[$e,Ce,Re]=Pxe({prefixCls:ee,locale:Y,dropdownPrefixCls:Z,mergedColumns:L,onFilterChange:we,getPopupContainer:C||X,rootClassName:ne(i,re)}),me=qT(Ae,Ce,de);be.filters=Re,be.filterStates=Ce;const Ie=l.useMemo(()=>{const ft={};return Object.keys(Re).forEach(st=>{Re[st]!==null&&(ft[st]=Re[st])}),Object.assign(Object.assign({},Fe),{filters:ft})},[Fe,Re]),[je]=Uxe(Ie),ke=(ft,st)=>{Te({pagination:Object.assign(Object.assign({},be.pagination),{current:ft,pageSize:st})},"paginate")},[Ne,Be]=Bxe(me.length,ke,p);be.pagination=p===!1?{}:jxe(Ne,p),be.resetPagination=Be;const Ve=l.useMemo(()=>{if(p===!1||!Ne.pageSize)return me;const{current:ft=1,total:st,pageSize:Ze=CG}=Ne;return me.lengthZe?me.slice((ft-1)*Ze,ft*Ze):me:me.slice((ft-1)*Ze,ft*Ze)},[!!p,me,Ne==null?void 0:Ne.current,Ne==null?void 0:Ne.pageSize,Ne==null?void 0:Ne.total]),[Le,We]=axe({prefixCls:ee,data:me,pageData:Ve,getRowKey:ue,getRecordByKey:fe,expandType:he,childrenColumnName:de,locale:Y,getPopupContainer:C||X},g),Je=(ft,st,Ze)=>{let lt;return typeof m=="function"?lt=ne(m(ft,st,Ze)):lt=ne(m),ne({[`${ee}-row-selected`]:We.has(ue(ft,st))},lt)};se.__PARENT_RENDER_ICON__=se.expandIcon,se.expandIcon=se.expandIcon||E||sxe(Y),he==="nest"&&se.expandIconColumnIndex===void 0?se.expandIconColumnIndex=g?1:0:se.expandIconColumnIndex>0&&g&&(se.expandIconColumnIndex-=1),typeof se.indentSize!="number"&&(se.indentSize=typeof _=="number"?_:15);const Ke=l.useCallback(ft=>je(Le($e(Pe(ft)))),[Pe,$e,Le]);let ut,dt;if(p!==!1&&(Ne!=null&&Ne.total)){let ft;Ne.size?ft=Ne.size:ft=W==="small"||W==="middle"?"small":void 0;const st=It=>l.createElement(z$,Object.assign({},Ne,{className:ne(`${ee}-pagination ${ee}-pagination-${It}`,Ne.className),size:ft})),Ze=B==="rtl"?"left":"right",{position:lt}=Ne;if(lt!==null&&Array.isArray(lt)){const It=lt.find(bt=>bt.includes("top")),at=lt.find(bt=>bt.includes("bottom")),vt=lt.every(bt=>`${bt}`=="none");!It&&!at&&!vt&&(dt=st(Ze)),It&&(ut=st(It.toLowerCase().replace("top",""))),at&&(dt=st(at.toLowerCase().replace("bottom","")))}else dt=st(Ze)}let He;typeof x=="boolean"?He={spinning:x}:typeof x=="object"&&(He=Object.assign({spinning:!0},x));const Ye=ne(ae,re,`${ee}-wrapper`,z==null?void 0:z.className,{[`${ee}-wrapper-rtl`]:B==="rtl"},o,i,Q),Ge=Object.assign(Object.assign({},z==null?void 0:z.style),s),rt=typeof(P==null?void 0:P.emptyText)<"u"?P.emptyText:(H==null?void 0:H("Table"))||l.createElement(Vb,{componentName:"Table"}),Tt=O?Wxe:Vxe,Rt={},jt=l.useMemo(()=>{const{fontSize:ft,lineHeight:st,padding:Ze,paddingXS:lt,paddingSM:It}=oe,at=Math.floor(ft*st);switch(W){case"large":return Ze*2+at;case"small":return lt*2+at;default:return It*2+at}},[oe,W]);return O&&(Rt.listItemHeight=jt),q(l.createElement("div",{ref:J,className:Ye,style:Ge},l.createElement(H$,Object.assign({spinning:!1},He),ut,l.createElement(Tt,Object.assign({},Rt,F,{ref:ce,columns:L,direction:B,expandable:se,prefixCls:ee,className:ne({[`${ee}-middle`]:W==="middle",[`${ee}-small`]:W==="small",[`${ee}-bordered`]:u,[`${ee}-empty`]:te.length===0},ae,re,Q),data:Ve,rowKey:ue,rowClassName:Je,emptyText:rt,internalHooks:Cg,internalRefs:ye,transformColumns:Ke,getContainerWidth:pe})),dt)))},dEe=l.forwardRef(uEe),fEe=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(dEe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ts=l.forwardRef(fEe);ts.SELECTION_COLUMN=ds;ts.EXPAND_COLUMN=gs;ts.SELECTION_ALL=HT;ts.SELECTION_INVERT=UT;ts.SELECTION_NONE=VT;ts.Column=qCe;ts.ColumnGroup=KCe;ts.Summary=XW;const pEe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},Qt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},aO=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return zt(e,{tagFontSize:a,tagLineHeight:G(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},oO=e=>({defaultBg:new un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),IG=nn("Tag",e=>{const t=aO(e);return pEe(t)},oO);var gEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:i,onClick:s}=e,c=gEe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=l.useContext(it),f=y=>{i==null||i(!o),s==null||s(y)},p=u("tag",n),[g,v,m]=IG(p),h=ne(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},d==null?void 0:d.className,a,v,m);return g(l.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:h,onClick:f})))}),hEe=e=>a9(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),vEe=nd(["Tag","preset"],e=>{const t=aO(e);return hEe(t)},oO);function bEe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Nm=(e,t,n)=>{const r=bEe(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},yEe=nd(["Tag","status"],e=>{const t=aO(e);return[Nm(t,"success","Success"),Nm(t,"processing","Info"),Nm(t,"error","Error"),Nm(t,"warning","Warning")]},oO);var SEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,p=SEe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:v,tag:m}=l.useContext(it),[h,y]=l.useState(!0),b=yn(p,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&y(f)},[f]);const S=nU(c),C=Hce(c),x=S||C,E=Object.assign(Object.assign({backgroundColor:c&&!x?c:void 0},m==null?void 0:m.style),o),I=g("tag",n),[R,T,_]=IG(I),$=ne(I,m==null?void 0:m.className,{[`${I}-${c}`]:x,[`${I}-has-color`]:c&&!x,[`${I}-hidden`]:!h,[`${I}-rtl`]:v==="rtl",[`${I}-borderless`]:!d},r,a,T,_),D=M=>{M.stopPropagation(),u==null||u(M),!M.defaultPrevented&&y(!1)},[,P]=J_(Bu(e),Bu(m),{closable:!1,closeIconRender:M=>{const L=l.createElement("span",{className:`${I}-close-icon`,onClick:D},M);return V_(M,L,F=>({onClick:j=>{var B;(B=F==null?void 0:F.onClick)===null||B===void 0||B.call(F,j),D(j)},className:ne(F==null?void 0:F.className,`${I}-close-icon`)}))}}),A=typeof p.onClick=="function"||i&&i.type==="a",O=s||null,k=O?l.createElement(l.Fragment,null,O,i&&l.createElement("span",null,i)):i,N=l.createElement("span",Object.assign({},b,{ref:t,className:$,style:E}),k,P,S&&l.createElement(vEe,{key:"preset",prefixCls:I}),C&&l.createElement(yEe,{key:"status",prefixCls:I}));return R(A?l.createElement(rg,{component:"Tag"},N):N)}),kv=wEe;kv.CheckableTag=mEe;const CEe=e=>{const t=e!=null&&e.algorithm?gp(e.algorithm):gp(Jp),n=Object.assign(Object.assign({},Fu),e==null?void 0:e.token);return wz(n,{override:e==null?void 0:e.token},t,j_)};function xEe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const EEe=(e,t)=>{const n=t??Jp(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),xEe(t??e)),Yz(r)),{controlHeight:a}),Kz(Object.assign(Object.assign({},n),{controlHeight:a})))},Ci=(e,t)=>new un(e).setAlpha(t).toRgbString(),jc=(e,t)=>new un(e).lighten(t).toHexString(),IEe=e=>{const t=Yl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},TEe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ci(r,.85),colorTextSecondary:Ci(r,.65),colorTextTertiary:Ci(r,.45),colorTextQuaternary:Ci(r,.25),colorFill:Ci(r,.18),colorFillSecondary:Ci(r,.12),colorFillTertiary:Ci(r,.08),colorFillQuaternary:Ci(r,.04),colorBgElevated:jc(n,12),colorBgContainer:jc(n,8),colorBgLayout:jc(n,0),colorBgSpotlight:jc(n,26),colorBgBlur:Ci(r,.04),colorBorder:jc(n,26),colorBorderSecondary:jc(n,19)}},REe=(e,t)=>{const n=Object.keys(P_).map(a=>{const o=Yl(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${a}-${c+1}`]=o[c],i[`${a}${c+1}`]=o[c],i),{})}).reduce((a,o)=>(a=Object.assign(Object.assign({},a),o),a),{}),r=t??Jp(e);return Object.assign(Object.assign(Object.assign({},r),n),qz(e,{generateColorPalettes:IEe,generateNeutralColorPalettes:TEe}))};function _Ee(){const[e,t,n]=Lr();return{theme:e,token:t,hashId:n}}const hi={defaultConfig:hp,defaultSeed:hp.token,useToken:_Ee,defaultAlgorithm:Jp,darkAlgorithm:REe,compactAlgorithm:EEe,getDesignToken:CEe};var $Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=d=>{const{keyCode:f}=d;f===Me.ENTER&&d.preventDefault()},r=d=>{const{keyCode:f}=d,{onClick:p}=e;f===Me.ENTER&&p&&p()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,c=$Ee(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},OEe)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),l.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},c,{onKeyDown:n,onKeyUp:r,style:u}))}),NEe=function(e){var t=l.useRef({valueLabels:new Map});return l.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,s=o.value,c=(i=o.label)!==null&&i!==void 0?i:n.get(s);return r.set(s,c),K(K({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])},kEe=function(e,t,n,r){return l.useMemo(function(){var a=e.map(function(c){var u=c.value;return u}),o=t.map(function(c){var u=c.value;return u}),i=a.filter(function(c){return!r[c]});if(n){var s=Bi(a,!0,r);a=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat(Oe(i),Oe(a)))),o]},[e,t,n,r])};function AEe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function MEe(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function ZT(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function DEe(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function WD(e){return e==null}const PEe=function(e,t){return l.useMemo(function(){var n=c0(e,{fieldNames:t,initWrapper:function(a){return K(K({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])};var iO=function(){return null},LEe=["children","value"];function TG(e){return sr(e).map(function(t){if(!l.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,s=xt(a,LEe),c=K({key:r,value:i},s),u=TG(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function QT(e){if(!e)return e;var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return pn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function FEe(e,t,n,r,a,o){var i=null,s=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,v){var m="".concat(f,"-").concat(v),h=g[o.value],y=n.includes(h),b=u(g[o.children]||[],m,y),S=l.createElement(iO,g,b.map(function(x){return x.node}));if(t===h&&(i=S),y){var C={pos:m,node:S,children:b};return p||s.push(C),C}return null}).filter(function(g){return g})}s||(s=[],u(r),s.sort(function(d,f){var p=d.node.props.value,g=f.node.props.value,v=n.indexOf(p),m=n.indexOf(g);return v-m}))}Object.defineProperty(e,"triggerNode",{get:function(){return pn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return pn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?s:s.map(function(d){var f=d.node;return f})}})}const jEe=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return l.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var c=t.toUpperCase();s=function(f,p){var g=p[r];return String(g).toUpperCase().includes(c)}}function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,g){var v=g[i],m=f||s(t,QT(g)),h=u(v||[],m);return(m||h.length)&&p.push(K(K({},g),{},V({isLeaf:void 0},i,h))),p},[])}return u(e)},[e,t,i,r,a])};function GD(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function BEe(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],s=e.map(function(c){var u=K({},c),d=u[n];return o[d]=u,u.key=u.key||d,u});return s.forEach(function(c){var u=c[r],d=o[u];d&&(d.children=d.children||[],d.children.push(c)),(u===a||!d&&a===null)&&i.push(c)}),i}function zEe(e,t,n){return l.useMemo(function(){return e?n?BEe(e,K({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:TG(t)},[t,n,e])}var RG=l.createContext(null),_G=l.createContext(null),HEe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},UEe=function(t,n){var r=RH(),a=r.prefixCls,o=r.multiple,i=r.searchValue,s=r.toggleOpen,c=r.open,u=r.notFoundContent,d=l.useContext(_G),f=d.virtual,p=d.listHeight,g=d.listItemHeight,v=d.listItemScrollOffset,m=d.treeData,h=d.fieldNames,y=d.onSelect,b=d.dropdownMatchSelectWidth,S=d.treeExpandAction,C=d.treeTitleRender,x=d.onPopupScroll,E=l.useContext(RG),I=E.checkable,R=E.checkedKeys,T=E.halfCheckedKeys,_=E.treeExpandedKeys,$=E.treeDefaultExpandAll,D=E.treeDefaultExpandedKeys,P=E.onTreeExpand,A=E.treeIcon,O=E.showTreeIcon,k=E.switcherIcon,N=E.treeLine,M=E.treeNodeFilterProp,L=E.loadData,F=E.treeLoadedKeys,j=E.treeMotion,B=E.onTreeLoad,z=E.keyEntities,H=l.useRef(),U=Qs(function(){return m},[c,m],function(Te,_e){return _e[0]&&Te[1]!==_e[1]}),X=l.useState(null),W=ie(X,2),Y=W[0],te=W[1],ee=z[Y],Z=l.useMemo(function(){return I?{checked:R,halfChecked:T}:null},[I,R,T]);l.useEffect(function(){if(c&&!o&&R.length){var Te;(Te=H.current)===null||Te===void 0||Te.scrollTo({key:R[0]}),te(R[0])}},[c]);var oe=String(i).toLowerCase(),re=function(_e){return oe?String(_e[M]).toLowerCase().includes(oe):!1},q=l.useState(D),Q=ie(q,2),ae=Q[0],se=Q[1],de=l.useState(null),he=ie(de,2),ye=he[0],pe=he[1],J=l.useMemo(function(){return _?Oe(_):i?ye:ae},[ae,ye,_,i]);l.useEffect(function(){i&&pe(DEe(m,h))},[i]);var ce=function(_e){se(_e),pe(_e),P&&P(_e)},ue=function(_e){_e.preventDefault()},fe=function(_e,Pe){var Ee=Pe.node;I&&ZT(Ee)||(y(Ee.key,{selected:!R.includes(Ee.key)}),o||s(!1))};if(l.useImperativeHandle(n,function(){var Te;return{scrollTo:(Te=H.current)===null||Te===void 0?void 0:Te.scrollTo,onKeyDown:function(Pe){var Ee,Fe=Pe.which;switch(Fe){case Me.UP:case Me.DOWN:case Me.LEFT:case Me.RIGHT:(Ee=H.current)===null||Ee===void 0||Ee.onKeyDown(Pe);break;case Me.ENTER:{if(ee){var De=(ee==null?void 0:ee.node)||{},Ae=De.selectable,we=De.value;Ae!==!1&&fe(null,{node:{key:Y},selected:!R.includes(we)})}break}case Me.ESC:s(!1)}},onKeyUp:function(){}}}),U.length===0)return l.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ue},u);var be={fieldNames:h};return F&&(be.loadedKeys=F),J&&(be.expandedKeys=J),l.createElement("div",{onMouseDown:ue},ee&&c&&l.createElement("span",{style:HEe,"aria-live":"assertive"},ee.node.value),l.createElement(w0,ve({ref:H,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:U,height:p,itemHeight:g,itemScrollOffset:v,virtual:f!==!1&&b!==!1,multiple:o,icon:A,showIcon:O,switcherIcon:k,showLine:N,loadData:i?null:L,motion:j,activeKey:Y,checkable:I,checkStrictly:!0,checkedKeys:Z,selectedKeys:I?[]:R,defaultExpandAll:$,titleRender:C},be,{onActiveChange:te,onSelect:fe,onCheck:fe,onExpand:ce,onLoad:B,filterTreeNode:re,expandAction:S,onScroll:x})))},VEe=l.forwardRef(UEe),sO="SHOW_ALL",lO="SHOW_PARENT",C0="SHOW_CHILD";function qD(e,t,n,r){var a=new Set(e);return t===C0?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(s){var c=s.node;return a.has(c[r.value])})&&i.children.every(function(s){var c=s.node;return ZT(c)||a.has(c[r.value])}))}):t===lO?e.filter(function(o){var i=n[o],s=i?i.parent:null;return!(s&&!ZT(s.node)&&a.has(s.key))}):e}var WEe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function GEe(e){return!e||ht(e)!=="object"}var qEe=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,s=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,p=e.onSearch,g=e.autoClearSearchValue,v=g===void 0?!0:g,m=e.filterTreeNode,h=e.treeNodeFilterProp,y=h===void 0?"value":h,b=e.showCheckedStrategy,S=e.treeNodeLabelProp,C=e.multiple,x=e.treeCheckable,E=e.treeCheckStrictly,I=e.labelInValue,R=e.fieldNames,T=e.treeDataSimpleMode,_=e.treeData,$=e.children,D=e.loadData,P=e.treeLoadedKeys,A=e.onTreeLoad,O=e.treeDefaultExpandAll,k=e.treeExpandedKeys,N=e.treeDefaultExpandedKeys,M=e.onTreeExpand,L=e.treeExpandAction,F=e.virtual,j=e.listHeight,B=j===void 0?200:j,z=e.listItemHeight,H=z===void 0?20:z,U=e.listItemScrollOffset,X=U===void 0?0:U,W=e.onDropdownVisibleChange,Y=e.dropdownMatchSelectWidth,te=Y===void 0?!0:Y,ee=e.treeLine,Z=e.treeIcon,oe=e.showTreeIcon,re=e.switcherIcon,q=e.treeMotion,Q=e.treeTitleRender,ae=e.onPopupScroll,se=xt(e,WEe),de=jH(n),he=x&&!E,ye=x||E,pe=E||I,J=ye||C,ce=on(i,{value:o}),ue=ie(ce,2),fe=ue[0],be=ue[1],Te=l.useMemo(function(){return x?b||C0:sO},[b,x]),_e=l.useMemo(function(){return MEe(R)},[JSON.stringify(R)]),Pe=on("",{value:d!==void 0?d:f,postState:function(vt){return vt||""}}),Ee=ie(Pe,2),Fe=Ee[0],De=Ee[1],Ae=function(vt){De(vt),p==null||p(vt)},we=zEe(_,$,T),$e=PEe(we,_e),Ce=$e.keyEntities,Re=$e.valueEntities,me=l.useCallback(function(at){var vt=[],bt=[];return at.forEach(function(Qe){Re.has(Qe)?bt.push(Qe):vt.push(Qe)}),{missingRawValues:vt,existRawValues:bt}},[Re]),Ie=jEe(we,Fe,{fieldNames:_e,treeNodeFilterProp:y,filterTreeNode:m}),je=l.useCallback(function(at){if(at){if(S)return at[S];for(var vt=_e._title,bt=0;bt{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${G(e.paddingXS)} ${G(e.calc(e.paddingXS).div(2).equal())}`},gG(n,zt(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},N$(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function YEe(e,t,n){return nn("TreeSelect",r=>{const a=zt(r,{treePrefixCls:t});return[KEe(a)]},mG)(e,n)}var XEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,size:a,disabled:o,bordered:i=!0,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p=26,placement:g,notFoundContent:v,switcherIcon:m,treeLine:h,getPopupContainer:y,popupClassName:b,dropdownClassName:S,treeIcon:C=!1,transitionName:x,choiceTransitionName:E="",status:I,treeExpandAction:R,builtinPlacements:T,dropdownMatchSelectWidth:_,popupMatchSelectWidth:$,allowClear:D,variant:P,dropdownStyle:A,tagRender:O}=e,k=XEe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:N,getPrefixCls:M,renderEmpty:L,direction:F,virtual:j,popupMatchSelectWidth:B,popupOverflow:z}=l.useContext(it),H=M(),U=M("select",r),X=M("select-tree",r),W=M("tree-select",r),{compactSize:Y,compactItemClassnames:te}=es(U,F),ee=Yn(U),Z=Yn(W),[oe,re,q]=KH(U,ee),[Q]=YEe(W,X,Z),[ae,se]=dc("treeSelect",P,i),de=ne(b||S,`${W}-dropdown`,{[`${W}-dropdown-rtl`]:F==="rtl"},c,q,ee,Z,re),he=!!(u||d),ye=YH(e.suffixIcon,e.showArrow),pe=(n=$??_)!==null&&n!==void 0?n:B,{status:J,hasFeedback:ce,isFormItemInput:ue,feedbackIcon:fe}=l.useContext(Rr),be=nl(J,I),{suffixIcon:Te,removeIcon:_e,clearIcon:Pe}=i$(Object.assign(Object.assign({},k),{multiple:he,showSuffixIcon:ye,hasFeedback:ce,feedbackIcon:fe,prefixCls:U,componentName:"TreeSelect"})),Ee=D===!0?{clearIcon:Pe}:D;let Fe;v!==void 0?Fe=v:Fe=(L==null?void 0:L("Select"))||l.createElement(Vb,{componentName:"Select"});const De=yn(k,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ae=l.useMemo(()=>g!==void 0?g:F==="rtl"?"bottomRight":"bottomLeft",[g,F]),we=dr(ke=>{var Ne;return(Ne=a??Y)!==null&&Ne!==void 0?Ne:ke}),$e=l.useContext(Gr),Ce=o??$e,Re=ne(!r&&W,{[`${U}-lg`]:we==="large",[`${U}-sm`]:we==="small",[`${U}-rtl`]:F==="rtl",[`${U}-${ae}`]:se,[`${U}-in-form-item`]:ue},Yi(U,be,ce),te,s,c,q,ee,Z,re),me=ke=>l.createElement(hG,{prefixCls:X,switcherIcon:m,treeNodeProps:ke,showLine:h}),[Ie]=Ji("SelectLike",A==null?void 0:A.zIndex),je=l.createElement(xg,Object.assign({virtual:j,disabled:Ce},De,{dropdownMatchSelectWidth:pe,builtinPlacements:UH(T,z),ref:t,prefixCls:U,className:Re,listHeight:f,listItemHeight:p,treeCheckable:u&&l.createElement("span",{className:`${U}-tree-checkbox-inner`}),treeLine:!!h,suffixIcon:Te,multiple:he,placement:Ae,removeIcon:_e,allowClear:Ee,switcherIcon:me,showTreeIcon:C,notFoundContent:Fe,getPopupContainer:y||N,treeMotion:null,dropdownClassName:de,dropdownStyle:Object.assign(Object.assign({},A),{zIndex:Ie}),choiceTransitionName:bo(H,"",E),transitionName:bo(H,"slide-up",x),treeExpandAction:R,tagRender:he?O:void 0}));return oe(Q(je))},QEe=l.forwardRef(ZEe),al=QEe,JEe=ug(al);al.TreeNode=iO;al.SHOW_ALL=sO;al.SHOW_PARENT=lO;al.SHOW_CHILD=C0;al._InternalPanelDoNotUseOrYouWillBeFired=JEe;const e2e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},t2e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + ${G(b(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:v,borderBottom:S,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(a)}`,color:h,background:y}})}},sEe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:p,controlHeight:g,colorTextPlaceholder:v,fontSize:m,fontSizeSM:h,lineHeight:y,lineWidth:b,colorIcon:S,colorIconHover:C,opacityLoading:x,controlInteractiveSize:E}=e,I=new un(a).onBackground(n).toHexShortString(),R=new un(o).onBackground(n).toHexShortString(),T=new un(t).onBackground(n).toHexShortString(),_=new un(S),$=new un(C),D=E/2-b,P=D*2+b*3;return{headerBg:T,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:R,bodySortBg:T,rowHoverBg:T,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:p,footerBg:T,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:f,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:v,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*y-b*3)/2-Math.ceil((h*1.4-b*3)/2),headerIconColor:_.clone().setAlpha(_.getAlpha()*x).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*x).toRgbString(),expandIconHalfInner:D,expandIconSize:P,expandIconScale:E/P}},VD=2,lEe=tn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:p,rowExpandedBg:g,cellPaddingBlock:v,cellPaddingInline:m,cellPaddingBlockMD:h,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:S,borderColor:C,footerBg:x,footerColor:E,headerBorderRadius:I,cellFontSize:R,cellFontSizeMD:T,cellFontSizeSM:_,headerSplitColor:$,fixedHeaderSortActiveBg:D,headerFilterHoverBg:P,filterDropdownBg:A,expandIconBg:O,selectionColumnWidth:k,stickyScrollBarBg:N,calc:M}=e,L=Bt(e,{tableFontSize:R,tableBg:r,tableRadius:I,tablePaddingVertical:v,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:S,tableBorderColor:C,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:x,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:D,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:A,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:p,zIndexTableFixed:VD,zIndexTableSticky:M(VD).add(1).equal({unit:!1}),tableFontSizeMiddle:T,tableFontSizeSmall:_,tableSelectionColumnWidth:k,tableExpandIconBg:O,tableExpandColumnWidth:M(a).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[iEe(L),Qxe(L),UD(L),rEe(L),Xxe(L),Gxe(L),Jxe(L),Yxe(L),UD(L),Kxe(L),tEe(L),Zxe(L),aEe(L),qxe(L),nEe(L),eEe(L),oEe(L)]},sEe,{unitless:{expandIconScale:!0}}),cEe=[],uEe=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:g,rowKey:v="key",rowClassName:m,columns:h,children:y,childrenColumnName:b,onChange:S,getPopupContainer:C,loading:x,expandIcon:E,expandable:I,expandedRowRender:R,expandIconColumnIndex:T,indentSize:_,scroll:$,sortDirections:D,locale:P,showSorterTooltip:A={target:"full-header"},virtual:O}=e;Js();const k=l.useMemo(()=>h||Q$(y),[h,y]),N=l.useMemo(()=>k.some(pt=>pt.responsive),[k]),M=qb(N),L=l.useMemo(()=>{const pt=new Set(Object.keys(M).filter(lt=>M[lt]));return k.filter(lt=>!lt.responsive||lt.responsive.some(Je=>pt.has(Je)))},[k,M]),F=Sn(e,["className","style","columns"]),{locale:j=ui,direction:B,table:z,renderEmpty:H,getPrefixCls:U,getPopupContainer:X}=l.useContext(ct),W=dr(c),Y=Object.assign(Object.assign({},j.Table),P),te=f||cEe,ee=U("table",a),Z=U("dropdown",d),[,oe]=Lr(),re=Yn(ee),[q,Q,ae]=lEe(ee,re),se=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:T},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:de="children"}=se,he=l.useMemo(()=>te.some(pt=>pt==null?void 0:pt[de])?"nest":R||I!=null&&I.expandedRowRender?"row":null,[te]),ye={body:l.useRef()},pe=lxe(ee),J=l.useRef(null),ce=l.useRef(null);ixe(t,()=>Object.assign(Object.assign({},ce.current),{nativeElement:J.current}));const ue=l.useMemo(()=>typeof v=="function"?v:pt=>pt==null?void 0:pt[v],[v]),[fe]=Lxe(te,de,ue),be={},Ee=function(pt,lt){let Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ut,It,at,bt;const yt=Object.assign(Object.assign({},be),pt);Je&&((ut=be.resetPagination)===null||ut===void 0||ut.call(be),!((It=yt.pagination)===null||It===void 0)&&It.current&&(yt.pagination.current=1),p&&((at=p.onChange)===null||at===void 0||at.call(p,1,(bt=yt.pagination)===null||bt===void 0?void 0:bt.pageSize))),$&&$.scrollToFirstRowOnChange!==!1&&ye.body.current&&Are(0,{getContainer:()=>ye.body.current}),S==null||S(yt.pagination,yt.filters,yt.sorter,{currentDataSource:qT(YT(te,yt.sorterStates,de),yt.filterStates,de),action:lt})},Re=(pt,lt)=>{Ee({sorter:pt,sorterStates:lt},"sort",!1)},[Fe,Ce,ze,Pe]=Hxe({prefixCls:ee,mergedColumns:L,onSorterChange:Re,sortDirections:D||["ascend","descend"],tableLocale:Y,showSorterTooltip:A}),Ae=l.useMemo(()=>YT(te,Ce,de),[te,Ce]);be.sorter=Pe(),be.sorterStates=Ce;const Se=(pt,lt)=>{Ee({filters:pt,filterStates:lt},"filter",!0)},[_e,we,Te]=Pxe({prefixCls:ee,locale:Y,dropdownPrefixCls:Z,mergedColumns:L,onFilterChange:Se,getPopupContainer:C||X,rootClassName:ne(i,re)}),me=qT(Ae,we,de);be.filters=Te,be.filterStates=we;const xe=l.useMemo(()=>{const pt={};return Object.keys(Te).forEach(lt=>{Te[lt]!==null&&(pt[lt]=Te[lt])}),Object.assign(Object.assign({},ze),{filters:pt})},[ze,Te]),[Be]=Uxe(xe),ke=(pt,lt)=>{Ee({pagination:Object.assign(Object.assign({},be.pagination),{current:pt,pageSize:lt})},"paginate")},[Ne,He]=Bxe(me.length,ke,p);be.pagination=p===!1?{}:jxe(Ne,p),be.resetPagination=He;const Ge=l.useMemo(()=>{if(p===!1||!Ne.pageSize)return me;const{current:pt=1,total:lt,pageSize:Je=CG}=Ne;return me.lengthJe?me.slice((pt-1)*Je,pt*Je):me:me.slice((pt-1)*Je,pt*Je)},[!!p,me,Ne==null?void 0:Ne.current,Ne==null?void 0:Ne.pageSize,Ne==null?void 0:Ne.total]),[je,qe]=axe({prefixCls:ee,data:me,pageData:Ge,getRowKey:ue,getRecordByKey:fe,expandType:he,childrenColumnName:de,locale:Y,getPopupContainer:C||X},g),tt=(pt,lt,Je)=>{let ut;return typeof m=="function"?ut=ne(m(pt,lt,Je)):ut=ne(m),ne({[`${ee}-row-selected`]:qe.has(ue(pt,lt))},ut)};se.__PARENT_RENDER_ICON__=se.expandIcon,se.expandIcon=se.expandIcon||E||sxe(Y),he==="nest"&&se.expandIconColumnIndex===void 0?se.expandIconColumnIndex=g?1:0:se.expandIconColumnIndex>0&&g&&(se.expandIconColumnIndex-=1),typeof se.indentSize!="number"&&(se.indentSize=typeof _=="number"?_:15);const Ye=l.useCallback(pt=>Be(je(_e(Fe(pt)))),[Fe,_e,je]);let ft,ht;if(p!==!1&&(Ne!=null&&Ne.total)){let pt;Ne.size?pt=Ne.size:pt=W==="small"||W==="middle"?"small":void 0;const lt=It=>l.createElement(z$,Object.assign({},Ne,{className:ne(`${ee}-pagination ${ee}-pagination-${It}`,Ne.className),size:pt})),Je=B==="rtl"?"left":"right",{position:ut}=Ne;if(ut!==null&&Array.isArray(ut)){const It=ut.find(yt=>yt.includes("top")),at=ut.find(yt=>yt.includes("bottom")),bt=ut.every(yt=>`${yt}`=="none");!It&&!at&&!bt&&(ht=lt(Je)),It&&(ft=lt(It.toLowerCase().replace("top",""))),at&&(ht=lt(at.toLowerCase().replace("bottom","")))}else ht=lt(Je)}let Ue;typeof x=="boolean"?Ue={spinning:x}:typeof x=="object"&&(Ue=Object.assign({spinning:!0},x));const We=ne(ae,re,`${ee}-wrapper`,z==null?void 0:z.className,{[`${ee}-wrapper-rtl`]:B==="rtl"},o,i,Q),Ke=Object.assign(Object.assign({},z==null?void 0:z.style),s),st=typeof(P==null?void 0:P.emptyText)<"u"?P.emptyText:(H==null?void 0:H("Table"))||l.createElement(Vb,{componentName:"Table"}),Tt=O?Wxe:Vxe,Rt={},Ft=l.useMemo(()=>{const{fontSize:pt,lineHeight:lt,padding:Je,paddingXS:ut,paddingSM:It}=oe,at=Math.floor(pt*lt);switch(W){case"large":return Je*2+at;case"small":return ut*2+at;default:return It*2+at}},[oe,W]);return O&&(Rt.listItemHeight=Ft),q(l.createElement("div",{ref:J,className:We,style:Ke},l.createElement(H$,Object.assign({spinning:!1},Ue),ft,l.createElement(Tt,Object.assign({},Rt,F,{ref:ce,columns:L,direction:B,expandable:se,prefixCls:ee,className:ne({[`${ee}-middle`]:W==="middle",[`${ee}-small`]:W==="small",[`${ee}-bordered`]:u,[`${ee}-empty`]:te.length===0},ae,re,Q),data:Ge,rowKey:ue,rowClassName:tt,emptyText:st,internalHooks:Cg,internalRefs:ye,transformColumns:Ye,getContainerWidth:pe})),ht)))},dEe=l.forwardRef(uEe),fEe=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(dEe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ts=l.forwardRef(fEe);ts.SELECTION_COLUMN=ds;ts.EXPAND_COLUMN=gs;ts.SELECTION_ALL=HT;ts.SELECTION_INVERT=UT;ts.SELECTION_NONE=VT;ts.Column=qCe;ts.ColumnGroup=KCe;ts.Summary=XW;const pEe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},Xt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},aO=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Bt(e,{tagFontSize:a,tagLineHeight:G(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},oO=e=>({defaultBg:new un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),IG=tn("Tag",e=>{const t=aO(e);return pEe(t)},oO);var gEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:i,onClick:s}=e,c=gEe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=l.useContext(ct),f=y=>{i==null||i(!o),s==null||s(y)},p=u("tag",n),[g,v,m]=IG(p),h=ne(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},d==null?void 0:d.className,a,v,m);return g(l.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:h,onClick:f})))}),hEe=e=>a9(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),vEe=nd(["Tag","preset"],e=>{const t=aO(e);return hEe(t)},oO);function bEe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Nm=(e,t,n)=>{const r=bEe(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},yEe=nd(["Tag","status"],e=>{const t=aO(e);return[Nm(t,"success","Success"),Nm(t,"processing","Info"),Nm(t,"error","Error"),Nm(t,"warning","Warning")]},oO);var SEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,p=SEe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:v,tag:m}=l.useContext(ct),[h,y]=l.useState(!0),b=Sn(p,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&y(f)},[f]);const S=nU(c),C=Hce(c),x=S||C,E=Object.assign(Object.assign({backgroundColor:c&&!x?c:void 0},m==null?void 0:m.style),o),I=g("tag",n),[R,T,_]=IG(I),$=ne(I,m==null?void 0:m.className,{[`${I}-${c}`]:x,[`${I}-has-color`]:c&&!x,[`${I}-hidden`]:!h,[`${I}-rtl`]:v==="rtl",[`${I}-borderless`]:!d},r,a,T,_),D=M=>{M.stopPropagation(),u==null||u(M),!M.defaultPrevented&&y(!1)},[,P]=J_(Bu(e),Bu(m),{closable:!1,closeIconRender:M=>{const L=l.createElement("span",{className:`${I}-close-icon`,onClick:D},M);return V_(M,L,F=>({onClick:j=>{var B;(B=F==null?void 0:F.onClick)===null||B===void 0||B.call(F,j),D(j)},className:ne(F==null?void 0:F.className,`${I}-close-icon`)}))}}),A=typeof p.onClick=="function"||i&&i.type==="a",O=s||null,k=O?l.createElement(l.Fragment,null,O,i&&l.createElement("span",null,i)):i,N=l.createElement("span",Object.assign({},b,{ref:t,className:$,style:E}),k,P,S&&l.createElement(vEe,{key:"preset",prefixCls:I}),C&&l.createElement(yEe,{key:"status",prefixCls:I}));return R(A?l.createElement(rg,{component:"Tag"},N):N)}),kv=wEe;kv.CheckableTag=mEe;const CEe=e=>{const t=e!=null&&e.algorithm?gp(e.algorithm):gp(Jp),n=Object.assign(Object.assign({},Fu),e==null?void 0:e.token);return wz(n,{override:e==null?void 0:e.token},t,j_)};function xEe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const EEe=(e,t)=>{const n=t??Jp(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),xEe(t??e)),Yz(r)),{controlHeight:a}),Kz(Object.assign(Object.assign({},n),{controlHeight:a})))},xi=(e,t)=>new un(e).setAlpha(t).toRgbString(),jc=(e,t)=>new un(e).lighten(t).toHexString(),IEe=e=>{const t=Yl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},TEe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:xi(r,.85),colorTextSecondary:xi(r,.65),colorTextTertiary:xi(r,.45),colorTextQuaternary:xi(r,.25),colorFill:xi(r,.18),colorFillSecondary:xi(r,.12),colorFillTertiary:xi(r,.08),colorFillQuaternary:xi(r,.04),colorBgElevated:jc(n,12),colorBgContainer:jc(n,8),colorBgLayout:jc(n,0),colorBgSpotlight:jc(n,26),colorBgBlur:xi(r,.04),colorBorder:jc(n,26),colorBorderSecondary:jc(n,19)}},REe=(e,t)=>{const n=Object.keys(P_).map(a=>{const o=Yl(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${a}-${c+1}`]=o[c],i[`${a}${c+1}`]=o[c],i),{})}).reduce((a,o)=>(a=Object.assign(Object.assign({},a),o),a),{}),r=t??Jp(e);return Object.assign(Object.assign(Object.assign({},r),n),qz(e,{generateColorPalettes:IEe,generateNeutralColorPalettes:TEe}))};function _Ee(){const[e,t,n]=Lr();return{theme:e,token:t,hashId:n}}const vi={defaultConfig:hp,defaultSeed:hp.token,useToken:_Ee,defaultAlgorithm:Jp,darkAlgorithm:REe,compactAlgorithm:EEe,getDesignToken:CEe};var $Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=d=>{const{keyCode:f}=d;f===De.ENTER&&d.preventDefault()},r=d=>{const{keyCode:f}=d,{onClick:p}=e;f===De.ENTER&&p&&p()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,c=$Ee(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},OEe)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),l.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},c,{onKeyDown:n,onKeyUp:r,style:u}))}),NEe=function(e){var t=l.useRef({valueLabels:new Map});return l.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,s=o.value,c=(i=o.label)!==null&&i!==void 0?i:n.get(s);return r.set(s,c),K(K({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])},kEe=function(e,t,n,r){return l.useMemo(function(){var a=e.map(function(c){var u=c.value;return u}),o=t.map(function(c){var u=c.value;return u}),i=a.filter(function(c){return!r[c]});if(n){var s=Bi(a,!0,r);a=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat(Oe(i),Oe(a)))),o]},[e,t,n,r])};function AEe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function MEe(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function ZT(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function DEe(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function WD(e){return e==null}const PEe=function(e,t){return l.useMemo(function(){var n=c0(e,{fieldNames:t,initWrapper:function(a){return K(K({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])};var iO=function(){return null},LEe=["children","value"];function TG(e){return ir(e).map(function(t){if(!l.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,s=xt(a,LEe),c=K({key:r,value:i},s),u=TG(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function QT(e){if(!e)return e;var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return pn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function FEe(e,t,n,r,a,o){var i=null,s=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,v){var m="".concat(f,"-").concat(v),h=g[o.value],y=n.includes(h),b=u(g[o.children]||[],m,y),S=l.createElement(iO,g,b.map(function(x){return x.node}));if(t===h&&(i=S),y){var C={pos:m,node:S,children:b};return p||s.push(C),C}return null}).filter(function(g){return g})}s||(s=[],u(r),s.sort(function(d,f){var p=d.node.props.value,g=f.node.props.value,v=n.indexOf(p),m=n.indexOf(g);return v-m}))}Object.defineProperty(e,"triggerNode",{get:function(){return pn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return pn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?s:s.map(function(d){var f=d.node;return f})}})}const jEe=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return l.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var c=t.toUpperCase();s=function(f,p){var g=p[r];return String(g).toUpperCase().includes(c)}}function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,g){var v=g[i],m=f||s(t,QT(g)),h=u(v||[],m);return(m||h.length)&&p.push(K(K({},g),{},V({isLeaf:void 0},i,h))),p},[])}return u(e)},[e,t,i,r,a])};function GD(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function BEe(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],s=e.map(function(c){var u=K({},c),d=u[n];return o[d]=u,u.key=u.key||d,u});return s.forEach(function(c){var u=c[r],d=o[u];d&&(d.children=d.children||[],d.children.push(c)),(u===a||!d&&a===null)&&i.push(c)}),i}function zEe(e,t,n){return l.useMemo(function(){return e?n?BEe(e,K({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:TG(t)},[t,n,e])}var RG=l.createContext(null),_G=l.createContext(null),HEe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},UEe=function(t,n){var r=RH(),a=r.prefixCls,o=r.multiple,i=r.searchValue,s=r.toggleOpen,c=r.open,u=r.notFoundContent,d=l.useContext(_G),f=d.virtual,p=d.listHeight,g=d.listItemHeight,v=d.listItemScrollOffset,m=d.treeData,h=d.fieldNames,y=d.onSelect,b=d.dropdownMatchSelectWidth,S=d.treeExpandAction,C=d.treeTitleRender,x=d.onPopupScroll,E=l.useContext(RG),I=E.checkable,R=E.checkedKeys,T=E.halfCheckedKeys,_=E.treeExpandedKeys,$=E.treeDefaultExpandAll,D=E.treeDefaultExpandedKeys,P=E.onTreeExpand,A=E.treeIcon,O=E.showTreeIcon,k=E.switcherIcon,N=E.treeLine,M=E.treeNodeFilterProp,L=E.loadData,F=E.treeLoadedKeys,j=E.treeMotion,B=E.onTreeLoad,z=E.keyEntities,H=l.useRef(),U=Qs(function(){return m},[c,m],function(Ee,Re){return Re[0]&&Ee[1]!==Re[1]}),X=l.useState(null),W=ie(X,2),Y=W[0],te=W[1],ee=z[Y],Z=l.useMemo(function(){return I?{checked:R,halfChecked:T}:null},[I,R,T]);l.useEffect(function(){if(c&&!o&&R.length){var Ee;(Ee=H.current)===null||Ee===void 0||Ee.scrollTo({key:R[0]}),te(R[0])}},[c]);var oe=String(i).toLowerCase(),re=function(Re){return oe?String(Re[M]).toLowerCase().includes(oe):!1},q=l.useState(D),Q=ie(q,2),ae=Q[0],se=Q[1],de=l.useState(null),he=ie(de,2),ye=he[0],pe=he[1],J=l.useMemo(function(){return _?Oe(_):i?ye:ae},[ae,ye,_,i]);l.useEffect(function(){i&&pe(DEe(m,h))},[i]);var ce=function(Re){se(Re),pe(Re),P&&P(Re)},ue=function(Re){Re.preventDefault()},fe=function(Re,Fe){var Ce=Fe.node;I&&ZT(Ce)||(y(Ce.key,{selected:!R.includes(Ce.key)}),o||s(!1))};if(l.useImperativeHandle(n,function(){var Ee;return{scrollTo:(Ee=H.current)===null||Ee===void 0?void 0:Ee.scrollTo,onKeyDown:function(Fe){var Ce,ze=Fe.which;switch(ze){case De.UP:case De.DOWN:case De.LEFT:case De.RIGHT:(Ce=H.current)===null||Ce===void 0||Ce.onKeyDown(Fe);break;case De.ENTER:{if(ee){var Pe=(ee==null?void 0:ee.node)||{},Ae=Pe.selectable,Se=Pe.value;Ae!==!1&&fe(null,{node:{key:Y},selected:!R.includes(Se)})}break}case De.ESC:s(!1)}},onKeyUp:function(){}}}),U.length===0)return l.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ue},u);var be={fieldNames:h};return F&&(be.loadedKeys=F),J&&(be.expandedKeys=J),l.createElement("div",{onMouseDown:ue},ee&&c&&l.createElement("span",{style:HEe,"aria-live":"assertive"},ee.node.value),l.createElement(w0,ve({ref:H,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:U,height:p,itemHeight:g,itemScrollOffset:v,virtual:f!==!1&&b!==!1,multiple:o,icon:A,showIcon:O,switcherIcon:k,showLine:N,loadData:i?null:L,motion:j,activeKey:Y,checkable:I,checkStrictly:!0,checkedKeys:Z,selectedKeys:I?[]:R,defaultExpandAll:$,titleRender:C},be,{onActiveChange:te,onSelect:fe,onCheck:fe,onExpand:ce,onLoad:B,filterTreeNode:re,expandAction:S,onScroll:x})))},VEe=l.forwardRef(UEe),sO="SHOW_ALL",lO="SHOW_PARENT",C0="SHOW_CHILD";function qD(e,t,n,r){var a=new Set(e);return t===C0?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(s){var c=s.node;return a.has(c[r.value])})&&i.children.every(function(s){var c=s.node;return ZT(c)||a.has(c[r.value])}))}):t===lO?e.filter(function(o){var i=n[o],s=i?i.parent:null;return!(s&&!ZT(s.node)&&a.has(s.key))}):e}var WEe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function GEe(e){return!e||mt(e)!=="object"}var qEe=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,s=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,p=e.onSearch,g=e.autoClearSearchValue,v=g===void 0?!0:g,m=e.filterTreeNode,h=e.treeNodeFilterProp,y=h===void 0?"value":h,b=e.showCheckedStrategy,S=e.treeNodeLabelProp,C=e.multiple,x=e.treeCheckable,E=e.treeCheckStrictly,I=e.labelInValue,R=e.fieldNames,T=e.treeDataSimpleMode,_=e.treeData,$=e.children,D=e.loadData,P=e.treeLoadedKeys,A=e.onTreeLoad,O=e.treeDefaultExpandAll,k=e.treeExpandedKeys,N=e.treeDefaultExpandedKeys,M=e.onTreeExpand,L=e.treeExpandAction,F=e.virtual,j=e.listHeight,B=j===void 0?200:j,z=e.listItemHeight,H=z===void 0?20:z,U=e.listItemScrollOffset,X=U===void 0?0:U,W=e.onDropdownVisibleChange,Y=e.dropdownMatchSelectWidth,te=Y===void 0?!0:Y,ee=e.treeLine,Z=e.treeIcon,oe=e.showTreeIcon,re=e.switcherIcon,q=e.treeMotion,Q=e.treeTitleRender,ae=e.onPopupScroll,se=xt(e,WEe),de=jH(n),he=x&&!E,ye=x||E,pe=E||I,J=ye||C,ce=on(i,{value:o}),ue=ie(ce,2),fe=ue[0],be=ue[1],Ee=l.useMemo(function(){return x?b||C0:sO},[b,x]),Re=l.useMemo(function(){return MEe(R)},[JSON.stringify(R)]),Fe=on("",{value:d!==void 0?d:f,postState:function(bt){return bt||""}}),Ce=ie(Fe,2),ze=Ce[0],Pe=Ce[1],Ae=function(bt){Pe(bt),p==null||p(bt)},Se=zEe(_,$,T),_e=PEe(Se,Re),we=_e.keyEntities,Te=_e.valueEntities,me=l.useCallback(function(at){var bt=[],yt=[];return at.forEach(function(et){Te.has(et)?yt.push(et):bt.push(et)}),{missingRawValues:bt,existRawValues:yt}},[Te]),xe=jEe(Se,ze,{fieldNames:Re,treeNodeFilterProp:y,filterTreeNode:m}),Be=l.useCallback(function(at){if(at){if(S)return at[S];for(var bt=Re._title,yt=0;yt{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${G(e.paddingXS)} ${G(e.calc(e.paddingXS).div(2).equal())}`},gG(n,Bt(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},N$(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function YEe(e,t,n){return tn("TreeSelect",r=>{const a=Bt(r,{treePrefixCls:t});return[KEe(a)]},mG)(e,n)}var XEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,size:a,disabled:o,bordered:i=!0,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p=26,placement:g,notFoundContent:v,switcherIcon:m,treeLine:h,getPopupContainer:y,popupClassName:b,dropdownClassName:S,treeIcon:C=!1,transitionName:x,choiceTransitionName:E="",status:I,treeExpandAction:R,builtinPlacements:T,dropdownMatchSelectWidth:_,popupMatchSelectWidth:$,allowClear:D,variant:P,dropdownStyle:A,tagRender:O}=e,k=XEe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:N,getPrefixCls:M,renderEmpty:L,direction:F,virtual:j,popupMatchSelectWidth:B,popupOverflow:z}=l.useContext(ct),H=M(),U=M("select",r),X=M("select-tree",r),W=M("tree-select",r),{compactSize:Y,compactItemClassnames:te}=es(U,F),ee=Yn(U),Z=Yn(W),[oe,re,q]=KH(U,ee),[Q]=YEe(W,X,Z),[ae,se]=dc("treeSelect",P,i),de=ne(b||S,`${W}-dropdown`,{[`${W}-dropdown-rtl`]:F==="rtl"},c,q,ee,Z,re),he=!!(u||d),ye=YH(e.suffixIcon,e.showArrow),pe=(n=$??_)!==null&&n!==void 0?n:B,{status:J,hasFeedback:ce,isFormItemInput:ue,feedbackIcon:fe}=l.useContext(Rr),be=nl(J,I),{suffixIcon:Ee,removeIcon:Re,clearIcon:Fe}=i$(Object.assign(Object.assign({},k),{multiple:he,showSuffixIcon:ye,hasFeedback:ce,feedbackIcon:fe,prefixCls:U,componentName:"TreeSelect"})),Ce=D===!0?{clearIcon:Fe}:D;let ze;v!==void 0?ze=v:ze=(L==null?void 0:L("Select"))||l.createElement(Vb,{componentName:"Select"});const Pe=Sn(k,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ae=l.useMemo(()=>g!==void 0?g:F==="rtl"?"bottomRight":"bottomLeft",[g,F]),Se=dr(ke=>{var Ne;return(Ne=a??Y)!==null&&Ne!==void 0?Ne:ke}),_e=l.useContext(Gr),we=o??_e,Te=ne(!r&&W,{[`${U}-lg`]:Se==="large",[`${U}-sm`]:Se==="small",[`${U}-rtl`]:F==="rtl",[`${U}-${ae}`]:se,[`${U}-in-form-item`]:ue},Yi(U,be,ce),te,s,c,q,ee,Z,re),me=ke=>l.createElement(hG,{prefixCls:X,switcherIcon:m,treeNodeProps:ke,showLine:h}),[xe]=Ji("SelectLike",A==null?void 0:A.zIndex),Be=l.createElement(xg,Object.assign({virtual:j,disabled:we},Pe,{dropdownMatchSelectWidth:pe,builtinPlacements:UH(T,z),ref:t,prefixCls:U,className:Te,listHeight:f,listItemHeight:p,treeCheckable:u&&l.createElement("span",{className:`${U}-tree-checkbox-inner`}),treeLine:!!h,suffixIcon:Ee,multiple:he,placement:Ae,removeIcon:Re,allowClear:Ce,switcherIcon:me,showTreeIcon:C,notFoundContent:ze,getPopupContainer:y||N,treeMotion:null,dropdownClassName:de,dropdownStyle:Object.assign(Object.assign({},A),{zIndex:xe}),choiceTransitionName:bo(H,"",E),transitionName:bo(H,"slide-up",x),treeExpandAction:R,tagRender:he?O:void 0}));return oe(Q(Be))},QEe=l.forwardRef(ZEe),al=QEe,JEe=ug(al);al.TreeNode=iO;al.SHOW_ALL=sO;al.SHOW_PARENT=lO;al.SHOW_CHILD=C0;al._InternalPanelDoNotUseOrYouWillBeFired=JEe;const e2e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},t2e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, @@ -462,7 +462,7 @@ html body { ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},B_(e)),{marginInlineStart:e.marginXXS})}),a2e(e)),o2e(e)),i2e()),{"&-rtl":{direction:"rtl"}})}},l2e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),$G=nn("Typography",e=>[s2e(e)],l2e),c2e=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=l.createElement(Dye,null)}=e,v=l.useRef(null),m=l.useRef(!1),h=l.useRef(),[y,b]=l.useState(c);l.useEffect(()=>{b(c)},[c]),l.useEffect(()=>{var O;if(!((O=v.current)===null||O===void 0)&&O.resizableTextArea){const{textArea:k}=v.current.resizableTextArea;k.focus();const{length:N}=k.value;k.setSelectionRange(N,N)}},[]);const S=O=>{let{target:k}=O;b(k.value.replace(/[\n\r]/g,""))},C=()=>{m.current=!0},x=()=>{m.current=!1},E=O=>{let{keyCode:k}=O;m.current||(h.current=k)},I=()=>{u(y.trim())},R=O=>{let{keyCode:k,ctrlKey:N,altKey:M,metaKey:L,shiftKey:F}=O;h.current===k&&!m.current&&!N&&!M&&!L&&!F&&(k===Me.ENTER?(I(),f==null||f()):k===Me.ESC&&d())},T=()=>{I()},_=p?`${t}-${p}`:"",[$,D,P]=$G(t),A=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},r,_,D,P);return $(l.createElement("div",{className:A,style:a},l.createElement(GV,{ref:v,maxLength:i,value:y,onChange:S,onKeyDown:E,onKeyUp:R,onCompositionStart:C,onCompositionEnd:x,onBlur:T,"aria-label":n,rows:1,autoSize:s}),g!==null?ur(g,{className:`${t}-edit-content-confirm`}):null))};var u2e=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=KD[t.format]||KD.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=p2e("message"in t?t.message:f2e),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var m2e=g2e;const h2e=fa(m2e);var v2e=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const b2e=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,i]=l.useState(!1),s=l.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),l.useEffect(()=>c,[]);const d=Ut(f=>v2e(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;h2e(g||String(n)||"",u),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:d}};function OS(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const y2e=e=>{const t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current},S2e=(e,t)=>{const n=l.useRef(!1);l.useEffect(()=>{n.current?e():n.current=!0},t)};var w2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:u}=e,d=w2e(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=l.useContext(it),v=c??p;let m=t;i&&(m=Pr(t,i));const h=f("typography",n),[y,b,S]=$G(h),C=ne(h,g==null?void 0:g.className,{[`${h}-rtl`]:v==="rtl"},a,o,b,S),x=Object.assign(Object.assign({},g==null?void 0:g.style),u);return y(l.createElement(r,Object.assign({className:C,style:x,ref:m},d),s))});function YD(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function km(e,t,n){return e===!0||e===void 0?t:e||n&&t}function C2e(e){const t=e.getBoundingClientRect(),{offsetWidth:n,offsetHeight:r}=e;let a=n,o=r;return Math.abs(n-t.width)<1&&Math.abs(r-t.height)<1&&(a=t.width,o=t.height),[a,o]}const x2e=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:c,onCopy:u}=e,d=YD(o),f=YD(i),{copied:p,copy:g}=r??{},v=n?km(d[1],p):km(d[0],g),h=typeof v=="string"?v:n?p:g;return l.createElement(tn,{key:"copy",title:v},l.createElement(XT,{className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":h,tabIndex:c},n?km(f[1],l.createElement(Wb,null),!0):km(f[0],s?l.createElement(Gi,null):l.createElement(DW,null),!0)))},Am=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)});function NG(e){const t=typeof e;return t==="string"||t==="number"}function E2e(e){let t=0;return e.forEach(n=>{NG(n)?t+=String(n).length:t+=1}),t}function XD(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const NS=0,kS=1,AS=2,MS=3,ZD=4,Mm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function I2e(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>sr(r),[r]),d=l.useMemo(()=>E2e(u),[r]),f=l.useMemo(()=>a(u,!1),[r]),[p,g]=l.useState(null),v=l.useRef(null),m=l.useRef(null),h=l.useRef(null),y=l.useRef(null),b=l.useRef(null),[S,C]=l.useState(!1),[x,E]=l.useState(NS),[I,R]=l.useState(0),[T,_]=l.useState(null);qt(()=>{E(t&&n&&d?kS:NS)},[n,r,o,t,u]),qt(()=>{var A,O,k,N;if(x===kS){E(AS);const M=m.current&&getComputedStyle(m.current).whiteSpace;_(M)}else if(x===AS){const M=!!(!((A=h.current)===null||A===void 0)&&A.isExceed());E(M?MS:ZD),g(M?[0,d]:null),C(M);const L=((O=h.current)===null||O===void 0?void 0:O.getHeight())||0,F=o===1?0:((k=y.current)===null||k===void 0?void 0:k.getHeight())||0,j=((N=b.current)===null||N===void 0?void 0:N.getHeight())||0,B=F+j,z=Math.max(L,B);R(z+1),c(M)}},[x]);const $=p?Math.ceil((p[0]+p[1])/2):0;qt(()=>{var A;const[O,k]=p||[0,0];if(O!==k){const M=(((A=v.current)===null||A===void 0?void 0:A.getHeight())||0)>I;let L=$;k-O===1&&(L=M?O:k),g(M?[O,L]:[L,k])}},[p,$]);const D=l.useMemo(()=>{if(x!==MS||!p||p[0]!==p[1]){const A=a(u,!1);return x!==ZD&&x!==NS?l.createElement("span",{style:Object.assign(Object.assign({},Mm),{WebkitLineClamp:o})},A):A}return a(i?u:XD(u,p[0]),S)},[i,x,p,u].concat(Oe(s))),P={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,D,x===AS&&l.createElement(l.Fragment,null,l.createElement(Am,{style:Object.assign(Object.assign(Object.assign({},P),Mm),{WebkitLineClamp:o}),ref:h},f),l.createElement(Am,{style:Object.assign(Object.assign(Object.assign({},P),Mm),{WebkitLineClamp:o-1}),ref:y},f),l.createElement(Am,{style:Object.assign(Object.assign(Object.assign({},P),Mm),{WebkitLineClamp:1}),ref:b},a([],!0))),x===MS&&p&&p[0]!==p[1]&&l.createElement(Am,{style:Object.assign(Object.assign({},P),{top:400}),ref:v},a(XD(u,$),!0)),x===kS&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const T2e=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(tn,Object.assign({open:n?void 0:!1},a),r)};var R2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{prefixCls:o,className:i,style:s,type:c,disabled:u,children:d,ellipsis:f,editable:p,copyable:g,component:v,title:m}=e,h=R2e(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:b}=l.useContext(it),[S]=mi("Text"),C=l.useRef(null),x=l.useRef(null),E=y("typography",o),I=yn(h,["mark","code","delete","underline","strong","keyboard","italic"]),[R,T]=OS(p),[_,$]=on(!1,{value:T.editing}),{triggerType:D=["icon"]}=T,P=me=>{var Ie;me&&((Ie=T.onStart)===null||Ie===void 0||Ie.call(T)),$(me)},A=y2e(_);S2e(()=>{var me;!_&&A&&((me=x.current)===null||me===void 0||me.focus())},[_]);const O=me=>{me==null||me.preventDefault(),P(!0)},k=me=>{var Ie;(Ie=T.onChange)===null||Ie===void 0||Ie.call(T,me),P(!1)},N=()=>{var me;(me=T.onCancel)===null||me===void 0||me.call(T),P(!1)},[M,L]=OS(g),{copied:F,copyLoading:j,onClick:B}=b2e({copyConfig:L,children:d}),[z,H]=l.useState(!1),[U,X]=l.useState(!1),[W,Y]=l.useState(!1),[te,ee]=l.useState(!1),[Z,oe]=l.useState(!0),[re,q]=OS(f,{expandable:!1,symbol:me=>me?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[Q,ae]=on(q.defaultExpanded||!1,{value:q.expanded}),se=re&&(!Q||q.expandable==="collapsible"),{rows:de=1}=q,he=l.useMemo(()=>se&&(q.suffix!==void 0||q.onEllipsis||q.expandable||R||M),[se,q,R,M]);qt(()=>{re&&!he&&(H(yT("webkitLineClamp")),X(yT("textOverflow")))},[he,re]);const[ye,pe]=l.useState(se),J=l.useMemo(()=>he?!1:de===1?U:z,[he,U,z]);qt(()=>{pe(J&&se)},[J,se]);const ce=se&&(ye?te:W),ue=se&&de===1&&ye,fe=se&&de>1&&ye,be=(me,Ie)=>{var je;ae(Ie.expanded),(je=q.onExpand)===null||je===void 0||je.call(q,me,Ie)},[Te,_e]=l.useState(0),Pe=me=>{let{offsetWidth:Ie}=me;_e(Ie)},Ee=me=>{var Ie;Y(me),W!==me&&((Ie=q.onEllipsis)===null||Ie===void 0||Ie.call(q,me))};l.useEffect(()=>{const me=C.current;if(re&&ye&&me){const[Ie,je]=C2e(me),ke=fe?je{const me=C.current;if(typeof IntersectionObserver>"u"||!me||!ye||!se)return;const Ie=new IntersectionObserver(()=>{oe(!!me.offsetParent)});return Ie.observe(me),()=>{Ie.disconnect()}},[ye,se]);let Fe={};q.tooltip===!0?Fe={title:(n=T.text)!==null&&n!==void 0?n:d}:l.isValidElement(q.tooltip)?Fe={title:q.tooltip}:typeof q.tooltip=="object"?Fe=Object.assign({title:(r=T.text)!==null&&r!==void 0?r:d},q.tooltip):Fe={title:q.tooltip};const De=l.useMemo(()=>{const me=Ie=>["string","number"].includes(typeof Ie);if(!(!re||ye)){if(me(T.text))return T.text;if(me(d))return d;if(me(m))return m;if(me(Fe.title))return Fe.title}},[re,ye,m,Fe.title,ce]);if(_)return l.createElement(c2e,{value:(a=T.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:k,onCancel:N,onEnd:T.onEnd,prefixCls:E,className:i,style:s,direction:b,component:v,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ae=()=>{const{expandable:me,symbol:Ie}=q;return!me||Q&&me!=="collapsible"?null:l.createElement(XT,{key:"expand",className:`${E}-${Q?"collapse":"expand"}`,onClick:je=>be(je,{expanded:!Q}),"aria-label":Q?S.collapse:S==null?void 0:S.expand},typeof Ie=="function"?Ie(Q):Ie)},we=()=>{if(!R)return;const{icon:me,tooltip:Ie,tabIndex:je}=T,ke=sr(Ie)[0]||(S==null?void 0:S.edit),Ne=typeof ke=="string"?ke:"";return D.includes("icon")?l.createElement(tn,{key:"edit",title:Ie===!1?"":ke},l.createElement(XT,{ref:x,className:`${E}-edit`,onClick:O,"aria-label":Ne,tabIndex:je},me||l.createElement(v0,{role:"button"}))):null},$e=()=>M?l.createElement(x2e,Object.assign({key:"copy"},L,{prefixCls:E,copied:F,locale:S,onCopy:B,loading:j,iconOnly:d==null})):null,Ce=me=>[me&&Ae(),we(),$e()],Re=me=>[me&&!Q&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$2e),q.suffix,Ce(me)];return l.createElement(Ur,{onResize:Pe,disabled:!se},me=>l.createElement(T2e,{tooltipProps:Fe,enableEllipsis:se,isEllipsis:ce},l.createElement(OG,Object.assign({className:ne({[`${E}-${c}`]:c,[`${E}-disabled`]:u,[`${E}-ellipsis`]:re,[`${E}-ellipsis-single-line`]:ue,[`${E}-ellipsis-multiple-line`]:fe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:fe?de:void 0}),component:v,ref:Pr(me,C,t),direction:b,onClick:D.includes("text")?O:void 0,"aria-label":De==null?void 0:De.toString(),title:m},I),l.createElement(I2e,{enableMeasure:se&&!ye,text:d,rows:de,width:Te,onEllipsis:Ee,expanded:Q,miscDeps:[F,Q,j,R,M]},(Ie,je)=>_2e(e,l.createElement(l.Fragment,null,Ie.length>0&&je&&!Q&&De?l.createElement("span",{key:"show-content","aria-hidden":!0},Ie):Ie,Re(je)))))))});var O2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=O2e(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(x0,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),k2e=l.forwardRef((e,t)=>l.createElement(x0,Object.assign({ref:t},e,{component:"div"})));var A2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=A2e(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?yn(n,["expandable","rows"]):n,[n]);return l.createElement(x0,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},D2e=l.forwardRef(M2e);var P2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=P2e(e,["level"]);let a;return L2e.includes(n)?a=`h${n}`:a="h1",l.createElement(x0,Object.assign({ref:t},r,{component:a}))}),Ln=OG;Ln.Text=D2e;Ln.Link=N2e;Ln.Title=F2e;Ln.Paragraph=k2e;const DS=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(pn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function j2e(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function QD(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function B2e(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(j2e(e,t),QD(t)):e.onSuccess(QD(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var z2e=function(t,n,r){var a=[],o=[];t.forEach(function(u){return o.push(u.webkitGetAsEntry())});function i(u){var d=u.createReader();function f(){d.readEntries(function(p){var g=Array.prototype.slice.apply(p);o.push.apply(o,Oe(g));var v=!g.length;v||f()})}f()}var s=function(d,f){d&&(d.path="",d.isFile?d.file(function(p){r(p)&&(d.fullPath&&!p.webkitRelativePath&&(Object.defineProperties(p,{webkitRelativePath:{writable:!0}}),p.webkitRelativePath=d.fullPath.replace(/^\//,""),Object.defineProperties(p,{webkitRelativePath:{writable:!1}})),a.push(p))}):d.isDirectory&&i(d))};function c(){for(var u=0;u{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${G(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:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},B_(e)),{marginInlineStart:e.marginXXS})}),a2e(e)),o2e(e)),i2e()),{"&-rtl":{direction:"rtl"}})}},l2e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),$G=tn("Typography",e=>[s2e(e)],l2e),c2e=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=l.createElement(Dye,null)}=e,v=l.useRef(null),m=l.useRef(!1),h=l.useRef(),[y,b]=l.useState(c);l.useEffect(()=>{b(c)},[c]),l.useEffect(()=>{var O;if(!((O=v.current)===null||O===void 0)&&O.resizableTextArea){const{textArea:k}=v.current.resizableTextArea;k.focus();const{length:N}=k.value;k.setSelectionRange(N,N)}},[]);const S=O=>{let{target:k}=O;b(k.value.replace(/[\n\r]/g,""))},C=()=>{m.current=!0},x=()=>{m.current=!1},E=O=>{let{keyCode:k}=O;m.current||(h.current=k)},I=()=>{u(y.trim())},R=O=>{let{keyCode:k,ctrlKey:N,altKey:M,metaKey:L,shiftKey:F}=O;h.current===k&&!m.current&&!N&&!M&&!L&&!F&&(k===De.ENTER?(I(),f==null||f()):k===De.ESC&&d())},T=()=>{I()},_=p?`${t}-${p}`:"",[$,D,P]=$G(t),A=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},r,_,D,P);return $(l.createElement("div",{className:A,style:a},l.createElement(GV,{ref:v,maxLength:i,value:y,onChange:S,onKeyDown:E,onKeyUp:R,onCompositionStart:C,onCompositionEnd:x,onBlur:T,"aria-label":n,rows:1,autoSize:s}),g!==null?ur(g,{className:`${t}-edit-content-confirm`}):null))};var u2e=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=KD[t.format]||KD.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=p2e("message"in t?t.message:f2e),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var m2e=g2e;const h2e=fa(m2e);var v2e=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const b2e=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,i]=l.useState(!1),s=l.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),l.useEffect(()=>c,[]);const d=zt(f=>v2e(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;h2e(g||String(n)||"",u),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:d}};function OS(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const y2e=e=>{const t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current},S2e=(e,t)=>{const n=l.useRef(!1);l.useEffect(()=>{n.current?e():n.current=!0},t)};var w2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:u}=e,d=w2e(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=l.useContext(ct),v=c??p;let m=t;i&&(m=Pr(t,i));const h=f("typography",n),[y,b,S]=$G(h),C=ne(h,g==null?void 0:g.className,{[`${h}-rtl`]:v==="rtl"},a,o,b,S),x=Object.assign(Object.assign({},g==null?void 0:g.style),u);return y(l.createElement(r,Object.assign({className:C,style:x,ref:m},d),s))});function YD(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function km(e,t,n){return e===!0||e===void 0?t:e||n&&t}function C2e(e){const t=e.getBoundingClientRect(),{offsetWidth:n,offsetHeight:r}=e;let a=n,o=r;return Math.abs(n-t.width)<1&&Math.abs(r-t.height)<1&&(a=t.width,o=t.height),[a,o]}const x2e=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:c,onCopy:u}=e,d=YD(o),f=YD(i),{copied:p,copy:g}=r??{},v=n?km(d[1],p):km(d[0],g),h=typeof v=="string"?v:n?p:g;return l.createElement(en,{key:"copy",title:v},l.createElement(XT,{className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":h,tabIndex:c},n?km(f[1],l.createElement(Wb,null),!0):km(f[0],s?l.createElement(Gi,null):l.createElement(DW,null),!0)))},Am=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)});function NG(e){const t=typeof e;return t==="string"||t==="number"}function E2e(e){let t=0;return e.forEach(n=>{NG(n)?t+=String(n).length:t+=1}),t}function XD(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const NS=0,kS=1,AS=2,MS=3,ZD=4,Mm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function I2e(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>ir(r),[r]),d=l.useMemo(()=>E2e(u),[r]),f=l.useMemo(()=>a(u,!1),[r]),[p,g]=l.useState(null),v=l.useRef(null),m=l.useRef(null),h=l.useRef(null),y=l.useRef(null),b=l.useRef(null),[S,C]=l.useState(!1),[x,E]=l.useState(NS),[I,R]=l.useState(0),[T,_]=l.useState(null);Wt(()=>{E(t&&n&&d?kS:NS)},[n,r,o,t,u]),Wt(()=>{var A,O,k,N;if(x===kS){E(AS);const M=m.current&&getComputedStyle(m.current).whiteSpace;_(M)}else if(x===AS){const M=!!(!((A=h.current)===null||A===void 0)&&A.isExceed());E(M?MS:ZD),g(M?[0,d]:null),C(M);const L=((O=h.current)===null||O===void 0?void 0:O.getHeight())||0,F=o===1?0:((k=y.current)===null||k===void 0?void 0:k.getHeight())||0,j=((N=b.current)===null||N===void 0?void 0:N.getHeight())||0,B=F+j,z=Math.max(L,B);R(z+1),c(M)}},[x]);const $=p?Math.ceil((p[0]+p[1])/2):0;Wt(()=>{var A;const[O,k]=p||[0,0];if(O!==k){const M=(((A=v.current)===null||A===void 0?void 0:A.getHeight())||0)>I;let L=$;k-O===1&&(L=M?O:k),g(M?[O,L]:[L,k])}},[p,$]);const D=l.useMemo(()=>{if(x!==MS||!p||p[0]!==p[1]){const A=a(u,!1);return x!==ZD&&x!==NS?l.createElement("span",{style:Object.assign(Object.assign({},Mm),{WebkitLineClamp:o})},A):A}return a(i?u:XD(u,p[0]),S)},[i,x,p,u].concat(Oe(s))),P={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,D,x===AS&&l.createElement(l.Fragment,null,l.createElement(Am,{style:Object.assign(Object.assign(Object.assign({},P),Mm),{WebkitLineClamp:o}),ref:h},f),l.createElement(Am,{style:Object.assign(Object.assign(Object.assign({},P),Mm),{WebkitLineClamp:o-1}),ref:y},f),l.createElement(Am,{style:Object.assign(Object.assign(Object.assign({},P),Mm),{WebkitLineClamp:1}),ref:b},a([],!0))),x===MS&&p&&p[0]!==p[1]&&l.createElement(Am,{style:Object.assign(Object.assign({},P),{top:400}),ref:v},a(XD(u,$),!0)),x===kS&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const T2e=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(en,Object.assign({open:n?void 0:!1},a),r)};var R2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{prefixCls:o,className:i,style:s,type:c,disabled:u,children:d,ellipsis:f,editable:p,copyable:g,component:v,title:m}=e,h=R2e(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:b}=l.useContext(ct),[S]=hi("Text"),C=l.useRef(null),x=l.useRef(null),E=y("typography",o),I=Sn(h,["mark","code","delete","underline","strong","keyboard","italic"]),[R,T]=OS(p),[_,$]=on(!1,{value:T.editing}),{triggerType:D=["icon"]}=T,P=me=>{var xe;me&&((xe=T.onStart)===null||xe===void 0||xe.call(T)),$(me)},A=y2e(_);S2e(()=>{var me;!_&&A&&((me=x.current)===null||me===void 0||me.focus())},[_]);const O=me=>{me==null||me.preventDefault(),P(!0)},k=me=>{var xe;(xe=T.onChange)===null||xe===void 0||xe.call(T,me),P(!1)},N=()=>{var me;(me=T.onCancel)===null||me===void 0||me.call(T),P(!1)},[M,L]=OS(g),{copied:F,copyLoading:j,onClick:B}=b2e({copyConfig:L,children:d}),[z,H]=l.useState(!1),[U,X]=l.useState(!1),[W,Y]=l.useState(!1),[te,ee]=l.useState(!1),[Z,oe]=l.useState(!0),[re,q]=OS(f,{expandable:!1,symbol:me=>me?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[Q,ae]=on(q.defaultExpanded||!1,{value:q.expanded}),se=re&&(!Q||q.expandable==="collapsible"),{rows:de=1}=q,he=l.useMemo(()=>se&&(q.suffix!==void 0||q.onEllipsis||q.expandable||R||M),[se,q,R,M]);Wt(()=>{re&&!he&&(H(yT("webkitLineClamp")),X(yT("textOverflow")))},[he,re]);const[ye,pe]=l.useState(se),J=l.useMemo(()=>he?!1:de===1?U:z,[he,U,z]);Wt(()=>{pe(J&&se)},[J,se]);const ce=se&&(ye?te:W),ue=se&&de===1&&ye,fe=se&&de>1&&ye,be=(me,xe)=>{var Be;ae(xe.expanded),(Be=q.onExpand)===null||Be===void 0||Be.call(q,me,xe)},[Ee,Re]=l.useState(0),Fe=me=>{let{offsetWidth:xe}=me;Re(xe)},Ce=me=>{var xe;Y(me),W!==me&&((xe=q.onEllipsis)===null||xe===void 0||xe.call(q,me))};l.useEffect(()=>{const me=C.current;if(re&&ye&&me){const[xe,Be]=C2e(me),ke=fe?Be{const me=C.current;if(typeof IntersectionObserver>"u"||!me||!ye||!se)return;const xe=new IntersectionObserver(()=>{oe(!!me.offsetParent)});return xe.observe(me),()=>{xe.disconnect()}},[ye,se]);let ze={};q.tooltip===!0?ze={title:(n=T.text)!==null&&n!==void 0?n:d}:l.isValidElement(q.tooltip)?ze={title:q.tooltip}:typeof q.tooltip=="object"?ze=Object.assign({title:(r=T.text)!==null&&r!==void 0?r:d},q.tooltip):ze={title:q.tooltip};const Pe=l.useMemo(()=>{const me=xe=>["string","number"].includes(typeof xe);if(!(!re||ye)){if(me(T.text))return T.text;if(me(d))return d;if(me(m))return m;if(me(ze.title))return ze.title}},[re,ye,m,ze.title,ce]);if(_)return l.createElement(c2e,{value:(a=T.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:k,onCancel:N,onEnd:T.onEnd,prefixCls:E,className:i,style:s,direction:b,component:v,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ae=()=>{const{expandable:me,symbol:xe}=q;return!me||Q&&me!=="collapsible"?null:l.createElement(XT,{key:"expand",className:`${E}-${Q?"collapse":"expand"}`,onClick:Be=>be(Be,{expanded:!Q}),"aria-label":Q?S.collapse:S==null?void 0:S.expand},typeof xe=="function"?xe(Q):xe)},Se=()=>{if(!R)return;const{icon:me,tooltip:xe,tabIndex:Be}=T,ke=ir(xe)[0]||(S==null?void 0:S.edit),Ne=typeof ke=="string"?ke:"";return D.includes("icon")?l.createElement(en,{key:"edit",title:xe===!1?"":ke},l.createElement(XT,{ref:x,className:`${E}-edit`,onClick:O,"aria-label":Ne,tabIndex:Be},me||l.createElement(v0,{role:"button"}))):null},_e=()=>M?l.createElement(x2e,Object.assign({key:"copy"},L,{prefixCls:E,copied:F,locale:S,onCopy:B,loading:j,iconOnly:d==null})):null,we=me=>[me&&Ae(),Se(),_e()],Te=me=>[me&&!Q&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$2e),q.suffix,we(me)];return l.createElement(Ur,{onResize:Fe,disabled:!se},me=>l.createElement(T2e,{tooltipProps:ze,enableEllipsis:se,isEllipsis:ce},l.createElement(OG,Object.assign({className:ne({[`${E}-${c}`]:c,[`${E}-disabled`]:u,[`${E}-ellipsis`]:re,[`${E}-ellipsis-single-line`]:ue,[`${E}-ellipsis-multiple-line`]:fe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:fe?de:void 0}),component:v,ref:Pr(me,C,t),direction:b,onClick:D.includes("text")?O:void 0,"aria-label":Pe==null?void 0:Pe.toString(),title:m},I),l.createElement(I2e,{enableMeasure:se&&!ye,text:d,rows:de,width:Ee,onEllipsis:Ce,expanded:Q,miscDeps:[F,Q,j,R,M]},(xe,Be)=>_2e(e,l.createElement(l.Fragment,null,xe.length>0&&Be&&!Q&&Pe?l.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,Te(Be)))))))});var O2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=O2e(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(x0,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),k2e=l.forwardRef((e,t)=>l.createElement(x0,Object.assign({ref:t},e,{component:"div"})));var A2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=A2e(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?Sn(n,["expandable","rows"]):n,[n]);return l.createElement(x0,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},D2e=l.forwardRef(M2e);var P2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=P2e(e,["level"]);let a;return L2e.includes(n)?a=`h${n}`:a="h1",l.createElement(x0,Object.assign({ref:t},r,{component:a}))}),jn=OG;jn.Text=D2e;jn.Link=N2e;jn.Title=F2e;jn.Paragraph=k2e;const DS=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(pn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function j2e(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function QD(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function B2e(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(j2e(e,t),QD(t)):e.onSuccess(QD(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var z2e=function(t,n,r){var a=[],o=[];t.forEach(function(u){return o.push(u.webkitGetAsEntry())});function i(u){var d=u.createReader();function f(){d.readEntries(function(p){var g=Array.prototype.slice.apply(p);o.push.apply(o,Oe(g));var v=!g.length;v||f()})}f()}var s=function(d,f){d&&(d.path="",d.isFile?d.file(function(p){r(p)&&(d.fullPath&&!p.webkitRelativePath&&(Object.defineProperties(p,{webkitRelativePath:{writable:!0}}),p.webkitRelativePath=d.fullPath.replace(/^\//,""),Object.defineProperties(p,{webkitRelativePath:{writable:!1}})),a.push(p))}):d.isDirectory&&i(d))};function c(){for(var u=0;u{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${G(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:`${G(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,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${G(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, @@ -482,7 +482,7 @@ html body { ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${G(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},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% - ${G(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Z2e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Q2e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},J2e=e=>({actionsColor:e.colorTextDescription}),eIe=nn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=zt(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[Q2e(i),G2e(i),Y2e(i),X2e(i),q2e(i),K2e(i),Z2e(i),sg(i)]},J2e);function Dm(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 Pm(e,t){const n=Oe(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function FS(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function tIe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const nIe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},kG=e=>e.indexOf("image/")===0,rIe=e=>{if(e.type&&!e.thumbUrl)return kG(e.type);const t=e.thumbUrl||e.url||"",n=nIe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},is=200;function aIe(e){return new Promise(t=>{if(!e.type||!kG(e.type)){t("");return}const n=document.createElement("canvas");n.width=is,n.height=is,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${is}px; height: ${is}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=is,c=is,u=0,d=0;o>i?(c=i*(is/o),d=-(c-s)/2):(s=o*(is/i),u=-(s-c)/2),r.drawImage(a,u,d,s,c);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const oIe=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:i,file:s,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:g,showPreviewIcon:v,showRemoveIcon:m,showDownloadIcon:h,previewIcon:y,removeIcon:b,downloadIcon:S,extra:C,onPreview:x,onDownload:E,onClose:I}=e;var R,T;const{status:_}=s,[$,D]=l.useState(_);l.useEffect(()=>{_!=="removed"&&D(_)},[_]);const[P,A]=l.useState(!1);l.useEffect(()=>{const re=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(re)}},[]);const O=d(s);let k=l.createElement("div",{className:`${n}-icon`},O);if(i==="picture"||i==="picture-card"||i==="picture-circle")if($==="uploading"||!s.thumbUrl&&!s.url){const re=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:$!=="uploading"});k=l.createElement("div",{className:re},O)}else{const re=g!=null&&g(s)?l.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):O,q=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});k=l.createElement("a",{className:q,onClick:Q=>x(s,Q),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},re)}const N=ne(`${n}-list-item`,`${n}-list-item-${$}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=m?f((typeof b=="function"?b(s):b)||l.createElement(Tp,null),()=>I(s),n,o.removeFile,!0):null,F=h&&$==="done"?f((typeof S=="function"?S(s):S)||l.createElement(V$,null),()=>E(s),n,o.downloadFile):null,j=i!=="picture-card"&&i!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ne(`${n}-list-item-actions`,{picture:i==="picture"})},F,L),B=typeof C=="function"?C(s):C,z=B&&l.createElement("span",{className:`${n}-list-item-extra`},B),H=ne(`${n}-list-item-name`),U=s.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},M,{href:s.url,onClick:re=>x(s,re)}),s.name,z):l.createElement("span",{key:"view",className:H,onClick:re=>x(s,re),title:s.name},s.name,z),X=v&&(s.url||s.thumbUrl)?l.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:re=>x(s,re),title:o.previewFile},typeof y=="function"?y(s):y||l.createElement(WV,null)):null,W=(i==="picture-card"||i==="picture-circle")&&$!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},X,$==="done"&&F,L),{getPrefixCls:Y}=l.useContext(it),te=Y(),ee=l.createElement("div",{className:N},k,U,j,W,P&&l.createElement(qr,{motionName:`${te}-fade`,visible:$==="uploading",motionDeadline:2e3},re=>{let{className:q}=re;const Q="percent"in s?l.createElement(h0,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return l.createElement("div",{className:ne(`${n}-list-item-progress`,q)},Q)})),Z=s.response&&typeof s.response=="string"?s.response:((R=s.error)===null||R===void 0?void 0:R.statusText)||((T=s.error)===null||T===void 0?void 0:T.message)||o.uploadError,oe=$==="error"?l.createElement(tn,{title:Z,getPopupContainer:re=>re.parentNode},ee):ee;return l.createElement("div",{className:ne(`${n}-list-item-container`,r),style:a,ref:t},p?p(oe,s,c,{download:E.bind(null,s),preview:x.bind(null,s),remove:I.bind(null,s)}):oe)}),iIe=(e,t)=>{const{listType:n="text",previewFile:r=aIe,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:c,isImageUrl:u=rIe,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:m,previewIcon:h,downloadIcon:y,extra:b,progress:S={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:x=!0,itemRender:E,disabled:I}=e,R=s$(),[T,_]=l.useState(!1);l.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(H=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r&&r(H.originFileObj).then(U=>{H.thumbUrl=U||"",R()}))})},[n,f,r]),l.useEffect(()=>{_(!0)},[]);const $=(H,U)=>{if(a)return U==null||U.preventDefault(),a(H)},D=H=>{typeof o=="function"?o(H):H.url&&window.open(H.url)},P=H=>{i==null||i(H)},A=H=>{if(c)return c(H,n);const U=H.status==="uploading",X=u!=null&&u(H)?l.createElement(s1e,null):l.createElement(Gye,null);let W=U?l.createElement(Gi,null):l.createElement(n1e,null);return n==="picture"?W=U?l.createElement(Gi,null):X:(n==="picture-card"||n==="picture-circle")&&(W=U?s.uploading:X),W},O=(H,U,X,W,Y)=>{const te={type:"text",size:"small",title:W,onClick:ee=>{var Z,oe;U(),l.isValidElement(H)&&((oe=(Z=H.props).onClick)===null||oe===void 0||oe.call(Z,ee))},className:`${X}-list-item-action`};if(Y&&(te.disabled=I),l.isValidElement(H)){const ee=ur(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}));return l.createElement(Pt,Object.assign({},te,{icon:ee}))}return l.createElement(Pt,Object.assign({},te),l.createElement("span",null,H))};l.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:D}));const{getPrefixCls:k}=l.useContext(it),N=k("upload",d),M=k(),L=ne(`${N}-list`,`${N}-list-${n}`),F=Oe(f.map(H=>({key:H.uid,file:H})));let B={motionDeadline:2e3,motionName:`${N}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:F,motionAppear:T};const z=l.useMemo(()=>{const H=Object.assign({},ju(M));return delete H.onAppearEnd,delete H.onEnterEnd,delete H.onLeaveEnd,H},[M]);return n!=="picture-card"&&n!=="picture-circle"&&(B=Object.assign(Object.assign({},z),B)),l.createElement("div",{className:L},l.createElement(H_,Object.assign({},B,{component:!1}),H=>{let{key:U,file:X,className:W,style:Y}=H;return l.createElement(oIe,{key:U,locale:s,prefixCls:N,className:W,style:Y,file:X,items:f,progress:S,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:v,removeIcon:m,previewIcon:h,downloadIcon:y,extra:b,iconRender:A,actionIconRender:O,itemRender:E,onPreview:$,onDownload:D,onClose:P})}),C&&l.createElement(qr,Object.assign({},B,{visible:x,forceRender:!0}),H=>{let{className:U,style:X}=H;return ur(C,W=>({className:ne(W.className,U),style:Object.assign(Object.assign(Object.assign({},X),{pointerEvents:U?"none":void 0}),W.style)}))}))},sIe=l.forwardRef(iIe);var lIe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const lf=`__LIST_IGNORE_${Date.now()}__`,cIe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:i="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:v,isImageUrl:m,progress:h,prefixCls:y,className:b,type:S="select",children:C,style:x,itemRender:E,maxCount:I,data:R={},multiple:T=!1,hasControlInside:_=!0,action:$="",accept:D="",supportServerRender:P=!0,rootClassName:A}=e,O=l.useContext(Gr),k=p??O,[N,M]=on(r||[],{value:n,postState:we=>we??[]}),[L,F]=l.useState("drop"),j=l.useRef(null),B=l.useRef(null);l.useMemo(()=>{const we=Date.now();(n||[]).forEach(($e,Ce)=>{!$e.uid&&!Object.isFrozen($e)&&($e.uid=`__AUTO__${we}_${Ce}__`)})},[n]);const z=(we,$e,Ce)=>{let Re=Oe($e),me=!1;I===1?Re=Re.slice(-1):I&&(me=Re.length>I,Re=Re.slice(0,I)),xr.flushSync(()=>{M(Re)});const Ie={file:we,fileList:Re};Ce&&(Ie.event=Ce),(!me||we.status==="removed"||Re.some(je=>je.uid===we.uid))&&xr.flushSync(()=>{u==null||u(Ie)})},H=(we,$e)=>lIe(void 0,void 0,void 0,function*(){const{beforeUpload:Ce,transformFile:Re}=e;let me=we;if(Ce){const Ie=yield Ce(we,$e);if(Ie===!1)return!1;if(delete we[lf],Ie===lf)return Object.defineProperty(we,lf,{value:!0,configurable:!0}),!1;typeof Ie=="object"&&Ie&&(me=Ie)}return Re&&(me=yield Re(me)),me}),U=we=>{const $e=we.filter(me=>!me.file[lf]);if(!$e.length)return;const Ce=$e.map(me=>Dm(me.file));let Re=Oe(N);Ce.forEach(me=>{Re=Pm(me,Re)}),Ce.forEach((me,Ie)=>{let je=me;if($e[Ie].parsedFile)me.status="uploading";else{const{originFileObj:ke}=me;let Ne;try{Ne=new File([ke],ke.name,{type:ke.type})}catch{Ne=new Blob([ke],{type:ke.type}),Ne.name=ke.name,Ne.lastModifiedDate=new Date,Ne.lastModified=new Date().getTime()}Ne.uid=me.uid,je=Ne}z(je,Re)})},X=(we,$e,Ce)=>{try{typeof we=="string"&&(we=JSON.parse(we))}catch{}if(!FS($e,N))return;const Re=Dm($e);Re.status="done",Re.percent=100,Re.response=we,Re.xhr=Ce;const me=Pm(Re,N);z(Re,me)},W=(we,$e)=>{if(!FS($e,N))return;const Ce=Dm($e);Ce.status="uploading",Ce.percent=we.percent;const Re=Pm(Ce,N);z(Ce,Re,we)},Y=(we,$e,Ce)=>{if(!FS(Ce,N))return;const Re=Dm(Ce);Re.error=we,Re.response=$e,Re.status="error";const me=Pm(Re,N);z(Re,me)},te=we=>{let $e;Promise.resolve(typeof a=="function"?a(we):a).then(Ce=>{var Re;if(Ce===!1)return;const me=tIe(we,N);me&&($e=Object.assign(Object.assign({},we),{status:"removed"}),N==null||N.forEach(Ie=>{const je=$e.uid!==void 0?"uid":"name";Ie[je]===$e[je]&&!Object.isFrozen(Ie)&&(Ie.status="removed")}),(Re=j.current)===null||Re===void 0||Re.abort($e),z($e,me))})},ee=we=>{F(we.type),we.type==="drop"&&(d==null||d(we))};l.useImperativeHandle(t,()=>({onBatchStart:U,onSuccess:X,onProgress:W,onError:Y,fileList:N,upload:j.current,nativeElement:B.current}));const{getPrefixCls:Z,direction:oe,upload:re}=l.useContext(it),q=Z("upload",y),Q=Object.assign(Object.assign({onBatchStart:U,onError:Y,onProgress:W,onSuccess:X},e),{data:R,multiple:T,action:$,accept:D,supportServerRender:P,prefixCls:q,disabled:k,beforeUpload:H,onChange:void 0,hasControlInside:_});delete Q.className,delete Q.style,(!C||k)&&delete Q.id;const ae=`${q}-wrapper`,[se,de,he]=eIe(q,ae),[ye]=mi("Upload",ci.Upload),{showRemoveIcon:pe,showPreviewIcon:J,showDownloadIcon:ce,removeIcon:ue,previewIcon:fe,downloadIcon:be,extra:Te}=typeof o=="boolean"?{}:o,_e=typeof pe>"u"?!k:!!pe,Pe=(we,$e)=>o?l.createElement(sIe,{prefixCls:q,listType:i,items:N,previewFile:f,onPreview:s,onDownload:c,onRemove:te,showRemoveIcon:_e,showPreviewIcon:J,showDownloadIcon:ce,removeIcon:ue,previewIcon:fe,downloadIcon:be,iconRender:v,extra:Te,locale:Object.assign(Object.assign({},ye),g),isImageUrl:m,progress:h,appendAction:we,appendActionVisible:$e,itemRender:E,disabled:k}):we,Ee=ne(ae,b,A,de,he,re==null?void 0:re.className,{[`${q}-rtl`]:oe==="rtl",[`${q}-picture-card-wrapper`]:i==="picture-card",[`${q}-picture-circle-wrapper`]:i==="picture-circle"}),Fe=Object.assign(Object.assign({},re==null?void 0:re.style),x);if(S==="drag"){const we=ne(de,q,`${q}-drag`,{[`${q}-drag-uploading`]:N.some($e=>$e.status==="uploading"),[`${q}-drag-hover`]:L==="dragover",[`${q}-disabled`]:k,[`${q}-rtl`]:oe==="rtl"});return se(l.createElement("span",{className:Ee,ref:B},l.createElement("div",{className:we,style:Fe,onDrop:ee,onDragOver:ee,onDragLeave:ee},l.createElement(JT,Object.assign({},Q,{ref:j,className:`${q}-btn`}),l.createElement("div",{className:`${q}-drag-container`},C))),Pe()))}const De=ne(q,`${q}-select`,{[`${q}-disabled`]:k}),Ae=l.createElement("div",{className:De,style:C?void 0:{display:"none"}},l.createElement(JT,Object.assign({},Q,{ref:j})));return se(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:Ee,ref:B},Pe(Ae,!!C)):l.createElement("span",{className:Ee,ref:B},Ae,Pe()))},AG=l.forwardRef(cIe);var uIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=uIe(e,["style","height","hasControlInside"]);return l.createElement(AG,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),E0=AG;E0.Dragger=dIe;E0.LIST_IGNORE=lf;/** + `]:{zIndex:10,width:r,margin:`0 ${G(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},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% - ${G(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Z2e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Q2e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Xt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},J2e=e=>({actionsColor:e.colorTextDescription}),eIe=tn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=Bt(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[Q2e(i),G2e(i),Y2e(i),X2e(i),q2e(i),K2e(i),Z2e(i),sg(i)]},J2e);function Dm(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 Pm(e,t){const n=Oe(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function FS(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function tIe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const nIe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},kG=e=>e.indexOf("image/")===0,rIe=e=>{if(e.type&&!e.thumbUrl)return kG(e.type);const t=e.thumbUrl||e.url||"",n=nIe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},is=200;function aIe(e){return new Promise(t=>{if(!e.type||!kG(e.type)){t("");return}const n=document.createElement("canvas");n.width=is,n.height=is,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${is}px; height: ${is}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=is,c=is,u=0,d=0;o>i?(c=i*(is/o),d=-(c-s)/2):(s=o*(is/i),u=-(s-c)/2),r.drawImage(a,u,d,s,c);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const oIe=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:i,file:s,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:g,showPreviewIcon:v,showRemoveIcon:m,showDownloadIcon:h,previewIcon:y,removeIcon:b,downloadIcon:S,extra:C,onPreview:x,onDownload:E,onClose:I}=e;var R,T;const{status:_}=s,[$,D]=l.useState(_);l.useEffect(()=>{_!=="removed"&&D(_)},[_]);const[P,A]=l.useState(!1);l.useEffect(()=>{const re=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(re)}},[]);const O=d(s);let k=l.createElement("div",{className:`${n}-icon`},O);if(i==="picture"||i==="picture-card"||i==="picture-circle")if($==="uploading"||!s.thumbUrl&&!s.url){const re=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:$!=="uploading"});k=l.createElement("div",{className:re},O)}else{const re=g!=null&&g(s)?l.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):O,q=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});k=l.createElement("a",{className:q,onClick:Q=>x(s,Q),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},re)}const N=ne(`${n}-list-item`,`${n}-list-item-${$}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=m?f((typeof b=="function"?b(s):b)||l.createElement(Tp,null),()=>I(s),n,o.removeFile,!0):null,F=h&&$==="done"?f((typeof S=="function"?S(s):S)||l.createElement(V$,null),()=>E(s),n,o.downloadFile):null,j=i!=="picture-card"&&i!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ne(`${n}-list-item-actions`,{picture:i==="picture"})},F,L),B=typeof C=="function"?C(s):C,z=B&&l.createElement("span",{className:`${n}-list-item-extra`},B),H=ne(`${n}-list-item-name`),U=s.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},M,{href:s.url,onClick:re=>x(s,re)}),s.name,z):l.createElement("span",{key:"view",className:H,onClick:re=>x(s,re),title:s.name},s.name,z),X=v&&(s.url||s.thumbUrl)?l.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:re=>x(s,re),title:o.previewFile},typeof y=="function"?y(s):y||l.createElement(WV,null)):null,W=(i==="picture-card"||i==="picture-circle")&&$!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},X,$==="done"&&F,L),{getPrefixCls:Y}=l.useContext(ct),te=Y(),ee=l.createElement("div",{className:N},k,U,j,W,P&&l.createElement(qr,{motionName:`${te}-fade`,visible:$==="uploading",motionDeadline:2e3},re=>{let{className:q}=re;const Q="percent"in s?l.createElement(h0,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return l.createElement("div",{className:ne(`${n}-list-item-progress`,q)},Q)})),Z=s.response&&typeof s.response=="string"?s.response:((R=s.error)===null||R===void 0?void 0:R.statusText)||((T=s.error)===null||T===void 0?void 0:T.message)||o.uploadError,oe=$==="error"?l.createElement(en,{title:Z,getPopupContainer:re=>re.parentNode},ee):ee;return l.createElement("div",{className:ne(`${n}-list-item-container`,r),style:a,ref:t},p?p(oe,s,c,{download:E.bind(null,s),preview:x.bind(null,s),remove:I.bind(null,s)}):oe)}),iIe=(e,t)=>{const{listType:n="text",previewFile:r=aIe,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:c,isImageUrl:u=rIe,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:m,previewIcon:h,downloadIcon:y,extra:b,progress:S={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:x=!0,itemRender:E,disabled:I}=e,R=s$(),[T,_]=l.useState(!1);l.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(H=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r&&r(H.originFileObj).then(U=>{H.thumbUrl=U||"",R()}))})},[n,f,r]),l.useEffect(()=>{_(!0)},[]);const $=(H,U)=>{if(a)return U==null||U.preventDefault(),a(H)},D=H=>{typeof o=="function"?o(H):H.url&&window.open(H.url)},P=H=>{i==null||i(H)},A=H=>{if(c)return c(H,n);const U=H.status==="uploading",X=u!=null&&u(H)?l.createElement(s1e,null):l.createElement(Gye,null);let W=U?l.createElement(Gi,null):l.createElement(n1e,null);return n==="picture"?W=U?l.createElement(Gi,null):X:(n==="picture-card"||n==="picture-circle")&&(W=U?s.uploading:X),W},O=(H,U,X,W,Y)=>{const te={type:"text",size:"small",title:W,onClick:ee=>{var Z,oe;U(),l.isValidElement(H)&&((oe=(Z=H.props).onClick)===null||oe===void 0||oe.call(Z,ee))},className:`${X}-list-item-action`};if(Y&&(te.disabled=I),l.isValidElement(H)){const ee=ur(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}));return l.createElement(Dt,Object.assign({},te,{icon:ee}))}return l.createElement(Dt,Object.assign({},te),l.createElement("span",null,H))};l.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:D}));const{getPrefixCls:k}=l.useContext(ct),N=k("upload",d),M=k(),L=ne(`${N}-list`,`${N}-list-${n}`),F=Oe(f.map(H=>({key:H.uid,file:H})));let B={motionDeadline:2e3,motionName:`${N}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:F,motionAppear:T};const z=l.useMemo(()=>{const H=Object.assign({},ju(M));return delete H.onAppearEnd,delete H.onEnterEnd,delete H.onLeaveEnd,H},[M]);return n!=="picture-card"&&n!=="picture-circle"&&(B=Object.assign(Object.assign({},z),B)),l.createElement("div",{className:L},l.createElement(H_,Object.assign({},B,{component:!1}),H=>{let{key:U,file:X,className:W,style:Y}=H;return l.createElement(oIe,{key:U,locale:s,prefixCls:N,className:W,style:Y,file:X,items:f,progress:S,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:v,removeIcon:m,previewIcon:h,downloadIcon:y,extra:b,iconRender:A,actionIconRender:O,itemRender:E,onPreview:$,onDownload:D,onClose:P})}),C&&l.createElement(qr,Object.assign({},B,{visible:x,forceRender:!0}),H=>{let{className:U,style:X}=H;return ur(C,W=>({className:ne(W.className,U),style:Object.assign(Object.assign(Object.assign({},X),{pointerEvents:U?"none":void 0}),W.style)}))}))},sIe=l.forwardRef(iIe);var lIe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const lf=`__LIST_IGNORE_${Date.now()}__`,cIe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:i="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:v,isImageUrl:m,progress:h,prefixCls:y,className:b,type:S="select",children:C,style:x,itemRender:E,maxCount:I,data:R={},multiple:T=!1,hasControlInside:_=!0,action:$="",accept:D="",supportServerRender:P=!0,rootClassName:A}=e,O=l.useContext(Gr),k=p??O,[N,M]=on(r||[],{value:n,postState:Se=>Se??[]}),[L,F]=l.useState("drop"),j=l.useRef(null),B=l.useRef(null);l.useMemo(()=>{const Se=Date.now();(n||[]).forEach((_e,we)=>{!_e.uid&&!Object.isFrozen(_e)&&(_e.uid=`__AUTO__${Se}_${we}__`)})},[n]);const z=(Se,_e,we)=>{let Te=Oe(_e),me=!1;I===1?Te=Te.slice(-1):I&&(me=Te.length>I,Te=Te.slice(0,I)),xr.flushSync(()=>{M(Te)});const xe={file:Se,fileList:Te};we&&(xe.event=we),(!me||Se.status==="removed"||Te.some(Be=>Be.uid===Se.uid))&&xr.flushSync(()=>{u==null||u(xe)})},H=(Se,_e)=>lIe(void 0,void 0,void 0,function*(){const{beforeUpload:we,transformFile:Te}=e;let me=Se;if(we){const xe=yield we(Se,_e);if(xe===!1)return!1;if(delete Se[lf],xe===lf)return Object.defineProperty(Se,lf,{value:!0,configurable:!0}),!1;typeof xe=="object"&&xe&&(me=xe)}return Te&&(me=yield Te(me)),me}),U=Se=>{const _e=Se.filter(me=>!me.file[lf]);if(!_e.length)return;const we=_e.map(me=>Dm(me.file));let Te=Oe(N);we.forEach(me=>{Te=Pm(me,Te)}),we.forEach((me,xe)=>{let Be=me;if(_e[xe].parsedFile)me.status="uploading";else{const{originFileObj:ke}=me;let Ne;try{Ne=new File([ke],ke.name,{type:ke.type})}catch{Ne=new Blob([ke],{type:ke.type}),Ne.name=ke.name,Ne.lastModifiedDate=new Date,Ne.lastModified=new Date().getTime()}Ne.uid=me.uid,Be=Ne}z(Be,Te)})},X=(Se,_e,we)=>{try{typeof Se=="string"&&(Se=JSON.parse(Se))}catch{}if(!FS(_e,N))return;const Te=Dm(_e);Te.status="done",Te.percent=100,Te.response=Se,Te.xhr=we;const me=Pm(Te,N);z(Te,me)},W=(Se,_e)=>{if(!FS(_e,N))return;const we=Dm(_e);we.status="uploading",we.percent=Se.percent;const Te=Pm(we,N);z(we,Te,Se)},Y=(Se,_e,we)=>{if(!FS(we,N))return;const Te=Dm(we);Te.error=Se,Te.response=_e,Te.status="error";const me=Pm(Te,N);z(Te,me)},te=Se=>{let _e;Promise.resolve(typeof a=="function"?a(Se):a).then(we=>{var Te;if(we===!1)return;const me=tIe(Se,N);me&&(_e=Object.assign(Object.assign({},Se),{status:"removed"}),N==null||N.forEach(xe=>{const Be=_e.uid!==void 0?"uid":"name";xe[Be]===_e[Be]&&!Object.isFrozen(xe)&&(xe.status="removed")}),(Te=j.current)===null||Te===void 0||Te.abort(_e),z(_e,me))})},ee=Se=>{F(Se.type),Se.type==="drop"&&(d==null||d(Se))};l.useImperativeHandle(t,()=>({onBatchStart:U,onSuccess:X,onProgress:W,onError:Y,fileList:N,upload:j.current,nativeElement:B.current}));const{getPrefixCls:Z,direction:oe,upload:re}=l.useContext(ct),q=Z("upload",y),Q=Object.assign(Object.assign({onBatchStart:U,onError:Y,onProgress:W,onSuccess:X},e),{data:R,multiple:T,action:$,accept:D,supportServerRender:P,prefixCls:q,disabled:k,beforeUpload:H,onChange:void 0,hasControlInside:_});delete Q.className,delete Q.style,(!C||k)&&delete Q.id;const ae=`${q}-wrapper`,[se,de,he]=eIe(q,ae),[ye]=hi("Upload",ui.Upload),{showRemoveIcon:pe,showPreviewIcon:J,showDownloadIcon:ce,removeIcon:ue,previewIcon:fe,downloadIcon:be,extra:Ee}=typeof o=="boolean"?{}:o,Re=typeof pe>"u"?!k:!!pe,Fe=(Se,_e)=>o?l.createElement(sIe,{prefixCls:q,listType:i,items:N,previewFile:f,onPreview:s,onDownload:c,onRemove:te,showRemoveIcon:Re,showPreviewIcon:J,showDownloadIcon:ce,removeIcon:ue,previewIcon:fe,downloadIcon:be,iconRender:v,extra:Ee,locale:Object.assign(Object.assign({},ye),g),isImageUrl:m,progress:h,appendAction:Se,appendActionVisible:_e,itemRender:E,disabled:k}):Se,Ce=ne(ae,b,A,de,he,re==null?void 0:re.className,{[`${q}-rtl`]:oe==="rtl",[`${q}-picture-card-wrapper`]:i==="picture-card",[`${q}-picture-circle-wrapper`]:i==="picture-circle"}),ze=Object.assign(Object.assign({},re==null?void 0:re.style),x);if(S==="drag"){const Se=ne(de,q,`${q}-drag`,{[`${q}-drag-uploading`]:N.some(_e=>_e.status==="uploading"),[`${q}-drag-hover`]:L==="dragover",[`${q}-disabled`]:k,[`${q}-rtl`]:oe==="rtl"});return se(l.createElement("span",{className:Ce,ref:B},l.createElement("div",{className:Se,style:ze,onDrop:ee,onDragOver:ee,onDragLeave:ee},l.createElement(JT,Object.assign({},Q,{ref:j,className:`${q}-btn`}),l.createElement("div",{className:`${q}-drag-container`},C))),Fe()))}const Pe=ne(q,`${q}-select`,{[`${q}-disabled`]:k}),Ae=l.createElement("div",{className:Pe,style:C?void 0:{display:"none"}},l.createElement(JT,Object.assign({},Q,{ref:j})));return se(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:Ce,ref:B},Fe(Ae,!!C)):l.createElement("span",{className:Ce,ref:B},Ae,Fe()))},AG=l.forwardRef(cIe);var uIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=uIe(e,["style","height","hasControlInside"]);return l.createElement(AG,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),E0=AG;E0.Dragger=dIe;E0.LIST_IGNORE=lf;/** * @remix-run/router v1.19.0 * * Copyright (c) Remix Software Inc. @@ -500,7 +500,7 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=FG(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ps([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}function UG(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(hc),{matches:a}=l.useContext(vc),{pathname:o}=ol(),i=JSON.stringify(LG(a,r.v7_relativeSplatPath));return l.useMemo(()=>FG(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function BIe(e,t){return zIe(e,t)}function zIe(e,t,n,r){Eg()||hr(!1);let{navigator:a}=l.useContext(hc),{matches:o}=l.useContext(vc),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=ol(),d;if(t){var f;let h=typeof t=="string"?hd(t):t;c==="/"||(f=h.pathname)!=null&&f.startsWith(c)||hr(!1),d=h}else d=u;let p=d.pathname||"/",g=p;if(c!=="/"){let h=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(h.length).join("/")}let v=mIe(e,{pathname:g}),m=GIe(v&&v.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:Ps([c,a.encodeLocation?a.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?c:Ps([c,a.encodeLocation?a.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),o,n,r);return t&&m?l.createElement(I0.Provider,{value:{location:_p({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Es.Pop}},m):m}function HIe(){let e=XIe(),t=DIe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const UIe=l.createElement(HIe,null);class VIe extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(vc.Provider,{value:this.props.routeContext},l.createElement(BG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WIe(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(uO);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(vc.Provider,{value:t},r)}function GIe(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||hr(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,p)=>{let g,v=!1,m=null,h=null;n&&(g=s&&f.route.id?s[f.route.id]:void 0,m=f.route.errorElement||UIe,c&&(u<0&&p===0?(v=!0,h=null):u===p&&(v=!0,h=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,p+1)),b=()=>{let S;return g?S=m:v?S=h:f.route.Component?S=l.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,l.createElement(WIe,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?l.createElement(VIe,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var VG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(VG||{}),Mv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Mv||{});function qIe(e){let t=l.useContext(uO);return t||hr(!1),t}function KIe(e){let t=l.useContext(LIe);return t||hr(!1),t}function YIe(e){let t=l.useContext(vc);return t||hr(!1),t}function WG(e){let t=YIe(),n=t.matches[t.matches.length-1];return n.route.id||hr(!1),n.route.id}function XIe(){var e;let t=l.useContext(BG),n=KIe(Mv.UseRouteError),r=WG(Mv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZIe(){let{router:e}=qIe(VG.UseNavigateStable),t=WG(Mv.UseNavigateStable),n=l.useRef(!1);return zG(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,_p({fromRouteId:t},o)))},[e,t])}function Nn(e){hr(!1)}function QIe(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Es.Pop,navigator:o,static:i=!1,future:s}=e;Eg()&&hr(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:o,static:i,future:_p({v7_relativeSplatPath:!1},s)}),[c,s,o,i]);typeof r=="string"&&(r=hd(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:v="default"}=r,m=l.useMemo(()=>{let h=cO(d,c);return h==null?null:{location:{pathname:h,search:f,hash:p,state:g,key:v},navigationType:a}},[c,d,f,p,g,v,a]);return m==null?null:l.createElement(hc.Provider,{value:u},l.createElement(I0.Provider,{children:n,value:m}))}function JIe(e){let{children:t,location:n}=e;return BIe(tR(t),n)}new Promise(()=>{});function tR(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,tR(r.props.children,o));return}r.type!==Nn&&hr(!1),!r.props.index||!r.props.children||hr(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=tR(r.props.children,o)),n.push(i)}),n}/** + */function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=FG(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ps([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}function UG(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(hc),{matches:a}=l.useContext(vc),{pathname:o}=ol(),i=JSON.stringify(LG(a,r.v7_relativeSplatPath));return l.useMemo(()=>FG(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function BIe(e,t){return zIe(e,t)}function zIe(e,t,n,r){Eg()||hr(!1);let{navigator:a}=l.useContext(hc),{matches:o}=l.useContext(vc),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=ol(),d;if(t){var f;let h=typeof t=="string"?hd(t):t;c==="/"||(f=h.pathname)!=null&&f.startsWith(c)||hr(!1),d=h}else d=u;let p=d.pathname||"/",g=p;if(c!=="/"){let h=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(h.length).join("/")}let v=mIe(e,{pathname:g}),m=GIe(v&&v.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:Ps([c,a.encodeLocation?a.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?c:Ps([c,a.encodeLocation?a.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),o,n,r);return t&&m?l.createElement(I0.Provider,{value:{location:_p({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Es.Pop}},m):m}function HIe(){let e=XIe(),t=DIe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const UIe=l.createElement(HIe,null);class VIe extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(vc.Provider,{value:this.props.routeContext},l.createElement(BG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WIe(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(uO);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(vc.Provider,{value:t},r)}function GIe(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||hr(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,p)=>{let g,v=!1,m=null,h=null;n&&(g=s&&f.route.id?s[f.route.id]:void 0,m=f.route.errorElement||UIe,c&&(u<0&&p===0?(v=!0,h=null):u===p&&(v=!0,h=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,p+1)),b=()=>{let S;return g?S=m:v?S=h:f.route.Component?S=l.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,l.createElement(WIe,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?l.createElement(VIe,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var VG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(VG||{}),Mv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Mv||{});function qIe(e){let t=l.useContext(uO);return t||hr(!1),t}function KIe(e){let t=l.useContext(LIe);return t||hr(!1),t}function YIe(e){let t=l.useContext(vc);return t||hr(!1),t}function WG(e){let t=YIe(),n=t.matches[t.matches.length-1];return n.route.id||hr(!1),n.route.id}function XIe(){var e;let t=l.useContext(BG),n=KIe(Mv.UseRouteError),r=WG(Mv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZIe(){let{router:e}=qIe(VG.UseNavigateStable),t=WG(Mv.UseNavigateStable),n=l.useRef(!1);return zG(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,_p({fromRouteId:t},o)))},[e,t])}function An(e){hr(!1)}function QIe(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Es.Pop,navigator:o,static:i=!1,future:s}=e;Eg()&&hr(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:o,static:i,future:_p({v7_relativeSplatPath:!1},s)}),[c,s,o,i]);typeof r=="string"&&(r=hd(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:v="default"}=r,m=l.useMemo(()=>{let h=cO(d,c);return h==null?null:{location:{pathname:h,search:f,hash:p,state:g,key:v},navigationType:a}},[c,d,f,p,g,v,a]);return m==null?null:l.createElement(hc.Provider,{value:u},l.createElement(I0.Provider,{children:n,value:m}))}function JIe(e){let{children:t,location:n}=e;return BIe(tR(t),n)}new Promise(()=>{});function tR(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,tR(r.props.children,o));return}r.type!==An&&hr(!1),!r.props.index||!r.props.children||hr(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=tR(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.26.0 * * Copyright (c) Remix Software Inc. @@ -509,8 +509,8 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function nR(){return nR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function tTe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nTe(e,t){return e.button===0&&(!t||t==="_self")&&!tTe(e)}const rTe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],aTe="6";try{window.__reactRouterVersion=aTe}catch{}const oTe="startTransition",aP=Kp[oTe];function iTe(e){let{basename:t,children:n,future:r,window:a}=e,o=l.useRef();o.current==null&&(o.current=fIe({window:a,v5Compat:!0}));let i=o.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(f=>{u&&aP?aP(()=>c(f)):c(f)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.createElement(QIe,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const sTe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lTe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,At=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:f}=t,p=eTe(t,rTe),{basename:g}=l.useContext(hc),v,m=!1;if(typeof u=="string"&&lTe.test(u)&&(v=u,sTe))try{let S=new URL(window.location.href),C=u.startsWith("//")?new URL(S.protocol+u):new URL(u),x=cO(C.pathname,g);C.origin===S.origin&&x!=null?u=x+C.search+C.hash:m=!0}catch{}let h=FIe(u,{relative:a}),y=cTe(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:f});function b(S){r&&r(S),S.defaultPrevented||y(S)}return l.createElement("a",nR({},p,{href:v||h,onClick:m||o?r:b,ref:n,target:c}))});var oP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oP||(oP={}));var iP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(iP||(iP={}));function cTe(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=HG(),u=ol(),d=UG(e,{relative:i});return l.useCallback(f=>{if(nTe(f,n)){f.preventDefault();let p=r!==void 0?r:Av(u)===Av(d);c(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[u,c,d,r,a,n,e,o,i,s])}const GG=le.createContext(void 0),dO=()=>{const e=l.useContext(GG);if(!e)throw new Error("useAudioContext must be used within an AudioProvider");return e},uTe=e=>{const n=e.split("?")[0].split("/");return n[n.length-1]},dTe=({children:e})=>{const[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState(""),[s,c]=l.useState([]),u=(d,f)=>{console.log("Play audio: "+d);const p=document.getElementById("globalAudioPlayer");p.src=d,f?(n(f.picture),a(f.series),i(f.episode),c([])):(n(""),a(""),i(uTe(d)),c([])),p.play()};return w.jsx(GG.Provider,{value:{playAudio:u,songImage:t,songArtist:r,songTitle:o,songTracks:s},children:e})},fTe=[{key:"sub",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:le.createElement(UW)},{key:"sub2",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:le.createElement(RSe)}],pTe=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(Jb,{width:200,children:w.jsx(pi,{mode:"inline",style:{height:"100%",borderRight:0},items:fTe})}),w.jsxs(gi,{style:{padding:"0 24px 24px"},children:[w.jsxs(mg,{style:{margin:"16px 0"},children:[w.jsx(wu,{children:"Home"}),w.jsx(wu,{children:"List"}),w.jsx(wu,{children:"App"})]}),w.jsxs(xW,{style:{padding:24,margin:0,minHeight:280},children:[w.jsx("p",{children:e("welcome.title")}),w.jsx("p",{children:"Sample datepicker from ant design:"}),w.jsx(fd,{})]})]})]})};var xa=function(){return xa=Object.assign||function(t){for(var n,r=1,a=arguments.length;r?@[\\\]^`{|}~-]+/g,bTe=/(^-|-$)/g;function sP(e){return e.replace(vTe,"-").replace(bTe,"")}var yTe=/(a)(d)/gi,Lm=52,lP=function(e){return String.fromCharCode(e+(e>25?39:97))};function rR(e){var t,n="";for(t=Math.abs(e);t>Lm;t=t/Lm|0)n=lP(t%Lm)+n;return(lP(t%Lm)+n).replace(yTe,"$1-$2")}var BS,XG=5381,uu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ZG=function(e){return uu(XG,e)};function STe(e){return rR(ZG(e)>>>0)}function wTe(e){return e.displayName||e.name||"Component"}function zS(e){return typeof e=="string"&&!0}var QG=typeof Symbol=="function"&&Symbol.for,JG=QG?Symbol.for("react.memo"):60115,CTe=QG?Symbol.for("react.forward_ref"):60112,xTe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ETe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ITe=((BS={})[CTe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},BS[JG]=eq,BS);function cP(e){return("type"in(t=e)&&t.type.$$typeof)===JG?eq:"$$typeof"in e?ITe[e.$$typeof]:xTe;var t}var TTe=Object.defineProperty,RTe=Object.getOwnPropertyNames,uP=Object.getOwnPropertySymbols,_Te=Object.getOwnPropertyDescriptor,$Te=Object.getPrototypeOf,dP=Object.prototype;function tq(e,t,n){if(typeof t!="string"){if(dP){var r=$Te(t);r&&r!==dP&&tq(e,r,n)}var a=RTe(t);uP&&(a=a.concat(uP(t)));for(var o=cP(e),i=cP(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var OTe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw Ig(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(h+="".concat(y,","))}),c+="".concat(v).concat(m,'{content:"').concat(h,'"}').concat(fO)},d=0;d0?".".concat(t):p},d=c.slice();d.push(function(p){p.type===Ib&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(zTe,n).replace(r,u))}),i.prefix&&d.push(Jee),d.push(Nz);var f=function(p,g,v,m){g===void 0&&(g=""),v===void 0&&(v=""),m===void 0&&(m="&"),t=m,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var h=p.replace(HTe,""),y=$z(v||g?"".concat(v," ").concat(g," { ").concat(h," }"):h);i.namespace&&(y=aq(y,i.namespace));var b=[];return mp(y,Zee(d.concat(Qee(function(S){return b.push(S)})))),b};return f.hash=c.length?c.reduce(function(p,g){return g.name||Ig(15),uu(p,g.name)},XG).toString():"",f}var VTe=new rq,oR=UTe(),oq=le.createContext({shouldForwardProp:void 0,styleSheet:VTe,stylis:oR});oq.Consumer;le.createContext(void 0);function mP(){return l.useContext(oq)}var WTe=function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=oR);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,gO(this,function(){throw Ig(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=oR),this.name+t.hash},e}(),GTe=function(e){return e>="A"&&e<="Z"};function hP(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}a=$l(a,i),this.staticRulesId=i}else{for(var c=uu(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),a=$l(a,g)}}return a},e}(),lq=le.createContext(void 0);lq.Consumer;var HS={};function XTe(e,t,n){var r=pO(e),a=e,o=!zS(e),i=t.attrs,s=i===void 0?R0:i,c=t.componentId,u=c===void 0?function(C,x){var E=typeof C!="string"?"sc":sP(C);HS[E]=(HS[E]||0)+1;var I="".concat(E,"-").concat(STe(T0+E+HS[E]));return x?"".concat(x,"-").concat(I):I}(t.displayName,t.parentComponentId):c,d=t.displayName,f=d===void 0?function(C){return zS(C)?"styled.".concat(C):"Styled(".concat(wTe(C),")")}(e):d,p=t.displayName&&t.componentId?"".concat(sP(t.displayName),"-").concat(t.componentId):t.componentId||u,g=r&&a.attrs?a.attrs.concat(s).filter(Boolean):s,v=t.shouldForwardProp;if(r&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var h=t.shouldForwardProp;v=function(C,x){return m(C,x)&&h(C,x)}}else v=m}var y=new YTe(n,p,r?a.componentStyle:void 0);function b(C,x){return function(E,I,R){var T=E.attrs,_=E.componentStyle,$=E.defaultProps,D=E.foldedComponentIds,P=E.styledComponentId,A=E.target,O=le.useContext(lq),k=mP(),N=E.shouldForwardProp||k.shouldForwardProp,M=hTe(I,O,$)||Wu,L=function(U,X,W){for(var Y,te=xa(xa({},X),{className:void 0,theme:W}),ee=0;eeQTe().token,Tg=ma(pi)` + */function nR(){return nR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function tTe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nTe(e,t){return e.button===0&&(!t||t==="_self")&&!tTe(e)}const rTe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],aTe="6";try{window.__reactRouterVersion=aTe}catch{}const oTe="startTransition",aP=Kp[oTe];function iTe(e){let{basename:t,children:n,future:r,window:a}=e,o=l.useRef();o.current==null&&(o.current=fIe({window:a,v5Compat:!0}));let i=o.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(f=>{u&&aP?aP(()=>c(f)):c(f)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.createElement(QIe,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const sTe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lTe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,At=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:f}=t,p=eTe(t,rTe),{basename:g}=l.useContext(hc),v,m=!1;if(typeof u=="string"&&lTe.test(u)&&(v=u,sTe))try{let S=new URL(window.location.href),C=u.startsWith("//")?new URL(S.protocol+u):new URL(u),x=cO(C.pathname,g);C.origin===S.origin&&x!=null?u=x+C.search+C.hash:m=!0}catch{}let h=FIe(u,{relative:a}),y=cTe(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:f});function b(S){r&&r(S),S.defaultPrevented||y(S)}return l.createElement("a",nR({},p,{href:v||h,onClick:m||o?r:b,ref:n,target:c}))});var oP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oP||(oP={}));var iP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(iP||(iP={}));function cTe(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=HG(),u=ol(),d=UG(e,{relative:i});return l.useCallback(f=>{if(nTe(f,n)){f.preventDefault();let p=r!==void 0?r:Av(u)===Av(d);c(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[u,c,d,r,a,n,e,o,i,s])}const GG=le.createContext(void 0),dO=()=>{const e=l.useContext(GG);if(!e)throw new Error("useAudioContext must be used within an AudioProvider");return e},uTe=e=>{const n=e.split("?")[0].split("/");return n[n.length-1]},dTe=({children:e})=>{const[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState(""),[s,c]=l.useState([]),u=(d,f)=>{console.log("Play audio: "+d);const p=document.getElementById("globalAudioPlayer");p.src=d,f?(n(f.picture),a(f.series),i(f.episode),c([])):(n(""),a(""),i(uTe(d)),c([])),p.play()};return w.jsx(GG.Provider,{value:{playAudio:u,songImage:t,songArtist:r,songTitle:o,songTracks:s},children:e})},fTe=[{key:"sub",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:le.createElement(UW)},{key:"sub2",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:le.createElement(RSe)}],pTe=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(Jb,{width:200,children:w.jsx(gi,{mode:"inline",style:{height:"100%",borderRight:0},items:fTe})}),w.jsxs(mi,{style:{padding:"0 24px 24px"},children:[w.jsxs(mg,{style:{margin:"16px 0"},children:[w.jsx(wu,{children:"Home"}),w.jsx(wu,{children:"List"}),w.jsx(wu,{children:"App"})]}),w.jsxs(xW,{style:{padding:24,margin:0,minHeight:280},children:[w.jsx("p",{children:e("welcome.title")}),w.jsx("p",{children:"Sample datepicker from ant design:"}),w.jsx(fd,{})]})]})]})};var xa=function(){return xa=Object.assign||function(t){for(var n,r=1,a=arguments.length;r?@[\\\]^`{|}~-]+/g,bTe=/(^-|-$)/g;function sP(e){return e.replace(vTe,"-").replace(bTe,"")}var yTe=/(a)(d)/gi,Lm=52,lP=function(e){return String.fromCharCode(e+(e>25?39:97))};function rR(e){var t,n="";for(t=Math.abs(e);t>Lm;t=t/Lm|0)n=lP(t%Lm)+n;return(lP(t%Lm)+n).replace(yTe,"$1-$2")}var BS,XG=5381,uu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ZG=function(e){return uu(XG,e)};function STe(e){return rR(ZG(e)>>>0)}function wTe(e){return e.displayName||e.name||"Component"}function zS(e){return typeof e=="string"&&!0}var QG=typeof Symbol=="function"&&Symbol.for,JG=QG?Symbol.for("react.memo"):60115,CTe=QG?Symbol.for("react.forward_ref"):60112,xTe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ETe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ITe=((BS={})[CTe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},BS[JG]=eq,BS);function cP(e){return("type"in(t=e)&&t.type.$$typeof)===JG?eq:"$$typeof"in e?ITe[e.$$typeof]:xTe;var t}var TTe=Object.defineProperty,RTe=Object.getOwnPropertyNames,uP=Object.getOwnPropertySymbols,_Te=Object.getOwnPropertyDescriptor,$Te=Object.getPrototypeOf,dP=Object.prototype;function tq(e,t,n){if(typeof t!="string"){if(dP){var r=$Te(t);r&&r!==dP&&tq(e,r,n)}var a=RTe(t);uP&&(a=a.concat(uP(t)));for(var o=cP(e),i=cP(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var OTe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw Ig(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(h+="".concat(y,","))}),c+="".concat(v).concat(m,'{content:"').concat(h,'"}').concat(fO)},d=0;d0?".".concat(t):p},d=c.slice();d.push(function(p){p.type===Ib&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(zTe,n).replace(r,u))}),i.prefix&&d.push(Jee),d.push(Nz);var f=function(p,g,v,m){g===void 0&&(g=""),v===void 0&&(v=""),m===void 0&&(m="&"),t=m,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var h=p.replace(HTe,""),y=$z(v||g?"".concat(v," ").concat(g," { ").concat(h," }"):h);i.namespace&&(y=aq(y,i.namespace));var b=[];return mp(y,Zee(d.concat(Qee(function(S){return b.push(S)})))),b};return f.hash=c.length?c.reduce(function(p,g){return g.name||Ig(15),uu(p,g.name)},XG).toString():"",f}var VTe=new rq,oR=UTe(),oq=le.createContext({shouldForwardProp:void 0,styleSheet:VTe,stylis:oR});oq.Consumer;le.createContext(void 0);function mP(){return l.useContext(oq)}var WTe=function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=oR);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,gO(this,function(){throw Ig(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=oR),this.name+t.hash},e}(),GTe=function(e){return e>="A"&&e<="Z"};function hP(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}a=$l(a,i),this.staticRulesId=i}else{for(var c=uu(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),a=$l(a,g)}}return a},e}(),lq=le.createContext(void 0);lq.Consumer;var HS={};function XTe(e,t,n){var r=pO(e),a=e,o=!zS(e),i=t.attrs,s=i===void 0?R0:i,c=t.componentId,u=c===void 0?function(C,x){var E=typeof C!="string"?"sc":sP(C);HS[E]=(HS[E]||0)+1;var I="".concat(E,"-").concat(STe(T0+E+HS[E]));return x?"".concat(x,"-").concat(I):I}(t.displayName,t.parentComponentId):c,d=t.displayName,f=d===void 0?function(C){return zS(C)?"styled.".concat(C):"Styled(".concat(wTe(C),")")}(e):d,p=t.displayName&&t.componentId?"".concat(sP(t.displayName),"-").concat(t.componentId):t.componentId||u,g=r&&a.attrs?a.attrs.concat(s).filter(Boolean):s,v=t.shouldForwardProp;if(r&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var h=t.shouldForwardProp;v=function(C,x){return m(C,x)&&h(C,x)}}else v=m}var y=new YTe(n,p,r?a.componentStyle:void 0);function b(C,x){return function(E,I,R){var T=E.attrs,_=E.componentStyle,$=E.defaultProps,D=E.foldedComponentIds,P=E.styledComponentId,A=E.target,O=le.useContext(lq),k=mP(),N=E.shouldForwardProp||k.shouldForwardProp,M=hTe(I,O,$)||Wu,L=function(U,X,W){for(var Y,te=xa(xa({},X),{className:void 0,theme:W}),ee=0;eeQTe().token,Tg=ma(gi)` height: 100%; border-right: 0; `,er=ma(Jb)` @@ -519,16 +519,16 @@ html body { display: none; margin: 8px; } -`,tr=ma(gi)` +`,tr=ma(mi)` padding: 0 24px 24px; `,eRe=ma(mg)` margin: 16px 0; -`,Xn=ma(gi.Content)` +`,Xn=ma(mi.Content)` padding: 24px; margin: 0; min-height: 280px; background: ${()=>JTe().colorBgContainer}; -`,$n=ma.span` +`,Nn=ma.span` @media (min-width: 768px) { display: none; } @@ -538,18 +538,18 @@ html body { } `;ma(wu)` padding: 10px; -`;const nr=({items:e})=>{const{t}=Vt();return l.useEffect(()=>{if(e.length===1)document.title="TeddyCloud";else{const n=e.slice(1).map(r=>t(r.title)).join(" - ");document.title="TeddyCloud - "+n}},[e,t]),w.jsx(eRe,{items:e})},tRe="http://localhost".replace(/\/+$/,"");class uq{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:tRe}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||fq}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const nRe=new uq,qv=class qv{constructor(t=nRe){cl(this,"middleware");cl(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let a;try{a=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(a=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new iRe(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?qv.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:a}=await this.createFetchParams(t,n),o=await this.fetchApi(r,a);if(o&&o.status>=200&&o.status<300)return o;throw new oRe(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(u=>a[u]===void 0?delete a[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},s={...i,...await o({init:i,context:t})},c={...s,body:aRe(s.body)||s.body instanceof URLSearchParams||rRe(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};cl(qv,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let Np=qv;function rRe(e){return typeof Blob<"u"&&e instanceof Blob}function aRe(e){return typeof FormData<"u"&&e instanceof FormData}class oRe extends Error{constructor(n,r){super(r);cl(this,"name","ResponseError");this.response=n}}class iRe extends Error{constructor(n,r){super(r);cl(this,"name","FetchError");this.cause=n}}class sRe extends Error{constructor(n,r){super(r);cl(this,"name","RequiredError");this.field=n}}function dq(e,t){const n=e[t];return n!=null}function fq(e,t=""){return Object.keys(e).map(n=>pq(n,e[n],t)).filter(n=>n.length>0).join("&")}function pq(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}if(t instanceof Set){const a=Array.from(t);return pq(e,a,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?fq(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}function lRe(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class $i{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class cRe{constructor(t){this.raw=t}async value(){}}class Fv{constructor(t){this.raw=t}async value(){return await this.raw.text()}}class gq extends Np{async v1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new $i(a):new Fv(a)}async v1TimeGet(t){return await(await this.v1TimeGetRaw(t)).value()}}class uRe extends Np{async reverseV1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/reverse/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new $i(a):new Fv(a)}async reverseV1TimeGet(t){return await(await this.reverseV1TimeGetRaw(t)).value()}}function dRe(e){return fRe(e)}function fRe(e,t){return e==null?e:{iD:e.ID,shortname:e.shortname,description:e.description,label:e.label,type:e.type,value:e.value,overlayed:e.overlayed}}function pRe(e){return gRe(e)}function gRe(e,t){return e==null?e:{options:dq(e,"options")?e.options.map(dRe):void 0}}function mRe(e){return hRe(e)}function hRe(e,t){return e==null?e:{iD:e.ID,description:e.description,value:e.value}}function vRe(e){return bRe(e)}function bRe(e,t){return e==null?e:{stats:dq(e,"stats")?e.stats.map(mRe):void 0}}class En extends Np{async apiGetTonieboxesIndexRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/getBoxes",void 0,t);return new $i(n)}async apiGetTonieboxesIndex(t){return(await(await this.apiGetTonieboxesIndexRaw(t)).value()).boxes}async apiGetTagIndexRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/getTagIndex",t,n);return new $i(r)}async apiGetTagIndex(t,n,r){return(await(await this.apiGetTagIndexRaw(t,r)).value()).tags}async apiGetTagInfoRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/getTagInfo?ruid=${t}`,n,r);return new $i(a)}async apiGetTagInfo(t,n,r){return(await(await this.apiGetTagInfoRaw(t,n,r)).value()).tagInfo}async apiGetTagIndexMergedAllOverlays(t,n){const r=await this.apiGetTonieboxesIndex();return(await Promise.all([...r.map(async s=>await this.apiGetTagIndex(s.ID,t,n)),this.apiGetTagIndex("",t,n)])).flat().filter((s,c,u)=>c===u.findIndex(d=>d.ruid===s.ruid&&d.source===s.source))}async apiGetIndexGetRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/settings/getIndex",t,n);return new $i(r,a=>pRe(a))}async apiGetIndexGet(t,n){return await(await this.apiGetIndexGetRaw(t,n)).value()}async apiSetCloudCacheContentPostRaw(t,n){if(t.body===null||t.body===void 0)throw new sRe("body","Required parameter requestParameters.body was null or undefined when calling apiSetCloudCacheContentPost.");const r=await this.apiPostTeddyCloudSetting("cloud.cacheContent",t.body,void 0,void 0,n);return new cRe(r)}async apiSetCloudCacheContentPost(t,n){await this.apiSetCloudCacheContentPostRaw(t,n)}async apiStatsGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/stats",void 0,t);return new $i(n,r=>vRe(r))}async apiStatsGet(t){return await(await this.apiStatsGetRaw(t)).value()}async apiTriggerWriteConfigGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/triggerWriteConfig",void 0,t);return this.isJsonMime(n.headers.get("content-type"))?new $i(n):new Fv(n)}async apiTriggerWriteConfigGet(t){return await(await this.apiTriggerWriteConfigGetRaw(t)).value()}async apiUploadCertPostRaw(t,n,r){const a={},o={},s=lRe([{contentType:"multipart/form-data"}]);let c,u=!1,d="/api/uploadCert";n!==""&&n!==void 0&&(d=d+"?overlay="+n),u=s,u?c=new FormData:c=new URLSearchParams,t.filename&&t.filename.forEach(p=>{c.append("filename",p)});const f=await this.request({path:d,method:"POST",headers:o,query:a,body:c},r);return this.isJsonMime(f.headers.get("content-type"))?new $i(f):new Fv(f)}async apiUploadCertPost(t={},n,r){return await(await this.apiUploadCertPostRaw(t,n,r)).value()}async apiGetLastOnline(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_connection",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxStatus(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.online",t,n)).text()==="true"}async apiGetTonieboxVersion(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.toniebox_firmware.boxIC",t,n)).text()}async apiGetTonieboxLastRUID(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid",t,n)).text()}async apiGetTonieboxLastRUIDTime(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid_time",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxLastIp(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.ip",t,n)).text()}async apiGetTonieboxContentDir(t,n){return await(await this.apiGetTeddyCloudSettingRaw("core.contentdir",t,n)).text()}async apiGetTonieboxApiAccess(t,n){return await(await this.apiGetTeddyCloudSettingRaw("toniebox.api_access",t,n)).text()==="true"}async apiGetNewBoxesAllowed(t){return await(await this.apiGetTeddyCloudSettingRaw("core.allowNewBox",void 0,t)).text()==="true"}async apiGetSecurityMITAlert(t){return await(await this.apiGetTeddyCloudSettingRaw("internal.security_mit.incident",void 0,t)).text()==="true"}async apiGetTeddyCloudSettingRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/settings/get/${t}`,n,r);if(!a.ok)throw new Error(`Error: ${a.status} ${a.statusText}`);return a}async apiPostTeddyCloudSetting(t,n,r,a,o,i={}){i["Content-Type"]||(i["Content-Type"]="text/plain");const s=await this.apiPostTeddyCloudRaw(`/api/settings/${a&&a===!0?"reset":"set"}/${t}`,(n==null?void 0:n.toString())||"",r,o,i);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiGetTeddyCloudApiRaw(t,n,r){const a={},o={},i=await this.request({path:`${t}${n?"?overlay="+n:""}`,method:"GET",headers:o,query:a},r);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudContentJson(t,n,r,a,o={}){const i=await this.apiPostTeddyCloudRaw(`/content/json/set/${t}`,n,r,a,o);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudRaw(t,n,r,a,o={}){o["Content-Type"]||(o["Content-Type"]="text/plain");const i=c=>new Blob([c],{type:"text/plain"}),s=await this.request({path:`${t}${r?"?overlay="+r:""}`,method:"POST",headers:o,body:i((n==null?void 0:n.toString())||"")},a);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiPostTeddyCloudFormDataRaw(t,n,r,a,o={}){const i=await fetch(""+t,{method:"POST",body:n});if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}}const vn=()=>new uq({basePath:""}),yRe=new En(vn()),SRe=new gq(vn()),wRe=async(e=!0)=>{try{if((await(await yRe.apiGetTeddyCloudApiRaw("/api/triggerRestart")).text()).toString()!=="OK"){tt.error(Dd("settings.restartFailed"));return}}catch{tt.error(Dd("settings.restartFailed"));return}const t=tt.loading(Dd("settings.restartInProgress"),0);await new Promise(r=>setTimeout(r,3e3));let n=0;for(;n<10;)try{if((await SRe.v1TimeGet()).length===10){t(),tt.success(Dd("settings.restartComplete")),e&&(window.location.href="/web");return}}catch{n++,await new Promise(a=>setTimeout(a,3e3))}t(),tt.error(Dd("settings.restartFailed"))},CRe=new En(vn()),qu=()=>{const{t:e}=Vt(),[t,n]=l.useState(""),[r,a]=tt.useMessage(),o=async()=>{await wRe(!0),n("")},i=u=>{const d=new URL(u),f=d.port?`:${d.port}`:"";return`${d.protocol}//${d.hostname}${f}`},s=async()=>{const u=tt.loading(e("settings.toniesJsonReloadInProgress"),0);try{const f=await(await CRe.apiGetTeddyCloudApiRaw("/api/toniesJsonReload")).text();n(""),f.toString()!=="OK"?(u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})):(u(),r.open({type:"success",content:e("settings.toniesJsonReloadSuccessful")}))}catch{u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})}},c=[{key:"general",label:w.jsx(At,{to:"/settings",children:e("settings.general.navigationTitle")}),icon:le.createElement(G$),title:e("settings.general.navigationTitle")},{key:"certificates",label:w.jsx(At,{to:"/settings/certificates",children:e("settings.certificates.navigationTitle")}),icon:le.createElement(jW),title:e("settings.certificates.navigationTitle")},{key:"rtnl",label:w.jsx(At,{to:"/settings/rtnl",children:e("settings.rtnl.navigationTitle")}),icon:le.createElement(Uye),title:e("settings.rtnl.navigationTitle")},{key:"reload_toniesJson",label:w.jsx("label",{style:{cursor:"pointer"},children:e("settings.toniesJsonReload")}),onClick:s,icon:le.createElement(HW),title:e("settings.toniesJsonReload")},{key:"restart_server",label:w.jsx("label",{style:{cursor:"pointer"},children:e("settings.restartServer")}),onClick:o,icon:le.createElement(m1e),title:e("settings.restartServer")},{key:"legacy",label:w.jsx(At,{to:`${i(new URL(window.location.href))}/legacy.html`,target:"_blank",children:e("settings.legacyGui")}),icon:le.createElement(gSe),title:e("settings.legacyGui")}];return w.jsxs(w.Fragment,{children:[a,w.jsx(Tg,{mode:"inline",selectedKeys:[t],defaultOpenKeys:["sub"],items:c})]})};var xRe=function(t){return ERe(t)&&!IRe(t)};function ERe(e){return!!e&&typeof e=="object"}function IRe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||_Re(e)}var TRe=typeof Symbol=="function"&&Symbol.for,RRe=TRe?Symbol.for("react.element"):60103;function _Re(e){return e.$$typeof===RRe}function $Re(e){return Array.isArray(e)?[]:{}}function jv(e,t){return t.clone!==!1&&t.isMergeableObject(e)?kp($Re(e),e,t):e}function ORe(e,t,n){return e.concat(t).map(function(r){return jv(r,n)})}function NRe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=jv(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=jv(t[a],n):r[a]=kp(e[a],t[a],n)}),r}function kp(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ORe,n.isMergeableObject=n.isMergeableObject||xRe;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):NRe(e,t,n):jv(t,n)}kp.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return kp(r,a,n)},{})};var sR=kp,mq=typeof global=="object"&&global&&global.Object===Object&&global,kRe=typeof self=="object"&&self&&self.Object===Object&&self,vi=mq||kRe||Function("return this")(),Ws=vi.Symbol,hq=Object.prototype,ARe=hq.hasOwnProperty,MRe=hq.toString,Gd=Ws?Ws.toStringTag:void 0;function DRe(e){var t=ARe.call(e,Gd),n=e[Gd];try{e[Gd]=void 0;var r=!0}catch{}var a=MRe.call(e);return r&&(t?e[Gd]=n:delete e[Gd]),a}var PRe=Object.prototype,LRe=PRe.toString;function FRe(e){return LRe.call(e)}var jRe="[object Null]",BRe="[object Undefined]",yP=Ws?Ws.toStringTag:void 0;function bc(e){return e==null?e===void 0?BRe:jRe:yP&&yP in Object(e)?DRe(e):FRe(e)}function vq(e,t){return function(n){return e(t(n))}}var mO=vq(Object.getPrototypeOf,Object);function yc(e){return e!=null&&typeof e=="object"}var zRe="[object Object]",HRe=Function.prototype,URe=Object.prototype,bq=HRe.toString,VRe=URe.hasOwnProperty,WRe=bq.call(Object);function SP(e){if(!yc(e)||bc(e)!=zRe)return!1;var t=mO(e);if(t===null)return!0;var n=VRe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bq.call(n)==WRe}function GRe(){this.__data__=[],this.size=0}function yq(e,t){return e===t||e!==e&&t!==t}function _0(e,t){for(var n=e.length;n--;)if(yq(e[n][0],t))return n;return-1}var qRe=Array.prototype,KRe=qRe.splice;function YRe(e){var t=this.__data__,n=_0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():KRe.call(t,n,1),--this.size,!0}function XRe(e){var t=this.__data__,n=_0(t,e);return n<0?void 0:t[n][1]}function ZRe(e){return _0(this.__data__,e)>-1}function QRe(e,t){var n=this.__data__,r=_0(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ns(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Q_e}var J_e="[object Arguments]",e$e="[object Array]",t$e="[object Boolean]",n$e="[object Date]",r$e="[object Error]",a$e="[object Function]",o$e="[object Map]",i$e="[object Number]",s$e="[object Object]",l$e="[object RegExp]",c$e="[object Set]",u$e="[object String]",d$e="[object WeakMap]",f$e="[object ArrayBuffer]",p$e="[object DataView]",g$e="[object Float32Array]",m$e="[object Float64Array]",h$e="[object Int8Array]",v$e="[object Int16Array]",b$e="[object Int32Array]",y$e="[object Uint8Array]",S$e="[object Uint8ClampedArray]",w$e="[object Uint16Array]",C$e="[object Uint32Array]",Un={};Un[g$e]=Un[m$e]=Un[h$e]=Un[v$e]=Un[b$e]=Un[y$e]=Un[S$e]=Un[w$e]=Un[C$e]=!0;Un[J_e]=Un[e$e]=Un[f$e]=Un[t$e]=Un[p$e]=Un[n$e]=Un[r$e]=Un[a$e]=Un[o$e]=Un[i$e]=Un[s$e]=Un[l$e]=Un[c$e]=Un[u$e]=Un[d$e]=!1;function x$e(e){return yc(e)&&Tq(e.length)&&!!Un[bc(e)]}function hO(e){return function(t){return e(t)}}var Rq=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,Df=Rq&&typeof qa=="object"&&qa&&!qa.nodeType&&qa,E$e=Df&&Df.exports===Rq,VS=E$e&&mq.process,Ku=function(){try{var e=Df&&Df.require&&Df.require("util").types;return e||VS&&VS.binding&&VS.binding("util")}catch{}}(),TP=Ku&&Ku.isTypedArray,I$e=TP?hO(TP):x$e,T$e=Object.prototype,R$e=T$e.hasOwnProperty;function _q(e,t){var n=_g(e),r=!n&&W_e(e),a=!n&&!r&&Iq(e),o=!n&&!r&&!a&&I$e(e),i=n||r||a||o,s=i?z_e(e.length,String):[],c=s.length;for(var u in e)(t||R$e.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Z_e(u,c)))&&s.push(u);return s}var _$e=Object.prototype;function vO(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_$e;return e===n}var $$e=vq(Object.keys,Object),O$e=Object.prototype,N$e=O$e.hasOwnProperty;function k$e(e){if(!vO(e))return $$e(e);var t=[];for(var n in Object(e))N$e.call(e,n)&&n!="constructor"&&t.push(n);return t}function $q(e){return e!=null&&Tq(e.length)&&!Sq(e)}function bO(e){return $q(e)?_q(e):k$e(e)}function A$e(e,t){return e&&O0(t,bO(t),e)}function M$e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var D$e=Object.prototype,P$e=D$e.hasOwnProperty;function L$e(e){if(!Rg(e))return M$e(e);var t=vO(e),n=[];for(var r in e)r=="constructor"&&(t||!P$e.call(e,r))||n.push(r);return n}function yO(e){return $q(e)?_q(e,!0):L$e(e)}function F$e(e,t){return e&&O0(t,yO(t),e)}var Oq=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,RP=Oq&&typeof qa=="object"&&qa&&!qa.nodeType&&qa,j$e=RP&&RP.exports===Oq,_P=j$e?vi.Buffer:void 0,$P=_P?_P.allocUnsafe:void 0;function B$e(e,t){if(t)return e.slice();var n=e.length,r=$P?$P(n):new e.constructor(n);return e.copy(r),r}function Nq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{const{t}=Ht();return l.useEffect(()=>{if(e.length===1)document.title="TeddyCloud";else{const n=e.slice(1).map(r=>t(r.title)).join(" - ");document.title="TeddyCloud - "+n}},[e,t]),w.jsx(eRe,{items:e})},tRe="http://localhost".replace(/\/+$/,"");class uq{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:tRe}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||fq}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const nRe=new uq,qv=class qv{constructor(t=nRe){cl(this,"middleware");cl(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let a;try{a=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(a=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new iRe(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?qv.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:a}=await this.createFetchParams(t,n),o=await this.fetchApi(r,a);if(o&&o.status>=200&&o.status<300)return o;throw new oRe(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(u=>a[u]===void 0?delete a[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},s={...i,...await o({init:i,context:t})},c={...s,body:aRe(s.body)||s.body instanceof URLSearchParams||rRe(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};cl(qv,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let Np=qv;function rRe(e){return typeof Blob<"u"&&e instanceof Blob}function aRe(e){return typeof FormData<"u"&&e instanceof FormData}class oRe extends Error{constructor(n,r){super(r);cl(this,"name","ResponseError");this.response=n}}class iRe extends Error{constructor(n,r){super(r);cl(this,"name","FetchError");this.cause=n}}class sRe extends Error{constructor(n,r){super(r);cl(this,"name","RequiredError");this.field=n}}function dq(e,t){const n=e[t];return n!=null}function fq(e,t=""){return Object.keys(e).map(n=>pq(n,e[n],t)).filter(n=>n.length>0).join("&")}function pq(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}if(t instanceof Set){const a=Array.from(t);return pq(e,a,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?fq(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}function lRe(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class $i{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class cRe{constructor(t){this.raw=t}async value(){}}class Fv{constructor(t){this.raw=t}async value(){return await this.raw.text()}}class gq extends Np{async v1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new $i(a):new Fv(a)}async v1TimeGet(t){return await(await this.v1TimeGetRaw(t)).value()}}class uRe extends Np{async reverseV1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/reverse/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new $i(a):new Fv(a)}async reverseV1TimeGet(t){return await(await this.reverseV1TimeGetRaw(t)).value()}}function dRe(e){return fRe(e)}function fRe(e,t){return e==null?e:{iD:e.ID,shortname:e.shortname,description:e.description,label:e.label,type:e.type,value:e.value,overlayed:e.overlayed}}function pRe(e){return gRe(e)}function gRe(e,t){return e==null?e:{options:dq(e,"options")?e.options.map(dRe):void 0}}function mRe(e){return hRe(e)}function hRe(e,t){return e==null?e:{iD:e.ID,description:e.description,value:e.value}}function vRe(e){return bRe(e)}function bRe(e,t){return e==null?e:{stats:dq(e,"stats")?e.stats.map(mRe):void 0}}class Tn extends Np{async apiGetTonieboxesIndexRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/getBoxes",void 0,t);return new $i(n)}async apiGetTonieboxesIndex(t){return(await(await this.apiGetTonieboxesIndexRaw(t)).value()).boxes}async apiGetTagIndexRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/getTagIndex",t,n);return new $i(r)}async apiGetTagIndex(t,n,r){return(await(await this.apiGetTagIndexRaw(t,r)).value()).tags}async apiGetTagInfoRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/getTagInfo?ruid=${t}`,n,r);return new $i(a)}async apiGetTagInfo(t,n,r){return(await(await this.apiGetTagInfoRaw(t,n,r)).value()).tagInfo}async apiGetTagIndexMergedAllOverlays(t,n){const r=await this.apiGetTonieboxesIndex();return(await Promise.all([...r.map(async s=>await this.apiGetTagIndex(s.ID,t,n)),this.apiGetTagIndex("",t,n)])).flat().filter((s,c,u)=>c===u.findIndex(d=>d.ruid===s.ruid&&d.source===s.source))}async apiGetIndexGetRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/settings/getIndex",t,n);return new $i(r,a=>pRe(a))}async apiGetIndexGet(t,n){return await(await this.apiGetIndexGetRaw(t,n)).value()}async apiSetCloudCacheContentPostRaw(t,n){if(t.body===null||t.body===void 0)throw new sRe("body","Required parameter requestParameters.body was null or undefined when calling apiSetCloudCacheContentPost.");const r=await this.apiPostTeddyCloudSetting("cloud.cacheContent",t.body,void 0,void 0,n);return new cRe(r)}async apiSetCloudCacheContentPost(t,n){await this.apiSetCloudCacheContentPostRaw(t,n)}async apiStatsGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/stats",void 0,t);return new $i(n,r=>vRe(r))}async apiStatsGet(t){return await(await this.apiStatsGetRaw(t)).value()}async apiTriggerWriteConfigGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/triggerWriteConfig",void 0,t);return this.isJsonMime(n.headers.get("content-type"))?new $i(n):new Fv(n)}async apiTriggerWriteConfigGet(t){return await(await this.apiTriggerWriteConfigGetRaw(t)).value()}async apiUploadCertPostRaw(t,n,r){const a={},o={},s=lRe([{contentType:"multipart/form-data"}]);let c,u=!1,d="/api/uploadCert";n!==""&&n!==void 0&&(d=d+"?overlay="+n),u=s,u?c=new FormData:c=new URLSearchParams,t.filename&&t.filename.forEach(p=>{c.append("filename",p)});const f=await this.request({path:d,method:"POST",headers:o,query:a,body:c},r);return this.isJsonMime(f.headers.get("content-type"))?new $i(f):new Fv(f)}async apiUploadCertPost(t={},n,r){return await(await this.apiUploadCertPostRaw(t,n,r)).value()}async apiGetLastOnline(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_connection",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxStatus(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.online",t,n)).text()==="true"}async apiGetTonieboxVersion(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.toniebox_firmware.boxIC",t,n)).text()}async apiGetTonieboxLastRUID(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid",t,n)).text()}async apiGetTonieboxLastRUIDTime(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid_time",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxLastIp(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.ip",t,n)).text()}async apiGetTonieboxContentDir(t,n){return await(await this.apiGetTeddyCloudSettingRaw("core.contentdir",t,n)).text()}async apiGetTonieboxApiAccess(t,n){return await(await this.apiGetTeddyCloudSettingRaw("toniebox.api_access",t,n)).text()==="true"}async apiGetNewBoxesAllowed(t){return await(await this.apiGetTeddyCloudSettingRaw("core.allowNewBox",void 0,t)).text()==="true"}async apiGetSecurityMITAlert(t){return await(await this.apiGetTeddyCloudSettingRaw("internal.security_mit.incident",void 0,t)).text()==="true"}async apiGetTeddyCloudSettingRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/settings/get/${t}`,n,r);if(!a.ok)throw new Error(`Error: ${a.status} ${a.statusText}`);return a}async apiPostTeddyCloudSetting(t,n,r,a,o,i={}){i["Content-Type"]||(i["Content-Type"]="text/plain");const s=await this.apiPostTeddyCloudRaw(`/api/settings/${a&&a===!0?"reset":"set"}/${t}`,(n==null?void 0:n.toString())||"",r,o,i);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiGetTeddyCloudApiRaw(t,n,r){const a={},o={},i=await this.request({path:`${t}${n?"?overlay="+n:""}`,method:"GET",headers:o,query:a},r);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudContentJson(t,n,r,a,o={}){const i=await this.apiPostTeddyCloudRaw(`/content/json/set/${t}`,n,r,a,o);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudRaw(t,n,r,a,o={}){o["Content-Type"]||(o["Content-Type"]="text/plain");const i=c=>new Blob([c],{type:"text/plain"}),s=await this.request({path:`${t}${r?"?overlay="+r:""}`,method:"POST",headers:o,body:i((n==null?void 0:n.toString())||"")},a);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiPostTeddyCloudFormDataRaw(t,n,r,a,o={}){const i=await fetch(""+t,{method:"POST",body:n});if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}}const hn=()=>new uq({basePath:""}),yRe=new Tn(hn()),SRe=new gq(hn()),wRe=async(e=!0)=>{try{if((await(await yRe.apiGetTeddyCloudApiRaw("/api/triggerRestart")).text()).toString()!=="OK"){nt.error(Dd("settings.restartFailed"));return}}catch{nt.error(Dd("settings.restartFailed"));return}const t=nt.loading(Dd("settings.restartInProgress"),0);await new Promise(r=>setTimeout(r,3e3));let n=0;for(;n<10;)try{if((await SRe.v1TimeGet()).length===10){t(),nt.success(Dd("settings.restartComplete")),e&&(window.location.href="/web");return}}catch{n++,await new Promise(a=>setTimeout(a,3e3))}t(),nt.error(Dd("settings.restartFailed"))},CRe=new Tn(hn()),qu=()=>{const{t:e}=Ht(),[t,n]=l.useState(""),[r,a]=nt.useMessage(),o=async()=>{await wRe(!0),n("")},i=u=>{const d=new URL(u),f=d.port?`:${d.port}`:"";return`${d.protocol}//${d.hostname}${f}`},s=async()=>{const u=nt.loading(e("settings.toniesJsonReloadInProgress"),0);try{const f=await(await CRe.apiGetTeddyCloudApiRaw("/api/toniesJsonReload")).text();n(""),f.toString()!=="OK"?(u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})):(u(),r.open({type:"success",content:e("settings.toniesJsonReloadSuccessful")}))}catch{u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})}},c=[{key:"general",label:w.jsx(At,{to:"/settings",children:e("settings.general.navigationTitle")}),icon:le.createElement(G$),title:e("settings.general.navigationTitle")},{key:"certificates",label:w.jsx(At,{to:"/settings/certificates",children:e("settings.certificates.navigationTitle")}),icon:le.createElement(jW),title:e("settings.certificates.navigationTitle")},{key:"rtnl",label:w.jsx(At,{to:"/settings/rtnl",children:e("settings.rtnl.navigationTitle")}),icon:le.createElement(Uye),title:e("settings.rtnl.navigationTitle")},{key:"reload_toniesJson",label:w.jsx("label",{style:{cursor:"pointer"},children:e("settings.toniesJsonReload")}),onClick:s,icon:le.createElement(HW),title:e("settings.toniesJsonReload")},{key:"restart_server",label:w.jsx("label",{style:{cursor:"pointer"},children:e("settings.restartServer")}),onClick:o,icon:le.createElement(m1e),title:e("settings.restartServer")},{key:"legacy",label:w.jsx(At,{to:`${i(new URL(window.location.href))}/legacy.html`,target:"_blank",children:e("settings.legacyGui")}),icon:le.createElement(gSe),title:e("settings.legacyGui")}];return w.jsxs(w.Fragment,{children:[a,w.jsx(Tg,{mode:"inline",selectedKeys:[t],defaultOpenKeys:["sub"],items:c})]})};var xRe=function(t){return ERe(t)&&!IRe(t)};function ERe(e){return!!e&&typeof e=="object"}function IRe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||_Re(e)}var TRe=typeof Symbol=="function"&&Symbol.for,RRe=TRe?Symbol.for("react.element"):60103;function _Re(e){return e.$$typeof===RRe}function $Re(e){return Array.isArray(e)?[]:{}}function jv(e,t){return t.clone!==!1&&t.isMergeableObject(e)?kp($Re(e),e,t):e}function ORe(e,t,n){return e.concat(t).map(function(r){return jv(r,n)})}function NRe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=jv(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=jv(t[a],n):r[a]=kp(e[a],t[a],n)}),r}function kp(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ORe,n.isMergeableObject=n.isMergeableObject||xRe;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):NRe(e,t,n):jv(t,n)}kp.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return kp(r,a,n)},{})};var sR=kp,mq=typeof global=="object"&&global&&global.Object===Object&&global,kRe=typeof self=="object"&&self&&self.Object===Object&&self,bi=mq||kRe||Function("return this")(),Ws=bi.Symbol,hq=Object.prototype,ARe=hq.hasOwnProperty,MRe=hq.toString,Gd=Ws?Ws.toStringTag:void 0;function DRe(e){var t=ARe.call(e,Gd),n=e[Gd];try{e[Gd]=void 0;var r=!0}catch{}var a=MRe.call(e);return r&&(t?e[Gd]=n:delete e[Gd]),a}var PRe=Object.prototype,LRe=PRe.toString;function FRe(e){return LRe.call(e)}var jRe="[object Null]",BRe="[object Undefined]",yP=Ws?Ws.toStringTag:void 0;function bc(e){return e==null?e===void 0?BRe:jRe:yP&&yP in Object(e)?DRe(e):FRe(e)}function vq(e,t){return function(n){return e(t(n))}}var mO=vq(Object.getPrototypeOf,Object);function yc(e){return e!=null&&typeof e=="object"}var zRe="[object Object]",HRe=Function.prototype,URe=Object.prototype,bq=HRe.toString,VRe=URe.hasOwnProperty,WRe=bq.call(Object);function SP(e){if(!yc(e)||bc(e)!=zRe)return!1;var t=mO(e);if(t===null)return!0;var n=VRe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bq.call(n)==WRe}function GRe(){this.__data__=[],this.size=0}function yq(e,t){return e===t||e!==e&&t!==t}function _0(e,t){for(var n=e.length;n--;)if(yq(e[n][0],t))return n;return-1}var qRe=Array.prototype,KRe=qRe.splice;function YRe(e){var t=this.__data__,n=_0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():KRe.call(t,n,1),--this.size,!0}function XRe(e){var t=this.__data__,n=_0(t,e);return n<0?void 0:t[n][1]}function ZRe(e){return _0(this.__data__,e)>-1}function QRe(e,t){var n=this.__data__,r=_0(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ns(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Q_e}var J_e="[object Arguments]",e$e="[object Array]",t$e="[object Boolean]",n$e="[object Date]",r$e="[object Error]",a$e="[object Function]",o$e="[object Map]",i$e="[object Number]",s$e="[object Object]",l$e="[object RegExp]",c$e="[object Set]",u$e="[object String]",d$e="[object WeakMap]",f$e="[object ArrayBuffer]",p$e="[object DataView]",g$e="[object Float32Array]",m$e="[object Float64Array]",h$e="[object Int8Array]",v$e="[object Int16Array]",b$e="[object Int32Array]",y$e="[object Uint8Array]",S$e="[object Uint8ClampedArray]",w$e="[object Uint16Array]",C$e="[object Uint32Array]",Wn={};Wn[g$e]=Wn[m$e]=Wn[h$e]=Wn[v$e]=Wn[b$e]=Wn[y$e]=Wn[S$e]=Wn[w$e]=Wn[C$e]=!0;Wn[J_e]=Wn[e$e]=Wn[f$e]=Wn[t$e]=Wn[p$e]=Wn[n$e]=Wn[r$e]=Wn[a$e]=Wn[o$e]=Wn[i$e]=Wn[s$e]=Wn[l$e]=Wn[c$e]=Wn[u$e]=Wn[d$e]=!1;function x$e(e){return yc(e)&&Tq(e.length)&&!!Wn[bc(e)]}function hO(e){return function(t){return e(t)}}var Rq=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,Df=Rq&&typeof qa=="object"&&qa&&!qa.nodeType&&qa,E$e=Df&&Df.exports===Rq,VS=E$e&&mq.process,Ku=function(){try{var e=Df&&Df.require&&Df.require("util").types;return e||VS&&VS.binding&&VS.binding("util")}catch{}}(),TP=Ku&&Ku.isTypedArray,I$e=TP?hO(TP):x$e,T$e=Object.prototype,R$e=T$e.hasOwnProperty;function _q(e,t){var n=_g(e),r=!n&&W_e(e),a=!n&&!r&&Iq(e),o=!n&&!r&&!a&&I$e(e),i=n||r||a||o,s=i?z_e(e.length,String):[],c=s.length;for(var u in e)(t||R$e.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Z_e(u,c)))&&s.push(u);return s}var _$e=Object.prototype;function vO(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_$e;return e===n}var $$e=vq(Object.keys,Object),O$e=Object.prototype,N$e=O$e.hasOwnProperty;function k$e(e){if(!vO(e))return $$e(e);var t=[];for(var n in Object(e))N$e.call(e,n)&&n!="constructor"&&t.push(n);return t}function $q(e){return e!=null&&Tq(e.length)&&!Sq(e)}function bO(e){return $q(e)?_q(e):k$e(e)}function A$e(e,t){return e&&O0(t,bO(t),e)}function M$e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var D$e=Object.prototype,P$e=D$e.hasOwnProperty;function L$e(e){if(!Rg(e))return M$e(e);var t=vO(e),n=[];for(var r in e)r=="constructor"&&(t||!P$e.call(e,r))||n.push(r);return n}function yO(e){return $q(e)?_q(e,!0):L$e(e)}function F$e(e,t){return e&&O0(t,yO(t),e)}var Oq=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,RP=Oq&&typeof qa=="object"&&qa&&!qa.nodeType&&qa,j$e=RP&&RP.exports===Oq,_P=j$e?bi.Buffer:void 0,$P=_P?_P.allocUnsafe:void 0;function B$e(e,t){if(t)return e.slice();var n=e.length,r=$P?$P(n):new e.constructor(n);return e.copy(r),r}function Nq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[a]=e[a]);return n}var z0=l.createContext(void 0);z0.displayName="FormikContext";var MNe=z0.Provider;z0.Consumer;function qq(){var e=l.useContext(z0);return e}var oo=function(t){return typeof t=="function"},$g=function(t){return t!==null&&typeof t=="object"},DNe=function(t){return String(Math.floor(Number(t)))===t},WS=function(t){return Object.prototype.toString.call(t)==="[object String]"},PNe=function(t){return l.Children.count(t)===0},GS=function(t){return $g(t)&&oo(t.then)};function Pa(e,t,n,r){r===void 0&&(r=0);for(var a=zq(t);e&&r=0?[]:{}}}return(o===0?e:a)[i[o]]===n?e:(n===void 0?delete a[i[o]]:a[i[o]]=n,o===0&&n===void 0&&delete r[i[o]],r)}function Kq(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,o=Object.keys(e);a0?ce.map(function(fe){return _(fe,Pa(J,fe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ue).then(function(fe){return fe.reduce(function(be,Te,_e){return Te==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Te&&(be=zl(be,ce[_e],Te)),be},{})})},[_]),D=l.useCallback(function(J){return Promise.all([$(J),p.validationSchema?T(J):{},p.validate?R(J):{}]).then(function(ce){var ue=ce[0],fe=ce[1],be=ce[2],Te=sR.all([ue,fe,be],{arrayMerge:zNe});return Te})},[p.validate,p.validationSchema,$,R,T]),P=ro(function(J){return J===void 0&&(J=E.values),I({type:"SET_ISVALIDATING",payload:!0}),D(J).then(function(ce){return y.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ce})),ce})});l.useEffect(function(){i&&y.current===!0&&bl(g.current,p.initialValues)&&P(g.current)},[i,P]);var A=l.useCallback(function(J){var ce=J&&J.values?J.values:g.current,ue=J&&J.errors?J.errors:v.current?v.current:p.initialErrors||{},fe=J&&J.touched?J.touched:m.current?m.current:p.initialTouched||{},be=J&&J.status?J.status:h.current?h.current:p.initialStatus;g.current=ce,v.current=ue,m.current=fe,h.current=be;var Te=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!J&&!!J.isSubmitting,errors:ue,touched:fe,status:be,values:ce,isValidating:!!J&&!!J.isValidating,submitCount:J&&J.submitCount&&typeof J.submitCount=="number"?J.submitCount:0}})};if(p.onReset){var _e=p.onReset(E.values,re);GS(_e)?_e.then(Te):Te()}else Te()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);l.useEffect(function(){y.current===!0&&!bl(g.current,p.initialValues)&&u&&(g.current=p.initialValues,A(),i&&P(g.current))},[u,p.initialValues,A,i,P]),l.useEffect(function(){u&&y.current===!0&&!bl(v.current,p.initialErrors)&&(v.current=p.initialErrors||pl,I({type:"SET_ERRORS",payload:p.initialErrors||pl}))},[u,p.initialErrors]),l.useEffect(function(){u&&y.current===!0&&!bl(m.current,p.initialTouched)&&(m.current=p.initialTouched||Bm,I({type:"SET_TOUCHED",payload:p.initialTouched||Bm}))},[u,p.initialTouched]),l.useEffect(function(){u&&y.current===!0&&!bl(h.current,p.initialStatus)&&(h.current=p.initialStatus,I({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var O=ro(function(J){if(b.current[J]&&oo(b.current[J].validate)){var ce=Pa(E.values,J),ue=b.current[J].validate(ce);return GS(ue)?(I({type:"SET_ISVALIDATING",payload:!0}),ue.then(function(fe){return fe}).then(function(fe){I({type:"SET_FIELD_ERROR",payload:{field:J,value:fe}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:J,value:ue}}),Promise.resolve(ue))}else if(p.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),T(E.values,J).then(function(fe){return fe}).then(function(fe){I({type:"SET_FIELD_ERROR",payload:{field:J,value:Pa(fe,J)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),k=l.useCallback(function(J,ce){var ue=ce.validate;b.current[J]={validate:ue}},[]),N=l.useCallback(function(J){delete b.current[J]},[]),M=ro(function(J,ce){I({type:"SET_TOUCHED",payload:J});var ue=ce===void 0?a:ce;return ue?P(E.values):Promise.resolve()}),L=l.useCallback(function(J){I({type:"SET_ERRORS",payload:J})},[]),F=ro(function(J,ce){var ue=oo(J)?J(E.values):J;I({type:"SET_VALUES",payload:ue});var fe=ce===void 0?n:ce;return fe?P(ue):Promise.resolve()}),j=l.useCallback(function(J,ce){I({type:"SET_FIELD_ERROR",payload:{field:J,value:ce}})},[]),B=ro(function(J,ce,ue){I({type:"SET_FIELD_VALUE",payload:{field:J,value:ce}});var fe=ue===void 0?n:ue;return fe?P(zl(E.values,J,ce)):Promise.resolve()}),z=l.useCallback(function(J,ce){var ue=ce,fe=J,be;if(!WS(J)){J.persist&&J.persist();var Te=J.target?J.target:J.currentTarget,_e=Te.type,Pe=Te.name,Ee=Te.id,Fe=Te.value,De=Te.checked,Ae=Te.outerHTML,we=Te.options,$e=Te.multiple;ue=ce||Pe||Ee,fe=/number|range/.test(_e)?(be=parseFloat(Fe),isNaN(be)?"":be):/checkbox/.test(_e)?UNe(Pa(E.values,ue),De,Fe):we&&$e?HNe(we):Fe}ue&&B(ue,fe)},[B,E.values]),H=ro(function(J){if(WS(J))return function(ce){return z(ce,J)};z(J)}),U=ro(function(J,ce,ue){ce===void 0&&(ce=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:J,value:ce}});var fe=ue===void 0?a:ue;return fe?P(E.values):Promise.resolve()}),X=l.useCallback(function(J,ce){J.persist&&J.persist();var ue=J.target,fe=ue.name,be=ue.id,Te=ue.outerHTML,_e=ce||fe||be;U(_e,!0)},[U]),W=ro(function(J){if(WS(J))return function(ce){return X(ce,J)};X(J)}),Y=l.useCallback(function(J){oo(J)?I({type:"SET_FORMIK_STATE",payload:J}):I({type:"SET_FORMIK_STATE",payload:function(){return J}})},[]),te=l.useCallback(function(J){I({type:"SET_STATUS",payload:J})},[]),ee=l.useCallback(function(J){I({type:"SET_ISSUBMITTING",payload:J})},[]),Z=ro(function(){return I({type:"SUBMIT_ATTEMPT"}),P().then(function(J){var ce=J instanceof Error,ue=!ce&&Object.keys(J).length===0;if(ue){var fe;try{if(fe=q(),fe===void 0)return}catch(be){throw be}return Promise.resolve(fe).then(function(be){return y.current&&I({type:"SUBMIT_SUCCESS"}),be}).catch(function(be){if(y.current)throw I({type:"SUBMIT_FAILURE"}),be})}else if(y.current&&(I({type:"SUBMIT_FAILURE"}),ce))throw J})}),oe=ro(function(J){J&&J.preventDefault&&oo(J.preventDefault)&&J.preventDefault(),J&&J.stopPropagation&&oo(J.stopPropagation)&&J.stopPropagation(),Z().catch(function(ce){console.warn("Warning: An unhandled error was caught from submitForm()",ce)})}),re={resetForm:A,validateForm:P,validateField:O,setErrors:L,setFieldError:j,setFieldTouched:U,setFieldValue:B,setStatus:te,setSubmitting:ee,setTouched:M,setValues:F,setFormikState:Y,submitForm:Z},q=ro(function(){return d(E.values,re)}),Q=ro(function(J){J&&J.preventDefault&&oo(J.preventDefault)&&J.preventDefault(),J&&J.stopPropagation&&oo(J.stopPropagation)&&J.stopPropagation(),A()}),ae=l.useCallback(function(J){return{value:Pa(E.values,J),error:Pa(E.errors,J),touched:!!Pa(E.touched,J),initialValue:Pa(g.current,J),initialTouched:!!Pa(m.current,J),initialError:Pa(v.current,J)}},[E.errors,E.touched,E.values]),se=l.useCallback(function(J){return{setValue:function(ue,fe){return B(J,ue,fe)},setTouched:function(ue,fe){return U(J,ue,fe)},setError:function(ue){return j(J,ue)}}},[B,U,j]),de=l.useCallback(function(J){var ce=$g(J),ue=ce?J.name:J,fe=Pa(E.values,ue),be={name:ue,value:fe,onChange:H,onBlur:W};if(ce){var Te=J.type,_e=J.value,Pe=J.as,Ee=J.multiple;Te==="checkbox"?_e===void 0?be.checked=!!fe:(be.checked=!!(Array.isArray(fe)&&~fe.indexOf(_e)),be.value=_e):Te==="radio"?(be.checked=fe===_e,be.value=_e):Pe==="select"&&Ee&&(be.value=be.value||[],be.multiple=!0)}return be},[W,H,E.values]),he=l.useMemo(function(){return!bl(g.current,E.values)},[g.current,E.values]),ye=l.useMemo(function(){return typeof s<"u"?he?E.errors&&Object.keys(E.errors).length===0:s!==!1&&oo(s)?s(p):s:E.errors&&Object.keys(E.errors).length===0},[s,he,E.errors,p]),pe=_r({},E,{initialValues:g.current,initialErrors:v.current,initialTouched:m.current,initialStatus:h.current,handleBlur:W,handleChange:H,handleReset:Q,handleSubmit:oe,resetForm:A,setErrors:L,setFormikState:Y,setFieldTouched:U,setFieldValue:B,setFieldError:j,setStatus:te,setSubmitting:ee,setTouched:M,setValues:F,submitForm:Z,validateForm:P,validateField:O,isValid:ye,dirty:he,unregisterField:N,registerField:k,getFieldProps:de,getFieldMeta:ae,getFieldHelpers:se,validateOnBlur:a,validateOnChange:n,validateOnMount:i});return pe}function Yq(e){var t=FNe(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return l.useImperativeHandle(o,function(){return t}),l.createElement(MNe,{value:t},n?l.createElement(n,t):a?a(t):r?oo(r)?r(t):PNe(r)?null:l.Children.only(r):null)}function jNe(e){var t={};if(e.inner){if(e.inner.length===0)return zl(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var o;if(n){if(r>=a.length)break;o=a[r++]}else{if(r=a.next(),r.done)break;o=r.value}var i=o;Pa(t,i.path)||(t=zl(t,i.path,i.message))}}return t}function BNe(e,t,n,r){n===void 0&&(n=!1);var a=pR(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function pR(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||SP(a)?pR(a):a!==""?a:void 0}):SP(e[r])?t[r]=pR(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function zNe(e,t,n){var r=e.slice();return t.forEach(function(o,i){if(typeof r[i]>"u"){var s=n.clone!==!1,c=s&&n.isMergeableObject(o);r[i]=c?sR(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[i]=sR(e[i],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function HNe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function UNe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),a=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,o).concat(r.slice(o+1)):r}var VNe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function ro(e){var t=l.useRef(e);return VNe(function(){t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{const{t}=Vt(),{name:n,label:r,valueConverter:a,description:o,overlayed:i,overlayId:s,...c}=e,[u,d,{setValue:f}]=H0(n),[p,g]=l.useState(i),v=!!(d.touched&&d.error),m=d.touched&&d.error&&t(d.error),h=d.touched&&d.error?"error":void 0,y=a?a.fromValueToBoolean(d.value):d.value,b=new En(vn()),S=E=>{try{b.apiPostTeddyCloudSetting(n,u.value,s,!E).then(()=>{C(),E?tt.success(t("settings.overlayEnabled")):(x(),tt.success(t("settings.overlayDisabled")))}).catch(I=>{tt.error(`Error while ${E?"saving":"resetting"} config: ${I}`)})}catch(I){tt.error(`Error while sending data to server: ${I}`)}},C=async()=>{try{await b.apiTriggerWriteConfigGet()}catch{tt.error("Error while saving config to file.")}},x=async()=>{try{const I=await(await b.apiGetTeddyCloudSettingRaw(n)).text(),R=I===""||a==null?void 0:a.fromValueToBoolean(I);f(R);const T=a?a.fromValueToBoolean(I):I;f(T)}catch(E){tt.error(`Error fetching field value: ${E}`)}};return w.jsxs(wg,{help:v?m:void 0,validateStatus:h,label:r,tooltip:o,children:[w.jsx(va,{...c,...u,checked:y,disabled:!p&&p!==void 0,onChange:E=>{try{b.apiPostTeddyCloudSetting(n,E,s).then(()=>{C(),tt.success(t("settings.saved"))}).catch(I=>{tt.error("Error while saving config to file.")})}catch{tt.error("Error while sending data to server.")}f(E)}}),p===void 0?"":w.jsx(Xi,{checked:p,style:{marginLeft:"16px"},onChange:E=>{g(E.target.checked),S(E.target.checked)},children:t("settings.overlayed")})]})},qNe=e=>{const{t}=Vt(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=H0(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),v=u.touched&&u.error&&t(u.error),m=u.touched&&u.error?"error":void 0,h=new En(vn()),y=I=>{try{h.apiPostTeddyCloudSetting(n,c.value,i,!I).then(()=>{x(),I?tt.success(t("settings.overlayEnabled")):(C(),tt.success(t("settings.overlayDisabled")))}).catch(R=>{tt.error(`Error while ${I?"saving":"resetting"} config: ${R}`)})}catch(R){tt.error(`Error while sending data to server: ${R}`)}},b=I=>{const R=async()=>{await h.apiTriggerWriteConfigGet()};try{h.apiPostTeddyCloudSetting(n,c.value,i).then(()=>{R(),tt.success(t("settings.saved"))}).catch(T=>{tt.error("Error while sending data to file.")})}catch{tt.error("Error while sending data to server.")}d.setValue(c.value||"")},S=I=>{b()},C=()=>{try{h.apiGetTeddyCloudSettingRaw(n).then(I=>I.text()).then(I=>{d.setValue(I)}).catch(I=>{tt.error(`Error fetching field value: ${I}`)})}catch(I){tt.error(`Error fetching field value: ${I}`)}},x=async()=>{try{await h.apiTriggerWriteConfigGet()}catch{tt.error("Error while saving config to file.")}},E=[w.jsx(E1e,{disabled:!f,style:{cursor:f||f===void 0?"pointer":"default",margin:f!==void 0?"0 16px 0 0":"0"},onClick:S},"saveIcon"),f===void 0?"":w.jsx(Xi,{checked:f,onChange:I=>{p(I.target.checked),y(I.target.checked)},children:t("settings.overlayed")},"overlayCheckBox")];return w.jsx(wg,{help:g?v:void 0,validateStatus:m,label:r,tooltip:a,children:w.jsx(en,{...s,...c,addonAfter:E,disabled:!f&&f!==void 0})})},qP=e=>{const{t}=Vt(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=H0(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),v=u.touched&&u.error&&t(u.error),m=u.touched&&u.error?"error":void 0,h=f===void 0?"":w.jsx(Xi,{checked:f,onChange:x=>{p(x.target.checked),b(x.target.checked)},children:t("settings.overlayed")}),y=new En(vn()),b=x=>{try{y.apiPostTeddyCloudSetting(n,c.value,i,!x).then(()=>{C(),x?tt.success(t("settings.overlayEnabled")):(S(),tt.success(t("settings.overlayDisabled")))}).catch(E=>{tt.error(`Error while ${x?"saving":"resetting"} config: ${E}`)})}catch(E){tt.error(`Error while sending data to server: ${E}`)}},S=()=>{try{y.apiGetTeddyCloudSettingRaw(n).then(x=>x.text()).then(x=>{d.setValue(x===""?void 0:Number(x))}).catch(x=>{tt.error(`Error fetching field value: ${x}`)})}catch(x){tt.error(`Error fetching field value: ${x}`)}},C=async()=>{try{await y.apiTriggerWriteConfigGet()}catch{tt.error("Error while saving config to file.")}};return w.jsx(wg,{help:g?v:void 0,validateStatus:m,label:r,tooltip:a,children:w.jsx(HV,{...s,...c,addonAfter:h,disabled:!f&&f!==void 0,onChange:x=>{try{y.apiPostTeddyCloudSetting(n,x,i).then(()=>{C(),tt.success(t("settings.saved"))}).catch(E=>{tt.error("Error while saving config to file.")})}catch{tt.error("Error while sending data to server.")}d.setValue(x===null?void 0:Number(x))},onBlur:()=>d.setTouched(!0)})})},Xq=({option:e,noOverlay:t,overlayId:n})=>{const{type:r,iD:a,description:o,label:i,shortname:s,value:c,overlayed:u}=e,[d,f]=l.useState(""),[p,g,{setValue:v}]=H0(a);l.useEffect(()=>{f(c),v(c)},[v,c]);const m=t?void 0:u;return w.jsxs("div",{children:[r==="bool"&&w.jsx(GNe,{name:a,label:i,description:o,overlayed:m,overlayId:n}),r==="int"&&w.jsx(qP,{name:a,label:i,description:o,overlayed:m,overlayId:n}),r==="uint"&&w.jsx(qP,{name:a,label:i,description:o,overlayed:m,overlayId:n}),r==="string"&&w.jsx(qNe,{name:a,label:i,description:o,overlayed:m,overlayId:n})]},a)},zm=new En(vn()),KNe=()=>{var u;const{t:e}=Vt(),[t,n]=l.useState(),[r,a]=l.useState(""),[o,i]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const f=await zm.apiGetTeddyCloudSettingRaw("core.settings_level");if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const p=await f.json();a(p.toString())}catch(f){console.error("Error fetching settings level: ",f)}})()},[]),l.useEffect(()=>{(async()=>{var p,g;i(!0);const f=await zm.apiGetIndexGet("");(p=f==null?void 0:f.options)!=null&&p.length&&((g=f==null?void 0:f.options)==null?void 0:g.length)>0&&n(f),i(!1)})()},[r]);const s=async()=>{try{await zm.apiTriggerWriteConfigGet()}catch{tt.error("Error while saving config to file.")}},c=async d=>{try{zm.apiPostTeddyCloudSetting("core.settings_level",d),s(),a(d)}catch{tt.error("Error while sending data to server.")}};return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qu,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qu,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("settings.title")}),w.jsx(Mr,{message:e("settings.information"),description:w.jsxs("div",{children:[e("settings.hint")," ",w.jsx(At,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0}),w.jsx(Mr,{message:e("settings.warning"),description:w.jsx("div",{children:e("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px 0"}}),w.jsx(Ca,{children:e("settings.title")}),w.jsx(Yq,{initialValues:{test:"test"},onSubmit:d=>{},children:w.jsx(Zt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(u=t==null?void 0:t.options)==null?void 0:u.map((d,f,p)=>{if(d.iD.includes("core.settings_level"))return null;const g=d.iD.split("."),v=p[f-1]?p[f-1].iD.split("."):[];return w.jsxs(le.Fragment,{children:[g.slice(0,-1).map((m,h)=>v[h]!==m?h===0?w.jsxs("h3",{style:{marginLeft:`${h*20}px`,marginBottom:"10px"},children:["Category ",m]},`category-${m}`):w.jsxs("h4",{style:{marginLeft:`${h*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",m]},`category-${m}`):null),w.jsx(Xq,{option:d,noOverlay:!0},d.iD)]},f)})})}),w.jsx(Ca,{children:e("settings.levelLabel")}),w.jsxs(Va.Group,{value:r,onChange:d=>c(d.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:o,children:[w.jsx(Va.Button,{value:"1",children:"Basic"},"1"),w.jsx(Va.Button,{value:"2",children:"Detail"},"2"),w.jsx(Va.Button,{value:"3",children:"Expert"},"3")]})]})]})]})};function KP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var qS={};function XNe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return qS[t]||(qS[t]=YNe(e)),qS[t]}function ZNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),a=XNe(r);return a.reduce(function(o,i){return du(du({},o),n[i])},t)}function YP(e){return e.join(" ")}function QNe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,o){return Zq({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Zq(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if(c==="text")return d;if(u){var f=QNe(n,o),p;if(!o)p=du(du({},s),{},{className:YP(s.className)});else{var g=Object.keys(n).reduce(function(y,b){return b.split(".").forEach(function(S){y.includes(S)||y.push(S)}),y},[]),v=s.className&&s.className.includes("token")?["token"]:[],m=s.className&&v.concat(s.className.filter(function(y){return!g.includes(y)}));p=du(du({},s),{},{className:YP(m)||void 0,style:ZNe(s.className,Object.assign({},s.style,a),n)})}var h=f(t.children);return le.createElement(u,ve({key:i},p),h)}}const JNe=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var eke=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}var z0=l.createContext(void 0);z0.displayName="FormikContext";var MNe=z0.Provider;z0.Consumer;function qq(){var e=l.useContext(z0);return e}var oo=function(t){return typeof t=="function"},$g=function(t){return t!==null&&typeof t=="object"},DNe=function(t){return String(Math.floor(Number(t)))===t},WS=function(t){return Object.prototype.toString.call(t)==="[object String]"},PNe=function(t){return l.Children.count(t)===0},GS=function(t){return $g(t)&&oo(t.then)};function Pa(e,t,n,r){r===void 0&&(r=0);for(var a=zq(t);e&&r=0?[]:{}}}return(o===0?e:a)[i[o]]===n?e:(n===void 0?delete a[i[o]]:a[i[o]]=n,o===0&&n===void 0&&delete r[i[o]],r)}function Kq(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,o=Object.keys(e);a0?ce.map(function(fe){return _(fe,Pa(J,fe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ue).then(function(fe){return fe.reduce(function(be,Ee,Re){return Ee==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ee&&(be=zl(be,ce[Re],Ee)),be},{})})},[_]),D=l.useCallback(function(J){return Promise.all([$(J),p.validationSchema?T(J):{},p.validate?R(J):{}]).then(function(ce){var ue=ce[0],fe=ce[1],be=ce[2],Ee=sR.all([ue,fe,be],{arrayMerge:zNe});return Ee})},[p.validate,p.validationSchema,$,R,T]),P=ro(function(J){return J===void 0&&(J=E.values),I({type:"SET_ISVALIDATING",payload:!0}),D(J).then(function(ce){return y.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ce})),ce})});l.useEffect(function(){i&&y.current===!0&&bl(g.current,p.initialValues)&&P(g.current)},[i,P]);var A=l.useCallback(function(J){var ce=J&&J.values?J.values:g.current,ue=J&&J.errors?J.errors:v.current?v.current:p.initialErrors||{},fe=J&&J.touched?J.touched:m.current?m.current:p.initialTouched||{},be=J&&J.status?J.status:h.current?h.current:p.initialStatus;g.current=ce,v.current=ue,m.current=fe,h.current=be;var Ee=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!J&&!!J.isSubmitting,errors:ue,touched:fe,status:be,values:ce,isValidating:!!J&&!!J.isValidating,submitCount:J&&J.submitCount&&typeof J.submitCount=="number"?J.submitCount:0}})};if(p.onReset){var Re=p.onReset(E.values,re);GS(Re)?Re.then(Ee):Ee()}else Ee()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);l.useEffect(function(){y.current===!0&&!bl(g.current,p.initialValues)&&u&&(g.current=p.initialValues,A(),i&&P(g.current))},[u,p.initialValues,A,i,P]),l.useEffect(function(){u&&y.current===!0&&!bl(v.current,p.initialErrors)&&(v.current=p.initialErrors||pl,I({type:"SET_ERRORS",payload:p.initialErrors||pl}))},[u,p.initialErrors]),l.useEffect(function(){u&&y.current===!0&&!bl(m.current,p.initialTouched)&&(m.current=p.initialTouched||Bm,I({type:"SET_TOUCHED",payload:p.initialTouched||Bm}))},[u,p.initialTouched]),l.useEffect(function(){u&&y.current===!0&&!bl(h.current,p.initialStatus)&&(h.current=p.initialStatus,I({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var O=ro(function(J){if(b.current[J]&&oo(b.current[J].validate)){var ce=Pa(E.values,J),ue=b.current[J].validate(ce);return GS(ue)?(I({type:"SET_ISVALIDATING",payload:!0}),ue.then(function(fe){return fe}).then(function(fe){I({type:"SET_FIELD_ERROR",payload:{field:J,value:fe}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:J,value:ue}}),Promise.resolve(ue))}else if(p.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),T(E.values,J).then(function(fe){return fe}).then(function(fe){I({type:"SET_FIELD_ERROR",payload:{field:J,value:Pa(fe,J)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),k=l.useCallback(function(J,ce){var ue=ce.validate;b.current[J]={validate:ue}},[]),N=l.useCallback(function(J){delete b.current[J]},[]),M=ro(function(J,ce){I({type:"SET_TOUCHED",payload:J});var ue=ce===void 0?a:ce;return ue?P(E.values):Promise.resolve()}),L=l.useCallback(function(J){I({type:"SET_ERRORS",payload:J})},[]),F=ro(function(J,ce){var ue=oo(J)?J(E.values):J;I({type:"SET_VALUES",payload:ue});var fe=ce===void 0?n:ce;return fe?P(ue):Promise.resolve()}),j=l.useCallback(function(J,ce){I({type:"SET_FIELD_ERROR",payload:{field:J,value:ce}})},[]),B=ro(function(J,ce,ue){I({type:"SET_FIELD_VALUE",payload:{field:J,value:ce}});var fe=ue===void 0?n:ue;return fe?P(zl(E.values,J,ce)):Promise.resolve()}),z=l.useCallback(function(J,ce){var ue=ce,fe=J,be;if(!WS(J)){J.persist&&J.persist();var Ee=J.target?J.target:J.currentTarget,Re=Ee.type,Fe=Ee.name,Ce=Ee.id,ze=Ee.value,Pe=Ee.checked,Ae=Ee.outerHTML,Se=Ee.options,_e=Ee.multiple;ue=ce||Fe||Ce,fe=/number|range/.test(Re)?(be=parseFloat(ze),isNaN(be)?"":be):/checkbox/.test(Re)?UNe(Pa(E.values,ue),Pe,ze):Se&&_e?HNe(Se):ze}ue&&B(ue,fe)},[B,E.values]),H=ro(function(J){if(WS(J))return function(ce){return z(ce,J)};z(J)}),U=ro(function(J,ce,ue){ce===void 0&&(ce=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:J,value:ce}});var fe=ue===void 0?a:ue;return fe?P(E.values):Promise.resolve()}),X=l.useCallback(function(J,ce){J.persist&&J.persist();var ue=J.target,fe=ue.name,be=ue.id,Ee=ue.outerHTML,Re=ce||fe||be;U(Re,!0)},[U]),W=ro(function(J){if(WS(J))return function(ce){return X(ce,J)};X(J)}),Y=l.useCallback(function(J){oo(J)?I({type:"SET_FORMIK_STATE",payload:J}):I({type:"SET_FORMIK_STATE",payload:function(){return J}})},[]),te=l.useCallback(function(J){I({type:"SET_STATUS",payload:J})},[]),ee=l.useCallback(function(J){I({type:"SET_ISSUBMITTING",payload:J})},[]),Z=ro(function(){return I({type:"SUBMIT_ATTEMPT"}),P().then(function(J){var ce=J instanceof Error,ue=!ce&&Object.keys(J).length===0;if(ue){var fe;try{if(fe=q(),fe===void 0)return}catch(be){throw be}return Promise.resolve(fe).then(function(be){return y.current&&I({type:"SUBMIT_SUCCESS"}),be}).catch(function(be){if(y.current)throw I({type:"SUBMIT_FAILURE"}),be})}else if(y.current&&(I({type:"SUBMIT_FAILURE"}),ce))throw J})}),oe=ro(function(J){J&&J.preventDefault&&oo(J.preventDefault)&&J.preventDefault(),J&&J.stopPropagation&&oo(J.stopPropagation)&&J.stopPropagation(),Z().catch(function(ce){console.warn("Warning: An unhandled error was caught from submitForm()",ce)})}),re={resetForm:A,validateForm:P,validateField:O,setErrors:L,setFieldError:j,setFieldTouched:U,setFieldValue:B,setStatus:te,setSubmitting:ee,setTouched:M,setValues:F,setFormikState:Y,submitForm:Z},q=ro(function(){return d(E.values,re)}),Q=ro(function(J){J&&J.preventDefault&&oo(J.preventDefault)&&J.preventDefault(),J&&J.stopPropagation&&oo(J.stopPropagation)&&J.stopPropagation(),A()}),ae=l.useCallback(function(J){return{value:Pa(E.values,J),error:Pa(E.errors,J),touched:!!Pa(E.touched,J),initialValue:Pa(g.current,J),initialTouched:!!Pa(m.current,J),initialError:Pa(v.current,J)}},[E.errors,E.touched,E.values]),se=l.useCallback(function(J){return{setValue:function(ue,fe){return B(J,ue,fe)},setTouched:function(ue,fe){return U(J,ue,fe)},setError:function(ue){return j(J,ue)}}},[B,U,j]),de=l.useCallback(function(J){var ce=$g(J),ue=ce?J.name:J,fe=Pa(E.values,ue),be={name:ue,value:fe,onChange:H,onBlur:W};if(ce){var Ee=J.type,Re=J.value,Fe=J.as,Ce=J.multiple;Ee==="checkbox"?Re===void 0?be.checked=!!fe:(be.checked=!!(Array.isArray(fe)&&~fe.indexOf(Re)),be.value=Re):Ee==="radio"?(be.checked=fe===Re,be.value=Re):Fe==="select"&&Ce&&(be.value=be.value||[],be.multiple=!0)}return be},[W,H,E.values]),he=l.useMemo(function(){return!bl(g.current,E.values)},[g.current,E.values]),ye=l.useMemo(function(){return typeof s<"u"?he?E.errors&&Object.keys(E.errors).length===0:s!==!1&&oo(s)?s(p):s:E.errors&&Object.keys(E.errors).length===0},[s,he,E.errors,p]),pe=_r({},E,{initialValues:g.current,initialErrors:v.current,initialTouched:m.current,initialStatus:h.current,handleBlur:W,handleChange:H,handleReset:Q,handleSubmit:oe,resetForm:A,setErrors:L,setFormikState:Y,setFieldTouched:U,setFieldValue:B,setFieldError:j,setStatus:te,setSubmitting:ee,setTouched:M,setValues:F,submitForm:Z,validateForm:P,validateField:O,isValid:ye,dirty:he,unregisterField:N,registerField:k,getFieldProps:de,getFieldMeta:ae,getFieldHelpers:se,validateOnBlur:a,validateOnChange:n,validateOnMount:i});return pe}function Yq(e){var t=FNe(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return l.useImperativeHandle(o,function(){return t}),l.createElement(MNe,{value:t},n?l.createElement(n,t):a?a(t):r?oo(r)?r(t):PNe(r)?null:l.Children.only(r):null)}function jNe(e){var t={};if(e.inner){if(e.inner.length===0)return zl(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var o;if(n){if(r>=a.length)break;o=a[r++]}else{if(r=a.next(),r.done)break;o=r.value}var i=o;Pa(t,i.path)||(t=zl(t,i.path,i.message))}}return t}function BNe(e,t,n,r){n===void 0&&(n=!1);var a=pR(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function pR(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||SP(a)?pR(a):a!==""?a:void 0}):SP(e[r])?t[r]=pR(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function zNe(e,t,n){var r=e.slice();return t.forEach(function(o,i){if(typeof r[i]>"u"){var s=n.clone!==!1,c=s&&n.isMergeableObject(o);r[i]=c?sR(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[i]=sR(e[i],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function HNe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function UNe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),a=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,o).concat(r.slice(o+1)):r}var VNe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function ro(e){var t=l.useRef(e);return VNe(function(){t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{const{t}=Ht(),{name:n,label:r,valueConverter:a,description:o,overlayed:i,overlayId:s,...c}=e,[u,d,{setValue:f}]=H0(n),[p,g]=l.useState(i),v=!!(d.touched&&d.error),m=d.touched&&d.error&&t(d.error),h=d.touched&&d.error?"error":void 0,y=a?a.fromValueToBoolean(d.value):d.value,b=new Tn(hn()),S=E=>{try{b.apiPostTeddyCloudSetting(n,u.value,s,!E).then(()=>{C(),E?nt.success(t("settings.overlayEnabled")):(x(),nt.success(t("settings.overlayDisabled")))}).catch(I=>{nt.error(`Error while ${E?"saving":"resetting"} config: ${I}`)})}catch(I){nt.error(`Error while sending data to server: ${I}`)}},C=async()=>{try{await b.apiTriggerWriteConfigGet()}catch{nt.error("Error while saving config to file.")}},x=async()=>{try{const I=await(await b.apiGetTeddyCloudSettingRaw(n)).text(),R=I===""||a==null?void 0:a.fromValueToBoolean(I);f(R);const T=a?a.fromValueToBoolean(I):I;f(T)}catch(E){nt.error(`Error fetching field value: ${E}`)}};return w.jsxs(wg,{help:v?m:void 0,validateStatus:h,label:r,tooltip:o,children:[w.jsx(va,{...c,...u,checked:y,disabled:!p&&p!==void 0,onChange:E=>{try{b.apiPostTeddyCloudSetting(n,E,s).then(()=>{C(),nt.success(t("settings.saved"))}).catch(I=>{nt.error("Error while saving config to file.")})}catch{nt.error("Error while sending data to server.")}f(E)}}),p===void 0?"":w.jsx(Xi,{checked:p,style:{marginLeft:"16px"},onChange:E=>{g(E.target.checked),S(E.target.checked)},children:t("settings.overlayed")})]})},qNe=e=>{const{t}=Ht(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=H0(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),v=u.touched&&u.error&&t(u.error),m=u.touched&&u.error?"error":void 0,h=new Tn(hn()),y=I=>{try{h.apiPostTeddyCloudSetting(n,c.value,i,!I).then(()=>{x(),I?nt.success(t("settings.overlayEnabled")):(C(),nt.success(t("settings.overlayDisabled")))}).catch(R=>{nt.error(`Error while ${I?"saving":"resetting"} config: ${R}`)})}catch(R){nt.error(`Error while sending data to server: ${R}`)}},b=I=>{const R=async()=>{await h.apiTriggerWriteConfigGet()};try{h.apiPostTeddyCloudSetting(n,c.value,i).then(()=>{R(),nt.success(t("settings.saved"))}).catch(T=>{nt.error("Error while sending data to file.")})}catch{nt.error("Error while sending data to server.")}d.setValue(c.value||"")},S=I=>{b()},C=()=>{try{h.apiGetTeddyCloudSettingRaw(n).then(I=>I.text()).then(I=>{d.setValue(I)}).catch(I=>{nt.error(`Error fetching field value: ${I}`)})}catch(I){nt.error(`Error fetching field value: ${I}`)}},x=async()=>{try{await h.apiTriggerWriteConfigGet()}catch{nt.error("Error while saving config to file.")}},E=[w.jsx(E1e,{disabled:!f,style:{cursor:f||f===void 0?"pointer":"default",margin:f!==void 0?"0 16px 0 0":"0"},onClick:S},"saveIcon"),f===void 0?"":w.jsx(Xi,{checked:f,onChange:I=>{p(I.target.checked),y(I.target.checked)},children:t("settings.overlayed")},"overlayCheckBox")];return w.jsx(wg,{help:g?v:void 0,validateStatus:m,label:r,tooltip:a,children:w.jsx(Jt,{...s,...c,addonAfter:E,disabled:!f&&f!==void 0})})},qP=e=>{const{t}=Ht(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=H0(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),v=u.touched&&u.error&&t(u.error),m=u.touched&&u.error?"error":void 0,h=f===void 0?"":w.jsx(Xi,{checked:f,onChange:x=>{p(x.target.checked),b(x.target.checked)},children:t("settings.overlayed")}),y=new Tn(hn()),b=x=>{try{y.apiPostTeddyCloudSetting(n,c.value,i,!x).then(()=>{C(),x?nt.success(t("settings.overlayEnabled")):(S(),nt.success(t("settings.overlayDisabled")))}).catch(E=>{nt.error(`Error while ${x?"saving":"resetting"} config: ${E}`)})}catch(E){nt.error(`Error while sending data to server: ${E}`)}},S=()=>{try{y.apiGetTeddyCloudSettingRaw(n).then(x=>x.text()).then(x=>{d.setValue(x===""?void 0:Number(x))}).catch(x=>{nt.error(`Error fetching field value: ${x}`)})}catch(x){nt.error(`Error fetching field value: ${x}`)}},C=async()=>{try{await y.apiTriggerWriteConfigGet()}catch{nt.error("Error while saving config to file.")}};return w.jsx(wg,{help:g?v:void 0,validateStatus:m,label:r,tooltip:a,children:w.jsx(HV,{...s,...c,addonAfter:h,disabled:!f&&f!==void 0,onChange:x=>{try{y.apiPostTeddyCloudSetting(n,x,i).then(()=>{C(),nt.success(t("settings.saved"))}).catch(E=>{nt.error("Error while saving config to file.")})}catch{nt.error("Error while sending data to server.")}d.setValue(x===null?void 0:Number(x))},onBlur:()=>d.setTouched(!0)})})},Xq=({option:e,noOverlay:t,overlayId:n})=>{const{type:r,iD:a,description:o,label:i,shortname:s,value:c,overlayed:u}=e,[d,f]=l.useState(""),[p,g,{setValue:v}]=H0(a);l.useEffect(()=>{f(c),v(c)},[v,c]);const m=t?void 0:u;return w.jsxs("div",{children:[r==="bool"&&w.jsx(GNe,{name:a,label:i,description:o,overlayed:m,overlayId:n}),r==="int"&&w.jsx(qP,{name:a,label:i,description:o,overlayed:m,overlayId:n}),r==="uint"&&w.jsx(qP,{name:a,label:i,description:o,overlayed:m,overlayId:n}),r==="string"&&w.jsx(qNe,{name:a,label:i,description:o,overlayed:m,overlayId:n})]},a)},zm=new Tn(hn()),KNe=()=>{var u;const{t:e}=Ht(),[t,n]=l.useState(),[r,a]=l.useState(""),[o,i]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const f=await zm.apiGetTeddyCloudSettingRaw("core.settings_level");if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const p=await f.json();a(p.toString())}catch(f){console.error("Error fetching settings level: ",f)}})()},[]),l.useEffect(()=>{(async()=>{var p,g;i(!0);const f=await zm.apiGetIndexGet("");(p=f==null?void 0:f.options)!=null&&p.length&&((g=f==null?void 0:f.options)==null?void 0:g.length)>0&&n(f),i(!1)})()},[r]);const s=async()=>{try{await zm.apiTriggerWriteConfigGet()}catch{nt.error("Error while saving config to file.")}},c=async d=>{try{zm.apiPostTeddyCloudSetting("core.settings_level",d),s(),a(d)}catch{nt.error("Error while sending data to server.")}};return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qu,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qu,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("settings.title")}),w.jsx(Mr,{message:e("settings.information"),description:w.jsxs("div",{children:[e("settings.hint")," ",w.jsx(At,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0}),w.jsx(Mr,{message:e("settings.warning"),description:w.jsx("div",{children:e("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px 0"}}),w.jsx(Ca,{children:e("settings.title")}),w.jsx(Yq,{initialValues:{test:"test"},onSubmit:d=>{},children:w.jsx(Yt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(u=t==null?void 0:t.options)==null?void 0:u.map((d,f,p)=>{if(d.iD.includes("core.settings_level"))return null;const g=d.iD.split("."),v=p[f-1]?p[f-1].iD.split("."):[];return w.jsxs(le.Fragment,{children:[g.slice(0,-1).map((m,h)=>v[h]!==m?h===0?w.jsxs("h3",{style:{marginLeft:`${h*20}px`,marginBottom:"10px"},children:["Category ",m]},`category-${m}`):w.jsxs("h4",{style:{marginLeft:`${h*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",m]},`category-${m}`):null),w.jsx(Xq,{option:d,noOverlay:!0},d.iD)]},f)})})}),w.jsx(Ca,{children:e("settings.levelLabel")}),w.jsxs(Va.Group,{value:r,onChange:d=>c(d.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:o,children:[w.jsx(Va.Button,{value:"1",children:"Basic"},"1"),w.jsx(Va.Button,{value:"2",children:"Detail"},"2"),w.jsx(Va.Button,{value:"3",children:"Expert"},"3")]})]})]})]})};function KP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var qS={};function XNe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return qS[t]||(qS[t]=YNe(e)),qS[t]}function ZNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),a=XNe(r);return a.reduce(function(o,i){return du(du({},o),n[i])},t)}function YP(e){return e.join(" ")}function QNe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,o){return Zq({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Zq(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if(c==="text")return d;if(u){var f=QNe(n,o),p;if(!o)p=du(du({},s),{},{className:YP(s.className)});else{var g=Object.keys(n).reduce(function(y,b){return b.split(".").forEach(function(S){y.includes(S)||y.push(S)}),y},[]),v=s.className&&s.className.includes("token")?["token"]:[],m=s.className&&v.concat(s.className.filter(function(y){return!g.includes(y)}));p=du(du({},s),{},{className:YP(m)||void 0,style:ZNe(s.className,Object.assign({},s.style,a),n)})}var h=f(t.children);return le.createElement(u,ve({key:i},p),h)}}const JNe=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var eke=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Oh({children:x,lineNumber:E,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:c})}function m(x,E){if(r&&E&&a){var I=Jq(s,E,i);x.unshift(Qq(E,I))}return x}function h(x,E){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(x,E,I):m(x,E)}for(var y=function(){var E=d[g],I=E.children[0].value,R=nke(I);if(R){var T=I.split(` +`),style:i,startingLineNumber:s}))}function oke(e){return"".concat(e.toString().length,".25em")}function Qq(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Jq(e,t,n){var r={display:"inline-block",minWidth:oke(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,o=ni(ni({},r),a);return o}function Oh(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=i===void 0?{}:i,c=e.className,u=c===void 0?[]:c,d=e.showLineNumbers,f=e.wrapLongLines,p=typeof s=="function"?s(n):s;if(p.className=u,n&&o){var g=Jq(r,n,a);t.unshift(Qq(n,g))}return f&d&&(p.style=ni(ni({},p.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:p,children:t}}function eK(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Oh({children:x,lineNumber:E,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:c})}function m(x,E){if(r&&E&&a){var I=Jq(s,E,i);x.unshift(Qq(E,I))}return x}function h(x,E){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(x,E,I):m(x,E)}for(var y=function(){var E=d[g],I=E.children[0].value,R=nke(I);if(R){var T=I.split(` `);T.forEach(function(_,$){var D=r&&f.length+o,P={type:"text",value:"".concat(_,` -`)};if($===0){var A=d.slice(p+1,g).concat(Oh({children:[P],className:E.properties.className})),O=h(A,D);f.push(O)}else if($===T.length-1){var k=d[g+1]&&d[g+1].children&&d[g+1].children[0],N={type:"text",value:"".concat(_)};if(k){var M=Oh({children:[N],className:E.properties.className});d.splice(g+1,0,M)}else{var L=[N],F=h(L,D,E.properties.className);f.push(F)}}else{var j=[P],B=h(j,D,E.properties.className);f.push(B)}}),p=g}g++};g0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.all(n.map(s=>{if(s=dke(s),s in ZP)return;ZP[s]=!0;const c=s.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":uke,c||(d.as="script",d.crossOrigin=""),d.href=s,i&&d.setAttribute("nonce",i),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}return a.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},fke=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var pke=mke,gke=Object.prototype.hasOwnProperty;function mke(){for(var e={},t=0;t4&&n.slice(0,4)===NO&&nAe.test(t)&&(t.charAt(4)==="-"?r=oAe(t):t=iAe(t),a=Jke),new a(r,t))}function oAe(e){var t=e.slice(5).replace(uK,lAe);return NO+t.charAt(0).toUpperCase()+t.slice(1)}function iAe(e){var t=e.slice(4);return uK.test(t)?e:(t=t.replace(rAe,sAe),t.charAt(0)!=="-"&&(t="-"+t),NO+t)}function sAe(e){return"-"+e.toLowerCase()}function lAe(e){return e.charAt(1).toUpperCase()}var cAe=uAe,n4=/[#.]/g;function uAe(e,t){for(var n=e||"",r=t||"div",a={},o=0,i,s,c;o=48&&t<=57}var kMe=AMe;function AMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var MMe=DMe;function DMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var PMe=MMe,LMe=pK,FMe=jMe;function jMe(e){return PMe(e)||LMe(e)}var Um,BMe=59,zMe=HMe;function HMe(e){var t="&"+e+";",n;return Um=Um||document.createElement("i"),Um.innerHTML=t,n=Um.textContent,n.charCodeAt(n.length-1)===BMe&&e!=="semi"||n===t?!1:n}var c4=$Me,u4=OMe,UMe=pK,VMe=kMe,gK=FMe,WMe=zMe,GMe=oDe,qMe={}.hasOwnProperty,Bc=String.fromCharCode,KMe=Function.prototype,d4={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},YMe=9,f4=10,XMe=12,ZMe=32,p4=38,QMe=59,JMe=60,eDe=61,tDe=35,nDe=88,rDe=120,aDe=65533,Gc="named",MO="hexadecimal",DO="decimal",PO={};PO[MO]=16;PO[DO]=10;var U0={};U0[Gc]=gK;U0[DO]=UMe;U0[MO]=VMe;var mK=1,hK=2,vK=3,bK=4,yK=5,mR=6,SK=7,sl={};sl[mK]="Named character references must be terminated by a semicolon";sl[hK]="Numeric character references must be terminated by a semicolon";sl[vK]="Named character references cannot be empty";sl[bK]="Numeric character references cannot be empty";sl[yK]="Named character references must be known";sl[mR]="Numeric character references cannot be disallowed";sl[SK]="Numeric character references cannot be outside the permissible Unicode range";function oDe(e,t){var n={},r,a;t||(t={});for(a in d4)r=t[a],n[a]=r??d4[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),iDe(e,n)}function iDe(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,o=t.reference,i=t.warning,s=t.textContext,c=t.referenceContext,u=t.warningContext,d=t.position,f=t.indent||[],p=e.length,g=0,v=-1,m=d.column||1,h=d.line||1,y="",b=[],S,C,x,E,I,R,T,_,$,D,P,A,O,k,N,M,L,F,j;for(typeof n=="string"&&(n=n.charCodeAt(0)),M=B(),_=i?z:KMe,g--,p++;++g65535&&(R-=65536,D+=Bc(R>>>10|55296),R=56320|R&1023),R=D+Bc(R))):k!==Gc&&_(bK,F)),R?(H(),M=B(),g=j-1,m+=j-O+1,b.push(R),L=B(),L.offset++,o&&o.call(c,R,{start:M,end:L},e.slice(O-1,j)),M=L):(E=e.slice(O-1,j),y+=E,m+=E.length,g=j-1)}else I===10&&(h++,v++,m=0),I===I?(y+=Bc(I),m++):H();return b.join("");function B(){return{line:h,column:m,offset:g+(d.offset||0)}}function z(U,X){var W=B();W.column+=X,W.offset+=X,i.call(u,sl[U],W,U)}function H(){y&&(b.push(y),a&&a.call(s,y,{start:M,end:B()}),y="")}}function sDe(e){return e>=55296&&e<=57343||e>1114111}function lDe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var wK={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if($===0){var A=d.slice(p+1,g).concat(Oh({children:[P],className:E.properties.className})),O=h(A,D);f.push(O)}else if($===T.length-1){var k=d[g+1]&&d[g+1].children&&d[g+1].children[0],N={type:"text",value:"".concat(_)};if(k){var M=Oh({children:[N],className:E.properties.className});d.splice(g+1,0,M)}else{var L=[N],F=h(L,D,E.properties.className);f.push(F)}}else{var j=[P],B=h(j,D,E.properties.className);f.push(B)}}),p=g}g++};g0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.all(n.map(s=>{if(s=dke(s),s in ZP)return;ZP[s]=!0;const c=s.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":uke,c||(d.as="script",d.crossOrigin=""),d.href=s,i&&d.setAttribute("nonce",i),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}return a.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},fke=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var pke=mke,gke=Object.prototype.hasOwnProperty;function mke(){for(var e={},t=0;t4&&n.slice(0,4)===NO&&nAe.test(t)&&(t.charAt(4)==="-"?r=oAe(t):t=iAe(t),a=Jke),new a(r,t))}function oAe(e){var t=e.slice(5).replace(uK,lAe);return NO+t.charAt(0).toUpperCase()+t.slice(1)}function iAe(e){var t=e.slice(4);return uK.test(t)?e:(t=t.replace(rAe,sAe),t.charAt(0)!=="-"&&(t="-"+t),NO+t)}function sAe(e){return"-"+e.toLowerCase()}function lAe(e){return e.charAt(1).toUpperCase()}var cAe=uAe,n4=/[#.]/g;function uAe(e,t){for(var n=e||"",r=t||"div",a={},o=0,i,s,c;o=48&&t<=57}var kMe=AMe;function AMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var MMe=DMe;function DMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var PMe=MMe,LMe=pK,FMe=jMe;function jMe(e){return PMe(e)||LMe(e)}var Um,BMe=59,zMe=HMe;function HMe(e){var t="&"+e+";",n;return Um=Um||document.createElement("i"),Um.innerHTML=t,n=Um.textContent,n.charCodeAt(n.length-1)===BMe&&e!=="semi"||n===t?!1:n}var c4=$Me,u4=OMe,UMe=pK,VMe=kMe,gK=FMe,WMe=zMe,GMe=oDe,qMe={}.hasOwnProperty,Bc=String.fromCharCode,KMe=Function.prototype,d4={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},YMe=9,f4=10,XMe=12,ZMe=32,p4=38,QMe=59,JMe=60,eDe=61,tDe=35,nDe=88,rDe=120,aDe=65533,Gc="named",MO="hexadecimal",DO="decimal",PO={};PO[MO]=16;PO[DO]=10;var U0={};U0[Gc]=gK;U0[DO]=UMe;U0[MO]=VMe;var mK=1,hK=2,vK=3,bK=4,yK=5,mR=6,SK=7,sl={};sl[mK]="Named character references must be terminated by a semicolon";sl[hK]="Numeric character references must be terminated by a semicolon";sl[vK]="Named character references cannot be empty";sl[bK]="Numeric character references cannot be empty";sl[yK]="Named character references must be known";sl[mR]="Numeric character references cannot be disallowed";sl[SK]="Numeric character references cannot be outside the permissible Unicode range";function oDe(e,t){var n={},r,a;t||(t={});for(a in d4)r=t[a],n[a]=r??d4[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),iDe(e,n)}function iDe(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,o=t.reference,i=t.warning,s=t.textContext,c=t.referenceContext,u=t.warningContext,d=t.position,f=t.indent||[],p=e.length,g=0,v=-1,m=d.column||1,h=d.line||1,y="",b=[],S,C,x,E,I,R,T,_,$,D,P,A,O,k,N,M,L,F,j;for(typeof n=="string"&&(n=n.charCodeAt(0)),M=B(),_=i?z:KMe,g--,p++;++g65535&&(R-=65536,D+=Bc(R>>>10|55296),R=56320|R&1023),R=D+Bc(R))):k!==Gc&&_(bK,F)),R?(H(),M=B(),g=j-1,m+=j-O+1,b.push(R),L=B(),L.offset++,o&&o.call(c,R,{start:M,end:L},e.slice(O-1,j)),M=L):(E=e.slice(O-1,j),y+=E,m+=E.length,g=j-1)}else I===10&&(h++,v++,m=0),I===I?(y+=Bc(I),m++):H();return b.join("");function B(){return{line:h,column:m,offset:g+(d.offset||0)}}function z(U,X){var W=B();W.column+=X,W.offset+=X,i.call(u,sl[U],W,U)}function H(){y&&(b.push(y),a&&a.call(s,y,{start:M,end:B()}),y="")}}function sDe(e){return e>=55296&&e<=57343||e>1114111}function lDe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var wK={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT @@ -559,8 +559,8 @@ html body { */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function b(S){return S instanceof c?new c(S.type,b(S.content),S.alias):Array.isArray(S)?S.map(b):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(x){var b=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(b){var S=document.getElementsByTagName("script");for(var C in S)if(S[C].src==b)return S[C]}return null}},isActive:function(b,S,C){for(var x="no-"+S;b;){var E=b.classList;if(E.contains(S))return!0;if(E.contains(x))return!1;b=b.parentElement}return!!C}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(b,S){var C=s.util.clone(s.languages[b]);for(var x in S)C[x]=S[x];return C},insertBefore:function(b,S,C,x){x=x||s.languages;var E=x[b],I={};for(var R in E)if(E.hasOwnProperty(R)){if(R==S)for(var T in C)C.hasOwnProperty(T)&&(I[T]=C[T]);C.hasOwnProperty(R)||(I[R]=E[R])}var _=x[b];return x[b]=I,s.languages.DFS(s.languages,function($,D){D===_&&$!=b&&(this[$]=I)}),I},DFS:function b(S,C,x,E){E=E||{};var I=s.util.objId;for(var R in S)if(S.hasOwnProperty(R)){C.call(S,R,S[R],x||R);var T=S[R],_=s.util.type(T);_==="Object"&&!E[I(T)]?(E[I(T)]=!0,b(T,C,null,E)):_==="Array"&&!E[I(T)]&&(E[I(T)]=!0,b(T,C,R,E))}}},plugins:{},highlightAll:function(b,S){s.highlightAllUnder(document,b,S)},highlightAllUnder:function(b,S,C){var x={callback:C,container:b,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),s.hooks.run("before-all-elements-highlight",x);for(var E=0,I;I=x.elements[E++];)s.highlightElement(I,S===!0,x.callback)},highlightElement:function(b,S,C){var x=s.util.getLanguage(b),E=s.languages[x];s.util.setLanguage(b,x);var I=b.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,x);var R=b.textContent,T={element:b,language:x,grammar:E,code:R};function _(D){T.highlightedCode=D,s.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,s.hooks.run("after-highlight",T),s.hooks.run("complete",T),C&&C.call(T.element)}if(s.hooks.run("before-sanity-check",T),I=T.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!T.code){s.hooks.run("complete",T),C&&C.call(T.element);return}if(s.hooks.run("before-highlight",T),!T.grammar){_(s.util.encode(T.code));return}if(S&&r.Worker){var $=new Worker(s.filename);$.onmessage=function(D){_(D.data)},$.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else _(s.highlight(T.code,T.grammar,T.language))},highlight:function(b,S,C){var x={code:b,grammar:S,language:C};if(s.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=s.tokenize(x.code,x.grammar),s.hooks.run("after-tokenize",x),c.stringify(s.util.encode(x.tokens),x.language)},tokenize:function(b,S){var C=S.rest;if(C){for(var x in C)S[x]=C[x];delete S.rest}var E=new f;return p(E,E.head,b),d(b,E,S,E.head,0),v(E)},hooks:{all:{},add:function(b,S){var C=s.hooks.all;C[b]=C[b]||[],C[b].push(S)},run:function(b,S){var C=s.hooks.all[b];if(!(!C||!C.length))for(var x=0,E;E=C[x++];)E(S)}},Token:c};r.Prism=s;function c(b,S,C,x){this.type=b,this.content=S,this.alias=C,this.length=(x||"").length|0}c.stringify=function b(S,C){if(typeof S=="string")return S;if(Array.isArray(S)){var x="";return S.forEach(function(_){x+=b(_,C)}),x}var E={type:S.type,content:b(S.content,C),tag:"span",classes:["token",S.type],attributes:{},language:C},I=S.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(E.classes,I):E.classes.push(I)),s.hooks.run("wrap",E);var R="";for(var T in E.attributes)R+=" "+T+'="'+(E.attributes[T]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+R+">"+E.content+""};function u(b,S,C,x){b.lastIndex=S;var E=b.exec(C);if(E&&x&&E[1]){var I=E[1].length;E.index+=I,E[0]=E[0].slice(I)}return E}function d(b,S,C,x,E,I){for(var R in C)if(!(!C.hasOwnProperty(R)||!C[R])){var T=C[R];T=Array.isArray(T)?T:[T];for(var _=0;_=I.reach);L+=M.value.length,M=M.next){var F=M.value;if(S.length>b.length)return;if(!(F instanceof c)){var j=1,B;if(A){if(B=u(N,L,b,P),!B||B.index>=b.length)break;var X=B.index,z=B.index+B[0].length,H=L;for(H+=M.value.length;X>=H;)M=M.next,H+=M.value.length;if(H-=M.value.length,L=H,M.value instanceof c)continue;for(var U=M;U!==S.tail&&(HI.reach&&(I.reach=ee);var Z=M.prev;Y&&(Z=p(S,Z,Y),L+=Y.length),g(S,Z,j);var oe=new c(R,D?s.tokenize(W,D):W,O,W);if(M=p(S,Z,oe),te&&p(S,M,te),j>1){var re={cause:R+","+_,reach:ee};d(b,S,C,M.prev,L,re),I&&re.reach>I.reach&&(I.reach=re.reach)}}}}}}function f(){var b={value:null,prev:null,next:null},S={value:null,prev:b,next:null};b.next=S,this.head=b,this.tail=S,this.length=0}function p(b,S,C){var x=S.next,E={value:C,prev:S,next:x};return S.next=E,x.prev=E,b.length++,E}function g(b,S,C){for(var x=S.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var dDe=FO;FO.displayName="css";FO.aliases=[];function FO(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var fDe=jO;jO.displayName="clike";jO.aliases=[];function jO(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var pDe=BO;BO.displayName="javascript";BO.aliases=["js"];function BO(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var uf=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ra=="object"?ra:{},gDe=ODe();uf.Prism={manual:!0,disableWorkerMessageHandler:!0};var mDe=OAe,hDe=GMe,CK=cDe,vDe=uDe,bDe=dDe,yDe=fDe,SDe=pDe;gDe();var zO={}.hasOwnProperty;function xK(){}xK.prototype=CK;var vr=new xK,wDe=vr;vr.highlight=xDe;vr.register=Ng;vr.alias=CDe;vr.registered=EDe;vr.listLanguages=IDe;Ng(vDe);Ng(bDe);Ng(yDe);Ng(SDe);vr.util.encode=_De;vr.Token.stringify=TDe;function Ng(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");vr.languages[e.displayName]===void 0&&e(vr)}function CDe(e,t){var n=vr.languages,r=e,a,o,i,s;t&&(r={},r[e]=t);for(a in r)for(o=r[a],o=typeof o=="string"?[o]:o,i=o.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var KS,g4;function kDe(){if(g4)return KS;g4=1,KS=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return KS}var YS,m4;function ADe(){if(m4)return YS;m4=1,YS=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return YS}var XS,h4;function MDe(){if(h4)return XS;h4=1,XS=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return XS}var ZS,v4;function DDe(){if(v4)return ZS;v4=1,ZS=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return ZS}var QS,b4;function PDe(){if(b4)return QS;b4=1,QS=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return QS}var JS,y4;function LDe(){if(y4)return JS;y4=1,JS=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return JS}var e1,S4;function FDe(){if(S4)return e1;S4=1,e1=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return e1}var t1,w4;function jDe(){if(w4)return t1;w4=1,t1=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return t1}var n1,C4;function HO(){if(C4)return n1;C4=1,n1=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return n1}var r1,x4;function BDe(){if(x4)return r1;x4=1;var e=HO();r1=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,o=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function i(c){return RegExp(c.replace(//g,function(){return o}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return r1}var a1,E4;function zDe(){if(E4)return a1;E4=1,a1=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return a1}var o1,I4;function HDe(){if(I4)return o1;I4=1,o1=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return o1}var i1,T4;function UDe(){if(T4)return i1;T4=1,i1=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return i1}var s1,R4;function xc(){if(R4)return s1;R4=1,s1=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return s1}var l1,_4;function UO(){if(_4)return l1;_4=1;var e=xc();l1=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return l1}var c1,$4;function VDe(){if($4)return c1;$4=1;var e=UO();c1=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return c1}var u1,O4;function WDe(){if(O4)return u1;O4=1,u1=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return u1}var d1,N4;function GDe(){if(N4)return d1;N4=1,d1=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function o(i){i=i.split(" ");for(var s={},c=0,u=i.length;c>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return p1}var g1,M4;function V0(){if(M4)return g1;M4=1,g1=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(j,B){return j.replace(/<<(\d+)>>/g,function(z,H){return"(?:"+B[+H]+")"})}function a(j,B,z){return RegExp(r(j,B),"")}function o(j,B){for(var z=0;z>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var c=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),d=s(i.typeDeclaration+" "+i.contextual+" "+i.other),f=s(i.type+" "+i.typeDeclaration+" "+i.other),p=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),g=o(/\((?:[^()]|<>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,m=r(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),h=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,m]),y=/\[\s*(?:,\s*)*\]/.source,b=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[h,y]),S=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,g,y]),C=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[S]),x=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,h,y]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[h]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[c,m]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[h]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,f,v]),inside:E}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,h]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:a(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,m,v,x,u.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=R+"|"+I,$=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),D=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[h,D]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[D]),inside:n.languages.csharp},"class-name":{pattern:RegExp(h),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var O=/:[^}\r\n]+/.source,k=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),N=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[k,O]),M=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,O]);function F(j,B){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[B,O]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:F(N,k)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:F(L,M)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return g1}var m1,D4;function YDe(){if(D4)return m1;D4=1;var e=V0();m1=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return m1}var h1,P4;function XDe(){if(P4)return h1;P4=1,h1=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return h1}var v1,L4;function ZDe(){if(L4)return v1;L4=1,v1=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return v1}var b1,F4;function QDe(){if(F4)return b1;F4=1,b1=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(d,f){return d.replace(/<<(\d+)>>/g,function(p,g){return f[+g]})}function a(d,f,p){return RegExp(r(d,f),p)}var o=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),c=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[i,s,c].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[o],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[o],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return b1}var y1,j4;function JDe(){if(j4)return y1;j4=1,y1=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return y1}var S1,B4;function EK(){if(B4)return S1;B4=1,S1=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,c=0;c?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return w1}var C1,H4;function ePe(){if(H4)return C1;H4=1,C1=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:o,parameter:a,variable:r,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:o,parameter:a,variable:r,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:o,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return C1}var x1,U4;function tPe(){if(U4)return x1;U4=1,x1=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return x1}var E1,V4;function nPe(){if(V4)return E1;V4=1,E1=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return E1}var I1,W4;function rPe(){if(W4)return I1;W4=1,I1=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return I1}var T1,G4;function aPe(){if(G4)return T1;G4=1;var e=xc();T1=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return T1}var R1,q4;function oPe(){if(q4)return R1;q4=1,R1=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return R1}var _1,K4;function iPe(){if(K4)return _1;K4=1,_1=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return _1}var $1,Y4;function sPe(){if(Y4)return $1;Y4=1,$1=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return $1}var O1,X4;function lPe(){if(X4)return O1;X4=1,O1=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return O1}var N1,Z4;function cPe(){if(Z4)return N1;Z4=1,N1=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return N1}var k1,Q4;function uPe(){if(Q4)return k1;Q4=1,k1=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return k1}var A1,J4;function dPe(){if(J4)return A1;J4=1;var e=UO();A1=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return A1}var M1,eL;function fPe(){if(eL)return M1;eL=1,M1=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return M1}var D1,tL;function pPe(){if(tL)return D1;tL=1,D1=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return D1}var P1,nL;function gPe(){if(nL)return P1;nL=1,P1=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return P1}var L1,rL;function mPe(){if(rL)return L1;rL=1,L1=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return L1}var F1,aL;function hPe(){if(aL)return F1;aL=1,F1=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return F1}var j1,oL;function vPe(){if(oL)return j1;oL=1,j1=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return j1}var B1,iL;function bPe(){if(iL)return B1;iL=1,B1=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return B1}var z1,sL;function W0(){if(sL)return z1;sL=1,z1=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return z1}var H1,lL;function yPe(){if(lL)return H1;lL=1;var e=W0();H1=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return H1}var U1,cL;function SPe(){if(cL)return U1;cL=1;var e=V0();U1=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,o=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(h,y){for(var b=0;b/g,function(){return"(?:"+h+")"});return h.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+o+")").replace(//g,"(?:"+a+")")}var s=i(/\((?:[^()'"@/]|||)*\)/.source,2),c=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),u=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=i(/<(?:[^<>'"@/]|||)*>/.source,2),f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,p=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|"+i(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var o={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:o,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:o,number:i})})(t)}return W1}var G1,fL;function xPe(){if(fL)return G1;fL=1,G1=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return G1}var q1,pL;function EPe(){if(pL)return q1;pL=1,q1=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return q1}var K1,gL;function IPe(){if(gL)return K1;gL=1,K1=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return K1}var Y1,mL;function TPe(){if(mL)return Y1;mL=1,Y1=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Y1}var X1,hL;function RPe(){if(hL)return X1;hL=1,X1=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return X1}var Z1,vL;function _Pe(){if(vL)return Z1;vL=1,Z1=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return Z1}var Q1,bL;function $Pe(){if(bL)return Q1;bL=1,Q1=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return Q1}var J1,yL;function OPe(){if(yL)return J1;yL=1,J1=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var o=r[a],i=[];/^\w+$/.test(a)||i.push(/\w+/.exec(a)[0]),a==="diff"&&i.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+o+`].*(?:\r ?| |(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return J1}var ew,SL;function $a(){if(SL)return ew;SL=1,ew=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,i,s){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(i,function(u){if(typeof s=="function"&&!s(u))return u;for(var d=c.length,f;a.code.indexOf(f=r(o,d))!==-1;)++d;return c[d]=u,f}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=n.languages[o];var i=0,s=Object.keys(a.tokenStack);function c(u){for(var d=0;d=s.length);d++){var f=u[d];if(typeof f=="string"||f.content&&typeof f.content=="string"){var p=s[i],g=a.tokenStack[p],v=typeof f=="string"?f:f.content,m=r(o,p),h=v.indexOf(m);if(h>-1){++i;var y=v.substring(0,h),b=new n.Token(o,n.tokenize(g,a.grammar),"language-"+o,g),S=v.substring(h+m.length),C=[];y&&C.push.apply(C,c([y])),C.push(b),S&&C.push.apply(C,c([S])),typeof f=="string"?u.splice.apply(u,[d,1].concat(C)):f.content=C}}else f.content&&c(f.content)}return u}c(a.tokens)}}})})(t)}return ew}var tw,wL;function NPe(){if(wL)return tw;wL=1;var e=$a();tw=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,o=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"django",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"jinja2",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"jinja2")})}(n)}return tw}var nw,CL;function kPe(){if(CL)return nw;CL=1,nw=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return nw}var rw,xL;function APe(){if(xL)return rw;xL=1,rw=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(d,f){return d=d.replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(d,f)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:c},n.languages.dockerfile=n.languages.docker})(t)}return rw}var aw,EL;function MPe(){if(EL)return aw;EL=1,aw=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function o(i,s){return RegExp(i.replace(//g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:o(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:o(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:o(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:o(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return aw}var ow,IL;function DPe(){if(IL)return ow;IL=1,ow=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return ow}var iw,TL;function PPe(){if(TL)return iw;TL=1,iw=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return iw}var sw,RL;function LPe(){if(RL)return sw;RL=1,sw=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return sw}var lw,_L;function FPe(){if(_L)return lw;_L=1;var e=$a();lw=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var o=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return lw}var cw,$L;function jPe(){if($L)return cw;$L=1,cw=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return cw}var uw,OL;function BPe(){if(OL)return uw;OL=1,uw=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return uw}var dw,NL;function zPe(){if(NL)return dw;NL=1;var e=W0(),t=$a();dw=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(o){var i=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"erb",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"erb")})}(r)}return dw}var fw,kL;function HPe(){if(kL)return fw;kL=1,fw=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return fw}var pw,AL;function TK(){if(AL)return pw;AL=1,pw=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return pw}var gw,ML;function UPe(){if(ML)return gw;ML=1;var e=TK(),t=$a();gw=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(o){var i=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"etlua",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"etlua")})}(r)}return gw}var mw,DL;function VPe(){if(DL)return mw;DL=1,mw=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return mw}var hw,PL;function WPe(){if(PL)return hw;PL=1,hw=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},o={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},i=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(i).join("|")+")(?=\\s|$)")},c={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(c).forEach(function(d){o[d].pattern=s(c[d])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];o.combinators.pattern=s(u),n.languages.factor=o})(t)}return hw}var vw,LL;function GPe(){if(LL)return vw;LL=1,vw=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return bw}var yw,jL;function KPe(){if(jL)return yw;jL=1,yw=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return yw}var Sw,BL;function YPe(){if(BL)return Sw;BL=1,Sw=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Sw}var ww,zL;function XPe(){if(zL)return ww;zL=1,ww=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return ww}var Cw,HL;function ZPe(){if(HL)return Cw;HL=1;var e=$a();Cw=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,o=0;o<2;o++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},r.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return Cw}var xw,UL;function QPe(){if(UL)return xw;UL=1,xw=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return xw}var Ew,VL;function JPe(){if(VL)return Ew;VL=1,Ew=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return Ew}var Iw,WL;function e4e(){if(WL)return Iw;WL=1,Iw=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Iw}var Tw,GL;function t4e(){if(GL)return Tw;GL=1,Tw=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Tw}var Rw,qL;function n4e(){if(qL)return Rw;qL=1,Rw=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return Rw}var _w,KL;function r4e(){if(KL)return _w;KL=1,_w=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return _w}var $w,YL;function a4e(){if(YL)return $w;YL=1;var e=xc();$w=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return $w}var Ow,XL;function o4e(){if(XL)return Ow;XL=1,Ow=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Ow}var Nw,ZL;function i4e(){if(ZL)return Nw;ZL=1,Nw=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return Nw}var kw,QL;function s4e(){if(QL)return kw;QL=1,kw=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return kw}var Aw,JL;function l4e(){if(JL)return Aw;JL=1,Aw=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Aw}var Mw,e6;function c4e(){if(e6)return Mw;e6=1,Mw=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(y){return typeof y!="string"&&y.type!=="comment"&&y.type!=="scalar"}),o=0;function i(y){return a[o+y]}function s(y,b){b=b||0;for(var S=0;S0)){var v=c(/^\{$/,/^\}$/);if(v===-1)continue;for(var m=o;m=0&&u(h,"variable-input")}}}}})}return Mw}var Dw,t6;function u4e(){if(t6)return Dw;t6=1,Dw=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return Dw}var Pw,n6;function d4e(){if(n6)return Pw;n6=1;var e=W0();Pw=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",o=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},s=0,c=o.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var o=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return Lw}var Fw,a6;function VO(){if(a6)return Fw;a6=1,Fw=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Fw}var jw,o6;function p4e(){if(o6)return jw;o6=1,jw=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return jw}var Bw,i6;function g4e(){if(i6)return Bw;i6=1,Bw=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Bw}var zw,s6;function m4e(){if(s6)return zw;s6=1;var e=xc();zw=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return zw}var Hw,l6;function h4e(){if(l6)return Hw;l6=1,Hw=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Hw}var Uw,c6;function v4e(){if(c6)return Uw;c6=1,Uw=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Uw}var Vw,u6;function b4e(){if(u6)return Vw;u6=1,Vw=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Vw}var Ww,d6;function y4e(){if(d6)return Ww;d6=1,Ww=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(f){return RegExp("(^(?:"+f+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,o={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},i={"application/json":!0,"application/xml":!0};function s(f){var p=f.replace(/^[a-z]+\//,""),g="\\w+/(?:[\\w.-]+\\+)+"+p+"(?![+\\w.-])";return"(?:"+f+"|"+g+")"}var c;for(var u in o)if(o[u]){c=c||{};var d=i[u]?s(u):u;c[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:o[u]}}c&&n.languages.insertBefore("http","header",c)})(t)}return Ww}var Gw,f6;function S4e(){if(f6)return Gw;f6=1,Gw=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return Gw}var qw,p6;function w4e(){if(p6)return qw;p6=1,qw=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return qw}var Kw,g6;function C4e(){if(g6)return Kw;g6=1,Kw=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,d){return d<=0?/[]/.source:u.replace(//g,function(){return r(u,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,o={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:a,greedy:!0,inside:{escape:o}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),c={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":c,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":c,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:o,string:i},c.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return Kw}var Yw,m6;function x4e(){if(m6)return Yw;m6=1;var e=VO();Yw=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Yw}var Xw,h6;function E4e(){if(h6)return Xw;h6=1,Xw=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return Xw}var Zw,v6;function I4e(){if(v6)return Zw;v6=1,Zw=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return Zw}var Qw,b6;function T4e(){if(b6)return Qw;b6=1,Qw=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return Qw}var Jw,y6;function R4e(){if(y6)return Jw;y6=1,Jw=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Jw}var eC,S6;function _4e(){if(S6)return eC;S6=1,eC=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return tC}var nC,C6;function WO(){if(C6)return nC;C6=1,nC=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return nC}var rC,x6;function G0(){if(x6)return rC;x6=1,rC=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(i,s){var c="doc-comment",u=n.languages[i];if(u){var d=u[c];if(!d){var f={};f[c]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(i,"comment",f),d=u[c]}if(d instanceof RegExp&&(d=u[c]={pattern:d}),Array.isArray(d))for(var p=0,g=d.length;p)?|/.source.replace(//g,function(){return i});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:o,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:o,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return aC}var oC,I6;function N4e(){if(I6)return oC;I6=1,oC=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return oC}var iC,T6;function k4e(){if(T6)return iC;T6=1,iC=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return iC}var sC,R6;function A4e(){if(R6)return sC;R6=1,sC=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return sC}var lC,_6;function M4e(){if(_6)return lC;_6=1,lC=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),o={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:o},string:{pattern:a,lookbehind:!0,greedy:!0,inside:o},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};o.interpolation.inside.content.inside=i})(t)}return lC}var cC,$6;function D4e(){if($6)return cC;$6=1,cC=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,d){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],o=0;o=I.length)return;var $=T[_];if(typeof $=="string"||typeof $.content=="string"){var D=I[S],P=typeof $=="string"?$:$.content,A=P.indexOf(D);if(A!==-1){++S;var O=P.substring(0,A),k=f(C[D]),N=P.substring(A+D.length),M=[];if(O&&M.push(O),M.push(k),N){var L=[N];R(L),M.push.apply(M,L)}typeof $=="string"?(T.splice.apply(T,[_,1].concat(M)),_+=M.length-1):$.content=M}}else{var F=$.content;Array.isArray(F)?R(F):R([F])}}}return R(E),new n.Token(y,E,"language-"+y,m)}var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(m){if(!(m.language in g))return;function h(y){for(var b=0,S=y.length;b]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return dC}var fC,k6;function L4e(){if(k6)return fC;k6=1;var e=G0(),t=GO();fC=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.languages.javascript,i=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+i+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:o,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return i})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+i),lookbehind:!0,inside:{string:o.string,number:o.number,boolean:o.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:o,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return fC}var pC,A6;function qO(){if(A6)return pC;A6=1,pC=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return pC}var gC,M6;function F4e(){if(M6)return gC;M6=1;var e=qO();gC=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return gC}var mC,D6;function j4e(){if(D6)return mC;D6=1;var e=qO();mC=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return mC}var hC,P6;function B4e(){if(P6)return hC;P6=1,hC=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return hC}var vC,L6;function RK(){if(L6)return vC;L6=1,vC=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,f){return d=d.replace(//g,function(){return a}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(d,f)}i=s(i).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var c=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(c).join(""):""},u=function(d){for(var f=[],p=0;p0&&f[f.length-1].tagName===c(g.content[0].content[1])&&f.pop():g.content[g.content.length-1].content==="/>"||f.push({tagName:c(g.content[0].content[1]),openedBraces:0}):f.length>0&&g.type==="punctuation"&&g.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?f[f.length-1].openedBraces--:v=!0),(v||typeof g=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var m=c(g);p0&&(typeof d[p-1]=="string"||d[p-1].type==="plain-text")&&(m=c(d[p-1])+m,d.splice(p-1,1),p--),d[p]=new n.Token("plain-text",m,null,m)}g.content&&typeof g.content!="string"&&u(g.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||u(d.tokens)})})(t)}return vC}var bC,F6;function z4e(){if(F6)return bC;F6=1,bC=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return bC}var yC,j6;function H4e(){if(j6)return yC;j6=1,yC=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return yC}var SC,B6;function U4e(){if(B6)return SC;B6=1,SC=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return SC}var wC,z6;function V4e(){if(z6)return wC;z6=1,wC=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return wC}var CC,H6;function W4e(){if(H6)return CC;H6=1,CC=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(o,i){return RegExp(o.replace(//g,r),i)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return CC}var xC,U6;function G4e(){if(U6)return xC;U6=1,xC=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return xC}var EC,V6;function q4e(){if(V6)return EC;V6=1,EC=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return EC}var IC,W6;function q0(){if(W6)return IC;W6=1;var e=$a();IC=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,o=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,c=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:c};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,number:i,operator:s,punctuation:c}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(f){if(/<\?/.test(f.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(f,"php",p)}}),r.hooks.add("after-tokenize",function(f){r.languages["markup-templating"].tokenizePlaceholders(f,"php")})}(n)}return IC}var TC,G6;function K4e(){if(G6)return TC;G6=1;var e=$a(),t=q0();TC=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var o=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},o.tag),a.hooks.add("before-tokenize",function(i){if(i.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(i,"latte",s),i.grammar=o}}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"latte")})}(r)}return TC}var RC,q6;function Y4e(){if(q6)return RC;q6=1,RC=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return RC}var _C,K6;function KO(){if(K6)return _C;K6=1,_C=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var o in a)a[o]=a[o].replace(/<[\w\s]+>/g,function(i){return"(?:"+a[i].trim()+")"});return a[o]}})(t)}return _C}var $C,Y6;function X4e(){if(Y6)return $C;Y6=1;var e=KO();$C=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,o=5,i=0;i/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return $C}var OC,X6;function Z4e(){if(X6)return OC;X6=1;var e=$a();OC=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,o=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(i){var s=/^\{%-?\s*(\w+)/.exec(i);if(s){var c=s[1];if(c==="raw"&&!o)return o=!0,!0;if(c==="endraw")return o=!1,!0}return!o})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return OC}var NC,Z6;function Q4e(){if(Z6)return NC;Z6=1,NC=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function a(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",c="(?=\\))",u="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,f={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+d+/\)/.source),inside:f},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:f},g="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(s+d+c),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+g),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+g),inside:p},keys:{pattern:RegExp("&key\\s+"+g+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};f.lambda.inside.arguments=v,f.defun.inside.arguments=n.util.clone(v),f.defun.inside.arguments.inside.sublist=v,n.languages.lisp=f,n.languages.elisp=f,n.languages.emacs=f,n.languages["emacs-lisp"]=f})(t)}return NC}var kC,Q6;function J4e(){if(Q6)return kC;Q6=1,kC=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return kC}var AC,J6;function eLe(){if(J6)return AC;J6=1,AC=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return AC}var MC,e8;function tLe(){if(e8)return MC;e8=1,MC=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return MC}var DC,t8;function nLe(){if(t8)return DC;t8=1,DC=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return DC}var PC,n8;function rLe(){if(n8)return PC;n8=1,PC=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return PC}var LC,r8;function aLe(){if(r8)return LC;r8=1,LC=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return LC}var FC,a8;function oLe(){if(a8)return FC;a8=1,FC=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(p){return p=p.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(g){p!==g&&(n.languages.markdown[p].inside.content.inside[g]=n.languages.markdown[g])})}),n.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function g(v){if(!(!v||typeof v=="string"))for(var m=0,h=v.length;m",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function f(p){var g=p.replace(c,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),d(h)}else{var y=u[m];return y||v}}),g}n.languages.md=n.languages.markdown})(t)}return FC}var jC,o8;function iLe(){if(o8)return jC;o8=1,jC=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return jC}var BC,i8;function sLe(){if(i8)return BC;i8=1,BC=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return BC}var zC,s8;function lLe(){if(s8)return zC;s8=1,zC=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return zC}var HC,l8;function cLe(){if(l8)return HC;l8=1,HC=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return HC}var UC,c8;function uLe(){if(c8)return UC;c8=1,UC=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return UC}var VC,u8;function dLe(){if(u8)return VC;u8=1,VC=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(i){return i.replace("$","\\$")});var o="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+o+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return VC}var WC,d8;function fLe(){if(d8)return WC;d8=1,WC=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return WC}var GC,f8;function pLe(){if(f8)return GC;f8=1,GC=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return GC}var qC,p8;function gLe(){if(p8)return qC;p8=1,qC=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return qC}var KC,g8;function mLe(){if(g8)return KC;g8=1,KC=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return KC}var YC,m8;function hLe(){if(m8)return YC;m8=1,YC=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return YC}var XC,h8;function vLe(){if(h8)return XC;h8=1,XC=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var c=s.tokens;c.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var d=i(u);o(d)||(u.type="bad-line",u.content=d)}})});function o(s){for(var c="[]{}",u=[],d=0;d=&|$!]/}}return ZC}var QC,b8;function yLe(){if(b8)return QC;b8=1,QC=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return QC}var JC,y8;function SLe(){if(y8)return JC;y8=1,JC=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return JC}var ex,S8;function wLe(){if(S8)return ex;S8=1,ex=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return ex}var tx,w8;function CLe(){if(w8)return tx;w8=1,tx=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return tx}var nx,C8;function xLe(){if(C8)return nx;C8=1,nx=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return nx}var rx,x8;function ELe(){if(x8)return rx;x8=1,rx=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return rx}var ax,E8;function ILe(){if(E8)return ax;E8=1;var e=xc();ax=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return ax}var ox,I8;function TLe(){if(I8)return ox;I8=1,ox=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return ox}var ix,T8;function RLe(){if(T8)return ix;T8=1;var e=xc();ix=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return ix}var sx,R8;function _Le(){if(R8)return sx;R8=1,sx=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return sx}var lx,_8;function $Le(){if(_8)return lx;_8=1,lx=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return lx}var cx,$8;function OLe(){if($8)return cx;$8=1,cx=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return cx}var ux,O8;function NLe(){if(O8)return ux;O8=1,ux=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return ux}var dx,N8;function kLe(){if(N8)return dx;N8=1,dx=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return dx}var fx,k8;function ALe(){if(k8)return fx;k8=1,fx=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),o=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,c){return s[c]=o[c],s},{});o["class-name"].forEach(function(s){s.inside=i})})(t)}return fx}var px,A8;function MLe(){if(A8)return px;A8=1,px=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return px}var gx,M8;function DLe(){if(M8)return gx;M8=1,gx=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return gx}var mx,D8;function PLe(){if(D8)return mx;D8=1,mx=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return mx}var hx,P8;function LLe(){if(P8)return hx;P8=1;var e=q0();hx=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return hx}var vx,L8;function FLe(){if(L8)return vx;L8=1;var e=q0(),t=G0();vx=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+o+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+o),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return vx}var bx,F8;function jLe(){if(F8)return bx;F8=1;var e=HO();bx=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return bx}var yx,j8;function BLe(){if(j8)return yx;j8=1,yx=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return yx}var Sx,B8;function zLe(){if(B8)return Sx;B8=1,Sx=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return Sx}var wx,z8;function HLe(){if(z8)return wx;z8=1,wx=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return wx}var Cx,H8;function ULe(){if(H8)return Cx;H8=1,Cx=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return Cx}var xx,U8;function VLe(){if(U8)return xx;U8=1,xx=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],o=["offset"],i=r.concat(a,o);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return xx}var Ex,V8;function WLe(){if(V8)return Ex;V8=1,Ex=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return Ex}var Ix,W8;function GLe(){if(W8)return Ix;W8=1,Ix=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return Ix}var Tx,G8;function qLe(){if(G8)return Tx;G8=1,Tx=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return Tx}var Rx,q8;function KLe(){if(q8)return Rx;q8=1,Rx=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],o={},i=0,s=a.length;i",function(){return c.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[c.language,"language-"+c.language],inside:n.languages[c.language]}}})}n.languages.insertBefore("pug","filter",o)})(t)}return Rx}var _x,K8;function YLe(){if(K8)return _x;K8=1,_x=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return _x}var $x,Y8;function XLe(){if(Y8)return $x;Y8=1,$x=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(o){var i=o;if(typeof o!="string"&&(i=o.alias,o=o.lang),n.languages[i]){var s={};s["inline-lang-"+i]={pattern:RegExp(a.replace("",o.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+i].inside.rest=n.util.clone(n.languages[i]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return $x}var Ox,X8;function ZLe(){if(X8)return Ox;X8=1,Ox=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return Ox}var Nx,Z8;function QLe(){if(Z8)return Nx;Z8=1;var e=VO();Nx=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return Nx}var kx,Q8;function JLe(){if(Q8)return kx;Q8=1,kx=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return kx}var Ax,J8;function e6e(){if(J8)return Ax;J8=1,Ax=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return Ax}var Mx,eF;function t6e(){if(eF)return Mx;eF=1,Mx=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,o=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),i=0;i<2;i++)o=o.replace(//g,function(){return o});o=o.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Mx}var Dx,tF;function n6e(){if(tF)return Dx;tF=1,Dx=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return Dx}var Px,nF;function r6e(){if(nF)return Px;nF=1,Px=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(v,m){return v.replace(/<<(\d+)>>/g,function(h,y){return"(?:"+m[+y]+")"})}function a(v,m,h){return RegExp(r(v,m),"")}function o(v,m){for(var h=0;h>/g,function(){return"(?:"+v+")"});return v.replace(/<>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(s(i.type+" "+i.other)),u=/\b[A-Za-z_]\w*\b/.source,d=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),f={keyword:c,punctuation:/[<>()?,.:[\]]/},p=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[p]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:f},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:f}],keyword:c,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var g=o(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[p]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[g]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[g]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Px}var Lx,rF;function a6e(){if(rF)return Lx;rF=1,Lx=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Lx}var Fx,aF;function o6e(){if(aF)return Fx;aF=1;var e=KO();Fx=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return Fx}var jx,oF;function i6e(){if(oF)return jx;oF=1,jx=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return jx}var Bx,iF;function s6e(){if(iF)return Bx;iF=1,Bx=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",c=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:c,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":i,escape:a}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return zx}var Hx,lF;function c6e(){if(lF)return Hx;lF=1,Hx=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return Hx}var Ux,cF;function u6e(){if(cF)return Ux;cF=1,Ux=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return Ux}var Vx,uF;function d6e(){if(uF)return Vx;uF=1,Vx=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return Vx}var Wx,dF;function f6e(){if(dF)return Wx;dF=1,Wx=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return Wx}var Gx,fF;function p6e(){if(fF)return Gx;fF=1,Gx=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function o(u,d){var f={};f["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var p in d)f[p]=d[p];return f.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},f.variable=a,f.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:f}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},c={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:o("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:o("Variables"),"test-cases":o("Test Cases",{"test-name":s,documentation:i,property:c}),keywords:o("Keywords",{"keyword-name":s,documentation:i,property:c}),tasks:o("Tasks",{"task-name":s,documentation:i,property:c}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return Gx}var qx,pF;function g6e(){if(pF)return qx;pF=1,qx=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return qx}var Kx,gF;function m6e(){if(gF)return Kx;gF=1,Kx=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,o={pattern:RegExp(r+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},c={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(r),greedy:!0},f=/[$%@.(){}\[\];,\\]/,p={pattern:/%?\b\w+(?=\()/,alias:"keyword"},g={function:p,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":o,punctuation:f,string:d},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},h={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},y={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},b=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,S={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return b}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return b}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:p,"arg-value":g["arg-value"],operator:g.operator,argument:g.arg,number:a,"numeric-constant":o,punctuation:f,string:d}},C={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":h,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:C,"submit-statement":y,"global-statements":h,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:C,"submit-statement":y,"global-statements":h,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:g}},"cas-actions":S,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:g},step:c,keyword:C,function:p,format:v,altformat:m,"global-statements":h,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:g},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:f}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":o}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:g},"cas-actions":S,comment:u,function:p,format:v,altformat:m,"numeric-constant":o,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:d,step:c,keyword:C,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:f}})(t)}return Kx}var Yx,mF;function h6e(){if(mF)return Yx;mF=1,Yx=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return Yx}var Xx,hF;function v6e(){if(hF)return Xx;hF=1;var e=WO();Xx=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return Xx}var Zx,vF;function b6e(){if(vF)return Zx;vF=1,Zx=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return Zx}var Qx,bF;function y6e(){if(bF)return Qx;bF=1;var e=EK();Qx=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return Qx}var Jx,yF;function S6e(){if(yF)return Jx;yF=1,Jx=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return Jx}var eE,SF;function w6e(){if(SF)return eE;SF=1,eE=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return eE}var tE,wF;function C6e(){if(wF)return tE;wF=1;var e=$a();tE=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,o=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(i){var s="{literal}",c="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(i,"smarty",o,function(d){return d===c&&(u=!1),u?!1:(d===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(n)}return tE}var nE,CF;function x6e(){if(CF)return nE;CF=1,nE=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return nE}var rE,xF;function E6e(){if(xF)return rE;xF=1,rE=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return rE}var aE,EF;function I6e(){if(EF)return aE;EF=1,aE=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return aE}var oE,IF;function T6e(){if(IF)return oE;IF=1;var e=$a();oE=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,o=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:o,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:o,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(i){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,c="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(i,"soy",s,function(f){return f===u&&(d=!1),d?!1:(f===c&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(n)}return oE}var iE,TF;function _K(){if(TF)return iE;TF=1,iE=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return iE}var sE,RF;function R6e(){if(RF)return sE;RF=1;var e=_K();sE=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return sE}var lE,_F;function _6e(){if(_F)return lE;_F=1,lE=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return lE}var cE,$F;function $6e(){if($F)return cE;$F=1,cE=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return cE}var uE,OF;function O6e(){if(OF)return uE;OF=1,uE=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return uE}var dE,NF;function N6e(){if(NF)return dE;NF=1,dE=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return dE}var fE,kF;function k6e(){if(kF)return fE;kF=1,fE=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},o={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};o.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:o}},o.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:o}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:o}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:o}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:o}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:o.interpolation}},rest:o}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:o.interpolation,comment:o.comment,punctuation:/[{},]/}},func:o.func,string:o.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:o.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return fE}var pE,AF;function A6e(){if(AF)return pE;AF=1,pE=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return pE}var gE,MF;function M6e(){if(MF)return gE;MF=1,gE=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return gE}var mE,DF;function YO(){if(DF)return mE;DF=1,mE=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(o,i,s){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function a(o){var i=n.languages[o],s="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",i,s),"class-feature":r("\\+",i,s),standard:r("",i,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return mE}var hE,PF;function D6e(){if(PF)return hE;PF=1;var e=YO(),t=V0();hE=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return hE}var vE,LF;function $K(){if(LF)return vE;LF=1;var e=IK();vE=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return vE}var bE,FF;function P6e(){if(FF)return bE;FF=1;var e=YO(),t=$K();bE=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return bE}var yE,jF;function OK(){if(jF)return yE;jF=1,yE=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(u,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return u});return RegExp(f,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(s),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return yE}var SE,BF;function L6e(){if(BF)return SE;BF=1;var e=OK();SE=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return SE}var wE,zF;function F6e(){if(zF)return wE;zF=1,wE=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return wE}var CE,HF;function j6e(){if(HF)return CE;HF=1,CE=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function o(p,g){return RegExp(p.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),g||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:o(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:o(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:o(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:o(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:o(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:o(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:o(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:o(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:o(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:o(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:o(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:o(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:o(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:o(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:o(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:o(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:o(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:o(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:o(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:o(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:o(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),c=s.phrase.inside,u={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=c.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var f=c.table.inside;f.inline=u.inline,f.link=u.link,f.image=u.image,f.footnote=u.footnote,f.acronym=u.acronym,f.mark=u.mark})(t)}return CE}var xE,UF;function B6e(){if(UF)return xE;UF=1,xE=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(o){return o.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return xE}var EE,VF;function z6e(){if(VF)return EE;VF=1,EE=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return EE}var IE,WF;function H6e(){if(WF)return IE;WF=1;var e=RK(),t=GO();IE=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",o),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var i=a.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0}(r)}return IE}var TE,GF;function U6e(){if(GF)return TE;GF=1;var e=$a();TE=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var o=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return TE}var RE,qF;function V6e(){if(qF)return RE;qF=1;var e=$a();RE=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return RE}var _E,KF;function W6e(){if(KF)return _E;KF=1,_E=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return _E}var $E,YF;function G6e(){if(YF)return $E;YF=1,$E=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return $E}var OE,XF;function q6e(){if(XF)return OE;XF=1,OE=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return OE}var NE,ZF;function K6e(){if(ZF)return NE;ZF=1,NE=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return NE}var kE,QF;function Y6e(){if(QF)return kE;QF=1,kE=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return kE}var AE,JF;function X6e(){if(JF)return AE;JF=1,AE=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return AE}var ME,e5;function Z6e(){if(e5)return ME;e5=1,ME=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return ME}var DE,t5;function Q6e(){if(t5)return DE;t5=1,DE=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return DE}var PE,n5;function J6e(){if(n5)return PE;n5=1,PE=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return PE}var LE,r5;function e8e(){if(r5)return LE;r5=1,LE=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return LE}var FE,a5;function t8e(){if(a5)return FE;a5=1,FE=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return FE}var jE,o5;function n8e(){if(o5)return jE;o5=1,jE=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return jE}var BE,i5;function r8e(){if(i5)return BE;i5=1,BE=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return BE}var zE,s5;function a8e(){if(s5)return zE;s5=1,zE=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,o={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:o}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in n.languages["web-idl"])i!=="class-name"&&(o[i]=n.languages["web-idl"][i]);n.languages.webidl=n.languages["web-idl"]})(t)}return zE}var HE,l5;function o8e(){if(l5)return HE;l5=1,HE=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return HE}var UE,c5;function i8e(){if(c5)return UE;c5=1,UE=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return UE}var VE,u5;function s8e(){if(u5)return VE;u5=1,VE=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return VE}var WE,d5;function l8e(){if(d5)return WE;d5=1,WE=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return WE}var GE,f5;function c8e(){if(f5)return GE;f5=1,GE=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,c){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":c})}var a=n.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",o),r("fsharp",o),r("vbnet",i)})(t)}return GE}var qE,p5;function u8e(){if(p5)return qE;p5=1,qE=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return qE}var KE,g5;function d8e(){if(g5)return KE;g5=1,KE=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(o){return typeof o=="string"?o:typeof o.content=="string"?o.content:o.content.map(r).join("")},a=function(o){for(var i=[],s=0;s0&&i[i.length-1].tagName===r(c.content[0].content[1])&&i.pop():c.content[c.content.length-1].content==="/>"||i.push({tagName:r(c.content[0].content[1]),openedBraces:0}):i.length>0&&c.type==="punctuation"&&c.content==="{"&&(!o[s+1]||o[s+1].type!=="punctuation"||o[s+1].content!=="{")&&(!o[s-1]||o[s-1].type!=="plain-text"||o[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?i[i.length-1].openedBraces--:c.type!=="comment"&&(u=!0)),(u||typeof c=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var d=r(c);s0&&(typeof o[s-1]=="string"||o[s-1].type==="plain-text")&&(d=r(o[s-1])+d,o.splice(s-1,1),s--),/^\s+$/.test(d)?o[s]=d:o[s]=new n.Token("plain-text",d,null,d)}c.content&&typeof c.content!="string"&&a(c.content)}};n.hooks.add("after-tokenize",function(o){o.language==="xquery"&&a(o.tokens)})})(t)}return KE}var YE,m5;function f8e(){if(m5)return YE;m5=1,YE=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return YE}var XE,h5;function p8e(){if(h5)return XE;h5=1,XE=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,o="\\b(?!"+a.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(i)),c=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(o)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+c+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return XE}var ge=wDe,g8e=ge;ge.register(kDe());ge.register(ADe());ge.register(MDe());ge.register(DDe());ge.register(PDe());ge.register(LDe());ge.register(FDe());ge.register(jDe());ge.register(BDe());ge.register(zDe());ge.register(HDe());ge.register(UDe());ge.register(VDe());ge.register(WDe());ge.register(GDe());ge.register(qDe());ge.register(KDe());ge.register(YDe());ge.register(XDe());ge.register(ZDe());ge.register(QDe());ge.register(JDe());ge.register(EK());ge.register(IK());ge.register(ePe());ge.register(tPe());ge.register(nPe());ge.register(rPe());ge.register(aPe());ge.register(oPe());ge.register(iPe());ge.register(sPe());ge.register(lPe());ge.register(cPe());ge.register(xc());ge.register(uPe());ge.register(dPe());ge.register(fPe());ge.register(pPe());ge.register(gPe());ge.register(mPe());ge.register(hPe());ge.register(vPe());ge.register(bPe());ge.register(UO());ge.register(yPe());ge.register(V0());ge.register(SPe());ge.register(wPe());ge.register(CPe());ge.register(xPe());ge.register(EPe());ge.register(IPe());ge.register(TPe());ge.register(RPe());ge.register(_Pe());ge.register($Pe());ge.register(OPe());ge.register(NPe());ge.register(kPe());ge.register(APe());ge.register(MPe());ge.register(DPe());ge.register(PPe());ge.register(LPe());ge.register(FPe());ge.register(jPe());ge.register(BPe());ge.register(zPe());ge.register(HPe());ge.register(UPe());ge.register(VPe());ge.register(WPe());ge.register(GPe());ge.register(qPe());ge.register(KPe());ge.register(YPe());ge.register(XPe());ge.register(ZPe());ge.register(QPe());ge.register(JPe());ge.register(e4e());ge.register(t4e());ge.register(n4e());ge.register(r4e());ge.register(a4e());ge.register(o4e());ge.register(i4e());ge.register(s4e());ge.register(l4e());ge.register(c4e());ge.register(u4e());ge.register(d4e());ge.register(f4e());ge.register(VO());ge.register(p4e());ge.register(g4e());ge.register(m4e());ge.register(h4e());ge.register(v4e());ge.register(b4e());ge.register(y4e());ge.register(S4e());ge.register(w4e());ge.register(C4e());ge.register(x4e());ge.register(E4e());ge.register(I4e());ge.register(T4e());ge.register(R4e());ge.register(_4e());ge.register($4e());ge.register(WO());ge.register(O4e());ge.register(G0());ge.register(N4e());ge.register(k4e());ge.register(A4e());ge.register(M4e());ge.register(D4e());ge.register(P4e());ge.register(L4e());ge.register(qO());ge.register(F4e());ge.register(j4e());ge.register(B4e());ge.register(RK());ge.register(z4e());ge.register(H4e());ge.register(U4e());ge.register(V4e());ge.register(W4e());ge.register(G4e());ge.register(q4e());ge.register(K4e());ge.register(Y4e());ge.register(X4e());ge.register(Z4e());ge.register(Q4e());ge.register(J4e());ge.register(eLe());ge.register(tLe());ge.register(nLe());ge.register(TK());ge.register(rLe());ge.register(aLe());ge.register(oLe());ge.register($a());ge.register(iLe());ge.register(sLe());ge.register(lLe());ge.register(cLe());ge.register(uLe());ge.register(dLe());ge.register(fLe());ge.register(pLe());ge.register(gLe());ge.register(mLe());ge.register(hLe());ge.register(vLe());ge.register(bLe());ge.register(yLe());ge.register(SLe());ge.register(wLe());ge.register(CLe());ge.register(xLe());ge.register(ELe());ge.register(ILe());ge.register(TLe());ge.register(RLe());ge.register(_Le());ge.register($Le());ge.register(OLe());ge.register(NLe());ge.register(kLe());ge.register(ALe());ge.register(MLe());ge.register(DLe());ge.register(PLe());ge.register(LLe());ge.register(q0());ge.register(FLe());ge.register(jLe());ge.register(BLe());ge.register(zLe());ge.register(HLe());ge.register(ULe());ge.register(VLe());ge.register(WLe());ge.register(GLe());ge.register(qLe());ge.register(KLe());ge.register(YLe());ge.register(XLe());ge.register(ZLe());ge.register(QLe());ge.register(JLe());ge.register(e6e());ge.register(t6e());ge.register(n6e());ge.register(r6e());ge.register(a6e());ge.register(o6e());ge.register(i6e());ge.register(s6e());ge.register(l6e());ge.register(c6e());ge.register(u6e());ge.register(d6e());ge.register(f6e());ge.register(p6e());ge.register(W0());ge.register(g6e());ge.register(m6e());ge.register(h6e());ge.register(v6e());ge.register(KO());ge.register(b6e());ge.register(y6e());ge.register(S6e());ge.register(w6e());ge.register(C6e());ge.register(x6e());ge.register(E6e());ge.register(I6e());ge.register(T6e());ge.register(R6e());ge.register(_6e());ge.register($6e());ge.register(HO());ge.register(O6e());ge.register(N6e());ge.register(k6e());ge.register(A6e());ge.register(M6e());ge.register(D6e());ge.register(YO());ge.register(P6e());ge.register(L6e());ge.register(F6e());ge.register(j6e());ge.register(B6e());ge.register(z6e());ge.register(H6e());ge.register(U6e());ge.register(_K());ge.register(V6e());ge.register(GO());ge.register(W6e());ge.register(G6e());ge.register(q6e());ge.register(K6e());ge.register(Y6e());ge.register(X6e());ge.register($K());ge.register(Z6e());ge.register(Q6e());ge.register(J6e());ge.register(e8e());ge.register(t8e());ge.register(n8e());ge.register(r8e());ge.register(a8e());ge.register(o8e());ge.register(i8e());ge.register(s8e());ge.register(l8e());ge.register(c8e());ge.register(u8e());ge.register(d8e());ge.register(OK());ge.register(f8e());ge.register(p8e());const m8e=fa(g8e);var Gs=cke(m8e,NDe);Gs.supportedLanguages=fke;const rc={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},ac={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},{Paragraph:v5,Text:h8e}=Ln,v8e=()=>{const{t:e}=Vt(),[t,n]=l.useState([]),r=l.useRef(null),[a,o]=l.useState(!1),i=p=>{let g="";for(let v=0;v=32&&h<=126?g+=String.fromCharCode(h):g+="."}return g},s=p=>{let g="";for(let h=0;h=m&&(v=v-2*m),v},c={"15-15452":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(v=>[...v,`UnknownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"15-16065":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(v=>[...v,`KnownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15427":p=>{if(p.length===8){const g=s(p);n(v=>[...v,`UpsideState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15426":p=>{if(p.length===8){const g=s(p);n(v=>[...v,`UprightState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)}};l.useEffect(()=>{if(a){const p=new EventSource("/api/sse");return p.onopen=()=>{console.log("Connection established.")},p.addEventListener("keep-alive",g=>{console.log("keep-alive event received:",g)}),p.addEventListener("pressed",g=>{const v=JSON.parse(g.data);n(m=>[...m,"Pressed: "+v.data])}),p.addEventListener("rtnl-raw-log2",g=>{const v=JSON.parse(g.data),m=`${"Raw2 | #"+v.data.sequence+" Uptime: "+v.data.uptime+" Func: "+v.data.function_group.toString().padStart(2," ")+"-"+v.data.function+" Payload: '"+v.data.field6+"' ASCII: '"+i(v.data.field6)+"'"}`;n(y=>[...y,m]);const h=`${v.data.function_group.toString().padStart(2," ")}-${v.data.function}`;c[h]&&c[h](v.data.field6)}),p.addEventListener("rtnl-raw-log3",g=>{const v=JSON.parse(g.data);n(m=>[...m,"Raw3 | Datetime: "+v.data.datetime+" Unknown: "+v.data.field2])}),p.onerror=g=>{console.error("EventSource failed:",g)},()=>{console.log("Connection closed."),p.close()}}else return},[a]),l.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const u=p=>{o(p)},d=()=>{n([])};function f(){const p=window.matchMedia("(prefers-color-scheme: dark)").matches,g=localStorage.getItem("theme");return g==="auto"?p?"dark":"light":g}return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qu,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qu,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("settings.rtnl.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("settings.rtnl.title")}),w.jsxs(v5,{style:{margin:"8px 0"},children:[w.jsxs(v5,{children:[w.jsx(va,{checked:a,onChange:u,style:{marginRight:8}}),w.jsx(h8e,{children:e("settings.rtnl.enableRtnl")})]}),w.jsx(Ca,{children:e("settings.rtnl.title")}),w.jsx("div",{ref:r,style:{minHeight:"max(40vh, 333px)",maxHeight:"max(40vh, 333px)",overflow:"auto",padding:1,background:f()==="dark"?"hsl(220, 13%, 18%)":"hsl(230, 1%, 98%)"},children:w.jsx(Gs,{language:"log",style:f()==="dark"?rc:ac,customStyle:{borderRadius:0,margin:0,border:"none"},children:t.join(` -`)})}),w.jsx(Pt,{onClick:d,style:{marginTop:8},children:e("settings.rtnl.clear")})]})]})]})]})},b5=new En(vn()),NK=({overlay:e})=>{const{t}=Vt(),n=async a=>{const o=new FormData;o.append("file",a);const i={filename:[o.get("file")]},s=async()=>{await b5.apiTriggerWriteConfigGet()};(async u=>{try{await b5.apiUploadCertPost(u,e);try{s()}catch{tt.error("Error while saving config to file.")}tt.success(t("settings.certificates.uploadSuccessful",{filename:a.name}))}catch{tt.error(t("settings.certificates.uploadFailed",{filename:a.name}))}})(i)},r={name:"file",multiple:!0,customRequest:async a=>{const{onSuccess:o,onError:i,file:s}=a;try{await n(s),o("Ok")}catch(c){i(c)}},onChange(a){const{status:o}=a.file;o!=="uploading"&&console.log(a.file,a.fileList)},onDrop(a){console.log("Dropped files",a.dataTransfer.files)}};return w.jsxs(E0.Dragger,{...r,children:[w.jsx("p",{className:"ant-upload-drag-icon",children:w.jsx(FW,{})}),w.jsx("p",{className:"ant-upload-text",children:t("settings.certificates.uploadText")}),w.jsx("p",{className:"ant-upload-hint",children:t("settings.certificates.uploadHint")})]})},b8e=()=>{const{t:e}=Vt(),{Paragraph:t}=Ln;return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qu,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qu,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")},{title:e("settings.certificates.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("settings.certificates.title")}),w.jsx(t,{children:w.jsx(Mr,{message:e("settings.certificates.information"),description:w.jsxs("div",{children:[e("settings.certificates.hint")," ",w.jsx(At,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0})}),w.jsx(t,{children:w.jsx(NK,{})})]})]})]})},qs=()=>{const{t:e}=Vt(),t=[{key:"home",label:w.jsx(At,{to:"/",children:e("home.navigationTitle")}),icon:le.createElement(SSe),title:e("home.navigationTitle")},{key:"features",label:w.jsx(At,{to:"/home/features",children:e("home.features.navigationTitle")}),icon:le.createElement(yye),title:e("home.features.navigationTitle")},{key:"statistics",label:w.jsx(At,{to:"/home/stats",children:e("home.stats.navigationTitle")}),icon:le.createElement(FT),title:e("home.stats.navigationTitle")},{key:"hiddenMeeting",label:w.jsx(At,{to:"/home/tonieMeeting"})}];return w.jsx(Tg,{mode:"inline",defaultOpenKeys:["sub"],items:t})};function df(e,t=!0,n=1){if(!e||e<0)return"NaN";const r=t?1e3:1024;if(Math.abs(e)=r&&o{const{t:u}=Vt();return w.jsxs(_n,{title:w.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[w.jsx(VW,{style:{fontSize:36,color:"orange",margin:16}}),w.jsx("div",{style:{marginBottom:16},children:e})]}),open:i,onOk:s,onCancel:c,okText:t,cancelText:n,className:"warning",children:[w.jsx("div",{style:{marginBottom:24},children:r}),a&&w.jsx("div",{children:w.jsx(Mr,{type:"warning",showIcon:!0,message:o||u("confirmDialog.contentHintTitle"),description:a})})]})},{useToken:y8e}=hi,kK=({open:e,initialValuesJson:t,onCreate:n,onCancel:r})=>{const{t:a}=Vt(),{token:o}=y8e(),[i]=Zt.useForm(),[s,c]=l.useState([]),[u,d]=l.useState(!1),[f,p]=l.useState(0),[g,v]=l.useState(-1);l.useEffect(()=>{c([])},[]),l.useEffect(()=>{if(t)try{const N=JSON.parse(t);i.setFieldsValue(N)}catch(N){console.error("Error parsing JSON:",N)}},[i,t]);const m=()=>{i.resetFields()},h=N=>{i.setFieldsValue({filepath:N.target.value})},y=(N,M,L)=>{if(N&&N.length>0){const F=L==="library"?"lib:/":"content:/",j=N.map(B=>({filepath:F+M+"/"+B.name,name:B.name}));c(j)}},b=()=>{p(N=>N+1),d(!0)},S=N=>{p(M=>M+1),d(!0),v(N),c([i.getFieldValue(["files",N])])},C=()=>{const N=i.getFieldsValue();let M=[...N.files];g!==-1?M[g]={filepath:s[0].filepath,name:s[0].name}:M=[...N.files,...s];const L={...N,files:M};i.setFieldsValue(L),d(!1),c([]),v(-1)},x=()=>{d(!1),c([])},[E,I]=l.useState(""),[R,T]=l.useState(""),[_,$]=l.useState(!1),D=w.jsx(Pt,{type:"primary",onClick:()=>$(!1),children:a("tonies.informationModal.ok")}),P=()=>{$(!1)};function A(){const N=window.matchMedia("(prefers-color-scheme: dark)").matches,M=localStorage.getItem("theme");return M==="auto"?N?"dark":"light":M}const O=w.jsx(_n,{footer:D,width:700,title:"File (you can copy the content to a *.tap file)",open:_,onCancel:P,children:E?w.jsxs(w.Fragment,{children:[w.jsx(Gs,{language:"json",style:A()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:E}),w.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),w.jsx(Gs,{language:"json",style:A()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:R})]}):"Loading..."}),k=w.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:o.colorBgElevated},children:[w.jsx(Pt,{onClick:x,children:a("tonies.selectFileModal.cancel")}),w.jsx(Pt,{type:"primary",onClick:C,children:a("tonies.selectFileModal.ok")})]});return w.jsxs(w.Fragment,{children:[w.jsxs(_n,{open:e,title:a(t?"tonies.tapEditor.titleEdit":"tonies.tapEditor.titleCreate"),okText:a(t?"tonies.tapEditor.save":"tonies.tapEditor.create"),cancelText:a("tonies.tapEditor.cancel"),onCancel:()=>{r(),m()},onOk:()=>{i.validateFields().then(()=>{n(i.getFieldsValue()),I(JSON.stringify(i.getFieldsValue(),null,2)),T(JSON.stringify(i.getFieldsValue(),null,0)),$(!0),m()}).catch(N=>{console.log("Validate Failed:",N)})},children:[w.jsx(Mr,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json is displayed when saving the new tap. This is not automatically saved to your library. You have to create a *.tap file manually and copy this into the file yourself.",style:{marginBottom:8}}),w.jsxs(Zt,{form:i,layout:"vertical",name:"tapEditorModal",initialValues:{type:"tap",filepath:"",name:"",files:[]},children:[w.jsx(Zt.Item,{name:"type",hidden:!0,label:"type",children:w.jsx(en,{type:"string"})}),w.jsx(Zt.Item,{name:"audio_id",label:"Audio ID",children:w.jsx(en,{type:"number"})}),w.jsx(Zt.Item,{name:"filepath",label:a("tonies.tapEditor.filePath"),children:w.jsx(en,{onChange:h})}),w.jsx(Zt.Item,{name:"name",label:a("tonies.tapEditor.name"),rules:[{required:!0,message:a("tonies.tapEditor.nameRequired")}],children:w.jsx(en,{})}),w.jsx(Zt.List,{name:"files",children:(N,{add:M,remove:L})=>w.jsxs(w.Fragment,{children:[N.map(({key:F,name:j},B)=>w.jsx("div",{className:"playlistTitle",children:w.jsxs(Mo,{style:{display:"flex",marginBottom:8,alignItems:"center",width:"100%"},align:"baseline",children:[w.jsx(Zt.Item,{name:[j,"filepath"],label:a("tonies.tapEditor.filePathContentFile"),rules:[{required:!0,message:a("tonies.tapEditor.filePathContentFileRequired")}],children:w.jsx(en,{width:"auto",addonBefore:w.jsx(da,{onClick:()=>{const z=[...i.getFieldsValue().files];z[B].filepath="",i.setFieldsValue({files:z})}}),addonAfter:w.jsx(W$,{onClick:()=>S(B)})})}),w.jsx(Zt.Item,{name:[j,"name"],label:a("tonies.tapEditor.fileNameContentFile"),children:w.jsx(en,{placeholder:"Name"})}),w.jsx(HSe,{onClick:()=>L(j)})]},`space-${F}`)},`files-${F}`)),w.jsx(Zt.Item,{children:w.jsx(Pt,{type:"dashed",onClick:()=>b(),block:!0,icon:w.jsx(wV,{}),children:a("tonies.tapEditor.addFile")})})]})})]}),w.jsx(_n,{className:"sticky-footer",title:a("tonies.selectFileModal.selectFile"),open:u,onOk:C,onCancel:x,width:"auto",footer:k,children:w.jsx(kg,{maxSelectedRows:99,special:"library",trackUrl:!1,selectTafOrTapOnly:!1,onFileSelectChange:y},f)})]}),O]})},S8e=new En(vn()),{Text:w8e}=Ln,AK=({open:e,onClose:t,tonieCardOrTAFRecord:n,readOnly:r,lastRUIDs:a,overlay:o,onHide:i})=>{const{t:s}=Vt(),[c,u]=l.useState(!1),[d,f]=l.useState(!1),[p,g]=l.useState(""),[v,m]=l.useState([]);l.useEffect(()=>{"sourceInfo"in n&&(n.sourceInfo.picture!==n.tonieInfo.picture&&b!==S||n.sourceInfo.picture===n.tonieInfo.picture&&b!==S||n.sourceInfo.series!==n.tonieInfo.series||n.sourceInfo.episode!==n.tonieInfo.episode||n.sourceInfo.tracks.join(".")!==n.tonieInfo.tracks.join("."))&&(f(!0),g(n.sourceInfo.picture),m(n.sourceInfo.tracks))},[n,e]);const h=a&&"ruid"in n?a.filter(([P])=>P===n.ruid).map(([,P,A])=>({ruidTime:P,boxName:A})):null,y=n.tonieInfo.series+(n!=null&&n.tonieInfo.episode?" - "+n.tonieInfo.episode:"")+(n.tonieInfo.model?" ("+n.tonieInfo.model+")":""),b=`${n.tonieInfo.series}`+(n.tonieInfo.episode?` - ${n.tonieInfo.episode}`:""),S="sourceInfo"in n?`${n.sourceInfo.series}`+(n.sourceInfo.episode?` - ${n.sourceInfo.episode}`:""):"",C=d?S:b,x=()=>{u(!0)},E=()=>{R(),u(!1)},I=()=>{u(!1)},R=async()=>{if(i&&"ruid"in n&&n.ruid)try{await S8e.apiPostTeddyCloudContentJson(n.ruid,"hide=true",o),tt.success(s("tonies.messages.hideTonieSuccessful")),i(n.ruid)}catch(P){tt.error(s("tonies.messages.hideTonieFailed")+P)}},T=w.jsx(Dp,{title:s("tonies.confirmHideModal.title"),open:c,okText:s("tonies.confirmHideModal.hide"),cancelText:s("tonies.confirmHideModal.cancel"),content:s("tonies.confirmHideModal.confirmHideDialog",{tonieToHide:y||("uid"in n?n.uid:"")}),handleOk:E,handleCancel:I}),_=w.jsx(w.Fragment,{children:w.jsxs("h3",{children:[C||s("tonies.informationModal.unknownModel"),w.jsx("br",{}),"uid"in n&&n.uid?w.jsx(w8e,{type:"secondary",children:n.uid}):""]})}),$=w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[w.jsx("div",{children:"ruid"in n&&n.ruid?r?"":w.jsx(Pt,{onClick:x,children:s("tonies.informationModal.hideTag")}):""}),w.jsx(Pt,{type:"primary",onClick:t,children:s("tonies.informationModal.ok")})]});return w.jsxs(w.Fragment,{children:[w.jsxs(_n,{title:_,footer:$,open:e,keyboard:!0,closable:!1,maskClosable:!0,onCancel:t,children:[w.jsxs("div",{style:{position:"relative"},children:[w.jsx("img",{src:n.tonieInfo.picture?n.tonieInfo.picture:"/img_unknown.png",alt:"",style:{width:"100%"}}),d?w.jsx(tn,{title:`${S}`?s("tonies.alternativeSource",{originalTonie:'"'+b+'"',assignedContent:'"'+S+'"'}).replace(' "" '," "):s("tonies.alternativeSourceUnknown",{originalTonie:'"'+b+'"'}).replace(' "" '," "),placement:"bottom",children:w.jsx("img",{src:p,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),h&&h.length>0?w.jsxs(w.Fragment,{children:[w.jsxs("strong",{children:[s("tonies.lastPlayedOnModal.lastPlayedOnMessage"),":"]}),w.jsx("ul",{children:h.map(({ruidTime:P,boxName:A},O)=>w.jsxs("li",{children:[A,P?" ("+P+")":""]},O))})]}):w.jsx(w.Fragment,{}),w.jsxs("div",{children:["valid"in n?w.jsxs("p",{children:[w.jsx("strong",{children:s("tonies.infoModal.valid")})," ",n.valid?s("tonies.infoModal.yes"):s("tonies.infoModal.no")]}):"","exists"in n?w.jsxs("p",{children:[w.jsx("strong",{children:s("tonies.infoModal.exists")})," ",n.exists?s("tonies.infoModal.yes"):s("tonies.infoModal.no")]}):"",d?v&&v.length>0?w.jsxs(w.Fragment,{children:[w.jsx("strong",{children:s("tonies.infoModal.tracklist")}),w.jsx("ol",{children:v.map((P,A)=>w.jsx("li",{children:P},A))})]}):w.jsx(w.Fragment,{}):n.tonieInfo.tracks&&n.tonieInfo.tracks.length>0?w.jsxs(w.Fragment,{children:[w.jsx("strong",{children:s("tonies.infoModal.tracklist")}),w.jsx("ol",{children:n.tonieInfo.tracks.map((P,A)=>w.jsx("li",{children:P},A))})]}):w.jsx(w.Fragment,{})]})]}),T]})},ss=new En(vn()),{useToken:C8e}=hi,Ei={id:"1",pId:"-1",value:"1",title:"/",fullPath:"/"},kg=({special:e,filetypeFilter:t=[],isTapList:n=!1,overlay:r="",maxSelectedRows:a=0,selectTafOrTapOnly:o=!0,trackUrl:i=!0,showDirOnly:s=!1,showColumns:c=void 0,onFileSelectChange:u})=>{const{t:d}=Vt(),{playAudio:f}=dO(),{token:p}=C8e(),g=ol(),v=HG(),m=l.useRef(null),h=l.useRef(null),y=l.useRef(null),[b,S]=tt.useMessage(),[C,x]=l.useState([]),[E,I]=l.useState(""),[R,T]=l.useState(!1),[_,$]=l.useState(""),[D,P]=l.useState([]),[A,O]=l.useState(""),[k,N]=l.useState(!1),[M,L]=l.useState(!1),[F,j]=l.useState(0),[B,z]=l.useState(),[H,U]=l.useState(!1),[X,W]=l.useState(!1),[Y,te]=l.useState(E),[ee,Z]=l.useState(""),[oe,re]=l.useState(!1),[q,Q]=l.useState(),[ae,se]=l.useState(""),[de,he]=l.useState(!1),[ye,pe]=l.useState(!1),[J,ce]=l.useState(!1),[ue,fe]=l.useState(null),[be,Te]=l.useState(""),[_e,Pe]=l.useState(""),[Ee,Fe]=l.useState(Ei.id),[De,Ae]=l.useState([Ei]),[we,$e]=l.useState(!1),[Ce,Re]=l.useState(!1),[me,Ie]=l.useState(_);l.useEffect(()=>{(async()=>{const xe=dt(Ei.id);ss.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${xe}&special=library`).then(ze=>ze.json()).then(ze=>{var gt=ze.files;gt=gt.filter(yt=>yt.isDir&&yt.name!=="..").sort((yt,Gt)=>yt.name===Gt.name?0:yt.name.toLowerCase()>Gt.name.toLowerCase()?1:-1).map(yt=>({id:Ei.id+"."+gt.indexOf(yt),pId:Ei.id,value:Ei.id+"."+gt.indexOf(yt),title:yt.name,fullPath:`${xe}/${yt.name}/`})),Ae(De.concat(gt))})})()},[]),l.useEffect(()=>{const xe=new URLSearchParams(g.search).get("path")||"";I(xe)},[g]),l.useEffect(()=>{if(r){const Se=new URLSearchParams(g.search);Se.set("path",""),I("");const xe=`${window.location.pathname}?${Se.toString()}`;window.history.replaceState(null,"",xe),T(ze=>!ze)}},[r]),l.useEffect(()=>{ss.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${E}&special=${e}`+(r?`&overlay=${r}`:"")).then(Se=>Se.json()).then(Se=>{var xe=Se.files;s&&(xe=xe.filter(ze=>ze.isDir)),t.length>0&&(xe=xe.filter(ze=>ze.isDir||t.some(gt=>ze.name.endsWith(gt)))),x(xe)})},[E,e,s,R]),l.useEffect(()=>{X&&setTimeout(()=>{m.current&&m.current.focus()},0)},[X]),l.useEffect(()=>{y.current!==null&&h.current&&h.current.setSelectionRange(y.current,y.current)},[ae]),l.useEffect(()=>{te(E)},[E]),l.useEffect(()=>{Ie(_)},[_]);function je(){const Se=window.matchMedia("(prefers-color-scheme: dark)").matches,xe=localStorage.getItem("theme");return xe==="auto"?Se?"dark":"light":xe}const ke=async Se=>{try{const ze=await(await ss.apiGetTeddyCloudApiRaw(Se)).json();O(ze)}catch(xe){console.error("Error fetching JSON data:",xe)}},Ne=Se=>{ke((e==="library"?"/library":"/content")+Se),he(!1),$(Se),N(!0)},Be=()=>{N(!1)},Ve=w.jsx(Pt,{type:"primary",onClick:()=>N(!1),children:d("tonies.informationModal.ok")}),Le=w.jsx(_n,{className:"json-viewer",footer:Ve,width:700,title:"File: "+_,open:k,onCancel:Be,children:A?w.jsx(Gs,{language:"json",style:je()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(A,null,2)}):"Loading..."}),We=(Se,xe)=>{const ze=xe,{tracks:gt,...yt}=ze;he(!1),z(yt),$(Se),U(!0)},Je=()=>{U(!1)},Ke=w.jsx(_n,{className:"taf-header-viewer",footer:w.jsx(Pt,{type:"primary",onClick:()=>U(!1),children:d("tonies.informationModal.ok")}),title:d("tonies.tafHeaderOf")+_,open:H,onCancel:Je,children:B?w.jsx(Gs,{language:"json",style:je()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(B,null,2)}):"Loading..."}),ut=({id:Se})=>new Promise((xe,ze)=>{const gt=dt(Se);ss.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${gt}&special=library`).then(yt=>yt.json()).then(yt=>{let Gt=yt.files;Gt=Gt.filter(Ct=>Ct.isDir&&Ct.name!=="..").sort((Ct,$t)=>Ct.name===$t.name?0:Ct.name.toLowerCase()>$t.name.toLowerCase()?1:-1).map(Ct=>({id:Se+"."+Gt.indexOf(Ct),pId:Se,value:Se+"."+Gt.indexOf(Ct),title:Ct.name,fullPath:`${gt}/${Ct.name}/`})),Ae(De.concat(Gt)),xe(!0)}).then(()=>{ze()})}),dt=Se=>{const xe=De.filter(ze=>ze.value===Se)[0];return xe.pId==="-1"?"":dt(De.filter(ze=>ze.id===xe.pId)[0].id)+"/"+xe.title},He=(Se,xe)=>{for(const ze of xe)if(ze.fullPath===Se)return ze.id;return null},Ye=Se=>{console.log("Received values of form: ",Se),L(!1)},Ge=Se=>{Se.includes(".tap")&&(ke((e==="library"?"/library":"/content")+Se),he(!1),$(Se),j(ze=>ze+1),L(!0))},rt=async(Se,xe,ze)=>{const gt="source="+encodeURIComponent(Se)+"&target="+encodeURIComponent(xe),yt=tt.loading(d(ze?"fileBrowser.messages.moving":"fileBrowser.messages.renaming"),0);try{const Gt=`/api/fileMove${"?special="+e+(r?`&overlay=${r}`:"")}`,$t=await(await ss.apiPostTeddyCloudRaw(Gt,gt)).text();if(yt(),$t==="OK")tt.success(ze?d("fileBrowser.messages.movingSuccessful",{file:Se}):d("fileBrowser.messages.renamingSuccessful"));else throw tt.error(`${ze?d("fileBrowser.messages.movingFailed",{file:Se}):d("fileBrowser.messages.renamingFailed")}: ${$t}`),$t}catch(Gt){throw yt(),tt.error(`${ze?d("fileBrowser.messages.movingFailed",{file:Se}):d("fileBrowser.messages.renamingFailed")}: ${Gt}`),Gt}},Tt=Se=>{$(Se),$e(!0)},Rt=()=>{$e(!1),Fe(Ei.id)},jt=async(Se,xe)=>{try{await rt(Se+"/"+_,xe+"/"+_,!0),T(ze=>!ze),$e(!1),Fe(Ei.id)}catch{}},ft=async(Se,xe)=>{if(D.length>0){for(const ze of D){const gt=C.find(yt=>yt.name===ze);gt&&!gt.isDir&&await rt(Se+"/"+gt.name,xe+"/"+gt.name,!0)}T(ze=>!ze),$e(!1),P([]),Fe(Ei.id)}else tt.warning("No rows selected for moving.")},st=!Ee||dt(Ee)===E,Ze=w.jsxs(_n,{title:d(_?"fileBrowser.moveFile.modalTitle":"fileBrowser.moveFile.modalTitleMultiple"),open:we,onCancel:Rt,onOk:()=>_?jt(E,dt(Ee)):ft(E,dt(Ee)),okText:d("fileBrowser.moveFile.move"),cancelText:d("fileBrowser.moveFile.cancel"),okButtonProps:{disabled:st},children:[w.jsx(Mr,{message:d("fileBrowser.attention"),description:d("fileBrowser.moveFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),w.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[w.jsx(en,{type:"text",style:{borderTopRightRadius:_?0:"unset",borderBottomRightRadius:_?0:"unset"},disabled:!0,value:E+"/"+(_||""),placeholder:E+"/"+(_||"")}),w.jsx("div",{children:d("fileBrowser.moveFile.moveTo")}),w.jsxs("div",{style:{display:"flex"},children:[w.jsx(al,{className:"move-file",treeLine:!0,treeDataSimpleMode:!0,value:Ee,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:Fe,loadData:ut,treeData:De,treeNodeLabelProp:"fullPath",placeholder:d("fileBrowser.moveFile.destinationPlaceholder")}),w.jsx(tn,{title:d("fileBrowser.createDirectory.createDirectory"),children:w.jsx(Pt,{icon:w.jsx(LW,{}),onClick:()=>{te(dt(Ee)),W(!0)},style:{borderTopLeftRadius:0,borderBottomLeftRadius:0}})})]})]})]}),lt=Se=>{$(Se),Re(!0)},It=async(Se,xe)=>{try{await rt(Se+"/"+_,Se+"/"+xe,!1),Ie(""),T(ze=>!ze),Re(!1)}catch{}},at=()=>{Re(!1)},vt=Se=>{Ie(Se.target.value)},bt=!me||me===_,Qe=w.jsxs(_n,{title:d("fileBrowser.renameFile.modalTitle"),open:Ce,onCancel:at,onOk:()=>It(E,me),okText:d("fileBrowser.renameFile.rename"),cancelText:d("fileBrowser.renameFile.cancel"),okButtonProps:{disabled:bt},children:[w.jsx(Mr,{message:d("fileBrowser.attention"),description:d("fileBrowser.renameFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),w.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:w.jsx(en,{type:"text",value:me,onChange:vt,placeholder:_})})]}),ot=(Se,xe,ze)=>{he(!1),fe(Se),Te(xe),Pe(ze),pe(!0)},Xe=()=>{_t(be,_e),T(Se=>!Se),pe(!1)},qe=()=>{pe(!1),ce(!1)},pt=()=>{ce(!0)},Et=async()=>{if(D.length>0){for(const Se of D){const xe=C.find(ze=>ze.name===Se);if(xe){const ze=E+"/"+xe.name,gt="?special="+e+(r?`&overlay=${r}`:"");await _t(ze,gt)}}T(Se=>!Se),ce(!1),P([])}else tt.warning("No rows selected for deletion.")},_t=async(Se,xe)=>{const ze=tt.loading(d("fileBrowser.messages.deleting"),0);try{const gt=`/api/fileDelete${xe}`,Gt=await(await ss.apiPostTeddyCloudRaw(gt,Se)).text();if(ze(),Gt==="OK"){tt.success(d("fileBrowser.messages.deleteSuccessful",{file:Se}));const Ct=He(Se+"/",De);Ct&&Ae($t=>$t.filter(et=>et.id!==Ct)),Y===Se+"/"&&te(E)}else tt.error(`${d("fileBrowser.messages.deleteFailed",{file:Se})}: ${Gt}`)}catch(gt){ze(),tt.error(`${d("fileBrowser.messages.deleteFailed",{file:Se})}: ${gt}`)}},Xt=()=>{he(!1),W(!0)},Jt=Se=>{Z(Se.target.value)},Yt=()=>{try{ss.apiPostTeddyCloudRaw("/api/dirCreate?special=library",Y+"/"+ee).then(Se=>Se.text()).then(Se=>{if(Se!=="OK")throw new Error(Se);const xe=`${Ee}.${De.length}`,ze={id:xe,pId:Ee,value:xe,title:ee,fullPath:Y+"/"+ee+"/"};Ae([...De,ze].sort((gt,yt)=>gt.title===yt.title?0:gt.title.toLowerCase()>yt.title.toLowerCase()?1:-1)),we&&Fe(xe),tt.success(d("fileBrowser.createDirectory.directoryCreated")),W(!1),T(gt=>!gt),Z("")}).catch(Se=>{tt.error(Se.message)})}catch{tt.error("Error while creating directory")}},rn=()=>{he(!1),W(!1),Z("")},St=!ee,wt=w.jsxs(_n,{title:d("fileBrowser.createDirectory.modalTitle"),open:X,onCancel:rn,onOk:Yt,okText:d("fileBrowser.createDirectory.create"),cancelText:d("fileBrowser.createDirectory.cancel"),zIndex:1050,okButtonProps:{disabled:St},children:[w.jsxs(Ln,{style:{marginBottom:8},children:[d("fileBrowser.createDirectory.parentPath")+" "+Y+"/"," "]}),w.jsx(en,{ref:m,placeholder:d("fileBrowser.createDirectory.placeholder"),value:ee,onChange:Jt})]}),Nt=Se=>{var xe;!Se.isDir&&((xe=Se.tonieInfo)!=null&&xe.tracks)&&(Q(Se),re(!0))},hn=Se=>{i&&v(`?path=${Se}`),E===Se&&T(xe=>!xe),he(!1),I(Se)},Fn=(Se,xe)=>{const ze=Se.split("/").filter(yt=>yt),gt=[{title:w.jsx("span",{style:{cursor:"pointer"},onClick:()=>xe(""),children:d("fileBrowser.root")}),key:"/"}];return ze.forEach((yt,Gt)=>{const Ct=`/${ze.slice(0,Gt+1).join("/")}`;gt.push({title:w.jsx("span",{style:{cursor:"pointer"},onClick:()=>xe(Ct),children:yt}),key:Ct})}),w.jsx(mg,{items:gt})},rr=(Se,xe,ze)=>{try{b.open({type:"loading",content:d("fileBrowser.messages.migrationOngoing"),duration:0});const gt=`ruid=${Se}&libroot=${xe}`;ss.apiPostTeddyCloudRaw("/api/migrateContent2Lib",gt,ze).then(yt=>yt.text()).then(yt=>{b.destroy(),yt==="OK"?(b.open({type:"success",content:d("fileBrowser.messages.migrationSuccessful")}),T(Gt=>!Gt)):b.open({type:"error",content:d("fileBrowser.messages.migrationFailed")+": "+yt})}).catch(yt=>{b.destroy(),b.open({type:"error",content:d("fileBrowser.messages.migrationFailed")+": "+yt})})}catch(gt){b.destroy(),b.open({type:"error",content:d("fileBrowser.messages.migrationFailed")+": "+gt})}},fr=Se=>{se(Se.target.value),y.current=Se.target.selectionStart,he(!0)},jr=()=>{se(""),y.current=0},yr=()=>{he(!0)},Wn=Se=>D.includes(Se.key)?"highlight-row":"",Wt=Se=>{if(a>0){if(o){const ze=Se.length;Se=Se.filter(gt=>{const yt=C.find(Gt=>Gt.name===gt);return yt&&yt.tafHeader!==void 0||yt&&yt.name.toLowerCase().endsWith(".tap")}),ze!==Se.length&&tt.warning(d("fileBrowser.selectTafOrTapOnly"))}Se.length>a?tt.warning(d("fileBrowser.maxSelectedRows",{maxSelectedRows:a})):P(Se)}else P(Se);const xe=(C==null?void 0:C.filter(ze=>Se.includes(ze.name)))||[];u!==void 0&&u(xe,E,e)},Lt=Se=>{const xe=Se===".."?E.split("/").slice(0,-1).join("/"):`${E}/${Se}`;i&&v(`?path=${xe}`),he(!1),P([]),I(xe)},Ht=(Se,xe)=>xe.reduce((ze,gt)=>{if(ze&&ze[gt]!==void 0)return ze[gt]},Se),Dt=(Se,xe,ze)=>{const gt=Array.isArray(ze)?Ht(Se,ze):Se[ze],yt=Array.isArray(ze)?Ht(xe,ze):xe[ze];return gt===void 0&&yt===void 0?0:gt===void 0?1:yt===void 0?-1:typeof gt=="string"&&typeof yt=="string"?gt.localeCompare(yt):typeof gt=="number"&&typeof yt=="number"?gt-yt:(console.log("Unsupported types for sorting:",Se,xe),console.log("Unsupported types for sorting field:",ze,gt,yt),0)},Ft=(Se,xe)=>Se.isDir===xe.isDir?Dt(Se,xe,"name"):Se.isDir?-1:1;var mt=[{title:a===0&&D.length>0?w.jsxs("div",{style:{display:"flex",gap:8},children:[w.jsx(tn,{title:d("fileBrowser.moveMultiple"),children:w.jsx(Pt,{icon:w.jsx(pD,{}),onClick:()=>Tt(""),disabled:D.length===0})},"moveMultiple"),w.jsx(tn,{title:d("fileBrowser.deleteMultiple"),children:w.jsx(Pt,{icon:w.jsx(Tp,{}),onClick:pt,disabled:D.length===0})},"deleteMultiple")]}):"",dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(Se,xe)=>{var ze,gt;return xe&&((ze=xe.tonieInfo)!=null&&ze.picture)?w.jsx("img",{src:xe.tonieInfo.picture,alt:d("tonies.content.toniePicture"),onClick:()=>Nt(xe),style:{width:100,cursor:!xe.isDir&&((gt=xe==null?void 0:xe.tonieInfo)!=null&>.tracks)?"help":"default"}},`picture-${xe.name}`):w.jsx(w.Fragment,{})},showOnDirOnly:!1},{title:d("fileBrowser.name"),dataIndex:"name",key:"name",sorter:Ft,defaultSortOrder:"ascend",render:(Se,xe)=>{var ze,gt,yt,Gt,Ct;return xe&&w.jsxs("div",{children:[w.jsxs("div",{className:"showSmallDevicesOnly",children:[w.jsxs("div",{children:[w.jsxs("div",{style:{wordBreak:xe.isDir?"normal":"break-word"},children:[xe.isDir?"["+xe.name+"]":xe.name," "]}),!xe.isDir&&xe.size?"("+df(xe.size)+")":""]}),w.jsx("div",{children:(ze=xe.tonieInfo)==null?void 0:ze.model}),w.jsx("div",{style:{wordBreak:xe.isDir?"normal":"break-word"},children:((gt=xe.tonieInfo)!=null&>.series?(yt=xe.tonieInfo)==null?void 0:yt.series:"")+((Gt=xe.tonieInfo)!=null&&Gt.episode?" - "+((Ct=xe.tonieInfo)==null?void 0:Ct.episode):"")}),w.jsx("div",{children:!xe.isDir&&new Date(xe.date*1e3).toLocaleString()})]}),w.jsxs("div",{className:"showMediumDevicesOnly",children:[w.jsxs("div",{children:[w.jsxs("div",{style:{wordBreak:xe.isDir?"normal":"break-word"},children:[xe.isDir?"["+xe.name+"]":xe.name," "]}),!xe.isDir&&xe.size?"("+df(xe.size)+")":""]}),w.jsx("div",{children:!xe.isDir&&new Date(xe.date*1e3).toLocaleString()})]}),w.jsx("div",{className:"showBigDevicesOnly",children:xe.isDir?"["+xe.name+"]":xe.name})]},`name-${xe.name}`)},filteredValue:[ae],onFilter:(Se,xe)=>{var gt,yt,Gt,Ct;const ze=Se.toLowerCase();return xe.name===".."||xe.name.toLowerCase().includes(ze)||!xe.isDir&&"tafHeader"in xe&&xe.tafHeader.size&&df(xe.tafHeader.size).toString().includes(ze)||"tafHeader"in xe&&((gt=xe.tafHeader.audioId)==null?void 0:gt.toString().includes(ze))||"tonieInfo"in xe&&((yt=xe.tonieInfo)==null?void 0:yt.model.toLowerCase().includes(ze))||"tonieInfo"in xe&&((Gt=xe.tonieInfo)==null?void 0:Gt.series.toLowerCase().includes(ze))||"tonieInfo"in xe&&((Ct=xe.tonieInfo)==null?void 0:Ct.episode.toLowerCase().includes(ze))},showOnDirOnly:!0},{title:d("fileBrowser.size"),dataIndex:"size",key:"size",render:(Se,xe)=>w.jsx("div",{children:xe.isDir?"":df(Se)},`size-${xe.name}`),showOnDirOnly:!1,responsive:["xl"]},{title:d("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(Se,xe)=>{var ze;return w.jsx("div",{children:(ze=xe.tonieInfo)==null?void 0:ze.model},`model-${xe.name}`)}},{title:w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"showMediumDevicesOnly",children:[d("fileBrowser.model"),"/",d("fileBrowser.series"),"/",d("fileBrowser.episode")]}),w.jsx("div",{className:"showBigDevicesOnly",children:d("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(Se,xe)=>{var ze,gt,yt,Gt,Ct,$t,et;return w.jsxs("div",{children:[w.jsxs("div",{className:"showMediumDevicesOnly",children:[w.jsx("div",{children:(ze=xe.tonieInfo)==null?void 0:ze.model}),w.jsx("div",{style:{wordBreak:"break-word"},children:((gt=xe.tonieInfo)!=null&>.series?(yt=xe.tonieInfo)==null?void 0:yt.series:"")+((Gt=xe.tonieInfo)!=null&&Gt.episode?" - "+((Ct=xe.tonieInfo)==null?void 0:Ct.episode):"")})]}),w.jsx("div",{className:"showBigDevicesOnly",children:($t=xe.tonieInfo)!=null&&$t.series?(et=xe.tonieInfo)==null?void 0:et.series:""})]},`series-${xe.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:d("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(Se,xe)=>{var ze;return w.jsx("div",{children:(ze=xe.tonieInfo)==null?void 0:ze.episode},`episode-${xe.name}`)}},{title:d("fileBrowser.date"),dataIndex:"date",key:"date",render:(Se,xe)=>w.jsx("div",{children:new Date(Se*1e3).toLocaleString()},`date-${xe.name}`),showOnDirOnly:!0,responsive:["xl"]},{title:w.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:d("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(Se,xe)=>{let ze=[];return xe.tafHeader&&(e!=="library"&&(ze.push(w.jsx(tn,{title:d("fileBrowser.migrateContentToLib"),children:w.jsx(oye,{onClick:()=>rr(E.replace("/","")+xe.name,!1,r),style:{margin:"0 8px 0 0"}})},`action-migrate-${xe.name}`)),ze.push(w.jsx(tn,{title:d("fileBrowser.migrateContentToLibRoot"),children:w.jsx(W1e,{onClick:()=>rr(E.replace("/","")+xe.name,!0,r),style:{margin:"0 8px 0 0"}})},`action-migrate-root-${xe.name}`))),ze.push(w.jsx(tn,{title:d("fileBrowser.playFile"),children:w.jsx(_l,{style:{margin:"0 8px 0 0"},onClick:()=>f("/content"+E+"/"+xe.name+"?ogg=true&special="+e+(r?`&overlay=${r}`:""),xe.tonieInfo)})},`action-play-${xe.name}`))),n&&xe.name.includes(".tap")&&(ze.push(w.jsx(tn,{title:d("fileBrowser.tap.edit"),children:w.jsx(v0,{style:{margin:"0 8px 0 0"},onClick:()=>Ge(E+"/"+xe.name)})},`action-edit-${xe.name}`)),ze.push(w.jsx(tn,{title:d("fileBrowser.tap.copy"),children:w.jsx(DW,{style:{margin:"0 8px 0 0"}})},`action-copy-${xe.name}`))),!xe.isDir&&xe.name!==".."&&a===0&&ze.push(w.jsx(tn,{title:d("fileBrowser.rename"),children:w.jsx(lSe,{onClick:()=>lt(xe.name),style:{margin:"0 8px 0 0"}})},`action-rename-${xe.name}`)),!xe.isDir&&xe.name!==".."&&a===0&&ze.push(w.jsx(tn,{title:d("fileBrowser.move"),children:w.jsx(pD,{onClick:()=>Tt(xe.name),style:{margin:"0 8px 0 0"}})},`action-move-${xe.name}`)),xe.name!==".."&&a===0&&ze.push(w.jsx(tn,{title:d("fileBrowser.delete"),children:w.jsx(Tp,{onClick:()=>ot(xe.name,E+"/"+xe.name,"?special="+e+(r?`&overlay=${r}`:"")),style:{margin:"0 8px 0 0"}})},`action-delete-${xe.name}`)),ze},showOnDirOnly:!1}];return mt.forEach(Se=>{Se.hasOwnProperty("sorter")||(Se.sorter=(xe,ze)=>Dt(xe,ze,Se.dataIndex))}),s&&(mt=mt.filter(Se=>Se.showOnDirOnly)),c&&(mt=mt.filter(Se=>typeof Se.key=="string"?c.includes(Se.key):!1)),w.jsxs(w.Fragment,{children:[S,w.jsx(Dp,{title:d("fileBrowser.confirmDeleteModal"),open:ye,okText:d("fileBrowser.delete"),cancelText:d("fileBrowser.cancel"),content:d("fileBrowser.confirmDeleteDialog",{fileToDelete:ue}),handleOk:Xe,handleCancel:qe}),w.jsx(Dp,{title:d("fileBrowser.confirmDeleteModal"),open:J,okText:d("fileBrowser.delete"),cancelText:d("fileBrowser.cancel"),content:d("fileBrowser.confirmMultipleDeleteDialog"),handleOk:Et,handleCancel:qe}),Le,Ke,wt,Ze,Qe,q?w.jsx(AK,{open:oe,tonieCardOrTAFRecord:q,onClose:()=>re(!1),overlay:r}):"",w.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[w.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[w.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:d("tonies.currentPath")}),Fn(E,hn)]}),a===0&&e==="library"?w.jsx(Pt,{size:"small",onClick:Xt,style:{marginBottom:8},children:d("fileBrowser.createDirectory.createDirectory")}):""]}),w.jsx(ts,{dataSource:C,columns:mt,rowKey:Se=>Se.name,pagination:!1,onRow:Se=>({onDoubleClick:()=>{Se.isDir?Lt(Se.name):Se.name.includes(".json")||Se.name.includes(".tap")?Ne(E+"/"+Se.name):Se.tafHeader&&We(Se.name,Se.tafHeader)}}),rowClassName:Wn,rowSelection:a>0?{selectedRowKeys:D,onChange:Wt}:{selectedRowKeys:D,onChange:Wt,getCheckboxProps:Se=>({disabled:Se.name===".."}),onSelectAll:(Se,xe)=>{const ze=Se?xe.filter(gt=>gt.name!=="..").map(gt=>gt.name):[];P(ze)}},components:{header:{wrapper:Se=>w.jsx("thead",{...Se}),row:Se=>w.jsxs(w.Fragment,{children:[w.jsx("tr",{...Se}),w.jsx("tr",{children:w.jsx("th",{style:{padding:"10px 8px"},colSpan:mt.length+1,children:w.jsx(en,{placeholder:d("fileBrowser.filter"),value:ae,onChange:fr,onFocus:yr,ref:h,style:{width:"100%"},autoFocus:de,addonAfter:w.jsx(da,{onClick:jr,disabled:ae.length===0,style:{color:ae.length===0?p.colorTextDisabled:p.colorText,cursor:ae.length===0?"default":"pointer"}})})})})]}),cell:Se=>w.jsx("th",{...Se})}}}),w.jsx(kK,{open:M,initialValuesJson:A?JSON.stringify(A,null,2):void 0,onCreate:Ye,onCancel:()=>{L(!1)}},F)]})},x8e=new En(vn()),MK=({open:e,onClose:t,setValue:n,props:r,tonieCardProps:a,audioId:o,hash:i})=>{const{t:s}=Vt(),[c]=Zt.useForm();l.useEffect(()=>{e&&p(),e&&a&&c.setFieldsValue({series:a.tonieInfo.series,episodes:a.tonieInfo.episode,model:a.tonieInfo.model,language:a.tonieInfo.language,pic:a.tonieInfo.picture,tracks:a.tonieInfo.tracks})},[e,a,c]);const u=async x=>{if(x.tracks&&(x.tracks=x.tracks.filter(E=>E.track&&E.track.trim()).map(E=>E.track)),x.audio_id){x.audio_id=x.audio_id.filter(R=>R.audio_id&&R.audio_id.trim()&&R.hash&&R.hash.trim());const E=x.audio_id.map(R=>R.audio_id),I=x.audio_id.map(R=>R.hash);x={no:x.no,model:x.model,audio_id:E,hash:I,title:x.title,series:x.series,episodes:x.episodes,tracks:x.tracks,release:x.release,language:x.language,category:x.category,pic:x.pic}}v(x),h(!0);try{await x8e.apiPostTeddyCloudRaw("/api/doSomething",JSON.stringify(x),void 0,void 0,{"Content-Type":"application/json"}),x.article&&n&&(n(x.article),r.onChange(x.article)),p(),tt.success(s("tonies.addNewCustomTonieModal.successfullyCreated")),t()}catch(E){tt.error(s("tonies.addNewCustomTonieModal.failedToCreate")+E)}},d=()=>{c.submit()},f=()=>{p(),t()},p=()=>{c.resetFields(),c.setFieldsValue({audio_id:[{audio_id:o||"",hash:i||""}],tracks:[{track:""}]})},[g,v]=l.useState(""),[m,h]=l.useState(!1),y=w.jsx(Pt,{type:"primary",onClick:()=>b(),children:s("tonies.informationModal.ok")}),b=()=>{h(!1),f()};function S(){const x=window.matchMedia("(prefers-color-scheme: dark)").matches,E=localStorage.getItem("theme");return E==="auto"?x?"dark":"light":E}const C=w.jsx(_n,{footer:y,width:700,title:"File (you can copy the content to the tonies.custom.json)",open:m,onCancel:b,children:g?w.jsxs(w.Fragment,{children:[w.jsx(Gs,{language:"json",style:S()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(g,null,2)},"json-readable"),w.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),w.jsx(Gs,{language:"json",style:S()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(g,null,0)},"json-minimized")]}):"Loading..."});return w.jsxs(w.Fragment,{children:[w.jsxs(_n,{title:s("tonies.addNewCustomTonieModal.title"),open:e,onCancel:f,onOk:d,okText:s("tonies.addNewCustomTonieModal.save"),width:Math.max(Math.min(window.innerWidth*.75,800),500),children:[w.jsx(Mr,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json fragment is displayed when saving the new model. This is not automatically inserted into the tonies.custom.json. You have to copy this into the file yourself.",style:{marginBottom:8}}),w.jsx(Zt,{form:c,layout:"vertical",onFinish:u,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx(Rn,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx(Rn,{span:8,children:w.jsx(Zt.Item,{label:[s("tonies.addNewCustomTonieModal.series"),w.jsx(tn,{title:s("tonies.addNewCustomTonieModal.seriesHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"series-tooltip")],name:"series",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.seriesRequired")}],children:w.jsx(en,{style:{width:"100%"}})},"series")}),w.jsx(Rn,{span:10,children:w.jsx(Zt.Item,{label:[s("tonies.addNewCustomTonieModal.episode"),w.jsx(tn,{title:s("tonies.addNewCustomTonieModal.episodeHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"episodes-tooltip")],name:"episodes",children:w.jsx(en,{style:{width:"100%"}})},"episodes")}),w.jsx(Rn,{span:6,children:w.jsx(Zt.Item,{label:[s("tonies.addNewCustomTonieModal.language"),w.jsx(tn,{title:s("tonies.addNewCustomTonieModal.languageHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"language-tooltip")],name:"language",children:w.jsx(en,{style:{width:"100%"}})},"language")})]})}),w.jsx(Rn,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx(Rn,{span:8,children:w.jsx(Zt.Item,{label:s("tonies.addNewCustomTonieModal.model"),name:"model",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.modelRequired")}],children:w.jsx(en,{style:{width:"100%"}})},"model")}),w.jsx(Rn,{span:16,children:w.jsx(Zt.Item,{label:s("tonies.addNewCustomTonieModal.pic"),name:"pic",children:w.jsx(en,{style:{width:"100%"}})},"pic")})]})}),w.jsx(Rn,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx(Rn,{span:8,children:w.jsx(Zt.Item,{label:s("tonies.addNewCustomTonieModal.no"),name:"no",children:w.jsx(en,{style:{width:"100%"}})},"no")}),w.jsx(Rn,{span:16,children:w.jsx(Zt.Item,{label:[s("tonies.addNewCustomTonieModal.formfieldTitle"),w.jsx(tn,{title:s("tonies.addNewCustomTonieModal.formfieldTitleHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"title-tooltip")],name:"title",children:w.jsx(en,{style:{width:"100%"}})},"title")})]})}),w.jsx(Rn,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx(Rn,{span:8,children:w.jsx(Zt.Item,{label:s("tonies.addNewCustomTonieModal.release"),name:"release",children:w.jsx(en,{style:{width:"100%"}})},"release")}),w.jsx(Rn,{span:16,children:w.jsx(Zt.Item,{label:s("tonies.addNewCustomTonieModal.category"),name:"category",children:w.jsx(en,{style:{width:"100%"}})},"category")})]})}),w.jsx(Rn,{span:24,children:w.jsx(Ba,{gutter:[16,0],children:w.jsx(Rn,{span:24,children:w.jsx(Zt.List,{name:"audio_id",children:(x,{add:E,remove:I})=>w.jsxs(w.Fragment,{children:[x.map(({key:R,name:T,..._},$)=>w.jsxs(Ba,{gutter:[16,0],children:[w.jsx(Rn,{span:8,children:l.createElement(Zt.Item,{..._,key:`audio-id-${R}`,name:[T,"audio_id"],label:w.jsx("div",{children:$===0?s("tonies.addNewCustomTonieModal.audioId"):""},`audio-id-label-${R}`)},w.jsx(en,{style:{width:"100%"}}))}),w.jsx(Rn,{span:16,children:l.createElement(Zt.Item,{..._,key:`hash-${R}`,name:[T,"hash"],label:w.jsx("div",{children:$===0?s("tonies.addNewCustomTonieModal.hash"):""},`hash-label-${R}`)},w.jsx(en,{style:{width:"100%"},addonAfter:w.jsx(Pt,{type:"link",onClick:()=>I(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`audio-id-hash-remove-${R}`)}))})]},`audio-id-hash-row-${R}`)),w.jsx(Zt.Item,{children:w.jsx(Pt,{type:"dashed",onClick:()=>E(),block:!0,children:s("tonies.addNewCustomTonieModal.addAudioIdHash")})},"add-audio-id-hash")]})},"audio-id-hash-list")})})}),w.jsx(Rn,{span:24,children:w.jsx(Zt.List,{name:"tracks",children:(x,{add:E,remove:I})=>w.jsxs(w.Fragment,{children:[x.map(({key:R,name:T,..._},$)=>w.jsx(Ba,{gutter:[16,0],children:w.jsx(Rn,{span:24,children:l.createElement(Zt.Item,{..._,key:`track-${R}`,name:[T,"track"],label:w.jsx("div",{children:$===0?s("tonies.addNewCustomTonieModal.track"):""},`track-label-${R}`)},w.jsx(en,{style:{width:"100%"},addonAfter:w.jsx(Pt,{type:"link",onClick:()=>I(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`track-remove-${R}`)},"input-track-"+R))})},`track-row-${R}`)),w.jsx(Zt.Item,{children:w.jsx(Pt,{type:"dashed",onClick:()=>E(),block:!0,children:s("tonies.addNewCustomTonieModal.addTrack")})},"add-track")]})},"track-list")})]})})]}),C]})},E8e=new En(vn()),I8e=e=>{const{t}=Vt();tt.useMessage();const[n,r]=l.useState([]),[a,o]=l.useState(),[i,s]=l.useState(),[c,u]=l.useState(!1),d=async g=>{const v=encodeURIComponent(g),m="/api/toniesJsonSearch?searchModel="+v+"&searchSeries="+v+"&searchEpisode="+v;try{const y=await(await E8e.apiGetTeddyCloudApiRaw(m)).json();s(y);const b=y.map(S=>({value:S.model,text:"["+S.model+"] "+S.series+" - "+S.episode,picture:S.picture}));r(b)}catch(h){tt.error(t("tonieArticleSearch.failedToFetchSearchResults")+h);return}},f=g=>{o(g),e.onChange(g)},p=()=>{u(!0)};return w.jsxs(w.Fragment,{children:[w.jsx(br,{showSearch:!0,value:a,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:d,onChange:f,notFoundContent:null,options:(n||[]).map(g=>({value:g.value,label:w.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[w.jsx("img",{src:g.picture,alt:g.text,style:{display:"none"}}),g.text]})})),style:{marginTop:"8px"}}),w.jsx(MK,{open:c,props:e,setValue:o,onClose:()=>u(!1)}),w.jsx(tn,{title:t("tonies.addNewCustomTonieHint"),children:w.jsx(Pt,{onClick:p,style:{marginTop:8},children:t("tonies.addNewCustomTonie")})})]})},T8e=({countryCode:e,height:t})=>{switch(e){case"de-de":return w.jsxs("svg",{height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",children:[w.jsx("path",{d:"M0 0h100v20H0z"}),w.jsx("path",{fill:"#D00",d:"M0 20h100v20H0z"}),w.jsx("path",{fill:"#FFCE00",d:"M0 40h100v20H0z"})]});case"en-gb":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.666",height:t,children:[w.jsxs("g",{fill:"#FFF",children:[w.jsx("path",{d:"M0 0h100v66.53H0z"}),w.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zM39.045 21.696 0 0v6.141l28.012 15.556z"})]}),w.jsx("path",{d:"M76.764 44.834 100 57.642V44.834zm-16.004 0L100 66.53v-6.141L71.988 44.834zM89.396 66.53 60.741 50.604V66.53zM17.602 44.834 0 54.62v-9.786zm21.442 2.768V66.55H4.971zM23.041 21.696 0 8.889v12.807zm16.004 0L0 0v6.141l28.012 15.556zM10.409 0l28.655 15.926V0zm71.793 21.696L100 11.911v9.786zM60.76 18.928V0h34.093z",fill:"#0052B4"}),w.jsxs("g",{fill:"#D80027",children:[w.jsx("path",{d:"M56.141 0H43.665v27.037H0v12.476h43.664V66.55H56.14V39.513h43.664V27.037H56.14z"}),w.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zm-32.748 0L0 60.41v6.14l39.045-21.715zm11.033-23.139L0 0v6.141l28.012 15.556zm32.748 0L100 6.141V0L60.76 21.696z"})]})]});case"en-us":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),w.jsx("path",{d:"M0 0h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.273h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.129H0z",fill:"#D80027"}),w.jsx("path",{fill:"#2E52B2",d:"M0 0h50v35.887H0z"}),w.jsx("path",{d:"m9.318 27.076-.78-2.495-.858 2.495H5.107l2.086 1.501-.78 2.495 2.125-1.54 2.066 1.54-.799-2.495 2.125-1.501zm10.975 0-.799-2.495-.819 2.495h-2.574l2.086 1.501-.78 2.495 2.086-1.54 2.105 1.54-.78-2.495 2.086-1.501zm11.014 0-.838-2.495-.78 2.495h-2.632l2.144 1.501-.819 2.495 2.086-1.54 2.144 1.54-.819-2.495 2.086-1.501zm10.955 0-.78-2.495-.819 2.495H38.07l2.105 1.501-.78 2.495 2.086-1.54 2.105 1.54-.838-2.495 2.144-1.501zM19.493 14.678l-.819 2.495h-2.573l2.086 1.54-.78 2.456 2.086-1.52 2.105 1.52-.78-2.456 2.086-1.54h-2.612zm-10.955 0-.858 2.495H5.107l2.086 1.54-.78 2.456 2.125-1.52 2.066 1.52-.799-2.456 2.125-1.54H9.318zm21.93 0-.78 2.495h-2.632l2.144 1.54-.819 2.456 2.086-1.52 2.144 1.52-.819-2.456 2.086-1.54h-2.573zm11.014 0-.819 2.495H38.07l2.105 1.54-.78 2.456 2.086-1.52 2.105 1.52-.838-2.456 2.144-1.54H42.26zM8.539 4.814 7.681 7.27H5.107l2.086 1.54-.78 2.476 2.125-1.539 2.066 1.54-.799-2.476 2.125-1.54H9.318zm10.955 0-.819 2.456h-2.574l2.086 1.54-.78 2.476 2.086-1.539 2.105 1.54-.78-2.476 2.086-1.54h-2.612zm10.975 0-.78 2.456h-2.632l2.144 1.54-.819 2.476 2.086-1.54 2.144 1.54-.819-2.476 2.086-1.54h-2.573zm11.014 0-.819 2.456h-2.593l2.105 1.54-.78 2.476 2.086-1.54 2.105 1.54-.838-2.476 2.144-1.54h-2.632z",fill:"#FFF"})]});case"fr-fr":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),w.jsx("path",{fill:"#0052B4",d:"M0 0h33.333v66.667H0z"}),w.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-be":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#fdda25",d:"M0 0h100v66.667H0z"}),w.jsx("path",{d:"M0 0h33.333v66.667H0z"}),w.jsx("path",{fill:"#ef3340",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-nl":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M0 22.222h100v22.222H0z"}),w.jsx("path",{fill:"#cd1f2a",d:"M0 0h100v22.222H0z"}),w.jsx("path",{fill:"#1d4185",d:"M0 44.444h100v22.223H0z"})]});case"pt-pt":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[w.jsx("path",{y:"85.337",fill:"#D80027",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),w.jsx("path",{fill:"#6DA544",points:"196.641,85.337 196.641,261.565 196.641,426.663 0,426.663 0,85.337 ",d:"M38.406 16.667L38.406 51.087L38.406 83.333L0 83.333L0 16.667Z"}),w.jsx("path",{fill:"#FFDA44",cx:"196.641",cy:"256",r:"64",d:"M50.906 50A12.5 12.5 0 0 1 38.406 62.5A12.5 12.5 0 0 1 25.906 50A12.5 12.5 0 0 1 50.906 50z"}),w.jsx("path",{fill:"#D80027",d:"M31.375 43.75v7.813c0 3.883 3.148 7.031 7.031 7.031s7.031 -3.148 7.031 -7.031V43.75z"}),w.jsx("path",{fill:"#FFFFFF",d:"M38.406 53.906c-1.292 0 -2.344 -1.051 -2.344 -2.344v-3.125h4.688v3.125c0 1.292 -1.052 2.344 -2.344 2.344"})]});case"it-it":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M66.667 0H0v66.53h99.805V0Z"}),w.jsx("path",{fill:"#6DA544",d:"M0 0h33.333v66.667H0z"}),w.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"es-es":return w.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFFFFF",d:"M0 0h100v66.667H0z"}),w.jsx("path",{fill:"#D03433",d:"M0 0h100v17.778H0zm0 48.889h100v17.778H0z"}),w.jsx("path",{fill:"#FBCA46",d:"M0 17.778h100v31.111H0z"}),w.jsx("path",{fill:"#FFFFFF",d:"M34.667 31.111h4.444v2.222h-4.444z"}),w.jsx("path",{fill:"#A41517",d:"M32 37.778c0 1.333 1.333 2.222 2.667 2.222s2.667 -0.889 2.667 -2.222L37.778 31.111H31.556zM29.333 31.111c0 -1.333 0.889 -2.222 1.778 -2.222h6.667c1.333 0 2.222 0.889 2.222 1.778V31.111l-0.444 6.667c-0.444 2.667 -2.222 4.444 -4.889 4.444s-4.444 -1.778 -4.889 -4.444z"}),w.jsx("path",{fill:"#A41517",d:"M30.222 33.333h8.889V35.556h-2.222l-2.222 4.444 -2.222 -4.444h-2.222zM23.556 26.667h4.444v15.556h-4.444zm17.778 0h4.444v15.556h-4.444zm-11.111 -2.222c0 -1.333 0.889 -2.222 2.222 -2.222h4.444c1.333 0 2.222 0.889 2.222 2.222v0.889q0 1.333 -1.333 1.333H31.111c-0.444 0 -0.889 -0.444 -0.889 -0.889z"})]});case"pl-pl":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[w.jsxs("g",{children:[w.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),w.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"170.663",d:"M0 16.667H100V50H0V16.667z"})]}),w.jsx("path",{y:"256",fill:"#D80027",width:"512",height:"170.663",d:"M0 50H100V83.333H0V50z"})]});case"tr-tr":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"0 -5000 15000 10000",children:[w.jsx("path",{fill:"#E30A17",d:"M0-5000h15000V5000H0z"}),w.jsx("path",{fill:"#FFFFFF",d:"m6958.333 0 2261.333-734.667-1397.667 1923.5v-2377.666l1397.667 1923.5zM7112.5 1336.833a2500 2500 0 1 1 0-2673.667 2000 2000 0 1 0 0 2673.667"})]});default:return null}},ZE=["de-de","en-gb","en-us","es-es","fr-fr","it-it","nl-be","nl-nl","pl-pl","pt-pt","tr-tr","undefined"],R8e=e=>{const{t}=Vt(),[n,r]=tt.useMessage(),[a,o]=l.useState([]),[i,s]=l.useState(),[c,u]=l.useState(!1),d="https://de1.api.radio-browser.info/json/";l.useEffect(()=>{(async()=>{try{(await fetch(d+"stats")).ok&&u(!0)}catch{console.log("Radio Browser API not available, disable radiostream search."),u(!1)}})()},[]);const f=(h,y)=>{let b;return(...S)=>{clearTimeout(b),b=setTimeout(()=>h.apply(void 0,S),y)}},p=async h=>{if(o([]),h==="")return;const y=encodeURIComponent(h),b=d+"stations/search?name="+y+"&is_https=true&hidebroken=true";try{const S=await fetch(b,{});if(!S.ok)throw new Error(S.status+" "+S.statusText);const C=await S.json(),x=Array.from(new Set(C.map(E=>E.url))).map(E=>{const I=C.find(R=>R.url===E);return{value:I.url,text:(I.country?"["+I.country+"] ":"")+I.name+(I.language?" ("+I.language+")":"")}});o(x)}catch(S){tt.error(t("radioStreamSearch.failedToFetchSearchResults")+S);return}},g=l.useCallback(f(p,300),[]),v=h=>{s(h),e.onChange(h)};return c?w.jsxs(w.Fragment,{children:[w.jsx(Ln.Text,{style:{fontSize:"small",display:"inline-block",marginTop:"8px"},children:t("radioStreamSearch.searchLabel")}),r,w.jsx(br,{showSearch:!0,style:{margin:"8px 0"},value:i,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:g,onChange:v,notFoundContent:null,options:(a||[]).map(h=>({value:h.value,label:h.text}))})]}):w.jsx(w.Fragment,{})},zc=new En(vn()),{Meta:_8e}=dd,{Text:y5}=Ln,{useToken:$8e}=hi,O8e=({tonieCard:e,lastRUIDs:t,overlay:n,readOnly:r,defaultLanguage:a="",onHide:o,onUpdate:i})=>{const{t:s}=Vt(),{token:c}=$8e(),[u,d]=l.useState(0),[f,p]=l.useState(e),[g,v]=tt.useMessage(),[m,h]=l.useState(f.nocloud),[y,b]=l.useState(f.live),[S,C]=l.useState(f.downloadTriggerUrl),{playAudio:x}=dO(),[E,I]=l.useState(!1),[R,T]=l.useState(!1),[_,$]=l.useState(!1),[D,P]=l.useState(f.tonieInfo.model),[A,O]=l.useState(""),[k,N]=l.useState({validateStatus:"",help:""}),[M,L]=l.useState(f.source),[F,j]=l.useState(""),[B,z]=l.useState({validateStatus:"",help:""}),H=async()=>{try{const Ee=await zc.apiGetTagInfo(f.ruid,n);p(Ee),i(Ee)}catch(Ee){tt.error("Error fetching updated card: "+Ee)}},U=`${f.tonieInfo.series}`+(f.tonieInfo.episode?` - ${f.tonieInfo.episode}`:""),X="sourceInfo"in f?`${f.sourceInfo.series}`+(f.sourceInfo.episode?` - ${f.sourceInfo.episode}`:""):"",W="sourceInfo"in f&&(f.sourceInfo.picture!==f.tonieInfo.picture&&U!==X||f.sourceInfo.picture===f.tonieInfo.picture&&U!==X),Y=(Ee,Fe,De)=>{if(Ee&&Ee.length===1){const we=(De==="library"?"lib:/":"content:/")+Fe+"/"+Ee[0].name;j(we)}else j(M)},te=()=>{$(!0)},ee=()=>{j(M),$(!1)},Z=()=>{O(D),j(M),T(!0)},oe=async()=>{try{M!==F&&await de(),D!==A&&await se()}catch{H();return}T(!1),H()},re=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"live="+!y,n),b(!y),y?tt.success(s("tonies.messages.liveDisabled")):tt.success(s("tonies.messages.liveEnabled")),H()}catch(Ee){tt.error(s("tonies.messages.couldNotChangeLiveFlag")+Ee)}},q=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"nocloud="+!m,n),p({...f,nocloud:!m}),h(!m),m?tt.success(s("tonies.messages.cloudAccessEnabled")):tt.success(s("tonies.messages.cloudAccessBlocked")),H()}catch(Ee){tt.error(s("tonies.messages.couldNotChangeCloudFlag")+Ee)}},Q=async Ee=>{x(Ee,W?f.sourceInfo:f.tonieInfo)},ae=async()=>{const Ee=f.downloadTriggerUrl;C("");try{g.open({type:"loading",content:s("tonies.messages.downloading"),duration:0});const De=await(await zc.apiGetTeddyCloudApiRaw(Ee)).blob();g.destroy(),g.open({type:"success",content:s("tonies.messages.downloadedFile")}),H()}catch(Fe){g.destroy(),g.open({type:"error",content:s("tonies.messages.errorDuringDownload")+Fe}),C(""+Ee)}},se=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"tonie_model="+encodeURIComponent(A),n),P(A),tt.success(s("tonies.messages.setTonieToModelSuccessful",{selectedModel:A||s("tonies.messages.setToEmptyValue")})),N({validateStatus:"",help:""})}catch(Ee){throw tt.error(s("tonies.messages.setTonieToModelFailed")+Ee),N({validateStatus:"error",help:s("tonies.messages.setTonieToModelFailed")+Ee}),Ee}},de=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"source="+encodeURIComponent(F),n),L(F),tt.success(s("tonies.messages.setTonieToSourceSuccessful",{selectedSource:F||s("tonies.messages.setToEmptyValue")})),z({validateStatus:"",help:""})}catch(Ee){throw tt.error(s("tonies.messages.setTonieToSourceFailed")+Ee),z({validateStatus:"error",help:s("tonies.messages.setTonieToSourceFailed")+Ee}),Ee}m||q()},he=Ee=>{O(Ee.target.value)},ye=Ee=>{j(Ee.target.value)},pe=t.filter(([Ee])=>Ee===f.ruid).map(([,Ee,Fe])=>({ruidTime:Ee,boxName:Fe})),J=Ee=>{O(Ee)},ce=Ee=>{j(Ee)},ue=w.jsxs(w.Fragment,{children:[w.jsxs("h3",{style:{lineHeight:0},children:[s("tonies.editModal.title"),f.tonieInfo.model?" ("+f.tonieInfo.model+")":""]}),f.tonieInfo.series?w.jsx(y5,{type:"secondary",children:U}):" "]}),fe=w.jsx(w.Fragment,{children:w.jsxs(Pt,{type:"primary",onClick:oe,disabled:M===F&&D===A,children:[w.jsx(BW,{},"saveClick")," ",s("tonies.editModal.save")]})}),be=w.jsxs(_n,{open:R,onCancel:()=>T(!1),title:ue,footer:fe,width:700,children:[w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:s("tonies.editModal.source")}),w.jsx("div",{children:w.jsxs(Zt.Item,{validateStatus:B.validateStatus,help:B.help,children:[w.jsx(en,{value:F,width:"auto",onChange:ye,addonBefore:w.jsx(da,{onClick:()=>{j(M),z({validateStatus:"",help:""})},style:{color:M===F?c.colorTextDisabled:c.colorText,cursor:M===F?"default":"pointer"}}),addonAfter:w.jsx(W$,{onClick:()=>te()})}),w.jsx(R8e,{placeholder:s("tonies.editModal.placeholderSearchForARadioStream"),onChange:ce})]})}),w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:s("tonies.editModal.model")}),w.jsx("div",{children:w.jsxs(Zt.Item,{validateStatus:k.validateStatus,help:k.help,children:[w.jsx(en,{value:A,width:"auto",onChange:he,addonBefore:w.jsx(da,{onClick:()=>{O(D),N({validateStatus:"",help:""})},style:{color:D===A?c.colorTextDisabled:c.colorText,cursor:D===A?"default":"pointer"}})}),w.jsx(I8e,{placeholder:s("tonies.editModal.placeholderSearchForAModel"),onChange:J})]})})]}),Te=w.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:c.colorBgElevated},children:[w.jsx(Pt,{onClick:ee,children:s("tonies.selectFileModal.cancel")}),w.jsx(Pt,{type:"primary",onClick:()=>$(!1),children:s("tonies.selectFileModal.ok")})]}),_e=w.jsx(_n,{className:"sticky-footer",title:s("tonies.selectFileModal.selectFile"),open:_,onOk:()=>$(!1),onCancel:ee,width:"auto",footer:Te,children:w.jsx(kg,{special:"library",maxSelectedRows:1,trackUrl:!1,onFileSelectChange:Y})}),Pe=r?[w.jsx(cu,{onClick:()=>{d(u+1),I(!0)}},"info"),f.valid||M.startsWith("http")?w.jsx(_l,{onClick:()=>Q(f.valid?""+f.audioUrl:M)},"playpause"):w.jsx(_l,{style:{cursor:"default",color:c.colorTextDisabled}},"playpause"),w.jsx(fD,{style:{cursor:"default",color:m?"red":c.colorTextDisabled}},"nocloud"),w.jsx(mD,{style:{cursor:"default",color:y?"red":c.colorTextDisabled}},"live")]:[w.jsx(cu,{onClick:()=>{d(u+1),I(!0)}},"info"),w.jsx(v0,{onClick:Z},"edit"),f.valid||M.startsWith("http")?w.jsx(_l,{onClick:()=>Q(f.valid?""+f.audioUrl:M)},"playpause"):S&&S.length>0?w.jsx(V$,{onClick:ae},"download"):w.jsx(_l,{style:{cursor:"default",color:c.colorTextDisabled}},"playpause"),w.jsx(fD,{style:{color:m?"red":c.colorTextDescription},onClick:q},"nocloud"),w.jsx(mD,{style:{color:y?"red":c.colorTextDescription},onClick:re},"live")];return w.jsxs(w.Fragment,{children:[v,w.jsx(dd,{hoverable:!1,size:"small",style:pe&&pe.length>0?{background:c.colorBgContainerDisabled,borderTop:"3px #1677ff inset"}:{background:c.colorBgContainerDisabled,paddingTop:"2px"},title:w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[w.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:f.tonieInfo.series?f.tonieInfo.series:s("tonies.unsetTonie")}),a!==f.tonieInfo.language?w.jsx(tn,{placement:"top",zIndex:2,title:s("languageUtil."+f.tonieInfo.language),children:w.jsx(y5,{style:{height:20,width:"auto"},children:w.jsx(T8e,{countryCode:f.tonieInfo.language,height:20})})}):""]}),cover:w.jsxs("div",{style:{position:"relative"},children:[w.jsx("img",{alt:`${f.tonieInfo.series} - ${f.tonieInfo.episode}`,src:f.tonieInfo.picture?f.tonieInfo.picture:"/img_unknown.png",style:f.tonieInfo.picture.endsWith("img_unknown.png")?{padding:8,paddingTop:10,width:"100%"}:{padding:8,width:"100%"}}),W?w.jsx(tn,{title:`${X}`?s("tonies.alternativeSource",{originalTonie:'"'+U+'"',assignedContent:'"'+X+'"'}).replace(' "" '," "):s("tonies.alternativeSourceUnknown",{originalTonie:'"'+U+'"'}).replace(' "" '," "),placement:"bottom",children:w.jsx("img",{src:f.sourceInfo.picture,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),actions:Pe,children:w.jsx(_8e,{title:`${f.tonieInfo.episode}`,description:f.uid})},f.ruid),w.jsx(AK,{open:E,onClose:()=>I(!1),tonieCardOrTAFRecord:f,readOnly:r,lastRUIDs:t,onHide:o,overlay:n},u),_e,be]})},N8e=({currentPage:e,onChange:t,total:n,pageSize:r,additionalButtonOnClick:a})=>{const{t:o}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(z$,{current:e,total:n,pageSize:r,onChange:t,showSizeChanger:!0,pageSizeOptions:["24","48","96","192"],locale:{items_per_page:o("tonies.tonies.pageSelector")},style:{marginBottom:8}}),w.jsx(Pt,{onClick:a,style:{marginLeft:16},children:o("tonies.tonies.showAll")})]})},{Option:k8e}=br,QE=new En(vn()),JE="toniesListState",XO=({tonieCards:e,showFilter:t,showPagination:n,overlay:r,readOnly:a,defaultLanguage:o="",onToniesCardUpdate:i})=>{const{t:s}=Vt(),c=ol(),[u,d]=l.useState(e),[f,p]=l.useState(""),[g,v]=l.useState(""),[m,h]=l.useState(""),[y,b]=l.useState([]),[S,C]=l.useState(!1),[x,E]=l.useState(!1),[I,R]=l.useState(!1),[T,_]=l.useState(!1),[$,D]=l.useState(!1),[P,A]=l.useState(!1),[O,k]=l.useState(!1),[N,M]=l.useState(!1),[L,F]=l.useState(!1),[j,B]=l.useState(!1),[z,H]=l.useState(!1),[U,X]=l.useState(!0),[W,Y]=l.useState(!0),[te,ee]=l.useState([]),[Z,oe]=l.useState(()=>{const me=localStorage.getItem(JE);if(me){const{pageSize:Ie}=JSON.parse(me);return Ie}return 24}),[re,q]=l.useState(1),[Q,ae]=l.useState(!0),[se,de]=l.useState(!1),[he,ye]=l.useState(!0),[pe,J]=l.useState([]),[ce,ue]=l.useState(0);l.useEffect(()=>{const me=localStorage.getItem(JE);if(me)try{const{pageSize:Ie,showAll:je}=JSON.parse(me);je?Fe():(oe(Ie),Ae(1,Ie))}catch(Ie){console.error("Error parsing stored state:",Ie)}else console.log("No stored state found.")},[]),l.useEffect(()=>{(async()=>{const Ie=async Be=>await QE.apiGetTonieboxLastRUID(Be),je=async Be=>await QE.apiGetTonieboxLastRUIDTime(Be),ke=await QE.apiGetTonieboxesIndex(),Ne=await Promise.all(ke.map(async Be=>{const Ve=await Ie(Be.ID),Le=await je(Be.ID);return[Ve,Le,Be.boxName]}));ee(Ne)})()},[]);const fe=l.useMemo(()=>e.map(me=>me.ruid).join(","),[e]);l.useEffect(()=>{const Ie=new URLSearchParams(c.search).get("tonieRUID");if(Ie){p(Ie),X(!1);const je=e.filter(ke=>ke.ruid.toLowerCase()===Ie);d(je)}else d(e);ue(je=>je+1),Y(!1)},[c.search,fe]),l.useEffect(()=>{q(1),ue(me=>me+1)},[fe]),l.useEffect(()=>{const me=JSON.stringify({pageSize:Z,paginationEnabled:Q,showAll:se});localStorage.setItem(JE,me)},[he,Z,Q,se]);const be=()=>{ye(!he)},Te=me=>{i&&i(me),d(Ie=>Ie.map(je=>je.ruid===me.ruid?me:je))},_e=()=>{let me=e.filter(Ie=>{var je,ke;return(((je=Ie.sourceInfo)==null?void 0:je.series)&&Ie.sourceInfo.series.toLowerCase().includes(g.toLowerCase())||Ie.tonieInfo.series.toLowerCase().includes(g.toLowerCase()))&&(((ke=Ie.sourceInfo)==null?void 0:ke.episode)&&Ie.sourceInfo.episode.toLowerCase().includes(m.toLowerCase())||Ie.tonieInfo.episode.toLowerCase().includes(m.toLowerCase()))&&(y.length===0||y.includes(Ie.tonieInfo.language!==void 0&&ZE.includes(Ie.tonieInfo.language)?Ie.tonieInfo.language:"undefined")||y.includes(Ie.sourceInfo&&Ie.sourceInfo.language!==void 0&&ZE.includes(Ie.sourceInfo.language)?Ie.sourceInfo.language:"undefined"))&&(!x||Ie.valid)&&(!I||!Ie.valid)&&(!T||Ie.exists)&&(!$||!Ie.exists)&&(!P||Ie.live)&&(!O||!Ie.live)&&(!N||Ie.nocloud)&&(!L||!Ie.nocloud)&&(!j||Ie.hasCloudAuth)&&(!z||!Ie.hasCloudAuth)});f&&(me=me.filter(Ie=>{var je,ke,Ne;return Ie.tonieInfo.series.toLowerCase().includes(f.toLowerCase())||((je=Ie.sourceInfo)==null?void 0:je.series)&&Ie.sourceInfo.series.toLowerCase().includes(f.toLowerCase())||Ie.tonieInfo.episode.toLowerCase().includes(f.toLowerCase())||((ke=Ie.sourceInfo)==null?void 0:ke.episode)&&Ie.sourceInfo.episode.toLowerCase().includes(f.toLowerCase())||Ie.tonieInfo.model.toLowerCase().includes(f.toLowerCase())||((Ne=Ie.sourceInfo)==null?void 0:Ne.model)&&Ie.sourceInfo.model.toLowerCase().includes(f.toLowerCase())||Ie.ruid.toLowerCase().includes(f.toLowerCase())||Ie.uid.toLowerCase().includes(f.toLowerCase())})),S&&(me=me.filter(Ie=>te.some(([je])=>je===Ie.ruid))),pe&&(me=me.filter(Ie=>!pe.includes(Ie.ruid))),q(1),d(me),ue(Ie=>Ie+1)},Pe=me=>{d(u.filter(Ie=>Ie.ruid!==me)),J(Ie=>[...Ie,me]),ue(Ie=>Ie+1)},Ee=()=>{p(""),v(""),h(""),E(!1),R(!1),_(!1),D(!1),A(!1),k(!1),M(!1),F(!1),B(!1),H(!1),C(!1),b([]);const me=window.location.pathname;window.history.pushState({},"",me),c.search="",pe&&(e=e.filter(Ie=>!pe.includes(Ie.ruid))),d(e),ue(Ie=>Ie+1)},Fe=()=>{de(!0),ae(!1),be()},De=()=>{ae(!0),de(!1),Ae(1,Z)},Ae=(me,Ie)=>{oe(Ie),ue(je=>je+1),q(me),be(),window.scrollTo(0,0)};if(W)return w.jsx("div",{children:"Loading..."});const we=()=>{if(se)return u!==null?u:e;{const me=(re-1)*Z,Ie=me+Z;return u!==null?u.slice(me,Ie):e.slice(me,Ie)}},$e=w.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:Q?w.jsx(N8e,{currentPage:re,onChange:Ae,total:u!==null?u.length:e.length,pageSize:Z,additionalButtonOnClick:Fe}):w.jsx(Pt,{onClick:De,children:s("tonies.tonies.showPagination")})}),Ce=w.jsxs(w.Fragment,{children:[w.jsx("label",{htmlFor:"search-field",className:"filter-label",children:s("tonies.tonies.filterBar.searchLabel")}),w.jsx(en.Search,{id:"search-field",placeholder:s("tonies.tonies.filterBar.searchPlaceholder"),value:f,onChange:me=>p(me.target.value),onSearch:_e,enterButton:!0,style:{margin:"8px 0 8px 0"}}),w.jsxs("div",{className:"filter-container",children:[w.jsx("label",{className:"filter-label",children:s("tonies.tonies.filterBar.filterLabel")}),w.jsx(en,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.seriesFilterPlaceholder"),value:g,onChange:me=>v(me.target.value)}),w.jsx(en,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.episodeFilterPlaceholder"),value:m,onChange:me=>h(me.target.value)}),w.jsx(br,{mode:"multiple",placeholder:s("tonies.tonies.filterBar.languagePlaceholder"),value:y,onChange:me=>b(me),style:{width:"100%",margin:"8px 0"},children:ZE.map(me=>w.jsx(k8e,{value:me,children:s(me?"languageUtil."+me:"languageUtil.other")},me))}),w.jsxs("div",{children:[w.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:[w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:x,onChange:me=>E(me)}),s("tonies.tonies.filterBar.valid")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:I,onChange:me=>R(me)}),s("tonies.tonies.filterBar.invalid")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:T,onChange:me=>_(me)})," ",s("tonies.tonies.filterBar.exists")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:$,onChange:me=>D(me)}),s("tonies.tonies.filterBar.notExists")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:P,onChange:me=>A(me)})," ",s("tonies.tonies.filterBar.live")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:O,onChange:me=>k(me)})," ",s("tonies.tonies.filterBar.unsetLive")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:L,onChange:me=>F(me)}),s("tonies.tonies.filterBar.unsetNoCloud")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:N,onChange:me=>M(me)}),s("tonies.tonies.filterBar.noCloud")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:j,onChange:me=>B(me)}),s("tonies.tonies.filterBar.hasCloudAuth")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:z,onChange:me=>H(me)}),s("tonies.tonies.filterBar.unsetHasCloudAuth")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:S,onChange:me=>C(me)}),s("tonies.tonies.filterBar.lastPlayed")]})]}),w.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",marginTop:8},children:[w.jsx(Pt,{onClick:Ee,style:{marginLeft:16},children:s("tonies.tonies.filterBar.resetFilters")}),w.jsx(Pt,{onClick:_e,style:{marginLeft:16},children:s("tonies.tonies.filterBar.applyFilters")})]})]})]})]}),Re=[{key:"search-filter",label:s(U?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:Ce}];return w.jsxs("div",{className:"tonies-list-container",children:[t?w.jsx(A$,{items:Re,defaultActiveKey:U?[]:["search-filter"],onChange:()=>X(!U),bordered:!1}):"",w.jsx(Us,{header:n?$e:"",footer:n?$e:"",grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:4,xxl:6},dataSource:we(),renderItem:me=>w.jsx(Us.Item,{id:me.ruid,children:w.jsx(O8e,{tonieCard:me,lastRUIDs:te,overlay:r,readOnly:a,defaultLanguage:o,onHide:Pe,onUpdate:Te})})},ce)]})},Kd=new En(vn()),{Paragraph:Vm}=Ln,A8e=()=>{const{t:e}=Vt(),[t,n]=l.useState([]),[r,a]=l.useState(!1),[o,i]=l.useState(!1),[s,c]=l.useState(""),[u,d]=l.useState([]);l.useEffect(()=>{(async()=>{const h=await Kd.apiGetSecurityMITAlert();a(h)})(),(async()=>{try{const h=await Kd.apiGetNewBoxesAllowed();i(h),h&&(async()=>{const b=await Kd.apiGetTonieboxesIndex(),S=await Promise.all(b.map(async C=>{const x=await Kd.apiGetTonieboxApiAccess(C.ID);return[C.boxName,x]}));d(S)})()}catch(h){tt.error("Error: "+h)}})(),(async()=>{const h=(await Kd.apiGetTagIndexMergedAllOverlays(!0)).filter(y=>!y.hide);n(h.sort((y,b)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())))})()},[]),l.useEffect(()=>{const g={};t.forEach(h=>{const y=h.tonieInfo.language;g[y]?g[y]++:g[y]=1});let v=0,m="";for(const h in g)g.hasOwnProperty(h)&&g[h]>v&&(v=g[h],m=h);c(m)},[t]);const f=u.filter(g=>!g[1]),p=o?w.jsxs(w.Fragment,{children:[w.jsx(Mr,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}),f.length>0&&w.jsx(Mr,{message:e("tonieboxes.boxWithoutAPIAccess"),description:w.jsxs(w.Fragment,{children:[e("tonieboxes.boxWithoutAPIAccessText"),w.jsx("ul",{children:f.map(g=>w.jsx("li",{children:g[0]},g[0]))}),e("tonieboxes.boxWithoutAPIAccessGoToTonieboxes"),w.jsx(At,{to:"/tonieboxes",children:e("tonieboxes.navigationTitle")})]}),type:"info",showIcon:!0,style:{margin:"16px 0"}})]}):null;return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs(Vm,{children:[w.jsx("h1",{children:e("home.title")}),r?w.jsx(Mr,{message:e("security.alert"),description:e("security.incident_detected"),type:"error",showIcon:!0,style:{margin:"16px 0"}}):"",e("home.intro"),p]}),w.jsxs(Vm,{children:[e("home.forumIntroPart1"),w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:"https://forum.revvox.de/"}),e("home.forumIntroPart2")]}),w.jsxs(Vm,{children:[w.jsx("h2",{children:e("home.yourTonies")}),w.jsx(XO,{tonieCards:t.filter(g=>g.type==="tag"&&g.tonieInfo.series).slice(0,6),overlay:"",showFilter:!1,showPagination:!1,readOnly:!0,defaultLanguage:s}),w.jsx(Pt,{children:w.jsxs(At,{to:"/tonies",children:[e("home.toAllYourTonies")," (",t.filter(g=>g.type==="tag").length,")"]})})]}),w.jsxs(Vm,{children:[w.jsx("h2",{children:e("home.helpfulLinks")}),w.jsxs("ul",{children:[w.jsx("li",{children:w.jsx(At,{to:"/community/faq",children:"FAQ"})}),w.jsx("li",{children:w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"})}),w.jsx("li",{children:w.jsx(At,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"})}),w.jsx("li",{children:w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"})}),w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:"TeddyCloud Wiki"})})]})]})]})]})]})},{useToken:M8e}=hi,D8e=()=>{const{token:e}=M8e();return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",width:"100%",viewBox:"0 0 512 512",children:[w.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M285.000000,95.000000 C285.726776,91.291718 284.143219,89.788498 280.551392,88.369873 C247.948990,75.493263 212.672882,91.508270 199.495224,122.998001 C196.613541,129.884201 195.385559,137.055237 195.485504,144.500198 C195.559326,149.999207 195.570007,155.501114 195.483032,160.999725 C195.362961,168.591705 191.442429,172.487579 184.000000,172.494614 C166.333344,172.511307 148.666656,172.510849 131.000000,172.494736 C123.739044,172.488113 119.744461,168.704391 119.512695,161.499588 C118.937752,143.626343 119.484947,125.767700 124.620247,108.535835 C129.305405,92.814384 136.600082,78.329407 146.361160,64.899094 C160.063324,46.046219 177.407562,31.600046 198.103745,21.717247 C219.862259,11.327159 243.132431,6.942070 267.508698,8.891317 C284.115204,10.219257 299.968292,14.037633 314.973419,21.056805 C338.704193,32.157684 357.928345,48.584900 372.550323,70.466385 C383.991730,87.588272 391.730164,106.267952 394.317322,126.523338 C399.345093,165.887207 389.786652,201.671356 364.978485,232.982956 C350.265991,251.552322 331.599060,265.211121 309.924530,274.320435 C296.501526,279.961792 282.229004,283.352203 267.499878,283.997559 C263.333923,284.180115 259.162445,284.263275 255.000793,284.513092 C242.331039,285.273529 234.536453,294.940430 234.510101,310.000031 C234.471024,332.333282 234.502640,354.666656 234.498566,377.000000 C234.497147,384.740631 230.771179,388.486389 223.000000,388.494385 C205.666687,388.512268 188.326492,388.221069 171.003571,388.645569 C164.614304,388.802094 159.267792,383.378479 159.354935,376.998016 C159.705429,351.336151 159.031464,325.655487 159.642624,300.003387 C160.167542,277.971313 168.603424,258.489746 183.103546,242.091568 C198.977600,224.139587 218.895264,213.013474 242.995743,209.966385 C250.478912,209.020279 258.084564,209.344330 265.476685,208.330063 C284.746246,205.686066 300.188782,196.120834 310.413757,179.447113 C323.347626,158.355911 322.759064,136.763321 311.652649,114.922371 C309.739319,111.159721 306.957031,112.566917 304.500000,111.750000"}),w.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M197.500000,506.500000 C203.208725,504.136566 209.499985,503.955261 215.081406,500.636932 C226.722000,493.716095 233.515152,484.355804 234.104324,470.504425 C234.416428,463.166840 234.755539,456.042480 232.056686,448.978333 C227.973969,438.291962 214.538635,425.846741 198.510223,425.232910 C181.959915,424.599152 164.725250,435.753998 160.707718,453.048248 C155.331696,476.190460 163.819122,500.451569 192.494766,505.032776 C194.035324,505.278900 195.500000,506.000000 197.000000,506.500000"})]})},P8e=new En(vn()),{useToken:L8e}=hi,ZO=({maxNoOfGuests:e,toniesSize:t,showQuestionMark:n,title:r,description:a,height:o=(s=>(s=document.getElementById("collage-container"))==null?void 0:s.clientHeight)()||0,width:i=(c=>(c=document.getElementById("collage-container"))==null?void 0:c.clientWidth)()||0})=>{var b,S;const{token:u}=L8e(),[d,f]=l.useState([]),p=i,g=o,v=50,m=50,h=(((b=document.getElementById("central-text"))==null?void 0:b.clientWidth)||0)/(p<450?3:2),y=(((S=document.getElementById("central-text"))==null?void 0:S.clientHeight)||0)/(g<500?3:2);return l.useEffect(()=>{(async()=>{const I=(await P8e.apiGetTagIndexMergedAllOverlays(!1)).sort((R,T)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())).filter(R=>!R.tonieInfo.picture.endsWith("/img_unknown.png")&&R.tonieInfo.picture!==null&&R.tonieInfo.picture!==void 0&&R.tonieInfo.picture!==""&&!R.nocloud).slice(0,e).flatMap(R=>R.tonieInfo.picture).map((R,T)=>{if(r&&a){let _,$;do _=Math.random()*(100-t/g*100),$=Math.random()*(100-t/p*100);while(0v-y/g*100-t/g*100&&_m-h/p*100-t/p*100&&$w.jsxs("div",{className:"collage-image-container",style:{position:"absolute",top:C.top,left:C.left,width:"150px",height:"150px",overflow:"hidden",pointerEvents:"none"},children:[w.jsx("img",{src:C.src,alt:`Random ${C.id}`,className:"collage-image",style:{width:"100%",height:"100%",objectFit:"cover"}}),n&&w.jsx("div",{className:"question-mark-overlay",style:{position:"absolute",top:"5%",right:"20%",width:"30%",height:"30%",display:"flex",alignItems:"center",justifyContent:"center"},children:w.jsx(D8e,{})})]},C.id))]})},{Paragraph:F8e}=Ln,j8e=()=>{const{t:e}=Vt();return w.jsx(w.Fragment,{children:w.jsx(Xn,{children:w.jsx(F8e,{children:w.jsx(ZO,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!0,title:e("404.title"),description:e("404.description")})})})})},B8e=new En(vn()),z8e=()=>{var a;const{t:e}=Vt(),[t,n]=l.useState(),r=async()=>{var i,s;const o=await B8e.apiStatsGet();(i=o==null?void 0:o.stats)!=null&&i.length&&((s=o==null?void 0:o.stats)==null?void 0:s.length)>0&&n(o)};return l.useEffect(()=>{r()},[]),l.useEffect(()=>{const o=setInterval(()=>{r()},1e4);return()=>clearInterval(o)},[]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("home.stats.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("home.stats.title")}),(a=t==null?void 0:t.stats)==null?void 0:a.map(o=>w.jsxs("div",{children:[w.jsx("h2",{children:e("home.stats."+o.iD)}),w.jsx("p",{children:o.value})]},o.iD))]})]})]})},H8e="/web/assets/logo-aw46LCqE.png",U8e=new gq(vn()),V8e=new uRe(vn()),W8e=()=>{const{t:e}=Vt(),[t,n]=l.useState(!1),[r,a]=l.useState(!1),o=async()=>{try{(await U8e.v1TimeGet()).length===10&&a(!0)}catch{a(!1)}try{(await V8e.reverseV1TimeGet()).length===10&&n(!0)}catch{n(!1)}};return l.useEffect(()=>{o()},[]),w.jsxs(Mo,{children:[w.jsx(tn,{title:e(t?"server.boxineStatusOnline":"server.boxineStatusOffline"),children:w.jsxs(kv,{icon:t?w.jsx(uD,{}):w.jsx(dD,{}),color:t?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[w.jsx($n,{children:"B"}),w.jsx(Op,{children:"Boxine"})]})}),w.jsx(tn,{title:e(r?"server.teddycloudStatusOnline":"server.teddycloudStatusOffline"),children:w.jsxs(kv,{icon:r?w.jsx(uD,{}):w.jsx(dD,{}),color:r?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[w.jsx($n,{children:"TC"}),w.jsx(Op,{children:"TeddyCloud"})]})})]})},G8e=()=>{var o;const{t:e,i18n:t}=Vt(),n=i=>{t.changeLanguage(i)},r=[{key:"1",label:e("language.english"),onClick:()=>n("en")},{key:"2",label:e("language.german"),onClick:()=>n("de")},{key:"3",label:e("language.french"),onClick:()=>n("fr")}],a=t.language;return w.jsx(Mo,{children:w.jsx(f0,{menu:{items:r},trigger:["click"],children:w.jsx("a",{href:"/",onClick:i=>i.preventDefault(),title:e("language.change"),children:w.jsxs(kv,{color:"transparent",children:[w.jsx(dSe,{})," ",w.jsx("strong",{children:(o=r.find(i=>i.onClick&&i.onClick.toString().includes(a)))==null?void 0:o.label})]})})})})},{useToken:q8e}=hi,K8e=ma.img` +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return gE}var mE,DF;function YO(){if(DF)return mE;DF=1,mE=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(o,i,s){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function a(o){var i=n.languages[o],s="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",i,s),"class-feature":r("\\+",i,s),standard:r("",i,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return mE}var hE,PF;function D6e(){if(PF)return hE;PF=1;var e=YO(),t=V0();hE=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return hE}var vE,LF;function $K(){if(LF)return vE;LF=1;var e=IK();vE=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return vE}var bE,FF;function P6e(){if(FF)return bE;FF=1;var e=YO(),t=$K();bE=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return bE}var yE,jF;function OK(){if(jF)return yE;jF=1,yE=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(u,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return u});return RegExp(f,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(s),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return yE}var SE,BF;function L6e(){if(BF)return SE;BF=1;var e=OK();SE=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return SE}var wE,zF;function F6e(){if(zF)return wE;zF=1,wE=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return wE}var CE,HF;function j6e(){if(HF)return CE;HF=1,CE=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function o(p,g){return RegExp(p.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),g||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:o(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:o(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:o(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:o(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:o(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:o(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:o(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:o(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:o(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:o(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:o(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:o(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:o(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:o(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:o(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:o(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:o(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:o(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:o(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:o(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:o(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),c=s.phrase.inside,u={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=c.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var f=c.table.inside;f.inline=u.inline,f.link=u.link,f.image=u.image,f.footnote=u.footnote,f.acronym=u.acronym,f.mark=u.mark})(t)}return CE}var xE,UF;function B6e(){if(UF)return xE;UF=1,xE=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(o){return o.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return xE}var EE,VF;function z6e(){if(VF)return EE;VF=1,EE=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return EE}var IE,WF;function H6e(){if(WF)return IE;WF=1;var e=RK(),t=GO();IE=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",o),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var i=a.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0}(r)}return IE}var TE,GF;function U6e(){if(GF)return TE;GF=1;var e=$a();TE=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var o=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return TE}var RE,qF;function V6e(){if(qF)return RE;qF=1;var e=$a();RE=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return RE}var _E,KF;function W6e(){if(KF)return _E;KF=1,_E=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return _E}var $E,YF;function G6e(){if(YF)return $E;YF=1,$E=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return $E}var OE,XF;function q6e(){if(XF)return OE;XF=1,OE=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return OE}var NE,ZF;function K6e(){if(ZF)return NE;ZF=1,NE=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return NE}var kE,QF;function Y6e(){if(QF)return kE;QF=1,kE=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return kE}var AE,JF;function X6e(){if(JF)return AE;JF=1,AE=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return AE}var ME,e5;function Z6e(){if(e5)return ME;e5=1,ME=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return ME}var DE,t5;function Q6e(){if(t5)return DE;t5=1,DE=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return DE}var PE,n5;function J6e(){if(n5)return PE;n5=1,PE=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return PE}var LE,r5;function e8e(){if(r5)return LE;r5=1,LE=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return LE}var FE,a5;function t8e(){if(a5)return FE;a5=1,FE=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return FE}var jE,o5;function n8e(){if(o5)return jE;o5=1,jE=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return jE}var BE,i5;function r8e(){if(i5)return BE;i5=1,BE=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return BE}var zE,s5;function a8e(){if(s5)return zE;s5=1,zE=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,o={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:o}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in n.languages["web-idl"])i!=="class-name"&&(o[i]=n.languages["web-idl"][i]);n.languages.webidl=n.languages["web-idl"]})(t)}return zE}var HE,l5;function o8e(){if(l5)return HE;l5=1,HE=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return HE}var UE,c5;function i8e(){if(c5)return UE;c5=1,UE=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return UE}var VE,u5;function s8e(){if(u5)return VE;u5=1,VE=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return VE}var WE,d5;function l8e(){if(d5)return WE;d5=1,WE=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return WE}var GE,f5;function c8e(){if(f5)return GE;f5=1,GE=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,c){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":c})}var a=n.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",o),r("fsharp",o),r("vbnet",i)})(t)}return GE}var qE,p5;function u8e(){if(p5)return qE;p5=1,qE=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return qE}var KE,g5;function d8e(){if(g5)return KE;g5=1,KE=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(o){return typeof o=="string"?o:typeof o.content=="string"?o.content:o.content.map(r).join("")},a=function(o){for(var i=[],s=0;s0&&i[i.length-1].tagName===r(c.content[0].content[1])&&i.pop():c.content[c.content.length-1].content==="/>"||i.push({tagName:r(c.content[0].content[1]),openedBraces:0}):i.length>0&&c.type==="punctuation"&&c.content==="{"&&(!o[s+1]||o[s+1].type!=="punctuation"||o[s+1].content!=="{")&&(!o[s-1]||o[s-1].type!=="plain-text"||o[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?i[i.length-1].openedBraces--:c.type!=="comment"&&(u=!0)),(u||typeof c=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var d=r(c);s0&&(typeof o[s-1]=="string"||o[s-1].type==="plain-text")&&(d=r(o[s-1])+d,o.splice(s-1,1),s--),/^\s+$/.test(d)?o[s]=d:o[s]=new n.Token("plain-text",d,null,d)}c.content&&typeof c.content!="string"&&a(c.content)}};n.hooks.add("after-tokenize",function(o){o.language==="xquery"&&a(o.tokens)})})(t)}return KE}var YE,m5;function f8e(){if(m5)return YE;m5=1,YE=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return YE}var XE,h5;function p8e(){if(h5)return XE;h5=1,XE=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,o="\\b(?!"+a.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(i)),c=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(o)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+c+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return XE}var ge=wDe,g8e=ge;ge.register(kDe());ge.register(ADe());ge.register(MDe());ge.register(DDe());ge.register(PDe());ge.register(LDe());ge.register(FDe());ge.register(jDe());ge.register(BDe());ge.register(zDe());ge.register(HDe());ge.register(UDe());ge.register(VDe());ge.register(WDe());ge.register(GDe());ge.register(qDe());ge.register(KDe());ge.register(YDe());ge.register(XDe());ge.register(ZDe());ge.register(QDe());ge.register(JDe());ge.register(EK());ge.register(IK());ge.register(ePe());ge.register(tPe());ge.register(nPe());ge.register(rPe());ge.register(aPe());ge.register(oPe());ge.register(iPe());ge.register(sPe());ge.register(lPe());ge.register(cPe());ge.register(xc());ge.register(uPe());ge.register(dPe());ge.register(fPe());ge.register(pPe());ge.register(gPe());ge.register(mPe());ge.register(hPe());ge.register(vPe());ge.register(bPe());ge.register(UO());ge.register(yPe());ge.register(V0());ge.register(SPe());ge.register(wPe());ge.register(CPe());ge.register(xPe());ge.register(EPe());ge.register(IPe());ge.register(TPe());ge.register(RPe());ge.register(_Pe());ge.register($Pe());ge.register(OPe());ge.register(NPe());ge.register(kPe());ge.register(APe());ge.register(MPe());ge.register(DPe());ge.register(PPe());ge.register(LPe());ge.register(FPe());ge.register(jPe());ge.register(BPe());ge.register(zPe());ge.register(HPe());ge.register(UPe());ge.register(VPe());ge.register(WPe());ge.register(GPe());ge.register(qPe());ge.register(KPe());ge.register(YPe());ge.register(XPe());ge.register(ZPe());ge.register(QPe());ge.register(JPe());ge.register(e4e());ge.register(t4e());ge.register(n4e());ge.register(r4e());ge.register(a4e());ge.register(o4e());ge.register(i4e());ge.register(s4e());ge.register(l4e());ge.register(c4e());ge.register(u4e());ge.register(d4e());ge.register(f4e());ge.register(VO());ge.register(p4e());ge.register(g4e());ge.register(m4e());ge.register(h4e());ge.register(v4e());ge.register(b4e());ge.register(y4e());ge.register(S4e());ge.register(w4e());ge.register(C4e());ge.register(x4e());ge.register(E4e());ge.register(I4e());ge.register(T4e());ge.register(R4e());ge.register(_4e());ge.register($4e());ge.register(WO());ge.register(O4e());ge.register(G0());ge.register(N4e());ge.register(k4e());ge.register(A4e());ge.register(M4e());ge.register(D4e());ge.register(P4e());ge.register(L4e());ge.register(qO());ge.register(F4e());ge.register(j4e());ge.register(B4e());ge.register(RK());ge.register(z4e());ge.register(H4e());ge.register(U4e());ge.register(V4e());ge.register(W4e());ge.register(G4e());ge.register(q4e());ge.register(K4e());ge.register(Y4e());ge.register(X4e());ge.register(Z4e());ge.register(Q4e());ge.register(J4e());ge.register(eLe());ge.register(tLe());ge.register(nLe());ge.register(TK());ge.register(rLe());ge.register(aLe());ge.register(oLe());ge.register($a());ge.register(iLe());ge.register(sLe());ge.register(lLe());ge.register(cLe());ge.register(uLe());ge.register(dLe());ge.register(fLe());ge.register(pLe());ge.register(gLe());ge.register(mLe());ge.register(hLe());ge.register(vLe());ge.register(bLe());ge.register(yLe());ge.register(SLe());ge.register(wLe());ge.register(CLe());ge.register(xLe());ge.register(ELe());ge.register(ILe());ge.register(TLe());ge.register(RLe());ge.register(_Le());ge.register($Le());ge.register(OLe());ge.register(NLe());ge.register(kLe());ge.register(ALe());ge.register(MLe());ge.register(DLe());ge.register(PLe());ge.register(LLe());ge.register(q0());ge.register(FLe());ge.register(jLe());ge.register(BLe());ge.register(zLe());ge.register(HLe());ge.register(ULe());ge.register(VLe());ge.register(WLe());ge.register(GLe());ge.register(qLe());ge.register(KLe());ge.register(YLe());ge.register(XLe());ge.register(ZLe());ge.register(QLe());ge.register(JLe());ge.register(e6e());ge.register(t6e());ge.register(n6e());ge.register(r6e());ge.register(a6e());ge.register(o6e());ge.register(i6e());ge.register(s6e());ge.register(l6e());ge.register(c6e());ge.register(u6e());ge.register(d6e());ge.register(f6e());ge.register(p6e());ge.register(W0());ge.register(g6e());ge.register(m6e());ge.register(h6e());ge.register(v6e());ge.register(KO());ge.register(b6e());ge.register(y6e());ge.register(S6e());ge.register(w6e());ge.register(C6e());ge.register(x6e());ge.register(E6e());ge.register(I6e());ge.register(T6e());ge.register(R6e());ge.register(_6e());ge.register($6e());ge.register(HO());ge.register(O6e());ge.register(N6e());ge.register(k6e());ge.register(A6e());ge.register(M6e());ge.register(D6e());ge.register(YO());ge.register(P6e());ge.register(L6e());ge.register(F6e());ge.register(j6e());ge.register(B6e());ge.register(z6e());ge.register(H6e());ge.register(U6e());ge.register(_K());ge.register(V6e());ge.register(GO());ge.register(W6e());ge.register(G6e());ge.register(q6e());ge.register(K6e());ge.register(Y6e());ge.register(X6e());ge.register($K());ge.register(Z6e());ge.register(Q6e());ge.register(J6e());ge.register(e8e());ge.register(t8e());ge.register(n8e());ge.register(r8e());ge.register(a8e());ge.register(o8e());ge.register(i8e());ge.register(s8e());ge.register(l8e());ge.register(c8e());ge.register(u8e());ge.register(d8e());ge.register(OK());ge.register(f8e());ge.register(p8e());const m8e=fa(g8e);var Gs=cke(m8e,NDe);Gs.supportedLanguages=fke;const rc={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},ac={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},{Paragraph:v5,Text:h8e}=jn,v8e=()=>{const{t:e}=Ht(),[t,n]=l.useState([]),r=l.useRef(null),[a,o]=l.useState(!1),i=p=>{let g="";for(let v=0;v=32&&h<=126?g+=String.fromCharCode(h):g+="."}return g},s=p=>{let g="";for(let h=0;h=m&&(v=v-2*m),v},c={"15-15452":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(v=>[...v,`UnknownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"15-16065":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(v=>[...v,`KnownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15427":p=>{if(p.length===8){const g=s(p);n(v=>[...v,`UpsideState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15426":p=>{if(p.length===8){const g=s(p);n(v=>[...v,`UprightState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)}};l.useEffect(()=>{if(a){const p=new EventSource("/api/sse");return p.onopen=()=>{console.log("Connection established.")},p.addEventListener("keep-alive",g=>{console.log("keep-alive event received:",g)}),p.addEventListener("pressed",g=>{const v=JSON.parse(g.data);n(m=>[...m,"Pressed: "+v.data])}),p.addEventListener("rtnl-raw-log2",g=>{const v=JSON.parse(g.data),m=`${"Raw2 | #"+v.data.sequence+" Uptime: "+v.data.uptime+" Func: "+v.data.function_group.toString().padStart(2," ")+"-"+v.data.function+" Payload: '"+v.data.field6+"' ASCII: '"+i(v.data.field6)+"'"}`;n(y=>[...y,m]);const h=`${v.data.function_group.toString().padStart(2," ")}-${v.data.function}`;c[h]&&c[h](v.data.field6)}),p.addEventListener("rtnl-raw-log3",g=>{const v=JSON.parse(g.data);n(m=>[...m,"Raw3 | Datetime: "+v.data.datetime+" Unknown: "+v.data.field2])}),p.onerror=g=>{console.error("EventSource failed:",g)},()=>{console.log("Connection closed."),p.close()}}else return},[a]),l.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const u=p=>{o(p)},d=()=>{n([])};function f(){const p=window.matchMedia("(prefers-color-scheme: dark)").matches,g=localStorage.getItem("theme");return g==="auto"?p?"dark":"light":g}return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qu,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qu,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("settings.rtnl.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("settings.rtnl.title")}),w.jsxs(v5,{style:{margin:"8px 0"},children:[w.jsxs(v5,{children:[w.jsx(va,{checked:a,onChange:u,style:{marginRight:8}}),w.jsx(h8e,{children:e("settings.rtnl.enableRtnl")})]}),w.jsx(Ca,{children:e("settings.rtnl.title")}),w.jsx("div",{ref:r,style:{minHeight:"max(40vh, 333px)",maxHeight:"max(40vh, 333px)",overflow:"auto",padding:1,background:f()==="dark"?"hsl(220, 13%, 18%)":"hsl(230, 1%, 98%)"},children:w.jsx(Gs,{language:"log",style:f()==="dark"?rc:ac,customStyle:{borderRadius:0,margin:0,border:"none"},children:t.join(` +`)})}),w.jsx(Dt,{onClick:d,style:{marginTop:8},children:e("settings.rtnl.clear")})]})]})]})]})},b5=new Tn(hn()),NK=({overlay:e})=>{const{t}=Ht(),n=async a=>{const o=new FormData;o.append("file",a);const i={filename:[o.get("file")]},s=async()=>{await b5.apiTriggerWriteConfigGet()};(async u=>{try{await b5.apiUploadCertPost(u,e);try{s()}catch{nt.error("Error while saving config to file.")}nt.success(t("settings.certificates.uploadSuccessful",{filename:a.name}))}catch{nt.error(t("settings.certificates.uploadFailed",{filename:a.name}))}})(i)},r={name:"file",multiple:!0,customRequest:async a=>{const{onSuccess:o,onError:i,file:s}=a;try{await n(s),o("Ok")}catch(c){i(c)}},onChange(a){const{status:o}=a.file;o!=="uploading"&&console.log(a.file,a.fileList)},onDrop(a){console.log("Dropped files",a.dataTransfer.files)}};return w.jsxs(E0.Dragger,{...r,children:[w.jsx("p",{className:"ant-upload-drag-icon",children:w.jsx(FW,{})}),w.jsx("p",{className:"ant-upload-text",children:t("settings.certificates.uploadText")}),w.jsx("p",{className:"ant-upload-hint",children:t("settings.certificates.uploadHint")})]})},b8e=()=>{const{t:e}=Ht(),{Paragraph:t}=jn;return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qu,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qu,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")},{title:e("settings.certificates.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("settings.certificates.title")}),w.jsx(t,{children:w.jsx(Mr,{message:e("settings.certificates.information"),description:w.jsxs("div",{children:[e("settings.certificates.hint")," ",w.jsx(At,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0})}),w.jsx(t,{children:w.jsx(NK,{})})]})]})]})},qs=()=>{const{t:e}=Ht(),t=[{key:"home",label:w.jsx(At,{to:"/",children:e("home.navigationTitle")}),icon:le.createElement(SSe),title:e("home.navigationTitle")},{key:"features",label:w.jsx(At,{to:"/home/features",children:e("home.features.navigationTitle")}),icon:le.createElement(yye),title:e("home.features.navigationTitle")},{key:"statistics",label:w.jsx(At,{to:"/home/stats",children:e("home.stats.navigationTitle")}),icon:le.createElement(FT),title:e("home.stats.navigationTitle")},{key:"hiddenMeeting",label:w.jsx(At,{to:"/home/tonieMeeting"})}];return w.jsx(Tg,{mode:"inline",defaultOpenKeys:["sub"],items:t})};function df(e,t=!0,n=1){if(!e||e<0)return"NaN";const r=t?1e3:1024;if(Math.abs(e)=r&&o{const{t:u}=Ht();return w.jsxs(On,{title:w.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[w.jsx(VW,{style:{fontSize:36,color:"orange",margin:16}}),w.jsx("div",{style:{marginBottom:16},children:e})]}),open:i,onOk:s,onCancel:c,okText:t,cancelText:n,className:"warning",children:[w.jsx("div",{style:{marginBottom:24},children:r}),a&&w.jsx("div",{children:w.jsx(Mr,{type:"warning",showIcon:!0,message:o||u("confirmDialog.contentHintTitle"),description:a})})]})},{useToken:y8e}=vi,kK=({open:e,initialValuesJson:t,onCreate:n,onCancel:r})=>{const{t:a}=Ht(),{token:o}=y8e(),[i]=Yt.useForm(),[s,c]=l.useState([]),[u,d]=l.useState(!1),[f,p]=l.useState(0),[g,v]=l.useState(-1);l.useEffect(()=>{c([])},[]),l.useEffect(()=>{if(t)try{const N=JSON.parse(t);i.setFieldsValue(N)}catch(N){console.error("Error parsing JSON:",N)}},[i,t]);const m=()=>{i.resetFields()},h=N=>{i.setFieldsValue({filepath:N.target.value})},y=(N,M,L)=>{if(N&&N.length>0){const F=L==="library"?"lib:/":"content:/",j=N.map(B=>({filepath:F+M+"/"+B.name,name:B.name}));c(j)}},b=()=>{p(N=>N+1),d(!0)},S=N=>{p(M=>M+1),d(!0),v(N),c([i.getFieldValue(["files",N])])},C=()=>{const N=i.getFieldsValue();let M=[...N.files];g!==-1?M[g]={filepath:s[0].filepath,name:s[0].name}:M=[...N.files,...s];const L={...N,files:M};i.setFieldsValue(L),d(!1),c([]),v(-1)},x=()=>{d(!1),c([])},[E,I]=l.useState(""),[R,T]=l.useState(""),[_,$]=l.useState(!1),D=w.jsx(Dt,{type:"primary",onClick:()=>$(!1),children:a("tonies.informationModal.ok")}),P=()=>{$(!1)};function A(){const N=window.matchMedia("(prefers-color-scheme: dark)").matches,M=localStorage.getItem("theme");return M==="auto"?N?"dark":"light":M}const O=w.jsx(On,{footer:D,width:700,title:"File (you can copy the content to a *.tap file)",open:_,onCancel:P,children:E?w.jsxs(w.Fragment,{children:[w.jsx(Gs,{language:"json",style:A()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:E}),w.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),w.jsx(Gs,{language:"json",style:A()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:R})]}):"Loading..."}),k=w.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:o.colorBgElevated},children:[w.jsx(Dt,{onClick:x,children:a("tonies.selectFileModal.cancel")}),w.jsx(Dt,{type:"primary",onClick:C,children:a("tonies.selectFileModal.ok")})]});return w.jsxs(w.Fragment,{children:[w.jsxs(On,{open:e,title:a(t?"tonies.tapEditor.titleEdit":"tonies.tapEditor.titleCreate"),okText:a(t?"tonies.tapEditor.save":"tonies.tapEditor.create"),cancelText:a("tonies.tapEditor.cancel"),onCancel:()=>{r(),m()},onOk:()=>{i.validateFields().then(()=>{n(i.getFieldsValue()),I(JSON.stringify(i.getFieldsValue(),null,2)),T(JSON.stringify(i.getFieldsValue(),null,0)),$(!0),m()}).catch(N=>{console.log("Validate Failed:",N)})},children:[w.jsx(Mr,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json is displayed when saving the new tap. This is not automatically saved to your library. You have to create a *.tap file manually and copy this into the file yourself.",style:{marginBottom:8}}),w.jsxs(Yt,{form:i,layout:"vertical",name:"tapEditorModal",initialValues:{type:"tap",filepath:"",name:"",files:[]},children:[w.jsx(Yt.Item,{name:"type",hidden:!0,label:"type",children:w.jsx(Jt,{type:"string"})}),w.jsx(Yt.Item,{name:"audio_id",label:"Audio ID",children:w.jsx(Jt,{type:"number"})}),w.jsx(Yt.Item,{name:"filepath",label:a("tonies.tapEditor.filePath"),children:w.jsx(Jt,{onChange:h})}),w.jsx(Yt.Item,{name:"name",label:a("tonies.tapEditor.name"),rules:[{required:!0,message:a("tonies.tapEditor.nameRequired")}],children:w.jsx(Jt,{})}),w.jsx(Yt.List,{name:"files",children:(N,{add:M,remove:L})=>w.jsxs(w.Fragment,{children:[N.map(({key:F,name:j},B)=>w.jsx("div",{className:"playlistTitle",children:w.jsxs(Mo,{style:{display:"flex",marginBottom:8,alignItems:"center",width:"100%"},align:"baseline",children:[w.jsx(Yt.Item,{name:[j,"filepath"],label:a("tonies.tapEditor.filePathContentFile"),rules:[{required:!0,message:a("tonies.tapEditor.filePathContentFileRequired")}],children:w.jsx(Jt,{width:"auto",addonBefore:w.jsx(da,{onClick:()=>{const z=[...i.getFieldsValue().files];z[B].filepath="",i.setFieldsValue({files:z})}}),addonAfter:w.jsx(W$,{onClick:()=>S(B)})})}),w.jsx(Yt.Item,{name:[j,"name"],label:a("tonies.tapEditor.fileNameContentFile"),children:w.jsx(Jt,{placeholder:"Name"})}),w.jsx(HSe,{onClick:()=>L(j)})]},`space-${F}`)},`files-${F}`)),w.jsx(Yt.Item,{children:w.jsx(Dt,{type:"dashed",onClick:()=>b(),block:!0,icon:w.jsx(wV,{}),children:a("tonies.tapEditor.addFile")})})]})})]}),w.jsx(On,{className:"sticky-footer",title:a("tonies.selectFileModal.selectFile"),open:u,onOk:C,onCancel:x,width:"auto",footer:k,children:w.jsx(kg,{maxSelectedRows:99,special:"library",trackUrl:!1,selectTafOrTapOnly:!1,onFileSelectChange:y},f)})]}),O]})},S8e=new Tn(hn()),{Text:w8e}=jn,AK=({open:e,onClose:t,tonieCardOrTAFRecord:n,readOnly:r,lastRUIDs:a,overlay:o,onHide:i})=>{const{t:s}=Ht(),[c,u]=l.useState(!1),[d,f]=l.useState(!1),[p,g]=l.useState(""),[v,m]=l.useState([]);l.useEffect(()=>{"sourceInfo"in n&&(n.sourceInfo.picture!==n.tonieInfo.picture&&b!==S||n.sourceInfo.picture===n.tonieInfo.picture&&b!==S||n.sourceInfo.series!==n.tonieInfo.series||n.sourceInfo.episode!==n.tonieInfo.episode||n.sourceInfo.tracks.join(".")!==n.tonieInfo.tracks.join("."))&&(f(!0),g(n.sourceInfo.picture),m(n.sourceInfo.tracks))},[n,e]);const h=a&&"ruid"in n?a.filter(([P])=>P===n.ruid).map(([,P,A])=>({ruidTime:P,boxName:A})):null,y=n.tonieInfo.series+(n!=null&&n.tonieInfo.episode?" - "+n.tonieInfo.episode:"")+(n.tonieInfo.model?" ("+n.tonieInfo.model+")":""),b=`${n.tonieInfo.series}`+(n.tonieInfo.episode?` - ${n.tonieInfo.episode}`:""),S="sourceInfo"in n?`${n.sourceInfo.series}`+(n.sourceInfo.episode?` - ${n.sourceInfo.episode}`:""):"",C=d?S:b,x=()=>{u(!0)},E=()=>{R(),u(!1)},I=()=>{u(!1)},R=async()=>{if(i&&"ruid"in n&&n.ruid)try{await S8e.apiPostTeddyCloudContentJson(n.ruid,"hide=true",o),nt.success(s("tonies.messages.hideTonieSuccessful")),i(n.ruid)}catch(P){nt.error(s("tonies.messages.hideTonieFailed")+P)}},T=w.jsx(Dp,{title:s("tonies.confirmHideModal.title"),open:c,okText:s("tonies.confirmHideModal.hide"),cancelText:s("tonies.confirmHideModal.cancel"),content:s("tonies.confirmHideModal.confirmHideDialog",{tonieToHide:y||("uid"in n?n.uid:"")}),handleOk:E,handleCancel:I}),_=w.jsx(w.Fragment,{children:w.jsxs("h3",{children:[C||s("tonies.informationModal.unknownModel"),w.jsx("br",{}),"uid"in n&&n.uid?w.jsx(w8e,{type:"secondary",children:n.uid}):""]})}),$=w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[w.jsx("div",{children:"ruid"in n&&n.ruid?r?"":w.jsx(Dt,{onClick:x,children:s("tonies.informationModal.hideTag")}):""}),w.jsx(Dt,{type:"primary",onClick:t,children:s("tonies.informationModal.ok")})]});return w.jsxs(w.Fragment,{children:[w.jsxs(On,{title:_,footer:$,open:e,keyboard:!0,closable:!1,maskClosable:!0,onCancel:t,children:[w.jsxs("div",{style:{position:"relative"},children:[w.jsx("img",{src:n.tonieInfo.picture?n.tonieInfo.picture:"/img_unknown.png",alt:"",style:{width:"100%"}}),d?w.jsx(en,{title:`${S}`?s("tonies.alternativeSource",{originalTonie:'"'+b+'"',assignedContent:'"'+S+'"'}).replace(' "" '," "):s("tonies.alternativeSourceUnknown",{originalTonie:'"'+b+'"'}).replace(' "" '," "),placement:"bottom",children:w.jsx("img",{src:p,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),h&&h.length>0?w.jsxs(w.Fragment,{children:[w.jsxs("strong",{children:[s("tonies.lastPlayedOnModal.lastPlayedOnMessage"),":"]}),w.jsx("ul",{children:h.map(({ruidTime:P,boxName:A},O)=>w.jsxs("li",{children:[A,P?" ("+P+")":""]},O))})]}):w.jsx(w.Fragment,{}),w.jsxs("div",{children:["valid"in n?w.jsxs("p",{children:[w.jsx("strong",{children:s("tonies.infoModal.valid")})," ",n.valid?s("tonies.infoModal.yes"):s("tonies.infoModal.no")]}):"","exists"in n?w.jsxs("p",{children:[w.jsx("strong",{children:s("tonies.infoModal.exists")})," ",n.exists?s("tonies.infoModal.yes"):s("tonies.infoModal.no")]}):"",d?v&&v.length>0?w.jsxs(w.Fragment,{children:[w.jsx("strong",{children:s("tonies.infoModal.tracklist")}),w.jsx("ol",{children:v.map((P,A)=>w.jsx("li",{children:P},A))})]}):w.jsx(w.Fragment,{}):n.tonieInfo.tracks&&n.tonieInfo.tracks.length>0?w.jsxs(w.Fragment,{children:[w.jsx("strong",{children:s("tonies.infoModal.tracklist")}),w.jsx("ol",{children:n.tonieInfo.tracks.map((P,A)=>w.jsx("li",{children:P},A))})]}):w.jsx(w.Fragment,{})]})]}),T]})},ss=new Tn(hn()),{useToken:C8e}=vi,Zo={id:"1",pId:"-1",value:"1",title:"/",fullPath:"/"},kg=({special:e,filetypeFilter:t=[],isTapList:n=!1,overlay:r="",maxSelectedRows:a=0,selectTafOrTapOnly:o=!0,trackUrl:i=!0,showDirOnly:s=!1,showColumns:c=void 0,onFileSelectChange:u})=>{const{t:d}=Ht(),{playAudio:f}=dO(),{token:p}=C8e(),g=ol(),v=HG(),m=l.useRef(null),h=l.useRef(null),y=l.useRef(null),[b,S]=nt.useMessage(),[C,x]=l.useState([]),[E,I]=l.useState(""),[R,T]=l.useState(!1),[_,$]=l.useState(""),[D,P]=l.useState([]),[A,O]=l.useState(""),[k,N]=l.useState(!1),[M,L]=l.useState(!1),[F,j]=l.useState(0),[B,z]=l.useState(),[H,U]=l.useState(!1),[X,W]=l.useState(!1),[Y,te]=l.useState(E),[ee,Z]=l.useState(""),[oe,re]=l.useState(!1),[q,Q]=l.useState(),[ae,se]=l.useState(""),[de,he]=l.useState(!1),[ye,pe]=l.useState(!1),[J,ce]=l.useState(!1),[ue,fe]=l.useState(null),[be,Ee]=l.useState(""),[Re,Fe]=l.useState(""),[Ce,ze]=l.useState(Zo.id),[Pe,Ae]=l.useState([Zo]),[Se,_e]=l.useState([]),[we,Te]=l.useState(!1),[me,xe]=l.useState(!1),[Be,ke]=l.useState(_);l.useEffect(()=>{(async()=>{const Ie=We(Zo.id);ss.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Ie}&special=library`).then(Me=>Me.json()).then(Me=>{var Ze=Me.files;Ze=Ze.filter(Le=>Le.isDir&&Le.name!=="..").sort((Le,it)=>Le.name===it.name?0:Le.name.toLowerCase()>it.name.toLowerCase()?1:-1).map(Le=>({id:Zo.id+"."+Ze.indexOf(Le),pId:Zo.id,value:Zo.id+"."+Ze.indexOf(Le),title:Le.name,fullPath:`${Ie}/${Le.name}/`})),Ae(Pe.concat(Ze))})})()},[]),l.useEffect(()=>{const Ie=new URLSearchParams(g.search).get("path")||"";I(Ie)},[g]),l.useEffect(()=>{if(r){const $e=new URLSearchParams(g.search);$e.set("path",""),I("");const Ie=`${window.location.pathname}?${$e.toString()}`;window.history.replaceState(null,"",Ie),T(Me=>!Me)}},[r]),l.useEffect(()=>{ss.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${E}&special=${e}`+(r?`&overlay=${r}`:"")).then($e=>$e.json()).then($e=>{var Ie=$e.files;s&&(Ie=Ie.filter(Me=>Me.isDir)),t.length>0&&(Ie=Ie.filter(Me=>Me.isDir||t.some(Ze=>Me.name.endsWith(Ze)))),x(Ie)})},[E,e,s,R]),l.useEffect(()=>{X&&setTimeout(()=>{m.current&&m.current.focus()},0)},[X]),l.useEffect(()=>{y.current!==null&&h.current&&h.current.setSelectionRange(y.current,y.current)},[ae]),l.useEffect(()=>{te(E)},[E]),l.useEffect(()=>{ke(_)},[_]);function Ne(){const $e=window.matchMedia("(prefers-color-scheme: dark)").matches,Ie=localStorage.getItem("theme");return Ie==="auto"?$e?"dark":"light":Ie}const He=async $e=>{try{const Me=await(await ss.apiGetTeddyCloudApiRaw($e)).json();O(Me)}catch(Ie){console.error("Error fetching JSON data:",Ie)}},Ge=$e=>{He((e==="library"?"/library":"/content")+$e),he(!1),$($e),N(!0)},je=()=>{N(!1)},qe=w.jsx(Dt,{type:"primary",onClick:()=>N(!1),children:d("tonies.informationModal.ok")}),tt=w.jsx(On,{className:"json-viewer",footer:qe,width:700,title:"File: "+_,open:k,onCancel:je,children:A?w.jsx(Gs,{language:"json",style:Ne()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(A,null,2)}):"Loading..."}),Ye=($e,Ie)=>{const Me=Ie,{tracks:Ze,...Le}=Me;he(!1),z(Le),$($e),U(!0)},ft=()=>{U(!1)},ht=w.jsx(On,{className:"taf-header-viewer",footer:w.jsx(Dt,{type:"primary",onClick:()=>U(!1),children:d("tonies.informationModal.ok")}),title:d("tonies.tafHeaderOf")+_,open:H,onCancel:ft,children:B?w.jsx(Gs,{language:"json",style:Ne()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(B,null,2)}):"Loading..."}),Ue=({id:$e})=>new Promise((Ie,Me)=>{const Ze=We($e);ss.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Ze}&special=library`).then(Le=>Le.json()).then(Le=>{let it=Le.files;it=it.filter(Nt=>Nt.isDir&&Nt.name!=="..").sort((Nt,an)=>Nt.name===an.name?0:Nt.name.toLowerCase()>an.name.toLowerCase()?1:-1).map(Nt=>({id:$e+"."+it.indexOf(Nt),pId:$e,value:$e+"."+it.indexOf(Nt),title:Nt.name,fullPath:`${Ze}/${Nt.name}/`})),Ae(Pe.concat(it)),Ie(!0)}).then(()=>{Me()})}),We=$e=>{const Ie=Pe.filter(Me=>Me.value===$e)[0];return Ie.pId==="-1"?"":We(Pe.filter(Me=>Me.id===Ie.pId)[0].id)+"/"+Ie.title},Ke=($e,Ie)=>{for(const Me of Ie)if(Me.fullPath===$e)return Me.id;return null},st=($e,Ie)=>{let Me=[];for(const Ze of Ie)Ze.pId===$e&&Me.push(Ze);return Me},Tt=$e=>Se.includes($e),Rt=$e=>{console.log("Received values of form: ",$e),L(!1)},Ft=$e=>{$e.includes(".tap")&&(He((e==="library"?"/library":"/content")+$e),he(!1),$($e),j(Me=>Me+1),L(!0))},pt=async($e,Ie,Me)=>{const Ze="source="+encodeURIComponent($e)+"&target="+encodeURIComponent(Ie),Le=nt.loading(d(Me?"fileBrowser.messages.moving":"fileBrowser.messages.renaming"),0);try{const it=`/api/fileMove${"?special="+e+(r?`&overlay=${r}`:"")}`,an=await(await ss.apiPostTeddyCloudRaw(it,Ze)).text();if(Le(),an==="OK")nt.success(Me?d("fileBrowser.messages.movingSuccessful",{file:$e}):d("fileBrowser.messages.renamingSuccessful"));else throw nt.error(`${Me?d("fileBrowser.messages.movingFailed",{file:$e}):d("fileBrowser.messages.renamingFailed")}: ${an}`),an}catch(it){throw Le(),nt.error(`${Me?d("fileBrowser.messages.movingFailed",{file:$e}):d("fileBrowser.messages.renamingFailed")}: ${it}`),it}},lt=$e=>{$($e),Te(!0)},Je=()=>{Te(!1),ze(Zo.id)},ut=async($e,Ie)=>{try{await pt($e+"/"+_,Ie+"/"+_,!0),T(Me=>!Me),Te(!1),ze(Zo.id)}catch{}},It=async($e,Ie)=>{if(D.length>0){for(const Me of D){const Ze=C.find(Le=>Le.name===Me);Ze&&!Ze.isDir&&await pt($e+"/"+Ze.name,Ie+"/"+Ze.name,!0)}T(Me=>!Me),Te(!1),P([]),ze(Zo.id)}else nt.warning("No rows selected for moving.")},at=!Ce||We(Ce)===E,bt=w.jsxs(On,{title:d(_?"fileBrowser.moveFile.modalTitle":"fileBrowser.moveFile.modalTitleMultiple"),open:we,onCancel:Je,onOk:()=>_?ut(E,We(Ce)):It(E,We(Ce)),okText:d("fileBrowser.moveFile.move"),cancelText:d("fileBrowser.moveFile.cancel"),okButtonProps:{disabled:at},children:[w.jsx(Mr,{message:d("fileBrowser.attention"),description:d("fileBrowser.moveFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),w.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[w.jsx(Jt,{type:"text",style:{borderTopRightRadius:_?0:"unset",borderBottomRightRadius:_?0:"unset"},disabled:!0,value:E+"/"+(_||""),placeholder:E+"/"+(_||"")}),w.jsx("div",{children:d("fileBrowser.moveFile.moveTo")}),w.jsxs("div",{style:{display:"flex"},children:[w.jsx(al,{className:"move-file",treeLine:!0,treeDataSimpleMode:!0,value:Ce,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:ze,loadData:Ue,treeData:Pe,treeNodeLabelProp:"fullPath",placeholder:d("fileBrowser.moveFile.destinationPlaceholder"),treeExpandedKeys:Se,onTreeExpand:$e=>_e($e)}),w.jsx(en,{title:d("fileBrowser.createDirectory.createDirectory"),children:w.jsx(Dt,{icon:w.jsx(LW,{}),onClick:()=>{te(We(Ce)),W(!0)},style:{borderTopLeftRadius:0,borderBottomLeftRadius:0}})})]})]})]}),yt=$e=>{$($e),xe(!0)},et=async($e,Ie)=>{try{await pt($e+"/"+_,$e+"/"+Ie,!1),ke(""),T(Me=>!Me),xe(!1)}catch{}},ot=()=>{xe(!1)},Qe=$e=>{ke($e.target.value)},Xe=!Be||Be===_,gt=w.jsxs(On,{title:d("fileBrowser.renameFile.modalTitle"),open:me,onCancel:ot,onOk:()=>et(E,Be),okText:d("fileBrowser.renameFile.rename"),cancelText:d("fileBrowser.renameFile.cancel"),okButtonProps:{disabled:Xe},children:[w.jsx(Mr,{message:d("fileBrowser.attention"),description:d("fileBrowser.renameFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),w.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:w.jsx(Jt,{type:"text",value:Be,onChange:Qe,placeholder:_})})]}),Et=($e,Ie,Me)=>{he(!1),fe($e),Ee(Ie),Fe(Me),pe(!0)},$t=()=>{Qt(be,Re),T($e=>!$e),pe(!1)},qt=()=>{pe(!1),ce(!1)},Zt=()=>{ce(!0)},Kt=async()=>{if(D.length>0){for(const $e of D){const Ie=C.find(Me=>Me.name===$e);if(Ie){const Me=E+"/"+Ie.name,Ze="?special="+e+(r?`&overlay=${r}`:"");await Qt(Me,Ze)}}T($e=>!$e),ce(!1),P([])}else nt.warning("No rows selected for deletion.")},Qt=async($e,Ie)=>{const Me=nt.loading(d("fileBrowser.messages.deleting"),0);try{const Ze=`/api/fileDelete${Ie}`,it=await(await ss.apiPostTeddyCloudRaw(Ze,$e)).text();if(Me(),it==="OK"){nt.success(d("fileBrowser.messages.deleteSuccessful",{file:$e}));const Nt=Ke($e+"/",Pe);Nt&&Ae(an=>an.filter(wn=>wn.id!==Nt)),Y===$e+"/"&&te(E)}else nt.error(`${d("fileBrowser.messages.deleteFailed",{file:$e})}: ${it}`)}catch(Ze){Me(),nt.error(`${d("fileBrowser.messages.deleteFailed",{file:$e})}: ${Ze}`)}},wt=()=>{he(!1),W(!0)},Ct=$e=>{Z($e.target.value)},Ot=()=>{try{ss.apiPostTeddyCloudRaw("/api/dirCreate?special=library",Y+"/"+encodeURIComponent(ee)).then($e=>$e.text()).then($e=>{if($e!=="OK")throw new Error($e);const Ie=Ke(Y+"/",Pe)||Zo.id,Me=`${Ie}.${Pe.length}`,Ze=Tt(Ie),Le=st(Ie,Pe);if(Ze||Le.length>0){const it={id:Me,pId:Ie,value:Me,title:ee,fullPath:Y+"/"+ee+"/"};Ae([...Pe,it].sort((Nt,an)=>Nt.title===an.title?0:Nt.title.toLowerCase()>an.title.toLowerCase()?1:-1)),we&&ze(Me)}nt.success(d("fileBrowser.createDirectory.directoryCreated")),W(!1),T(it=>!it),Z("")}).catch($e=>{nt.error($e.message)})}catch{nt.error("Error while creating directory")}},mn=()=>{he(!1),W(!1),Z("")},Bn=!ee,sr=w.jsxs(On,{title:d("fileBrowser.createDirectory.modalTitle"),open:X,onCancel:mn,onOk:Ot,okText:d("fileBrowser.createDirectory.create"),cancelText:d("fileBrowser.createDirectory.cancel"),zIndex:1050,okButtonProps:{disabled:Bn},children:[w.jsxs(jn,{style:{marginBottom:8},children:[d("fileBrowser.createDirectory.parentPath")+" "+Y+"/"," "]}),w.jsx(Jt,{ref:m,placeholder:d("fileBrowser.createDirectory.placeholder"),value:ee,onChange:Ct})]}),fr=$e=>{var Ie;!$e.isDir&&((Ie=$e.tonieInfo)!=null&&Ie.tracks)&&(Q($e),re(!0))},jr=$e=>{i&&v(`?path=${$e}`),E===$e&&T(Ie=>!Ie),he(!1),I($e)},yr=($e,Ie)=>{const Me=$e.split("/").filter(Le=>Le),Ze=[{title:w.jsx("span",{style:{cursor:"pointer"},onClick:()=>Ie(""),children:d("fileBrowser.root")}),key:"/"}];return Me.forEach((Le,it)=>{const Nt=`/${Me.slice(0,it+1).join("/")}`;Ze.push({title:w.jsx("span",{style:{cursor:"pointer"},onClick:()=>Ie(Nt),children:Le}),key:Nt})}),w.jsx(mg,{items:Ze})},zn=($e,Ie,Me)=>{try{b.open({type:"loading",content:d("fileBrowser.messages.migrationOngoing"),duration:0});const Ze=`ruid=${$e}&libroot=${Ie}`;ss.apiPostTeddyCloudRaw("/api/migrateContent2Lib",Ze,Me).then(Le=>Le.text()).then(Le=>{b.destroy(),Le==="OK"?(b.open({type:"success",content:d("fileBrowser.messages.migrationSuccessful")}),T(it=>!it)):b.open({type:"error",content:d("fileBrowser.messages.migrationFailed")+": "+Le})}).catch(Le=>{b.destroy(),b.open({type:"error",content:d("fileBrowser.messages.migrationFailed")+": "+Le})})}catch(Ze){b.destroy(),b.open({type:"error",content:d("fileBrowser.messages.migrationFailed")+": "+Ze})}},Vt=$e=>{se($e.target.value),y.current=$e.target.selectionStart,he(!0)},Pt=()=>{se(""),y.current=0},Ut=()=>{he(!0)},Lt=$e=>D.includes($e.key)?"highlight-row":"",Mt=$e=>{if(a>0){if(o){const Me=$e.length;$e=$e.filter(Ze=>{const Le=C.find(it=>it.name===Ze);return Le&&Le.tafHeader!==void 0||Le&&Le.name.toLowerCase().endsWith(".tap")}),Me!==$e.length&&nt.warning(d("fileBrowser.selectTafOrTapOnly"))}$e.length>a?nt.warning(d("fileBrowser.maxSelectedRows",{maxSelectedRows:a})):P($e)}else P($e);const Ie=(C==null?void 0:C.filter(Me=>$e.includes(Me.name)))||[];u!==void 0&&u(Ie,E,e)},vt=$e=>{const Ie=$e===".."?E.split("/").slice(0,-1).join("/"):`${E}/${$e}`;i&&v(`?path=${Ie}`),he(!1),P([]),I(Ie)},St=($e,Ie)=>Ie.reduce((Me,Ze)=>{if(Me&&Me[Ze]!==void 0)return Me[Ze]},$e),nn=($e,Ie,Me)=>{const Ze=Array.isArray(Me)?St($e,Me):$e[Me],Le=Array.isArray(Me)?St(Ie,Me):Ie[Me];return Ze===void 0&&Le===void 0?0:Ze===void 0?1:Le===void 0?-1:typeof Ze=="string"&&typeof Le=="string"?Ze.localeCompare(Le):typeof Ze=="number"&&typeof Le=="number"?Ze-Le:(console.log("Unsupported types for sorting:",$e,Ie),console.log("Unsupported types for sorting field:",Me,Ze,Le),0)},vn=($e,Ie)=>$e.isDir===Ie.isDir?nn($e,Ie,"name"):$e.isDir?-1:1;var bn=[{title:a===0&&D.length>0?w.jsxs("div",{style:{display:"flex",gap:8},children:[w.jsx(en,{title:d("fileBrowser.moveMultiple"),children:w.jsx(Dt,{icon:w.jsx(pD,{}),onClick:()=>lt(""),disabled:D.length===0})},"moveMultiple"),w.jsx(en,{title:d("fileBrowser.deleteMultiple"),children:w.jsx(Dt,{icon:w.jsx(Tp,{}),onClick:Zt,disabled:D.length===0})},"deleteMultiple")]}):"",dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:($e,Ie)=>{var Me,Ze;return Ie&&((Me=Ie.tonieInfo)!=null&&Me.picture)?w.jsx("img",{src:Ie.tonieInfo.picture,alt:d("tonies.content.toniePicture"),onClick:()=>fr(Ie),style:{width:100,cursor:!Ie.isDir&&((Ze=Ie==null?void 0:Ie.tonieInfo)!=null&&Ze.tracks)?"help":"default"}},`picture-${Ie.name}`):w.jsx(w.Fragment,{})},showOnDirOnly:!1},{title:d("fileBrowser.name"),dataIndex:"name",key:"name",sorter:vn,defaultSortOrder:"ascend",render:($e,Ie)=>{var Me,Ze,Le,it,Nt;return Ie&&w.jsxs("div",{children:[w.jsxs("div",{className:"showSmallDevicesOnly",children:[w.jsxs("div",{children:[w.jsxs("div",{style:{wordBreak:Ie.isDir?"normal":"break-word"},children:[Ie.isDir?"["+Ie.name+"]":Ie.name," "]}),!Ie.isDir&&Ie.size?"("+df(Ie.size)+")":""]}),w.jsx("div",{children:(Me=Ie.tonieInfo)==null?void 0:Me.model}),w.jsx("div",{style:{wordBreak:Ie.isDir?"normal":"break-word"},children:((Ze=Ie.tonieInfo)!=null&&Ze.series?(Le=Ie.tonieInfo)==null?void 0:Le.series:"")+((it=Ie.tonieInfo)!=null&&it.episode?" - "+((Nt=Ie.tonieInfo)==null?void 0:Nt.episode):"")}),w.jsx("div",{children:!Ie.isDir&&new Date(Ie.date*1e3).toLocaleString()})]}),w.jsxs("div",{className:"showMediumDevicesOnly",children:[w.jsxs("div",{children:[w.jsxs("div",{style:{wordBreak:Ie.isDir?"normal":"break-word"},children:[Ie.isDir?"["+Ie.name+"]":Ie.name," "]}),!Ie.isDir&&Ie.size?"("+df(Ie.size)+")":""]}),w.jsx("div",{children:!Ie.isDir&&new Date(Ie.date*1e3).toLocaleString()})]}),w.jsx("div",{className:"showBigDevicesOnly",children:Ie.isDir?"["+Ie.name+"]":Ie.name})]},`name-${Ie.name}`)},filteredValue:[ae],onFilter:($e,Ie)=>{var Ze,Le,it,Nt;const Me=$e.toLowerCase();return Ie.name===".."||Ie.name.toLowerCase().includes(Me)||!Ie.isDir&&"tafHeader"in Ie&&Ie.tafHeader.size&&df(Ie.tafHeader.size).toString().includes(Me)||"tafHeader"in Ie&&((Ze=Ie.tafHeader.audioId)==null?void 0:Ze.toString().includes(Me))||"tonieInfo"in Ie&&((Le=Ie.tonieInfo)==null?void 0:Le.model.toLowerCase().includes(Me))||"tonieInfo"in Ie&&((it=Ie.tonieInfo)==null?void 0:it.series.toLowerCase().includes(Me))||"tonieInfo"in Ie&&((Nt=Ie.tonieInfo)==null?void 0:Nt.episode.toLowerCase().includes(Me))},showOnDirOnly:!0},{title:d("fileBrowser.size"),dataIndex:"size",key:"size",render:($e,Ie)=>w.jsx("div",{children:Ie.isDir?"":df($e)},`size-${Ie.name}`),showOnDirOnly:!1,responsive:["xl"]},{title:d("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:($e,Ie)=>{var Me;return w.jsx("div",{children:(Me=Ie.tonieInfo)==null?void 0:Me.model},`model-${Ie.name}`)}},{title:w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"showMediumDevicesOnly",children:[d("fileBrowser.model"),"/",d("fileBrowser.series"),"/",d("fileBrowser.episode")]}),w.jsx("div",{className:"showBigDevicesOnly",children:d("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:($e,Ie)=>{var Me,Ze,Le,it,Nt,an,wn;return w.jsxs("div",{children:[w.jsxs("div",{className:"showMediumDevicesOnly",children:[w.jsx("div",{children:(Me=Ie.tonieInfo)==null?void 0:Me.model}),w.jsx("div",{style:{wordBreak:"break-word"},children:((Ze=Ie.tonieInfo)!=null&&Ze.series?(Le=Ie.tonieInfo)==null?void 0:Le.series:"")+((it=Ie.tonieInfo)!=null&&it.episode?" - "+((Nt=Ie.tonieInfo)==null?void 0:Nt.episode):"")})]}),w.jsx("div",{className:"showBigDevicesOnly",children:(an=Ie.tonieInfo)!=null&&an.series?(wn=Ie.tonieInfo)==null?void 0:wn.series:""})]},`series-${Ie.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:d("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:($e,Ie)=>{var Me;return w.jsx("div",{children:(Me=Ie.tonieInfo)==null?void 0:Me.episode},`episode-${Ie.name}`)}},{title:d("fileBrowser.date"),dataIndex:"date",key:"date",render:($e,Ie)=>w.jsx("div",{children:new Date($e*1e3).toLocaleString()},`date-${Ie.name}`),showOnDirOnly:!0,responsive:["xl"]},{title:w.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:d("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:($e,Ie)=>{let Me=[];return Ie.tafHeader&&(e!=="library"&&(Me.push(w.jsx(en,{title:d("fileBrowser.migrateContentToLib"),children:w.jsx(oye,{onClick:()=>zn(E.replace("/","")+Ie.name,!1,r),style:{margin:"0 8px 0 0"}})},`action-migrate-${Ie.name}`)),Me.push(w.jsx(en,{title:d("fileBrowser.migrateContentToLibRoot"),children:w.jsx(W1e,{onClick:()=>zn(E.replace("/","")+Ie.name,!0,r),style:{margin:"0 8px 0 0"}})},`action-migrate-root-${Ie.name}`))),Me.push(w.jsx(en,{title:d("fileBrowser.playFile"),children:w.jsx(_l,{style:{margin:"0 8px 0 0"},onClick:()=>f("/content"+E+"/"+Ie.name+"?ogg=true&special="+e+(r?`&overlay=${r}`:""),Ie.tonieInfo)})},`action-play-${Ie.name}`))),n&&Ie.name.includes(".tap")&&(Me.push(w.jsx(en,{title:d("fileBrowser.tap.edit"),children:w.jsx(v0,{style:{margin:"0 8px 0 0"},onClick:()=>Ft(E+"/"+Ie.name)})},`action-edit-${Ie.name}`)),Me.push(w.jsx(en,{title:d("fileBrowser.tap.copy"),children:w.jsx(DW,{style:{margin:"0 8px 0 0"}})},`action-copy-${Ie.name}`))),!Ie.isDir&&Ie.name!==".."&&a===0&&Me.push(w.jsx(en,{title:d("fileBrowser.rename"),children:w.jsx(lSe,{onClick:()=>yt(Ie.name),style:{margin:"0 8px 0 0"}})},`action-rename-${Ie.name}`)),!Ie.isDir&&Ie.name!==".."&&a===0&&Me.push(w.jsx(en,{title:d("fileBrowser.move"),children:w.jsx(pD,{onClick:()=>lt(Ie.name),style:{margin:"0 8px 0 0"}})},`action-move-${Ie.name}`)),Ie.name!==".."&&a===0&&Me.push(w.jsx(en,{title:d("fileBrowser.delete"),children:w.jsx(Tp,{onClick:()=>Et(Ie.name,E+"/"+Ie.name,"?special="+e+(r?`&overlay=${r}`:"")),style:{margin:"0 8px 0 0"}})},`action-delete-${Ie.name}`)),Me},showOnDirOnly:!1}];return bn.forEach($e=>{$e.hasOwnProperty("sorter")||($e.sorter=(Ie,Me)=>nn(Ie,Me,$e.dataIndex))}),s&&(bn=bn.filter($e=>$e.showOnDirOnly)),c&&(bn=bn.filter($e=>typeof $e.key=="string"?c.includes($e.key):!1)),w.jsxs(w.Fragment,{children:[S,w.jsx(Dp,{title:d("fileBrowser.confirmDeleteModal"),open:ye,okText:d("fileBrowser.delete"),cancelText:d("fileBrowser.cancel"),content:d("fileBrowser.confirmDeleteDialog",{fileToDelete:ue}),handleOk:$t,handleCancel:qt}),w.jsx(Dp,{title:d("fileBrowser.confirmDeleteModal"),open:J,okText:d("fileBrowser.delete"),cancelText:d("fileBrowser.cancel"),content:d("fileBrowser.confirmMultipleDeleteDialog"),handleOk:Kt,handleCancel:qt}),tt,ht,sr,bt,gt,q?w.jsx(AK,{open:oe,tonieCardOrTAFRecord:q,onClose:()=>re(!1),overlay:r}):"",w.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[w.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[w.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:d("tonies.currentPath")}),yr(E,jr)]}),a===0&&e==="library"?w.jsx(Dt,{size:"small",onClick:wt,style:{marginBottom:8},children:d("fileBrowser.createDirectory.createDirectory")}):""]}),w.jsx(ts,{dataSource:C,columns:bn,rowKey:$e=>$e.name,pagination:!1,onRow:$e=>({onDoubleClick:()=>{$e.isDir?vt($e.name):$e.name.includes(".json")||$e.name.includes(".tap")?Ge(E+"/"+$e.name):$e.tafHeader&&Ye($e.name,$e.tafHeader)}}),rowClassName:Lt,rowSelection:a>0?{selectedRowKeys:D,onChange:Mt}:{selectedRowKeys:D,onChange:Mt,getCheckboxProps:$e=>({disabled:$e.name===".."}),onSelectAll:($e,Ie)=>{const Me=$e?Ie.filter(Ze=>Ze.name!=="..").map(Ze=>Ze.name):[];P(Me)}},components:{header:{wrapper:$e=>w.jsx("thead",{...$e}),row:$e=>w.jsxs(w.Fragment,{children:[w.jsx("tr",{...$e}),w.jsx("tr",{children:w.jsx("th",{style:{padding:"10px 8px"},colSpan:bn.length+1,children:w.jsx(Jt,{placeholder:d("fileBrowser.filter"),value:ae,onChange:Vt,onFocus:Ut,ref:h,style:{width:"100%"},autoFocus:de,addonAfter:w.jsx(da,{onClick:Pt,disabled:ae.length===0,style:{color:ae.length===0?p.colorTextDisabled:p.colorText,cursor:ae.length===0?"default":"pointer"}})})})})]}),cell:$e=>w.jsx("th",{...$e})}}}),w.jsx(kK,{open:M,initialValuesJson:A?JSON.stringify(A,null,2):void 0,onCreate:Rt,onCancel:()=>{L(!1)}},F)]})},x8e=new Tn(hn()),MK=({open:e,onClose:t,setValue:n,props:r,tonieCardProps:a,audioId:o,hash:i})=>{const{t:s}=Ht(),[c]=Yt.useForm();l.useEffect(()=>{e&&p(),e&&a&&c.setFieldsValue({series:a.tonieInfo.series,episodes:a.tonieInfo.episode,model:a.tonieInfo.model,language:a.tonieInfo.language,pic:a.tonieInfo.picture,tracks:a.tonieInfo.tracks})},[e,a,c]);const u=async x=>{if(x.tracks&&(x.tracks=x.tracks.filter(E=>E.track&&E.track.trim()).map(E=>E.track)),x.audio_id){x.audio_id=x.audio_id.filter(R=>R.audio_id&&R.audio_id.trim()&&R.hash&&R.hash.trim());const E=x.audio_id.map(R=>R.audio_id),I=x.audio_id.map(R=>R.hash);x={no:x.no,model:x.model,audio_id:E,hash:I,title:x.title,series:x.series,episodes:x.episodes,tracks:x.tracks,release:x.release,language:x.language,category:x.category,pic:x.pic}}v(x),h(!0);try{await x8e.apiPostTeddyCloudRaw("/api/doSomething",JSON.stringify(x),void 0,void 0,{"Content-Type":"application/json"}),x.article&&n&&(n(x.article),r.onChange(x.article)),p(),nt.success(s("tonies.addNewCustomTonieModal.successfullyCreated")),t()}catch(E){nt.error(s("tonies.addNewCustomTonieModal.failedToCreate")+E)}},d=()=>{c.submit()},f=()=>{p(),t()},p=()=>{c.resetFields(),c.setFieldsValue({audio_id:[{audio_id:o||"",hash:i||""}],tracks:[{track:""}]})},[g,v]=l.useState(""),[m,h]=l.useState(!1),y=w.jsx(Dt,{type:"primary",onClick:()=>b(),children:s("tonies.informationModal.ok")}),b=()=>{h(!1),f()};function S(){const x=window.matchMedia("(prefers-color-scheme: dark)").matches,E=localStorage.getItem("theme");return E==="auto"?x?"dark":"light":E}const C=w.jsx(On,{footer:y,width:700,title:"File (you can copy the content to the tonies.custom.json)",open:m,onCancel:b,children:g?w.jsxs(w.Fragment,{children:[w.jsx(Gs,{language:"json",style:S()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(g,null,2)},"json-readable"),w.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),w.jsx(Gs,{language:"json",style:S()==="dark"?rc:ac,customStyle:{padding:0,borderRadius:0,margin:0,border:"none"},children:JSON.stringify(g,null,0)},"json-minimized")]}):"Loading..."});return w.jsxs(w.Fragment,{children:[w.jsxs(On,{title:s("tonies.addNewCustomTonieModal.title"),open:e,onCancel:f,onOk:d,okText:s("tonies.addNewCustomTonieModal.save"),width:Math.max(Math.min(window.innerWidth*.75,800),500),children:[w.jsx(Mr,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json fragment is displayed when saving the new model. This is not automatically inserted into the tonies.custom.json. You have to copy this into the file yourself.",style:{marginBottom:8}}),w.jsx(Yt,{form:c,layout:"vertical",onFinish:u,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx($n,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx($n,{span:8,children:w.jsx(Yt.Item,{label:[s("tonies.addNewCustomTonieModal.series"),w.jsx(en,{title:s("tonies.addNewCustomTonieModal.seriesHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"series-tooltip")],name:"series",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.seriesRequired")}],children:w.jsx(Jt,{style:{width:"100%"}})},"series")}),w.jsx($n,{span:10,children:w.jsx(Yt.Item,{label:[s("tonies.addNewCustomTonieModal.episode"),w.jsx(en,{title:s("tonies.addNewCustomTonieModal.episodeHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"episodes-tooltip")],name:"episodes",children:w.jsx(Jt,{style:{width:"100%"}})},"episodes")}),w.jsx($n,{span:6,children:w.jsx(Yt.Item,{label:[s("tonies.addNewCustomTonieModal.language"),w.jsx(en,{title:s("tonies.addNewCustomTonieModal.languageHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"language-tooltip")],name:"language",children:w.jsx(Jt,{style:{width:"100%"}})},"language")})]})}),w.jsx($n,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx($n,{span:8,children:w.jsx(Yt.Item,{label:s("tonies.addNewCustomTonieModal.model"),name:"model",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.modelRequired")}],children:w.jsx(Jt,{style:{width:"100%"}})},"model")}),w.jsx($n,{span:16,children:w.jsx(Yt.Item,{label:s("tonies.addNewCustomTonieModal.pic"),name:"pic",children:w.jsx(Jt,{style:{width:"100%"}})},"pic")})]})}),w.jsx($n,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx($n,{span:8,children:w.jsx(Yt.Item,{label:s("tonies.addNewCustomTonieModal.no"),name:"no",children:w.jsx(Jt,{style:{width:"100%"}})},"no")}),w.jsx($n,{span:16,children:w.jsx(Yt.Item,{label:[s("tonies.addNewCustomTonieModal.formfieldTitle"),w.jsx(en,{title:s("tonies.addNewCustomTonieModal.formfieldTitleHint"),children:w.jsx(cu,{style:{marginLeft:2}})},"title-tooltip")],name:"title",children:w.jsx(Jt,{style:{width:"100%"}})},"title")})]})}),w.jsx($n,{span:24,children:w.jsxs(Ba,{gutter:[16,0],children:[w.jsx($n,{span:8,children:w.jsx(Yt.Item,{label:s("tonies.addNewCustomTonieModal.release"),name:"release",children:w.jsx(Jt,{style:{width:"100%"}})},"release")}),w.jsx($n,{span:16,children:w.jsx(Yt.Item,{label:s("tonies.addNewCustomTonieModal.category"),name:"category",children:w.jsx(Jt,{style:{width:"100%"}})},"category")})]})}),w.jsx($n,{span:24,children:w.jsx(Ba,{gutter:[16,0],children:w.jsx($n,{span:24,children:w.jsx(Yt.List,{name:"audio_id",children:(x,{add:E,remove:I})=>w.jsxs(w.Fragment,{children:[x.map(({key:R,name:T,..._},$)=>w.jsxs(Ba,{gutter:[16,0],children:[w.jsx($n,{span:8,children:l.createElement(Yt.Item,{..._,key:`audio-id-${R}`,name:[T,"audio_id"],label:w.jsx("div",{children:$===0?s("tonies.addNewCustomTonieModal.audioId"):""},`audio-id-label-${R}`)},w.jsx(Jt,{style:{width:"100%"}}))}),w.jsx($n,{span:16,children:l.createElement(Yt.Item,{..._,key:`hash-${R}`,name:[T,"hash"],label:w.jsx("div",{children:$===0?s("tonies.addNewCustomTonieModal.hash"):""},`hash-label-${R}`)},w.jsx(Jt,{style:{width:"100%"},addonAfter:w.jsx(Dt,{type:"link",onClick:()=>I(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`audio-id-hash-remove-${R}`)}))})]},`audio-id-hash-row-${R}`)),w.jsx(Yt.Item,{children:w.jsx(Dt,{type:"dashed",onClick:()=>E(),block:!0,children:s("tonies.addNewCustomTonieModal.addAudioIdHash")})},"add-audio-id-hash")]})},"audio-id-hash-list")})})}),w.jsx($n,{span:24,children:w.jsx(Yt.List,{name:"tracks",children:(x,{add:E,remove:I})=>w.jsxs(w.Fragment,{children:[x.map(({key:R,name:T,..._},$)=>w.jsx(Ba,{gutter:[16,0],children:w.jsx($n,{span:24,children:l.createElement(Yt.Item,{..._,key:`track-${R}`,name:[T,"track"],label:w.jsx("div",{children:$===0?s("tonies.addNewCustomTonieModal.track"):""},`track-label-${R}`)},w.jsx(Jt,{style:{width:"100%"},addonAfter:w.jsx(Dt,{type:"link",onClick:()=>I(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`track-remove-${R}`)},"input-track-"+R))})},`track-row-${R}`)),w.jsx(Yt.Item,{children:w.jsx(Dt,{type:"dashed",onClick:()=>E(),block:!0,children:s("tonies.addNewCustomTonieModal.addTrack")})},"add-track")]})},"track-list")})]})})]}),C]})},E8e=new Tn(hn()),I8e=e=>{const{t}=Ht();nt.useMessage();const[n,r]=l.useState([]),[a,o]=l.useState(),[i,s]=l.useState(),[c,u]=l.useState(!1),d=async g=>{const v=encodeURIComponent(g),m="/api/toniesJsonSearch?searchModel="+v+"&searchSeries="+v+"&searchEpisode="+v;try{const y=await(await E8e.apiGetTeddyCloudApiRaw(m)).json();s(y);const b=y.map(S=>({value:S.model,text:"["+S.model+"] "+S.series+" - "+S.episode,picture:S.picture}));r(b)}catch(h){nt.error(t("tonieArticleSearch.failedToFetchSearchResults")+h);return}},f=g=>{o(g),e.onChange(g)},p=()=>{u(!0)};return w.jsxs(w.Fragment,{children:[w.jsx(br,{showSearch:!0,value:a,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:d,onChange:f,notFoundContent:null,options:(n||[]).map(g=>({value:g.value,label:w.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[w.jsx("img",{src:g.picture,alt:g.text,style:{display:"none"}}),g.text]})})),style:{marginTop:"8px"}}),w.jsx(MK,{open:c,props:e,setValue:o,onClose:()=>u(!1)}),w.jsx(en,{title:t("tonies.addNewCustomTonieHint"),children:w.jsx(Dt,{onClick:p,style:{marginTop:8},children:t("tonies.addNewCustomTonie")})})]})},T8e=({countryCode:e,height:t})=>{switch(e){case"de-de":return w.jsxs("svg",{height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",children:[w.jsx("path",{d:"M0 0h100v20H0z"}),w.jsx("path",{fill:"#D00",d:"M0 20h100v20H0z"}),w.jsx("path",{fill:"#FFCE00",d:"M0 40h100v20H0z"})]});case"en-gb":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.666",height:t,children:[w.jsxs("g",{fill:"#FFF",children:[w.jsx("path",{d:"M0 0h100v66.53H0z"}),w.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zM39.045 21.696 0 0v6.141l28.012 15.556z"})]}),w.jsx("path",{d:"M76.764 44.834 100 57.642V44.834zm-16.004 0L100 66.53v-6.141L71.988 44.834zM89.396 66.53 60.741 50.604V66.53zM17.602 44.834 0 54.62v-9.786zm21.442 2.768V66.55H4.971zM23.041 21.696 0 8.889v12.807zm16.004 0L0 0v6.141l28.012 15.556zM10.409 0l28.655 15.926V0zm71.793 21.696L100 11.911v9.786zM60.76 18.928V0h34.093z",fill:"#0052B4"}),w.jsxs("g",{fill:"#D80027",children:[w.jsx("path",{d:"M56.141 0H43.665v27.037H0v12.476h43.664V66.55H56.14V39.513h43.664V27.037H56.14z"}),w.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zm-32.748 0L0 60.41v6.14l39.045-21.715zm11.033-23.139L0 0v6.141l28.012 15.556zm32.748 0L100 6.141V0L60.76 21.696z"})]})]});case"en-us":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),w.jsx("path",{d:"M0 0h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.273h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.129H0z",fill:"#D80027"}),w.jsx("path",{fill:"#2E52B2",d:"M0 0h50v35.887H0z"}),w.jsx("path",{d:"m9.318 27.076-.78-2.495-.858 2.495H5.107l2.086 1.501-.78 2.495 2.125-1.54 2.066 1.54-.799-2.495 2.125-1.501zm10.975 0-.799-2.495-.819 2.495h-2.574l2.086 1.501-.78 2.495 2.086-1.54 2.105 1.54-.78-2.495 2.086-1.501zm11.014 0-.838-2.495-.78 2.495h-2.632l2.144 1.501-.819 2.495 2.086-1.54 2.144 1.54-.819-2.495 2.086-1.501zm10.955 0-.78-2.495-.819 2.495H38.07l2.105 1.501-.78 2.495 2.086-1.54 2.105 1.54-.838-2.495 2.144-1.501zM19.493 14.678l-.819 2.495h-2.573l2.086 1.54-.78 2.456 2.086-1.52 2.105 1.52-.78-2.456 2.086-1.54h-2.612zm-10.955 0-.858 2.495H5.107l2.086 1.54-.78 2.456 2.125-1.52 2.066 1.52-.799-2.456 2.125-1.54H9.318zm21.93 0-.78 2.495h-2.632l2.144 1.54-.819 2.456 2.086-1.52 2.144 1.52-.819-2.456 2.086-1.54h-2.573zm11.014 0-.819 2.495H38.07l2.105 1.54-.78 2.456 2.086-1.52 2.105 1.52-.838-2.456 2.144-1.54H42.26zM8.539 4.814 7.681 7.27H5.107l2.086 1.54-.78 2.476 2.125-1.539 2.066 1.54-.799-2.476 2.125-1.54H9.318zm10.955 0-.819 2.456h-2.574l2.086 1.54-.78 2.476 2.086-1.539 2.105 1.54-.78-2.476 2.086-1.54h-2.612zm10.975 0-.78 2.456h-2.632l2.144 1.54-.819 2.476 2.086-1.54 2.144 1.54-.819-2.476 2.086-1.54h-2.573zm11.014 0-.819 2.456h-2.593l2.105 1.54-.78 2.476 2.086-1.54 2.105 1.54-.838-2.476 2.144-1.54h-2.632z",fill:"#FFF"})]});case"fr-fr":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),w.jsx("path",{fill:"#0052B4",d:"M0 0h33.333v66.667H0z"}),w.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-be":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#fdda25",d:"M0 0h100v66.667H0z"}),w.jsx("path",{d:"M0 0h33.333v66.667H0z"}),w.jsx("path",{fill:"#ef3340",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-nl":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M0 22.222h100v22.222H0z"}),w.jsx("path",{fill:"#cd1f2a",d:"M0 0h100v22.222H0z"}),w.jsx("path",{fill:"#1d4185",d:"M0 44.444h100v22.223H0z"})]});case"pt-pt":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[w.jsx("path",{y:"85.337",fill:"#D80027",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),w.jsx("path",{fill:"#6DA544",points:"196.641,85.337 196.641,261.565 196.641,426.663 0,426.663 0,85.337 ",d:"M38.406 16.667L38.406 51.087L38.406 83.333L0 83.333L0 16.667Z"}),w.jsx("path",{fill:"#FFDA44",cx:"196.641",cy:"256",r:"64",d:"M50.906 50A12.5 12.5 0 0 1 38.406 62.5A12.5 12.5 0 0 1 25.906 50A12.5 12.5 0 0 1 50.906 50z"}),w.jsx("path",{fill:"#D80027",d:"M31.375 43.75v7.813c0 3.883 3.148 7.031 7.031 7.031s7.031 -3.148 7.031 -7.031V43.75z"}),w.jsx("path",{fill:"#FFFFFF",d:"M38.406 53.906c-1.292 0 -2.344 -1.051 -2.344 -2.344v-3.125h4.688v3.125c0 1.292 -1.052 2.344 -2.344 2.344"})]});case"it-it":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFF",d:"M66.667 0H0v66.53h99.805V0Z"}),w.jsx("path",{fill:"#6DA544",d:"M0 0h33.333v66.667H0z"}),w.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"es-es":return w.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[w.jsx("path",{fill:"#FFFFFF",d:"M0 0h100v66.667H0z"}),w.jsx("path",{fill:"#D03433",d:"M0 0h100v17.778H0zm0 48.889h100v17.778H0z"}),w.jsx("path",{fill:"#FBCA46",d:"M0 17.778h100v31.111H0z"}),w.jsx("path",{fill:"#FFFFFF",d:"M34.667 31.111h4.444v2.222h-4.444z"}),w.jsx("path",{fill:"#A41517",d:"M32 37.778c0 1.333 1.333 2.222 2.667 2.222s2.667 -0.889 2.667 -2.222L37.778 31.111H31.556zM29.333 31.111c0 -1.333 0.889 -2.222 1.778 -2.222h6.667c1.333 0 2.222 0.889 2.222 1.778V31.111l-0.444 6.667c-0.444 2.667 -2.222 4.444 -4.889 4.444s-4.444 -1.778 -4.889 -4.444z"}),w.jsx("path",{fill:"#A41517",d:"M30.222 33.333h8.889V35.556h-2.222l-2.222 4.444 -2.222 -4.444h-2.222zM23.556 26.667h4.444v15.556h-4.444zm17.778 0h4.444v15.556h-4.444zm-11.111 -2.222c0 -1.333 0.889 -2.222 2.222 -2.222h4.444c1.333 0 2.222 0.889 2.222 2.222v0.889q0 1.333 -1.333 1.333H31.111c-0.444 0 -0.889 -0.444 -0.889 -0.889z"})]});case"pl-pl":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[w.jsxs("g",{children:[w.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),w.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"170.663",d:"M0 16.667H100V50H0V16.667z"})]}),w.jsx("path",{y:"256",fill:"#D80027",width:"512",height:"170.663",d:"M0 50H100V83.333H0V50z"})]});case"tr-tr":return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"0 -5000 15000 10000",children:[w.jsx("path",{fill:"#E30A17",d:"M0-5000h15000V5000H0z"}),w.jsx("path",{fill:"#FFFFFF",d:"m6958.333 0 2261.333-734.667-1397.667 1923.5v-2377.666l1397.667 1923.5zM7112.5 1336.833a2500 2500 0 1 1 0-2673.667 2000 2000 0 1 0 0 2673.667"})]});default:return null}},ZE=["de-de","en-gb","en-us","es-es","fr-fr","it-it","nl-be","nl-nl","pl-pl","pt-pt","tr-tr","undefined"],R8e=e=>{const{t}=Ht(),[n,r]=nt.useMessage(),[a,o]=l.useState([]),[i,s]=l.useState(),[c,u]=l.useState(!1),d="https://de1.api.radio-browser.info/json/";l.useEffect(()=>{(async()=>{try{(await fetch(d+"stats")).ok&&u(!0)}catch{console.log("Radio Browser API not available, disable radiostream search."),u(!1)}})()},[]);const f=(h,y)=>{let b;return(...S)=>{clearTimeout(b),b=setTimeout(()=>h.apply(void 0,S),y)}},p=async h=>{if(o([]),h==="")return;const y=encodeURIComponent(h),b=d+"stations/search?name="+y+"&is_https=true&hidebroken=true";try{const S=await fetch(b,{});if(!S.ok)throw new Error(S.status+" "+S.statusText);const C=await S.json(),x=Array.from(new Set(C.map(E=>E.url))).map(E=>{const I=C.find(R=>R.url===E);return{value:I.url,text:(I.country?"["+I.country+"] ":"")+I.name+(I.language?" ("+I.language+")":"")}});o(x)}catch(S){nt.error(t("radioStreamSearch.failedToFetchSearchResults")+S);return}},g=l.useCallback(f(p,300),[]),v=h=>{s(h),e.onChange(h)};return c?w.jsxs(w.Fragment,{children:[w.jsx(jn.Text,{style:{fontSize:"small",display:"inline-block",marginTop:"8px"},children:t("radioStreamSearch.searchLabel")}),r,w.jsx(br,{showSearch:!0,style:{margin:"8px 0"},value:i,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:g,onChange:v,notFoundContent:null,options:(a||[]).map(h=>({value:h.value,label:h.text}))})]}):w.jsx(w.Fragment,{})},zc=new Tn(hn()),{Meta:_8e}=dd,{Text:y5}=jn,{useToken:$8e}=vi,O8e=({tonieCard:e,lastRUIDs:t,overlay:n,readOnly:r,defaultLanguage:a="",onHide:o,onUpdate:i})=>{const{t:s}=Ht(),{token:c}=$8e(),[u,d]=l.useState(0),[f,p]=l.useState(e),[g,v]=nt.useMessage(),[m,h]=l.useState(f.nocloud),[y,b]=l.useState(f.live),[S,C]=l.useState(f.downloadTriggerUrl),{playAudio:x}=dO(),[E,I]=l.useState(!1),[R,T]=l.useState(!1),[_,$]=l.useState(!1),[D,P]=l.useState(f.tonieInfo.model),[A,O]=l.useState(""),[k,N]=l.useState({validateStatus:"",help:""}),[M,L]=l.useState(f.source),[F,j]=l.useState(""),[B,z]=l.useState({validateStatus:"",help:""}),H=async()=>{try{const Ce=await zc.apiGetTagInfo(f.ruid,n);p(Ce),i(Ce)}catch(Ce){nt.error("Error fetching updated card: "+Ce)}},U=`${f.tonieInfo.series}`+(f.tonieInfo.episode?` - ${f.tonieInfo.episode}`:""),X="sourceInfo"in f?`${f.sourceInfo.series}`+(f.sourceInfo.episode?` - ${f.sourceInfo.episode}`:""):"",W="sourceInfo"in f&&(f.sourceInfo.picture!==f.tonieInfo.picture&&U!==X||f.sourceInfo.picture===f.tonieInfo.picture&&U!==X),Y=(Ce,ze,Pe)=>{if(Ce&&Ce.length===1){const Se=(Pe==="library"?"lib:/":"content:/")+ze+"/"+Ce[0].name;j(Se)}else j(M)},te=()=>{$(!0)},ee=()=>{j(M),$(!1)},Z=()=>{O(D),j(M),T(!0)},oe=async()=>{try{M!==F&&await de(),D!==A&&await se()}catch{H();return}T(!1),H()},re=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"live="+!y,n),b(!y),y?nt.success(s("tonies.messages.liveDisabled")):nt.success(s("tonies.messages.liveEnabled")),H()}catch(Ce){nt.error(s("tonies.messages.couldNotChangeLiveFlag")+Ce)}},q=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"nocloud="+!m,n),p({...f,nocloud:!m}),h(!m),m?nt.success(s("tonies.messages.cloudAccessEnabled")):nt.success(s("tonies.messages.cloudAccessBlocked")),H()}catch(Ce){nt.error(s("tonies.messages.couldNotChangeCloudFlag")+Ce)}},Q=async Ce=>{x(Ce,W?f.sourceInfo:f.tonieInfo)},ae=async()=>{const Ce=f.downloadTriggerUrl;C("");try{g.open({type:"loading",content:s("tonies.messages.downloading"),duration:0});const Pe=await(await zc.apiGetTeddyCloudApiRaw(Ce)).blob();g.destroy(),g.open({type:"success",content:s("tonies.messages.downloadedFile")}),H()}catch(ze){g.destroy(),g.open({type:"error",content:s("tonies.messages.errorDuringDownload")+ze}),C(""+Ce)}},se=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"tonie_model="+encodeURIComponent(A),n),P(A),nt.success(s("tonies.messages.setTonieToModelSuccessful",{selectedModel:A||s("tonies.messages.setToEmptyValue")})),N({validateStatus:"",help:""})}catch(Ce){throw nt.error(s("tonies.messages.setTonieToModelFailed")+Ce),N({validateStatus:"error",help:s("tonies.messages.setTonieToModelFailed")+Ce}),Ce}},de=async()=>{try{await zc.apiPostTeddyCloudContentJson(f.ruid,"source="+encodeURIComponent(F),n),L(F),nt.success(s("tonies.messages.setTonieToSourceSuccessful",{selectedSource:F||s("tonies.messages.setToEmptyValue")})),z({validateStatus:"",help:""})}catch(Ce){throw nt.error(s("tonies.messages.setTonieToSourceFailed")+Ce),z({validateStatus:"error",help:s("tonies.messages.setTonieToSourceFailed")+Ce}),Ce}m||q()},he=Ce=>{O(Ce.target.value)},ye=Ce=>{j(Ce.target.value)},pe=t.filter(([Ce])=>Ce===f.ruid).map(([,Ce,ze])=>({ruidTime:Ce,boxName:ze})),J=Ce=>{O(Ce)},ce=Ce=>{j(Ce)},ue=w.jsxs(w.Fragment,{children:[w.jsxs("h3",{style:{lineHeight:0},children:[s("tonies.editModal.title"),f.tonieInfo.model?" ("+f.tonieInfo.model+")":""]}),f.tonieInfo.series?w.jsx(y5,{type:"secondary",children:U}):" "]}),fe=w.jsx(w.Fragment,{children:w.jsxs(Dt,{type:"primary",onClick:oe,disabled:M===F&&D===A,children:[w.jsx(BW,{},"saveClick")," ",s("tonies.editModal.save")]})}),be=w.jsxs(On,{open:R,onCancel:()=>T(!1),title:ue,footer:fe,width:700,children:[w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:s("tonies.editModal.source")}),w.jsx("div",{children:w.jsxs(Yt.Item,{validateStatus:B.validateStatus,help:B.help,children:[w.jsx(Jt,{value:F,width:"auto",onChange:ye,addonBefore:w.jsx(da,{onClick:()=>{j(M),z({validateStatus:"",help:""})},style:{color:M===F?c.colorTextDisabled:c.colorText,cursor:M===F?"default":"pointer"}}),addonAfter:w.jsx(W$,{onClick:()=>te()})}),w.jsx(R8e,{placeholder:s("tonies.editModal.placeholderSearchForARadioStream"),onChange:ce})]})}),w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:s("tonies.editModal.model")}),w.jsx("div",{children:w.jsxs(Yt.Item,{validateStatus:k.validateStatus,help:k.help,children:[w.jsx(Jt,{value:A,width:"auto",onChange:he,addonBefore:w.jsx(da,{onClick:()=>{O(D),N({validateStatus:"",help:""})},style:{color:D===A?c.colorTextDisabled:c.colorText,cursor:D===A?"default":"pointer"}})}),w.jsx(I8e,{placeholder:s("tonies.editModal.placeholderSearchForAModel"),onChange:J})]})})]}),Ee=w.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:c.colorBgElevated},children:[w.jsx(Dt,{onClick:ee,children:s("tonies.selectFileModal.cancel")}),w.jsx(Dt,{type:"primary",onClick:()=>$(!1),children:s("tonies.selectFileModal.ok")})]}),Re=w.jsx(On,{className:"sticky-footer",title:s("tonies.selectFileModal.selectFile"),open:_,onOk:()=>$(!1),onCancel:ee,width:"auto",footer:Ee,children:w.jsx(kg,{special:"library",maxSelectedRows:1,trackUrl:!1,onFileSelectChange:Y})}),Fe=r?[w.jsx(cu,{onClick:()=>{d(u+1),I(!0)}},"info"),f.valid||M.startsWith("http")?w.jsx(_l,{onClick:()=>Q(f.valid?""+f.audioUrl:M)},"playpause"):w.jsx(_l,{style:{cursor:"default",color:c.colorTextDisabled}},"playpause"),w.jsx(fD,{style:{cursor:"default",color:m?"red":c.colorTextDisabled}},"nocloud"),w.jsx(mD,{style:{cursor:"default",color:y?"red":c.colorTextDisabled}},"live")]:[w.jsx(cu,{onClick:()=>{d(u+1),I(!0)}},"info"),w.jsx(v0,{onClick:Z},"edit"),f.valid||M.startsWith("http")?w.jsx(_l,{onClick:()=>Q(f.valid?""+f.audioUrl:M)},"playpause"):S&&S.length>0?w.jsx(V$,{onClick:ae},"download"):w.jsx(_l,{style:{cursor:"default",color:c.colorTextDisabled}},"playpause"),w.jsx(fD,{style:{color:m?"red":c.colorTextDescription},onClick:q},"nocloud"),w.jsx(mD,{style:{color:y?"red":c.colorTextDescription},onClick:re},"live")];return w.jsxs(w.Fragment,{children:[v,w.jsx(dd,{hoverable:!1,size:"small",style:pe&&pe.length>0?{background:c.colorBgContainerDisabled,borderTop:"3px #1677ff inset"}:{background:c.colorBgContainerDisabled,paddingTop:"2px"},title:w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[w.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:f.tonieInfo.series?f.tonieInfo.series:s("tonies.unsetTonie")}),a!==f.tonieInfo.language?w.jsx(en,{placement:"top",zIndex:2,title:s("languageUtil."+f.tonieInfo.language),children:w.jsx(y5,{style:{height:20,width:"auto"},children:w.jsx(T8e,{countryCode:f.tonieInfo.language,height:20})})}):""]}),cover:w.jsxs("div",{style:{position:"relative"},children:[w.jsx("img",{alt:`${f.tonieInfo.series} - ${f.tonieInfo.episode}`,src:f.tonieInfo.picture?f.tonieInfo.picture:"/img_unknown.png",style:f.tonieInfo.picture.endsWith("img_unknown.png")?{padding:8,paddingTop:10,width:"100%"}:{padding:8,width:"100%"}}),W?w.jsx(en,{title:`${X}`?s("tonies.alternativeSource",{originalTonie:'"'+U+'"',assignedContent:'"'+X+'"'}).replace(' "" '," "):s("tonies.alternativeSourceUnknown",{originalTonie:'"'+U+'"'}).replace(' "" '," "),placement:"bottom",children:w.jsx("img",{src:f.sourceInfo.picture,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),actions:Fe,children:w.jsx(_8e,{title:`${f.tonieInfo.episode}`,description:f.uid})},f.ruid),w.jsx(AK,{open:E,onClose:()=>I(!1),tonieCardOrTAFRecord:f,readOnly:r,lastRUIDs:t,onHide:o,overlay:n},u),Re,be]})},N8e=({currentPage:e,onChange:t,total:n,pageSize:r,additionalButtonOnClick:a})=>{const{t:o}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(z$,{current:e,total:n,pageSize:r,onChange:t,showSizeChanger:!0,pageSizeOptions:["24","48","96","192"],locale:{items_per_page:o("tonies.tonies.pageSelector")},style:{marginBottom:8}}),w.jsx(Dt,{onClick:a,style:{marginLeft:16},children:o("tonies.tonies.showAll")})]})},{Option:k8e}=br,QE=new Tn(hn()),JE="toniesListState",XO=({tonieCards:e,showFilter:t,showPagination:n,overlay:r,readOnly:a,defaultLanguage:o="",onToniesCardUpdate:i})=>{const{t:s}=Ht(),c=ol(),[u,d]=l.useState(e),[f,p]=l.useState(""),[g,v]=l.useState(""),[m,h]=l.useState(""),[y,b]=l.useState([]),[S,C]=l.useState(!1),[x,E]=l.useState(!1),[I,R]=l.useState(!1),[T,_]=l.useState(!1),[$,D]=l.useState(!1),[P,A]=l.useState(!1),[O,k]=l.useState(!1),[N,M]=l.useState(!1),[L,F]=l.useState(!1),[j,B]=l.useState(!1),[z,H]=l.useState(!1),[U,X]=l.useState(!0),[W,Y]=l.useState(!0),[te,ee]=l.useState([]),[Z,oe]=l.useState(()=>{const me=localStorage.getItem(JE);if(me){const{pageSize:xe}=JSON.parse(me);return xe}return 24}),[re,q]=l.useState(1),[Q,ae]=l.useState(!0),[se,de]=l.useState(!1),[he,ye]=l.useState(!0),[pe,J]=l.useState([]),[ce,ue]=l.useState(0);l.useEffect(()=>{const me=localStorage.getItem(JE);if(me)try{const{pageSize:xe,showAll:Be}=JSON.parse(me);Be?ze():(oe(xe),Ae(1,xe))}catch(xe){console.error("Error parsing stored state:",xe)}else console.log("No stored state found.")},[]),l.useEffect(()=>{(async()=>{const xe=async He=>await QE.apiGetTonieboxLastRUID(He),Be=async He=>await QE.apiGetTonieboxLastRUIDTime(He),ke=await QE.apiGetTonieboxesIndex(),Ne=await Promise.all(ke.map(async He=>{const Ge=await xe(He.ID),je=await Be(He.ID);return[Ge,je,He.boxName]}));ee(Ne)})()},[]);const fe=l.useMemo(()=>e.map(me=>me.ruid).join(","),[e]);l.useEffect(()=>{const xe=new URLSearchParams(c.search).get("tonieRUID");if(xe){p(xe),X(!1);const Be=e.filter(ke=>ke.ruid.toLowerCase()===xe);d(Be)}else d(e);ue(Be=>Be+1),Y(!1)},[c.search,fe]),l.useEffect(()=>{q(1),ue(me=>me+1)},[fe]),l.useEffect(()=>{const me=JSON.stringify({pageSize:Z,paginationEnabled:Q,showAll:se});localStorage.setItem(JE,me)},[he,Z,Q,se]);const be=()=>{ye(!he)},Ee=me=>{i&&i(me),d(xe=>xe.map(Be=>Be.ruid===me.ruid?me:Be))},Re=()=>{let me=e.filter(xe=>{var Be,ke;return(((Be=xe.sourceInfo)==null?void 0:Be.series)&&xe.sourceInfo.series.toLowerCase().includes(g.toLowerCase())||xe.tonieInfo.series.toLowerCase().includes(g.toLowerCase()))&&(((ke=xe.sourceInfo)==null?void 0:ke.episode)&&xe.sourceInfo.episode.toLowerCase().includes(m.toLowerCase())||xe.tonieInfo.episode.toLowerCase().includes(m.toLowerCase()))&&(y.length===0||y.includes(xe.tonieInfo.language!==void 0&&ZE.includes(xe.tonieInfo.language)?xe.tonieInfo.language:"undefined")||y.includes(xe.sourceInfo&&xe.sourceInfo.language!==void 0&&ZE.includes(xe.sourceInfo.language)?xe.sourceInfo.language:"undefined"))&&(!x||xe.valid)&&(!I||!xe.valid)&&(!T||xe.exists)&&(!$||!xe.exists)&&(!P||xe.live)&&(!O||!xe.live)&&(!N||xe.nocloud)&&(!L||!xe.nocloud)&&(!j||xe.hasCloudAuth)&&(!z||!xe.hasCloudAuth)});f&&(me=me.filter(xe=>{var Be,ke,Ne;return xe.tonieInfo.series.toLowerCase().includes(f.toLowerCase())||((Be=xe.sourceInfo)==null?void 0:Be.series)&&xe.sourceInfo.series.toLowerCase().includes(f.toLowerCase())||xe.tonieInfo.episode.toLowerCase().includes(f.toLowerCase())||((ke=xe.sourceInfo)==null?void 0:ke.episode)&&xe.sourceInfo.episode.toLowerCase().includes(f.toLowerCase())||xe.tonieInfo.model.toLowerCase().includes(f.toLowerCase())||((Ne=xe.sourceInfo)==null?void 0:Ne.model)&&xe.sourceInfo.model.toLowerCase().includes(f.toLowerCase())||xe.ruid.toLowerCase().includes(f.toLowerCase())||xe.uid.toLowerCase().includes(f.toLowerCase())})),S&&(me=me.filter(xe=>te.some(([Be])=>Be===xe.ruid))),pe&&(me=me.filter(xe=>!pe.includes(xe.ruid))),q(1),d(me),ue(xe=>xe+1)},Fe=me=>{d(u.filter(xe=>xe.ruid!==me)),J(xe=>[...xe,me]),ue(xe=>xe+1)},Ce=()=>{p(""),v(""),h(""),E(!1),R(!1),_(!1),D(!1),A(!1),k(!1),M(!1),F(!1),B(!1),H(!1),C(!1),b([]);const me=window.location.pathname;window.history.pushState({},"",me),c.search="",pe&&(e=e.filter(xe=>!pe.includes(xe.ruid))),d(e),ue(xe=>xe+1)},ze=()=>{de(!0),ae(!1),be()},Pe=()=>{ae(!0),de(!1),Ae(1,Z)},Ae=(me,xe)=>{oe(xe),ue(Be=>Be+1),q(me),be(),window.scrollTo(0,0)};if(W)return w.jsx("div",{children:"Loading..."});const Se=()=>{if(se)return u!==null?u:e;{const me=(re-1)*Z,xe=me+Z;return u!==null?u.slice(me,xe):e.slice(me,xe)}},_e=w.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:Q?w.jsx(N8e,{currentPage:re,onChange:Ae,total:u!==null?u.length:e.length,pageSize:Z,additionalButtonOnClick:ze}):w.jsx(Dt,{onClick:Pe,children:s("tonies.tonies.showPagination")})}),we=w.jsxs(w.Fragment,{children:[w.jsx("label",{htmlFor:"search-field",className:"filter-label",children:s("tonies.tonies.filterBar.searchLabel")}),w.jsx(Jt.Search,{id:"search-field",placeholder:s("tonies.tonies.filterBar.searchPlaceholder"),value:f,onChange:me=>p(me.target.value),onSearch:Re,enterButton:!0,style:{margin:"8px 0 8px 0"}}),w.jsxs("div",{className:"filter-container",children:[w.jsx("label",{className:"filter-label",children:s("tonies.tonies.filterBar.filterLabel")}),w.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.seriesFilterPlaceholder"),value:g,onChange:me=>v(me.target.value)}),w.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.episodeFilterPlaceholder"),value:m,onChange:me=>h(me.target.value)}),w.jsx(br,{mode:"multiple",placeholder:s("tonies.tonies.filterBar.languagePlaceholder"),value:y,onChange:me=>b(me),style:{width:"100%",margin:"8px 0"},children:ZE.map(me=>w.jsx(k8e,{value:me,children:s(me?"languageUtil."+me:"languageUtil.other")},me))}),w.jsxs("div",{children:[w.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:[w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:x,onChange:me=>E(me)}),s("tonies.tonies.filterBar.valid")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:I,onChange:me=>R(me)}),s("tonies.tonies.filterBar.invalid")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:T,onChange:me=>_(me)})," ",s("tonies.tonies.filterBar.exists")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:$,onChange:me=>D(me)}),s("tonies.tonies.filterBar.notExists")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:P,onChange:me=>A(me)})," ",s("tonies.tonies.filterBar.live")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:O,onChange:me=>k(me)})," ",s("tonies.tonies.filterBar.unsetLive")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:L,onChange:me=>F(me)}),s("tonies.tonies.filterBar.unsetNoCloud")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:N,onChange:me=>M(me)}),s("tonies.tonies.filterBar.noCloud")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:j,onChange:me=>B(me)}),s("tonies.tonies.filterBar.hasCloudAuth")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:z,onChange:me=>H(me)}),s("tonies.tonies.filterBar.unsetHasCloudAuth")]}),w.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[w.jsx(va,{checked:S,onChange:me=>C(me)}),s("tonies.tonies.filterBar.lastPlayed")]})]}),w.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",marginTop:8},children:[w.jsx(Dt,{onClick:Ce,style:{marginLeft:16},children:s("tonies.tonies.filterBar.resetFilters")}),w.jsx(Dt,{onClick:Re,style:{marginLeft:16},children:s("tonies.tonies.filterBar.applyFilters")})]})]})]})]}),Te=[{key:"search-filter",label:s(U?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:we}];return w.jsxs("div",{className:"tonies-list-container",children:[t?w.jsx(A$,{items:Te,defaultActiveKey:U?[]:["search-filter"],onChange:()=>X(!U),bordered:!1}):"",w.jsx(Us,{header:n?_e:"",footer:n?_e:"",grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:4,xxl:6},dataSource:Se(),renderItem:me=>w.jsx(Us.Item,{id:me.ruid,children:w.jsx(O8e,{tonieCard:me,lastRUIDs:te,overlay:r,readOnly:a,defaultLanguage:o,onHide:Fe,onUpdate:Ee})})},ce)]})},Kd=new Tn(hn()),{Paragraph:Vm}=jn,A8e=()=>{const{t:e}=Ht(),[t,n]=l.useState([]),[r,a]=l.useState(!1),[o,i]=l.useState(!1),[s,c]=l.useState(""),[u,d]=l.useState([]);l.useEffect(()=>{(async()=>{const h=await Kd.apiGetSecurityMITAlert();a(h)})(),(async()=>{try{const h=await Kd.apiGetNewBoxesAllowed();i(h),h&&(async()=>{const b=await Kd.apiGetTonieboxesIndex(),S=await Promise.all(b.map(async C=>{const x=await Kd.apiGetTonieboxApiAccess(C.ID);return[C.boxName,x]}));d(S)})()}catch(h){nt.error("Error: "+h)}})(),(async()=>{const h=(await Kd.apiGetTagIndexMergedAllOverlays(!0)).filter(y=>!y.hide);n(h.sort((y,b)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())))})()},[]),l.useEffect(()=>{const g={};t.forEach(h=>{const y=h.tonieInfo.language;g[y]?g[y]++:g[y]=1});let v=0,m="";for(const h in g)g.hasOwnProperty(h)&&g[h]>v&&(v=g[h],m=h);c(m)},[t]);const f=u.filter(g=>!g[1]),p=o?w.jsxs(w.Fragment,{children:[w.jsx(Mr,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}),f.length>0&&w.jsx(Mr,{message:e("tonieboxes.boxWithoutAPIAccess"),description:w.jsxs(w.Fragment,{children:[e("tonieboxes.boxWithoutAPIAccessText"),w.jsx("ul",{children:f.map(g=>w.jsx("li",{children:g[0]},g[0]))}),e("tonieboxes.boxWithoutAPIAccessGoToTonieboxes"),w.jsx(At,{to:"/tonieboxes",children:e("tonieboxes.navigationTitle")})]}),type:"info",showIcon:!0,style:{margin:"16px 0"}})]}):null;return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs(Vm,{children:[w.jsx("h1",{children:e("home.title")}),r?w.jsx(Mr,{message:e("security.alert"),description:e("security.incident_detected"),type:"error",showIcon:!0,style:{margin:"16px 0"}}):"",e("home.intro"),p]}),w.jsxs(Vm,{children:[e("home.forumIntroPart1"),w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:"https://forum.revvox.de/"}),e("home.forumIntroPart2")]}),w.jsxs(Vm,{children:[w.jsx("h2",{children:e("home.yourTonies")}),w.jsx(XO,{tonieCards:t.filter(g=>g.type==="tag"&&g.tonieInfo.series).slice(0,6),overlay:"",showFilter:!1,showPagination:!1,readOnly:!0,defaultLanguage:s}),w.jsx(Dt,{children:w.jsxs(At,{to:"/tonies",children:[e("home.toAllYourTonies")," (",t.filter(g=>g.type==="tag").length,")"]})})]}),w.jsxs(Vm,{children:[w.jsx("h2",{children:e("home.helpfulLinks")}),w.jsxs("ul",{children:[w.jsx("li",{children:w.jsx(At,{to:"/community/faq",children:"FAQ"})}),w.jsx("li",{children:w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"})}),w.jsx("li",{children:w.jsx(At,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"})}),w.jsx("li",{children:w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"})}),w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:"TeddyCloud Wiki"})})]})]})]})]})]})},{useToken:M8e}=vi,D8e=()=>{const{token:e}=M8e();return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",width:"100%",viewBox:"0 0 512 512",children:[w.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M285.000000,95.000000 C285.726776,91.291718 284.143219,89.788498 280.551392,88.369873 C247.948990,75.493263 212.672882,91.508270 199.495224,122.998001 C196.613541,129.884201 195.385559,137.055237 195.485504,144.500198 C195.559326,149.999207 195.570007,155.501114 195.483032,160.999725 C195.362961,168.591705 191.442429,172.487579 184.000000,172.494614 C166.333344,172.511307 148.666656,172.510849 131.000000,172.494736 C123.739044,172.488113 119.744461,168.704391 119.512695,161.499588 C118.937752,143.626343 119.484947,125.767700 124.620247,108.535835 C129.305405,92.814384 136.600082,78.329407 146.361160,64.899094 C160.063324,46.046219 177.407562,31.600046 198.103745,21.717247 C219.862259,11.327159 243.132431,6.942070 267.508698,8.891317 C284.115204,10.219257 299.968292,14.037633 314.973419,21.056805 C338.704193,32.157684 357.928345,48.584900 372.550323,70.466385 C383.991730,87.588272 391.730164,106.267952 394.317322,126.523338 C399.345093,165.887207 389.786652,201.671356 364.978485,232.982956 C350.265991,251.552322 331.599060,265.211121 309.924530,274.320435 C296.501526,279.961792 282.229004,283.352203 267.499878,283.997559 C263.333923,284.180115 259.162445,284.263275 255.000793,284.513092 C242.331039,285.273529 234.536453,294.940430 234.510101,310.000031 C234.471024,332.333282 234.502640,354.666656 234.498566,377.000000 C234.497147,384.740631 230.771179,388.486389 223.000000,388.494385 C205.666687,388.512268 188.326492,388.221069 171.003571,388.645569 C164.614304,388.802094 159.267792,383.378479 159.354935,376.998016 C159.705429,351.336151 159.031464,325.655487 159.642624,300.003387 C160.167542,277.971313 168.603424,258.489746 183.103546,242.091568 C198.977600,224.139587 218.895264,213.013474 242.995743,209.966385 C250.478912,209.020279 258.084564,209.344330 265.476685,208.330063 C284.746246,205.686066 300.188782,196.120834 310.413757,179.447113 C323.347626,158.355911 322.759064,136.763321 311.652649,114.922371 C309.739319,111.159721 306.957031,112.566917 304.500000,111.750000"}),w.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M197.500000,506.500000 C203.208725,504.136566 209.499985,503.955261 215.081406,500.636932 C226.722000,493.716095 233.515152,484.355804 234.104324,470.504425 C234.416428,463.166840 234.755539,456.042480 232.056686,448.978333 C227.973969,438.291962 214.538635,425.846741 198.510223,425.232910 C181.959915,424.599152 164.725250,435.753998 160.707718,453.048248 C155.331696,476.190460 163.819122,500.451569 192.494766,505.032776 C194.035324,505.278900 195.500000,506.000000 197.000000,506.500000"})]})},P8e=new Tn(hn()),{useToken:L8e}=vi,ZO=({maxNoOfGuests:e,toniesSize:t,showQuestionMark:n,title:r,description:a,height:o=(s=>(s=document.getElementById("collage-container"))==null?void 0:s.clientHeight)()||0,width:i=(c=>(c=document.getElementById("collage-container"))==null?void 0:c.clientWidth)()||0})=>{var b,S;const{token:u}=L8e(),[d,f]=l.useState([]),p=i,g=o,v=50,m=50,h=(((b=document.getElementById("central-text"))==null?void 0:b.clientWidth)||0)/(p<450?3:2),y=(((S=document.getElementById("central-text"))==null?void 0:S.clientHeight)||0)/(g<500?3:2);return l.useEffect(()=>{(async()=>{const I=(await P8e.apiGetTagIndexMergedAllOverlays(!1)).sort((R,T)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())).filter(R=>!R.tonieInfo.picture.endsWith("/img_unknown.png")&&R.tonieInfo.picture!==null&&R.tonieInfo.picture!==void 0&&R.tonieInfo.picture!==""&&!R.nocloud).slice(0,e).flatMap(R=>R.tonieInfo.picture).map((R,T)=>{if(r&&a){let _,$;do _=Math.random()*(100-t/g*100),$=Math.random()*(100-t/p*100);while(0v-y/g*100-t/g*100&&_m-h/p*100-t/p*100&&$w.jsxs("div",{className:"collage-image-container",style:{position:"absolute",top:C.top,left:C.left,width:"150px",height:"150px",overflow:"hidden",pointerEvents:"none"},children:[w.jsx("img",{src:C.src,alt:`Random ${C.id}`,className:"collage-image",style:{width:"100%",height:"100%",objectFit:"cover"}}),n&&w.jsx("div",{className:"question-mark-overlay",style:{position:"absolute",top:"5%",right:"20%",width:"30%",height:"30%",display:"flex",alignItems:"center",justifyContent:"center"},children:w.jsx(D8e,{})})]},C.id))]})},{Paragraph:F8e}=jn,j8e=()=>{const{t:e}=Ht();return w.jsx(w.Fragment,{children:w.jsx(Xn,{children:w.jsx(F8e,{children:w.jsx(ZO,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!0,title:e("404.title"),description:e("404.description")})})})})},B8e=new Tn(hn()),z8e=()=>{var a;const{t:e}=Ht(),[t,n]=l.useState(),r=async()=>{var i,s;const o=await B8e.apiStatsGet();(i=o==null?void 0:o.stats)!=null&&i.length&&((s=o==null?void 0:o.stats)==null?void 0:s.length)>0&&n(o)};return l.useEffect(()=>{r()},[]),l.useEffect(()=>{const o=setInterval(()=>{r()},1e4);return()=>clearInterval(o)},[]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("home.stats.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("home.stats.title")}),(a=t==null?void 0:t.stats)==null?void 0:a.map(o=>w.jsxs("div",{children:[w.jsx("h2",{children:e("home.stats."+o.iD)}),w.jsx("p",{children:o.value})]},o.iD))]})]})]})},H8e="/web/assets/logo-aw46LCqE.png",U8e=new gq(hn()),V8e=new uRe(hn()),W8e=()=>{const{t:e}=Ht(),[t,n]=l.useState(!1),[r,a]=l.useState(!1),o=async()=>{try{(await U8e.v1TimeGet()).length===10&&a(!0)}catch{a(!1)}try{(await V8e.reverseV1TimeGet()).length===10&&n(!0)}catch{n(!1)}};return l.useEffect(()=>{o()},[]),w.jsxs(Mo,{children:[w.jsx(en,{title:e(t?"server.boxineStatusOnline":"server.boxineStatusOffline"),children:w.jsxs(kv,{icon:t?w.jsx(uD,{}):w.jsx(dD,{}),color:t?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[w.jsx(Nn,{children:"B"}),w.jsx(Op,{children:"Boxine"})]})}),w.jsx(en,{title:e(r?"server.teddycloudStatusOnline":"server.teddycloudStatusOffline"),children:w.jsxs(kv,{icon:r?w.jsx(uD,{}):w.jsx(dD,{}),color:r?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[w.jsx(Nn,{children:"TC"}),w.jsx(Op,{children:"TeddyCloud"})]})})]})},G8e=()=>{var o;const{t:e,i18n:t}=Ht(),n=i=>{t.changeLanguage(i)},r=[{key:"1",label:e("language.english"),onClick:()=>n("en")},{key:"2",label:e("language.german"),onClick:()=>n("de")},{key:"3",label:e("language.french"),onClick:()=>n("fr")}],a=t.language;return w.jsx(Mo,{children:w.jsx(f0,{menu:{items:r},trigger:["click"],children:w.jsx("a",{href:"/",onClick:i=>i.preventDefault(),title:e("language.change"),children:w.jsxs(kv,{color:"transparent",children:[w.jsx(dSe,{})," ",w.jsx("strong",{children:(o=r.find(i=>i.onClick&&i.onClick.toString().includes(a)))==null?void 0:o.label})]})})})})},{useToken:q8e}=vi,K8e=ma.img` height: 32px; `,Y8e=ma(wW)` color: white; @@ -577,7 +577,7 @@ html body { margin-right: 12px; display: flex; align-items: center; -`,Q8e=({themeSwitch:e})=>{const{t}=Vt(),{token:n}=q8e(),[r,a]=l.useState(!1),o=ol();l.useEffect(()=>{const c=document.querySelector('meta[name="theme-color"]');if(c)c.setAttribute("content",n.colorBgBase);else{const u=document.createElement("meta");u.name="theme-color",u.content=n.colorBgBase,document.head.appendChild(u)}},[n.colorBgBase]);const i=[{key:"/",label:w.jsx(At,{to:"/",children:t("home.navigationTitle")}),onClick:()=>a(!1)},{key:"tonies",label:w.jsx(At,{to:"/tonies",children:t("tonies.navigationTitle")}),onClick:()=>a(!1)},{key:"tonieboxes",label:w.jsx(At,{to:"/tonieboxes",children:t("tonieboxes.navigationTitle")}),onClick:()=>a(!1)},{key:"settings",label:w.jsx(At,{to:"/settings",children:t("settings.navigationTitle")}),onClick:()=>a(!1)},{key:"community",label:w.jsx(At,{to:"/community",children:t("community.navigationTitle")}),onClick:()=>a(!1)}];let s=o.pathname.split("/")[1];return s||(s="/"),s==="home"&&(s="/"),w.jsxs(Y8e,{children:[w.jsx(At,{to:"/",style:{color:"white"},children:w.jsxs(Z8e,{children:[w.jsx(K8e,{src:H8e}),w.jsx(Op,{children:" TeddyCloud Server"})]})}),w.jsx(Op,{children:w.jsx(pi,{theme:"dark",mode:"horizontal",items:i,selectedKeys:[s],style:{width:"calc(100vw - 480px)",background:"#141414 !important"}})}),w.jsxs(X8e,{children:[w.jsx(W8e,{}),e,w.jsx(G8e,{}),w.jsxs($n,{children:[w.jsx(Pt,{className:"barsMenu",type:"primary",onClick:()=>a(!0),icon:w.jsx(jSe,{})}),w.jsx(sW,{placement:"right",open:r,onClose:()=>a(!1),children:w.jsx(pi,{mode:"vertical",items:i,selectedKeys:[s]})})]})]})]})},{useToken:J8e}=hi,eFe=()=>J8e().token,tFe=({onVisibilityChange:e})=>{const{t}=Vt(),{songImage:n,songArtist:r,songTitle:a,songTracks:o}=dO(),i=document.getElementById("globalAudioPlayer"),[s,c]=l.useState("none"),[u,d]=l.useState(!1),[f,p]=l.useState(!1),[g,v]=l.useState(0),[m,h]=l.useState("0:00"),[y,b]=l.useState("0:00"),[S,C]=l.useState(0),[x,E]=l.useState({left:0,top:0,visible:!1}),[I,R]=l.useState(!1),[T,_]=l.useState(100),[$,D]=l.useState(100),[P,A]=l.useState(!1),[O,k]=l.useState(!1);l.useEffect(()=>{i&&(T===null?i.volume=0:i.volume=T/100)},[T,i]);const N=fe=>{Array.isArray(fe)||_(fe)},M=()=>{D(T),_(0)},L=()=>{_($)},F=()=>{p(!0)},j=()=>{p(!1)},B=()=>{p(!1)},z=()=>{i.play()},H=()=>{i.pause()},U=()=>{re(),i.src="",i.removeAttribute("src"),i.load(),c("none"),e()};l.useEffect(()=>{e(),i!=null&&i.src&&s==="none"&&c("flex")},[s,i==null?void 0:i.src,e]);const X=fe=>{const be=fe.target,Te=Math.floor(be.currentTime/60),_e=Math.floor(be.currentTime%60);v(be.currentTime/i.duration*100),h(`${Te}:${_e<10?"0":""}${_e}`)};l.useEffect(()=>{const fe=document.getElementById("globalAudioPlayer");fe.addEventListener("loadedmetadata",()=>{const be=Math.floor(fe.duration/60),Te=Math.floor(fe.duration%60);b(`${be}:${Te<10?"0":""}${Te}`)}),fe.addEventListener("progress",()=>{if(fe.buffered.length>0){const be=fe.buffered.end(fe.buffered.length-1),Te=fe.duration;Te>0&&C(be/Te*100)}})},[]);const W=fe=>{if("touches"in fe){const be=fe.touches[0],Te=fe.currentTarget.getBoundingClientRect(),_e=be.clientX-Te.left,Pe=Te.height/2;E({left:_e,top:Pe,visible:!0}),i.currentTime=_e/(u?100:150)*i.duration,k(!0)}else{const be=fe.currentTarget.getBoundingClientRect(),Te=fe.clientX-be.left,_e=be.height/2;E({left:Te,top:_e,visible:!0}),I&&te()}},Y=()=>{E({left:0,top:0,visible:!1})},te=()=>{O?(k(!1),Y()):i.currentTime=x.left/(u?100:150)*i.duration},ee=fe=>{R(!0)},Z=fe=>{R(!1)},oe=()=>{d(!u),e()},re=()=>{A(!1)},q=()=>{A(!0)},Q=()=>{let fe=0;for(;i.currentTime>o[fe]/3.15&&(fe++,!(fe>o.length)););fe>1&&fe<=o.length?i.currentTime=o[fe-2]/3.15:fe<=1&&(i.currentTime=0)},ae=()=>{let fe=0;for(;i.currentTime>o[fe]/3.15&&(fe++,!(fe>o.length)););fe{const fe=be=>{be?(i==null||i.play(),p(!0)):(i==null||i.pause(),p(!1))};navigator.mediaSession&&(navigator.mediaSession.metadata=new MediaMetadata({title:a||"",artist:r||"",artwork:[{src:n||"",sizes:"96x96,128x128,192x192,256x256,384x384,512x512"}]}),navigator.mediaSession.setActionHandler("play",()=>{fe(!0)}),navigator.mediaSession.setActionHandler("pause",()=>{fe(!1)}),navigator.mediaSession.setActionHandler("previoustrack",Q),o.length>0&&navigator.mediaSession.setActionHandler("nexttrack",ae))},[a,r,n,o,i]),l.useEffect(()=>{if(navigator.mediaSession&&i){const fe=i.duration||0,be=g*fe/100||0,Te=i.playbackRate||1;try{navigator.mediaSession.setPositionState({duration:fe,position:be,playbackRate:Te})}catch(_e){console.error("Error setting media session position state:",_e)}}},[g,i]);const se=window.innerWidth<=768,de=se?{...On.innerContainer,flexDirection:"column",alignItems:"center",width:"100%",gap:8}:On.innerContainer,he=se?{...On.controls2,width:"100%"}:On.controls2,ye=se?{...On.progressBar,width:200,marginRight:0}:On.progressBar;l.useEffect(()=>{e()},[e,se]);const pe=w.jsxs(w.Fragment,{children:[u?w.jsx(M0e,{onClick:oe}):w.jsx($1e,{onClick:oe}),w.jsx(iU,{title:w.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[w.jsxs("div",{children:[w.jsx(VW,{})," ",t("tonies.closeAudioPlayerPopover")]}),w.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:8},children:[w.jsx(Pt,{onClick:re,children:t("tonies.cancel")}),w.jsx(Pt,{onClick:U,children:t("tonies.closeAudioPlayer")})]})]}),open:P,trigger:"click",onOpenChange:re,className:"closePlayerPopover",placement:"top",style:{right:8},children:w.jsx(da,{style:{margin:"0 0 0 10px"},onClick:q})})]}),J=w.jsxs(w.Fragment,{children:[w.jsx(h0,{type:"line",success:{percent:g,strokeColor:"#1677ff"},percent:S,strokeColor:"#272727",format:()=>"",status:"active",showInfo:!1}),x.visible&&w.jsx("svg",{style:{position:"absolute",left:x.left,top:x.top,transform:"translate(-50%, -50%)"},width:"16",height:"16",viewBox:"0 0 16 16",children:w.jsx("circle",{cx:"8",cy:"8",r:"8",fill:"rgba(0,0,0,0.5)"})})]}),ce=u?w.jsx(w.Fragment,{children:w.jsx("span",{id:"minimalAudioPlayer",style:{...de,display:u?"flex":"none",padding:0},children:w.jsxs("div",{style:On.trackInfo,children:[f?w.jsx(gD,{style:{fontSize:24,marginRight:8},onClick:H}):w.jsx(_l,{style:{fontSize:24,marginRight:8},onClick:z}),n&&w.jsx("img",{src:n,alt:"Song",style:On.songImage}),y.startsWith("Infinity")?w.jsx("div",{style:{...On.playPositionContainer,marginRight:0},children:w.jsxs("div",{style:{display:"flex"},children:[w.jsx("div",{style:{textAlign:"center",marginBottom:0},children:" "}),w.jsx("span",{children:pe})]})}):w.jsxs("div",{style:{...On.playPositionContainer,marginRight:0},children:[w.jsxs("div",{style:{display:"flex"},children:[w.jsxs("div",{style:{textAlign:"center",marginBottom:0},children:[m," / ",y]}),w.jsx("span",{style:{margin:0,marginLeft:16,textAlign:"right"},children:pe})]}),w.jsx("div",{style:{...ye,width:100},onMouseDown:ee,onMouseMove:W,onMouseUp:Z,onMouseLeave:Y,onTouchStart:W,onTouchMove:W,onClick:te,children:J})]})]})})}):"",ue=u?"":w.jsxs(w.Fragment,{children:[w.jsx("span",{id:"normalAudioPlayer",style:{margin:0,marginLeft:16,textAlign:"right",display:u?"none":"flex",position:"absolute"},children:pe}),w.jsxs("span",{style:{...de,display:u?"none":"flex"},children:[w.jsxs("div",{id:"audioPlayer",style:On.controls,children:[w.jsx(M1e,{style:On.controlButton,onClick:Q}),f?w.jsx(gD,{style:On.controlButton,onClick:H}):w.jsx(_l,{style:On.controlButton,onClick:z}),w.jsx(L1e,{style:{...On.controlButton,cursor:o.length===0?"default":"pointer",opacity:o.length===0?.25:1},disabled:o.length===0,onClick:ae})]}),w.jsxs("div",{style:On.trackInfo,children:[n&&w.jsx("img",{src:n,alt:"Song",style:On.songImage}),w.jsxs("div",{style:On.songContainer,children:[w.jsx("div",{children:a}),w.jsx("div",{children:r})]})]}),y.startsWith("Infinity")?"":w.jsxs("div",{style:On.playPositionContainer,children:[w.jsx("div",{children:w.jsxs("div",{style:{textAlign:"center"},children:[m," / ",y]})}),w.jsx("div",{style:ye,onMouseDown:ee,onMouseMove:W,onMouseUp:Z,onMouseLeave:Y,onTouchStart:W,onTouchMove:W,onClick:te,children:J})]}),w.jsx("div",{style:he,children:w.jsxs("div",{style:{...On.controls,position:"relative"},children:[w.jsx(ZSe,{style:{...On.controlButton,...On.volumeIcon,display:(T||0)===0?"block":"none"},onClick:L}),w.jsx(zW,{style:{...On.controlButton,...On.volumeIcon,display:(T||0)>0?"block":"none"},onClick:M}),w.jsx("div",{style:On.volumeSlider,children:w.jsx(Nhe,{min:0,max:100,value:T||0,onChange:N})})]})})]})]});return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{...On.container,display:s,visibility:i!=null&&i.src?"visible":"hidden",height:i!=null&&i.src?"auto":"0",margin:i!=null&&i.src?"0":"-24px",marginBottom:i!=null&&i.src?"8px":"0",overflow:"hidden"},children:[ce,ue]}),w.jsx("audio",{id:"globalAudioPlayer",controls:!0,onPlay:F,onPause:j,onEnded:B,onTimeUpdate:X,style:{display:"none"},children:"Your browser does not support the audio element."})]})},On={container:{flexDirection:"column",alignItems:"flex-end",objectPosition:"top",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},innerContainer:{justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},controls:{display:"flex",alignItems:"center"},controlButton:{fontSize:24,margin:"0 10px",cursor:"pointer"},trackInfo:{display:"flex",alignItems:"center",justifyContent:"center"},songImage:{width:"auto",height:40,borderRadius:"50%",marginRight:10},songContainer:{},songTitle:{display:"block"},songArtist:{display:"block"},progressBar:{display:"block",position:"relative",width:150,marginRight:10},playPosition:{fontSize:14,width:"100%"},playPositionContainer:{marginLeft:10,marginRight:10},controls2:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24},volumeSlider:{width:100,position:"releative",marginRight:16,top:"calc(100% + 10px)",zIndex:1e3,backgroundColor:`${()=>eFe().colorBgContainer}`,padding:0},volumeIcon:{fontSize:24,cursor:"pointer",marginBottom:0}},nFe=ma(CW)` +`,Q8e=({themeSwitch:e})=>{const{t}=Ht(),{token:n}=q8e(),[r,a]=l.useState(!1),o=ol();l.useEffect(()=>{const c=document.querySelector('meta[name="theme-color"]');if(c)c.setAttribute("content",n.colorBgBase);else{const u=document.createElement("meta");u.name="theme-color",u.content=n.colorBgBase,document.head.appendChild(u)}},[n.colorBgBase]);const i=[{key:"/",label:w.jsx(At,{to:"/",children:t("home.navigationTitle")}),onClick:()=>a(!1)},{key:"tonies",label:w.jsx(At,{to:"/tonies",children:t("tonies.navigationTitle")}),onClick:()=>a(!1)},{key:"tonieboxes",label:w.jsx(At,{to:"/tonieboxes",children:t("tonieboxes.navigationTitle")}),onClick:()=>a(!1)},{key:"settings",label:w.jsx(At,{to:"/settings",children:t("settings.navigationTitle")}),onClick:()=>a(!1)},{key:"community",label:w.jsx(At,{to:"/community",children:t("community.navigationTitle")}),onClick:()=>a(!1)}];let s=o.pathname.split("/")[1];return s||(s="/"),s==="home"&&(s="/"),w.jsxs(Y8e,{children:[w.jsx(At,{to:"/",style:{color:"white"},children:w.jsxs(Z8e,{children:[w.jsx(K8e,{src:H8e}),w.jsx(Op,{children:" TeddyCloud Server"})]})}),w.jsx(Op,{children:w.jsx(gi,{theme:"dark",mode:"horizontal",items:i,selectedKeys:[s],style:{width:"calc(100vw - 480px)",background:"#141414 !important"}})}),w.jsxs(X8e,{children:[w.jsx(W8e,{}),e,w.jsx(G8e,{}),w.jsxs(Nn,{children:[w.jsx(Dt,{className:"barsMenu",type:"primary",onClick:()=>a(!0),icon:w.jsx(jSe,{})}),w.jsx(sW,{placement:"right",open:r,onClose:()=>a(!1),children:w.jsx(gi,{mode:"vertical",items:i,selectedKeys:[s]})})]})]})]})},{useToken:J8e}=vi,eFe=()=>J8e().token,tFe=({onVisibilityChange:e})=>{const{t}=Ht(),{songImage:n,songArtist:r,songTitle:a,songTracks:o}=dO(),i=document.getElementById("globalAudioPlayer"),[s,c]=l.useState("none"),[u,d]=l.useState(!1),[f,p]=l.useState(!1),[g,v]=l.useState(0),[m,h]=l.useState("0:00"),[y,b]=l.useState("0:00"),[S,C]=l.useState(0),[x,E]=l.useState({left:0,top:0,visible:!1}),[I,R]=l.useState(!1),[T,_]=l.useState(100),[$,D]=l.useState(100),[P,A]=l.useState(!1),[O,k]=l.useState(!1);l.useEffect(()=>{i&&(T===null?i.volume=0:i.volume=T/100)},[T,i]);const N=fe=>{Array.isArray(fe)||_(fe)},M=()=>{D(T),_(0)},L=()=>{_($)},F=()=>{p(!0)},j=()=>{p(!1)},B=()=>{p(!1)},z=()=>{i.play()},H=()=>{i.pause()},U=()=>{re(),i.src="",i.removeAttribute("src"),i.load(),c("none"),e()};l.useEffect(()=>{e(),i!=null&&i.src&&s==="none"&&c("flex")},[s,i==null?void 0:i.src,e]);const X=fe=>{const be=fe.target,Ee=Math.floor(be.currentTime/60),Re=Math.floor(be.currentTime%60);v(be.currentTime/i.duration*100),h(`${Ee}:${Re<10?"0":""}${Re}`)};l.useEffect(()=>{const fe=document.getElementById("globalAudioPlayer");fe.addEventListener("loadedmetadata",()=>{const be=Math.floor(fe.duration/60),Ee=Math.floor(fe.duration%60);b(`${be}:${Ee<10?"0":""}${Ee}`)}),fe.addEventListener("progress",()=>{if(fe.buffered.length>0){const be=fe.buffered.end(fe.buffered.length-1),Ee=fe.duration;Ee>0&&C(be/Ee*100)}})},[]);const W=fe=>{if("touches"in fe){const be=fe.touches[0],Ee=fe.currentTarget.getBoundingClientRect(),Re=be.clientX-Ee.left,Fe=Ee.height/2;E({left:Re,top:Fe,visible:!0}),i.currentTime=Re/(u?100:150)*i.duration,k(!0)}else{const be=fe.currentTarget.getBoundingClientRect(),Ee=fe.clientX-be.left,Re=be.height/2;E({left:Ee,top:Re,visible:!0}),I&&te()}},Y=()=>{E({left:0,top:0,visible:!1})},te=()=>{O?(k(!1),Y()):i.currentTime=x.left/(u?100:150)*i.duration},ee=fe=>{R(!0)},Z=fe=>{R(!1)},oe=()=>{d(!u),e()},re=()=>{A(!1)},q=()=>{A(!0)},Q=()=>{let fe=0;for(;i.currentTime>o[fe]/3.15&&(fe++,!(fe>o.length)););fe>1&&fe<=o.length?i.currentTime=o[fe-2]/3.15:fe<=1&&(i.currentTime=0)},ae=()=>{let fe=0;for(;i.currentTime>o[fe]/3.15&&(fe++,!(fe>o.length)););fe{const fe=be=>{be?(i==null||i.play(),p(!0)):(i==null||i.pause(),p(!1))};navigator.mediaSession&&(navigator.mediaSession.metadata=new MediaMetadata({title:a||"",artist:r||"",artwork:[{src:n||"",sizes:"96x96,128x128,192x192,256x256,384x384,512x512"}]}),navigator.mediaSession.setActionHandler("play",()=>{fe(!0)}),navigator.mediaSession.setActionHandler("pause",()=>{fe(!1)}),navigator.mediaSession.setActionHandler("previoustrack",Q),o.length>0&&navigator.mediaSession.setActionHandler("nexttrack",ae))},[a,r,n,o,i]),l.useEffect(()=>{if(navigator.mediaSession&&i){const fe=i.duration||0,be=g*fe/100||0,Ee=i.playbackRate||1;try{navigator.mediaSession.setPositionState({duration:fe,position:be,playbackRate:Ee})}catch(Re){console.error("Error setting media session position state:",Re)}}},[g,i]);const se=window.innerWidth<=768,de=se?{...kn.innerContainer,flexDirection:"column",alignItems:"center",width:"100%",gap:8}:kn.innerContainer,he=se?{...kn.controls2,width:"100%"}:kn.controls2,ye=se?{...kn.progressBar,width:200,marginRight:0}:kn.progressBar;l.useEffect(()=>{e()},[e,se]);const pe=w.jsxs(w.Fragment,{children:[u?w.jsx(M0e,{onClick:oe}):w.jsx($1e,{onClick:oe}),w.jsx(iU,{title:w.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[w.jsxs("div",{children:[w.jsx(VW,{})," ",t("tonies.closeAudioPlayerPopover")]}),w.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:8},children:[w.jsx(Dt,{onClick:re,children:t("tonies.cancel")}),w.jsx(Dt,{onClick:U,children:t("tonies.closeAudioPlayer")})]})]}),open:P,trigger:"click",onOpenChange:re,className:"closePlayerPopover",placement:"top",style:{right:8},children:w.jsx(da,{style:{margin:"0 0 0 10px"},onClick:q})})]}),J=w.jsxs(w.Fragment,{children:[w.jsx(h0,{type:"line",success:{percent:g,strokeColor:"#1677ff"},percent:S,strokeColor:"#272727",format:()=>"",status:"active",showInfo:!1}),x.visible&&w.jsx("svg",{style:{position:"absolute",left:x.left,top:x.top,transform:"translate(-50%, -50%)"},width:"16",height:"16",viewBox:"0 0 16 16",children:w.jsx("circle",{cx:"8",cy:"8",r:"8",fill:"rgba(0,0,0,0.5)"})})]}),ce=u?w.jsx(w.Fragment,{children:w.jsx("span",{id:"minimalAudioPlayer",style:{...de,display:u?"flex":"none",padding:0},children:w.jsxs("div",{style:kn.trackInfo,children:[f?w.jsx(gD,{style:{fontSize:24,marginRight:8},onClick:H}):w.jsx(_l,{style:{fontSize:24,marginRight:8},onClick:z}),n&&w.jsx("img",{src:n,alt:"Song",style:kn.songImage}),y.startsWith("Infinity")?w.jsx("div",{style:{...kn.playPositionContainer,marginRight:0},children:w.jsxs("div",{style:{display:"flex"},children:[w.jsx("div",{style:{textAlign:"center",marginBottom:0},children:" "}),w.jsx("span",{children:pe})]})}):w.jsxs("div",{style:{...kn.playPositionContainer,marginRight:0},children:[w.jsxs("div",{style:{display:"flex"},children:[w.jsxs("div",{style:{textAlign:"center",marginBottom:0},children:[m," / ",y]}),w.jsx("span",{style:{margin:0,marginLeft:16,textAlign:"right"},children:pe})]}),w.jsx("div",{style:{...ye,width:100},onMouseDown:ee,onMouseMove:W,onMouseUp:Z,onMouseLeave:Y,onTouchStart:W,onTouchMove:W,onClick:te,children:J})]})]})})}):"",ue=u?"":w.jsxs(w.Fragment,{children:[w.jsx("span",{id:"normalAudioPlayer",style:{margin:0,marginLeft:16,textAlign:"right",display:u?"none":"flex",position:"absolute"},children:pe}),w.jsxs("span",{style:{...de,display:u?"none":"flex"},children:[w.jsxs("div",{id:"audioPlayer",style:kn.controls,children:[w.jsx(M1e,{style:kn.controlButton,onClick:Q}),f?w.jsx(gD,{style:kn.controlButton,onClick:H}):w.jsx(_l,{style:kn.controlButton,onClick:z}),w.jsx(L1e,{style:{...kn.controlButton,cursor:o.length===0?"default":"pointer",opacity:o.length===0?.25:1},disabled:o.length===0,onClick:ae})]}),w.jsxs("div",{style:kn.trackInfo,children:[n&&w.jsx("img",{src:n,alt:"Song",style:kn.songImage}),w.jsxs("div",{style:kn.songContainer,children:[w.jsx("div",{children:a}),w.jsx("div",{children:r})]})]}),y.startsWith("Infinity")?"":w.jsxs("div",{style:kn.playPositionContainer,children:[w.jsx("div",{children:w.jsxs("div",{style:{textAlign:"center"},children:[m," / ",y]})}),w.jsx("div",{style:ye,onMouseDown:ee,onMouseMove:W,onMouseUp:Z,onMouseLeave:Y,onTouchStart:W,onTouchMove:W,onClick:te,children:J})]}),w.jsx("div",{style:he,children:w.jsxs("div",{style:{...kn.controls,position:"relative"},children:[w.jsx(ZSe,{style:{...kn.controlButton,...kn.volumeIcon,display:(T||0)===0?"block":"none"},onClick:L}),w.jsx(zW,{style:{...kn.controlButton,...kn.volumeIcon,display:(T||0)>0?"block":"none"},onClick:M}),w.jsx("div",{style:kn.volumeSlider,children:w.jsx(Nhe,{min:0,max:100,value:T||0,onChange:N})})]})})]})]});return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{...kn.container,display:s,visibility:i!=null&&i.src?"visible":"hidden",height:i!=null&&i.src?"auto":"0",margin:i!=null&&i.src?"0":"-24px",marginBottom:i!=null&&i.src?"8px":"0",overflow:"hidden"},children:[ce,ue]}),w.jsx("audio",{id:"globalAudioPlayer",controls:!0,onPlay:F,onPause:j,onEnded:B,onTimeUpdate:X,style:{display:"none"},children:"Your browser does not support the audio element."})]})},kn={container:{flexDirection:"column",alignItems:"flex-end",objectPosition:"top",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},innerContainer:{justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},controls:{display:"flex",alignItems:"center"},controlButton:{fontSize:24,margin:"0 10px",cursor:"pointer"},trackInfo:{display:"flex",alignItems:"center",justifyContent:"center"},songImage:{width:"auto",height:40,borderRadius:"50%",marginRight:10},songContainer:{},songTitle:{display:"block"},songArtist:{display:"block"},progressBar:{display:"block",position:"relative",width:150,marginRight:10},playPosition:{fontSize:14,width:"100%"},playPositionContainer:{marginLeft:10,marginRight:10},controls2:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24},volumeSlider:{width:100,position:"releative",marginRight:16,top:"calc(100% + 10px)",zIndex:1e3,backgroundColor:`${()=>eFe().colorBgContainer}`,padding:0},volumeIcon:{fontSize:24,cursor:"pointer",marginBottom:0}},nFe=ma(CW)` position: fixed; bottom: 0; z-index: 10; @@ -591,11 +591,11 @@ html body { margin: auto; display: flex; align-items: center; -`,e2=new En(vn()),rFe=()=>{const[e,t]=l.useState(0),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),c=()=>{const u=document.querySelector("footer");u&&t(u.offsetHeight)};return l.useEffect(()=>{e2.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(u=>u.text()).then(u=>r(u)).catch(u=>console.error("Error fetching data:",u)),e2.apiGetTeddyCloudSettingRaw("internal.version.v_short").then(u=>u.text()).then(u=>o(u)).catch(u=>console.error("Error fetching data:",u)),e2.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(u=>u.text()).then(u=>s(u)).catch(u=>console.error("Error fetching data:",u))},[]),w.jsxs(w.Fragment,{children:[w.jsx("div",{style:{paddingBottom:e}}),w.jsxs(nFe,{children:[w.jsx(S5,{children:w.jsx(tFe,{onVisibilityChange:c})}),w.jsx(S5,{children:w.jsx("div",{children:w.jsx("small",{children:w.jsxs(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/",target:"_blank",children:[w.jsxs($n,{children:[a," (",i,")"]}),w.jsx(Op,{children:n})]})})})})]})]})},yo=()=>{const{t:e}=Vt(),[t,n]=l.useState(!1),[r,a]=l.useState(""),o=()=>{n(!0),a("")},i=[{key:"tonies",label:w.jsx(At,{to:"/tonies",children:e("tonies.tonies.navigationTitle")}),icon:le.createElement(UW),title:e("tonies.tonies.navigationTitle")},{key:"custom-json",label:w.jsx("label",{style:{cursor:"pointer"},children:e("tonies.addToniesCustomJsonEntry")}),onClick:o,icon:le.createElement(ewe),title:e("tonies.addToniesCustomJsonEntry")},{key:"encoder",label:w.jsx(At,{to:"/tonies/encoder",children:e("tonies.encoder.navigationTitle")}),icon:le.createElement(uye),title:e("tonies.encoder.navigationTitle")},{key:"tap",label:w.jsx(At,{to:"/tonies/tap",children:e("tonies.tap.navigationTitle")}),icon:le.createElement(K1e),title:e("tonies.tap.navigationTitle")},{key:"library",label:w.jsx(At,{to:"/tonies/library",children:e("tonies.library.navigationTitle")}),icon:le.createElement(L0e),title:e("tonies.library.navigationTitle")},{key:"content",label:w.jsx(At,{to:"/tonies/content",children:e("tonies.content.navigationTitle")}),icon:le.createElement(zW),title:e("tonies.content.navigationTitle")},{key:"system-sounds",label:w.jsx(At,{to:"/tonies/system-sounds",children:e("tonies.system-sounds.navigationTitle")}),icon:le.createElement(G$),title:e("tonies.system-sounds.navigationTitle")}];return w.jsxs(w.Fragment,{children:[w.jsx(Tg,{mode:"inline",selectedKeys:[r],defaultOpenKeys:["sub"],items:i}),t&&w.jsx(MK,{open:t,onClose:()=>n(!1)})]})},t2=new En(vn()),QO=e=>{const[t,n]=l.useState([]),[r,a]=l.useState(()=>{if(e!==void 0){if(e!==null)return localStorage.setItem("contentOverlay",e),e;{const i=localStorage.getItem("contentOverlay");return i||""}}else{const i=localStorage.getItem("contentOverlay");return i||""}});return l.useEffect(()=>{(async()=>{const s=await t2.apiGetTonieboxesIndex(),u=(await Promise.all(s.map(async g=>[await t2.apiGetTonieboxContentDir(g.ID),g.boxName,g.ID]))).reduce((g,[v,m,h])=>{const y=g.findIndex(b=>b[0]===v);return y!==-1?(g[y][1].push(m),r===h&&a(g[y][2])):g.push([v,[m],h]),g},[]),d=await t2.apiGetTonieboxContentDir("");u.findIndex(g=>g[0]===d)===-1&&u.push(["",["TeddyCloud Default Content Dir"],""]);const p=u.map(([g,v,m])=>[g,v,m]);if(r===""||r===null||r===void 0){const g=p.length>0?p[0][2]:"";a(g),localStorage.setItem("contentOverlay",g)}n(p)})()},[]),{tonieBoxContentDirs:t,overlay:r,handleSelectChange:i=>{a(i),localStorage.setItem("contentOverlay",i)}}},aFe=new En(vn()),{Option:oFe}=br,iFe=()=>{const e=ol(),n=new URLSearchParams(e.search).get("overlay"),{t:r}=Vt(),[a,o]=l.useState([]),{tonieBoxContentDirs:i,overlay:s,handleSelectChange:c}=QO(n),[u,d]=l.useState(""),f=p=>{o(g=>g.map(v=>v.ruid===p.ruid?p:v))};return l.useEffect(()=>{(async()=>{const g=(await aFe.apiGetTagIndex(s||"",!0)).filter(v=>!v.hide);o(g.sort((v,m)=>v.tonieInfo.seriesm.tonieInfo.series?1:v.tonieInfo.episodem.tonieInfo.episode?1:0))})()},[s]),l.useEffect(()=>{const p={};a.forEach(m=>{const h=m.tonieInfo.language;p[h]?p[h]++:p[h]=1});let g=0,v="";for(const m in p)p.hasOwnProperty(m)&&p[m]>g&&(g=p[m],v=m);d(v)},[a]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:r("home.navigationTitle")},{title:r("tonies.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[w.jsx("h1",{style:{width:"200px"},children:r("tonies.title")}),i.length>1?w.jsx(tn,{title:r("tonies.content.showToniesOfBoxes"),children:w.jsx(br,{id:"contentDirectorySelect",defaultValue:"",onChange:c,style:{maxWidth:"300px"},value:s,children:i.map(([p,g,v])=>w.jsx(oFe,{value:v,children:g.join(", ")},v))})}):""]}),w.jsx(XO,{showFilter:!0,showPagination:!0,tonieCards:a.filter(p=>p.type==="tag"),overlay:s,readOnly:!1,defaultLanguage:u,onToniesCardUpdate:f})]})]})]})},sFe=new En(vn()),{Option:lFe}=br,cFe=()=>{const{t:e}=Vt(),[t,n]=l.useState([]),{tonieBoxContentDirs:r,overlay:a,handleSelectChange:o}=QO();return l.useEffect(()=>{(async()=>{const s=await sFe.apiGetTagIndex(a||"");n(s.sort((c,u)=>c.tonieInfo.seriesu.tonieInfo.series?1:c.tonieInfo.episodeu.tonieInfo.episode?1:0))})()},[a]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.system-sounds.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[w.jsx("h1",{children:e("tonies.system-sounds.title")}),r.length>1?w.jsx(br,{id:"contentDirectorySelect",defaultValue:"",onChange:o,style:{maxWidth:"300px"},value:a,title:e("tonies.content.showToniesOfBoxes"),children:r.map(([i,s,c])=>w.jsx(lFe,{value:c,children:s.join(", ")},c))}):""]}),w.jsx(XO,{showFilter:!1,showPagination:!0,tonieCards:t.filter(i=>i.type==="system"),overlay:a,readOnly:!1})]})]})]})},{Option:uFe}=br,dFe=()=>{const{t:e}=Vt(),{tonieBoxContentDirs:t,overlay:n,handleSelectChange:r}=QO();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.content.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[w.jsx("h1",{children:e("tonies.content.title")}),t.length>1?w.jsx(br,{id:"contentDirectorySelect",defaultValue:"",onChange:r,style:{maxWidth:"300px"},value:n,title:e("tonies.content.showToniesOfBoxes"),children:t.map(([a,o,i])=>w.jsx(uFe,{value:i,children:o.join(", ")},i))}):""]}),w.jsx(kg,{special:"",overlay:n})]})]})]})},fFe=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.library.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonies.library.title")}),w.jsx(kg,{special:"library"})]})]})]})};function pFe(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(a=>a(r))},t)}const K0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yd(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function JO(e){return"nodeType"in e}function Oa(e){var t,n;return e?yd(e)?e:JO(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function eN(e){const{Document:t}=Oa(e);return e instanceof t}function Ag(e){return yd(e)?!1:e instanceof Oa(e).HTMLElement}function DK(e){return e instanceof Oa(e).SVGElement}function Sd(e){return e?yd(e)?e.document:JO(e)?eN(e)?e:Ag(e)||DK(e)?e.ownerDocument:document:document:document}const Go=K0?l.useLayoutEffect:l.useEffect;function tN(e){const t=l.useRef(e);return Go(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pp(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return Go(()=>{n.current!==e&&(n.current=e)},t),n}function Mg(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Bv(e){const t=tN(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function hR(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let n2={};function Dg(e,t){return l.useMemo(()=>{if(t)return t;const n=n2[e]==null?0:n2[e]+1;return n2[e]=n,e+"-"+n},[e,t])}function PK(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const s=Object.entries(i);for(const[c,u]of s){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const xu=PK(1),zv=PK(-1);function mFe(e){return"clientX"in e&&"clientY"in e}function nN(e){if(!e)return!1;const{KeyboardEvent:t}=Oa(e.target);return t&&e instanceof t}function hFe(e){if(!e)return!1;const{TouchEvent:t}=Oa(e.target);return t&&e instanceof t}function vR(e){if(hFe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return mFe(e)?{x:e.clientX,y:e.clientY}:null}const Lp=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Lp.Translate.toString(e),Lp.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),w5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vFe(e){return e.matches(w5)?e:e.querySelector(w5)}const bFe={display:"none"};function yFe(e){let{id:t,value:n}=e;return le.createElement("div",{id:t,style:bFe},n)}function SFe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return le.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function wFe(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const LK=l.createContext(null);function CFe(e){const t=l.useContext(LK);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function xFe(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var s;return(s=i[a])==null?void 0:s.call(i,o)})},[e]),t]}const EFe={draggable:` +`,e2=new Tn(hn()),rFe=()=>{const[e,t]=l.useState(0),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),c=()=>{const u=document.querySelector("footer");u&&t(u.offsetHeight)};return l.useEffect(()=>{e2.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(u=>u.text()).then(u=>r(u)).catch(u=>console.error("Error fetching data:",u)),e2.apiGetTeddyCloudSettingRaw("internal.version.v_short").then(u=>u.text()).then(u=>o(u)).catch(u=>console.error("Error fetching data:",u)),e2.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(u=>u.text()).then(u=>s(u)).catch(u=>console.error("Error fetching data:",u))},[]),w.jsxs(w.Fragment,{children:[w.jsx("div",{style:{paddingBottom:e}}),w.jsxs(nFe,{children:[w.jsx(S5,{children:w.jsx(tFe,{onVisibilityChange:c})}),w.jsx(S5,{children:w.jsx("div",{children:w.jsx("small",{children:w.jsxs(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/",target:"_blank",children:[w.jsxs(Nn,{children:[a," (",i,")"]}),w.jsx(Op,{children:n})]})})})})]})]})},yo=()=>{const{t:e}=Ht(),[t,n]=l.useState(!1),[r,a]=l.useState(""),o=()=>{n(!0),a("")},i=[{key:"tonies",label:w.jsx(At,{to:"/tonies",children:e("tonies.tonies.navigationTitle")}),icon:le.createElement(UW),title:e("tonies.tonies.navigationTitle")},{key:"custom-json",label:w.jsx("label",{style:{cursor:"pointer"},children:e("tonies.addToniesCustomJsonEntry")}),onClick:o,icon:le.createElement(ewe),title:e("tonies.addToniesCustomJsonEntry")},{key:"encoder",label:w.jsx(At,{to:"/tonies/encoder",children:e("tonies.encoder.navigationTitle")}),icon:le.createElement(uye),title:e("tonies.encoder.navigationTitle")},{key:"tap",label:w.jsx(At,{to:"/tonies/tap",children:e("tonies.tap.navigationTitle")}),icon:le.createElement(K1e),title:e("tonies.tap.navigationTitle")},{key:"library",label:w.jsx(At,{to:"/tonies/library",children:e("tonies.library.navigationTitle")}),icon:le.createElement(L0e),title:e("tonies.library.navigationTitle")},{key:"content",label:w.jsx(At,{to:"/tonies/content",children:e("tonies.content.navigationTitle")}),icon:le.createElement(zW),title:e("tonies.content.navigationTitle")},{key:"system-sounds",label:w.jsx(At,{to:"/tonies/system-sounds",children:e("tonies.system-sounds.navigationTitle")}),icon:le.createElement(G$),title:e("tonies.system-sounds.navigationTitle")}];return w.jsxs(w.Fragment,{children:[w.jsx(Tg,{mode:"inline",selectedKeys:[r],defaultOpenKeys:["sub"],items:i}),t&&w.jsx(MK,{open:t,onClose:()=>n(!1)})]})},t2=new Tn(hn()),QO=e=>{const[t,n]=l.useState([]),[r,a]=l.useState(()=>{if(e!==void 0){if(e!==null)return localStorage.setItem("contentOverlay",e),e;{const i=localStorage.getItem("contentOverlay");return i||""}}else{const i=localStorage.getItem("contentOverlay");return i||""}});return l.useEffect(()=>{(async()=>{const s=await t2.apiGetTonieboxesIndex(),u=(await Promise.all(s.map(async g=>[await t2.apiGetTonieboxContentDir(g.ID),g.boxName,g.ID]))).reduce((g,[v,m,h])=>{const y=g.findIndex(b=>b[0]===v);return y!==-1?(g[y][1].push(m),r===h&&a(g[y][2])):g.push([v,[m],h]),g},[]),d=await t2.apiGetTonieboxContentDir("");u.findIndex(g=>g[0]===d)===-1&&u.push(["",["TeddyCloud Default Content Dir"],""]);const p=u.map(([g,v,m])=>[g,v,m]);if(r===""||r===null||r===void 0){const g=p.length>0?p[0][2]:"";a(g),localStorage.setItem("contentOverlay",g)}n(p)})()},[]),{tonieBoxContentDirs:t,overlay:r,handleSelectChange:i=>{a(i),localStorage.setItem("contentOverlay",i)}}},aFe=new Tn(hn()),{Option:oFe}=br,iFe=()=>{const e=ol(),n=new URLSearchParams(e.search).get("overlay"),{t:r}=Ht(),[a,o]=l.useState([]),{tonieBoxContentDirs:i,overlay:s,handleSelectChange:c}=QO(n),[u,d]=l.useState(""),f=p=>{o(g=>g.map(v=>v.ruid===p.ruid?p:v))};return l.useEffect(()=>{(async()=>{const g=(await aFe.apiGetTagIndex(s||"",!0)).filter(v=>!v.hide);o(g.sort((v,m)=>v.tonieInfo.seriesm.tonieInfo.series?1:v.tonieInfo.episodem.tonieInfo.episode?1:0))})()},[s]),l.useEffect(()=>{const p={};a.forEach(m=>{const h=m.tonieInfo.language;p[h]?p[h]++:p[h]=1});let g=0,v="";for(const m in p)p.hasOwnProperty(m)&&p[m]>g&&(g=p[m],v=m);d(v)},[a]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:r("home.navigationTitle")},{title:r("tonies.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[w.jsx("h1",{style:{width:"200px"},children:r("tonies.title")}),i.length>1?w.jsx(en,{title:r("tonies.content.showToniesOfBoxes"),children:w.jsx(br,{id:"contentDirectorySelect",defaultValue:"",onChange:c,style:{maxWidth:"300px"},value:s,children:i.map(([p,g,v])=>w.jsx(oFe,{value:v,children:g.join(", ")},v))})}):""]}),w.jsx(XO,{showFilter:!0,showPagination:!0,tonieCards:a.filter(p=>p.type==="tag"),overlay:s,readOnly:!1,defaultLanguage:u,onToniesCardUpdate:f})]})]})]})},sFe=new Tn(hn()),{Option:lFe}=br,cFe=()=>{const{t:e}=Ht(),[t,n]=l.useState([]),{tonieBoxContentDirs:r,overlay:a,handleSelectChange:o}=QO();return l.useEffect(()=>{(async()=>{const s=await sFe.apiGetTagIndex(a||"");n(s.sort((c,u)=>c.tonieInfo.seriesu.tonieInfo.series?1:c.tonieInfo.episodeu.tonieInfo.episode?1:0))})()},[a]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.system-sounds.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[w.jsx("h1",{children:e("tonies.system-sounds.title")}),r.length>1?w.jsx(br,{id:"contentDirectorySelect",defaultValue:"",onChange:o,style:{maxWidth:"300px"},value:a,title:e("tonies.content.showToniesOfBoxes"),children:r.map(([i,s,c])=>w.jsx(lFe,{value:c,children:s.join(", ")},c))}):""]}),w.jsx(XO,{showFilter:!1,showPagination:!0,tonieCards:t.filter(i=>i.type==="system"),overlay:a,readOnly:!1})]})]})]})},{Option:uFe}=br,dFe=()=>{const{t:e}=Ht(),{tonieBoxContentDirs:t,overlay:n,handleSelectChange:r}=QO();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.content.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[w.jsx("h1",{children:e("tonies.content.title")}),t.length>1?w.jsx(br,{id:"contentDirectorySelect",defaultValue:"",onChange:r,style:{maxWidth:"300px"},value:n,title:e("tonies.content.showToniesOfBoxes"),children:t.map(([a,o,i])=>w.jsx(uFe,{value:i,children:o.join(", ")},i))}):""]}),w.jsx(kg,{special:"",overlay:n})]})]})]})},fFe=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.library.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonies.library.title")}),w.jsx(kg,{special:"library"})]})]})]})};function pFe(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(a=>a(r))},t)}const K0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yd(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function JO(e){return"nodeType"in e}function Oa(e){var t,n;return e?yd(e)?e:JO(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function eN(e){const{Document:t}=Oa(e);return e instanceof t}function Ag(e){return yd(e)?!1:e instanceof Oa(e).HTMLElement}function DK(e){return e instanceof Oa(e).SVGElement}function Sd(e){return e?yd(e)?e.document:JO(e)?eN(e)?e:Ag(e)||DK(e)?e.ownerDocument:document:document:document}const Go=K0?l.useLayoutEffect:l.useEffect;function tN(e){const t=l.useRef(e);return Go(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pp(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return Go(()=>{n.current!==e&&(n.current=e)},t),n}function Mg(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Bv(e){const t=tN(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function hR(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let n2={};function Dg(e,t){return l.useMemo(()=>{if(t)return t;const n=n2[e]==null?0:n2[e]+1;return n2[e]=n,e+"-"+n},[e,t])}function PK(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const s=Object.entries(i);for(const[c,u]of s){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const xu=PK(1),zv=PK(-1);function mFe(e){return"clientX"in e&&"clientY"in e}function nN(e){if(!e)return!1;const{KeyboardEvent:t}=Oa(e.target);return t&&e instanceof t}function hFe(e){if(!e)return!1;const{TouchEvent:t}=Oa(e.target);return t&&e instanceof t}function vR(e){if(hFe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return mFe(e)?{x:e.clientX,y:e.clientY}:null}const Lp=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Lp.Translate.toString(e),Lp.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),w5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vFe(e){return e.matches(w5)?e:e.querySelector(w5)}const bFe={display:"none"};function yFe(e){let{id:t,value:n}=e;return le.createElement("div",{id:t,style:bFe},n)}function SFe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return le.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function wFe(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const LK=l.createContext(null);function CFe(e){const t=l.useContext(LK);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function xFe(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var s;return(s=i[a])==null?void 0:s.call(i,o)})},[e]),t]}const EFe={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. - `},IFe={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function TFe(e){let{announcements:t=IFe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=EFe}=e;const{announce:o,announcement:i}=wFe(),s=Dg("DndLiveRegion"),[c,u]=l.useState(!1);if(l.useEffect(()=>{u(!0)},[]),CFe(l.useMemo(()=>({onDragStart(f){let{active:p}=f;o(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&o(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;o(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;o(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;o(t.onDragCancel({active:p,over:g}))}}),[o,t])),!c)return null;const d=le.createElement(le.Fragment,null,le.createElement(yFe,{id:r,value:a.draggable}),le.createElement(SFe,{id:s,announcement:i}));return n?xr.createPortal(d,n):d}var Cr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Cr||(Cr={}));function Hv(){}function RFe(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}const qo=Object.freeze({x:0,y:0});function _Fe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $Fe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function OFe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,s=n.get(i);if(s){const c=OFe(s,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(_Fe)};function kFe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function FK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:qo}function AFe(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const MFe=AFe(1);function DFe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function PFe(e,t,n){const r=DFe(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:s}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,f=o?e.height/o:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const LFe={ignoreTransform:!1};function wd(e,t){t===void 0&&(t=LFe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=Oa(e).getComputedStyle(e);u&&(n=PFe(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:s,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:s,right:c}}function C5(e){return wd(e,{ignoreTransform:!0})}function FFe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function jFe(e,t){return t===void 0&&(t=Oa(e).getComputedStyle(e)),t.position==="fixed"}function BFe(e,t){t===void 0&&(t=Oa(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function rN(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(eN(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Ag(a)||DK(a)||n.includes(a))return n;const o=Oa(e).getComputedStyle(a);return a!==e&&BFe(a,o)&&n.push(a),jFe(a,o)?n:r(a.parentNode)}return e?r(e):n}function jK(e){const[t]=rN(e,1);return t??null}function r2(e){return!K0||!e?null:yd(e)?e:JO(e)?eN(e)||e===Sd(e).scrollingElement?window:Ag(e)?e:null:null}function BK(e){return yd(e)?e.scrollX:e.scrollLeft}function zK(e){return yd(e)?e.scrollY:e.scrollTop}function bR(e){return{x:BK(e),y:zK(e)}}var kr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(kr||(kr={}));function HK(e){return!K0||!e?!1:e===document.scrollingElement}function UK(e){const t={x:0,y:0},n=HK(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const zFe={x:.2,y:.2};function HFe(e,t,n,r,a){let{top:o,left:i,right:s,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=zFe);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=UK(e),g={x:0,y:0},v={x:0,y:0},m={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+m.height?(g.y=kr.Backward,v.y=r*Math.abs((t.top+m.height-o)/m.height)):!d&&c>=t.bottom-m.height&&(g.y=kr.Forward,v.y=r*Math.abs((t.bottom-m.height-c)/m.height)),!p&&s>=t.right-m.width?(g.x=kr.Forward,v.x=r*Math.abs((t.right-m.width-s)/m.width)):!f&&i<=t.left+m.width&&(g.x=kr.Backward,v.x=r*Math.abs((t.left+m.width-i)/m.width)),{direction:g,speed:v}}function UFe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function VK(e){return e.reduce((t,n)=>xu(t,bR(n)),qo)}function VFe(e){return e.reduce((t,n)=>t+BK(n),0)}function WFe(e){return e.reduce((t,n)=>t+zK(n),0)}function GFe(e,t){if(t===void 0&&(t=wd),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);jK(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const qFe=[["x",["left","right"],VFe],["y",["top","bottom"],WFe]];class aN{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=rN(n),a=VK(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,s]of qFe)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Lf{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function KFe(e){const{EventTarget:t}=Oa(e);return e instanceof t?e:Sd(e)}function a2(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var so;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(so||(so={}));function x5(e){e.preventDefault()}function YFe(e){e.stopPropagation()}var wn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(wn||(wn={}));const WK={start:[wn.Space,wn.Enter],cancel:[wn.Esc],end:[wn.Space,wn.Enter]},XFe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case wn.Right:return{...n,x:n.x+25};case wn.Left:return{...n,x:n.x-25};case wn.Down:return{...n,y:n.y+25};case wn.Up:return{...n,y:n.y-25}}};class GK{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Lf(Sd(n)),this.windowListeners=new Lf(Oa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(so.Resize,this.handleCancel),this.windowListeners.add(so.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(so.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&GFe(r),n(qo)}handleKeyDown(t){if(nN(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=WK,coordinateGetter:i=XFe,scrollBehavior:s="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:qo;this.referenceCoordinates||(this.referenceCoordinates=d);const f=i(t,{active:n,context:r.current,currentCoordinates:d});if(f){const p=zv(f,d),g={x:0,y:0},{scrollableAncestors:v}=r.current;for(const m of v){const h=t.code,{isTop:y,isRight:b,isLeft:S,isBottom:C,maxScroll:x,minScroll:E}=UK(m),I=UFe(m),R={x:Math.min(h===wn.Right?I.right-I.width/2:I.right,Math.max(h===wn.Right?I.left:I.left+I.width/2,f.x)),y:Math.min(h===wn.Down?I.bottom-I.height/2:I.bottom,Math.max(h===wn.Down?I.top:I.top+I.height/2,f.y))},T=h===wn.Right&&!b||h===wn.Left&&!S,_=h===wn.Down&&!C||h===wn.Up&&!y;if(T&&R.x!==f.x){const $=m.scrollLeft+p.x,D=h===wn.Right&&$<=x.x||h===wn.Left&&$>=E.x;if(D&&!p.y){m.scrollTo({left:$,behavior:s});return}D?g.x=m.scrollLeft-$:g.x=h===wn.Right?m.scrollLeft-x.x:m.scrollLeft-E.x,g.x&&m.scrollBy({left:-g.x,behavior:s});break}else if(_&&R.y!==f.y){const $=m.scrollTop+p.y,D=h===wn.Down&&$<=x.y||h===wn.Up&&$>=E.y;if(D&&!p.x){m.scrollTo({top:$,behavior:s});return}D?g.y=m.scrollTop-$:g.y=h===wn.Down?m.scrollTop-x.y:m.scrollTop-E.y,g.y&&m.scrollBy({top:-g.y,behavior:s});break}}this.handleMove(t,xu(zv(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}GK.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=WK,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function E5(e){return!!(e&&"distance"in e)}function I5(e){return!!(e&&"delay"in e)}class oN{constructor(t,n,r){var a;r===void 0&&(r=KFe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=Sd(i),this.documentListeners=new Lf(this.document),this.listeners=new Lf(r),this.windowListeners=new Lf(Oa(i)),this.initialCoordinates=(a=vR(o))!=null?a:qo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(so.Resize,this.handleCancel),this.windowListeners.add(so.DragStart,x5),this.windowListeners.add(so.VisibilityChange,this.handleCancel),this.windowListeners.add(so.ContextMenu,x5),this.documentListeners.add(so.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(I5(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(E5(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(so.Click,YFe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(so.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!a)return;const c=(n=vR(t))!=null?n:qo,u=zv(a,c);if(!r&&s){if(E5(s)){if(s.tolerance!=null&&a2(u,s.tolerance))return this.handleCancel();if(a2(u,s.distance))return this.handleStart()}return I5(s)&&a2(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===wn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const ZFe={move:{name:"pointermove"},end:{name:"pointerup"}};class iN extends oN{constructor(t){const{event:n}=t,r=Sd(n.target);super(t,ZFe,r)}}iN.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const QFe={move:{name:"mousemove"},end:{name:"mouseup"}};var yR;(function(e){e[e.RightClick=2]="RightClick"})(yR||(yR={}));class JFe extends oN{constructor(t){super(t,QFe,Sd(t.event.target))}}JFe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===yR.RightClick?!1:(r==null||r({event:n}),!0)}}];const o2={move:{name:"touchmove"},end:{name:"touchend"}};class e5e extends oN{constructor(t){super(t,o2)}static setup(){return window.addEventListener(o2.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(o2.move.name,t)};function t(){}}}e5e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var Ff;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ff||(Ff={}));var Uv;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Uv||(Uv={}));function t5e(e){let{acceleration:t,activator:n=Ff.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:s=Uv.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=r5e({delta:f,disabled:!o}),[v,m]=gFe(),h=l.useRef({x:0,y:0}),y=l.useRef({x:0,y:0}),b=l.useMemo(()=>{switch(n){case Ff.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ff.DraggableRect:return a}},[n,a,c]),S=l.useRef(null),C=l.useCallback(()=>{const E=S.current;if(!E)return;const I=h.current.x*y.current.x,R=h.current.y*y.current.y;E.scrollBy(I,R)},[]),x=l.useMemo(()=>s===Uv.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!o||!u.length||!b){m();return}for(const E of x){if((r==null?void 0:r(E))===!1)continue;const I=u.indexOf(E),R=d[I];if(!R)continue;const{direction:T,speed:_}=HFe(E,R,b,t,p);for(const $ of["x","y"])g[$][T[$]]||(_[$]=0,T[$]=0);if(_.x>0||_.y>0){m(),S.current=E,v(C,i),h.current=_,y.current=T;return}}h.current={x:0,y:0},y.current={x:0,y:0},m()},[t,C,r,m,o,i,JSON.stringify(b),JSON.stringify(g),v,u,x,d,JSON.stringify(p)])}const n5e={x:{[kr.Backward]:!1,[kr.Forward]:!1},y:{[kr.Backward]:!1,[kr.Forward]:!1}};function r5e(e){let{delta:t,disabled:n}=e;const r=hR(t);return Mg(a=>{if(n||!r||!a)return n5e;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[kr.Backward]:a.x[kr.Backward]||o.x===-1,[kr.Forward]:a.x[kr.Forward]||o.x===1},y:{[kr.Backward]:a.y[kr.Backward]||o.y===-1,[kr.Forward]:a.y[kr.Forward]||o.y===1}}},[n,t,r])}function a5e(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Mg(a=>{var o;return t===null?null:(o=r??a)!=null?o:null},[r,t])}function o5e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var Fp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Fp||(Fp={}));var SR;(function(e){e.Optimized="optimized"})(SR||(SR={}));const T5=new Map;function i5e(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=l.useState(null),{frequency:s,measure:c,strategy:u}=a,d=l.useRef(e),f=h(),p=Pp(f),g=l.useCallback(function(y){y===void 0&&(y=[]),!p.current&&i(b=>b===null?y:b.concat(y.filter(S=>!b.includes(S))))},[p]),v=l.useRef(null),m=Mg(y=>{if(f&&!n)return T5;if(!y||y===T5||d.current!==e||o!=null){const b=new Map;for(let S of e){if(!S)continue;if(o&&o.length>0&&!o.includes(S.id)&&S.rect.current){b.set(S.id,S.rect.current);continue}const C=S.node.current,x=C?new aN(c(C),C):null;S.rect.current=x,x&&b.set(S.id,x)}return b}return y},[e,o,n,f,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{f||g()},[n,f]),l.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),l.useEffect(()=>{f||typeof s!="number"||v.current!==null||(v.current=setTimeout(()=>{g(),v.current=null},s))},[s,f,g,...r]),{droppableRects:m,measureDroppableContainers:g,measuringScheduled:o!=null};function h(){switch(u){case Fp.Always:return!1;case Fp.BeforeDragging:return n;default:return!n}}}function qK(e,t){return Mg(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function s5e(e,t){return qK(e,t)}function l5e(e){let{callback:t,disabled:n}=e;const r=tN(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Y0(e){let{callback:t,disabled:n}=e;const r=tN(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function c5e(e){return new aN(wd(e),e)}function R5(e,t,n){t===void 0&&(t=c5e);const[r,a]=l.useReducer(s,null),o=l5e({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),i=Y0({callback:a});return Go(()=>{a(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function u5e(e){const t=qK(e);return FK(e,t)}const _5=[];function d5e(e){const t=l.useRef(e),n=Mg(r=>e?r&&r!==_5&&e&&t.current&&e.parentNode===t.current.parentNode?r:rN(e):_5,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function f5e(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const i=r2(o.target);i&&n(s=>s?(s.set(i,bR(i)),new Map(s)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){i(o);const s=e.map(c=>{const u=r2(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,bR(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(o)};function i(s){s.forEach(c=>{const u=r2(c);u==null||u.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>xu(o,i),qo):VK(e):qo,[e,t])}function $5(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==qo;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?zv(e,n.current):qo}function p5e(e){l.useEffect(()=>{if(!K0)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function g5e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function KK(e){return l.useMemo(()=>e?FFe(e):null,[e])}const i2=[];function m5e(e,t){t===void 0&&(t=wd);const[n]=e,r=KK(n?Oa(n):null),[a,o]=l.useReducer(s,i2),i=Y0({callback:o});return e.length>0&&a===i2&&o(),Go(()=>{e.length?e.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),o())},[e]),a;function s(){return e.length?e.map(c=>HK(c)?r:new aN(t(c),c)):i2}}function h5e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ag(t)?t:e}function v5e(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(u=>{for(const{target:d}of u)if(Ag(d)){r(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),o=Y0({callback:a}),i=l.useCallback(u=>{const d=h5e(u);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[s,c]=Bv(i);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const b5e=[{sensor:iN,options:{}},{sensor:GK,options:{}}],y5e={current:{}},Nh={draggable:{measure:C5},droppable:{measure:C5,strategy:Fp.WhileDragging,frequency:SR.Optimized},dragOverlay:{measure:wd}};class jf extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const S5e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jf,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Hv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Nh,measureDroppableContainers:Hv,windowRect:null,measuringScheduled:!1},w5e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Hv,draggableNodes:new Map,over:null,measureDroppableContainers:Hv},X0=l.createContext(w5e),YK=l.createContext(S5e);function C5e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jf}}}function x5e(e,t){switch(t.type){case Cr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Cr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Cr.DragEnd:case Cr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Cr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new jf(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case Cr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new jf(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case Cr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new jf(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function E5e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(X0),o=hR(r),i=hR(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!nN(o)||document.activeElement===o.target)return;const s=a.get(i);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=vFe(d);if(f){f.focus();break}}})}},[r,t,a,i,o]),null}function I5e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function T5e(e){return l.useMemo(()=>({draggable:{...Nh.draggable,...e==null?void 0:e.draggable},droppable:{...Nh.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Nh.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function R5e(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:i,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Go(()=>{if(!i&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=FK(d,r);if(i||(f.x=0),s||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=jK(u);p&&p.scrollBy({top:f.y,left:f.x})}},[t,i,s,r,n])}const XK=l.createContext({...qo,scaleX:1,scaleY:1});var ms;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ms||(ms={}));const _5e=l.memo(function(t){var n,r,a,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=b5e,collisionDetection:f=NFe,measuring:p,modifiers:g,...v}=t;const m=l.useReducer(x5e,void 0,C5e),[h,y]=m,[b,S]=xFe(),[C,x]=l.useState(ms.Uninitialized),E=C===ms.Initialized,{draggable:{active:I,nodes:R,translate:T},droppable:{containers:_}}=h,$=I?R.get(I):null,D=l.useRef({initial:null,translated:null}),P=l.useMemo(()=>{var ke;return I!=null?{id:I,data:(ke=$==null?void 0:$.data)!=null?ke:y5e,rect:D}:null},[I,$]),A=l.useRef(null),[O,k]=l.useState(null),[N,M]=l.useState(null),L=Pp(v,Object.values(v)),F=Dg("DndDescribedBy",i),j=l.useMemo(()=>_.getEnabled(),[_]),B=T5e(p),{droppableRects:z,measureDroppableContainers:H,measuringScheduled:U}=i5e(j,{dragging:E,dependencies:[T.x,T.y],config:B.droppable}),X=a5e(R,I),W=l.useMemo(()=>N?vR(N):null,[N]),Y=je(),te=s5e(X,B.draggable.measure);R5e({activeNode:I?R.get(I):null,config:Y.layoutShiftCompensation,initialRect:te,measure:B.draggable.measure});const ee=R5(X,B.draggable.measure,te),Z=R5(X?X.parentElement:null),oe=l.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=_.getNodeFor((n=oe.current.over)==null?void 0:n.id),q=v5e({measure:B.dragOverlay.measure}),Q=(r=q.nodeRef.current)!=null?r:X,ae=E?(a=q.rect)!=null?a:ee:null,se=!!(q.nodeRef.current&&q.rect),de=u5e(se?null:ee),he=KK(Q?Oa(Q):null),ye=d5e(E?re??X:null),pe=m5e(ye),J=I5e(g,{transform:{x:T.x-de.x,y:T.y-de.y,scaleX:1,scaleY:1},activatorEvent:N,active:P,activeNodeRect:ee,containerNodeRect:Z,draggingNodeRect:ae,over:oe.current.over,overlayNodeRect:q.rect,scrollableAncestors:ye,scrollableAncestorRects:pe,windowRect:he}),ce=W?xu(W,T):null,ue=f5e(ye),fe=$5(ue),be=$5(ue,[ee]),Te=xu(J,fe),_e=ae?MFe(ae,J):null,Pe=P&&_e?f({active:P,collisionRect:_e,droppableRects:z,droppableContainers:j,pointerCoordinates:ce}):null,Ee=$Fe(Pe,"id"),[Fe,De]=l.useState(null),Ae=se?J:xu(J,be),we=kFe(Ae,(o=Fe==null?void 0:Fe.rect)!=null?o:null,ee),$e=l.useCallback((ke,Ne)=>{let{sensor:Be,options:Ve}=Ne;if(A.current==null)return;const Le=R.get(A.current);if(!Le)return;const We=ke.nativeEvent,Je=new Be({active:A.current,activeNode:Le,event:We,options:Ve,context:oe,onStart(ut){const dt=A.current;if(dt==null)return;const He=R.get(dt);if(!He)return;const{onDragStart:Ye}=L.current,Ge={active:{id:dt,data:He.data,rect:D}};xr.unstable_batchedUpdates(()=>{Ye==null||Ye(Ge),x(ms.Initializing),y({type:Cr.DragStart,initialCoordinates:ut,active:dt}),b({type:"onDragStart",event:Ge})})},onMove(ut){y({type:Cr.DragMove,coordinates:ut})},onEnd:Ke(Cr.DragEnd),onCancel:Ke(Cr.DragCancel)});xr.unstable_batchedUpdates(()=>{k(Je),M(ke.nativeEvent)});function Ke(ut){return async function(){const{active:He,collisions:Ye,over:Ge,scrollAdjustedTranslate:rt}=oe.current;let Tt=null;if(He&&rt){const{cancelDrop:Rt}=L.current;Tt={activatorEvent:We,active:He,collisions:Ye,delta:rt,over:Ge},ut===Cr.DragEnd&&typeof Rt=="function"&&await Promise.resolve(Rt(Tt))&&(ut=Cr.DragCancel)}A.current=null,xr.unstable_batchedUpdates(()=>{y({type:ut}),x(ms.Uninitialized),De(null),k(null),M(null);const Rt=ut===Cr.DragEnd?"onDragEnd":"onDragCancel";if(Tt){const jt=L.current[Rt];jt==null||jt(Tt),b({type:Rt,event:Tt})}})}}},[R]),Ce=l.useCallback((ke,Ne)=>(Be,Ve)=>{const Le=Be.nativeEvent,We=R.get(Ve);if(A.current!==null||!We||Le.dndKit||Le.defaultPrevented)return;const Je={active:We};ke(Be,Ne.options,Je)===!0&&(Le.dndKit={capturedBy:Ne.sensor},A.current=Ve,$e(Be,Ne))},[R,$e]),Re=o5e(d,Ce);p5e(d),Go(()=>{ee&&C===ms.Initializing&&x(ms.Initialized)},[ee,C]),l.useEffect(()=>{const{onDragMove:ke}=L.current,{active:Ne,activatorEvent:Be,collisions:Ve,over:Le}=oe.current;if(!Ne||!Be)return;const We={active:Ne,activatorEvent:Be,collisions:Ve,delta:{x:Te.x,y:Te.y},over:Le};xr.unstable_batchedUpdates(()=>{ke==null||ke(We),b({type:"onDragMove",event:We})})},[Te.x,Te.y]),l.useEffect(()=>{const{active:ke,activatorEvent:Ne,collisions:Be,droppableContainers:Ve,scrollAdjustedTranslate:Le}=oe.current;if(!ke||A.current==null||!Ne||!Le)return;const{onDragOver:We}=L.current,Je=Ve.get(Ee),Ke=Je&&Je.rect.current?{id:Je.id,rect:Je.rect.current,data:Je.data,disabled:Je.disabled}:null,ut={active:ke,activatorEvent:Ne,collisions:Be,delta:{x:Le.x,y:Le.y},over:Ke};xr.unstable_batchedUpdates(()=>{De(Ke),We==null||We(ut),b({type:"onDragOver",event:ut})})},[Ee]),Go(()=>{oe.current={activatorEvent:N,active:P,activeNode:X,collisionRect:_e,collisions:Pe,droppableRects:z,draggableNodes:R,draggingNode:Q,draggingNodeRect:ae,droppableContainers:_,over:Fe,scrollableAncestors:ye,scrollAdjustedTranslate:Te},D.current={initial:ae,translated:_e}},[P,X,Pe,_e,R,Q,ae,z,_,Fe,ye,Te]),t5e({...Y,delta:T,draggingRect:_e,pointerCoordinates:ce,scrollableAncestors:ye,scrollableAncestorRects:pe});const me=l.useMemo(()=>({active:P,activeNode:X,activeNodeRect:ee,activatorEvent:N,collisions:Pe,containerNodeRect:Z,dragOverlay:q,draggableNodes:R,droppableContainers:_,droppableRects:z,over:Fe,measureDroppableContainers:H,scrollableAncestors:ye,scrollableAncestorRects:pe,measuringConfiguration:B,measuringScheduled:U,windowRect:he}),[P,X,ee,N,Pe,Z,q,R,_,z,Fe,H,ye,pe,B,U,he]),Ie=l.useMemo(()=>({activatorEvent:N,activators:Re,active:P,activeNodeRect:ee,ariaDescribedById:{draggable:F},dispatch:y,draggableNodes:R,over:Fe,measureDroppableContainers:H}),[N,Re,P,ee,y,F,R,Fe,H]);return le.createElement(LK.Provider,{value:S},le.createElement(X0.Provider,{value:Ie},le.createElement(YK.Provider,{value:me},le.createElement(XK.Provider,{value:we},u)),le.createElement(E5e,{disabled:(s==null?void 0:s.restoreFocus)===!1})),le.createElement(TFe,{...s,hiddenTextDescribedById:F}));function je(){const ke=(O==null?void 0:O.autoScrollEnabled)===!1,Ne=typeof c=="object"?c.enabled===!1:c===!1,Be=E&&!ke&&!Ne;return typeof c=="object"?{...c,enabled:Be}:{enabled:Be}}}),$5e=l.createContext(null),O5="button",O5e="Droppable";function N5e(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Dg(O5e),{activators:i,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=l.useContext(X0),{role:g=O5,roleDescription:v="draggable",tabIndex:m=0}=a??{},h=(c==null?void 0:c.id)===t,y=l.useContext(h?XK:$5e),[b,S]=Bv(),[C,x]=Bv(),E=g5e(i,t),I=Pp(n);Go(()=>(f.set(t,{id:t,key:o,node:b,activatorNode:C,data:I}),()=>{const T=f.get(t);T&&T.key===o&&f.delete(t)}),[f,t]);const R=l.useMemo(()=>({role:g,tabIndex:m,"aria-disabled":r,"aria-pressed":h&&g===O5?!0:void 0,"aria-roledescription":v,"aria-describedby":d.draggable}),[r,g,m,h,v,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:R,isDragging:h,listeners:r?void 0:E,node:b,over:p,setNodeRef:S,setActivatorNodeRef:x,transform:y}}function k5e(){return l.useContext(YK)}const A5e="Droppable",M5e={timeout:25};function D5e(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Dg(A5e),{active:i,dispatch:s,over:c,measureDroppableContainers:u}=l.useContext(X0),d=l.useRef({disabled:n}),f=l.useRef(!1),p=l.useRef(null),g=l.useRef(null),{disabled:v,updateMeasurementsFor:m,timeout:h}={...M5e,...a},y=Pp(m??r),b=l.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),g.current=null},h)},[h]),S=Y0({callback:b,disabled:v||!i}),C=l.useCallback((R,T)=>{S&&(T&&(S.unobserve(T),f.current=!1),R&&S.observe(R))},[S]),[x,E]=Bv(C),I=Pp(t);return l.useEffect(()=>{!S||!x.current||(S.disconnect(),f.current=!1,S.observe(x.current))},[x,S]),Go(()=>(s({type:Cr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:x,rect:p,data:I}}),()=>s({type:Cr.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==d.current.disabled&&(s({type:Cr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,s]),{active:i,rect:p,isOver:(c==null?void 0:c.id)===r,node:x,over:c,setNodeRef:E}}function sN(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function P5e(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function Wm(e){return e!==null&&e>=0}function L5e(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=sN(t,r,n),i=t[a],s=o[a];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},Gm={scaleX:1,scaleY:1},j5e=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-s.height-c,...Gm}:a=i?{x:0,y:s.height+c,...Gm}:{x:0,y:0,...Gm}};function B5e(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),v=i!=null,m=i?g.indexOf(i.id):-1,h=u?g.indexOf(u.id):-1,y=l.useRef(g),b=!L5e(g,y.current),S=h!==-1&&m===-1||b,C=F5e(o);Go(()=>{b&&v&&d(g)},[b,g,v,d]),l.useEffect(()=>{y.current=g},[g]);const x=l.useMemo(()=>({activeIndex:m,containerId:f,disabled:C,disableTransforms:S,items:g,overIndex:h,useDragOverlay:p,sortedRects:P5e(g,c),strategy:a}),[m,f,C.draggable,C.droppable,S,g,h,c,p,a]);return le.createElement(JK.Provider,{value:x},t)}const H5e=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return sN(n,r,a).indexOf(t)},U5e=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!r||s!==o&&a===i?!1:n?!0:i!==a&&t===c},V5e={duration:200,easing:"ease"},eY="transform",W5e=Lp.Transition.toString({property:eY,duration:0,easing:"linear"}),G5e={roleDescription:"sortable"};function q5e(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=l.useState(null),s=l.useRef(n);return Go(()=>{if(!t&&n!==s.current&&r.current){const c=a.current;if(c){const u=wd(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==s.current&&(s.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&i(null)},[o]),o}function K5e(e){let{animateLayoutChanges:t=U5e,attributes:n,disabled:r,data:a,getNewIndex:o=H5e,id:i,strategy:s,resizeObserverConfig:c,transition:u=V5e}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:v,sortedRects:m,overIndex:h,useDragOverlay:y,strategy:b}=l.useContext(JK),S=Y5e(r,g),C=d.indexOf(i),x=l.useMemo(()=>({sortable:{containerId:f,index:C,items:d},...a}),[f,a,C,d]),E=l.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:I,node:R,isOver:T,setNodeRef:_}=D5e({id:i,data:x,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:$,activatorEvent:D,activeNodeRect:P,attributes:A,setNodeRef:O,listeners:k,isDragging:N,over:M,setActivatorNodeRef:L,transform:F}=N5e({id:i,data:x,attributes:{...G5e,...n},disabled:S.draggable}),j=pFe(_,O),B=!!$,z=B&&!v&&Wm(p)&&Wm(h),H=!y&&N,U=H&&z?F:null,W=z?U??(s??b)({rects:m,activeNodeRect:P,activeIndex:p,overIndex:h,index:C}):null,Y=Wm(p)&&Wm(h)?o({id:i,items:d,activeIndex:p,overIndex:h}):C,te=$==null?void 0:$.id,ee=l.useRef({activeId:te,items:d,newIndex:Y,containerId:f}),Z=d!==ee.current.items,oe=t({active:$,containerId:f,isDragging:N,isSorting:B,id:i,index:C,items:d,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:u,wasDragging:ee.current.activeId!=null}),re=q5e({disabled:!oe,index:C,node:R,rect:I});return l.useEffect(()=>{B&&ee.current.newIndex!==Y&&(ee.current.newIndex=Y),f!==ee.current.containerId&&(ee.current.containerId=f),d!==ee.current.items&&(ee.current.items=d)},[B,Y,f,d]),l.useEffect(()=>{if(te===ee.current.activeId)return;if(te&&!ee.current.activeId){ee.current.activeId=te;return}const Q=setTimeout(()=>{ee.current.activeId=te},50);return()=>clearTimeout(Q)},[te]),{active:$,activeIndex:p,attributes:A,data:x,rect:I,index:C,newIndex:Y,items:d,isOver:T,isSorting:B,isDragging:N,listeners:k,node:R,overIndex:h,over:M,setNodeRef:j,setActivatorNodeRef:L,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:re??W,transition:q()};function q(){if(re||Z&&ee.current.newIndex===C)return W5e;if(!(H&&!nN(D)||!u)&&(B||oe))return Lp.Transition.toString({...u,property:eY})}}function Y5e(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}wn.Down,wn.Right,wn.Up,wn.Left;const{Text:X5e}=Ln,Z5e=({originNode:e,fileList:t,file:n,onRemove:r,disabled:a})=>{const{attributes:o,listeners:i,setNodeRef:s,transform:c,transition:u,isDragging:d}=K5e({id:n.uid}),{t:f}=Vt(),p={transform:Lp.Transform.toString(c),transition:u,cursor:"move"};return w.jsx("div",{ref:s,style:p,className:d?"is-dragging":"",...o,...i,children:w.jsxs("div",{className:"ant-upload-list-item ant-upload-list-item-undefined",children:[w.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:w.jsxs("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:[t.indexOf(n)+1,"."]})}),w.jsxs("span",{className:"ant-upload-list-item-name",title:n.name,children:[w.jsx("span",{className:"",children:n.name}),w.jsx("br",{}),w.jsx(X5e,{type:"secondary",children:df(n.size?n.size:-1)})]}),w.jsx("span",{className:"ant-upload-list-item-actions picture",children:w.jsx(Pt,{title:f("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:w.jsx(Tp,{})})})]})})};function Q5e(e,t,n,r,a,o){const i=new FileReader;i.onload=async s=>{try{if(s.target==null)return;const c=s.target.result,u=new AudioContext,d=48e3,f=await u.decodeAudioData(c),p=new OfflineAudioContext({numberOfChannels:f.numberOfChannels,length:Math.round(f.length*d/f.sampleRate),sampleRate:d}),g=p.createBufferSource();g.buffer=f,g.connect(p.destination),g.start();const v=await p.startRendering(),m=v.numberOfChannels,h=new Float32Array(v.getChannelData(0)),y=m>1?new Float32Array(v.getChannelData(1)):new Float32Array(v.getChannelData(0)),b=new Int16Array(h.length+y.length);for(let S=0,C=0;S{u(!0)},[]),CFe(l.useMemo(()=>({onDragStart(f){let{active:p}=f;o(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&o(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;o(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;o(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;o(t.onDragCancel({active:p,over:g}))}}),[o,t])),!c)return null;const d=le.createElement(le.Fragment,null,le.createElement(yFe,{id:r,value:a.draggable}),le.createElement(SFe,{id:s,announcement:i}));return n?xr.createPortal(d,n):d}var Cr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Cr||(Cr={}));function Hv(){}function RFe(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}const qo=Object.freeze({x:0,y:0});function _Fe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $Fe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function OFe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,s=n.get(i);if(s){const c=OFe(s,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(_Fe)};function kFe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function FK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:qo}function AFe(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const MFe=AFe(1);function DFe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function PFe(e,t,n){const r=DFe(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:s}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,f=o?e.height/o:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const LFe={ignoreTransform:!1};function wd(e,t){t===void 0&&(t=LFe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=Oa(e).getComputedStyle(e);u&&(n=PFe(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:s,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:s,right:c}}function C5(e){return wd(e,{ignoreTransform:!0})}function FFe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function jFe(e,t){return t===void 0&&(t=Oa(e).getComputedStyle(e)),t.position==="fixed"}function BFe(e,t){t===void 0&&(t=Oa(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function rN(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(eN(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Ag(a)||DK(a)||n.includes(a))return n;const o=Oa(e).getComputedStyle(a);return a!==e&&BFe(a,o)&&n.push(a),jFe(a,o)?n:r(a.parentNode)}return e?r(e):n}function jK(e){const[t]=rN(e,1);return t??null}function r2(e){return!K0||!e?null:yd(e)?e:JO(e)?eN(e)||e===Sd(e).scrollingElement?window:Ag(e)?e:null:null}function BK(e){return yd(e)?e.scrollX:e.scrollLeft}function zK(e){return yd(e)?e.scrollY:e.scrollTop}function bR(e){return{x:BK(e),y:zK(e)}}var kr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(kr||(kr={}));function HK(e){return!K0||!e?!1:e===document.scrollingElement}function UK(e){const t={x:0,y:0},n=HK(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const zFe={x:.2,y:.2};function HFe(e,t,n,r,a){let{top:o,left:i,right:s,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=zFe);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=UK(e),g={x:0,y:0},v={x:0,y:0},m={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+m.height?(g.y=kr.Backward,v.y=r*Math.abs((t.top+m.height-o)/m.height)):!d&&c>=t.bottom-m.height&&(g.y=kr.Forward,v.y=r*Math.abs((t.bottom-m.height-c)/m.height)),!p&&s>=t.right-m.width?(g.x=kr.Forward,v.x=r*Math.abs((t.right-m.width-s)/m.width)):!f&&i<=t.left+m.width&&(g.x=kr.Backward,v.x=r*Math.abs((t.left+m.width-i)/m.width)),{direction:g,speed:v}}function UFe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function VK(e){return e.reduce((t,n)=>xu(t,bR(n)),qo)}function VFe(e){return e.reduce((t,n)=>t+BK(n),0)}function WFe(e){return e.reduce((t,n)=>t+zK(n),0)}function GFe(e,t){if(t===void 0&&(t=wd),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);jK(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const qFe=[["x",["left","right"],VFe],["y",["top","bottom"],WFe]];class aN{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=rN(n),a=VK(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,s]of qFe)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Lf{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function KFe(e){const{EventTarget:t}=Oa(e);return e instanceof t?e:Sd(e)}function a2(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var so;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(so||(so={}));function x5(e){e.preventDefault()}function YFe(e){e.stopPropagation()}var xn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(xn||(xn={}));const WK={start:[xn.Space,xn.Enter],cancel:[xn.Esc],end:[xn.Space,xn.Enter]},XFe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case xn.Right:return{...n,x:n.x+25};case xn.Left:return{...n,x:n.x-25};case xn.Down:return{...n,y:n.y+25};case xn.Up:return{...n,y:n.y-25}}};class GK{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Lf(Sd(n)),this.windowListeners=new Lf(Oa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(so.Resize,this.handleCancel),this.windowListeners.add(so.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(so.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&GFe(r),n(qo)}handleKeyDown(t){if(nN(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=WK,coordinateGetter:i=XFe,scrollBehavior:s="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:qo;this.referenceCoordinates||(this.referenceCoordinates=d);const f=i(t,{active:n,context:r.current,currentCoordinates:d});if(f){const p=zv(f,d),g={x:0,y:0},{scrollableAncestors:v}=r.current;for(const m of v){const h=t.code,{isTop:y,isRight:b,isLeft:S,isBottom:C,maxScroll:x,minScroll:E}=UK(m),I=UFe(m),R={x:Math.min(h===xn.Right?I.right-I.width/2:I.right,Math.max(h===xn.Right?I.left:I.left+I.width/2,f.x)),y:Math.min(h===xn.Down?I.bottom-I.height/2:I.bottom,Math.max(h===xn.Down?I.top:I.top+I.height/2,f.y))},T=h===xn.Right&&!b||h===xn.Left&&!S,_=h===xn.Down&&!C||h===xn.Up&&!y;if(T&&R.x!==f.x){const $=m.scrollLeft+p.x,D=h===xn.Right&&$<=x.x||h===xn.Left&&$>=E.x;if(D&&!p.y){m.scrollTo({left:$,behavior:s});return}D?g.x=m.scrollLeft-$:g.x=h===xn.Right?m.scrollLeft-x.x:m.scrollLeft-E.x,g.x&&m.scrollBy({left:-g.x,behavior:s});break}else if(_&&R.y!==f.y){const $=m.scrollTop+p.y,D=h===xn.Down&&$<=x.y||h===xn.Up&&$>=E.y;if(D&&!p.x){m.scrollTo({top:$,behavior:s});return}D?g.y=m.scrollTop-$:g.y=h===xn.Down?m.scrollTop-x.y:m.scrollTop-E.y,g.y&&m.scrollBy({top:-g.y,behavior:s});break}}this.handleMove(t,xu(zv(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}GK.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=WK,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function E5(e){return!!(e&&"distance"in e)}function I5(e){return!!(e&&"delay"in e)}class oN{constructor(t,n,r){var a;r===void 0&&(r=KFe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=Sd(i),this.documentListeners=new Lf(this.document),this.listeners=new Lf(r),this.windowListeners=new Lf(Oa(i)),this.initialCoordinates=(a=vR(o))!=null?a:qo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(so.Resize,this.handleCancel),this.windowListeners.add(so.DragStart,x5),this.windowListeners.add(so.VisibilityChange,this.handleCancel),this.windowListeners.add(so.ContextMenu,x5),this.documentListeners.add(so.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(I5(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(E5(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(so.Click,YFe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(so.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!a)return;const c=(n=vR(t))!=null?n:qo,u=zv(a,c);if(!r&&s){if(E5(s)){if(s.tolerance!=null&&a2(u,s.tolerance))return this.handleCancel();if(a2(u,s.distance))return this.handleStart()}return I5(s)&&a2(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===xn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const ZFe={move:{name:"pointermove"},end:{name:"pointerup"}};class iN extends oN{constructor(t){const{event:n}=t,r=Sd(n.target);super(t,ZFe,r)}}iN.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const QFe={move:{name:"mousemove"},end:{name:"mouseup"}};var yR;(function(e){e[e.RightClick=2]="RightClick"})(yR||(yR={}));class JFe extends oN{constructor(t){super(t,QFe,Sd(t.event.target))}}JFe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===yR.RightClick?!1:(r==null||r({event:n}),!0)}}];const o2={move:{name:"touchmove"},end:{name:"touchend"}};class e5e extends oN{constructor(t){super(t,o2)}static setup(){return window.addEventListener(o2.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(o2.move.name,t)};function t(){}}}e5e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var Ff;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ff||(Ff={}));var Uv;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Uv||(Uv={}));function t5e(e){let{acceleration:t,activator:n=Ff.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:s=Uv.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=r5e({delta:f,disabled:!o}),[v,m]=gFe(),h=l.useRef({x:0,y:0}),y=l.useRef({x:0,y:0}),b=l.useMemo(()=>{switch(n){case Ff.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ff.DraggableRect:return a}},[n,a,c]),S=l.useRef(null),C=l.useCallback(()=>{const E=S.current;if(!E)return;const I=h.current.x*y.current.x,R=h.current.y*y.current.y;E.scrollBy(I,R)},[]),x=l.useMemo(()=>s===Uv.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!o||!u.length||!b){m();return}for(const E of x){if((r==null?void 0:r(E))===!1)continue;const I=u.indexOf(E),R=d[I];if(!R)continue;const{direction:T,speed:_}=HFe(E,R,b,t,p);for(const $ of["x","y"])g[$][T[$]]||(_[$]=0,T[$]=0);if(_.x>0||_.y>0){m(),S.current=E,v(C,i),h.current=_,y.current=T;return}}h.current={x:0,y:0},y.current={x:0,y:0},m()},[t,C,r,m,o,i,JSON.stringify(b),JSON.stringify(g),v,u,x,d,JSON.stringify(p)])}const n5e={x:{[kr.Backward]:!1,[kr.Forward]:!1},y:{[kr.Backward]:!1,[kr.Forward]:!1}};function r5e(e){let{delta:t,disabled:n}=e;const r=hR(t);return Mg(a=>{if(n||!r||!a)return n5e;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[kr.Backward]:a.x[kr.Backward]||o.x===-1,[kr.Forward]:a.x[kr.Forward]||o.x===1},y:{[kr.Backward]:a.y[kr.Backward]||o.y===-1,[kr.Forward]:a.y[kr.Forward]||o.y===1}}},[n,t,r])}function a5e(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Mg(a=>{var o;return t===null?null:(o=r??a)!=null?o:null},[r,t])}function o5e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var Fp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Fp||(Fp={}));var SR;(function(e){e.Optimized="optimized"})(SR||(SR={}));const T5=new Map;function i5e(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=l.useState(null),{frequency:s,measure:c,strategy:u}=a,d=l.useRef(e),f=h(),p=Pp(f),g=l.useCallback(function(y){y===void 0&&(y=[]),!p.current&&i(b=>b===null?y:b.concat(y.filter(S=>!b.includes(S))))},[p]),v=l.useRef(null),m=Mg(y=>{if(f&&!n)return T5;if(!y||y===T5||d.current!==e||o!=null){const b=new Map;for(let S of e){if(!S)continue;if(o&&o.length>0&&!o.includes(S.id)&&S.rect.current){b.set(S.id,S.rect.current);continue}const C=S.node.current,x=C?new aN(c(C),C):null;S.rect.current=x,x&&b.set(S.id,x)}return b}return y},[e,o,n,f,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{f||g()},[n,f]),l.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),l.useEffect(()=>{f||typeof s!="number"||v.current!==null||(v.current=setTimeout(()=>{g(),v.current=null},s))},[s,f,g,...r]),{droppableRects:m,measureDroppableContainers:g,measuringScheduled:o!=null};function h(){switch(u){case Fp.Always:return!1;case Fp.BeforeDragging:return n;default:return!n}}}function qK(e,t){return Mg(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function s5e(e,t){return qK(e,t)}function l5e(e){let{callback:t,disabled:n}=e;const r=tN(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Y0(e){let{callback:t,disabled:n}=e;const r=tN(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function c5e(e){return new aN(wd(e),e)}function R5(e,t,n){t===void 0&&(t=c5e);const[r,a]=l.useReducer(s,null),o=l5e({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),i=Y0({callback:a});return Go(()=>{a(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function u5e(e){const t=qK(e);return FK(e,t)}const _5=[];function d5e(e){const t=l.useRef(e),n=Mg(r=>e?r&&r!==_5&&e&&t.current&&e.parentNode===t.current.parentNode?r:rN(e):_5,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function f5e(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const i=r2(o.target);i&&n(s=>s?(s.set(i,bR(i)),new Map(s)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){i(o);const s=e.map(c=>{const u=r2(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,bR(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(o)};function i(s){s.forEach(c=>{const u=r2(c);u==null||u.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>xu(o,i),qo):VK(e):qo,[e,t])}function $5(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==qo;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?zv(e,n.current):qo}function p5e(e){l.useEffect(()=>{if(!K0)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function g5e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function KK(e){return l.useMemo(()=>e?FFe(e):null,[e])}const i2=[];function m5e(e,t){t===void 0&&(t=wd);const[n]=e,r=KK(n?Oa(n):null),[a,o]=l.useReducer(s,i2),i=Y0({callback:o});return e.length>0&&a===i2&&o(),Go(()=>{e.length?e.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),o())},[e]),a;function s(){return e.length?e.map(c=>HK(c)?r:new aN(t(c),c)):i2}}function h5e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ag(t)?t:e}function v5e(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(u=>{for(const{target:d}of u)if(Ag(d)){r(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),o=Y0({callback:a}),i=l.useCallback(u=>{const d=h5e(u);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[s,c]=Bv(i);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const b5e=[{sensor:iN,options:{}},{sensor:GK,options:{}}],y5e={current:{}},Nh={draggable:{measure:C5},droppable:{measure:C5,strategy:Fp.WhileDragging,frequency:SR.Optimized},dragOverlay:{measure:wd}};class jf extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const S5e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jf,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Hv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Nh,measureDroppableContainers:Hv,windowRect:null,measuringScheduled:!1},w5e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Hv,draggableNodes:new Map,over:null,measureDroppableContainers:Hv},X0=l.createContext(w5e),YK=l.createContext(S5e);function C5e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jf}}}function x5e(e,t){switch(t.type){case Cr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Cr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Cr.DragEnd:case Cr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Cr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new jf(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case Cr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new jf(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case Cr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new jf(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function E5e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(X0),o=hR(r),i=hR(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!nN(o)||document.activeElement===o.target)return;const s=a.get(i);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=vFe(d);if(f){f.focus();break}}})}},[r,t,a,i,o]),null}function I5e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function T5e(e){return l.useMemo(()=>({draggable:{...Nh.draggable,...e==null?void 0:e.draggable},droppable:{...Nh.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Nh.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function R5e(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:i,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Go(()=>{if(!i&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=FK(d,r);if(i||(f.x=0),s||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=jK(u);p&&p.scrollBy({top:f.y,left:f.x})}},[t,i,s,r,n])}const XK=l.createContext({...qo,scaleX:1,scaleY:1});var ms;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ms||(ms={}));const _5e=l.memo(function(t){var n,r,a,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=b5e,collisionDetection:f=NFe,measuring:p,modifiers:g,...v}=t;const m=l.useReducer(x5e,void 0,C5e),[h,y]=m,[b,S]=xFe(),[C,x]=l.useState(ms.Uninitialized),E=C===ms.Initialized,{draggable:{active:I,nodes:R,translate:T},droppable:{containers:_}}=h,$=I?R.get(I):null,D=l.useRef({initial:null,translated:null}),P=l.useMemo(()=>{var ke;return I!=null?{id:I,data:(ke=$==null?void 0:$.data)!=null?ke:y5e,rect:D}:null},[I,$]),A=l.useRef(null),[O,k]=l.useState(null),[N,M]=l.useState(null),L=Pp(v,Object.values(v)),F=Dg("DndDescribedBy",i),j=l.useMemo(()=>_.getEnabled(),[_]),B=T5e(p),{droppableRects:z,measureDroppableContainers:H,measuringScheduled:U}=i5e(j,{dragging:E,dependencies:[T.x,T.y],config:B.droppable}),X=a5e(R,I),W=l.useMemo(()=>N?vR(N):null,[N]),Y=Be(),te=s5e(X,B.draggable.measure);R5e({activeNode:I?R.get(I):null,config:Y.layoutShiftCompensation,initialRect:te,measure:B.draggable.measure});const ee=R5(X,B.draggable.measure,te),Z=R5(X?X.parentElement:null),oe=l.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=_.getNodeFor((n=oe.current.over)==null?void 0:n.id),q=v5e({measure:B.dragOverlay.measure}),Q=(r=q.nodeRef.current)!=null?r:X,ae=E?(a=q.rect)!=null?a:ee:null,se=!!(q.nodeRef.current&&q.rect),de=u5e(se?null:ee),he=KK(Q?Oa(Q):null),ye=d5e(E?re??X:null),pe=m5e(ye),J=I5e(g,{transform:{x:T.x-de.x,y:T.y-de.y,scaleX:1,scaleY:1},activatorEvent:N,active:P,activeNodeRect:ee,containerNodeRect:Z,draggingNodeRect:ae,over:oe.current.over,overlayNodeRect:q.rect,scrollableAncestors:ye,scrollableAncestorRects:pe,windowRect:he}),ce=W?xu(W,T):null,ue=f5e(ye),fe=$5(ue),be=$5(ue,[ee]),Ee=xu(J,fe),Re=ae?MFe(ae,J):null,Fe=P&&Re?f({active:P,collisionRect:Re,droppableRects:z,droppableContainers:j,pointerCoordinates:ce}):null,Ce=$Fe(Fe,"id"),[ze,Pe]=l.useState(null),Ae=se?J:xu(J,be),Se=kFe(Ae,(o=ze==null?void 0:ze.rect)!=null?o:null,ee),_e=l.useCallback((ke,Ne)=>{let{sensor:He,options:Ge}=Ne;if(A.current==null)return;const je=R.get(A.current);if(!je)return;const qe=ke.nativeEvent,tt=new He({active:A.current,activeNode:je,event:qe,options:Ge,context:oe,onStart(ft){const ht=A.current;if(ht==null)return;const Ue=R.get(ht);if(!Ue)return;const{onDragStart:We}=L.current,Ke={active:{id:ht,data:Ue.data,rect:D}};xr.unstable_batchedUpdates(()=>{We==null||We(Ke),x(ms.Initializing),y({type:Cr.DragStart,initialCoordinates:ft,active:ht}),b({type:"onDragStart",event:Ke})})},onMove(ft){y({type:Cr.DragMove,coordinates:ft})},onEnd:Ye(Cr.DragEnd),onCancel:Ye(Cr.DragCancel)});xr.unstable_batchedUpdates(()=>{k(tt),M(ke.nativeEvent)});function Ye(ft){return async function(){const{active:Ue,collisions:We,over:Ke,scrollAdjustedTranslate:st}=oe.current;let Tt=null;if(Ue&&st){const{cancelDrop:Rt}=L.current;Tt={activatorEvent:qe,active:Ue,collisions:We,delta:st,over:Ke},ft===Cr.DragEnd&&typeof Rt=="function"&&await Promise.resolve(Rt(Tt))&&(ft=Cr.DragCancel)}A.current=null,xr.unstable_batchedUpdates(()=>{y({type:ft}),x(ms.Uninitialized),Pe(null),k(null),M(null);const Rt=ft===Cr.DragEnd?"onDragEnd":"onDragCancel";if(Tt){const Ft=L.current[Rt];Ft==null||Ft(Tt),b({type:Rt,event:Tt})}})}}},[R]),we=l.useCallback((ke,Ne)=>(He,Ge)=>{const je=He.nativeEvent,qe=R.get(Ge);if(A.current!==null||!qe||je.dndKit||je.defaultPrevented)return;const tt={active:qe};ke(He,Ne.options,tt)===!0&&(je.dndKit={capturedBy:Ne.sensor},A.current=Ge,_e(He,Ne))},[R,_e]),Te=o5e(d,we);p5e(d),Go(()=>{ee&&C===ms.Initializing&&x(ms.Initialized)},[ee,C]),l.useEffect(()=>{const{onDragMove:ke}=L.current,{active:Ne,activatorEvent:He,collisions:Ge,over:je}=oe.current;if(!Ne||!He)return;const qe={active:Ne,activatorEvent:He,collisions:Ge,delta:{x:Ee.x,y:Ee.y},over:je};xr.unstable_batchedUpdates(()=>{ke==null||ke(qe),b({type:"onDragMove",event:qe})})},[Ee.x,Ee.y]),l.useEffect(()=>{const{active:ke,activatorEvent:Ne,collisions:He,droppableContainers:Ge,scrollAdjustedTranslate:je}=oe.current;if(!ke||A.current==null||!Ne||!je)return;const{onDragOver:qe}=L.current,tt=Ge.get(Ce),Ye=tt&&tt.rect.current?{id:tt.id,rect:tt.rect.current,data:tt.data,disabled:tt.disabled}:null,ft={active:ke,activatorEvent:Ne,collisions:He,delta:{x:je.x,y:je.y},over:Ye};xr.unstable_batchedUpdates(()=>{Pe(Ye),qe==null||qe(ft),b({type:"onDragOver",event:ft})})},[Ce]),Go(()=>{oe.current={activatorEvent:N,active:P,activeNode:X,collisionRect:Re,collisions:Fe,droppableRects:z,draggableNodes:R,draggingNode:Q,draggingNodeRect:ae,droppableContainers:_,over:ze,scrollableAncestors:ye,scrollAdjustedTranslate:Ee},D.current={initial:ae,translated:Re}},[P,X,Fe,Re,R,Q,ae,z,_,ze,ye,Ee]),t5e({...Y,delta:T,draggingRect:Re,pointerCoordinates:ce,scrollableAncestors:ye,scrollableAncestorRects:pe});const me=l.useMemo(()=>({active:P,activeNode:X,activeNodeRect:ee,activatorEvent:N,collisions:Fe,containerNodeRect:Z,dragOverlay:q,draggableNodes:R,droppableContainers:_,droppableRects:z,over:ze,measureDroppableContainers:H,scrollableAncestors:ye,scrollableAncestorRects:pe,measuringConfiguration:B,measuringScheduled:U,windowRect:he}),[P,X,ee,N,Fe,Z,q,R,_,z,ze,H,ye,pe,B,U,he]),xe=l.useMemo(()=>({activatorEvent:N,activators:Te,active:P,activeNodeRect:ee,ariaDescribedById:{draggable:F},dispatch:y,draggableNodes:R,over:ze,measureDroppableContainers:H}),[N,Te,P,ee,y,F,R,ze,H]);return le.createElement(LK.Provider,{value:S},le.createElement(X0.Provider,{value:xe},le.createElement(YK.Provider,{value:me},le.createElement(XK.Provider,{value:Se},u)),le.createElement(E5e,{disabled:(s==null?void 0:s.restoreFocus)===!1})),le.createElement(TFe,{...s,hiddenTextDescribedById:F}));function Be(){const ke=(O==null?void 0:O.autoScrollEnabled)===!1,Ne=typeof c=="object"?c.enabled===!1:c===!1,He=E&&!ke&&!Ne;return typeof c=="object"?{...c,enabled:He}:{enabled:He}}}),$5e=l.createContext(null),O5="button",O5e="Droppable";function N5e(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Dg(O5e),{activators:i,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=l.useContext(X0),{role:g=O5,roleDescription:v="draggable",tabIndex:m=0}=a??{},h=(c==null?void 0:c.id)===t,y=l.useContext(h?XK:$5e),[b,S]=Bv(),[C,x]=Bv(),E=g5e(i,t),I=Pp(n);Go(()=>(f.set(t,{id:t,key:o,node:b,activatorNode:C,data:I}),()=>{const T=f.get(t);T&&T.key===o&&f.delete(t)}),[f,t]);const R=l.useMemo(()=>({role:g,tabIndex:m,"aria-disabled":r,"aria-pressed":h&&g===O5?!0:void 0,"aria-roledescription":v,"aria-describedby":d.draggable}),[r,g,m,h,v,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:R,isDragging:h,listeners:r?void 0:E,node:b,over:p,setNodeRef:S,setActivatorNodeRef:x,transform:y}}function k5e(){return l.useContext(YK)}const A5e="Droppable",M5e={timeout:25};function D5e(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Dg(A5e),{active:i,dispatch:s,over:c,measureDroppableContainers:u}=l.useContext(X0),d=l.useRef({disabled:n}),f=l.useRef(!1),p=l.useRef(null),g=l.useRef(null),{disabled:v,updateMeasurementsFor:m,timeout:h}={...M5e,...a},y=Pp(m??r),b=l.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),g.current=null},h)},[h]),S=Y0({callback:b,disabled:v||!i}),C=l.useCallback((R,T)=>{S&&(T&&(S.unobserve(T),f.current=!1),R&&S.observe(R))},[S]),[x,E]=Bv(C),I=Pp(t);return l.useEffect(()=>{!S||!x.current||(S.disconnect(),f.current=!1,S.observe(x.current))},[x,S]),Go(()=>(s({type:Cr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:x,rect:p,data:I}}),()=>s({type:Cr.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==d.current.disabled&&(s({type:Cr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,s]),{active:i,rect:p,isOver:(c==null?void 0:c.id)===r,node:x,over:c,setNodeRef:E}}function sN(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function P5e(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function Wm(e){return e!==null&&e>=0}function L5e(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=sN(t,r,n),i=t[a],s=o[a];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},Gm={scaleX:1,scaleY:1},j5e=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-s.height-c,...Gm}:a=i?{x:0,y:s.height+c,...Gm}:{x:0,y:0,...Gm}};function B5e(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),v=i!=null,m=i?g.indexOf(i.id):-1,h=u?g.indexOf(u.id):-1,y=l.useRef(g),b=!L5e(g,y.current),S=h!==-1&&m===-1||b,C=F5e(o);Go(()=>{b&&v&&d(g)},[b,g,v,d]),l.useEffect(()=>{y.current=g},[g]);const x=l.useMemo(()=>({activeIndex:m,containerId:f,disabled:C,disableTransforms:S,items:g,overIndex:h,useDragOverlay:p,sortedRects:P5e(g,c),strategy:a}),[m,f,C.draggable,C.droppable,S,g,h,c,p,a]);return le.createElement(JK.Provider,{value:x},t)}const H5e=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return sN(n,r,a).indexOf(t)},U5e=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!r||s!==o&&a===i?!1:n?!0:i!==a&&t===c},V5e={duration:200,easing:"ease"},eY="transform",W5e=Lp.Transition.toString({property:eY,duration:0,easing:"linear"}),G5e={roleDescription:"sortable"};function q5e(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=l.useState(null),s=l.useRef(n);return Go(()=>{if(!t&&n!==s.current&&r.current){const c=a.current;if(c){const u=wd(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==s.current&&(s.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&i(null)},[o]),o}function K5e(e){let{animateLayoutChanges:t=U5e,attributes:n,disabled:r,data:a,getNewIndex:o=H5e,id:i,strategy:s,resizeObserverConfig:c,transition:u=V5e}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:v,sortedRects:m,overIndex:h,useDragOverlay:y,strategy:b}=l.useContext(JK),S=Y5e(r,g),C=d.indexOf(i),x=l.useMemo(()=>({sortable:{containerId:f,index:C,items:d},...a}),[f,a,C,d]),E=l.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:I,node:R,isOver:T,setNodeRef:_}=D5e({id:i,data:x,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:$,activatorEvent:D,activeNodeRect:P,attributes:A,setNodeRef:O,listeners:k,isDragging:N,over:M,setActivatorNodeRef:L,transform:F}=N5e({id:i,data:x,attributes:{...G5e,...n},disabled:S.draggable}),j=pFe(_,O),B=!!$,z=B&&!v&&Wm(p)&&Wm(h),H=!y&&N,U=H&&z?F:null,W=z?U??(s??b)({rects:m,activeNodeRect:P,activeIndex:p,overIndex:h,index:C}):null,Y=Wm(p)&&Wm(h)?o({id:i,items:d,activeIndex:p,overIndex:h}):C,te=$==null?void 0:$.id,ee=l.useRef({activeId:te,items:d,newIndex:Y,containerId:f}),Z=d!==ee.current.items,oe=t({active:$,containerId:f,isDragging:N,isSorting:B,id:i,index:C,items:d,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:u,wasDragging:ee.current.activeId!=null}),re=q5e({disabled:!oe,index:C,node:R,rect:I});return l.useEffect(()=>{B&&ee.current.newIndex!==Y&&(ee.current.newIndex=Y),f!==ee.current.containerId&&(ee.current.containerId=f),d!==ee.current.items&&(ee.current.items=d)},[B,Y,f,d]),l.useEffect(()=>{if(te===ee.current.activeId)return;if(te&&!ee.current.activeId){ee.current.activeId=te;return}const Q=setTimeout(()=>{ee.current.activeId=te},50);return()=>clearTimeout(Q)},[te]),{active:$,activeIndex:p,attributes:A,data:x,rect:I,index:C,newIndex:Y,items:d,isOver:T,isSorting:B,isDragging:N,listeners:k,node:R,overIndex:h,over:M,setNodeRef:j,setActivatorNodeRef:L,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:re??W,transition:q()};function q(){if(re||Z&&ee.current.newIndex===C)return W5e;if(!(H&&!nN(D)||!u)&&(B||oe))return Lp.Transition.toString({...u,property:eY})}}function Y5e(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}xn.Down,xn.Right,xn.Up,xn.Left;const{Text:X5e}=jn,Z5e=({originNode:e,fileList:t,file:n,onRemove:r,disabled:a})=>{const{attributes:o,listeners:i,setNodeRef:s,transform:c,transition:u,isDragging:d}=K5e({id:n.uid}),{t:f}=Ht(),p={transform:Lp.Transform.toString(c),transition:u,cursor:"move"};return w.jsx("div",{ref:s,style:p,className:d?"is-dragging":"",...o,...i,children:w.jsxs("div",{className:"ant-upload-list-item ant-upload-list-item-undefined",children:[w.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:w.jsxs("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:[t.indexOf(n)+1,"."]})}),w.jsxs("span",{className:"ant-upload-list-item-name",title:n.name,children:[w.jsx("span",{className:"",children:n.name}),w.jsx("br",{}),w.jsx(X5e,{type:"secondary",children:df(n.size?n.size:-1)})]}),w.jsx("span",{className:"ant-upload-list-item-actions picture",children:w.jsx(Dt,{title:f("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:w.jsx(Tp,{})})})]})})};function Q5e(e,t,n,r,a,o){const i=new FileReader;i.onload=async s=>{try{if(s.target==null)return;const c=s.target.result,u=new AudioContext,d=48e3,f=await u.decodeAudioData(c),p=new OfflineAudioContext({numberOfChannels:f.numberOfChannels,length:Math.round(f.length*d/f.sampleRate),sampleRate:d}),g=p.createBufferSource();g.buffer=f,g.connect(p.destination),g.start();const v=await p.startRendering(),m=v.numberOfChannels,h=new Float32Array(v.getChannelData(0)),y=m>1?new Float32Array(v.getChannelData(1)):new Float32Array(v.getChannelData(0)),b=new Int16Array(h.length+y.length);for(let S=0,C=0;S{t("Failed to read the file")},a.file&&i.readAsArrayBuffer(a.file)}const J5e=e=>Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),qm=new En(vn()),ls={id:"1",pId:"-1",value:"1",title:"/"},Km=99,eje=()=>{const{t:e}=Vt(),[t,n]=tt.useMessage(),[r,a]=l.useState(!1),[o,i]=l.useState([]),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[f,p]=l.useState(""),[g,v]=l.useState(ls.id),[m,h]=l.useState([ls]),[y,b]=l.useState(!1),[S,C]=l.useState(""),x=l.useRef(null);let E=0;l.useEffect(()=>{(async()=>{const H=new En(vn());let U=!1;try{const X=await H.apiGetTeddyCloudSettingRaw("debug.web.pcm_encode_console_url");if(!X.ok)throw new Error(`HTTP error! status: ${X.status}`);U=(await X.json()).toString()==="true"}catch(X){console.error("Error fetching debug.web.pcm_encode_console_url: ",X)}a(U)})(),(async()=>{const H=A(ls.id);qm.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${H}&special=library`).then(U=>U.json()).then(U=>{var X=U.files;X=X.filter(W=>W.isDir&&W.name!=="..").sort((W,Y)=>W.name===Y.name?0:W.name.toLowerCase()>Y.name.toLowerCase()?1:-1).map(W=>({id:ls.id+"."+X.indexOf(W),pId:ls.id,value:ls.id+"."+X.indexOf(W),title:W.name})),h(m.concat(X))})})()},[]),l.useEffect(()=>{y&&setTimeout(()=>{x.current&&x.current.focus()},0)},[y]),l.useEffect(()=>{E=o.length},[o]);const I=RFe(iN,{activationConstraint:{distance:10}}),R=({active:B,over:z})=>{B.id!==(z==null?void 0:z.id)&&i(H=>{const U=H.findIndex(W=>W.uid===B.id),X=H.findIndex(W=>W.uid===(z==null?void 0:z.id));return sN(H,U,X)})},T=({fileList:B})=>{E++,E>Km&&t.open({type:"error",content:e("tonies.encoder.maxFiles",{maxFiles:Km})}),i(B.slice(0,Km))},_=B=>{const z=o.indexOf(B),H=o.slice();H.splice(z,1),i(H)},$=async()=>{c(!0);const B=new FormData;for(const Y of o)try{await new Promise((te,ee)=>Q5e(te,ee,B,o,Y,r))}catch(te){tt.error(e("tonies.encoder.errorFileProcessing")+" "+te),c(!1);return}const z=Math.floor(Date.now()/1e3),H={name:f+".taf",audioId:z-1342177280,path:A(g),special:"library"};d(!0);const U=J5e(H),X=await qm.apiPostTeddyCloudFormDataRaw(`/api/pcmUpload?${U}`,B),W=await X.text();X.ok?(tt.success(e("tonies.encoder.uploadSuccessful")),i([]),p(""),h([ls]),v(ls.id)):(console.log("Upload failed:",W),tt.error(e("tonies.encoder.uploadFailed"))),d(!1),c(!1)},D={listType:"picture",multiple:!0,beforeUpload:B=>{const z=B;return z.file=B,o.push(z),i(o),!1},fileList:o,onChange:T,itemRender:(B,z)=>w.jsx(Z5e,{originNode:B,fileList:o,file:z,onRemove:_,disabled:s})},P=({id:B})=>new Promise((z,H)=>{const U=A(B);qm.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${U}&special=library`).then(X=>X.json()).then(X=>{let W=X.files;W=W.filter(Y=>Y.isDir&&Y.name!=="..").sort((Y,te)=>Y.name===te.name?0:Y.name.toLowerCase()>te.name.toLowerCase()?1:-1).map(Y=>({id:B+"."+W.indexOf(Y),pId:B,value:B+"."+W.indexOf(Y),title:Y.name})),h(m.concat(W)),z(!0)}).then(()=>{H()})}),A=B=>{const z=m.filter(H=>H.value===B)[0];return z.pId==="-1"?"":A(m.filter(H=>H.id===z.pId)[0].id)+"/"+z.title},O=()=>{i(B=>[...B].sort((z,H)=>z.name.localeCompare(H.name)))},k=()=>{i([])},N=()=>{b(!0)},M=B=>{C(B.target.value)},L=()=>{const B=A(g),z=`${g}.${m.length}`,H={id:z,pId:g,value:z,title:S};try{qm.apiPostTeddyCloudRaw("/api/dirCreate?special=library",B+"/"+S).then(U=>U.text()).then(U=>{if(U!=="OK")throw new Error(U);h([...m,H].sort((X,W)=>X.title===W.title?0:X.title.toLowerCase()>W.title.toLowerCase()?1:-1)),v(z),tt.success(e("fileBrowser.createDirectory.directoryCreated")),b(!1),C("")}).catch(U=>{tt.error(U.message)})}catch{tt.error("Error while creating directory")}},F=()=>{b(!1),C("")},j=w.jsxs(_n,{title:e("fileBrowser.createDirectory.modalTitle"),open:y,onCancel:F,onOk:L,okText:e("fileBrowser.createDirectory.create"),cancelText:e("fileBrowser.createDirectory.cancel"),children:[w.jsxs("p",{children:[e("fileBrowser.createDirectory.inDirectory")," ",w.jsxs("b",{children:[A(g),"/"]})]}),w.jsx(en,{ref:x,autoFocus:!0,placeholder:e("fileBrowser.createDirectory.placeholder"),value:S,onChange:M})]});return w.jsxs(w.Fragment,{children:[n,w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.encoder.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonies.encoder.title")}),w.jsxs(Mo,{direction:"vertical",style:{display:"flex"},children:[w.jsx(_5e,{sensors:[I],onDragEnd:R,children:w.jsx(z5e,{items:o.map(B=>B.uid),strategy:j5e,disabled:s,children:w.jsxs(E0.Dragger,{...D,disabled:s,children:[w.jsx("p",{className:"ant-upload-drag-icon",children:w.jsx(FW,{})}),w.jsx("p",{className:"ant-upload-text",children:e("tonies.encoder.uploadText",{maxFiles:Km})}),w.jsx("p",{className:"ant-upload-hint",children:e("tonies.encoder.uploadHint")})]})})}),o.length>0?w.jsxs(w.Fragment,{children:[w.jsxs(Mo,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start"},children:[w.jsx(Pt,{type:"default",disabled:s,onClick:O,children:e("tonies.encoder.sortAlphabetically")}),w.jsx(Pt,{type:"default",disabled:s,style:{marginRight:16},onClick:k,children:e("tonies.encoder.clearList")})]}),w.jsx(Ca,{}),w.jsx("div",{style:{width:"100%"},className:"encoder",children:w.jsxs(Mo,{direction:"vertical",style:{width:"100%"},children:[w.jsxs(Mo.Compact,{direction:"horizontal",style:{width:"100%",marginBottom:"16px",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[w.jsx(en,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:e("tonies.encoder.saveAs")}),w.jsx(al,{treeLine:!0,treeDataSimpleMode:!0,disabled:s,style:{maxWidth:250},value:g,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:v,loadData:P,treeData:m}),w.jsx(tn,{title:e("fileBrowser.createDirectory.createDirectory"),children:w.jsx(Pt,{disabled:s,icon:w.jsx(LW,{}),onClick:N,style:{borderRadius:0}})}),w.jsx(en,{addonAfter:".taf",required:!0,style:{maxWidth:300},status:o.length>0&&f===""?"error":"",onChange:B=>p(B.target.value),disabled:s})]}),w.jsx(Mo.Compact,{style:{display:"flex",justifyContent:"flex-end"},children:w.jsx(Pt,{type:"primary",onClick:$,disabled:o.length===0||f==="",loading:s,children:e(s?u?"tonies.encoder.processing":"tonies.encoder.uploading":"tonies.encoder.upload")})})]})})]}):w.jsx(w.Fragment,{})]})]})]}),j]})},{Paragraph:tje}=Ln,nje=()=>{const{t:e}=Vt(),[t,n]=l.useState(!1),r=a=>{console.log("Received values of form: ",a),n(!1)};return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.tap.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonies.tap.title")}),w.jsx(Mr,{message:e("settings.information"),description:w.jsx("div",{children:"Development still in progress - Please be patient or support implementation of this feature!"}),type:"info",showIcon:!0,style:{marginBottom:8}}),w.jsx(kg,{special:"library",filetypeFilter:[".tap"],showColumns:["picture","name","size","date","controls"],isTapList:!0}),w.jsx(tje,{children:w.jsxs("div",{children:[w.jsx(Pt,{type:"primary",style:{marginTop:8},onClick:()=>{n(!0)},children:e("tonies.tapEditor.titleCreate")}),w.jsx(kK,{open:t,onCreate:r,onCancel:()=>{n(!1)}})]})})]})]})]})},Ym=new En(vn()),rje=({overlay:e})=>{var d;const[t,n]=l.useState(),{t:r}=Vt(),[a,o]=l.useState(""),[i,s]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const p=await Ym.apiGetTeddyCloudSettingRaw("core.settings_level");if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);const g=await p.json();o(g.toString())}catch(p){console.error("Error fetching settings level: ",p)}})()},[]),l.useEffect(()=>{(async()=>{var g,v;s(!0);const p=await Ym.apiGetIndexGet(e);(g=p==null?void 0:p.options)!=null&&g.length&&((v=p==null?void 0:p.options)==null?void 0:v.length)>0&&n(p),s(!1)})()},[e,a]);const c=async()=>{try{await Ym.apiTriggerWriteConfigGet()}catch{tt.error("Error while saving config to file.")}},u=async f=>{try{await Ym.apiPostTeddyCloudSetting("core.settings_level",f),c(),o(f)}catch{tt.error("Error while sending data to server.")}};return w.jsxs(w.Fragment,{children:[w.jsx(Mr,{message:r("settings.warning"),description:w.jsx("div",{children:r("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px"}}),w.jsx(Ca,{children:r("settings.title")}),w.jsx(Yq,{initialValues:{test:"test"},onSubmit:f=>{},children:w.jsx(Zt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(d=t==null?void 0:t.options)==null?void 0:d.map((f,p,g)=>{if(f.iD.includes("core.settings_level")||!f.iD.includes("core.certdir")&&!f.iD.includes("core.client_cert.")&&!f.iD.includes("core.flex_")&&!f.iD.includes("core.contentdir")&&!f.iD.includes("toniebox.")&&!f.iD.includes("cloud.enabled")&&!f.iD.includes("cloud.enableV1Claim")&&!f.iD.includes("cloud.enableV1CloudReset")&&!f.iD.includes("cloud.enableV1FreshnessCheck")&&!f.iD.includes("cloud.enableV1Log")&&!f.iD.includes("cloud.enableV1Time")&&!f.iD.includes("cloud.enableV1Ota")&&!f.iD.includes("cloud.enableV2Content")&&!f.iD.includes("cloud.cacheOta")&&!f.iD.includes("cloud.localOta")&&!f.iD.includes("cloud.cacheContent")&&!f.iD.includes("cloud.cacheToLibrary")&&!f.iD.includes("cloud.markCustomTagByPass")&&!f.iD.includes("cloud.prioCustomContent")&&!f.iD.includes("cloud.updateOnLowerAudioId")&&!f.iD.includes("cloud.dumpRuidAuthContentJson"))return null;const v=f.iD.split("."),m=g[p-1]?g[p-1].iD.split("."):[];return w.jsxs(le.Fragment,{children:[v.slice(0,-1).map((h,y)=>m[y]!==h?y===0?w.jsxs("h3",{style:{marginLeft:`${y*20}px`,marginBottom:"10px"},children:["Category ",h]},`category-${h}`):w.jsxs("h4",{style:{marginLeft:`${y*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",h]},`category-${h}`):null),w.jsx(Xq,{option:f,overlayId:e},`option-item-${f.iD}`)]},`option-${f.iD}`)})})}),w.jsx(Ca,{children:r("settings.levelLabel")}),w.jsxs(Va.Group,{value:a,onChange:f=>u(f.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:i,children:[w.jsx(Va.Button,{value:"1",children:"Basic"}),w.jsx(Va.Button,{value:"2",children:"Detail"}),w.jsx(Va.Button,{value:"3",children:"Expert"})]})]})},N5=new En(vn());function tY(){const[e,t]=l.useState([]);return l.useEffect(()=>{async function n(){try{const a=await(await N5.apiGetTeddyCloudApiRaw("/api/tonieboxesJson")).json(),c=[...await(await N5.apiGetTeddyCloudApiRaw("/api/tonieboxesCustomJson")).json(),...a].map(u=>({id:u.id,name:u.name,img_src:u.img_src,crop:u.crop||null}));t(c)}catch(r){console.error("Error fetching and transforming data:",r),t([])}}n()},[]),e}const Qr=new En(vn()),{Paragraph:s2,Text:aje}=Ln,{Meta:oje}=dd,{useToken:ije}=hi,sje=({tonieboxCard:e,tonieboxImages:t})=>{var Ce,Re,me,Ie,je;const{t:n}=Vt(),{token:r}=ije(),[a,o]=tt.useMessage(),[i,s]=l.useState(!1),[c,u]=l.useState(""),[d,f]=l.useState(""),[p,g]=l.useState(""),[v,m]=l.useState(!1),[h,y]=l.useState(null),[b,S]=l.useState(),[C,x]=l.useState(!1),[E,I]=l.useState(!1),[R,T]=l.useState(!1),[_,$]=l.useState(e.boxModel),[D,P]=l.useState(e.boxModel),[A,O]=l.useState(e.boxName),[k,N]=l.useState(e.boxName),[M,L]=l.useState(null),[F,j]=l.useState(!1),[B,z]=l.useState(!0),[H,U]=l.useState(0);l.useEffect(()=>{(async()=>{const Ne=await Qr.apiGetTonieboxApiAccess(e.ID);z(Ne)})()},[e.ID,C]),l.useEffect(()=>{(async()=>{const Le=await Qr.apiGetTonieboxStatus(e.ID);s(Le)})(),(async()=>{const Le=await Qr.apiGetTonieboxVersion(e.ID),We={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"};if(Le in We){const Je=We[Le];u(Je)}else u("UNKNOWN")})(),(async()=>{const Le=await Qr.apiGetTonieboxLastRUID(e.ID);if(Le!=="ffffffffffffffff"&&Le!==""){const We=await Qr.apiGetTonieboxLastRUIDTime(e.ID);(async()=>{const Ke=await Qr.apiGetTagIndex(e.ID);te(Ke.filter(ut=>ut.ruid===Le),We)})()}})(),i||(async()=>{const We=await Qr.apiGetLastOnline(e.ID);f(We)})(),(async()=>{const We=await(await Qr.apiGetTeddyCloudSettingRaw("internal.ip",e.ID)).text();g(We)})(),Y(e.boxModel),P(e.boxModel)},[e.ID,e.boxModel]),l.useEffect(()=>{if(p&&c==="CC3200")try{fetch(`http://${p}/api/ajax?cmd=box-battery&sub=stats`).then(ke=>ke.text()).then(ke=>{console.log("Battery Stats fetched --> assume CFW active"),m(!0)}).catch(ke=>{console.log("No Battery Stats fetched --> assume CFW not active"),m(!1)})}catch{console.log("No Battery Stats fetched --> assume CFW not active"),m(!1)}},[p,c]);const X=tY(),W=[{label:n("tonieboxes.editModelModal.unsetBoxName"),value:"-1"}].concat(X.map(ke=>({label:ke.name,value:ke.id}))),Y=ke=>{const Ne=t.find(Be=>Be.id===ke);L(Ne?w.jsx("img",{src:Ne.img_src,alt:"",style:{...J(ke),position:"absolute",top:"0",left:"0"}}):w.jsx("img",{src:"https://cdn.tonies.de/thumbnails/03-0009-i.png",alt:"",style:{filter:"opacity(0.20)",width:"100%",height:"auto",position:"absolute",top:"0",left:"0"}}))},te=(ke,Ne)=>{y(w.jsx(w.Fragment,{children:w.jsx(At,{to:"/tonies?tonieRUID="+ke[0].ruid+"&overlay="+e.ID,children:w.jsx(tn,{placement:"top",zIndex:2,title:n("tonieboxes.lastPlayedTonie")+ke[0].tonieInfo.series+(ke[0].tonieInfo.episode?" - "+ke[0].tonieInfo.episode:"")+(Ne?" ("+Ne+")":""),children:w.jsx("img",{src:ke[0].tonieInfo.picture,alt:"Tonie",style:{position:"absolute",bottom:0,right:0,zIndex:1,padding:8,borderRadius:4,height:"60%"}})})})}))},ee=()=>{(async()=>{var Be,Ve;const Ne=await Qr.apiGetIndexGet(e.ID);(Be=Ne==null?void 0:Ne.options)!=null&&Be.length&&((Ve=Ne==null?void 0:Ne.options)==null?void 0:Ve.length)>0&&S(Ne)})(),Z()},Z=()=>{I(!0)},oe=async()=>{I(!1)},re=()=>{I(!1)},q=()=>{x(!0)},Q=async()=>{x(!1)},ae=()=>{x(!1)},se=()=>{U(ke=>ke+1),q()},de=()=>{P(D===void 0?_:D),T(!0)},he=()=>{P(_),N(k),O(k),T(!1)},ye=async()=>{Y(D),$(D);const ke=async()=>{await Qr.apiTriggerWriteConfigGet()};try{Qr.apiPostTeddyCloudSetting("boxModel",D,e.ID).then(()=>{ke()}).catch(Ne=>{tt.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),tt.success(n("tonieboxes.editModelModal.successOnModelChange"))}catch(Ne){tt.error(n("tonieboxes.editModelModal.errorOnModelChange",{error:Ne}))}},pe=async()=>{N(A);const ke=async()=>{await Qr.apiTriggerWriteConfigGet()};try{Qr.apiPostTeddyCloudSetting("boxName",A.toString(),e.ID).then(()=>{ke()}).catch(Ne=>{tt.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),tt.success(n("tonieboxes.editModelModal.successOnNameChange"))}catch(Ne){tt.error(n("tonieboxes.editModelModal.errorOnNameChange",{error:Ne}))}},J=ke=>{const Ne=t.find(Be=>Be.id===ke);if(Ne&&Ne.crop){const[Be,Ve,Le]=Ne.crop;return{width:"100%",height:"auto",transform:`scale(${Le}) translateX(${Be}px) translateY(${Ve}px)`}}else return{width:"100%",height:"auto"}},ce=()=>e.ID.replace(/(.{2})(?=.)/g,"$1:"),ue=async()=>{T(!1),A!==k&&pe(),_!==D&&ye()},fe=w.jsx(w.Fragment,{children:w.jsxs(Pt,{type:"primary",onClick:ue,disabled:A===k&&_===D,children:[w.jsx(BW,{},"saveClick")," ",n("tonies.editModal.save")]})}),be=w.jsxs(_n,{title:w.jsx(w.Fragment,{children:w.jsxs("h3",{children:[n("tonieboxes.editModelModal.editModel",{name:e.boxName}),w.jsx("br",{}),w.jsx(aje,{type:"secondary",children:(c!=="UNKNOWN"?c:"MAC")+": "+ce()})]})}),open:R,footer:fe,onCancel:he,children:[w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.name")}),w.jsx(s2,{children:w.jsx(en,{name:"boxName",value:A,onChange:ke=>O(ke.target.value),addonBefore:w.jsx(da,{onClick:()=>O(k),style:{color:A===k?r.colorTextDisabled:r.colorText,cursor:A===k?"default":"pointer"}})})}),w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.model")}),w.jsx(s2,{children:w.jsx(br,{options:W,value:D,onChange:ke=>P(ke)})})]}),Te=w.jsxs(_n,{title:n("tonieboxes.uploadTonieboxCertificatesModal.uploadTonieboxCertificates",{name:e.boxName}),open:E,onOk:oe,onCancel:re,children:[w.jsxs(s2,{children:[n("tonieboxes.uploadTonieboxCertificatesModal.uploadPath")," ",w.jsx("i",{children:(Re=(Ce=b==null?void 0:b.options)==null?void 0:Ce.find(ke=>ke.iD==="core.certdir"))==null?void 0:Re.value})," ",w.jsx("small",{children:(Ie=(me=b==null?void 0:b.options)==null?void 0:me.find(ke=>ke.iD==="core.certdir"))!=null&&Ie.overlayed?n("tonieboxes.uploadTonieboxCertificatesModal.boxSpecific"):n("tonieboxes.uploadTonieboxCertificatesModal.AttentionGeneralPath")})]}),w.jsx(NK,{overlay:e.ID})]}),_e=w.jsx(_n,{title:n("tonieboxes.editTonieboxSettingsModal.editTonieboxSettings",{name:e.boxName}),width:"auto",open:C,onOk:Q,onCancel:ae,children:w.jsx(rje,{overlay:e.ID},H)}),Pe=()=>{try{a.open({type:"loading",content:n("tonieboxes.messages.deleting"),duration:0}),Qr.apiPostTeddyCloudSetting("removeOverlay",null,e.ID).then(ke=>ke.text()).then(ke=>{a.destroy(),ke==="OK"?(a.open({type:"success",content:n("tonieboxes.messages.deleteSuccessful")}),window.location.reload()):a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+ke})}).catch(ke=>{a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+ke})})}catch(ke){a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+ke})}},Ee=()=>{j(!0)},Fe=()=>{Pe(),j(!1)},De=()=>{j(!1)},Ae=w.jsx(Dp,{title:n("tonieboxes.confirmDeleteModal"),open:F,okText:n("tonieboxes.delete"),cancelText:n("tonieboxes.cancel"),content:n("tonieboxes.confirmDeleteDialog",{tonieboxToDelete:k}),handleOk:Fe,handleCancel:De}),we=async()=>{try{await Qr.apiTriggerWriteConfigGet()}catch{tt.error("Error while saving config to file.")}},$e=async()=>{try{Qr.apiPostTeddyCloudSetting("toniebox.api_access",!B,e.ID).then(()=>{we(),z(!B),B?tt.success(n("tonieboxes.messages.apiAccessDisabled")):tt.success(n("tonieboxes.messages.apiAccessEnabled"))}).catch(ke=>{throw new Error(ke.status+" "+ke.statusText)})}catch(ke){tt.error(n("tonieboxes.messages.apiAccessNotChangedError")+ke)}};return w.jsxs(w.Fragment,{children:[o,w.jsx(dd,{hoverable:!1,size:"default",style:{background:r.colorBgContainerDisabled,cursor:"default"},title:w.jsx("span",{children:k}),cover:w.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:[h,w.jsx("img",{src:(je=t.find(ke=>ke.id==="03-0009"))==null?void 0:je.img_src,alt:"",style:{position:"relative",filter:"opacity(0)",width:"100%",height:"auto"}}),M]}),actions:[w.jsx(w.Fragment,{children:B?i?w.jsx(tn,{title:n("tonieboxes.online"),children:w.jsx(FT,{style:{color:"green",cursor:"default"}})}):w.jsx(tn,{title:n("tonieboxes.offline")+(d?" - "+n("tonieboxes.lastOnline")+": "+d:""),children:w.jsx(FT,{style:{color:r.colorTextDescription,cursor:"default"}})}):w.jsx(tn,{title:n("tonieboxes.accessApiDisabled"),children:w.jsx(PSe,{style:{color:"red",cursor:"pointer"},onClick:$e})})}),w.jsx(v0,{onClick:()=>de()},"edit"),w.jsx(jW,{style:{marginRight:8},onClick:ee},"certificate"),w.jsx(G$,{style:{marginRight:8},onClick:se},"edit"),w.jsx(Tp,{style:{marginRight:8},onClick:Ee},"delete")],children:w.jsx(oje,{description:[(c!=="UNKNOWN"&&c!==void 0&&c!==null?c:"MAC")+" ",v?w.jsx(tn,{title:n("tonieboxes.linkToBoxCFW"),children:w.jsxs(At,{to:"http://"+p,target:"_blank",children:[ce()," ",w.jsx(ASe,{})]})}):ce()]})}),_e,Te,be,Ae]})},lje=({tonieboxCards:e})=>{const[t,n]=l.useState(!0),r=tY();return r.length===0&&t?w.jsx("div",{children:"Loading..."}):w.jsx(Us,{grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:3,xxl:4},dataSource:e,renderItem:a=>w.jsx(Us.Item,{id:a.ID,children:w.jsx(sje,{tonieboxCard:a,tonieboxImages:r})})})},cje=()=>w.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"12.000000pt",height:"12.000000pt",viewBox:"0 0 900.000000 900.000000",preserveAspectRatio:"xMidYMid meet",children:w.jsxs("g",{transform:"translate(0.000000,900.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none",children:[w.jsx("path",{d:"M5895 8380 c-4 -6 -21 -16 -38 -24 -60 -25 -301 -236 -416 -363 -42 -46 -101 -103 -131 -127 -30 -24 -116 -104 -190 -177 -75 -74 -167 -163 -205 -199 -39 -36 -132 -124 -208 -195 -186 -175 -194 -179 -368 -195 -138 -13 -274 -10 -303 7 -45 25 -385 357 -446 434 -65 84 -279 313 -345 369 -17 14 -58 40 -91 58 -59 31 -67 32 -177 32 -87 0 -117 -3 -127 -14 -6 -8 -23 -16 -37 -18 -28 -3 -61 -47 -62 -83 -1 -12 -5 -25 -10 -30 -5 -6 -28 -64 -50 -130 -51 -151 -94 -274 -121 -345 -12 -30 -32 -86 -45 -125 -13 -38 -38 -108 -54 -154 -17 -46 -31 -85 -31 -87 0 -2 -181 -4 -402 -4 -362 0 -410 -2 -473 -19 -93 -25 -147 -55 -209 -117 -62 -62 -92 -116 -117 -209 -18 -68 -19 -160 -19 -2724 0 -2915 -4 -2713 58 -2836 31 -62 127 -155 189 -185 109 -52 -33 -49 2843 -49 2835 0 2752 -2 2840 44 111 57 194 152 230 266 20 61 20 110 20 2759 0 2673 0 2697 -20 2755 -50 147 -153 247 -300 294 -33 10 -131 15 -370 20 l-325 6 -2 50 c-9 210 -37 703 -49 855 -8 102 -14 239 -14 306 0 171 9 164 -233 164 -115 0 -188 -4 -192 -10z m-1 -652 c3 -13 6 -68 6 -123 0 -55 7 -174 15 -265 8 -91 15 -202 15 -247 l0 -83 -420 0 c-356 0 -420 2 -420 14 0 8 4 16 9 18 5 2 34 26 63 53 29 28 118 111 198 185 147 137 229 213 402 378 53 51 103 92 111 92 8 0 17 -10 21 -22z m-2697 -470 c65 -61 146 -138 181 -171 34 -32 62 -63 62 -68 0 -5 -107 -9 -255 -9 -169 0 -255 3 -255 10 0 10 30 104 49 152 18 47 40 104 56 151 9 26 23 47 31 47 7 0 66 -50 131 -112z m3746 -698 c16 0 17 -130 15 -2622 l-3 -2623 -2642 -3 -2643 -2 -2 2617 c-2 1850 0 2620 8 2627 7 8 777 10 2630 9 1440 -2 2627 -3 2637 -3z"}),w.jsx("path",{d:"M5735 6087 c-54 -22 -72 -36 -104 -83 -27 -41 -31 -57 -31 -111 0 -129 77 -205 206 -205 90 0 154 42 188 126 66 160 -100 335 -259 273z"}),w.jsx("path",{d:"M2842 5359 c-52 -16 -118 -90 -132 -148 -36 -150 102 -286 252 -250 61 14 129 75 148 134 29 86 -9 195 -83 242 -45 29 -131 39 -185 22z"}),w.jsx("path",{d:"M5035 5362 c-90 -32 -145 -106 -145 -197 0 -96 68 -183 161 -205 39 -10 57 -9 101 4 63 19 75 28 116 85 28 39 32 52 32 110 0 120 -72 199 -186 206 -32 2 -68 1 -79 -3z"}),w.jsx("path",{d:"M5730 5359 c-85 -36 -130 -105 -130 -202 0 -56 4 -70 32 -108 40 -56 52 -65 112 -85 43 -15 57 -15 100 -4 235 59 212 392 -28 406 -33 2 -72 -1 -86 -7z"}),w.jsx("path",{d:"M2818 4620 c-48 -26 -93 -82 -108 -135 -29 -103 38 -216 147 -250 54 -17 58 -17 112 0 36 12 69 33 93 57 92 94 68 260 -47 325 -52 29 -144 31 -197 3z"}),w.jsx("path",{d:"M3506 4609 c-150 -100 -116 -315 59 -375 54 -18 56 -18 109 0 89 30 156 116 156 199 0 73 -68 172 -137 198 -13 5 -50 9 -82 9 -48 0 -66 -5 -105 -31z"}),w.jsx("path",{d:"M4258 4610 c-152 -101 -119 -316 57 -376 54 -18 56 -18 109 0 89 31 156 116 156 200 0 73 -66 170 -133 195 -16 6 -54 11 -86 11 -47 0 -66 -5 -103 -30z"}),w.jsx("path",{d:"M4984 4607 c-149 -103 -115 -318 60 -373 55 -17 59 -17 111 0 52 18 92 51 128 106 22 33 23 140 1 183 -40 78 -103 117 -193 117 -50 0 -66 -5 -107 -33z"}),w.jsx("path",{d:"M5715 4623 c-79 -41 -115 -103 -115 -195 0 -42 6 -72 17 -88 36 -55 76 -88 129 -106 53 -18 55 -18 109 1 121 41 182 154 143 266 -15 46 -42 79 -90 112 -34 22 -52 27 -102 27 -36 -1 -74 -7 -91 -17z"}),w.jsx("path",{d:"M2841 3901 c-60 -24 -107 -74 -127 -134 -15 -44 -15 -57 -4 -101 41 -161 208 -217 339 -114 48 37 65 78 66 155 0 63 -3 76 -30 115 -34 49 -120 98 -169 97 -17 0 -51 -8 -75 -18z"}),w.jsx("path",{d:"M3532 3894 c-162 -80 -161 -292 0 -375 46 -24 127 -25 171 -3 73 37 127 119 127 193 -1 77 -59 158 -138 192 -59 26 -98 24 -160 -7z"}),w.jsx("path",{d:"M4279 3892 c-99 -51 -148 -176 -103 -265 86 -170 309 -169 385 2 35 80 19 159 -47 225 -36 35 -105 66 -149 66 -18 0 -57 -13 -86 -28z"}),w.jsx("path",{d:"M5015 3896 c-60 -28 -94 -63 -112 -114 -28 -81 -10 -163 48 -220 104 -102 265 -77 330 50 22 42 26 146 8 181 -34 65 -128 127 -193 127 -17 0 -53 -11 -81 -24z"}),w.jsx("path",{d:"M5727 3901 c-45 -21 -93 -65 -113 -103 -21 -40 -18 -141 5 -186 37 -72 102 -112 181 -112 151 0 251 153 191 292 -23 52 -52 80 -111 107 -54 25 -102 25 -153 2z"}),w.jsx("path",{d:"M2855 3201 c-70 -17 -128 -80 -146 -159 -25 -105 47 -216 156 -242 49 -12 62 -11 110 4 148 46 194 226 86 337 -60 62 -122 80 -206 60z"}),w.jsx("path",{d:"M3546 3196 c-181 -67 -179 -326 3 -391 69 -24 127 -15 194 29 44 29 87 112 87 166 -1 59 -43 136 -95 172 -50 34 -132 45 -189 24z"}),w.jsx("path",{d:"M4296 3196 c-145 -54 -180 -230 -69 -348 27 -29 99 -58 142 -58 71 1 142 46 182 114 38 67 38 123 1 191 -51 93 -161 136 -256 101z"}),w.jsx("path",{d:"M5038 3203 c-36 -6 -115 -77 -133 -120 -45 -107 14 -239 124 -278 52 -18 84 -19 131 -2 49 17 72 35 108 86 28 39 32 52 32 110 0 80 -26 132 -85 173 -41 28 -117 42 -177 31z"}),w.jsx("path",{d:"M5737 3200 c-44 -14 -95 -58 -117 -100 -31 -61 -28 -153 8 -207 36 -55 69 -80 126 -95 129 -34 261 76 253 212 -4 71 -21 104 -78 152 -38 32 -54 39 -105 43 -32 2 -72 0 -87 -5z"}),w.jsx("path",{d:"M3535 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),w.jsx("path",{d:"M4285 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),w.jsx("path",{d:"M5012 2463 c-69 -38 -104 -83 -123 -162 -10 -46 20 -134 61 -176 32 -33 107 -65 151 -65 61 0 156 64 188 127 6 12 11 49 11 83 0 94 -42 161 -122 195 -50 20 -126 19 -166 -2z"})]})}),Ks=()=>{const{t:e}=Vt(),t=[{key:"tonieboxes",label:w.jsx(At,{to:"/tonieboxes",style:{marginLeft:8},children:e("tonieboxes.navigationTitle")}),icon:le.createElement(cje),title:e("tonieboxes.navigationTitle")},{key:"esp32boxflashing",label:w.jsx(At,{to:"/tonieboxes/esp32boxflashing",children:e("tonieboxes.esp32BoxFlashing.navigationTitle")}),icon:le.createElement(ES),title:e("tonieboxes.esp32BoxFlashing.navigationTitle")},{key:"cc3200boxflashing",label:w.jsx(At,{to:"/tonieboxes/cc3200boxflashing",children:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}),icon:le.createElement(ES),title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")},{key:"cc3235boxflashing",label:w.jsx(At,{to:"/tonieboxes/cc3235boxflashing",children:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}),icon:le.createElement(ES),title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}];return w.jsx(Tg,{mode:"inline",defaultOpenKeys:["sub"],items:t})},k5=new En(vn()),uje=()=>{const{t:e}=Vt(),[t,n]=l.useState([]),[r,a]=l.useState(!1);l.useEffect(()=>{(async()=>{const c=await k5.apiGetTonieboxesIndex();n(c)})(),(async()=>{try{const c=await k5.apiGetNewBoxesAllowed();a(c)}catch(c){tt.error("Fetching new box allowed: "+c)}})()},[]);const o=r?w.jsx(Mr,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}):"";return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.title")}),o,w.jsx(lje,{tonieboxCards:t})]})]})]})},So=()=>{const{t:e}=Vt(),t=[{key:"community",label:w.jsx(At,{to:"/community",children:e("community.navigationTitle")}),icon:le.createElement(OSe),title:e("community.navigationTitle")},{key:"faq",label:w.jsx(At,{to:"/community/faq",children:e("community.faq.navigationTitle")}),icon:le.createElement(vW),title:e("community.faq.navigationTitle")},{key:"contribution",label:w.jsx(At,{to:"/community/contribution",style:{color:"currentColor"},children:e("community.contribution.navigationTitle")}),icon:le.createElement(_ye),title:e("community.contribution.navigationTitle"),children:[{key:"toniesJson",label:w.jsx(At,{to:"/community/contribution/tonies-json",children:e("community.contribution.toniesJson.navigationTitle")}),icon:le.createElement(wve),title:e("community.contribution.toniesJson.navigationTitle")}]},{key:"contributors",label:w.jsx(At,{to:"/community/contributors",children:e("community.contributors.navigationTitle")}),icon:le.createElement(Qye),title:e("community.contributors.navigationTitle")},{key:"changelog",label:w.jsx(At,{to:"/community/changelog",children:e("community.changelog.navigationTitle")}),icon:le.createElement(B0e),title:e("community.changelog.navigationTitle")},{key:"Forum",label:w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:e("community.forum.navigationTitle")}),icon:le.createElement(hye),title:e("community.forum.navigationTitle")}];return w.jsx(Tg,{mode:"inline",defaultOpenKeys:["sub"],items:t})},{Paragraph:A5}=Ln,dje=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.title")}),w.jsxs(A5,{children:[w.jsx("h2",{children:"Get involved"}),"Be a part of our global contributor community by writing code, commenting on issues, or participate in discussons in our telegram group."]}),w.jsxs(A5,{children:["Your best points of contact are the following locations",w.jsxs("ul",{children:[w.jsxs("li",{children:[w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"}),w.jsx("ul",{children:w.jsx("li",{children:"The place where all sources are stored for this and related projects. Where you can fork the repositories, contribute new or improved features, create issues or just give some feedback on already existing issues."})})]}),w.jsxs("li",{children:[w.jsx(At,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"}),w.jsx("ul",{children:w.jsx("li",{children:"The first level support if you need help or if you are interested in getting involved in the development of TeddyCloud."})})]}),w.jsxs("li",{children:[w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"}),w.jsx("ul",{children:w.jsx("li",{children:"The lively knowledge base for the project, a place to ask questions whose answers can be helpful for others."})})]}),w.jsxs("li",{children:[w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:"TeddyCloud Wiki"}),w.jsx("ul",{children:w.jsx("li",{children:"A Wiki contains, among other things, how to install TeddyCloud and how to solve possible problems."})})]})]})]})]})]})]})},{Paragraph:Hc}=Ln,fje=()=>{const{t:e}=Vt(),t=["Use welcome and inclusive language.","Be respectful of differing viewpoints and experiences.","Gracefully accept constructive criticism.","Foster what's best for the community.","Show empathy for other community members.","Decisions are made based on technical merit and consensus. The Teddycloud community aspires to treat everyone equally, and to value all contributions."],n=["Write code.","Improve documentation.","Answer questions on our telegram group.","Investigate bugs and issues on GitHub.","Review and comment on pull requests from other developers.","Report an issue.","Give a “thumbs up” 👍 on issues that are relevant to you."];return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.contribution.title")}),w.jsxs(Hc,{children:[w.jsx(Hc,{children:"The Teddycloud can only grow through the contributions of this community. Thanks so much for your enthusiasm and your work - we appreciate everything you do!"}),w.jsxs(Hc,{children:[w.jsx("h2",{children:"Community values"}),w.jsx(Hc,{children:"In the interest of fostering an open and welcoming environment, contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone - regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation."}),w.jsx(Hc,{children:"Examples of behaviors that contribute to creating a positive environment include:"}),w.jsx("ul",{children:t.map((r,a)=>w.jsx("li",{children:r},a))})]}),w.jsxs(Hc,{children:[w.jsx("h2",{children:"Make your first contribution"}),"There are many ways to contribute to Teddycloud! You can contribute code and make improvements to the Teddycloud documentation. Our most common contributions include code, documentation, and community support.",w.jsx("ul",{children:n.map((r,a)=>w.jsx("li",{children:r},a))})]})]})]})]})]})},pje=new En(vn()),{Paragraph:M5}=Ln,{Panel:gje}=A$,mje=()=>{const{t:e}=Vt(),[t,n]=l.useState({});return l.useEffect(()=>{async function r(){try{const s=(await(await pje.apiGetTeddyCloudApiRaw("/api/toniesJson")).json()).filter(u=>u.audio_id&&u.audio_id.length===0&&!["creative-tonie","system"].includes(u.category)&&!u.model.includes("20000")).map(u=>({model:u.model,series:u.series,episodes:u.episodes,pic:u.pic,audio_id:u.audio_id||[],category:u.category,language:u.language})),c={};s.forEach(u=>{c[u.language]||(c[u.language]=[]),c[u.language].push(u)}),n(c)}catch(a){console.error("Error fetching and transforming data:",a)}}r()},[]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")},{title:e("community.contribution.toniesJson.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.contribution.toniesJson.title")}),w.jsx(M5,{children:e("community.contribution.toniesJson.text")}),w.jsx(M5,{children:w.jsx(A$,{accordion:!0,children:Object.keys(t).map((r,a)=>w.jsx(gje,{header:r,children:w.jsx(Us,{children:Array.isArray(t[r])&&t[r].map((o,i)=>w.jsx(Us.Item,{id:o.model,children:w.jsxs("div",{children:[w.jsx("img",{src:o.pic,alt:"",style:{width:"100px",height:"auto"}}),o.model," - ",o.series," -"," ",o.episodes]})},i))})},a))})})]})]})]})},{Paragraph:Yd}=Ln,hje=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contributors.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.contributors.title")}),w.jsxs(Yd,{children:["This project relies on the tireless contributors who offer their free time and skills. Directly related to TeddyCloud are the contributors of the two projects teddycloud and teddycloud_web:",w.jsxs(Yd,{children:[w.jsx("h3",{children:"teddycloud"}),w.jsx("div",{children:"The most neccessary, but mostly invisible part of your TeddyCloud Server."}),w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors"})]}),w.jsxs(Yd,{children:[w.jsx("h3",{children:"teddycloud_web"}),w.jsx("div",{children:"Which is actually this frontend you are using and seeing here."}),w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors"})]}),w.jsxs(Yd,{children:["You can find more contributors to the entire topic complex in the other GitHub repositories at"," ",w.jsx(At,{to:"https://github.com/orgs/toniebox-reverse-engineering/repositories",target:"_blank",children:"https://github.com/orgs/toniebox-reverse-engineering/repositories"})]})]}),w.jsx(Mo,{}),w.jsxs(Yd,{children:[w.jsx("div",{style:{marginBottom:24},children:"A big round of applause for them!"}),w.jsx(ZO,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!1,height:150})]})]})]})]})},{Paragraph:D5,Text:l2}=Ln,vje=()=>{const{t:e}=Vt(),t=[{version:"0.6.1",changes:["Stabilization backend","Changed default for setting cloud.prioCustomContent to false","Disabled prioCustomContent if lower audio id is allowed","Added reload tonies(.custom).json api https://github.com/toniebox-reverse-engineering/teddycloud/issues/177","Added moveFile api https://github.com/toniebox-reverse-engineering/teddycloud/issues/198","gui: Fixed bug storing source with html special chars","gui: Fixed bug saving model and source of a tonie/tag at once","gui: Fixed display bug sourceInfo with unknown content","gui: Integrated new reload tonies.json api","gui: Added Moving and renaming of files in library and content"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.0...tc_v0.6.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.0...tcw_v0.6.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-1/701",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.1"},{version:"0.6.0",changes:["Stabilization backend","store last played time of last played tag","extend getTagIndex API, provide language in tonieInfos","PoC Toniebox api access (explicitly allow access to teddy cloud api on tonebox level)","Added enable/disable new Tonieboxes: prohibit registration of new tonieboxes if not enabled","Added removal of overlays (= removal of Tonieboxes from TeddyCloud)","add hide tonie/tag functionality (hide using new /web gui, present to box to unhide)","fixed locking bug, reworked locking.","fixed bug not storing cloud auth in some circumstances","fixed bug not storing source in json file: https://github.com/toniebox-reverse-engineering/teddycloud/issues/165","added limit to tempfile creation for radiostreams, default: 240mb (~6h) (configurable if expert mode is activated) https://github.com/toniebox-reverse-engineering/teddycloud/issues/180","added possibility to set WiFi Credentials on ESP32 Firmware patching","introduced second HTTPS port for WebFrontend only, which allows using https for webfrontend (Default: 8443)","tonie images from boxine can now be cached locally (PoC)","new /web gui is now default web gui: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/47","new /web gui: enhanced Toniecard, added search for Radiostream in Edit Modal","new /web gui: Tonies - Content section - added Migrate Content to Lib button on TAF files","new /web gui: added RTNL Log Page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/48","new /web gui: added show Json File when double click on json file (File browser view)","new /web gui: added show TAP File when double click on tap file (File browser view)","new /web gui: added show TAF Header (including AudioID + Hash) when double click on a taf file (File browser view)","new /web gui: show date time of last played tag (toniecard + toniboxcard)","new /web gui: added Tonie Audio Playlist page (WIP - Implementation not yet finished), rearranged menu entries tonies section: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/52","new /web gui: added delete feature in content, library and audio playlist page","new /web gui: improved changelog page, parse links and open links in new tab; completed contributors page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/27","new /web gui: added language flag to tonies card if it's not the same as the most owned language ones, added language filter","new /web gui: deletion of tonieboxes","new /web gui: info if add new boxes is enabled on homepage and tonieboxes page","new /web gui: enable/disable API access for toniebox added on tonieboxes page","new /web gui: add hide tonie/tag in tonies list (in info modal)","new /web gui: PoC Tonies Custom Json Editor (WiP, not working, but you get the json part to copy into the tonies.custom.json)","new /web gui: PoC Tonie Audio Playlist Editor (WiP, not working, but you get the json to copy and save as a TAP file) ","new /web gui: allow TAP files to be selected on Edit Tag Modal","new /web gui: new 404 page","new /web gui: hidden feature Tonie meeting. Search for it!","new /web gui: added link to Toniebox if the box is version cc3200, an ip is available and cfw is installed: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/28","new /web gui: hide audioplayer if no source is set, when clicking on play icon of a tonie/taf/... the player is shown: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: added minimize/maximize audioplayer https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: show Tonie on tonie article search","new /web gui: improved audioplayer, added volume control to custom one, hide doubled audioplayer","new /web gui: added French translation. Feel free to check if chatGPT is a good translator. If something is wrong, give us a shout at telegram!","new /weg gui: overworked filebrowser to be responsive","new /web gui: overworked tonie information modal, now also available in file browser (library + content)","new /web gui: added Create Directory functionality in file browser","new /web gui: added better breadcrumb to filebrowser (clickable for easy directory switching) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/78","new /web gui: set nocloud to true if source of a tag is changed https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/77","new /web gui: show image and information from set source if different from model https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/80","new /web gui: tonie overview: filter now also considers information from set source","new /web gui: fixed bugs after updating tonies in tonies overview","new /web gui: added FAQ page in community section","new /web gui: support web streams in audioplayer","new /web gui: improved filebrowser, added filter field and made buttons sticky","new /web gui: integrated ESP32 Firmware Flashing https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/46","new /web gui: integrated setting of WiFi credentials in ESP32 Firmware Flashing","new /web gui: show hint on ESP32 Firmware Flashing page if browser does not support WebSerial","new /web gui: allow multiselection in file browser for file deletion","new /web gui: limit audio encoder to 99 files (as Toniebox only supports 99 chapters)","new /web gui: fixed image fetch loop when playing a tonie","new /web gui: fixed poor audio quality in some case when using audio encoder","new /web gui: migrated gui from create-react-app to vite","new /web gui: fixed some bugs and minor refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.2...tc_v0.6.0","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.2...tcw_v0.6.0"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-0/468",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.0"},{version:"0.5.2",changes:["Stabilization backend","Several fixes and changes regards backend crashes and emptied config files when changing any tonie setting","Fix for random directories in library (and everywhere)","Fixed bug storing last played tonie per box","Fixed bug clearing text settings (like paths or flex tonie)","API for searching models is now case insensitive","Save IP of Toniebox as prepartion for linking CFW Tonieboxes","Introduced Settings level - 1: Basic, 2: Detail, 3: Expert (1 Default - if you are missing settings, increase level!)","new /web gui: enhanced Tonies Card, added editable content source","new /web gui: enhanced Toniebox Card, improved UX","new /web gui: Dark theme (Last used Theme stored in localStorage in Browser)","new /web gui: Show All (Hide Pagination on Tonies List, stored in localStorage in Browser)","new /web gui: Support of overlayed content folder. More details can be found here: https://forum.revvox.de/t/teddycloud-supporting-multiple-tonieboxes/451/1","new /web gui: Text inputs in Settings must be saved explicitly. (only Textinputs, other types are still autosaved.) Expect changes in future releases.","new /web gui: fixed various state bugs","new /web gui: show last online date of offline tonieboxes","new /web gui: Messages on successful setting updates","new /web gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.1...tc_v0.5.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.1...tcw_v0.5.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-2/450",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.2"},{version:"0.5.1",changes:["Stabilization Backend (added locks to prevent crashes, removed memory leaks)","Creating dirs when uploading certificates to a not yet existing path","Moving Tafs from Content to Library on click (not yet available in (new?) frontend)","new /web gui: Pagination + Filtering on Tonies List ( Paging Tonies · Issue #24 · toniebox-reverse-engineering/teddycloud_web · GitHub 2 )","new /web gui: Extend Box Management: Certificate upload now box specific possible, overworked certificate upload ( Certificate upload box related · Issue #26 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: Show last played Tonie on Box Management, link to prefiltered Tonieslist, added marking of the Last played Tonies on each box in Tonieslist ( Make use of internal.last_ruid · Issue #30 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: adapted cursor on cards to default as cards not really clickable ( TonieCard Cursor · Issue #25 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: fixed navigation item marking","new /web gui: updated box models, added pseudomodels of the official tonies covers (sleepy bear, sheep and rabbit). They are now placed in a json in the config folder. Custom tonieboxes are now also possible. Add your customised one in tonieboxes.custom.json and choose it in the box mgmt.","new /web gui: added community section (WIP) ( Add Changelog and contribution page · Issue #27 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: fixed warnings"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.0...tc_v0.5.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.0...tcw_v0.5.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-1/447",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.1"},{version:"0.5.0",changes:["security mitigations on public instances as it‘s definitely not recommended to host teddycloud in public accessible for all","prepared authentication for frontend (backend adaptions)","linked new /web gui on teddycloud administration gui","overworked header, reordered menu items, new icons, better readable status in new /web gui","fixed modals (still some display problems on small devices like mobiles exists)","added audio encoder to new /web gui, you are now able to select files and encode them to a taf","This lets you bring your own content easily on an existing tonie.","added toniebox management to new /web gui, improved backend functions for that","only at least once connected boxes are listed, model must be set manually","enriched homepage in new /web gui with 5 randomly selected tonies of yours","adapt tonie card list to different cover image sizes in new /web gui (all cards within one row have now the same height)","added no cloud and live icon (Toggle to enable/disable) on tonie card in new /web gui","fixed several bugs"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/pull/154","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/8","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/9","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/19","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/21","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/22"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-0/444",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.0"},{version:"0.4.5 and older",changes:["A lot more. See Github for details!"],commits:[]}],n=r=>{const a=/(https?:\/\/[^\s]+)/g;return r.split(a).map((i,s)=>a.test(i)?w.jsx(At,{to:i,target:"_blank",rel:"noopener noreferrer",children:i},s):i)};return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.changelog.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.changelog.title")}),w.jsx(D5,{children:w.jsx(Us,{dataSource:t,renderItem:r=>w.jsxs(w.Fragment,{children:[w.jsxs("h2",{children:["Version ",r.version]}),w.jsxs(D5,{children:[w.jsx("h3",{children:"Changes"}),w.jsx("ul",{children:r.changes.map((a,o)=>w.jsx("li",{children:n(a)},o))})]}),r.commits&&r.commits.length>0&&w.jsxs(w.Fragment,{children:[w.jsx(l2,{strong:!0,children:"All contained commits can be found here (teddy cloud repo):"}),w.jsx("ul",{children:r.commits.map((a,o)=>w.jsx("li",{children:w.jsx(At,{to:a,target:"_blank",children:a})},o))})]}),r.discussionLink&&w.jsxs(w.Fragment,{children:[w.jsx(l2,{strong:!0,children:"Discussion:"}),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:r.discussionLink,target:"_blank",children:r.discussionLink})})})]}),r.githubReleaseLink&&w.jsxs(w.Fragment,{children:[w.jsx(l2,{strong:!0,children:"GitHub Release:"}),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:r.githubReleaseLink,target:"_blank",children:r.githubReleaseLink})})})]})]})})})]})]})]})};class sa extends Error{}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const bje=4,P5=0,L5=1,yje=2;function Cd(e){let t=e.length;for(;--t>=0;)e[t]=0}const Sje=0,nY=1,wje=2,Cje=3,xje=258,lN=29,Pg=256,jp=Pg+1+lN,Eu=30,cN=19,rY=2*jp+1,Ol=15,c2=16,Eje=7,uN=256,aY=16,oY=17,iY=18,wR=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),kh=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Ije=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),sY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tje=512,ki=new Array((jp+2)*2);Cd(ki);const Bf=new Array(Eu*2);Cd(Bf);const Bp=new Array(Tje);Cd(Bp);const zp=new Array(xje-Cje+1);Cd(zp);const dN=new Array(lN);Cd(dN);const Vv=new Array(Eu);Cd(Vv);function u2(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let lY,cY,uY;function d2(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const dY=e=>e<256?Bp[e]:Bp[256+(e>>>7)],Hp=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ea=(e,t,n)=>{e.bi_valid>c2-n?(e.bi_buf|=t<>c2-e.bi_valid,e.bi_valid+=n-c2):(e.bi_buf|=t<{Ea(e,n[t*2],n[t*2+1])},fY=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},Rje=e=>{e.bi_valid===16?(Hp(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},_je=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,f,p,g,v,m=0;for(p=0;p<=Ol;p++)e.bl_count[p]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(p=c,m++),n[d*2+1]=p,!(d>r)&&(e.bl_count[p]++,g=0,d>=s&&(g=i[d-s]),v=n[d*2],e.opt_len+=v*(p+g),o&&(e.static_len+=v*(a[d*2+1]+g)));if(m!==0){do{for(p=c-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,m-=2}while(m>0);for(p=c;p!==0;p--)for(d=e.bl_count[p];d!==0;)f=e.heap[--u],!(f>r)&&(n[f*2+1]!==p&&(e.opt_len+=(p-n[f*2+1])*n[f*2],n[f*2+1]=p),d--)}},pY=(e,t,n)=>{const r=new Array(Ol+1);let a=0,o,i;for(o=1;o<=Ol;o++)a=a+n[o-1]<<1,r[o]=a;for(i=0;i<=t;i++){let s=e[i*2+1];s!==0&&(e[i*2]=fY(r[s]++,s))}},$je=()=>{let e,t,n,r,a;const o=new Array(Ol+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Hp(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},F5=(e,t,n,r)=>{const a=t*2,o=n*2;return e[a]{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let r,a,o=0,i,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,a=e.pending_buf[e.sym_buf+o++],r===0?ri(e,a,t):(i=zp[a],ri(e,i+Pg+1,t),s=wR[i],s!==0&&(a-=dN[i],Ea(e,a,s)),r--,i=dY(r),ri(e,i,n),s=kh[i],s!==0&&(r-=Vv[i],Ea(e,r,s)));while(o{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let i,s,c=-1,u;for(e.heap_len=0,e.heap_max=rY,i=0;i>1;i>=1;i--)f2(e,n,i);u=o;do i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],f2(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=s,n[u*2]=n[i*2]+n[s*2],e.depth[u]=(e.depth[i]>=e.depth[s]?e.depth[i]:e.depth[s])+1,n[i*2+1]=n[s*2+1]=u,e.heap[1]=u++,f2(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],_je(e,t),pY(n,c,e.bl_count)},B5=(e,t,n)=>{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=i,i=t[(r+1)*2+1],!(++s{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),r=0;r<=n;r++)if(o=i,i=t[(r+1)*2+1],!(++s{let t;for(B5(e,e.dyn_ltree,e.l_desc.max_code),B5(e,e.dyn_dtree,e.d_desc.max_code),CR(e,e.bl_desc),t=cN-1;t>=3&&e.bl_tree[sY[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},Nje=(e,t,n,r)=>{let a;for(Ea(e,t-257,5),Ea(e,n-1,5),Ea(e,r-4,4),a=0;a{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return P5;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return L5;for(n=32;n{H5||($je(),H5=!0),e.l_desc=new d2(e.dyn_ltree,lY),e.d_desc=new d2(e.dyn_dtree,cY),e.bl_desc=new d2(e.bl_tree,uY),e.bi_buf=0,e.bi_valid=0,gY(e)},hY=(e,t,n,r)=>{Ea(e,(Sje<<1)+(r?1:0),3),mY(e),Hp(e,n),Hp(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},Mje=e=>{Ea(e,nY<<1,3),ri(e,uN,ki),Rje(e)},Dje=(e,t,n,r)=>{let a,o,i=0;e.level>0?(e.strm.data_type===yje&&(e.strm.data_type=kje(e)),CR(e,e.l_desc),CR(e,e.d_desc),i=Oje(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?hY(e,t,n,r):e.strategy===bje||o===a?(Ea(e,(nY<<1)+(r?1:0),3),j5(e,ki,Bf)):(Ea(e,(wje<<1)+(r?1:0),3),Nje(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),j5(e,e.dyn_ltree,e.dyn_dtree)),gY(e),r&&mY(e)},Pje=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(zp[n]+Pg+1)*2]++,e.dyn_dtree[dY(t)*2]++),e.sym_next===e.sym_end);var Lje=Aje,Fje=hY,jje=Dje,Bje=Pje,zje=Mje,Hje={_tr_init:Lje,_tr_stored_block:Fje,_tr_flush_block:jje,_tr_tally:Bje,_tr_align:zje};const Uje=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,o=o+a|0;while(--i);a%=65521,o%=65521}return a|o<<16|0};var Up=Uje;const Vje=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Wje=new Uint32Array(Vje()),Gje=(e,t,n,r)=>{const a=Wje,o=r+n;e^=-1;for(let i=r;i>>8^a[(e^t[i])&255];return e^-1};var $r=Gje,oc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:qje,_tr_stored_block:xR,_tr_flush_block:Kje,_tr_tally:Ls,_tr_align:Yje}=Hje,{Z_NO_FLUSH:Fs,Z_PARTIAL_FLUSH:Xje,Z_FULL_FLUSH:Zje,Z_FINISH:uo,Z_BLOCK:U5,Z_OK:zr,Z_STREAM_END:V5,Z_STREAM_ERROR:si,Z_DATA_ERROR:Qje,Z_BUF_ERROR:p2,Z_DEFAULT_COMPRESSION:Jje,Z_FILTERED:eBe,Z_HUFFMAN_ONLY:Xm,Z_RLE:tBe,Z_FIXED:nBe,Z_DEFAULT_STRATEGY:rBe,Z_UNKNOWN:aBe,Z_DEFLATED:Z0}=xd,oBe=9,iBe=15,sBe=8,lBe=29,cBe=256,ER=cBe+1+lBe,uBe=30,dBe=19,fBe=2*ER+1,pBe=15,fn=3,Is=258,li=Is+fn+1,gBe=32,Yu=42,fN=57,IR=69,TR=73,RR=91,_R=103,Nl=113,ff=666,ca=1,Ed=2,ic=3,Id=4,mBe=3,kl=(e,t)=>(e.msg=oc[t],t),W5=e=>e*2-(e>4?9:0),bs=e=>{let t=e.length;for(;--t>=0;)e[t]=0},hBe=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=a?n-a:0;while(--t);t=a,r=t;do n=e.prev[--r],e.prev[r]=n>=a?n-a:0;while(--t)};let vBe=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Wa=(e,t)=>{Kje(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Fa(e.strm)},bn=(e,t)=>{e.pending_buf[e.pending++]=t},Xd=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},$R=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),e.state.wrap===1?e.adler=Up(e.adler,t,a,n):e.state.wrap===2&&(e.adler=$r(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},vY=(e,t)=>{let n=e.max_chain_length,r=e.strstart,a,o,i=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-li?e.strstart-(e.w_size-li):0,u=e.window,d=e.w_mask,f=e.prev,p=e.strstart+Is;let g=u[r+i-1],v=u[r+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(u[a+i]!==v||u[a+i-1]!==g||u[a]!==u[r]||u[++a]!==u[r+1])){r+=2,a++;do;while(u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&ri){if(e.match_start=t,i=o,o>=s)break;g=u[r+i-1],v=u[r+i]}}while((t=f[t&d])>c&&--n!==0);return i<=e.lookahead?i:e.lookahead},Xu=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-li)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),hBe(e),r+=t),e.strm.avail_in===0)break;if(n=$R(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=fn)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=js(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=js(e,e.ins_h,e.window[a+fn-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,a,o,i=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outa+e.strm.avail_in&&(r=a+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Fa(e.strm),a&&(a>r&&(a=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,r-=a),r&&($R(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(i===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&($R(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,a=e.strstart-e.block_start,(a>=n||(a||t===uo)&&t!==Fs&&e.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,i=t===uo&&e.strm.avail_in===0&&r===a?1:0,xR(e,e.block_start,r,i),e.block_start+=r,Fa(e.strm)),i?ic:ca)},g2=(e,t)=>{let n,r;for(;;){if(e.lookahead=fn&&(e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-li&&(e.match_length=vY(e,n)),e.match_length>=fn)if(r=Ls(e,e.strstart-e.match_start,e.match_length-fn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=fn){e.match_length--;do e.strstart++,e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=js(e,e.ins_h,e.window[e.strstart+1]);else r=Ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Wa(e,!1),e.strm.avail_out===0))return ca}return e.insert=e.strstart{let n,r,a;for(;;){if(e.lookahead=fn&&(e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=fn-1,n!==0&&e.prev_length4096)&&(e.match_length=fn-1)),e.prev_length>=fn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-fn,r=Ls(e,e.strstart-1-e.prev_match,e.prev_length-fn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=fn-1,e.strstart++,r&&(Wa(e,!1),e.strm.avail_out===0))return ca}else if(e.match_available){if(r=Ls(e,0,e.window[e.strstart-1]),r&&Wa(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ca}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ls(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,a,o;const i=e.window;for(;;){if(e.lookahead<=Is){if(Xu(e),e.lookahead<=Is&&t===Fs)return ca;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=fn&&e.strstart>0&&(a=e.strstart-1,r=i[a],r===i[++a]&&r===i[++a]&&r===i[++a])){o=e.strstart+Is;do;while(r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=fn?(n=Ls(e,1,e.match_length-fn),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Wa(e,!1),e.strm.avail_out===0))return ca}return e.insert=0,t===uo?(Wa(e,!0),e.strm.avail_out===0?ic:Id):e.sym_next&&(Wa(e,!1),e.strm.avail_out===0)?ca:Ed},yBe=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Xu(e),e.lookahead===0)){if(t===Fs)return ca;break}if(e.match_length=0,n=Ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Wa(e,!1),e.strm.avail_out===0))return ca}return e.insert=0,t===uo?(Wa(e,!0),e.strm.avail_out===0?ic:Id):e.sym_next&&(Wa(e,!1),e.strm.avail_out===0)?ca:Ed};function Zo(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const pf=[new Zo(0,0,0,0,bY),new Zo(4,4,8,4,g2),new Zo(4,5,16,8,g2),new Zo(4,6,32,32,g2),new Zo(4,4,16,16,Uc),new Zo(8,16,32,32,Uc),new Zo(8,16,128,128,Uc),new Zo(8,32,128,256,Uc),new Zo(32,128,258,1024,Uc),new Zo(32,258,258,4096,Uc)],SBe=e=>{e.window_size=2*e.w_size,bs(e.head),e.max_lazy_match=pf[e.level].max_lazy,e.good_match=pf[e.level].good_length,e.nice_match=pf[e.level].nice_length,e.max_chain_length=pf[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=fn-1,e.match_available=0,e.ins_h=0};function wBe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z0,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(fBe*2),this.dyn_dtree=new Uint16Array((2*uBe+1)*2),this.bl_tree=new Uint16Array((2*dBe+1)*2),bs(this.dyn_ltree),bs(this.dyn_dtree),bs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(pBe+1),this.heap=new Uint16Array(2*ER+1),bs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ER+1),bs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Lg=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Yu&&t.status!==fN&&t.status!==IR&&t.status!==TR&&t.status!==RR&&t.status!==_R&&t.status!==Nl&&t.status!==ff?1:0},yY=e=>{if(Lg(e))return kl(e,si);e.total_in=e.total_out=0,e.data_type=aBe;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?fN:t.wrap?Yu:Nl,e.adler=t.wrap===2?0:1,t.last_flush=-2,qje(t),zr},SY=e=>{const t=yY(e);return t===zr&&SBe(e.state),t},CBe=(e,t)=>Lg(e)||e.state.wrap!==2?si:(e.state.gzhead=t,zr),wY=(e,t,n,r,a,o)=>{if(!e)return si;let i=1;if(t===Jje&&(t=6),r<0?(i=0,r=-r):r>15&&(i=2,r-=16),a<1||a>oBe||n!==Z0||r<8||r>15||t<0||t>9||o<0||o>nBe||r===8&&i!==1)return kl(e,si);r===8&&(r=9);const s=new wBe;return e.state=s,s.strm=e,s.status=Yu,s.wrap=i,s.gzhead=null,s.w_bits=r,s.w_size=1<wY(e,t,Z0,iBe,sBe,rBe),EBe=(e,t)=>{if(Lg(e)||t>U5||t<0)return e?kl(e,si):si;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===ff&&t!==uo)return kl(e,e.avail_out===0?p2:si);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Fa(e),e.avail_out===0)return n.last_flush=-1,zr}else if(e.avail_in===0&&W5(t)<=W5(r)&&t!==uo)return kl(e,p2);if(n.status===ff&&e.avail_in!==0)return kl(e,p2);if(n.status===Yu&&n.wrap===0&&(n.status=Nl),n.status===Yu){let a=Z0+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=Xm||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,a|=o<<6,n.strstart!==0&&(a|=gBe),a+=31-a%31,Xd(n,a),n.strstart!==0&&(Xd(n,e.adler>>>16),Xd(n,e.adler&65535)),e.adler=1,n.status=Nl,Fa(e),n.pending!==0)return n.last_flush=-1,zr}if(n.status===fN){if(e.adler=0,bn(n,31),bn(n,139),bn(n,8),n.gzhead)bn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),bn(n,n.gzhead.time&255),bn(n,n.gzhead.time>>8&255),bn(n,n.gzhead.time>>16&255),bn(n,n.gzhead.time>>24&255),bn(n,n.level===9?2:n.strategy>=Xm||n.level<2?4:0),bn(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(bn(n,n.gzhead.extra.length&255),bn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=$r(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=IR;else if(bn(n,0),bn(n,0),bn(n,0),bn(n,0),bn(n,0),bn(n,n.level===9?2:n.strategy>=Xm||n.level<2?4:0),bn(n,mBe),n.status=Nl,Fa(e),n.pending!==0)return n.last_flush=-1,zr}if(n.status===IR){if(n.gzhead.extra){let a=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,Fa(e),n.pending!==0)return n.last_flush=-1,zr;a=0,o-=s}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=TR}if(n.status===TR){if(n.gzhead.name){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),Fa(e),n.pending!==0)return n.last_flush=-1,zr;a=0}n.gzindexa&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=RR}if(n.status===RR){if(n.gzhead.comment){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),Fa(e),n.pending!==0)return n.last_flush=-1,zr;a=0}n.gzindexa&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a))}n.status=_R}if(n.status===_R){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Fa(e),n.pending!==0))return n.last_flush=-1,zr;bn(n,e.adler&255),bn(n,e.adler>>8&255),e.adler=0}if(n.status=Nl,Fa(e),n.pending!==0)return n.last_flush=-1,zr}if(e.avail_in!==0||n.lookahead!==0||t!==Fs&&n.status!==ff){let a=n.level===0?bY(n,t):n.strategy===Xm?yBe(n,t):n.strategy===tBe?bBe(n,t):pf[n.level].func(n,t);if((a===ic||a===Id)&&(n.status=ff),a===ca||a===ic)return e.avail_out===0&&(n.last_flush=-1),zr;if(a===Ed&&(t===Xje?Yje(n):t!==U5&&(xR(n,0,0,!1),t===Zje&&(bs(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Fa(e),e.avail_out===0))return n.last_flush=-1,zr}return t!==uo?zr:n.wrap<=0?V5:(n.wrap===2?(bn(n,e.adler&255),bn(n,e.adler>>8&255),bn(n,e.adler>>16&255),bn(n,e.adler>>24&255),bn(n,e.total_in&255),bn(n,e.total_in>>8&255),bn(n,e.total_in>>16&255),bn(n,e.total_in>>24&255)):(Xd(n,e.adler>>>16),Xd(n,e.adler&65535)),Fa(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?zr:V5)},IBe=e=>{if(Lg(e))return si;const t=e.state.status;return e.state=null,t===Nl?kl(e,Qje):zr},TBe=(e,t)=>{let n=t.length;if(Lg(e))return si;const r=e.state,a=r.wrap;if(a===2||a===1&&r.status!==Yu||r.lookahead)return si;if(a===1&&(e.adler=Up(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){a===0&&(bs(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}const o=e.avail_in,i=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Xu(r);r.lookahead>=fn;){let c=r.strstart,u=r.lookahead-(fn-1);do r.ins_h=js(r,r.ins_h,r.window[c+fn-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=fn-1,Xu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=fn-1,r.match_available=0,e.next_in=i,e.input=s,e.avail_in=o,r.wrap=a,zr};var RBe=xBe,_Be=wY,$Be=SY,OBe=yY,NBe=CBe,kBe=EBe,ABe=IBe,MBe=TBe,DBe="pako deflate (from Nodeca project)",zf={deflateInit:RBe,deflateInit2:_Be,deflateReset:$Be,deflateResetKeep:OBe,deflateSetHeader:NBe,deflate:kBe,deflateEnd:ABe,deflateSetDictionary:MBe,deflateInfo:DBe};const PBe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var LBe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)PBe(n,r)&&(e[r]=n[r])}}return e},FBe=e=>{let t=0;for(let r=0,a=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Vp[254]=Vp[254]=1;var jBe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,i=e.length,s=0;for(a=0;a>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const BBe=(e,t)=>{if(t<65534&&e.subarray&&CY)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r4){o[a++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r1){o[a++]=65533;continue}i<65536?o[a++]=i:(i-=65536,o[a++]=55296|i>>10&1023,o[a++]=56320|i&1023)}return BBe(o,a)},HBe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Vp[e[n]]>t?n:t},Wp={string2buf:jBe,buf2string:zBe,utf8border:HBe};function UBe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var xY=UBe;const EY=Object.prototype.toString,{Z_NO_FLUSH:VBe,Z_SYNC_FLUSH:WBe,Z_FULL_FLUSH:GBe,Z_FINISH:qBe,Z_OK:Wv,Z_STREAM_END:KBe,Z_DEFAULT_COMPRESSION:YBe,Z_DEFAULT_STRATEGY:XBe,Z_DEFLATED:ZBe}=xd;function Fg(e){this.options=Q0.assign({level:YBe,method:ZBe,chunkSize:16384,windowBits:15,memLevel:8,strategy:XBe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xY,this.strm.avail_out=0;let n=zf.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Wv)throw new Error(oc[n]);if(t.header&&zf.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Wp.string2buf(t.dictionary):EY.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=zf.deflateSetDictionary(this.strm,r),n!==Wv)throw new Error(oc[n]);this._dict_set=!0}}Fg.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?qBe:VBe,typeof e=="string"?n.input=Wp.string2buf(e):EY.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===WBe||o===GBe)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(a=zf.deflate(n,o),a===KBe)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=zf.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Wv;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Fg.prototype.onData=function(e){this.chunks.push(e)};Fg.prototype.onEnd=function(e){e===Wv&&(this.result=Q0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pN(e,t){const n=new Fg(t);if(n.push(e,!0),n.err)throw n.msg||oc[n.err];return n.result}function QBe(e,t){return t=t||{},t.raw=!0,pN(e,t)}function JBe(e,t){return t=t||{},t.gzip=!0,pN(e,t)}var e7e=Fg,t7e=pN,n7e=QBe,r7e=JBe,a7e=xd,o7e={Deflate:e7e,deflate:t7e,deflateRaw:n7e,gzip:r7e,constants:a7e};const Zm=16209,i7e=16191;var s7e=function(t,n){let r,a,o,i,s,c,u,d,f,p,g,v,m,h,y,b,S,C,x,E,I,R,T,_;const $=t.state;r=t.next_in,T=t.input,a=r+(t.avail_in-5),o=t.next_out,_=t.output,i=o-(n-t.avail_out),s=o+(t.avail_out-257),c=$.dmax,u=$.wsize,d=$.whave,f=$.wnext,p=$.window,g=$.hold,v=$.bits,m=$.lencode,h=$.distcode,y=(1<<$.lenbits)-1,b=(1<<$.distbits)-1;e:do{v<15&&(g+=T[r++]<>>24,g>>>=C,v-=C,C=S>>>16&255,C===0)_[o++]=S&65535;else if(C&16){x=S&65535,C&=15,C&&(v>>=C,v-=C),v<15&&(g+=T[r++]<>>24,g>>>=C,v-=C,C=S>>>16&255,C&16){if(E=S&65535,C&=15,vc){t.msg="invalid distance too far back",$.mode=Zm;break e}if(g>>>=C,v-=C,C=o-i,E>C){if(C=E-C,C>d&&$.sane){t.msg="invalid distance too far back",$.mode=Zm;break e}if(I=0,R=p,f===0){if(I+=u-C,C2;)_[o++]=R[I++],_[o++]=R[I++],_[o++]=R[I++],x-=3;x&&(_[o++]=R[I++],x>1&&(_[o++]=R[I++]))}else{I=o-E;do _[o++]=_[I++],_[o++]=_[I++],_[o++]=_[I++],x-=3;while(x>2);x&&(_[o++]=_[I++],x>1&&(_[o++]=_[I++]))}}else if(C&64){t.msg="invalid distance code",$.mode=Zm;break e}else{S=h[(S&65535)+(g&(1<>3,r-=x,v-=x<<3,g&=(1<{const c=s.bits;let u=0,d=0,f=0,p=0,g=0,v=0,m=0,h=0,y=0,b=0,S,C,x,E,I,R=null,T;const _=new Uint16Array(Vc+1),$=new Uint16Array(Vc+1);let D=null,P,A,O;for(u=0;u<=Vc;u++)_[u]=0;for(d=0;d=1&&_[p]===0;p--);if(g>p&&(g=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f0&&(e===K5||p!==1))return-1;for($[1]=0,u=1;uG5||e===Y5&&y>q5)return 1;for(;;){P=u-m,i[d]+1=T?(A=D[i[d]-T],O=R[i[d]-T]):(A=96,O=0),S=1<>m)+C]=P<<24|A<<16|O|0;while(C!==0);for(S=1<>=1;if(S!==0?(b&=S-1,b+=S):b=0,d++,--_[u]===0){if(u===p)break;u=t[n+i[d]]}if(u>g&&(b&E)!==x){for(m===0&&(m=g),I+=f,v=u-m,h=1<G5||e===Y5&&y>q5)return 1;x=b&E,a[x]=g<<24|v<<16|I-o|0}}return b!==0&&(a[I+b]=u-m<<24|64<<16|0),s.bits=g,0};var Hf=f7e;const p7e=0,IY=1,TY=2,{Z_FINISH:X5,Z_BLOCK:g7e,Z_TREES:Qm,Z_OK:sc,Z_STREAM_END:m7e,Z_NEED_DICT:h7e,Z_STREAM_ERROR:wo,Z_DATA_ERROR:RY,Z_MEM_ERROR:_Y,Z_BUF_ERROR:v7e,Z_DEFLATED:Z5}=xd,J0=16180,Q5=16181,J5=16182,ej=16183,tj=16184,nj=16185,rj=16186,aj=16187,oj=16188,ij=16189,Gv=16190,Ii=16191,h2=16192,sj=16193,v2=16194,lj=16195,cj=16196,uj=16197,dj=16198,Jm=16199,eh=16200,fj=16201,pj=16202,gj=16203,mj=16204,hj=16205,b2=16206,vj=16207,bj=16208,qn=16209,$Y=16210,OY=16211,b7e=852,y7e=592,S7e=15,w7e=S7e,yj=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function C7e(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ec=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeOY?1:0},NY=e=>{if(Ec(e))return wo;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=J0,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(b7e),t.distcode=t.distdyn=new Int32Array(y7e),t.sane=1,t.back=-1,sc},kY=e=>{if(Ec(e))return wo;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,NY(e)},AY=(e,t)=>{let n;if(Ec(e))return wo;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?wo:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,kY(e))},MY=(e,t)=>{if(!e)return wo;const n=new C7e;e.state=n,n.strm=e,n.window=null,n.mode=J0;const r=AY(e,t);return r!==sc&&(e.state=null),r},x7e=e=>MY(e,w7e);let Sj=!0,y2,S2;const E7e=e=>{if(Sj){y2=new Int32Array(512),S2=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Hf(IY,e.lens,0,288,y2,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Hf(TY,e.lens,0,32,S2,0,e.work,{bits:5}),Sj=!1}e.lencode=y2,e.lenbits=9,e.distcode=S2,e.distbits=5},DY=(e,t,n,r)=>{let a;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,a,o,i,s,c,u,d,f,p,g,v,m,h=0,y,b,S,C,x,E,I,R;const T=new Uint8Array(4);let _,$;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ec(e)||!e.output||!e.input&&e.avail_in!==0)return wo;n=e.state,n.mode===Ii&&(n.mode=h2),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,f=s,p=c,R=sc;e:for(;;)switch(n.mode){case J0:if(n.wrap===0){n.mode=h2;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=$r(n.check,T,2,0),u=0,d=0,n.mode=Q5;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=qn;break}if((u&15)!==Z5){e.msg="unknown compression method",n.mode=qn;break}if(u>>>=4,d-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=qn;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=$r(n.check,T,2,0)),u=0,d=0,n.mode=J5;case J5:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>8&255,T[2]=u>>>16&255,T[3]=u>>>24&255,n.check=$r(n.check,T,4,0)),u=0,d=0,n.mode=ej;case ej:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=$r(n.check,T,2,0)),u=0,d=0,n.mode=tj;case tj:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=$r(n.check,T,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=nj;case nj:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+g),I)),n.flags&512&&n.wrap&4&&(n.check=$r(n.check,r,g,o)),s-=g,o+=g,n.length-=g),n.length))break e;n.length=0,n.mode=rj;case rj:if(n.flags&2048){if(s===0)break e;g=0;do I=r[o+g++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&g>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ii;break;case ij:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>=d&7,d-=d&7,n.mode=b2;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<>>=1,d-=1,u&3){case 0:n.mode=sj;break;case 1:if(E7e(n),n.mode=Jm,t===Qm){u>>>=2,d-=2;break e}break;case 2:n.mode=cj;break;case 3:e.msg="invalid block type",n.mode=qn}u>>>=2,d-=2;break;case sj:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=qn;break}if(n.length=u&65535,u=0,d=0,n.mode=v2,t===Qm)break e;case v2:n.mode=lj;case lj:if(g=n.length,g){if(g>s&&(g=s),g>c&&(g=c),g===0)break e;a.set(r.subarray(o,o+g),i),s-=g,o+=g,c-=g,i+=g,n.length-=g;break}n.mode=Ii;break;case cj:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=qn;break}n.have=0,n.mode=uj;case uj:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},R=Hf(p7e,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,R){e.msg="invalid code lengths set",n.mode=qn;break}n.have=0,n.mode=dj;case dj:for(;n.have>>24,b=h>>>16&255,S=h&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,n.lens[n.have++]=S;else{if(S===16){for($=y+2;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=qn;break}I=n.lens[n.have-1],g=3+(u&3),u>>>=2,d-=2}else if(S===17){for($=y+3;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,I=0,g=3+(u&7),u>>>=3,d-=3}else{for($=y+7;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,I=0,g=11+(u&127),u>>>=7,d-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=qn;break}for(;g--;)n.lens[n.have++]=I}}if(n.mode===qn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=qn;break}if(n.lenbits=9,_={bits:n.lenbits},R=Hf(IY,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,R){e.msg="invalid literal/lengths set",n.mode=qn;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},R=Hf(TY,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,R){e.msg="invalid distances set",n.mode=qn;break}if(n.mode=Jm,t===Qm)break e;case Jm:n.mode=eh;case eh:if(s>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,s7e(e,p),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===Ii&&(n.back=-1);break}for(n.back=0;h=n.lencode[u&(1<>>24,b=h>>>16&255,S=h&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],y=h>>>24,b=h>>>16&255,S=h&65535,!(C+y<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=y,d-=y,n.back+=y,n.length=S,b===0){n.mode=hj;break}if(b&32){n.back=-1,n.mode=Ii;break}if(b&64){e.msg="invalid literal/length code",n.mode=qn;break}n.extra=b&15,n.mode=fj;case fj:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=pj;case pj:for(;h=n.distcode[u&(1<>>24,b=h>>>16&255,S=h&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],y=h>>>24,b=h>>>16&255,S=h&65535,!(C+y<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=y,d-=y,n.back+=y,b&64){e.msg="invalid distance code",n.mode=qn;break}n.offset=S,n.extra=b&15,n.mode=gj;case gj:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=qn;break}n.mode=mj;case mj:if(c===0)break e;if(g=p-c,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=qn;break}g>n.wnext?(g-=n.wnext,v=n.wsize-g):v=n.wnext-g,g>n.length&&(g=n.length),m=n.window}else m=a,v=i-n.offset,g=n.length;g>c&&(g=c),c-=g,n.length-=g;do a[i++]=m[v++];while(--g);n.length===0&&(n.mode=eh);break;case hj:if(c===0)break e;a[i++]=n.length,c--,n.mode=eh;break;case b2:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<{if(Ec(e))return wo;let t=e.state;return t.window&&(t.window=null),e.state=null,sc},R7e=(e,t)=>{if(Ec(e))return wo;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,sc):wo},_7e=(e,t)=>{const n=t.length;let r,a,o;return Ec(e)||(r=e.state,r.wrap!==0&&r.mode!==Gv)?wo:r.mode===Gv&&(a=1,a=Up(a,t,n,0),a!==r.check)?RY:(o=DY(e,t,n,n),o?(r.mode=$Y,_Y):(r.havedict=1,sc))};var $7e=kY,O7e=AY,N7e=NY,k7e=x7e,A7e=MY,M7e=I7e,D7e=T7e,P7e=R7e,L7e=_7e,F7e="pako inflate (from Nodeca project)",Ai={inflateReset:$7e,inflateReset2:O7e,inflateResetKeep:N7e,inflateInit:k7e,inflateInit2:A7e,inflate:M7e,inflateEnd:D7e,inflateGetHeader:P7e,inflateSetDictionary:L7e,inflateInfo:F7e};function j7e(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var B7e=j7e;const PY=Object.prototype.toString,{Z_NO_FLUSH:z7e,Z_FINISH:H7e,Z_OK:Gp,Z_STREAM_END:w2,Z_NEED_DICT:C2,Z_STREAM_ERROR:U7e,Z_DATA_ERROR:wj,Z_MEM_ERROR:V7e}=xd;function jg(e){this.options=Q0.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xY,this.strm.avail_out=0;let n=Ai.inflateInit2(this.strm,t.windowBits);if(n!==Gp)throw new Error(oc[n]);if(this.header=new B7e,Ai.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Wp.string2buf(t.dictionary):PY.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ai.inflateSetDictionary(this.strm,t.dictionary),n!==Gp)))throw new Error(oc[n])}jg.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?H7e:z7e,PY.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Ai.inflate(n,i),o===C2&&a&&(o=Ai.inflateSetDictionary(n,a),o===Gp?o=Ai.inflate(n,i):o===wj&&(o=C2));n.avail_in>0&&o===w2&&n.state.wrap>0&&e[n.next_in]!==0;)Ai.inflateReset(n),o=Ai.inflate(n,i);switch(o){case U7e:case wj:case C2:case V7e:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===w2))if(this.options.to==="string"){let c=Wp.utf8border(n.output,n.next_out),u=n.next_out-c,d=Wp.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Gp&&s===0)){if(o===w2)return o=Ai.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};jg.prototype.onData=function(e){this.chunks.push(e)};jg.prototype.onEnd=function(e){e===Gp&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Q0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function gN(e,t){const n=new jg(t);if(n.push(e),n.err)throw n.msg||oc[n.err];return n.result}function W7e(e,t){return t=t||{},t.raw=!0,gN(e,t)}var G7e=jg,q7e=gN,K7e=W7e,Y7e=gN,X7e=xd,Z7e={Inflate:G7e,inflate:q7e,inflateRaw:K7e,ungzip:Y7e,constants:X7e};const{Deflate:Cze,deflate:Q7e,deflateRaw:xze,gzip:Eze}=o7e,{Inflate:J7e,inflate:Ize,inflateRaw:Tze,ungzip:Rze}=Z7e;var eze=Q7e,tze=J7e;class Ah{constructor(t,n=!1,r=!0){this.device=t,this.tracing=n,this.slipReaderEnabled=!1,this.leftOver=new Uint8Array(0),this.baudrate=0,this.traceLog="",this.lastTraceTime=Date.now(),this._DTR_state=!1,this.slipReaderEnabled=r}getInfo(){const t=this.device.getInfo();return t.usbVendorId&&t.usbProductId?`WebSerial VendorID 0x${t.usbVendorId.toString(16)} ProductID 0x${t.usbProductId.toString(16)}`:""}getPid(){return this.device.getInfo().usbProductId}trace(t){const a=`${`TRACE ${(Date.now()-this.lastTraceTime).toFixed(3)}`} ${t}`;console.log(a),this.traceLog+=a+` + `),n.append(a.name,new Blob([b.buffer]),`pcmData.${r.indexOf(a)}.pcm`),e(void 0)}catch(c){t(c)}},i.onerror=()=>{t("Failed to read the file")},a.file&&i.readAsArrayBuffer(a.file)}const J5e=e=>Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),qm=new Tn(hn()),ls={id:"1",pId:"-1",value:"1",title:"/"},Km=99,eje=()=>{const{t:e}=Ht(),[t,n]=nt.useMessage(),[r,a]=l.useState(!1),[o,i]=l.useState([]),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[f,p]=l.useState(""),[g,v]=l.useState(ls.id),[m,h]=l.useState([ls]),[y,b]=l.useState(!1),[S,C]=l.useState(""),x=l.useRef(null);let E=0;l.useEffect(()=>{(async()=>{const H=new Tn(hn());let U=!1;try{const X=await H.apiGetTeddyCloudSettingRaw("debug.web.pcm_encode_console_url");if(!X.ok)throw new Error(`HTTP error! status: ${X.status}`);U=(await X.json()).toString()==="true"}catch(X){console.error("Error fetching debug.web.pcm_encode_console_url: ",X)}a(U)})(),(async()=>{const H=A(ls.id);qm.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${H}&special=library`).then(U=>U.json()).then(U=>{var X=U.files;X=X.filter(W=>W.isDir&&W.name!=="..").sort((W,Y)=>W.name===Y.name?0:W.name.toLowerCase()>Y.name.toLowerCase()?1:-1).map(W=>({id:ls.id+"."+X.indexOf(W),pId:ls.id,value:ls.id+"."+X.indexOf(W),title:W.name})),h(m.concat(X))})})()},[]),l.useEffect(()=>{y&&setTimeout(()=>{x.current&&x.current.focus()},0)},[y]),l.useEffect(()=>{E=o.length},[o]);const I=RFe(iN,{activationConstraint:{distance:10}}),R=({active:B,over:z})=>{B.id!==(z==null?void 0:z.id)&&i(H=>{const U=H.findIndex(W=>W.uid===B.id),X=H.findIndex(W=>W.uid===(z==null?void 0:z.id));return sN(H,U,X)})},T=({fileList:B})=>{E++,E>Km&&t.open({type:"error",content:e("tonies.encoder.maxFiles",{maxFiles:Km})}),i(B.slice(0,Km))},_=B=>{const z=o.indexOf(B),H=o.slice();H.splice(z,1),i(H)},$=async()=>{c(!0);const B=new FormData;for(const Y of o)try{await new Promise((te,ee)=>Q5e(te,ee,B,o,Y,r))}catch(te){nt.error(e("tonies.encoder.errorFileProcessing")+" "+te),c(!1);return}const z=Math.floor(Date.now()/1e3),H={name:f+".taf",audioId:z-1342177280,path:A(g),special:"library"};d(!0);const U=J5e(H),X=await qm.apiPostTeddyCloudFormDataRaw(`/api/pcmUpload?${U}`,B),W=await X.text();X.ok?(nt.success(e("tonies.encoder.uploadSuccessful")),i([]),p(""),h([ls]),v(ls.id)):(console.log("Upload failed:",W),nt.error(e("tonies.encoder.uploadFailed"))),d(!1),c(!1)},D={listType:"picture",multiple:!0,beforeUpload:B=>{const z=B;return z.file=B,o.push(z),i(o),!1},fileList:o,onChange:T,itemRender:(B,z)=>w.jsx(Z5e,{originNode:B,fileList:o,file:z,onRemove:_,disabled:s})},P=({id:B})=>new Promise((z,H)=>{const U=A(B);qm.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${U}&special=library`).then(X=>X.json()).then(X=>{let W=X.files;W=W.filter(Y=>Y.isDir&&Y.name!=="..").sort((Y,te)=>Y.name===te.name?0:Y.name.toLowerCase()>te.name.toLowerCase()?1:-1).map(Y=>({id:B+"."+W.indexOf(Y),pId:B,value:B+"."+W.indexOf(Y),title:Y.name})),h(m.concat(W)),z(!0)}).then(()=>{H()})}),A=B=>{const z=m.filter(H=>H.value===B)[0];return z.pId==="-1"?"":A(m.filter(H=>H.id===z.pId)[0].id)+"/"+z.title},O=()=>{i(B=>[...B].sort((z,H)=>z.name.localeCompare(H.name)))},k=()=>{i([])},N=()=>{b(!0)},M=B=>{C(B.target.value)},L=()=>{const B=A(g),z=`${g}.${m.length}`,H={id:z,pId:g,value:z,title:S};try{qm.apiPostTeddyCloudRaw("/api/dirCreate?special=library",B+"/"+encodeURIComponent(S)).then(U=>U.text()).then(U=>{if(U!=="OK")throw new Error(U);h([...m,H].sort((X,W)=>X.title===W.title?0:X.title.toLowerCase()>W.title.toLowerCase()?1:-1)),v(z),nt.success(e("fileBrowser.createDirectory.directoryCreated")),b(!1),C("")}).catch(U=>{nt.error(U.message)})}catch{nt.error("Error while creating directory")}},F=()=>{b(!1),C("")},j=w.jsxs(On,{title:e("fileBrowser.createDirectory.modalTitle"),open:y,onCancel:F,onOk:L,okText:e("fileBrowser.createDirectory.create"),cancelText:e("fileBrowser.createDirectory.cancel"),children:[w.jsxs("p",{children:[e("fileBrowser.createDirectory.inDirectory")," ",w.jsxs("b",{children:[A(g),"/"]})]}),w.jsx(Jt,{ref:x,autoFocus:!0,placeholder:e("fileBrowser.createDirectory.placeholder"),value:S,onChange:M})]});return w.jsxs(w.Fragment,{children:[n,w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.encoder.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonies.encoder.title")}),w.jsxs(Mo,{direction:"vertical",style:{display:"flex"},children:[w.jsx(_5e,{sensors:[I],onDragEnd:R,children:w.jsx(z5e,{items:o.map(B=>B.uid),strategy:j5e,disabled:s,children:w.jsxs(E0.Dragger,{...D,disabled:s,children:[w.jsx("p",{className:"ant-upload-drag-icon",children:w.jsx(FW,{})}),w.jsx("p",{className:"ant-upload-text",children:e("tonies.encoder.uploadText",{maxFiles:Km})}),w.jsx("p",{className:"ant-upload-hint",children:e("tonies.encoder.uploadHint")})]})})}),o.length>0?w.jsxs(w.Fragment,{children:[w.jsxs(Mo,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start"},children:[w.jsx(Dt,{type:"default",disabled:s,onClick:O,children:e("tonies.encoder.sortAlphabetically")}),w.jsx(Dt,{type:"default",disabled:s,style:{marginRight:16},onClick:k,children:e("tonies.encoder.clearList")})]}),w.jsx(Ca,{}),w.jsx("div",{style:{width:"100%"},className:"encoder",children:w.jsxs(Mo,{direction:"vertical",style:{width:"100%"},children:[w.jsxs(Mo.Compact,{direction:"horizontal",style:{width:"100%",marginBottom:"16px",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[w.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:e("tonies.encoder.saveAs")}),w.jsx(al,{treeLine:!0,treeDataSimpleMode:!0,disabled:s,style:{maxWidth:250},value:g,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:v,loadData:P,treeData:m}),w.jsx(en,{title:e("fileBrowser.createDirectory.createDirectory"),children:w.jsx(Dt,{disabled:s,icon:w.jsx(LW,{}),onClick:N,style:{borderRadius:0}})}),w.jsx(Jt,{addonAfter:".taf",required:!0,style:{maxWidth:300},status:o.length>0&&f===""?"error":"",onChange:B=>p(B.target.value),disabled:s})]}),w.jsx(Mo.Compact,{style:{display:"flex",justifyContent:"flex-end"},children:w.jsx(Dt,{type:"primary",onClick:$,disabled:o.length===0||f==="",loading:s,children:e(s?u?"tonies.encoder.processing":"tonies.encoder.uploading":"tonies.encoder.upload")})})]})})]}):w.jsx(w.Fragment,{})]})]})]}),j]})},{Paragraph:tje}=jn,nje=()=>{const{t:e}=Ht(),[t,n]=l.useState(!1),r=a=>{console.log("Received values of form: ",a),n(!1)};return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(yo,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(yo,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.tap.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonies.tap.title")}),w.jsx(Mr,{message:e("settings.information"),description:w.jsx("div",{children:"Development still in progress - Please be patient or support implementation of this feature!"}),type:"info",showIcon:!0,style:{marginBottom:8}}),w.jsx(kg,{special:"library",filetypeFilter:[".tap"],showColumns:["picture","name","size","date","controls"],isTapList:!0}),w.jsx(tje,{children:w.jsxs("div",{children:[w.jsx(Dt,{type:"primary",style:{marginTop:8},onClick:()=>{n(!0)},children:e("tonies.tapEditor.titleCreate")}),w.jsx(kK,{open:t,onCreate:r,onCancel:()=>{n(!1)}})]})})]})]})]})},Ym=new Tn(hn()),rje=({overlay:e})=>{var d;const[t,n]=l.useState(),{t:r}=Ht(),[a,o]=l.useState(""),[i,s]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const p=await Ym.apiGetTeddyCloudSettingRaw("core.settings_level");if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);const g=await p.json();o(g.toString())}catch(p){console.error("Error fetching settings level: ",p)}})()},[]),l.useEffect(()=>{(async()=>{var g,v;s(!0);const p=await Ym.apiGetIndexGet(e);(g=p==null?void 0:p.options)!=null&&g.length&&((v=p==null?void 0:p.options)==null?void 0:v.length)>0&&n(p),s(!1)})()},[e,a]);const c=async()=>{try{await Ym.apiTriggerWriteConfigGet()}catch{nt.error("Error while saving config to file.")}},u=async f=>{try{await Ym.apiPostTeddyCloudSetting("core.settings_level",f),c(),o(f)}catch{nt.error("Error while sending data to server.")}};return w.jsxs(w.Fragment,{children:[w.jsx(Mr,{message:r("settings.warning"),description:w.jsx("div",{children:r("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px"}}),w.jsx(Ca,{children:r("settings.title")}),w.jsx(Yq,{initialValues:{test:"test"},onSubmit:f=>{},children:w.jsx(Yt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(d=t==null?void 0:t.options)==null?void 0:d.map((f,p,g)=>{if(f.iD.includes("core.settings_level")||!f.iD.includes("core.certdir")&&!f.iD.includes("core.client_cert.")&&!f.iD.includes("core.flex_")&&!f.iD.includes("core.contentdir")&&!f.iD.includes("toniebox.")&&!f.iD.includes("cloud.enabled")&&!f.iD.includes("cloud.enableV1Claim")&&!f.iD.includes("cloud.enableV1CloudReset")&&!f.iD.includes("cloud.enableV1FreshnessCheck")&&!f.iD.includes("cloud.enableV1Log")&&!f.iD.includes("cloud.enableV1Time")&&!f.iD.includes("cloud.enableV1Ota")&&!f.iD.includes("cloud.enableV2Content")&&!f.iD.includes("cloud.cacheOta")&&!f.iD.includes("cloud.localOta")&&!f.iD.includes("cloud.cacheContent")&&!f.iD.includes("cloud.cacheToLibrary")&&!f.iD.includes("cloud.markCustomTagByPass")&&!f.iD.includes("cloud.prioCustomContent")&&!f.iD.includes("cloud.updateOnLowerAudioId")&&!f.iD.includes("cloud.dumpRuidAuthContentJson"))return null;const v=f.iD.split("."),m=g[p-1]?g[p-1].iD.split("."):[];return w.jsxs(le.Fragment,{children:[v.slice(0,-1).map((h,y)=>m[y]!==h?y===0?w.jsxs("h3",{style:{marginLeft:`${y*20}px`,marginBottom:"10px"},children:["Category ",h]},`category-${h}`):w.jsxs("h4",{style:{marginLeft:`${y*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",h]},`category-${h}`):null),w.jsx(Xq,{option:f,overlayId:e},`option-item-${f.iD}`)]},`option-${f.iD}`)})})}),w.jsx(Ca,{children:r("settings.levelLabel")}),w.jsxs(Va.Group,{value:a,onChange:f=>u(f.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:i,children:[w.jsx(Va.Button,{value:"1",children:"Basic"}),w.jsx(Va.Button,{value:"2",children:"Detail"}),w.jsx(Va.Button,{value:"3",children:"Expert"})]})]})},N5=new Tn(hn());function tY(){const[e,t]=l.useState([]);return l.useEffect(()=>{async function n(){try{const a=await(await N5.apiGetTeddyCloudApiRaw("/api/tonieboxesJson")).json(),c=[...await(await N5.apiGetTeddyCloudApiRaw("/api/tonieboxesCustomJson")).json(),...a].map(u=>({id:u.id,name:u.name,img_src:u.img_src,crop:u.crop||null}));t(c)}catch(r){console.error("Error fetching and transforming data:",r),t([])}}n()},[]),e}const Qr=new Tn(hn()),{Paragraph:s2,Text:aje}=jn,{Meta:oje}=dd,{useToken:ije}=vi,sje=({tonieboxCard:e,tonieboxImages:t})=>{var we,Te,me,xe,Be;const{t:n}=Ht(),{token:r}=ije(),[a,o]=nt.useMessage(),[i,s]=l.useState(!1),[c,u]=l.useState(""),[d,f]=l.useState(""),[p,g]=l.useState(""),[v,m]=l.useState(!1),[h,y]=l.useState(null),[b,S]=l.useState(),[C,x]=l.useState(!1),[E,I]=l.useState(!1),[R,T]=l.useState(!1),[_,$]=l.useState(e.boxModel),[D,P]=l.useState(e.boxModel),[A,O]=l.useState(e.boxName),[k,N]=l.useState(e.boxName),[M,L]=l.useState(null),[F,j]=l.useState(!1),[B,z]=l.useState(!0),[H,U]=l.useState(0);l.useEffect(()=>{(async()=>{const Ne=await Qr.apiGetTonieboxApiAccess(e.ID);z(Ne)})()},[e.ID,C]),l.useEffect(()=>{(async()=>{const je=await Qr.apiGetTonieboxStatus(e.ID);s(je)})(),(async()=>{const je=await Qr.apiGetTonieboxVersion(e.ID),qe={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"};if(je in qe){const tt=qe[je];u(tt)}else u("UNKNOWN")})(),(async()=>{const je=await Qr.apiGetTonieboxLastRUID(e.ID);if(je!=="ffffffffffffffff"&&je!==""){const qe=await Qr.apiGetTonieboxLastRUIDTime(e.ID);(async()=>{const Ye=await Qr.apiGetTagIndex(e.ID);te(Ye.filter(ft=>ft.ruid===je),qe)})()}})(),i||(async()=>{const qe=await Qr.apiGetLastOnline(e.ID);f(qe)})(),(async()=>{const qe=await(await Qr.apiGetTeddyCloudSettingRaw("internal.ip",e.ID)).text();g(qe)})(),Y(e.boxModel),P(e.boxModel)},[e.ID,e.boxModel]),l.useEffect(()=>{if(p&&c==="CC3200")try{fetch(`http://${p}/api/ajax?cmd=box-battery&sub=stats`).then(ke=>ke.text()).then(ke=>{console.log("Battery Stats fetched --> assume CFW active"),m(!0)}).catch(ke=>{console.log("No Battery Stats fetched --> assume CFW not active"),m(!1)})}catch{console.log("No Battery Stats fetched --> assume CFW not active"),m(!1)}},[p,c]);const X=tY(),W=[{label:n("tonieboxes.editModelModal.unsetBoxName"),value:"-1"}].concat(X.map(ke=>({label:ke.name,value:ke.id}))),Y=ke=>{const Ne=t.find(He=>He.id===ke);L(Ne?w.jsx("img",{src:Ne.img_src,alt:"",style:{...J(ke),position:"absolute",top:"0",left:"0"}}):w.jsx("img",{src:"https://cdn.tonies.de/thumbnails/03-0009-i.png",alt:"",style:{filter:"opacity(0.20)",width:"100%",height:"auto",position:"absolute",top:"0",left:"0"}}))},te=(ke,Ne)=>{y(w.jsx(w.Fragment,{children:w.jsx(At,{to:"/tonies?tonieRUID="+ke[0].ruid+"&overlay="+e.ID,children:w.jsx(en,{placement:"top",zIndex:2,title:n("tonieboxes.lastPlayedTonie")+ke[0].tonieInfo.series+(ke[0].tonieInfo.episode?" - "+ke[0].tonieInfo.episode:"")+(Ne?" ("+Ne+")":""),children:w.jsx("img",{src:ke[0].tonieInfo.picture,alt:"Tonie",style:{position:"absolute",bottom:0,right:0,zIndex:1,padding:8,borderRadius:4,height:"60%"}})})})}))},ee=()=>{(async()=>{var He,Ge;const Ne=await Qr.apiGetIndexGet(e.ID);(He=Ne==null?void 0:Ne.options)!=null&&He.length&&((Ge=Ne==null?void 0:Ne.options)==null?void 0:Ge.length)>0&&S(Ne)})(),Z()},Z=()=>{I(!0)},oe=async()=>{I(!1)},re=()=>{I(!1)},q=()=>{x(!0)},Q=async()=>{x(!1)},ae=()=>{x(!1)},se=()=>{U(ke=>ke+1),q()},de=()=>{P(D===void 0?_:D),T(!0)},he=()=>{P(_),N(k),O(k),T(!1)},ye=async()=>{Y(D),$(D);const ke=async()=>{await Qr.apiTriggerWriteConfigGet()};try{Qr.apiPostTeddyCloudSetting("boxModel",D,e.ID).then(()=>{ke()}).catch(Ne=>{nt.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),nt.success(n("tonieboxes.editModelModal.successOnModelChange"))}catch(Ne){nt.error(n("tonieboxes.editModelModal.errorOnModelChange",{error:Ne}))}},pe=async()=>{N(A);const ke=async()=>{await Qr.apiTriggerWriteConfigGet()};try{Qr.apiPostTeddyCloudSetting("boxName",A.toString(),e.ID).then(()=>{ke()}).catch(Ne=>{nt.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),nt.success(n("tonieboxes.editModelModal.successOnNameChange"))}catch(Ne){nt.error(n("tonieboxes.editModelModal.errorOnNameChange",{error:Ne}))}},J=ke=>{const Ne=t.find(He=>He.id===ke);if(Ne&&Ne.crop){const[He,Ge,je]=Ne.crop;return{width:"100%",height:"auto",transform:`scale(${je}) translateX(${He}px) translateY(${Ge}px)`}}else return{width:"100%",height:"auto"}},ce=()=>e.ID.replace(/(.{2})(?=.)/g,"$1:"),ue=async()=>{T(!1),A!==k&&pe(),_!==D&&ye()},fe=w.jsx(w.Fragment,{children:w.jsxs(Dt,{type:"primary",onClick:ue,disabled:A===k&&_===D,children:[w.jsx(BW,{},"saveClick")," ",n("tonies.editModal.save")]})}),be=w.jsxs(On,{title:w.jsx(w.Fragment,{children:w.jsxs("h3",{children:[n("tonieboxes.editModelModal.editModel",{name:e.boxName}),w.jsx("br",{}),w.jsx(aje,{type:"secondary",children:(c!=="UNKNOWN"?c:"MAC")+": "+ce()})]})}),open:R,footer:fe,onCancel:he,children:[w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.name")}),w.jsx(s2,{children:w.jsx(Jt,{name:"boxName",value:A,onChange:ke=>O(ke.target.value),addonBefore:w.jsx(da,{onClick:()=>O(k),style:{color:A===k?r.colorTextDisabled:r.colorText,cursor:A===k?"default":"pointer"}})})}),w.jsx(Ca,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.model")}),w.jsx(s2,{children:w.jsx(br,{options:W,value:D,onChange:ke=>P(ke)})})]}),Ee=w.jsxs(On,{title:n("tonieboxes.uploadTonieboxCertificatesModal.uploadTonieboxCertificates",{name:e.boxName}),open:E,onOk:oe,onCancel:re,children:[w.jsxs(s2,{children:[n("tonieboxes.uploadTonieboxCertificatesModal.uploadPath")," ",w.jsx("i",{children:(Te=(we=b==null?void 0:b.options)==null?void 0:we.find(ke=>ke.iD==="core.certdir"))==null?void 0:Te.value})," ",w.jsx("small",{children:(xe=(me=b==null?void 0:b.options)==null?void 0:me.find(ke=>ke.iD==="core.certdir"))!=null&&xe.overlayed?n("tonieboxes.uploadTonieboxCertificatesModal.boxSpecific"):n("tonieboxes.uploadTonieboxCertificatesModal.AttentionGeneralPath")})]}),w.jsx(NK,{overlay:e.ID})]}),Re=w.jsx(On,{title:n("tonieboxes.editTonieboxSettingsModal.editTonieboxSettings",{name:e.boxName}),width:"auto",open:C,onOk:Q,onCancel:ae,children:w.jsx(rje,{overlay:e.ID},H)}),Fe=()=>{try{a.open({type:"loading",content:n("tonieboxes.messages.deleting"),duration:0}),Qr.apiPostTeddyCloudSetting("removeOverlay",null,e.ID).then(ke=>ke.text()).then(ke=>{a.destroy(),ke==="OK"?(a.open({type:"success",content:n("tonieboxes.messages.deleteSuccessful")}),window.location.reload()):a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+ke})}).catch(ke=>{a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+ke})})}catch(ke){a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+ke})}},Ce=()=>{j(!0)},ze=()=>{Fe(),j(!1)},Pe=()=>{j(!1)},Ae=w.jsx(Dp,{title:n("tonieboxes.confirmDeleteModal"),open:F,okText:n("tonieboxes.delete"),cancelText:n("tonieboxes.cancel"),content:n("tonieboxes.confirmDeleteDialog",{tonieboxToDelete:k}),handleOk:ze,handleCancel:Pe}),Se=async()=>{try{await Qr.apiTriggerWriteConfigGet()}catch{nt.error("Error while saving config to file.")}},_e=async()=>{try{Qr.apiPostTeddyCloudSetting("toniebox.api_access",!B,e.ID).then(()=>{Se(),z(!B),B?nt.success(n("tonieboxes.messages.apiAccessDisabled")):nt.success(n("tonieboxes.messages.apiAccessEnabled"))}).catch(ke=>{throw new Error(ke.status+" "+ke.statusText)})}catch(ke){nt.error(n("tonieboxes.messages.apiAccessNotChangedError")+ke)}};return w.jsxs(w.Fragment,{children:[o,w.jsx(dd,{hoverable:!1,size:"default",style:{background:r.colorBgContainerDisabled,cursor:"default"},title:w.jsx("span",{children:k}),cover:w.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:[h,w.jsx("img",{src:(Be=t.find(ke=>ke.id==="03-0009"))==null?void 0:Be.img_src,alt:"",style:{position:"relative",filter:"opacity(0)",width:"100%",height:"auto"}}),M]}),actions:[w.jsx(w.Fragment,{children:B?i?w.jsx(en,{title:n("tonieboxes.online"),children:w.jsx(FT,{style:{color:"green",cursor:"default"}})}):w.jsx(en,{title:n("tonieboxes.offline")+(d?" - "+n("tonieboxes.lastOnline")+": "+d:""),children:w.jsx(FT,{style:{color:r.colorTextDescription,cursor:"default"}})}):w.jsx(en,{title:n("tonieboxes.accessApiDisabled"),children:w.jsx(PSe,{style:{color:"red",cursor:"pointer"},onClick:_e})})}),w.jsx(v0,{onClick:()=>de()},"edit"),w.jsx(jW,{style:{marginRight:8},onClick:ee},"certificate"),w.jsx(G$,{style:{marginRight:8},onClick:se},"edit"),w.jsx(Tp,{style:{marginRight:8},onClick:Ce},"delete")],children:w.jsx(oje,{description:[(c!=="UNKNOWN"&&c!==void 0&&c!==null?c:"MAC")+" ",v?w.jsx(en,{title:n("tonieboxes.linkToBoxCFW"),children:w.jsxs(At,{to:"http://"+p,target:"_blank",children:[ce()," ",w.jsx(ASe,{})]})}):ce()]})}),Re,Ee,be,Ae]})},lje=({tonieboxCards:e})=>{const[t,n]=l.useState(!0),r=tY();return r.length===0&&t?w.jsx("div",{children:"Loading..."}):w.jsx(Us,{grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:3,xxl:4},dataSource:e,renderItem:a=>w.jsx(Us.Item,{id:a.ID,children:w.jsx(sje,{tonieboxCard:a,tonieboxImages:r})})})},cje=()=>w.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"12.000000pt",height:"12.000000pt",viewBox:"0 0 900.000000 900.000000",preserveAspectRatio:"xMidYMid meet",children:w.jsxs("g",{transform:"translate(0.000000,900.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none",children:[w.jsx("path",{d:"M5895 8380 c-4 -6 -21 -16 -38 -24 -60 -25 -301 -236 -416 -363 -42 -46 -101 -103 -131 -127 -30 -24 -116 -104 -190 -177 -75 -74 -167 -163 -205 -199 -39 -36 -132 -124 -208 -195 -186 -175 -194 -179 -368 -195 -138 -13 -274 -10 -303 7 -45 25 -385 357 -446 434 -65 84 -279 313 -345 369 -17 14 -58 40 -91 58 -59 31 -67 32 -177 32 -87 0 -117 -3 -127 -14 -6 -8 -23 -16 -37 -18 -28 -3 -61 -47 -62 -83 -1 -12 -5 -25 -10 -30 -5 -6 -28 -64 -50 -130 -51 -151 -94 -274 -121 -345 -12 -30 -32 -86 -45 -125 -13 -38 -38 -108 -54 -154 -17 -46 -31 -85 -31 -87 0 -2 -181 -4 -402 -4 -362 0 -410 -2 -473 -19 -93 -25 -147 -55 -209 -117 -62 -62 -92 -116 -117 -209 -18 -68 -19 -160 -19 -2724 0 -2915 -4 -2713 58 -2836 31 -62 127 -155 189 -185 109 -52 -33 -49 2843 -49 2835 0 2752 -2 2840 44 111 57 194 152 230 266 20 61 20 110 20 2759 0 2673 0 2697 -20 2755 -50 147 -153 247 -300 294 -33 10 -131 15 -370 20 l-325 6 -2 50 c-9 210 -37 703 -49 855 -8 102 -14 239 -14 306 0 171 9 164 -233 164 -115 0 -188 -4 -192 -10z m-1 -652 c3 -13 6 -68 6 -123 0 -55 7 -174 15 -265 8 -91 15 -202 15 -247 l0 -83 -420 0 c-356 0 -420 2 -420 14 0 8 4 16 9 18 5 2 34 26 63 53 29 28 118 111 198 185 147 137 229 213 402 378 53 51 103 92 111 92 8 0 17 -10 21 -22z m-2697 -470 c65 -61 146 -138 181 -171 34 -32 62 -63 62 -68 0 -5 -107 -9 -255 -9 -169 0 -255 3 -255 10 0 10 30 104 49 152 18 47 40 104 56 151 9 26 23 47 31 47 7 0 66 -50 131 -112z m3746 -698 c16 0 17 -130 15 -2622 l-3 -2623 -2642 -3 -2643 -2 -2 2617 c-2 1850 0 2620 8 2627 7 8 777 10 2630 9 1440 -2 2627 -3 2637 -3z"}),w.jsx("path",{d:"M5735 6087 c-54 -22 -72 -36 -104 -83 -27 -41 -31 -57 -31 -111 0 -129 77 -205 206 -205 90 0 154 42 188 126 66 160 -100 335 -259 273z"}),w.jsx("path",{d:"M2842 5359 c-52 -16 -118 -90 -132 -148 -36 -150 102 -286 252 -250 61 14 129 75 148 134 29 86 -9 195 -83 242 -45 29 -131 39 -185 22z"}),w.jsx("path",{d:"M5035 5362 c-90 -32 -145 -106 -145 -197 0 -96 68 -183 161 -205 39 -10 57 -9 101 4 63 19 75 28 116 85 28 39 32 52 32 110 0 120 -72 199 -186 206 -32 2 -68 1 -79 -3z"}),w.jsx("path",{d:"M5730 5359 c-85 -36 -130 -105 -130 -202 0 -56 4 -70 32 -108 40 -56 52 -65 112 -85 43 -15 57 -15 100 -4 235 59 212 392 -28 406 -33 2 -72 -1 -86 -7z"}),w.jsx("path",{d:"M2818 4620 c-48 -26 -93 -82 -108 -135 -29 -103 38 -216 147 -250 54 -17 58 -17 112 0 36 12 69 33 93 57 92 94 68 260 -47 325 -52 29 -144 31 -197 3z"}),w.jsx("path",{d:"M3506 4609 c-150 -100 -116 -315 59 -375 54 -18 56 -18 109 0 89 30 156 116 156 199 0 73 -68 172 -137 198 -13 5 -50 9 -82 9 -48 0 -66 -5 -105 -31z"}),w.jsx("path",{d:"M4258 4610 c-152 -101 -119 -316 57 -376 54 -18 56 -18 109 0 89 31 156 116 156 200 0 73 -66 170 -133 195 -16 6 -54 11 -86 11 -47 0 -66 -5 -103 -30z"}),w.jsx("path",{d:"M4984 4607 c-149 -103 -115 -318 60 -373 55 -17 59 -17 111 0 52 18 92 51 128 106 22 33 23 140 1 183 -40 78 -103 117 -193 117 -50 0 -66 -5 -107 -33z"}),w.jsx("path",{d:"M5715 4623 c-79 -41 -115 -103 -115 -195 0 -42 6 -72 17 -88 36 -55 76 -88 129 -106 53 -18 55 -18 109 1 121 41 182 154 143 266 -15 46 -42 79 -90 112 -34 22 -52 27 -102 27 -36 -1 -74 -7 -91 -17z"}),w.jsx("path",{d:"M2841 3901 c-60 -24 -107 -74 -127 -134 -15 -44 -15 -57 -4 -101 41 -161 208 -217 339 -114 48 37 65 78 66 155 0 63 -3 76 -30 115 -34 49 -120 98 -169 97 -17 0 -51 -8 -75 -18z"}),w.jsx("path",{d:"M3532 3894 c-162 -80 -161 -292 0 -375 46 -24 127 -25 171 -3 73 37 127 119 127 193 -1 77 -59 158 -138 192 -59 26 -98 24 -160 -7z"}),w.jsx("path",{d:"M4279 3892 c-99 -51 -148 -176 -103 -265 86 -170 309 -169 385 2 35 80 19 159 -47 225 -36 35 -105 66 -149 66 -18 0 -57 -13 -86 -28z"}),w.jsx("path",{d:"M5015 3896 c-60 -28 -94 -63 -112 -114 -28 -81 -10 -163 48 -220 104 -102 265 -77 330 50 22 42 26 146 8 181 -34 65 -128 127 -193 127 -17 0 -53 -11 -81 -24z"}),w.jsx("path",{d:"M5727 3901 c-45 -21 -93 -65 -113 -103 -21 -40 -18 -141 5 -186 37 -72 102 -112 181 -112 151 0 251 153 191 292 -23 52 -52 80 -111 107 -54 25 -102 25 -153 2z"}),w.jsx("path",{d:"M2855 3201 c-70 -17 -128 -80 -146 -159 -25 -105 47 -216 156 -242 49 -12 62 -11 110 4 148 46 194 226 86 337 -60 62 -122 80 -206 60z"}),w.jsx("path",{d:"M3546 3196 c-181 -67 -179 -326 3 -391 69 -24 127 -15 194 29 44 29 87 112 87 166 -1 59 -43 136 -95 172 -50 34 -132 45 -189 24z"}),w.jsx("path",{d:"M4296 3196 c-145 -54 -180 -230 -69 -348 27 -29 99 -58 142 -58 71 1 142 46 182 114 38 67 38 123 1 191 -51 93 -161 136 -256 101z"}),w.jsx("path",{d:"M5038 3203 c-36 -6 -115 -77 -133 -120 -45 -107 14 -239 124 -278 52 -18 84 -19 131 -2 49 17 72 35 108 86 28 39 32 52 32 110 0 80 -26 132 -85 173 -41 28 -117 42 -177 31z"}),w.jsx("path",{d:"M5737 3200 c-44 -14 -95 -58 -117 -100 -31 -61 -28 -153 8 -207 36 -55 69 -80 126 -95 129 -34 261 76 253 212 -4 71 -21 104 -78 152 -38 32 -54 39 -105 43 -32 2 -72 0 -87 -5z"}),w.jsx("path",{d:"M3535 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),w.jsx("path",{d:"M4285 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),w.jsx("path",{d:"M5012 2463 c-69 -38 -104 -83 -123 -162 -10 -46 20 -134 61 -176 32 -33 107 -65 151 -65 61 0 156 64 188 127 6 12 11 49 11 83 0 94 -42 161 -122 195 -50 20 -126 19 -166 -2z"})]})}),Ks=()=>{const{t:e}=Ht(),t=[{key:"tonieboxes",label:w.jsx(At,{to:"/tonieboxes",style:{marginLeft:8},children:e("tonieboxes.navigationTitle")}),icon:le.createElement(cje),title:e("tonieboxes.navigationTitle")},{key:"esp32boxflashing",label:w.jsx(At,{to:"/tonieboxes/esp32boxflashing",children:e("tonieboxes.esp32BoxFlashing.navigationTitle")}),icon:le.createElement(ES),title:e("tonieboxes.esp32BoxFlashing.navigationTitle")},{key:"cc3200boxflashing",label:w.jsx(At,{to:"/tonieboxes/cc3200boxflashing",children:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}),icon:le.createElement(ES),title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")},{key:"cc3235boxflashing",label:w.jsx(At,{to:"/tonieboxes/cc3235boxflashing",children:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}),icon:le.createElement(ES),title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}];return w.jsx(Tg,{mode:"inline",defaultOpenKeys:["sub"],items:t})},k5=new Tn(hn()),uje=()=>{const{t:e}=Ht(),[t,n]=l.useState([]),[r,a]=l.useState(!1);l.useEffect(()=>{(async()=>{const c=await k5.apiGetTonieboxesIndex();n(c)})(),(async()=>{try{const c=await k5.apiGetNewBoxesAllowed();a(c)}catch(c){nt.error("Fetching new box allowed: "+c)}})()},[]);const o=r?w.jsx(Mr,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}):"";return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.title")}),o,w.jsx(lje,{tonieboxCards:t})]})]})]})},So=()=>{const{t:e}=Ht(),t=[{key:"community",label:w.jsx(At,{to:"/community",children:e("community.navigationTitle")}),icon:le.createElement(OSe),title:e("community.navigationTitle")},{key:"faq",label:w.jsx(At,{to:"/community/faq",children:e("community.faq.navigationTitle")}),icon:le.createElement(vW),title:e("community.faq.navigationTitle")},{key:"contribution",label:w.jsx(At,{to:"/community/contribution",style:{color:"currentColor"},children:e("community.contribution.navigationTitle")}),icon:le.createElement(_ye),title:e("community.contribution.navigationTitle"),children:[{key:"toniesJson",label:w.jsx(At,{to:"/community/contribution/tonies-json",children:e("community.contribution.toniesJson.navigationTitle")}),icon:le.createElement(wve),title:e("community.contribution.toniesJson.navigationTitle")}]},{key:"contributors",label:w.jsx(At,{to:"/community/contributors",children:e("community.contributors.navigationTitle")}),icon:le.createElement(Qye),title:e("community.contributors.navigationTitle")},{key:"changelog",label:w.jsx(At,{to:"/community/changelog",children:e("community.changelog.navigationTitle")}),icon:le.createElement(B0e),title:e("community.changelog.navigationTitle")},{key:"Forum",label:w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:e("community.forum.navigationTitle")}),icon:le.createElement(hye),title:e("community.forum.navigationTitle")}];return w.jsx(Tg,{mode:"inline",defaultOpenKeys:["sub"],items:t})},{Paragraph:A5}=jn,dje=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.title")}),w.jsxs(A5,{children:[w.jsx("h2",{children:"Get involved"}),"Be a part of our global contributor community by writing code, commenting on issues, or participate in discussons in our telegram group."]}),w.jsxs(A5,{children:["Your best points of contact are the following locations",w.jsxs("ul",{children:[w.jsxs("li",{children:[w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"}),w.jsx("ul",{children:w.jsx("li",{children:"The place where all sources are stored for this and related projects. Where you can fork the repositories, contribute new or improved features, create issues or just give some feedback on already existing issues."})})]}),w.jsxs("li",{children:[w.jsx(At,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"}),w.jsx("ul",{children:w.jsx("li",{children:"The first level support if you need help or if you are interested in getting involved in the development of TeddyCloud."})})]}),w.jsxs("li",{children:[w.jsx(At,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"}),w.jsx("ul",{children:w.jsx("li",{children:"The lively knowledge base for the project, a place to ask questions whose answers can be helpful for others."})})]}),w.jsxs("li",{children:[w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:"TeddyCloud Wiki"}),w.jsx("ul",{children:w.jsx("li",{children:"A Wiki contains, among other things, how to install TeddyCloud and how to solve possible problems."})})]})]})]})]})]})]})},{Paragraph:Hc}=jn,fje=()=>{const{t:e}=Ht(),t=["Use welcome and inclusive language.","Be respectful of differing viewpoints and experiences.","Gracefully accept constructive criticism.","Foster what's best for the community.","Show empathy for other community members.","Decisions are made based on technical merit and consensus. The Teddycloud community aspires to treat everyone equally, and to value all contributions."],n=["Write code.","Improve documentation.","Answer questions on our telegram group.","Investigate bugs and issues on GitHub.","Review and comment on pull requests from other developers.","Report an issue.","Give a “thumbs up” 👍 on issues that are relevant to you."];return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.contribution.title")}),w.jsxs(Hc,{children:[w.jsx(Hc,{children:"The Teddycloud can only grow through the contributions of this community. Thanks so much for your enthusiasm and your work - we appreciate everything you do!"}),w.jsxs(Hc,{children:[w.jsx("h2",{children:"Community values"}),w.jsx(Hc,{children:"In the interest of fostering an open and welcoming environment, contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone - regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation."}),w.jsx(Hc,{children:"Examples of behaviors that contribute to creating a positive environment include:"}),w.jsx("ul",{children:t.map((r,a)=>w.jsx("li",{children:r},a))})]}),w.jsxs(Hc,{children:[w.jsx("h2",{children:"Make your first contribution"}),"There are many ways to contribute to Teddycloud! You can contribute code and make improvements to the Teddycloud documentation. Our most common contributions include code, documentation, and community support.",w.jsx("ul",{children:n.map((r,a)=>w.jsx("li",{children:r},a))})]})]})]})]})]})},pje=new Tn(hn()),{Paragraph:M5}=jn,{Panel:gje}=A$,mje=()=>{const{t:e}=Ht(),[t,n]=l.useState({});return l.useEffect(()=>{async function r(){try{const s=(await(await pje.apiGetTeddyCloudApiRaw("/api/toniesJson")).json()).filter(u=>u.audio_id&&u.audio_id.length===0&&!["creative-tonie","system"].includes(u.category)&&!u.model.includes("20000")).map(u=>({model:u.model,series:u.series,episodes:u.episodes,pic:u.pic,audio_id:u.audio_id||[],category:u.category,language:u.language})),c={};s.forEach(u=>{c[u.language]||(c[u.language]=[]),c[u.language].push(u)}),n(c)}catch(a){console.error("Error fetching and transforming data:",a)}}r()},[]),w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")},{title:e("community.contribution.toniesJson.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.contribution.toniesJson.title")}),w.jsx(M5,{children:e("community.contribution.toniesJson.text")}),w.jsx(M5,{children:w.jsx(A$,{accordion:!0,children:Object.keys(t).map((r,a)=>w.jsx(gje,{header:r,children:w.jsx(Us,{children:Array.isArray(t[r])&&t[r].map((o,i)=>w.jsx(Us.Item,{id:o.model,children:w.jsxs("div",{children:[w.jsx("img",{src:o.pic,alt:"",style:{width:"100px",height:"auto"}}),o.model," - ",o.series," -"," ",o.episodes]})},i))})},a))})})]})]})]})},{Paragraph:Yd}=jn,hje=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contributors.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.contributors.title")}),w.jsxs(Yd,{children:["This project relies on the tireless contributors who offer their free time and skills. Directly related to TeddyCloud are the contributors of the two projects teddycloud and teddycloud_web:",w.jsxs(Yd,{children:[w.jsx("h3",{children:"teddycloud"}),w.jsx("div",{children:"The most neccessary, but mostly invisible part of your TeddyCloud Server."}),w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors"})]}),w.jsxs(Yd,{children:[w.jsx("h3",{children:"teddycloud_web"}),w.jsx("div",{children:"Which is actually this frontend you are using and seeing here."}),w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors"})]}),w.jsxs(Yd,{children:["You can find more contributors to the entire topic complex in the other GitHub repositories at"," ",w.jsx(At,{to:"https://github.com/orgs/toniebox-reverse-engineering/repositories",target:"_blank",children:"https://github.com/orgs/toniebox-reverse-engineering/repositories"})]})]}),w.jsx(Mo,{}),w.jsxs(Yd,{children:[w.jsx("div",{style:{marginBottom:24},children:"A big round of applause for them!"}),w.jsx(ZO,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!1,height:150})]})]})]})]})},{Paragraph:D5,Text:l2}=jn,vje=()=>{const{t:e}=Ht(),t=[{version:"0.6.1",changes:["Stabilization backend","Changed default for setting cloud.prioCustomContent to false","Disabled prioCustomContent if lower audio id is allowed","Added reload tonies(.custom).json api https://github.com/toniebox-reverse-engineering/teddycloud/issues/177","Added moveFile api https://github.com/toniebox-reverse-engineering/teddycloud/issues/198","gui: Fixed bug storing source with html special chars","gui: Fixed bug saving model and source of a tonie/tag at once","gui: Fixed display bug sourceInfo with unknown content","gui: Integrated new reload tonies.json api","gui: Added Moving and renaming of files in library and content","gui: Fixing security weaknesses"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.0...tc_v0.6.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.0...tcw_v0.6.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-1/701",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.1"},{version:"0.6.0",changes:["Stabilization backend","store last played time of last played tag","extend getTagIndex API, provide language in tonieInfos","PoC Toniebox api access (explicitly allow access to teddy cloud api on tonebox level)","Added enable/disable new Tonieboxes: prohibit registration of new tonieboxes if not enabled","Added removal of overlays (= removal of Tonieboxes from TeddyCloud)","add hide tonie/tag functionality (hide using new /web gui, present to box to unhide)","fixed locking bug, reworked locking.","fixed bug not storing cloud auth in some circumstances","fixed bug not storing source in json file: https://github.com/toniebox-reverse-engineering/teddycloud/issues/165","added limit to tempfile creation for radiostreams, default: 240mb (~6h) (configurable if expert mode is activated) https://github.com/toniebox-reverse-engineering/teddycloud/issues/180","added possibility to set WiFi Credentials on ESP32 Firmware patching","introduced second HTTPS port for WebFrontend only, which allows using https for webfrontend (Default: 8443)","tonie images from boxine can now be cached locally (PoC)","new /web gui is now default web gui: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/47","new /web gui: enhanced Toniecard, added search for Radiostream in Edit Modal","new /web gui: Tonies - Content section - added Migrate Content to Lib button on TAF files","new /web gui: added RTNL Log Page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/48","new /web gui: added show Json File when double click on json file (File browser view)","new /web gui: added show TAP File when double click on tap file (File browser view)","new /web gui: added show TAF Header (including AudioID + Hash) when double click on a taf file (File browser view)","new /web gui: show date time of last played tag (toniecard + toniboxcard)","new /web gui: added Tonie Audio Playlist page (WIP - Implementation not yet finished), rearranged menu entries tonies section: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/52","new /web gui: added delete feature in content, library and audio playlist page","new /web gui: improved changelog page, parse links and open links in new tab; completed contributors page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/27","new /web gui: added language flag to tonies card if it's not the same as the most owned language ones, added language filter","new /web gui: deletion of tonieboxes","new /web gui: info if add new boxes is enabled on homepage and tonieboxes page","new /web gui: enable/disable API access for toniebox added on tonieboxes page","new /web gui: add hide tonie/tag in tonies list (in info modal)","new /web gui: PoC Tonies Custom Json Editor (WiP, not working, but you get the json part to copy into the tonies.custom.json)","new /web gui: PoC Tonie Audio Playlist Editor (WiP, not working, but you get the json to copy and save as a TAP file) ","new /web gui: allow TAP files to be selected on Edit Tag Modal","new /web gui: new 404 page","new /web gui: hidden feature Tonie meeting. Search for it!","new /web gui: added link to Toniebox if the box is version cc3200, an ip is available and cfw is installed: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/28","new /web gui: hide audioplayer if no source is set, when clicking on play icon of a tonie/taf/... the player is shown: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: added minimize/maximize audioplayer https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: show Tonie on tonie article search","new /web gui: improved audioplayer, added volume control to custom one, hide doubled audioplayer","new /web gui: added French translation. Feel free to check if chatGPT is a good translator. If something is wrong, give us a shout at telegram!","new /weg gui: overworked filebrowser to be responsive","new /web gui: overworked tonie information modal, now also available in file browser (library + content)","new /web gui: added Create Directory functionality in file browser","new /web gui: added better breadcrumb to filebrowser (clickable for easy directory switching) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/78","new /web gui: set nocloud to true if source of a tag is changed https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/77","new /web gui: show image and information from set source if different from model https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/80","new /web gui: tonie overview: filter now also considers information from set source","new /web gui: fixed bugs after updating tonies in tonies overview","new /web gui: added FAQ page in community section","new /web gui: support web streams in audioplayer","new /web gui: improved filebrowser, added filter field and made buttons sticky","new /web gui: integrated ESP32 Firmware Flashing https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/46","new /web gui: integrated setting of WiFi credentials in ESP32 Firmware Flashing","new /web gui: show hint on ESP32 Firmware Flashing page if browser does not support WebSerial","new /web gui: allow multiselection in file browser for file deletion","new /web gui: limit audio encoder to 99 files (as Toniebox only supports 99 chapters)","new /web gui: fixed image fetch loop when playing a tonie","new /web gui: fixed poor audio quality in some case when using audio encoder","new /web gui: migrated gui from create-react-app to vite","new /web gui: fixed some bugs and minor refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.2...tc_v0.6.0","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.2...tcw_v0.6.0"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-0/468",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.0"},{version:"0.5.2",changes:["Stabilization backend","Several fixes and changes regards backend crashes and emptied config files when changing any tonie setting","Fix for random directories in library (and everywhere)","Fixed bug storing last played tonie per box","Fixed bug clearing text settings (like paths or flex tonie)","API for searching models is now case insensitive","Save IP of Toniebox as prepartion for linking CFW Tonieboxes","Introduced Settings level - 1: Basic, 2: Detail, 3: Expert (1 Default - if you are missing settings, increase level!)","new /web gui: enhanced Tonies Card, added editable content source","new /web gui: enhanced Toniebox Card, improved UX","new /web gui: Dark theme (Last used Theme stored in localStorage in Browser)","new /web gui: Show All (Hide Pagination on Tonies List, stored in localStorage in Browser)","new /web gui: Support of overlayed content folder. More details can be found here: https://forum.revvox.de/t/teddycloud-supporting-multiple-tonieboxes/451/1","new /web gui: Text inputs in Settings must be saved explicitly. (only Textinputs, other types are still autosaved.) Expect changes in future releases.","new /web gui: fixed various state bugs","new /web gui: show last online date of offline tonieboxes","new /web gui: Messages on successful setting updates","new /web gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.1...tc_v0.5.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.1...tcw_v0.5.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-2/450",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.2"},{version:"0.5.1",changes:["Stabilization Backend (added locks to prevent crashes, removed memory leaks)","Creating dirs when uploading certificates to a not yet existing path","Moving Tafs from Content to Library on click (not yet available in (new?) frontend)","new /web gui: Pagination + Filtering on Tonies List ( Paging Tonies · Issue #24 · toniebox-reverse-engineering/teddycloud_web · GitHub 2 )","new /web gui: Extend Box Management: Certificate upload now box specific possible, overworked certificate upload ( Certificate upload box related · Issue #26 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: Show last played Tonie on Box Management, link to prefiltered Tonieslist, added marking of the Last played Tonies on each box in Tonieslist ( Make use of internal.last_ruid · Issue #30 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: adapted cursor on cards to default as cards not really clickable ( TonieCard Cursor · Issue #25 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: fixed navigation item marking","new /web gui: updated box models, added pseudomodels of the official tonies covers (sleepy bear, sheep and rabbit). They are now placed in a json in the config folder. Custom tonieboxes are now also possible. Add your customised one in tonieboxes.custom.json and choose it in the box mgmt.","new /web gui: added community section (WIP) ( Add Changelog and contribution page · Issue #27 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: fixed warnings"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.0...tc_v0.5.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.0...tcw_v0.5.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-1/447",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.1"},{version:"0.5.0",changes:["security mitigations on public instances as it‘s definitely not recommended to host teddycloud in public accessible for all","prepared authentication for frontend (backend adaptions)","linked new /web gui on teddycloud administration gui","overworked header, reordered menu items, new icons, better readable status in new /web gui","fixed modals (still some display problems on small devices like mobiles exists)","added audio encoder to new /web gui, you are now able to select files and encode them to a taf","This lets you bring your own content easily on an existing tonie.","added toniebox management to new /web gui, improved backend functions for that","only at least once connected boxes are listed, model must be set manually","enriched homepage in new /web gui with 5 randomly selected tonies of yours","adapt tonie card list to different cover image sizes in new /web gui (all cards within one row have now the same height)","added no cloud and live icon (Toggle to enable/disable) on tonie card in new /web gui","fixed several bugs"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/pull/154","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/8","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/9","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/19","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/21","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/22"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-0/444",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.0"},{version:"0.4.5 and older",changes:["A lot more. See Github for details!"],commits:[]}],n=r=>{const a=/(https?:\/\/[^\s]+)/g;return r.split(a).map((i,s)=>a.test(i)?w.jsx(At,{to:i,target:"_blank",rel:"noopener noreferrer",children:i},s):i)};return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.changelog.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.changelog.title")}),w.jsx(D5,{children:w.jsx(Us,{dataSource:t,renderItem:r=>w.jsxs(w.Fragment,{children:[w.jsxs("h2",{children:["Version ",r.version]}),w.jsxs(D5,{children:[w.jsx("h3",{children:"Changes"}),w.jsx("ul",{children:r.changes.map((a,o)=>w.jsx("li",{children:n(a)},o))})]}),r.commits&&r.commits.length>0&&w.jsxs(w.Fragment,{children:[w.jsx(l2,{strong:!0,children:"All contained commits can be found here (teddy cloud repo):"}),w.jsx("ul",{children:r.commits.map((a,o)=>w.jsx("li",{children:w.jsx(At,{to:a,target:"_blank",children:a})},o))})]}),r.discussionLink&&w.jsxs(w.Fragment,{children:[w.jsx(l2,{strong:!0,children:"Discussion:"}),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:r.discussionLink,target:"_blank",children:r.discussionLink})})})]}),r.githubReleaseLink&&w.jsxs(w.Fragment,{children:[w.jsx(l2,{strong:!0,children:"GitHub Release:"}),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:r.githubReleaseLink,target:"_blank",children:r.githubReleaseLink})})})]})]})})})]})]})]})};class sa extends Error{}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const bje=4,P5=0,L5=1,yje=2;function Cd(e){let t=e.length;for(;--t>=0;)e[t]=0}const Sje=0,nY=1,wje=2,Cje=3,xje=258,lN=29,Pg=256,jp=Pg+1+lN,Eu=30,cN=19,rY=2*jp+1,Ol=15,c2=16,Eje=7,uN=256,aY=16,oY=17,iY=18,wR=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),kh=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Ije=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),sY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tje=512,ki=new Array((jp+2)*2);Cd(ki);const Bf=new Array(Eu*2);Cd(Bf);const Bp=new Array(Tje);Cd(Bp);const zp=new Array(xje-Cje+1);Cd(zp);const dN=new Array(lN);Cd(dN);const Vv=new Array(Eu);Cd(Vv);function u2(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let lY,cY,uY;function d2(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const dY=e=>e<256?Bp[e]:Bp[256+(e>>>7)],Hp=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ea=(e,t,n)=>{e.bi_valid>c2-n?(e.bi_buf|=t<>c2-e.bi_valid,e.bi_valid+=n-c2):(e.bi_buf|=t<{Ea(e,n[t*2],n[t*2+1])},fY=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},Rje=e=>{e.bi_valid===16?(Hp(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},_je=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,f,p,g,v,m=0;for(p=0;p<=Ol;p++)e.bl_count[p]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(p=c,m++),n[d*2+1]=p,!(d>r)&&(e.bl_count[p]++,g=0,d>=s&&(g=i[d-s]),v=n[d*2],e.opt_len+=v*(p+g),o&&(e.static_len+=v*(a[d*2+1]+g)));if(m!==0){do{for(p=c-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,m-=2}while(m>0);for(p=c;p!==0;p--)for(d=e.bl_count[p];d!==0;)f=e.heap[--u],!(f>r)&&(n[f*2+1]!==p&&(e.opt_len+=(p-n[f*2+1])*n[f*2],n[f*2+1]=p),d--)}},pY=(e,t,n)=>{const r=new Array(Ol+1);let a=0,o,i;for(o=1;o<=Ol;o++)a=a+n[o-1]<<1,r[o]=a;for(i=0;i<=t;i++){let s=e[i*2+1];s!==0&&(e[i*2]=fY(r[s]++,s))}},$je=()=>{let e,t,n,r,a;const o=new Array(Ol+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Hp(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},F5=(e,t,n,r)=>{const a=t*2,o=n*2;return e[a]{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let r,a,o=0,i,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,a=e.pending_buf[e.sym_buf+o++],r===0?ai(e,a,t):(i=zp[a],ai(e,i+Pg+1,t),s=wR[i],s!==0&&(a-=dN[i],Ea(e,a,s)),r--,i=dY(r),ai(e,i,n),s=kh[i],s!==0&&(r-=Vv[i],Ea(e,r,s)));while(o{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let i,s,c=-1,u;for(e.heap_len=0,e.heap_max=rY,i=0;i>1;i>=1;i--)f2(e,n,i);u=o;do i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],f2(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=s,n[u*2]=n[i*2]+n[s*2],e.depth[u]=(e.depth[i]>=e.depth[s]?e.depth[i]:e.depth[s])+1,n[i*2+1]=n[s*2+1]=u,e.heap[1]=u++,f2(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],_je(e,t),pY(n,c,e.bl_count)},B5=(e,t,n)=>{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=i,i=t[(r+1)*2+1],!(++s{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),r=0;r<=n;r++)if(o=i,i=t[(r+1)*2+1],!(++s{let t;for(B5(e,e.dyn_ltree,e.l_desc.max_code),B5(e,e.dyn_dtree,e.d_desc.max_code),CR(e,e.bl_desc),t=cN-1;t>=3&&e.bl_tree[sY[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},Nje=(e,t,n,r)=>{let a;for(Ea(e,t-257,5),Ea(e,n-1,5),Ea(e,r-4,4),a=0;a{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return P5;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return L5;for(n=32;n{H5||($je(),H5=!0),e.l_desc=new d2(e.dyn_ltree,lY),e.d_desc=new d2(e.dyn_dtree,cY),e.bl_desc=new d2(e.bl_tree,uY),e.bi_buf=0,e.bi_valid=0,gY(e)},hY=(e,t,n,r)=>{Ea(e,(Sje<<1)+(r?1:0),3),mY(e),Hp(e,n),Hp(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},Mje=e=>{Ea(e,nY<<1,3),ai(e,uN,ki),Rje(e)},Dje=(e,t,n,r)=>{let a,o,i=0;e.level>0?(e.strm.data_type===yje&&(e.strm.data_type=kje(e)),CR(e,e.l_desc),CR(e,e.d_desc),i=Oje(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?hY(e,t,n,r):e.strategy===bje||o===a?(Ea(e,(nY<<1)+(r?1:0),3),j5(e,ki,Bf)):(Ea(e,(wje<<1)+(r?1:0),3),Nje(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),j5(e,e.dyn_ltree,e.dyn_dtree)),gY(e),r&&mY(e)},Pje=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(zp[n]+Pg+1)*2]++,e.dyn_dtree[dY(t)*2]++),e.sym_next===e.sym_end);var Lje=Aje,Fje=hY,jje=Dje,Bje=Pje,zje=Mje,Hje={_tr_init:Lje,_tr_stored_block:Fje,_tr_flush_block:jje,_tr_tally:Bje,_tr_align:zje};const Uje=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,o=o+a|0;while(--i);a%=65521,o%=65521}return a|o<<16|0};var Up=Uje;const Vje=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Wje=new Uint32Array(Vje()),Gje=(e,t,n,r)=>{const a=Wje,o=r+n;e^=-1;for(let i=r;i>>8^a[(e^t[i])&255];return e^-1};var $r=Gje,oc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xd={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:qje,_tr_stored_block:xR,_tr_flush_block:Kje,_tr_tally:Ls,_tr_align:Yje}=Hje,{Z_NO_FLUSH:Fs,Z_PARTIAL_FLUSH:Xje,Z_FULL_FLUSH:Zje,Z_FINISH:uo,Z_BLOCK:U5,Z_OK:zr,Z_STREAM_END:V5,Z_STREAM_ERROR:li,Z_DATA_ERROR:Qje,Z_BUF_ERROR:p2,Z_DEFAULT_COMPRESSION:Jje,Z_FILTERED:eBe,Z_HUFFMAN_ONLY:Xm,Z_RLE:tBe,Z_FIXED:nBe,Z_DEFAULT_STRATEGY:rBe,Z_UNKNOWN:aBe,Z_DEFLATED:Z0}=xd,oBe=9,iBe=15,sBe=8,lBe=29,cBe=256,ER=cBe+1+lBe,uBe=30,dBe=19,fBe=2*ER+1,pBe=15,fn=3,Is=258,ci=Is+fn+1,gBe=32,Yu=42,fN=57,IR=69,TR=73,RR=91,_R=103,Nl=113,ff=666,ca=1,Ed=2,ic=3,Id=4,mBe=3,kl=(e,t)=>(e.msg=oc[t],t),W5=e=>e*2-(e>4?9:0),bs=e=>{let t=e.length;for(;--t>=0;)e[t]=0},hBe=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=a?n-a:0;while(--t);t=a,r=t;do n=e.prev[--r],e.prev[r]=n>=a?n-a:0;while(--t)};let vBe=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Wa=(e,t)=>{Kje(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Fa(e.strm)},yn=(e,t)=>{e.pending_buf[e.pending++]=t},Xd=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},$R=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),e.state.wrap===1?e.adler=Up(e.adler,t,a,n):e.state.wrap===2&&(e.adler=$r(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},vY=(e,t)=>{let n=e.max_chain_length,r=e.strstart,a,o,i=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-ci?e.strstart-(e.w_size-ci):0,u=e.window,d=e.w_mask,f=e.prev,p=e.strstart+Is;let g=u[r+i-1],v=u[r+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(u[a+i]!==v||u[a+i-1]!==g||u[a]!==u[r]||u[++a]!==u[r+1])){r+=2,a++;do;while(u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&ri){if(e.match_start=t,i=o,o>=s)break;g=u[r+i-1],v=u[r+i]}}while((t=f[t&d])>c&&--n!==0);return i<=e.lookahead?i:e.lookahead},Xu=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ci)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),hBe(e),r+=t),e.strm.avail_in===0)break;if(n=$R(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=fn)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=js(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=js(e,e.ins_h,e.window[a+fn-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,a,o,i=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outa+e.strm.avail_in&&(r=a+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Fa(e.strm),a&&(a>r&&(a=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,r-=a),r&&($R(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(i===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&($R(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,a=e.strstart-e.block_start,(a>=n||(a||t===uo)&&t!==Fs&&e.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,i=t===uo&&e.strm.avail_in===0&&r===a?1:0,xR(e,e.block_start,r,i),e.block_start+=r,Fa(e.strm)),i?ic:ca)},g2=(e,t)=>{let n,r;for(;;){if(e.lookahead=fn&&(e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-ci&&(e.match_length=vY(e,n)),e.match_length>=fn)if(r=Ls(e,e.strstart-e.match_start,e.match_length-fn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=fn){e.match_length--;do e.strstart++,e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=js(e,e.ins_h,e.window[e.strstart+1]);else r=Ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Wa(e,!1),e.strm.avail_out===0))return ca}return e.insert=e.strstart{let n,r,a;for(;;){if(e.lookahead=fn&&(e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=fn-1,n!==0&&e.prev_length4096)&&(e.match_length=fn-1)),e.prev_length>=fn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-fn,r=Ls(e,e.strstart-1-e.prev_match,e.prev_length-fn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=js(e,e.ins_h,e.window[e.strstart+fn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=fn-1,e.strstart++,r&&(Wa(e,!1),e.strm.avail_out===0))return ca}else if(e.match_available){if(r=Ls(e,0,e.window[e.strstart-1]),r&&Wa(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ca}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ls(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,a,o;const i=e.window;for(;;){if(e.lookahead<=Is){if(Xu(e),e.lookahead<=Is&&t===Fs)return ca;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=fn&&e.strstart>0&&(a=e.strstart-1,r=i[a],r===i[++a]&&r===i[++a]&&r===i[++a])){o=e.strstart+Is;do;while(r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=fn?(n=Ls(e,1,e.match_length-fn),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Wa(e,!1),e.strm.avail_out===0))return ca}return e.insert=0,t===uo?(Wa(e,!0),e.strm.avail_out===0?ic:Id):e.sym_next&&(Wa(e,!1),e.strm.avail_out===0)?ca:Ed},yBe=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Xu(e),e.lookahead===0)){if(t===Fs)return ca;break}if(e.match_length=0,n=Ls(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Wa(e,!1),e.strm.avail_out===0))return ca}return e.insert=0,t===uo?(Wa(e,!0),e.strm.avail_out===0?ic:Id):e.sym_next&&(Wa(e,!1),e.strm.avail_out===0)?ca:Ed};function Qo(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const pf=[new Qo(0,0,0,0,bY),new Qo(4,4,8,4,g2),new Qo(4,5,16,8,g2),new Qo(4,6,32,32,g2),new Qo(4,4,16,16,Uc),new Qo(8,16,32,32,Uc),new Qo(8,16,128,128,Uc),new Qo(8,32,128,256,Uc),new Qo(32,128,258,1024,Uc),new Qo(32,258,258,4096,Uc)],SBe=e=>{e.window_size=2*e.w_size,bs(e.head),e.max_lazy_match=pf[e.level].max_lazy,e.good_match=pf[e.level].good_length,e.nice_match=pf[e.level].nice_length,e.max_chain_length=pf[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=fn-1,e.match_available=0,e.ins_h=0};function wBe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z0,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(fBe*2),this.dyn_dtree=new Uint16Array((2*uBe+1)*2),this.bl_tree=new Uint16Array((2*dBe+1)*2),bs(this.dyn_ltree),bs(this.dyn_dtree),bs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(pBe+1),this.heap=new Uint16Array(2*ER+1),bs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ER+1),bs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Lg=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Yu&&t.status!==fN&&t.status!==IR&&t.status!==TR&&t.status!==RR&&t.status!==_R&&t.status!==Nl&&t.status!==ff?1:0},yY=e=>{if(Lg(e))return kl(e,li);e.total_in=e.total_out=0,e.data_type=aBe;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?fN:t.wrap?Yu:Nl,e.adler=t.wrap===2?0:1,t.last_flush=-2,qje(t),zr},SY=e=>{const t=yY(e);return t===zr&&SBe(e.state),t},CBe=(e,t)=>Lg(e)||e.state.wrap!==2?li:(e.state.gzhead=t,zr),wY=(e,t,n,r,a,o)=>{if(!e)return li;let i=1;if(t===Jje&&(t=6),r<0?(i=0,r=-r):r>15&&(i=2,r-=16),a<1||a>oBe||n!==Z0||r<8||r>15||t<0||t>9||o<0||o>nBe||r===8&&i!==1)return kl(e,li);r===8&&(r=9);const s=new wBe;return e.state=s,s.strm=e,s.status=Yu,s.wrap=i,s.gzhead=null,s.w_bits=r,s.w_size=1<wY(e,t,Z0,iBe,sBe,rBe),EBe=(e,t)=>{if(Lg(e)||t>U5||t<0)return e?kl(e,li):li;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===ff&&t!==uo)return kl(e,e.avail_out===0?p2:li);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Fa(e),e.avail_out===0)return n.last_flush=-1,zr}else if(e.avail_in===0&&W5(t)<=W5(r)&&t!==uo)return kl(e,p2);if(n.status===ff&&e.avail_in!==0)return kl(e,p2);if(n.status===Yu&&n.wrap===0&&(n.status=Nl),n.status===Yu){let a=Z0+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=Xm||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,a|=o<<6,n.strstart!==0&&(a|=gBe),a+=31-a%31,Xd(n,a),n.strstart!==0&&(Xd(n,e.adler>>>16),Xd(n,e.adler&65535)),e.adler=1,n.status=Nl,Fa(e),n.pending!==0)return n.last_flush=-1,zr}if(n.status===fN){if(e.adler=0,yn(n,31),yn(n,139),yn(n,8),n.gzhead)yn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),yn(n,n.gzhead.time&255),yn(n,n.gzhead.time>>8&255),yn(n,n.gzhead.time>>16&255),yn(n,n.gzhead.time>>24&255),yn(n,n.level===9?2:n.strategy>=Xm||n.level<2?4:0),yn(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(yn(n,n.gzhead.extra.length&255),yn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=$r(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=IR;else if(yn(n,0),yn(n,0),yn(n,0),yn(n,0),yn(n,0),yn(n,n.level===9?2:n.strategy>=Xm||n.level<2?4:0),yn(n,mBe),n.status=Nl,Fa(e),n.pending!==0)return n.last_flush=-1,zr}if(n.status===IR){if(n.gzhead.extra){let a=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,Fa(e),n.pending!==0)return n.last_flush=-1,zr;a=0,o-=s}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=TR}if(n.status===TR){if(n.gzhead.name){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),Fa(e),n.pending!==0)return n.last_flush=-1,zr;a=0}n.gzindexa&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=RR}if(n.status===RR){if(n.gzhead.comment){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a)),Fa(e),n.pending!==0)return n.last_flush=-1,zr;a=0}n.gzindexa&&(e.adler=$r(e.adler,n.pending_buf,n.pending-a,a))}n.status=_R}if(n.status===_R){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Fa(e),n.pending!==0))return n.last_flush=-1,zr;yn(n,e.adler&255),yn(n,e.adler>>8&255),e.adler=0}if(n.status=Nl,Fa(e),n.pending!==0)return n.last_flush=-1,zr}if(e.avail_in!==0||n.lookahead!==0||t!==Fs&&n.status!==ff){let a=n.level===0?bY(n,t):n.strategy===Xm?yBe(n,t):n.strategy===tBe?bBe(n,t):pf[n.level].func(n,t);if((a===ic||a===Id)&&(n.status=ff),a===ca||a===ic)return e.avail_out===0&&(n.last_flush=-1),zr;if(a===Ed&&(t===Xje?Yje(n):t!==U5&&(xR(n,0,0,!1),t===Zje&&(bs(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Fa(e),e.avail_out===0))return n.last_flush=-1,zr}return t!==uo?zr:n.wrap<=0?V5:(n.wrap===2?(yn(n,e.adler&255),yn(n,e.adler>>8&255),yn(n,e.adler>>16&255),yn(n,e.adler>>24&255),yn(n,e.total_in&255),yn(n,e.total_in>>8&255),yn(n,e.total_in>>16&255),yn(n,e.total_in>>24&255)):(Xd(n,e.adler>>>16),Xd(n,e.adler&65535)),Fa(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?zr:V5)},IBe=e=>{if(Lg(e))return li;const t=e.state.status;return e.state=null,t===Nl?kl(e,Qje):zr},TBe=(e,t)=>{let n=t.length;if(Lg(e))return li;const r=e.state,a=r.wrap;if(a===2||a===1&&r.status!==Yu||r.lookahead)return li;if(a===1&&(e.adler=Up(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){a===0&&(bs(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}const o=e.avail_in,i=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Xu(r);r.lookahead>=fn;){let c=r.strstart,u=r.lookahead-(fn-1);do r.ins_h=js(r,r.ins_h,r.window[c+fn-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=fn-1,Xu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=fn-1,r.match_available=0,e.next_in=i,e.input=s,e.avail_in=o,r.wrap=a,zr};var RBe=xBe,_Be=wY,$Be=SY,OBe=yY,NBe=CBe,kBe=EBe,ABe=IBe,MBe=TBe,DBe="pako deflate (from Nodeca project)",zf={deflateInit:RBe,deflateInit2:_Be,deflateReset:$Be,deflateResetKeep:OBe,deflateSetHeader:NBe,deflate:kBe,deflateEnd:ABe,deflateSetDictionary:MBe,deflateInfo:DBe};const PBe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var LBe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)PBe(n,r)&&(e[r]=n[r])}}return e},FBe=e=>{let t=0;for(let r=0,a=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Vp[254]=Vp[254]=1;var jBe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,i=e.length,s=0;for(a=0;a>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const BBe=(e,t)=>{if(t<65534&&e.subarray&&CY)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r4){o[a++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r1){o[a++]=65533;continue}i<65536?o[a++]=i:(i-=65536,o[a++]=55296|i>>10&1023,o[a++]=56320|i&1023)}return BBe(o,a)},HBe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Vp[e[n]]>t?n:t},Wp={string2buf:jBe,buf2string:zBe,utf8border:HBe};function UBe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var xY=UBe;const EY=Object.prototype.toString,{Z_NO_FLUSH:VBe,Z_SYNC_FLUSH:WBe,Z_FULL_FLUSH:GBe,Z_FINISH:qBe,Z_OK:Wv,Z_STREAM_END:KBe,Z_DEFAULT_COMPRESSION:YBe,Z_DEFAULT_STRATEGY:XBe,Z_DEFLATED:ZBe}=xd;function Fg(e){this.options=Q0.assign({level:YBe,method:ZBe,chunkSize:16384,windowBits:15,memLevel:8,strategy:XBe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xY,this.strm.avail_out=0;let n=zf.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Wv)throw new Error(oc[n]);if(t.header&&zf.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Wp.string2buf(t.dictionary):EY.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=zf.deflateSetDictionary(this.strm,r),n!==Wv)throw new Error(oc[n]);this._dict_set=!0}}Fg.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?qBe:VBe,typeof e=="string"?n.input=Wp.string2buf(e):EY.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===WBe||o===GBe)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(a=zf.deflate(n,o),a===KBe)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=zf.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Wv;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Fg.prototype.onData=function(e){this.chunks.push(e)};Fg.prototype.onEnd=function(e){e===Wv&&(this.result=Q0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pN(e,t){const n=new Fg(t);if(n.push(e,!0),n.err)throw n.msg||oc[n.err];return n.result}function QBe(e,t){return t=t||{},t.raw=!0,pN(e,t)}function JBe(e,t){return t=t||{},t.gzip=!0,pN(e,t)}var e7e=Fg,t7e=pN,n7e=QBe,r7e=JBe,a7e=xd,o7e={Deflate:e7e,deflate:t7e,deflateRaw:n7e,gzip:r7e,constants:a7e};const Zm=16209,i7e=16191;var s7e=function(t,n){let r,a,o,i,s,c,u,d,f,p,g,v,m,h,y,b,S,C,x,E,I,R,T,_;const $=t.state;r=t.next_in,T=t.input,a=r+(t.avail_in-5),o=t.next_out,_=t.output,i=o-(n-t.avail_out),s=o+(t.avail_out-257),c=$.dmax,u=$.wsize,d=$.whave,f=$.wnext,p=$.window,g=$.hold,v=$.bits,m=$.lencode,h=$.distcode,y=(1<<$.lenbits)-1,b=(1<<$.distbits)-1;e:do{v<15&&(g+=T[r++]<>>24,g>>>=C,v-=C,C=S>>>16&255,C===0)_[o++]=S&65535;else if(C&16){x=S&65535,C&=15,C&&(v>>=C,v-=C),v<15&&(g+=T[r++]<>>24,g>>>=C,v-=C,C=S>>>16&255,C&16){if(E=S&65535,C&=15,vc){t.msg="invalid distance too far back",$.mode=Zm;break e}if(g>>>=C,v-=C,C=o-i,E>C){if(C=E-C,C>d&&$.sane){t.msg="invalid distance too far back",$.mode=Zm;break e}if(I=0,R=p,f===0){if(I+=u-C,C2;)_[o++]=R[I++],_[o++]=R[I++],_[o++]=R[I++],x-=3;x&&(_[o++]=R[I++],x>1&&(_[o++]=R[I++]))}else{I=o-E;do _[o++]=_[I++],_[o++]=_[I++],_[o++]=_[I++],x-=3;while(x>2);x&&(_[o++]=_[I++],x>1&&(_[o++]=_[I++]))}}else if(C&64){t.msg="invalid distance code",$.mode=Zm;break e}else{S=h[(S&65535)+(g&(1<>3,r-=x,v-=x<<3,g&=(1<{const c=s.bits;let u=0,d=0,f=0,p=0,g=0,v=0,m=0,h=0,y=0,b=0,S,C,x,E,I,R=null,T;const _=new Uint16Array(Vc+1),$=new Uint16Array(Vc+1);let D=null,P,A,O;for(u=0;u<=Vc;u++)_[u]=0;for(d=0;d=1&&_[p]===0;p--);if(g>p&&(g=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f0&&(e===K5||p!==1))return-1;for($[1]=0,u=1;uG5||e===Y5&&y>q5)return 1;for(;;){P=u-m,i[d]+1=T?(A=D[i[d]-T],O=R[i[d]-T]):(A=96,O=0),S=1<>m)+C]=P<<24|A<<16|O|0;while(C!==0);for(S=1<>=1;if(S!==0?(b&=S-1,b+=S):b=0,d++,--_[u]===0){if(u===p)break;u=t[n+i[d]]}if(u>g&&(b&E)!==x){for(m===0&&(m=g),I+=f,v=u-m,h=1<G5||e===Y5&&y>q5)return 1;x=b&E,a[x]=g<<24|v<<16|I-o|0}}return b!==0&&(a[I+b]=u-m<<24|64<<16|0),s.bits=g,0};var Hf=f7e;const p7e=0,IY=1,TY=2,{Z_FINISH:X5,Z_BLOCK:g7e,Z_TREES:Qm,Z_OK:sc,Z_STREAM_END:m7e,Z_NEED_DICT:h7e,Z_STREAM_ERROR:wo,Z_DATA_ERROR:RY,Z_MEM_ERROR:_Y,Z_BUF_ERROR:v7e,Z_DEFLATED:Z5}=xd,J0=16180,Q5=16181,J5=16182,ej=16183,tj=16184,nj=16185,rj=16186,aj=16187,oj=16188,ij=16189,Gv=16190,Ii=16191,h2=16192,sj=16193,v2=16194,lj=16195,cj=16196,uj=16197,dj=16198,Jm=16199,eh=16200,fj=16201,pj=16202,gj=16203,mj=16204,hj=16205,b2=16206,vj=16207,bj=16208,qn=16209,$Y=16210,OY=16211,b7e=852,y7e=592,S7e=15,w7e=S7e,yj=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function C7e(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ec=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeOY?1:0},NY=e=>{if(Ec(e))return wo;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=J0,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(b7e),t.distcode=t.distdyn=new Int32Array(y7e),t.sane=1,t.back=-1,sc},kY=e=>{if(Ec(e))return wo;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,NY(e)},AY=(e,t)=>{let n;if(Ec(e))return wo;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?wo:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,kY(e))},MY=(e,t)=>{if(!e)return wo;const n=new C7e;e.state=n,n.strm=e,n.window=null,n.mode=J0;const r=AY(e,t);return r!==sc&&(e.state=null),r},x7e=e=>MY(e,w7e);let Sj=!0,y2,S2;const E7e=e=>{if(Sj){y2=new Int32Array(512),S2=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Hf(IY,e.lens,0,288,y2,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Hf(TY,e.lens,0,32,S2,0,e.work,{bits:5}),Sj=!1}e.lencode=y2,e.lenbits=9,e.distcode=S2,e.distbits=5},DY=(e,t,n,r)=>{let a;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,a,o,i,s,c,u,d,f,p,g,v,m,h=0,y,b,S,C,x,E,I,R;const T=new Uint8Array(4);let _,$;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ec(e)||!e.output||!e.input&&e.avail_in!==0)return wo;n=e.state,n.mode===Ii&&(n.mode=h2),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,f=s,p=c,R=sc;e:for(;;)switch(n.mode){case J0:if(n.wrap===0){n.mode=h2;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=$r(n.check,T,2,0),u=0,d=0,n.mode=Q5;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=qn;break}if((u&15)!==Z5){e.msg="unknown compression method",n.mode=qn;break}if(u>>>=4,d-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=qn;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=$r(n.check,T,2,0)),u=0,d=0,n.mode=J5;case J5:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>8&255,T[2]=u>>>16&255,T[3]=u>>>24&255,n.check=$r(n.check,T,4,0)),u=0,d=0,n.mode=ej;case ej:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(T[0]=u&255,T[1]=u>>>8&255,n.check=$r(n.check,T,2,0)),u=0,d=0,n.mode=tj;case tj:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=$r(n.check,T,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=nj;case nj:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+g),I)),n.flags&512&&n.wrap&4&&(n.check=$r(n.check,r,g,o)),s-=g,o+=g,n.length-=g),n.length))break e;n.length=0,n.mode=rj;case rj:if(n.flags&2048){if(s===0)break e;g=0;do I=r[o+g++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&g>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ii;break;case ij:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>=d&7,d-=d&7,n.mode=b2;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<>>=1,d-=1,u&3){case 0:n.mode=sj;break;case 1:if(E7e(n),n.mode=Jm,t===Qm){u>>>=2,d-=2;break e}break;case 2:n.mode=cj;break;case 3:e.msg="invalid block type",n.mode=qn}u>>>=2,d-=2;break;case sj:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=qn;break}if(n.length=u&65535,u=0,d=0,n.mode=v2,t===Qm)break e;case v2:n.mode=lj;case lj:if(g=n.length,g){if(g>s&&(g=s),g>c&&(g=c),g===0)break e;a.set(r.subarray(o,o+g),i),s-=g,o+=g,c-=g,i+=g,n.length-=g;break}n.mode=Ii;break;case cj:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=qn;break}n.have=0,n.mode=uj;case uj:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},R=Hf(p7e,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,R){e.msg="invalid code lengths set",n.mode=qn;break}n.have=0,n.mode=dj;case dj:for(;n.have>>24,b=h>>>16&255,S=h&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,n.lens[n.have++]=S;else{if(S===16){for($=y+2;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=qn;break}I=n.lens[n.have-1],g=3+(u&3),u>>>=2,d-=2}else if(S===17){for($=y+3;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,I=0,g=3+(u&7),u>>>=3,d-=3}else{for($=y+7;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=y,d-=y,I=0,g=11+(u&127),u>>>=7,d-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=qn;break}for(;g--;)n.lens[n.have++]=I}}if(n.mode===qn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=qn;break}if(n.lenbits=9,_={bits:n.lenbits},R=Hf(IY,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,R){e.msg="invalid literal/lengths set",n.mode=qn;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},R=Hf(TY,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,R){e.msg="invalid distances set",n.mode=qn;break}if(n.mode=Jm,t===Qm)break e;case Jm:n.mode=eh;case eh:if(s>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,s7e(e,p),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===Ii&&(n.back=-1);break}for(n.back=0;h=n.lencode[u&(1<>>24,b=h>>>16&255,S=h&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],y=h>>>24,b=h>>>16&255,S=h&65535,!(C+y<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=y,d-=y,n.back+=y,n.length=S,b===0){n.mode=hj;break}if(b&32){n.back=-1,n.mode=Ii;break}if(b&64){e.msg="invalid literal/length code",n.mode=qn;break}n.extra=b&15,n.mode=fj;case fj:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=pj;case pj:for(;h=n.distcode[u&(1<>>24,b=h>>>16&255,S=h&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],y=h>>>24,b=h>>>16&255,S=h&65535,!(C+y<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=y,d-=y,n.back+=y,b&64){e.msg="invalid distance code",n.mode=qn;break}n.offset=S,n.extra=b&15,n.mode=gj;case gj:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=qn;break}n.mode=mj;case mj:if(c===0)break e;if(g=p-c,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=qn;break}g>n.wnext?(g-=n.wnext,v=n.wsize-g):v=n.wnext-g,g>n.length&&(g=n.length),m=n.window}else m=a,v=i-n.offset,g=n.length;g>c&&(g=c),c-=g,n.length-=g;do a[i++]=m[v++];while(--g);n.length===0&&(n.mode=eh);break;case hj:if(c===0)break e;a[i++]=n.length,c--,n.mode=eh;break;case b2:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<{if(Ec(e))return wo;let t=e.state;return t.window&&(t.window=null),e.state=null,sc},R7e=(e,t)=>{if(Ec(e))return wo;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,sc):wo},_7e=(e,t)=>{const n=t.length;let r,a,o;return Ec(e)||(r=e.state,r.wrap!==0&&r.mode!==Gv)?wo:r.mode===Gv&&(a=1,a=Up(a,t,n,0),a!==r.check)?RY:(o=DY(e,t,n,n),o?(r.mode=$Y,_Y):(r.havedict=1,sc))};var $7e=kY,O7e=AY,N7e=NY,k7e=x7e,A7e=MY,M7e=I7e,D7e=T7e,P7e=R7e,L7e=_7e,F7e="pako inflate (from Nodeca project)",Ai={inflateReset:$7e,inflateReset2:O7e,inflateResetKeep:N7e,inflateInit:k7e,inflateInit2:A7e,inflate:M7e,inflateEnd:D7e,inflateGetHeader:P7e,inflateSetDictionary:L7e,inflateInfo:F7e};function j7e(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var B7e=j7e;const PY=Object.prototype.toString,{Z_NO_FLUSH:z7e,Z_FINISH:H7e,Z_OK:Gp,Z_STREAM_END:w2,Z_NEED_DICT:C2,Z_STREAM_ERROR:U7e,Z_DATA_ERROR:wj,Z_MEM_ERROR:V7e}=xd;function jg(e){this.options=Q0.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xY,this.strm.avail_out=0;let n=Ai.inflateInit2(this.strm,t.windowBits);if(n!==Gp)throw new Error(oc[n]);if(this.header=new B7e,Ai.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Wp.string2buf(t.dictionary):PY.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ai.inflateSetDictionary(this.strm,t.dictionary),n!==Gp)))throw new Error(oc[n])}jg.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?H7e:z7e,PY.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Ai.inflate(n,i),o===C2&&a&&(o=Ai.inflateSetDictionary(n,a),o===Gp?o=Ai.inflate(n,i):o===wj&&(o=C2));n.avail_in>0&&o===w2&&n.state.wrap>0&&e[n.next_in]!==0;)Ai.inflateReset(n),o=Ai.inflate(n,i);switch(o){case U7e:case wj:case C2:case V7e:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===w2))if(this.options.to==="string"){let c=Wp.utf8border(n.output,n.next_out),u=n.next_out-c,d=Wp.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Gp&&s===0)){if(o===w2)return o=Ai.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};jg.prototype.onData=function(e){this.chunks.push(e)};jg.prototype.onEnd=function(e){e===Gp&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Q0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function gN(e,t){const n=new jg(t);if(n.push(e),n.err)throw n.msg||oc[n.err];return n.result}function W7e(e,t){return t=t||{},t.raw=!0,gN(e,t)}var G7e=jg,q7e=gN,K7e=W7e,Y7e=gN,X7e=xd,Z7e={Inflate:G7e,inflate:q7e,inflateRaw:K7e,ungzip:Y7e,constants:X7e};const{Deflate:Cze,deflate:Q7e,deflateRaw:xze,gzip:Eze}=o7e,{Inflate:J7e,inflate:Ize,inflateRaw:Tze,ungzip:Rze}=Z7e;var eze=Q7e,tze=J7e;class Ah{constructor(t,n=!1,r=!0){this.device=t,this.tracing=n,this.slipReaderEnabled=!1,this.leftOver=new Uint8Array(0),this.baudrate=0,this.traceLog="",this.lastTraceTime=Date.now(),this._DTR_state=!1,this.slipReaderEnabled=r}getInfo(){const t=this.device.getInfo();return t.usbVendorId&&t.usbProductId?`WebSerial VendorID 0x${t.usbVendorId.toString(16)} ProductID 0x${t.usbProductId.toString(16)}`:""}getPid(){return this.device.getInfo().usbProductId}trace(t){const a=`${`TRACE ${(Date.now()-this.lastTraceTime).toFixed(3)}`} ${t}`;console.log(a),this.traceLog+=a+` `}async returnTrace(){try{await navigator.clipboard.writeText(this.traceLog),console.log("Text copied to clipboard!")}catch(t){console.error("Failed to copy text:",t)}}hexify(t){return Array.from(t).map(n=>n.toString(16).padStart(2,"0")).join("").padEnd(16," ")}hexConvert(t,n=!0){if(n&&t.length>16){let r="",a=t;for(;a.length>0;){const o=a.slice(0,16),i=String.fromCharCode(...o).split("").map(s=>s===" "||s>=" "&&s<="~"&&s!==" "?s:".").join("");a=a.slice(16),r+=` - ${this.hexify(o.slice(0,8))} ${this.hexify(o.slice(8))} | ${i}`}return r}else return this.hexify(t)}slipWriter(t){const n=[];n.push(192);for(let r=0;r0)return o;a=this.leftOver,this.leftOver=new Uint8Array(0)}if(this.device.readable==null)return this.leftOver;this.reader=this.device.readable.getReader();try{t>0&&(r=setTimeout(()=>{this.reader&&this.reader.cancel()},t));do{const{value:o,done:i}=await this.reader.read();if(i)throw this.leftOver=a,new Error("Timeout");a=new Uint8Array(this._appendBuffer(a.buffer,o.buffer))}while(a.length0&&clearTimeout(r),this.reader.releaseLock()}if(this.tracing&&(console.log("Read bytes"),this.trace(`Read ${a.length} bytes: ${this.hexConvert(a)}`)),this.slipReaderEnabled){const o=this.slipReader(a);return this.tracing&&(console.log("Slip reader results"),this.trace(`Read ${o.length} bytes: ${this.hexConvert(o)}`)),o}return a}async rawRead(t=0){if(this.leftOver.length!=0){const r=this.leftOver;return this.leftOver=new Uint8Array(0),r}if(!this.device.readable)return this.leftOver;this.reader=this.device.readable.getReader();let n;try{t>0&&(n=setTimeout(()=>{this.reader&&this.reader.cancel()},t));const{value:r,done:a}=await this.reader.read();return a||this.tracing&&(console.log("Raw Read bytes"),this.trace(`Read ${r.length} bytes: ${this.hexConvert(r)}`)),r}finally{t>0&&clearTimeout(n),this.reader.releaseLock()}}async setRTS(t){await this.device.setSignals({requestToSend:t}),await this.setDTR(this._DTR_state)}async setDTR(t){this._DTR_state=t,await this.device.setSignals({dataTerminalReady:t})}async connect(t=115200,n={}){await this.device.open({baudRate:t,dataBits:n==null?void 0:n.dataBits,stopBits:n==null?void 0:n.stopBits,bufferSize:n==null?void 0:n.bufferSize,parity:n==null?void 0:n.parity,flowControl:n==null?void 0:n.flowControl}),this.baudrate=t,this.leftOver=new Uint8Array(0)}async sleep(t){return new Promise(n=>setTimeout(n,t))}async waitForUnlock(t){for(;this.device.readable&&this.device.readable.locked||this.device.writable&&this.device.writable.locked;)await this.sleep(t)}async disconnect(){var t,n;!((t=this.device.readable)===null||t===void 0)&&t.locked&&await((n=this.reader)===null||n===void 0?void 0:n.cancel()),await this.waitForUnlock(400),this.reader=void 0,await this.device.close()}}function Mh(e){return new Promise(t=>setTimeout(t,e))}async function nze(e){await e.setRTS(!1),await e.setDTR(!1),await Mh(100),await e.setDTR(!0),await e.setRTS(!1),await Mh(100),await e.setRTS(!0),await e.setDTR(!1),await e.setRTS(!0),await Mh(100),await e.setRTS(!1),await e.setDTR(!1)}function rze(e){const t=["D","R","W"],n=e.split("|");for(const r of n){const a=r[0],o=r.slice(1);if(!t.includes(a))return!1;if(a==="D"||a==="R"){if(o!=="0"&&o!=="1")return!1}else if(a==="W"){const i=parseInt(o);if(isNaN(i)||i<=0)return!1}}return!0}async function aze(e,t){const n={D:async r=>await e.setDTR(r),R:async r=>await e.setRTS(r),W:async r=>await Mh(r)};try{if(!rze(t))return;const a=t.split("|");for(const o of a){const i=o[0],s=o.slice(1);i==="W"?await n.W(Number(s)):(i==="D"||i==="R")&&await n[i](s==="1")}}catch{throw new Error("Invalid custom reset sequence")}}var oze=function(t){return atob(t)};const Cj=fa(oze);async function ize(e){switch(e){case 15736195:{const{ESP32ROM:t}=await xi(async()=>{const{ESP32ROM:n}=await import("./esp32-BPYaDt9v.js");return{ESP32ROM:n}},__vite__mapDeps([0,1]));return new t}case 1867591791:case 2084675695:{const{ESP32C2ROM:t}=await xi(async()=>{const{ESP32C2ROM:n}=await import("./esp32c2-CtjOOsCE.js");return{ESP32C2ROM:n}},__vite__mapDeps([2,3,1]));return new t}case 1763790959:case 456216687:case 1216438383:case 1130455151:{const{ESP32C3ROM:t}=await xi(async()=>{const{ESP32C3ROM:n}=await import("./esp32c3-DDsZSfEd.js");return{ESP32C3ROM:n}},__vite__mapDeps([3,1]));return new t}case 752910447:{const{ESP32C6ROM:t}=await xi(async()=>{const{ESP32C6ROM:n}=await import("./esp32c6-BRG5ZpJ8.js");return{ESP32C6ROM:n}},__vite__mapDeps([4,1]));return new t}case 3619110528:{const{ESP32H2ROM:t}=await xi(async()=>{const{ESP32H2ROM:n}=await import("./esp32h2-Cf8JbGZQ.js");return{ESP32H2ROM:n}},__vite__mapDeps([5,1]));return new t}case 9:{const{ESP32S3ROM:t}=await xi(async()=>{const{ESP32S3ROM:n}=await import("./esp32s3-DkgZlzv1.js");return{ESP32S3ROM:n}},__vite__mapDeps([6,1]));return new t}case 1990:{const{ESP32S2ROM:t}=await xi(async()=>{const{ESP32S2ROM:n}=await import("./esp32s2-BOsRKhcm.js");return{ESP32S2ROM:n}},__vite__mapDeps([7,1]));return new t}case 4293968129:{const{ESP8266ROM:t}=await xi(async()=>{const{ESP8266ROM:n}=await import("./esp8266-8VKmCx7J.js");return{ESP8266ROM:n}},__vite__mapDeps([8,1]));return new t}case 0:case 182303440:case 117676761:{const{ESP32P4ROM:t}=await xi(async()=>{const{ESP32P4ROM:n}=await import("./esp32p4-DfBdIAkh.js");return{ESP32P4ROM:n}},__vite__mapDeps([9,0,1]));return new t}default:return null}}class x2{constructor(t){this.ESP_RAM_BLOCK=6144,this.ESP_FLASH_BEGIN=2,this.ESP_FLASH_DATA=3,this.ESP_FLASH_END=4,this.ESP_MEM_BEGIN=5,this.ESP_MEM_END=6,this.ESP_MEM_DATA=7,this.ESP_WRITE_REG=9,this.ESP_READ_REG=10,this.ESP_SPI_ATTACH=13,this.ESP_CHANGE_BAUDRATE=15,this.ESP_FLASH_DEFL_BEGIN=16,this.ESP_FLASH_DEFL_DATA=17,this.ESP_FLASH_DEFL_END=18,this.ESP_SPI_FLASH_MD5=19,this.ESP_ERASE_FLASH=208,this.ESP_ERASE_REGION=209,this.ESP_READ_FLASH=210,this.ESP_RUN_USER_CODE=211,this.ESP_IMAGE_MAGIC=233,this.ESP_CHECKSUM_MAGIC=239,this.ROM_INVALID_RECV_MSG=5,this.ERASE_REGION_TIMEOUT_PER_MB=3e4,this.ERASE_WRITE_TIMEOUT_PER_MB=4e4,this.MD5_TIMEOUT_PER_MB=8e3,this.CHIP_ERASE_TIMEOUT=12e4,this.FLASH_READ_TIMEOUT=1e5,this.MAX_TIMEOUT=this.CHIP_ERASE_TIMEOUT*2,this.CHIP_DETECT_MAGIC_REG_ADDR=1073745920,this.DETECTED_FLASH_SIZES={18:"256KB",19:"512KB",20:"1MB",21:"2MB",22:"4MB",23:"8MB",24:"16MB"},this.DETECTED_FLASH_SIZES_NUM={18:256,19:512,20:1024,21:2048,22:4096,23:8192,24:16384},this.USB_JTAG_SERIAL_PID=4097,this.romBaudrate=115200,this.debugLogging=!1,this.syncStubDetected=!1,this.checksum=function(n){let r,a=239;for(r=0;rsetTimeout(n,t))}write(t,n=!0){this.terminal?n?this.terminal.writeLine(t):this.terminal.write(t):console.log(t)}error(t,n=!0){this.write(`Error: ${t}`,n)}info(t,n=!0){this.write(t,n)}debug(t,n=!0){this.debugLogging&&this.write(`Debug: ${t}`,n)}_shortToBytearray(t){return new Uint8Array([t&255,t>>8&255])}_intToByteArray(t){return new Uint8Array([t&255,t>>8&255,t>>16&255,t>>24&255])}_byteArrayToShort(t,n){return t|n>>8}_byteArrayToInt(t,n,r,a){return t|n<<8|r<<16|a<<24}_appendBuffer(t,n){const r=new Uint8Array(t.byteLength+n.byteLength);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(n),t.byteLength),r.buffer}_appendArray(t,n){const r=new Uint8Array(t.length+n.length);return r.set(t,0),r.set(n,t.length),r}ui8ToBstr(t){let n="";for(let r=0;r0&&(i=this._appendArray(i,this._intToByteArray(this.chip.UART_DATE_REG_ADDR)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(o))),await this.checkCommand("write target memory",this.ESP_WRITE_REG,i)}async sync(){this.debug("Sync");const t=new Uint8Array(36);let n;for(t[0]=7,t[1]=7,t[2]=18,t[3]=32,n=0;n<32;n++)t[4+n]=85;try{const r=await this.command(8,t,void 0,void 0,100);return this.syncStubDetected=this.syncStubDetected&&r[0]===0,r}catch(r){throw this.debug("Sync err "+r),r}}async _connectAttempt(t="default_reset",n=!1){if(this.debug("_connect_attempt "+t+" "+n),t!=="no_reset")if(this.transport.getPid()===this.USB_JTAG_SERIAL_PID)await nze(this.transport);else{const o=n?"D0|R1|W100|W2000|D1|R0|W50|D0":"D0|R1|W100|D1|R0|W50|D0";await aze(this.transport,o)}let r=0,a=!0;for(;a;){try{const o=await this.transport.read(1e3);r+=o.length}catch(o){if(this.debug(o.message),o instanceof Error){a=!1;break}}await this._sleep(50)}for(this.transport.slipReaderEnabled=!0,this.syncStubDetected=!0,r=7;r--;){try{const o=await this.sync();return this.debug(o[0].toString()),"success"}catch(o){o instanceof Error&&(n?this.info("_",!1):this.info(".",!1))}await this._sleep(50)}return"error"}async connect(t="default_reset",n=7,r=!1){let a,o;for(this.info("Connecting...",!1),await this.transport.connect(this.romBaudrate,this.serialOptions),a=0;a>>0;this.debug("Chip Magic "+i.toString(16));const s=await ize(i);if(this.chip===null)throw new sa(`Unexpected CHIP magic value ${i}. Failed to autodetect chip type.`);this.chip=s}}async detectChip(t="default_reset"){await this.connect(t),this.info("Detecting chip type... ",!1),this.chip!=null?this.info(this.chip.CHIP_NAME):this.info("unknown!")}async checkCommand(t="",n=null,r=new Uint8Array(0),a=0,o=3e3){this.debug("check_command "+t);const i=await this.command(n,r,a,void 0,o);return i[1].length>4?i[1]:i[0]}async memBegin(t,n,r,a){this.debug("mem_begin "+t+" "+n+" "+r+" "+a.toString(16));let o=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));o=this._appendArray(o,this._intToByteArray(r)),o=this._appendArray(o,this._intToByteArray(a)),await this.checkCommand("enter RAM download mode",this.ESP_MEM_BEGIN,o)}async memBlock(t,n){let r=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,t);const a=this.checksum(t);await this.checkCommand("write to target RAM",this.ESP_MEM_DATA,r,a)}async memFinish(t){const n=t===0?1:0,r=this._appendArray(this._intToByteArray(n),this._intToByteArray(t));await this.checkCommand("leave RAM download mode",this.ESP_MEM_END,r,void 0,50)}async flashSpiAttach(t){const n=this._intToByteArray(t);await this.checkCommand("configure SPI flash pins",this.ESP_SPI_ATTACH,n)}async flashBegin(t,n){const r=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),a=this.chip.getEraseSize(n,t),o=new Date,i=o.getTime();let s=3e3;this.IS_STUB==!1&&(s=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,t)),this.debug("flash begin "+a+" "+r+" "+this.FLASH_WRITE_SIZE+" "+n+" "+t);let c=this._appendArray(this._intToByteArray(a),this._intToByteArray(r));c=this._appendArray(c,this._intToByteArray(this.FLASH_WRITE_SIZE)),c=this._appendArray(c,this._intToByteArray(n)),this.IS_STUB==!1&&(c=this._appendArray(c,this._intToByteArray(0))),await this.checkCommand("enter Flash download mode",this.ESP_FLASH_BEGIN,c,void 0,s);const u=o.getTime();return t!=0&&this.IS_STUB==!1&&this.info("Took "+(u-i)/1e3+"."+(u-i)%1e3+"s to erase flash block"),r}async flashDeflBegin(t,n,r){const a=Math.floor((n+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),o=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),i=new Date,s=i.getTime();let c,u;this.IS_STUB?(c=t,u=3e3):(c=o*this.FLASH_WRITE_SIZE,u=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,c)),this.info("Compressed "+t+" bytes to "+n+"...");let d=this._appendArray(this._intToByteArray(c),this._intToByteArray(a));d=this._appendArray(d,this._intToByteArray(this.FLASH_WRITE_SIZE)),d=this._appendArray(d,this._intToByteArray(r)),(this.chip.CHIP_NAME==="ESP32-S2"||this.chip.CHIP_NAME==="ESP32-S3"||this.chip.CHIP_NAME==="ESP32-C3"||this.chip.CHIP_NAME==="ESP32-C2")&&this.IS_STUB===!1&&(d=this._appendArray(d,this._intToByteArray(0))),await this.checkCommand("enter compressed flash mode",this.ESP_FLASH_DEFL_BEGIN,d,void 0,u);const f=i.getTime();return t!=0&&this.IS_STUB===!1&&this.info("Took "+(f-s)/1e3+"."+(f-s)%1e3+"s to erase flash block"),a}async flashBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);await this.checkCommand("write to target Flash after seq "+n,this.ESP_FLASH_DATA,a,o,r)}async flashDeflBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);this.debug("flash_defl_block "+t[0].toString(16)+" "+t[1].toString(16)),await this.checkCommand("write compressed data to flash after seq "+n,this.ESP_FLASH_DEFL_DATA,a,o,r)}async flashFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave Flash mode",this.ESP_FLASH_END,r)}async flashDeflFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave compressed flash mode",this.ESP_FLASH_DEFL_END,r)}async runSpiflashCommand(t,n,r){const s=this.chip.SPI_REG_BASE,c=s+0,u=s+this.chip.SPI_USR_OFFS,d=s+this.chip.SPI_USR1_OFFS,f=s+this.chip.SPI_USR2_OFFS,p=s+this.chip.SPI_W0_OFFS;let g;this.chip.SPI_MOSI_DLEN_OFFS!=null?g=async(I,R)=>{const T=s+this.chip.SPI_MOSI_DLEN_OFFS,_=s+this.chip.SPI_MISO_DLEN_OFFS;I>0&&await this.writeReg(T,I-1),R>0&&await this.writeReg(_,R-1)}:g=async(I,R)=>{const T=d,_=17,$=8,D=I===0?0:I-1,A=(R===0?0:R-1)<<$|D<<_;await this.writeReg(T,A)};const v=1<<18,m=28;if(r>32)throw new sa("Reading more than 32 bits back from a SPI flash operation is unsupported");if(n.length>64)throw new sa("Writing more than 64 bytes of data with one SPI command is unsupported");const h=n.length*8,y=await this.readReg(u),b=await this.readReg(f);let S=-2147483648,C;r>0&&(S|=268435456),h>0&&(S|=134217728),await g(h,r),await this.writeReg(u,S);let x=7<("00"+n.toString(16)).slice(-2)).join("")}async flashMd5sum(t,n){const r=this.timeoutPerMb(this.MD5_TIMEOUT_PER_MB,n);let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0));let o=await this.checkCommand("calculate md5sum",this.ESP_SPI_FLASH_MD5,a,void 0,r);return o instanceof Uint8Array&&o.length>16&&(o=o.slice(0,16)),this.toHex(o)}async readFlash(t,n,r=null){let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(4096)),a=this._appendArray(a,this._intToByteArray(1024));const o=await this.checkCommand("read flash",this.ESP_READ_FLASH,a);if(o!=0)throw new sa("Failed to read memory: "+o);let i=new Uint8Array(0);for(;i.length0&&(i=this._appendArray(i,s),await this.transport.write(this._intToByteArray(i.length)),r&&r(s,i.length,n));else throw new sa("Failed to read memory: "+s)}return i}async runStub(){if(this.syncStubDetected)return this.info("Stub is already running. No upload is necessary."),this.chip;this.info("Uploading stub...");let t=Cj(this.chip.ROM_TEXT),n=t.split("").map(function(s){return s.charCodeAt(0)});const r=new Uint8Array(n);t=Cj(this.chip.ROM_DATA),n=t.split("").map(function(s){return s.charCodeAt(0)});const a=new Uint8Array(n);let o=Math.floor((r.length+this.ESP_RAM_BLOCK-1)/this.ESP_RAM_BLOCK),i;for(await this.memBegin(r.length,o,this.ESP_RAM_BLOCK,this.chip.TEXT_START),i=0;i"u")throw new sa("Flash size "+t+" is not supported by this chip type. Supported sizes: "+this.chip.FLASH_SIZES);return this.chip.FLASH_SIZES[t]}_updateImageFlashParams(t,n,r,a,o){if(this.debug("_update_image_flash_params "+r+" "+a+" "+o),t.length<8||n!=this.chip.BOOTLOADER_FLASH_OFFSET)return t;if(r==="keep"&&a==="keep"&&o==="keep")return this.info("Not changing the image"),t;const i=parseInt(t[0]);let s=parseInt(t[2]);const c=parseInt(t[3]);if(i!==this.ESP_IMAGE_MAGIC)return this.info("Warning: Image file at 0x"+n.toString(16)+" doesn't look like an image file, so not changing any flash settings."),t;a!=="keep"&&(s={qio:0,qout:1,dio:2,dout:3}[a]);let u=c&15;o!=="keep"&&(u={"40m":0,"26m":1,"20m":2,"80m":15}[o]);let d=c&240;r!=="keep"&&(d=this.parseFlashSizeArg(r));const f=s<<8|u+d;return this.info("Flash params set to "+f.toString(16)),parseInt(t[2])!==s<<8&&(t=t.substring(0,2)+(s<<8).toString()+t.substring(3)),parseInt(t[3])!==u+d&&(t=t.substring(0,3)+(u+d).toString()+t.substring(4)),t}async writeFlash(t){if(this.debug("EspLoader program"),t.flashSize!=="keep"){const a=this.flashSizeBytes(t.flashSize);for(let o=0;oa)throw new sa(`File ${o+1} doesn't fit in the available flash`)}this.IS_STUB===!0&&t.eraseAll===!0&&await this.eraseFlash();let n,r;for(let a=0;a0&&(n+="ÿÿÿÿ".substring(4-o)),r=t.fileArray[a].address,this.debug("Image Length "+n.length),n.length===0){this.debug("Warning: File is empty");continue}n=this._updateImageFlashParams(n,r,t.flashSize,t.flashMode,t.flashFreq);let i=null;t.calculateMD5Hash&&(i=t.calculateMD5Hash(n),this.debug("Image MD5 "+i));const s=n.length;let c;if(t.compress){const b=this.bstrToUi8(n);n=this.ui8ToBstr(eze(b,{level:9})),c=await this.flashDeflBegin(s,n.length,r)}else c=await this.flashBegin(s,r);let u=0,d=0;const f=n.length;t.reportProgress&&t.reportProgress(a,0,f);let p=new Date;const g=p.getTime();let v=5e3;const m=new tze({chunkSize:1});let h=0;for(m.onData=function(b){h+=b.byteLength};n.length>0;){this.debug("Write loop "+r+" "+u+" "+c),this.info("Writing at 0x"+(r+h).toString(16)+"... ("+Math.floor(100*(u+1)/c)+"%)");const b=this.bstrToUi8(n.slice(0,this.FLASH_WRITE_SIZE));if(t.compress){const S=h;m.push(b,!1);const C=h-S;let x=3e3;this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)>3e3&&(x=this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)),this.IS_STUB===!1&&(v=x),await this.flashDeflBlock(b,u,v),this.IS_STUB&&(v=x)}else throw new sa("Yet to handle Non Compressed writes");d+=b.length,n=n.slice(this.FLASH_WRITE_SIZE,n.length),u++,t.reportProgress&&t.reportProgress(a,d,f)}this.IS_STUB&&await this.readReg(this.CHIP_DETECT_MAGIC_REG_ADDR,v),p=new Date;const y=p.getTime()-g;if(t.compress&&this.info("Wrote "+s+" bytes ("+d+" compressed) at 0x"+r.toString(16)+" in "+y/1e3+" seconds."),i){const b=await this.flashMd5sum(r,s);if(new String(b).valueOf()!=new String(i).valueOf())throw this.info("File md5: "+i),this.info("Flash md5: "+b),new sa("MD5 of file does not match data in flash!");this.info("Hash of data verified.")}}this.info("Leaving..."),this.IS_STUB&&(await this.flashBegin(0,0),t.compress?await this.flashDeflFinish():await this.flashFinish())}async flashId(){this.debug("flash_id");const t=await this.readFlashId();this.info("Manufacturer: "+(t&255).toString(16));const n=t>>16&255;this.info("Device: "+(t>>8&255).toString(16)+n.toString(16)),this.info("Detected flash size: "+this.DETECTED_FLASH_SIZES[n])}async getFlashSize(){this.debug("flash_id");const n=await this.readFlashId()>>16&255;return this.DETECTED_FLASH_SIZES_NUM[n]}async hardReset(){await this.transport.setRTS(!0),await this._sleep(100),await this.transport.setRTS(!1)}async softReset(){if(!this.IS_STUB)await this.flashBegin(0,0),await this.flashFinish(!1);else{if(this.chip.CHIP_NAME!="ESP8266")throw new sa("Soft resetting is currently only supported on ESP8266");await this.command(this.ESP_RUN_USER_CODE,void 0,void 0,!1)}}}const sze=()=>{const[e,t]=l.useState(0),n=["",".","..","...","....","....."];return l.useEffect(()=>{const r=setInterval(()=>{t(a=>(a+1)%n.length)},666);return()=>clearInterval(r)},[]),w.jsx(w.Fragment,{children:n[e]})},lze=()=>"serial"in navigator,th=new En(vn()),{Paragraph:Jr,Text:cze}=Ln,{Step:uze}=K$,dze=()=>{const{t:e}=Vt(),t=Yr.language,n=l.useRef(null),[r,a]=l.useState(!1),[o,i]=l.useState(""),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[f,p]=l.useState(0),[g,v]=l.useState([w.jsx(w.Fragment,{}),w.jsx(w.Fragment,{}),w.jsx(w.Fragment,{}),w.jsx(w.Fragment,{})]),[m,h]=l.useState({progress:0,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",state:"",filename:"",flashName:"",port:null,originalFlash:null,patchedFlash:null,showStatus:!1,showProgress:!1,showDownload:!1,showFlash:!1,connected:!1,hostname:window.location.hostname,wifi_ssid:"",wifi_pass:"",proceed:!1,actionInProgress:!1,warningTextHostname:"",warningTextWifi:"",downloadLink:"",downloadLinkPatched:"",error:!1}),[y,b]=l.useState(!1),S=921600,C=115200;function x(q){const Q=new Uint8Array(q);let ae="";for(let se=0;se{b(lze())},[]),l.useEffect(()=>{if(window.location.protocol!=="https:"){a(!1);const q=async()=>{try{return await(await th.apiGetTeddyCloudSettingRaw("core.server.https_web_port")).text()}catch(se){console.error("Error fetching https port: ",se)}},Q=async()=>{try{return await(await th.apiGetTeddyCloudSettingRaw("core.server.http_port")).text()}catch(se){console.error("Error fetching http port: ",se)}};(async()=>{const se=await q()||"",de=await Q()||"",he=new URL(window.location.href);he.protocol="https:",he.port?he.port=he.port===de?se:he.port:he.port=se,i(he.toString())})()}else a(!0)},[]),l.useEffect(()=>{P(f,(()=>{switch(f){case 0:return F;case 1:return j;case 2:return B;case 3:return z;default:return w.jsx("div",{})}})())},[m,t]),l.useEffect(()=>{m.proceed&&Y()},[m.proceed]),l.useEffect(()=>{c(m.actionInProgress)},[m.actionInProgress]);const E=()=>{o&&(window.location.href=o)},I=async q=>{if(m.port)return console.log(m.port.getInfo),m.port;h(ae=>({...ae,showStatus:!0,showProgress:!1,progress:0,state:q||"Open serial port"}));let Q=null;try{Q=await navigator.serial.requestPort(),await Q.open({baudRate:115200}),await Q.close()}catch(ae){return ae==="NetworkError"?(h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"),error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"))):ae==="NotFoundError"?h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.noPortAvailable"),error:!0})):(h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+ae,error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+` ${ae}`)),null}return Q?(console.log("port done"),h(ae=>({...ae,port:Q})),Q):(h(ae=>({...ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.invalidSerialPort"),error:!0})),null)},R=async q=>{if(console.log("loadFlashFile"),!q.target.files)return;const Q=q.target.files[0];if(!Q)return;h(se=>({...se,state:"",chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",error:!1,actionInProgress:!0})),console.log("Read file '"+Q+"'");const ae=new FileReader;ae.onload=async se=>{var ye;console.log("Connecting to ESP32");const de=await I(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadMac"));if(de===null||m.connected){h(pe=>({...pe,actionInProgress:!1}));return}h(pe=>({...pe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${m.port}`,showFlash:!1,connected:!0}));let he=null;try{const pe=new Ah(de);he=new x2({transport:pe,baudrate:S,romBaudrate:C})}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),alert(pe),await de.close();return}try{h(Te=>({...Te,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.retrievingMac"),actionInProgress:!0})),await he.main();let pe=await he.chip.readMac(he);h(Te=>({...Te,chipMac:pe})),console.log("Chip MAC: "+pe),await de.close();const J=(ye=se.target)==null?void 0:ye.result,ce=new Uint8Array(J),ue=`ESP32_${pe.replace(/:/g,"")}`,fe=new Blob([ce],{type:"application/octet-stream"}),be=URL.createObjectURL(fe);await _(ce,ue),se.target&&h(Te=>{var _e;return{...Te,patchedFlash:(_e=se.target)==null?void 0:_e.result,showFlash:!0,connected:!1,flashName:"from file",downloadLink:be}}),console.log("Done")}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(pe),alert(pe),await de.close();return}},ae.readAsArrayBuffer(Q),h(se=>({...se,actionInProgress:!1})),q.target.value=""},T=async()=>{let q=null,Q=null,ae="";Q=new Uint8Array(1024);const se=await I(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadFlash"));if(se===null||m.connected)return;h(pe=>({...pe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${se.getInfo()}`,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",showFlash:!1,connected:!0,actionInProgress:!0,error:!1}));try{const pe=new Ah(se);q=new x2({transport:pe,baudrate:S,romBaudrate:C})}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),alert(pe),await se.close();return}try{h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await q.main(),h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected")})),ae=await q.chip.readMac(q),h(ue=>({...ue,chipMac:ae})),console.log("Chip MAC: "+ae);const pe=await q.chip.getChipDescription(q);h(ue=>({...ue,chipType:pe}));let J=await q.readFlashId();h(ue=>({...ue,flashId:""+J,flashManuf:""+(J&255),flashDevice:""+(J>>8&255)}));let ce=await q.getFlashSize();if(h(ue=>({...ue,flashSize:""+ce})),ce<0||ce>16384){h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await se.close();return}h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFlash"),showProgress:!0,progress:0})),Q=await q.readFlash(0,ce*1024,(ue,fe,be)=>{const Te=100*fe/be;h(_e=>({..._e,progress:Te}))}),await se.close(),h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFinished"),progress:100,originalFlash:Q,connected:!1}))}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(pe),alert(pe),await se.close();return}const de=`ESP32_${ae.replace(/:/g,"")}`,he=new Blob([Q],{type:"application/octet-stream"}),ye=URL.createObjectURL(he);h(pe=>({...pe,downloadLink:ye,showProgress:!1})),await _(Q,de),console.log("Done")},_=async(q,Q)=>{try{h(de=>({...de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploading"),error:!1}));const ae=new FormData;ae.append(Q,new Blob([q.buffer]),Q);const se=await th.apiPostTeddyCloudFormDataRaw("/api/uploadFirmware",ae);if(se.ok&&se.status===200){const de=await se.text();h(he=>({...he,showDownload:!0,filename:de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadSuccessful")+` ${de}`+e("tonieboxes.esp32BoxFlashing.esp32flasher.readyToProceed"),proceed:!0,actionInProgress:!1}))}else h(de=>({...de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}catch(ae){console.error("There was an error when uploading!",ae),h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}},$=async()=>{if(m.wifi_ssid&&!m.wifi_pass||!m.wifi_ssid&&m.wifi_pass){h(Q=>({...Q,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),showStatus:!0,warningTextWifi:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),error:!0}));return}h(Q=>({...Q,actionInProgress:!0})),h(Q=>({...Q,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage"),error:!1}));const q=await th.apiGetTeddyCloudApiRaw(`/api/patchFirmware?filename=${m.filename}&hostname=${m.hostname}`+(m.wifi_ssid&&m.wifi_pass?`&wifi_ssid=${m.wifi_ssid}&wifi_pass=${m.wifi_pass}`:""));if(h(Q=>({...Q,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage")})),q.ok&&q.status===200){const Q=await q.arrayBuffer();h(de=>({...de,patchedFlash:Q,showFlash:!0,flashName:"patched"}));const ae=new Blob([Q],{type:"application/octet-stream"}),se=URL.createObjectURL(ae);h(de=>({...de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingSuccessful",{size:(Q.byteLength/1024/1024).toFixed(0)}),downloadLinkPatched:se})),Y()}else h(Q=>({...Q,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFailed"),error:!0}));h(Q=>({...Q,actionInProgress:!1}))},D=async()=>{const q=await I(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(q===null||m.connected)return;h(ae=>({...ae,actionInProgress:!0,error:!1})),h(ae=>({...ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${q.getInfo()}`,connected:!0}));let Q=null;try{const ae=new Ah(q);Q=new x2({transport:ae,baudrate:S,romBaudrate:C})}catch(ae){h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${ae}`,connected:!1,actionInProgress:!1,error:!0})),alert(ae),await q.close();return}try{h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await Q.main(),h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let ae=await Q.chip.readMac(Q);h(J=>({...J,chipMac:ae})),console.log("Chip MAC: "+ae);const se=await Q.chip.getChipDescription(Q);h(J=>({...J,chipType:se}));let de=await Q.readFlashId();h(J=>({...J,flashId:""+de,flashManuf:""+(de&255),flashDevice:""+(de>>8&255)}));let he=await Q.getFlashSize();if(h(J=>({...J,flashSize:""+he})),he<0||he>16384){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await q.close();return}h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(m.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let ye=[];ye.push({data:x(m.patchedFlash),address:0});let pe={fileArray:ye,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(J,ce,ue)=>{const fe=100*ce/ue;h(be=>({...be,progress:fe}))}};h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(m.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await Q.writeFlash(pe),await q.close(),h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1,proceed:!0}))}catch(ae){h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${ae}`,connected:!1,actionInProgress:!1,error:!0})),console.error(ae),alert(ae),await q.close();return}},P=(q,Q)=>{v(ae=>{const se=[...ae];return se[q]=Q,se})},A=[{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}],O=w.jsx(w.Fragment,{children:m.showProgress&&w.jsx("div",{children:w.jsx("div",{children:w.jsx(h0,{percent:m.progress||0,format:q=>`${(q??0).toFixed(2)}%`})})})}),k=w.jsx(w.Fragment,{children:(m.chipType||m.chipMac)&&w.jsxs("div",{children:[w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.infoTable")}),w.jsx("table",{className:"info-table",children:w.jsxs("tbody",{children:[m.chipType&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipType")}),w.jsx("td",{children:m.chipType})]}),m.chipMac&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipMAC")}),w.jsx("td",{children:m.chipMac})]}),m.flashId&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashId")}),w.jsxs("td",{children:["0x",m.flashId.toString()]})]}),m.flashManuf&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashManuf")}),w.jsxs("td",{children:["0x",m.flashManuf.toString()]})]}),m.flashDevice&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashDevice")}),w.jsxs("td",{children:["0x",m.flashDevice.toString()]})]}),m.flashSize&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSize")}),w.jsxs("td",{children:[m.flashSize," KiB"]})]})]})})]})}),N=q=>q.replace(/[^a-zA-Z0-9-.]/g,"").trim(),M=q=>{if(q.endsWith("...")){const Q=q.slice(0,-3);return w.jsxs("div",{style:{display:"flex"},children:[Q,w.jsx(sze,{})]})}return q},L=m.showStatus&&w.jsx("div",{className:"status",style:{marginBottom:16,color:m.error?"#CC3010":"unset"},children:w.jsx("i",{children:M(m.state)})}),F=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")}),!m.actionInProgress&&w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintReadESP32ImportFlash")}),L,w.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:R}),O]}),j=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")}),w.jsxs("div",{children:[!m.actionInProgress&&w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchFlash")}),L,!m.actionInProgress&&m.downloadLink?w.jsxs("div",{style:{marginBottom:16},children:[" ",w.jsx("a",{href:m.downloadLink,download:m.filename,title:m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})]}):"",w.jsxs(Zt,{children:[w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameSettings")}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchHost")}),w.jsxs(Zt.Item,{children:[w.jsxs(Ba,{align:"middle",style:{display:"flex",alignItems:"center"},children:[w.jsx(Rn,{style:{flex:"0 0 200px",color:m.warningTextHostname?"#CC3010":"unset"},children:w.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostname")})}),w.jsx(Rn,{style:{flex:"1 1 auto"},children:w.jsx(en,{type:"text",value:m.hostname,onChange:q=>{let Q=N(q.target.value),ae="";Q.length>12?ae=e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameToLong"):ae="",h(se=>({...se,hostname:Q,warningTextHostname:ae}))}})})]}),m.warningTextHostname&&w.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameToLong")})]}),w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSettings")}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchWifi")}),w.jsx(Zt.Item,{children:w.jsxs(Ba,{align:"middle",style:{display:"flex",alignItems:"center"},children:[w.jsx(Rn,{style:{flex:"0 0 200px",color:m.warningTextWifi?"#CC3010":"unset"},children:w.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSSID")})}),w.jsx(Rn,{style:{flex:"1 1 auto"},children:w.jsx(en,{type:"text",defaultValue:m.wifi_ssid,onChange:q=>{let Q=q.target.value;h(ae=>({...ae,wifi_ssid:Q,warningTextWifi:q.target.value&&m.wifi_pass||!q.target.value&&!m.wifi_pass?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]})}),w.jsxs(Zt.Item,{children:[w.jsxs(Ba,{align:"middle",style:{display:"flex",alignItems:"center"},children:[w.jsx(Rn,{style:{flex:"0 0 200px",color:m.warningTextWifi?"#CC3010":"unset"},children:w.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiPassword")})}),w.jsx(Rn,{style:{flex:"1 1 auto"},children:w.jsx(en.Password,{defaultValue:m.wifi_pass,onChange:q=>{let Q=q.target.value;h(ae=>({...ae,wifi_pass:Q,warningTextWifi:q.target.value&&m.wifi_ssid||!q.target.value&&!m.wifi_ssid?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]}),m.warningTextWifi&&w.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")})]})]})]}),O]}),B=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")}),!m.actionInProgress&&w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintFlashESP32")}),L,!m.actionInProgress&&m.downloadLinkPatched?w.jsxs("div",{style:{marginBottom:16},children:[" ",w.jsx("a",{href:m.downloadLinkPatched,download:"patched_"+m.filename,title:"patched_"+m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})]}):"",O]}),z=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareFlashed")}),L,O,(m.downloadLink||m.downloadLinkPatched)&&w.jsxs(w.Fragment,{children:[w.jsx(Mr,{type:"info",style:{marginTop:16},showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates"),description:w.jsx("div",{children:w.jsxs(Ln,{children:[w.jsxs(Jr,{children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHintP1")," ",w.jsx(cze,{code:!0,children:"docker exec -it bash"}),"."]}),w.jsx(Jr,{children:w.jsx("pre",{style:{fontSize:12},children:`# Please check the filename of your backup + ${this.hexify(o.slice(0,8))} ${this.hexify(o.slice(8))} | ${i}`}return r}else return this.hexify(t)}slipWriter(t){const n=[];n.push(192);for(let r=0;r0)return o;a=this.leftOver,this.leftOver=new Uint8Array(0)}if(this.device.readable==null)return this.leftOver;this.reader=this.device.readable.getReader();try{t>0&&(r=setTimeout(()=>{this.reader&&this.reader.cancel()},t));do{const{value:o,done:i}=await this.reader.read();if(i)throw this.leftOver=a,new Error("Timeout");a=new Uint8Array(this._appendBuffer(a.buffer,o.buffer))}while(a.length0&&clearTimeout(r),this.reader.releaseLock()}if(this.tracing&&(console.log("Read bytes"),this.trace(`Read ${a.length} bytes: ${this.hexConvert(a)}`)),this.slipReaderEnabled){const o=this.slipReader(a);return this.tracing&&(console.log("Slip reader results"),this.trace(`Read ${o.length} bytes: ${this.hexConvert(o)}`)),o}return a}async rawRead(t=0){if(this.leftOver.length!=0){const r=this.leftOver;return this.leftOver=new Uint8Array(0),r}if(!this.device.readable)return this.leftOver;this.reader=this.device.readable.getReader();let n;try{t>0&&(n=setTimeout(()=>{this.reader&&this.reader.cancel()},t));const{value:r,done:a}=await this.reader.read();return a||this.tracing&&(console.log("Raw Read bytes"),this.trace(`Read ${r.length} bytes: ${this.hexConvert(r)}`)),r}finally{t>0&&clearTimeout(n),this.reader.releaseLock()}}async setRTS(t){await this.device.setSignals({requestToSend:t}),await this.setDTR(this._DTR_state)}async setDTR(t){this._DTR_state=t,await this.device.setSignals({dataTerminalReady:t})}async connect(t=115200,n={}){await this.device.open({baudRate:t,dataBits:n==null?void 0:n.dataBits,stopBits:n==null?void 0:n.stopBits,bufferSize:n==null?void 0:n.bufferSize,parity:n==null?void 0:n.parity,flowControl:n==null?void 0:n.flowControl}),this.baudrate=t,this.leftOver=new Uint8Array(0)}async sleep(t){return new Promise(n=>setTimeout(n,t))}async waitForUnlock(t){for(;this.device.readable&&this.device.readable.locked||this.device.writable&&this.device.writable.locked;)await this.sleep(t)}async disconnect(){var t,n;!((t=this.device.readable)===null||t===void 0)&&t.locked&&await((n=this.reader)===null||n===void 0?void 0:n.cancel()),await this.waitForUnlock(400),this.reader=void 0,await this.device.close()}}function Mh(e){return new Promise(t=>setTimeout(t,e))}async function nze(e){await e.setRTS(!1),await e.setDTR(!1),await Mh(100),await e.setDTR(!0),await e.setRTS(!1),await Mh(100),await e.setRTS(!0),await e.setDTR(!1),await e.setRTS(!0),await Mh(100),await e.setRTS(!1),await e.setDTR(!1)}function rze(e){const t=["D","R","W"],n=e.split("|");for(const r of n){const a=r[0],o=r.slice(1);if(!t.includes(a))return!1;if(a==="D"||a==="R"){if(o!=="0"&&o!=="1")return!1}else if(a==="W"){const i=parseInt(o);if(isNaN(i)||i<=0)return!1}}return!0}async function aze(e,t){const n={D:async r=>await e.setDTR(r),R:async r=>await e.setRTS(r),W:async r=>await Mh(r)};try{if(!rze(t))return;const a=t.split("|");for(const o of a){const i=o[0],s=o.slice(1);i==="W"?await n.W(Number(s)):(i==="D"||i==="R")&&await n[i](s==="1")}}catch{throw new Error("Invalid custom reset sequence")}}var oze=function(t){return atob(t)};const Cj=fa(oze);async function ize(e){switch(e){case 15736195:{const{ESP32ROM:t}=await Ei(async()=>{const{ESP32ROM:n}=await import("./esp32-BPYaDt9v.js");return{ESP32ROM:n}},__vite__mapDeps([0,1]));return new t}case 1867591791:case 2084675695:{const{ESP32C2ROM:t}=await Ei(async()=>{const{ESP32C2ROM:n}=await import("./esp32c2-CtjOOsCE.js");return{ESP32C2ROM:n}},__vite__mapDeps([2,3,1]));return new t}case 1763790959:case 456216687:case 1216438383:case 1130455151:{const{ESP32C3ROM:t}=await Ei(async()=>{const{ESP32C3ROM:n}=await import("./esp32c3-DDsZSfEd.js");return{ESP32C3ROM:n}},__vite__mapDeps([3,1]));return new t}case 752910447:{const{ESP32C6ROM:t}=await Ei(async()=>{const{ESP32C6ROM:n}=await import("./esp32c6-BRG5ZpJ8.js");return{ESP32C6ROM:n}},__vite__mapDeps([4,1]));return new t}case 3619110528:{const{ESP32H2ROM:t}=await Ei(async()=>{const{ESP32H2ROM:n}=await import("./esp32h2-Cf8JbGZQ.js");return{ESP32H2ROM:n}},__vite__mapDeps([5,1]));return new t}case 9:{const{ESP32S3ROM:t}=await Ei(async()=>{const{ESP32S3ROM:n}=await import("./esp32s3-DkgZlzv1.js");return{ESP32S3ROM:n}},__vite__mapDeps([6,1]));return new t}case 1990:{const{ESP32S2ROM:t}=await Ei(async()=>{const{ESP32S2ROM:n}=await import("./esp32s2-BOsRKhcm.js");return{ESP32S2ROM:n}},__vite__mapDeps([7,1]));return new t}case 4293968129:{const{ESP8266ROM:t}=await Ei(async()=>{const{ESP8266ROM:n}=await import("./esp8266-8VKmCx7J.js");return{ESP8266ROM:n}},__vite__mapDeps([8,1]));return new t}case 0:case 182303440:case 117676761:{const{ESP32P4ROM:t}=await Ei(async()=>{const{ESP32P4ROM:n}=await import("./esp32p4-DfBdIAkh.js");return{ESP32P4ROM:n}},__vite__mapDeps([9,0,1]));return new t}default:return null}}class x2{constructor(t){this.ESP_RAM_BLOCK=6144,this.ESP_FLASH_BEGIN=2,this.ESP_FLASH_DATA=3,this.ESP_FLASH_END=4,this.ESP_MEM_BEGIN=5,this.ESP_MEM_END=6,this.ESP_MEM_DATA=7,this.ESP_WRITE_REG=9,this.ESP_READ_REG=10,this.ESP_SPI_ATTACH=13,this.ESP_CHANGE_BAUDRATE=15,this.ESP_FLASH_DEFL_BEGIN=16,this.ESP_FLASH_DEFL_DATA=17,this.ESP_FLASH_DEFL_END=18,this.ESP_SPI_FLASH_MD5=19,this.ESP_ERASE_FLASH=208,this.ESP_ERASE_REGION=209,this.ESP_READ_FLASH=210,this.ESP_RUN_USER_CODE=211,this.ESP_IMAGE_MAGIC=233,this.ESP_CHECKSUM_MAGIC=239,this.ROM_INVALID_RECV_MSG=5,this.ERASE_REGION_TIMEOUT_PER_MB=3e4,this.ERASE_WRITE_TIMEOUT_PER_MB=4e4,this.MD5_TIMEOUT_PER_MB=8e3,this.CHIP_ERASE_TIMEOUT=12e4,this.FLASH_READ_TIMEOUT=1e5,this.MAX_TIMEOUT=this.CHIP_ERASE_TIMEOUT*2,this.CHIP_DETECT_MAGIC_REG_ADDR=1073745920,this.DETECTED_FLASH_SIZES={18:"256KB",19:"512KB",20:"1MB",21:"2MB",22:"4MB",23:"8MB",24:"16MB"},this.DETECTED_FLASH_SIZES_NUM={18:256,19:512,20:1024,21:2048,22:4096,23:8192,24:16384},this.USB_JTAG_SERIAL_PID=4097,this.romBaudrate=115200,this.debugLogging=!1,this.syncStubDetected=!1,this.checksum=function(n){let r,a=239;for(r=0;rsetTimeout(n,t))}write(t,n=!0){this.terminal?n?this.terminal.writeLine(t):this.terminal.write(t):console.log(t)}error(t,n=!0){this.write(`Error: ${t}`,n)}info(t,n=!0){this.write(t,n)}debug(t,n=!0){this.debugLogging&&this.write(`Debug: ${t}`,n)}_shortToBytearray(t){return new Uint8Array([t&255,t>>8&255])}_intToByteArray(t){return new Uint8Array([t&255,t>>8&255,t>>16&255,t>>24&255])}_byteArrayToShort(t,n){return t|n>>8}_byteArrayToInt(t,n,r,a){return t|n<<8|r<<16|a<<24}_appendBuffer(t,n){const r=new Uint8Array(t.byteLength+n.byteLength);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(n),t.byteLength),r.buffer}_appendArray(t,n){const r=new Uint8Array(t.length+n.length);return r.set(t,0),r.set(n,t.length),r}ui8ToBstr(t){let n="";for(let r=0;r0&&(i=this._appendArray(i,this._intToByteArray(this.chip.UART_DATE_REG_ADDR)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(o))),await this.checkCommand("write target memory",this.ESP_WRITE_REG,i)}async sync(){this.debug("Sync");const t=new Uint8Array(36);let n;for(t[0]=7,t[1]=7,t[2]=18,t[3]=32,n=0;n<32;n++)t[4+n]=85;try{const r=await this.command(8,t,void 0,void 0,100);return this.syncStubDetected=this.syncStubDetected&&r[0]===0,r}catch(r){throw this.debug("Sync err "+r),r}}async _connectAttempt(t="default_reset",n=!1){if(this.debug("_connect_attempt "+t+" "+n),t!=="no_reset")if(this.transport.getPid()===this.USB_JTAG_SERIAL_PID)await nze(this.transport);else{const o=n?"D0|R1|W100|W2000|D1|R0|W50|D0":"D0|R1|W100|D1|R0|W50|D0";await aze(this.transport,o)}let r=0,a=!0;for(;a;){try{const o=await this.transport.read(1e3);r+=o.length}catch(o){if(this.debug(o.message),o instanceof Error){a=!1;break}}await this._sleep(50)}for(this.transport.slipReaderEnabled=!0,this.syncStubDetected=!0,r=7;r--;){try{const o=await this.sync();return this.debug(o[0].toString()),"success"}catch(o){o instanceof Error&&(n?this.info("_",!1):this.info(".",!1))}await this._sleep(50)}return"error"}async connect(t="default_reset",n=7,r=!1){let a,o;for(this.info("Connecting...",!1),await this.transport.connect(this.romBaudrate,this.serialOptions),a=0;a>>0;this.debug("Chip Magic "+i.toString(16));const s=await ize(i);if(this.chip===null)throw new sa(`Unexpected CHIP magic value ${i}. Failed to autodetect chip type.`);this.chip=s}}async detectChip(t="default_reset"){await this.connect(t),this.info("Detecting chip type... ",!1),this.chip!=null?this.info(this.chip.CHIP_NAME):this.info("unknown!")}async checkCommand(t="",n=null,r=new Uint8Array(0),a=0,o=3e3){this.debug("check_command "+t);const i=await this.command(n,r,a,void 0,o);return i[1].length>4?i[1]:i[0]}async memBegin(t,n,r,a){this.debug("mem_begin "+t+" "+n+" "+r+" "+a.toString(16));let o=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));o=this._appendArray(o,this._intToByteArray(r)),o=this._appendArray(o,this._intToByteArray(a)),await this.checkCommand("enter RAM download mode",this.ESP_MEM_BEGIN,o)}async memBlock(t,n){let r=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,t);const a=this.checksum(t);await this.checkCommand("write to target RAM",this.ESP_MEM_DATA,r,a)}async memFinish(t){const n=t===0?1:0,r=this._appendArray(this._intToByteArray(n),this._intToByteArray(t));await this.checkCommand("leave RAM download mode",this.ESP_MEM_END,r,void 0,50)}async flashSpiAttach(t){const n=this._intToByteArray(t);await this.checkCommand("configure SPI flash pins",this.ESP_SPI_ATTACH,n)}async flashBegin(t,n){const r=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),a=this.chip.getEraseSize(n,t),o=new Date,i=o.getTime();let s=3e3;this.IS_STUB==!1&&(s=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,t)),this.debug("flash begin "+a+" "+r+" "+this.FLASH_WRITE_SIZE+" "+n+" "+t);let c=this._appendArray(this._intToByteArray(a),this._intToByteArray(r));c=this._appendArray(c,this._intToByteArray(this.FLASH_WRITE_SIZE)),c=this._appendArray(c,this._intToByteArray(n)),this.IS_STUB==!1&&(c=this._appendArray(c,this._intToByteArray(0))),await this.checkCommand("enter Flash download mode",this.ESP_FLASH_BEGIN,c,void 0,s);const u=o.getTime();return t!=0&&this.IS_STUB==!1&&this.info("Took "+(u-i)/1e3+"."+(u-i)%1e3+"s to erase flash block"),r}async flashDeflBegin(t,n,r){const a=Math.floor((n+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),o=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),i=new Date,s=i.getTime();let c,u;this.IS_STUB?(c=t,u=3e3):(c=o*this.FLASH_WRITE_SIZE,u=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,c)),this.info("Compressed "+t+" bytes to "+n+"...");let d=this._appendArray(this._intToByteArray(c),this._intToByteArray(a));d=this._appendArray(d,this._intToByteArray(this.FLASH_WRITE_SIZE)),d=this._appendArray(d,this._intToByteArray(r)),(this.chip.CHIP_NAME==="ESP32-S2"||this.chip.CHIP_NAME==="ESP32-S3"||this.chip.CHIP_NAME==="ESP32-C3"||this.chip.CHIP_NAME==="ESP32-C2")&&this.IS_STUB===!1&&(d=this._appendArray(d,this._intToByteArray(0))),await this.checkCommand("enter compressed flash mode",this.ESP_FLASH_DEFL_BEGIN,d,void 0,u);const f=i.getTime();return t!=0&&this.IS_STUB===!1&&this.info("Took "+(f-s)/1e3+"."+(f-s)%1e3+"s to erase flash block"),a}async flashBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);await this.checkCommand("write to target Flash after seq "+n,this.ESP_FLASH_DATA,a,o,r)}async flashDeflBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);this.debug("flash_defl_block "+t[0].toString(16)+" "+t[1].toString(16)),await this.checkCommand("write compressed data to flash after seq "+n,this.ESP_FLASH_DEFL_DATA,a,o,r)}async flashFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave Flash mode",this.ESP_FLASH_END,r)}async flashDeflFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave compressed flash mode",this.ESP_FLASH_DEFL_END,r)}async runSpiflashCommand(t,n,r){const s=this.chip.SPI_REG_BASE,c=s+0,u=s+this.chip.SPI_USR_OFFS,d=s+this.chip.SPI_USR1_OFFS,f=s+this.chip.SPI_USR2_OFFS,p=s+this.chip.SPI_W0_OFFS;let g;this.chip.SPI_MOSI_DLEN_OFFS!=null?g=async(I,R)=>{const T=s+this.chip.SPI_MOSI_DLEN_OFFS,_=s+this.chip.SPI_MISO_DLEN_OFFS;I>0&&await this.writeReg(T,I-1),R>0&&await this.writeReg(_,R-1)}:g=async(I,R)=>{const T=d,_=17,$=8,D=I===0?0:I-1,A=(R===0?0:R-1)<<$|D<<_;await this.writeReg(T,A)};const v=1<<18,m=28;if(r>32)throw new sa("Reading more than 32 bits back from a SPI flash operation is unsupported");if(n.length>64)throw new sa("Writing more than 64 bytes of data with one SPI command is unsupported");const h=n.length*8,y=await this.readReg(u),b=await this.readReg(f);let S=-2147483648,C;r>0&&(S|=268435456),h>0&&(S|=134217728),await g(h,r),await this.writeReg(u,S);let x=7<("00"+n.toString(16)).slice(-2)).join("")}async flashMd5sum(t,n){const r=this.timeoutPerMb(this.MD5_TIMEOUT_PER_MB,n);let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0));let o=await this.checkCommand("calculate md5sum",this.ESP_SPI_FLASH_MD5,a,void 0,r);return o instanceof Uint8Array&&o.length>16&&(o=o.slice(0,16)),this.toHex(o)}async readFlash(t,n,r=null){let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(4096)),a=this._appendArray(a,this._intToByteArray(1024));const o=await this.checkCommand("read flash",this.ESP_READ_FLASH,a);if(o!=0)throw new sa("Failed to read memory: "+o);let i=new Uint8Array(0);for(;i.length0&&(i=this._appendArray(i,s),await this.transport.write(this._intToByteArray(i.length)),r&&r(s,i.length,n));else throw new sa("Failed to read memory: "+s)}return i}async runStub(){if(this.syncStubDetected)return this.info("Stub is already running. No upload is necessary."),this.chip;this.info("Uploading stub...");let t=Cj(this.chip.ROM_TEXT),n=t.split("").map(function(s){return s.charCodeAt(0)});const r=new Uint8Array(n);t=Cj(this.chip.ROM_DATA),n=t.split("").map(function(s){return s.charCodeAt(0)});const a=new Uint8Array(n);let o=Math.floor((r.length+this.ESP_RAM_BLOCK-1)/this.ESP_RAM_BLOCK),i;for(await this.memBegin(r.length,o,this.ESP_RAM_BLOCK,this.chip.TEXT_START),i=0;i"u")throw new sa("Flash size "+t+" is not supported by this chip type. Supported sizes: "+this.chip.FLASH_SIZES);return this.chip.FLASH_SIZES[t]}_updateImageFlashParams(t,n,r,a,o){if(this.debug("_update_image_flash_params "+r+" "+a+" "+o),t.length<8||n!=this.chip.BOOTLOADER_FLASH_OFFSET)return t;if(r==="keep"&&a==="keep"&&o==="keep")return this.info("Not changing the image"),t;const i=parseInt(t[0]);let s=parseInt(t[2]);const c=parseInt(t[3]);if(i!==this.ESP_IMAGE_MAGIC)return this.info("Warning: Image file at 0x"+n.toString(16)+" doesn't look like an image file, so not changing any flash settings."),t;a!=="keep"&&(s={qio:0,qout:1,dio:2,dout:3}[a]);let u=c&15;o!=="keep"&&(u={"40m":0,"26m":1,"20m":2,"80m":15}[o]);let d=c&240;r!=="keep"&&(d=this.parseFlashSizeArg(r));const f=s<<8|u+d;return this.info("Flash params set to "+f.toString(16)),parseInt(t[2])!==s<<8&&(t=t.substring(0,2)+(s<<8).toString()+t.substring(3)),parseInt(t[3])!==u+d&&(t=t.substring(0,3)+(u+d).toString()+t.substring(4)),t}async writeFlash(t){if(this.debug("EspLoader program"),t.flashSize!=="keep"){const a=this.flashSizeBytes(t.flashSize);for(let o=0;oa)throw new sa(`File ${o+1} doesn't fit in the available flash`)}this.IS_STUB===!0&&t.eraseAll===!0&&await this.eraseFlash();let n,r;for(let a=0;a0&&(n+="ÿÿÿÿ".substring(4-o)),r=t.fileArray[a].address,this.debug("Image Length "+n.length),n.length===0){this.debug("Warning: File is empty");continue}n=this._updateImageFlashParams(n,r,t.flashSize,t.flashMode,t.flashFreq);let i=null;t.calculateMD5Hash&&(i=t.calculateMD5Hash(n),this.debug("Image MD5 "+i));const s=n.length;let c;if(t.compress){const b=this.bstrToUi8(n);n=this.ui8ToBstr(eze(b,{level:9})),c=await this.flashDeflBegin(s,n.length,r)}else c=await this.flashBegin(s,r);let u=0,d=0;const f=n.length;t.reportProgress&&t.reportProgress(a,0,f);let p=new Date;const g=p.getTime();let v=5e3;const m=new tze({chunkSize:1});let h=0;for(m.onData=function(b){h+=b.byteLength};n.length>0;){this.debug("Write loop "+r+" "+u+" "+c),this.info("Writing at 0x"+(r+h).toString(16)+"... ("+Math.floor(100*(u+1)/c)+"%)");const b=this.bstrToUi8(n.slice(0,this.FLASH_WRITE_SIZE));if(t.compress){const S=h;m.push(b,!1);const C=h-S;let x=3e3;this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)>3e3&&(x=this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)),this.IS_STUB===!1&&(v=x),await this.flashDeflBlock(b,u,v),this.IS_STUB&&(v=x)}else throw new sa("Yet to handle Non Compressed writes");d+=b.length,n=n.slice(this.FLASH_WRITE_SIZE,n.length),u++,t.reportProgress&&t.reportProgress(a,d,f)}this.IS_STUB&&await this.readReg(this.CHIP_DETECT_MAGIC_REG_ADDR,v),p=new Date;const y=p.getTime()-g;if(t.compress&&this.info("Wrote "+s+" bytes ("+d+" compressed) at 0x"+r.toString(16)+" in "+y/1e3+" seconds."),i){const b=await this.flashMd5sum(r,s);if(new String(b).valueOf()!=new String(i).valueOf())throw this.info("File md5: "+i),this.info("Flash md5: "+b),new sa("MD5 of file does not match data in flash!");this.info("Hash of data verified.")}}this.info("Leaving..."),this.IS_STUB&&(await this.flashBegin(0,0),t.compress?await this.flashDeflFinish():await this.flashFinish())}async flashId(){this.debug("flash_id");const t=await this.readFlashId();this.info("Manufacturer: "+(t&255).toString(16));const n=t>>16&255;this.info("Device: "+(t>>8&255).toString(16)+n.toString(16)),this.info("Detected flash size: "+this.DETECTED_FLASH_SIZES[n])}async getFlashSize(){this.debug("flash_id");const n=await this.readFlashId()>>16&255;return this.DETECTED_FLASH_SIZES_NUM[n]}async hardReset(){await this.transport.setRTS(!0),await this._sleep(100),await this.transport.setRTS(!1)}async softReset(){if(!this.IS_STUB)await this.flashBegin(0,0),await this.flashFinish(!1);else{if(this.chip.CHIP_NAME!="ESP8266")throw new sa("Soft resetting is currently only supported on ESP8266");await this.command(this.ESP_RUN_USER_CODE,void 0,void 0,!1)}}}const sze=()=>{const[e,t]=l.useState(0),n=["",".","..","...","....","....."];return l.useEffect(()=>{const r=setInterval(()=>{t(a=>(a+1)%n.length)},666);return()=>clearInterval(r)},[]),w.jsx(w.Fragment,{children:n[e]})},lze=()=>"serial"in navigator,th=new Tn(hn()),{Paragraph:Jr,Text:cze}=jn,{Step:uze}=K$,dze=()=>{const{t:e}=Ht(),t=Yr.language,n=l.useRef(null),[r,a]=l.useState(!1),[o,i]=l.useState(""),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[f,p]=l.useState(0),[g,v]=l.useState([w.jsx(w.Fragment,{}),w.jsx(w.Fragment,{}),w.jsx(w.Fragment,{}),w.jsx(w.Fragment,{})]),[m,h]=l.useState({progress:0,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",state:"",filename:"",flashName:"",port:null,originalFlash:null,patchedFlash:null,showStatus:!1,showProgress:!1,showDownload:!1,showFlash:!1,connected:!1,hostname:window.location.hostname,wifi_ssid:"",wifi_pass:"",proceed:!1,actionInProgress:!1,warningTextHostname:"",warningTextWifi:"",downloadLink:"",downloadLinkPatched:"",error:!1}),[y,b]=l.useState(!1),S=921600,C=115200;function x(q){const Q=new Uint8Array(q);let ae="";for(let se=0;se{b(lze())},[]),l.useEffect(()=>{if(window.location.protocol!=="https:"){a(!1);const q=async()=>{try{return await(await th.apiGetTeddyCloudSettingRaw("core.server.https_web_port")).text()}catch(se){console.error("Error fetching https port: ",se)}},Q=async()=>{try{return await(await th.apiGetTeddyCloudSettingRaw("core.server.http_port")).text()}catch(se){console.error("Error fetching http port: ",se)}};(async()=>{const se=await q()||"",de=await Q()||"",he=new URL(window.location.href);he.protocol="https:",he.port?he.port=he.port===de?se:he.port:he.port=se,i(he.toString())})()}else a(!0)},[]),l.useEffect(()=>{P(f,(()=>{switch(f){case 0:return F;case 1:return j;case 2:return B;case 3:return z;default:return w.jsx("div",{})}})())},[m,t]),l.useEffect(()=>{m.proceed&&Y()},[m.proceed]),l.useEffect(()=>{c(m.actionInProgress)},[m.actionInProgress]);const E=()=>{o&&(window.location.href=o)},I=async q=>{if(m.port)return console.log(m.port.getInfo),m.port;h(ae=>({...ae,showStatus:!0,showProgress:!1,progress:0,state:q||"Open serial port"}));let Q=null;try{Q=await navigator.serial.requestPort(),await Q.open({baudRate:115200}),await Q.close()}catch(ae){return ae==="NetworkError"?(h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"),error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"))):ae==="NotFoundError"?h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.noPortAvailable"),error:!0})):(h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+ae,error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+` ${ae}`)),null}return Q?(console.log("port done"),h(ae=>({...ae,port:Q})),Q):(h(ae=>({...ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.invalidSerialPort"),error:!0})),null)},R=async q=>{if(console.log("loadFlashFile"),!q.target.files)return;const Q=q.target.files[0];if(!Q)return;h(se=>({...se,state:"",chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",error:!1,actionInProgress:!0})),console.log("Read file '"+Q+"'");const ae=new FileReader;ae.onload=async se=>{var ye;console.log("Connecting to ESP32");const de=await I(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadMac"));if(de===null||m.connected){h(pe=>({...pe,actionInProgress:!1}));return}h(pe=>({...pe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${m.port}`,showFlash:!1,connected:!0}));let he=null;try{const pe=new Ah(de);he=new x2({transport:pe,baudrate:S,romBaudrate:C})}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),alert(pe),await de.close();return}try{h(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.retrievingMac"),actionInProgress:!0})),await he.main();let pe=await he.chip.readMac(he);h(Ee=>({...Ee,chipMac:pe})),console.log("Chip MAC: "+pe),await de.close();const J=(ye=se.target)==null?void 0:ye.result,ce=new Uint8Array(J),ue=`ESP32_${pe.replace(/:/g,"")}`,fe=new Blob([ce],{type:"application/octet-stream"}),be=URL.createObjectURL(fe);await _(ce,ue),se.target&&h(Ee=>{var Re;return{...Ee,patchedFlash:(Re=se.target)==null?void 0:Re.result,showFlash:!0,connected:!1,flashName:"from file",downloadLink:be}}),console.log("Done")}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(pe),alert(pe),await de.close();return}},ae.readAsArrayBuffer(Q),h(se=>({...se,actionInProgress:!1})),q.target.value=""},T=async()=>{let q=null,Q=null,ae="";Q=new Uint8Array(1024);const se=await I(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadFlash"));if(se===null||m.connected)return;h(pe=>({...pe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${se.getInfo()}`,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",showFlash:!1,connected:!0,actionInProgress:!0,error:!1}));try{const pe=new Ah(se);q=new x2({transport:pe,baudrate:S,romBaudrate:C})}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),alert(pe),await se.close();return}try{h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await q.main(),h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected")})),ae=await q.chip.readMac(q),h(ue=>({...ue,chipMac:ae})),console.log("Chip MAC: "+ae);const pe=await q.chip.getChipDescription(q);h(ue=>({...ue,chipType:pe}));let J=await q.readFlashId();h(ue=>({...ue,flashId:""+J,flashManuf:""+(J&255),flashDevice:""+(J>>8&255)}));let ce=await q.getFlashSize();if(h(ue=>({...ue,flashSize:""+ce})),ce<0||ce>16384){h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await se.close();return}h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFlash"),showProgress:!0,progress:0})),Q=await q.readFlash(0,ce*1024,(ue,fe,be)=>{const Ee=100*fe/be;h(Re=>({...Re,progress:Ee}))}),await se.close(),h(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFinished"),progress:100,originalFlash:Q,connected:!1}))}catch(pe){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${pe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(pe),alert(pe),await se.close();return}const de=`ESP32_${ae.replace(/:/g,"")}`,he=new Blob([Q],{type:"application/octet-stream"}),ye=URL.createObjectURL(he);h(pe=>({...pe,downloadLink:ye,showProgress:!1})),await _(Q,de),console.log("Done")},_=async(q,Q)=>{try{h(de=>({...de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploading"),error:!1}));const ae=new FormData;ae.append(Q,new Blob([q.buffer]),Q);const se=await th.apiPostTeddyCloudFormDataRaw("/api/uploadFirmware",ae);if(se.ok&&se.status===200){const de=await se.text();h(he=>({...he,showDownload:!0,filename:de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadSuccessful")+` ${de}`+e("tonieboxes.esp32BoxFlashing.esp32flasher.readyToProceed"),proceed:!0,actionInProgress:!1}))}else h(de=>({...de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}catch(ae){console.error("There was an error when uploading!",ae),h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}},$=async()=>{if(m.wifi_ssid&&!m.wifi_pass||!m.wifi_ssid&&m.wifi_pass){h(Q=>({...Q,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),showStatus:!0,warningTextWifi:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),error:!0}));return}h(Q=>({...Q,actionInProgress:!0})),h(Q=>({...Q,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage"),error:!1}));const q=await th.apiGetTeddyCloudApiRaw(`/api/patchFirmware?filename=${m.filename}&hostname=${m.hostname}`+(m.wifi_ssid&&m.wifi_pass?`&wifi_ssid=${m.wifi_ssid}&wifi_pass=${m.wifi_pass}`:""));if(h(Q=>({...Q,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage")})),q.ok&&q.status===200){const Q=await q.arrayBuffer();h(de=>({...de,patchedFlash:Q,showFlash:!0,flashName:"patched"}));const ae=new Blob([Q],{type:"application/octet-stream"}),se=URL.createObjectURL(ae);h(de=>({...de,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingSuccessful",{size:(Q.byteLength/1024/1024).toFixed(0)}),downloadLinkPatched:se})),Y()}else h(Q=>({...Q,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFailed"),error:!0}));h(Q=>({...Q,actionInProgress:!1}))},D=async()=>{const q=await I(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(q===null||m.connected)return;h(ae=>({...ae,actionInProgress:!0,error:!1})),h(ae=>({...ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${q.getInfo()}`,connected:!0}));let Q=null;try{const ae=new Ah(q);Q=new x2({transport:ae,baudrate:S,romBaudrate:C})}catch(ae){h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${ae}`,connected:!1,actionInProgress:!1,error:!0})),alert(ae),await q.close();return}try{h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await Q.main(),h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let ae=await Q.chip.readMac(Q);h(J=>({...J,chipMac:ae})),console.log("Chip MAC: "+ae);const se=await Q.chip.getChipDescription(Q);h(J=>({...J,chipType:se}));let de=await Q.readFlashId();h(J=>({...J,flashId:""+de,flashManuf:""+(de&255),flashDevice:""+(de>>8&255)}));let he=await Q.getFlashSize();if(h(J=>({...J,flashSize:""+he})),he<0||he>16384){h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await q.close();return}h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(m.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let ye=[];ye.push({data:x(m.patchedFlash),address:0});let pe={fileArray:ye,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(J,ce,ue)=>{const fe=100*ce/ue;h(be=>({...be,progress:fe}))}};h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(m.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await Q.writeFlash(pe),await q.close(),h(J=>({...J,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1,proceed:!0}))}catch(ae){h(se=>({...se,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${ae}`,connected:!1,actionInProgress:!1,error:!0})),console.error(ae),alert(ae),await q.close();return}},P=(q,Q)=>{v(ae=>{const se=[...ae];return se[q]=Q,se})},A=[{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}],O=w.jsx(w.Fragment,{children:m.showProgress&&w.jsx("div",{children:w.jsx("div",{children:w.jsx(h0,{percent:m.progress||0,format:q=>`${(q??0).toFixed(2)}%`})})})}),k=w.jsx(w.Fragment,{children:(m.chipType||m.chipMac)&&w.jsxs("div",{children:[w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.infoTable")}),w.jsx("table",{className:"info-table",children:w.jsxs("tbody",{children:[m.chipType&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipType")}),w.jsx("td",{children:m.chipType})]}),m.chipMac&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipMAC")}),w.jsx("td",{children:m.chipMac})]}),m.flashId&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashId")}),w.jsxs("td",{children:["0x",m.flashId.toString()]})]}),m.flashManuf&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashManuf")}),w.jsxs("td",{children:["0x",m.flashManuf.toString()]})]}),m.flashDevice&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashDevice")}),w.jsxs("td",{children:["0x",m.flashDevice.toString()]})]}),m.flashSize&&w.jsxs("tr",{children:[w.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSize")}),w.jsxs("td",{children:[m.flashSize," KiB"]})]})]})})]})}),N=q=>q.replace(/[^a-zA-Z0-9-.]/g,"").trim(),M=q=>{if(q.endsWith("...")){const Q=q.slice(0,-3);return w.jsxs("div",{style:{display:"flex"},children:[Q,w.jsx(sze,{})]})}return q},L=m.showStatus&&w.jsx("div",{className:"status",style:{marginBottom:16,color:m.error?"#CC3010":"unset"},children:w.jsx("i",{children:M(m.state)})}),F=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")}),!m.actionInProgress&&w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintReadESP32ImportFlash")}),L,w.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:R}),O]}),j=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")}),w.jsxs("div",{children:[!m.actionInProgress&&w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchFlash")}),L,!m.actionInProgress&&m.downloadLink?w.jsxs("div",{style:{marginBottom:16},children:[" ",w.jsx("a",{href:m.downloadLink,download:m.filename,title:m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})]}):"",w.jsxs(Yt,{children:[w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameSettings")}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchHost")}),w.jsxs(Yt.Item,{children:[w.jsxs(Ba,{align:"middle",style:{display:"flex",alignItems:"center"},children:[w.jsx($n,{style:{flex:"0 0 200px",color:m.warningTextHostname?"#CC3010":"unset"},children:w.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostname")})}),w.jsx($n,{style:{flex:"1 1 auto"},children:w.jsx(Jt,{type:"text",value:m.hostname,onChange:q=>{let Q=N(q.target.value),ae="";Q.length>12?ae=e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameToLong"):ae="",h(se=>({...se,hostname:Q,warningTextHostname:ae}))}})})]}),m.warningTextHostname&&w.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameToLong")})]}),w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSettings")}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchWifi")}),w.jsx(Yt.Item,{children:w.jsxs(Ba,{align:"middle",style:{display:"flex",alignItems:"center"},children:[w.jsx($n,{style:{flex:"0 0 200px",color:m.warningTextWifi?"#CC3010":"unset"},children:w.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSSID")})}),w.jsx($n,{style:{flex:"1 1 auto"},children:w.jsx(Jt,{type:"text",defaultValue:m.wifi_ssid,onChange:q=>{let Q=q.target.value;h(ae=>({...ae,wifi_ssid:Q,warningTextWifi:q.target.value&&m.wifi_pass||!q.target.value&&!m.wifi_pass?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]})}),w.jsxs(Yt.Item,{children:[w.jsxs(Ba,{align:"middle",style:{display:"flex",alignItems:"center"},children:[w.jsx($n,{style:{flex:"0 0 200px",color:m.warningTextWifi?"#CC3010":"unset"},children:w.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiPassword")})}),w.jsx($n,{style:{flex:"1 1 auto"},children:w.jsx(Jt.Password,{defaultValue:m.wifi_pass,onChange:q=>{let Q=q.target.value;h(ae=>({...ae,wifi_pass:Q,warningTextWifi:q.target.value&&m.wifi_ssid||!q.target.value&&!m.wifi_ssid?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]}),m.warningTextWifi&&w.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")})]})]})]}),O]}),B=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")}),!m.actionInProgress&&w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintFlashESP32")}),L,!m.actionInProgress&&m.downloadLinkPatched?w.jsxs("div",{style:{marginBottom:16},children:[" ",w.jsx("a",{href:m.downloadLinkPatched,download:"patched_"+m.filename,title:"patched_"+m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})]}):"",O]}),z=w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareFlashed")}),L,O,(m.downloadLink||m.downloadLinkPatched)&&w.jsxs(w.Fragment,{children:[w.jsx(Mr,{type:"info",style:{marginTop:16},showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates"),description:w.jsx("div",{children:w.jsxs(jn,{children:[w.jsxs(Jr,{children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHintP1")," ",w.jsx(cze,{code:!0,children:"docker exec -it bash"}),"."]}),w.jsx(Jr,{children:w.jsx("pre",{style:{fontSize:12},children:`# Please check the filename of your backup # Be sure you are in the teddycloud directory # cd /teddycloud/ # just for docker teddycloud --esp32-extract data/firmware/`+(m.filename?m.filename:"ESP32_.bin")+" --destination certs/client"})}),w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHintP2")}),w.jsx(Jr,{children:w.jsx("pre",{style:{fontSize:12},children:`mv certs/client/CLIENT.DER certs/client/client.der mv certs/client/PRIVATE.DER certs/client/private.der -mv certs/client/CA.DER certs/client/ca.der`})})]})})}),w.jsxs(Jr,{style:{marginTop:16},children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHint"),w.jsxs("ul",{style:{marginTop:8},children:[m.downloadLink&&w.jsx("li",{children:w.jsx("a",{href:m.downloadLink,download:m.filename,title:m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})}),m.downloadLinkPatched&&w.jsx("li",{children:w.jsx("a",{href:m.downloadLinkPatched,download:"patched_"+m.filename,title:"patched_"+m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})})]})]})]})]}),H=()=>{T()},U=()=>{n.current&&n.current.click()},X=()=>{$()},W=()=>{D()},Y=()=>{h(q=>({...q,proceed:!1})),p(f+1)},te=()=>{h(q=>({...q,state:"",showProgress:!1,error:!1})),p(f-1)},ee=()=>{d(!1),W()},Z=()=>{d(!1)},oe=w.jsx(Pt,{icon:w.jsx(xp,{}),disabled:s,onClick:()=>te(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previous")}),re=y?w.jsxs(w.Fragment,{children:[w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.title")}),w.jsx(Dp,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashModal"),open:u,okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.flash"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialog"),contentHint:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialogHint"),handleOk:ee,handleCancel:Z}),w.jsx(K$,{current:f,children:A.map((q,Q)=>w.jsx(uze,{title:q.title,status:Q===f&&Q===A.length-1?"finish":Q===f?m.error?"error":"process":QU(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.loadFile")}),w.jsx(Pt,{icon:w.jsx(V$,{}),disabled:s,type:"primary",onClick:()=>H(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.readFlash")})]}),w.jsx(Pt,{icon:w.jsx(Hs,{}),iconPosition:"end",disabled:!m.proceed&&!m.filename||s,onClick:()=>Y(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),f===1&&w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[oe,w.jsx("div",{style:{display:"flex",gap:8},children:w.jsx(Pt,{icon:w.jsx(pye,{}),disabled:s,type:"primary",onClick:()=>X(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchImage")})}),w.jsx(Pt,{icon:w.jsx(Hs,{}),iconPosition:"end",disabled:s||!m.showFlash,onClick:()=>Y(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),f===2&&w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[oe,w.jsx("div",{style:{display:"flex",gap:8},children:w.jsx(Pt,{icon:w.jsx(Z1e,{}),disabled:s,type:"primary",onClick:()=>d(!0),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashEsp32")})}),w.jsx("div",{})]}),f===3&&w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[oe,w.jsx("div",{}),w.jsx("div",{})]}),k]})]}):w.jsxs(w.Fragment,{children:[w.jsx(Jr,{children:w.jsx(Mr,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:e("tonieboxes.esp32BoxFlashing.browserNotSupported"),type:"warning",showIcon:!0})}),w.jsxs(Jr,{children:[e("tonieboxes.esp32BoxFlashing.hintWiki"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.linkWikiGeneral")})})})]}),w.jsxs(Jr,{children:[e("tonieboxes.esp32BoxFlashing.hintWiki2"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/esp32/",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.linkWikiSpecific")})})})]})]});return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.title")}),r?re:w.jsx(Mr,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:w.jsxs(w.Fragment,{children:[w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.hint")}),w.jsx(Jr,{children:w.jsx(Pt,{icon:w.jsx(HW,{}),onClick:E,children:e("tonieboxes.esp32BoxFlashing.redirect")})})]}),type:"warning",showIcon:!0})]})]})]})},{Paragraph:fze}=Ln,pze=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("home.tonieMeeting.navigationTitle")}]}),w.jsx(Xn,{children:w.jsx(fze,{children:w.jsx(ZO,{maxNoOfGuests:500,toniesSize:150,showQuestionMark:!1})})})]})]})},{Paragraph:xj}=Ln,gze=()=>{const{t:e}=Vt(),t=e("faq",{returnObjects:!0});return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.faq.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.faq.title")}),w.jsx(xj,{children:e("community.faq.intro")}),w.jsx(xj,{children:t.map((n,r)=>w.jsxs("div",{style:{marginBottom:"20px"},children:[w.jsx("h3",{children:n.question}),w.jsx("p",{children:n.answer})]},r))})]})]})]})},E2=new En(vn()),mze=()=>{const{t:e}=Vt(),[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState("");l.useEffect(()=>{E2.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(d=>d.text()).then(d=>n(d)).catch(d=>console.error("Error fetching data:",d)),E2.apiGetTeddyCloudSettingRaw("internal.version.id").then(d=>d.text()).then(d=>a(d)).catch(d=>console.error("Error fetching data:",d)),E2.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(d=>d.text()).then(d=>i(d)).catch(d=>console.error("Error fetching data:",d))},[]);const s=(d,f)=>w.jsx("ul",{children:Object.keys(d).map(p=>{const g=d[p],v=`${f}.${p}`;return typeof g=="object"&&g.items?w.jsxs("li",{children:[e(`${v}.title`),s(g.items,v+".items")]},p):w.jsx("li",{children:e(v)},p)})}),c=e("home.features.features",{returnObjects:!0}),u=e("home.features.futureFeatures",{returnObjects:!0});return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("home.features.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("home.features.title")+" "+r}),w.jsx("p",{children:e("home.features.description")}),w.jsxs("p",{children:["Build:"," ",w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/tree/"+o,target:"_blank",children:t.replace(r,"")})]}),w.jsx("h2",{children:e("home.features.currentlyImplementedFeatures")}),s(c,"home.features.features"),w.jsx("h2",{children:e("home.features.yetToCome")}),s(u,"home.features.futureFeatures")]})]})]})},{Paragraph:Ej}=Ln,hze=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.cc3235BoxFlashing.title")}),w.jsxs(Ej,{children:[e("tonieboxes.cc3235BoxFlashing.hint"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:"Patching your Toniebox for using with TeddyCloud"})})})]}),w.jsxs(Ej,{children:[e("tonieboxes.cc3235BoxFlashing.hint2"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/cc3235/",target:"_blank",children:"CC3235 specific setup"})})})]})]})]})]})},{Paragraph:Ij}=Ln,vze=()=>{const{t:e}=Vt();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx($n,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.cc3200BoxFlashing.title")}),w.jsxs(Ij,{children:[e("tonieboxes.cc3200BoxFlashing.hint"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.linkGeneral")})})})]}),w.jsxs(Ij,{children:[e("tonieboxes.cc3200BoxFlashing.hint2"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/cc3200/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.linkSpecific")})})})]})]})]})]})};function I2(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("theme");return t==="auto"?e?"dark":"light":t}function bze(){const{defaultAlgorithm:e,darkAlgorithm:t}=hi,n=u=>{const d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",u),document.body.style.backgroundColor=u},[r,a]=l.useState(()=>localStorage.getItem("theme")||"auto"),[o,i]=l.useState(I2()==="dark"),s=()=>{a(u=>u==="dark"?"light":u==="light"?"auto":"dark")};l.useEffect(()=>{localStorage.setItem("theme",r),i(I2()==="dark"),I2()==="dark"?n("#000000"):n("#f5f5f5")},[r]);let c;return r==="dark"?c=w.jsx(KSe,{onClick:s}):r==="light"?c=w.jsx(B1e,{onClick:s}):c=w.jsx(U0e,{onClick:s}),w.jsx(Ko,{theme:{algorithm:o?t:e,components:{Slider:{dotSize:3,handleSize:6,handleSizeHover:8,railSize:4},Popover:{titleMinWidth:0}}},children:w.jsx("div",{className:"App",children:w.jsx(gi,{style:{minHeight:"100vh"},children:w.jsx(iTe,{basename:"/web",children:w.jsxs(dTe,{children:[w.jsx(Q8e,{themeSwitch:c}),w.jsx(gi,{children:w.jsxs(JIe,{children:[w.jsx(Nn,{path:"/",element:w.jsx(A8e,{})}),w.jsx(Nn,{path:"/home/stats",element:w.jsx(z8e,{})}),w.jsx(Nn,{path:"/home/features",element:w.jsx(mze,{})}),w.jsx(Nn,{path:"/home/toniemeeting",element:w.jsx(pze,{})}),w.jsx(Nn,{path:"/tonies",element:w.jsx(iFe,{})}),w.jsx(Nn,{path:"/tonies/system-sounds",element:w.jsx(cFe,{})}),w.jsx(Nn,{path:"/tonies/content",element:w.jsx(dFe,{})}),w.jsx(Nn,{path:"/tonies/library",element:w.jsx(fFe,{})}),w.jsx(Nn,{path:"/tonies/encoder",element:w.jsx(eje,{})}),w.jsx(Nn,{path:"/tonies/tap",element:w.jsx(nje,{})}),w.jsx(Nn,{path:"/tonieboxes",element:w.jsx(uje,{})}),w.jsx(Nn,{path:"/tonieboxes/esp32boxflashing",element:w.jsx(dze,{})}),w.jsx(Nn,{path:"/tonieboxes/cc3200boxflashing",element:w.jsx(vze,{})}),w.jsx(Nn,{path:"/tonieboxes/cc3235boxflashing",element:w.jsx(hze,{})}),w.jsx(Nn,{path:"/settings",element:w.jsx(KNe,{})}),w.jsx(Nn,{path:"/settings/certificates",element:w.jsx(b8e,{})}),w.jsx(Nn,{path:"/settings/rtnl",element:w.jsx(v8e,{})}),w.jsx(Nn,{path:"/community",element:w.jsx(dje,{})}),w.jsx(Nn,{path:"/community/faq",element:w.jsx(gze,{})}),w.jsx(Nn,{path:"/community/contribution",element:w.jsx(fje,{})}),w.jsx(Nn,{path:"/community/contribution/tonies-json",element:w.jsx(mje,{})}),w.jsx(Nn,{path:"/community/contributors",element:w.jsx(hje,{})}),w.jsx(Nn,{path:"/community/changelog",element:w.jsx(vje,{})}),w.jsx(Nn,{path:"/uitest",element:w.jsx(pTe,{})}),w.jsx(Nn,{path:"/*",element:w.jsx(j8e,{})})]})}),w.jsx(rFe,{})]})})})})})}const yze=T2.createRoot(document.getElementById("root"));yze.render(w.jsx(le.StrictMode,{children:w.jsx(bze,{})}))});export default Sze(); +mv certs/client/CA.DER certs/client/ca.der`})})]})})}),w.jsxs(Jr,{style:{marginTop:16},children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHint"),w.jsxs("ul",{style:{marginTop:8},children:[m.downloadLink&&w.jsx("li",{children:w.jsx("a",{href:m.downloadLink,download:m.filename,title:m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})}),m.downloadLinkPatched&&w.jsx("li",{children:w.jsx("a",{href:m.downloadLinkPatched,download:"patched_"+m.filename,title:"patched_"+m.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})})]})]})]})]}),H=()=>{T()},U=()=>{n.current&&n.current.click()},X=()=>{$()},W=()=>{D()},Y=()=>{h(q=>({...q,proceed:!1})),p(f+1)},te=()=>{h(q=>({...q,state:"",showProgress:!1,error:!1})),p(f-1)},ee=()=>{d(!1),W()},Z=()=>{d(!1)},oe=w.jsx(Dt,{icon:w.jsx(xp,{}),disabled:s,onClick:()=>te(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previous")}),re=y?w.jsxs(w.Fragment,{children:[w.jsx(Ca,{children:e("tonieboxes.esp32BoxFlashing.title")}),w.jsx(Dp,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashModal"),open:u,okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.flash"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialog"),contentHint:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialogHint"),handleOk:ee,handleCancel:Z}),w.jsx(K$,{current:f,children:A.map((q,Q)=>w.jsx(uze,{title:q.title,status:Q===f&&Q===A.length-1?"finish":Q===f?m.error?"error":"process":QU(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.loadFile")}),w.jsx(Dt,{icon:w.jsx(V$,{}),disabled:s,type:"primary",onClick:()=>H(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.readFlash")})]}),w.jsx(Dt,{icon:w.jsx(Hs,{}),iconPosition:"end",disabled:!m.proceed&&!m.filename||s,onClick:()=>Y(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),f===1&&w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[oe,w.jsx("div",{style:{display:"flex",gap:8},children:w.jsx(Dt,{icon:w.jsx(pye,{}),disabled:s,type:"primary",onClick:()=>X(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchImage")})}),w.jsx(Dt,{icon:w.jsx(Hs,{}),iconPosition:"end",disabled:s||!m.showFlash,onClick:()=>Y(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),f===2&&w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[oe,w.jsx("div",{style:{display:"flex",gap:8},children:w.jsx(Dt,{icon:w.jsx(Z1e,{}),disabled:s,type:"primary",onClick:()=>d(!0),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashEsp32")})}),w.jsx("div",{})]}),f===3&&w.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[oe,w.jsx("div",{}),w.jsx("div",{})]}),k]})]}):w.jsxs(w.Fragment,{children:[w.jsx(Jr,{children:w.jsx(Mr,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:e("tonieboxes.esp32BoxFlashing.browserNotSupported"),type:"warning",showIcon:!0})}),w.jsxs(Jr,{children:[e("tonieboxes.esp32BoxFlashing.hintWiki"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.linkWikiGeneral")})})})]}),w.jsxs(Jr,{children:[e("tonieboxes.esp32BoxFlashing.hintWiki2"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/esp32/",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.linkWikiSpecific")})})})]})]});return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.title")}),r?re:w.jsx(Mr,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:w.jsxs(w.Fragment,{children:[w.jsx(Jr,{children:e("tonieboxes.esp32BoxFlashing.hint")}),w.jsx(Jr,{children:w.jsx(Dt,{icon:w.jsx(HW,{}),onClick:E,children:e("tonieboxes.esp32BoxFlashing.redirect")})})]}),type:"warning",showIcon:!0})]})]})]})},{Paragraph:fze}=jn,pze=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("home.tonieMeeting.navigationTitle")}]}),w.jsx(Xn,{children:w.jsx(fze,{children:w.jsx(ZO,{maxNoOfGuests:500,toniesSize:150,showQuestionMark:!1})})})]})]})},{Paragraph:xj}=jn,gze=()=>{const{t:e}=Ht(),t=e("faq",{returnObjects:!0});return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(So,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(So,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.faq.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("community.faq.title")}),w.jsx(xj,{children:e("community.faq.intro")}),w.jsx(xj,{children:t.map((n,r)=>w.jsxs("div",{style:{marginBottom:"20px"},children:[w.jsx("h3",{children:n.question}),w.jsx("p",{children:n.answer})]},r))})]})]})]})},E2=new Tn(hn()),mze=()=>{const{t:e}=Ht(),[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState("");l.useEffect(()=>{E2.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(d=>d.text()).then(d=>n(d)).catch(d=>console.error("Error fetching data:",d)),E2.apiGetTeddyCloudSettingRaw("internal.version.id").then(d=>d.text()).then(d=>a(d)).catch(d=>console.error("Error fetching data:",d)),E2.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(d=>d.text()).then(d=>i(d)).catch(d=>console.error("Error fetching data:",d))},[]);const s=(d,f)=>w.jsx("ul",{children:Object.keys(d).map(p=>{const g=d[p],v=`${f}.${p}`;return typeof g=="object"&&g.items?w.jsxs("li",{children:[e(`${v}.title`),s(g.items,v+".items")]},p):w.jsx("li",{children:e(v)},p)})}),c=e("home.features.features",{returnObjects:!0}),u=e("home.features.futureFeatures",{returnObjects:!0});return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(qs,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(qs,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("home.features.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("home.features.title")+" "+r}),w.jsx("p",{children:e("home.features.description")}),w.jsxs("p",{children:["Build:"," ",w.jsx(At,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/tree/"+o,target:"_blank",children:t.replace(r,"")})]}),w.jsx("h2",{children:e("home.features.currentlyImplementedFeatures")}),s(c,"home.features.features"),w.jsx("h2",{children:e("home.features.yetToCome")}),s(u,"home.features.futureFeatures")]})]})]})},{Paragraph:Ej}=jn,hze=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.cc3235BoxFlashing.title")}),w.jsxs(Ej,{children:[e("tonieboxes.cc3235BoxFlashing.hint"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:"Patching your Toniebox for using with TeddyCloud"})})})]}),w.jsxs(Ej,{children:[e("tonieboxes.cc3235BoxFlashing.hint2"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/cc3235/",target:"_blank",children:"CC3235 specific setup"})})})]})]})]})]})},{Paragraph:Ij}=jn,vze=()=>{const{t:e}=Ht();return w.jsxs(w.Fragment,{children:[w.jsx(er,{children:w.jsx(Ks,{})}),w.jsxs(tr,{children:[w.jsx(Nn,{children:w.jsx(Ks,{})}),w.jsx(nr,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}]}),w.jsxs(Xn,{children:[w.jsx("h1",{children:e("tonieboxes.cc3200BoxFlashing.title")}),w.jsxs(Ij,{children:[e("tonieboxes.cc3200BoxFlashing.hint"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.linkGeneral")})})})]}),w.jsxs(Ij,{children:[e("tonieboxes.cc3200BoxFlashing.hint2"),w.jsx("ul",{children:w.jsx("li",{children:w.jsx(At,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/cc3200/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.linkSpecific")})})})]})]})]})]})};function I2(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("theme");return t==="auto"?e?"dark":"light":t}function bze(){const{defaultAlgorithm:e,darkAlgorithm:t}=vi,n=u=>{const d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",u),document.body.style.backgroundColor=u},[r,a]=l.useState(()=>localStorage.getItem("theme")||"auto"),[o,i]=l.useState(I2()==="dark"),s=()=>{a(u=>u==="dark"?"light":u==="light"?"auto":"dark")};l.useEffect(()=>{localStorage.setItem("theme",r),i(I2()==="dark"),I2()==="dark"?n("#000000"):n("#f5f5f5")},[r]);let c;return r==="dark"?c=w.jsx(KSe,{onClick:s}):r==="light"?c=w.jsx(B1e,{onClick:s}):c=w.jsx(U0e,{onClick:s}),w.jsx(Ko,{theme:{algorithm:o?t:e,components:{Slider:{dotSize:3,handleSize:6,handleSizeHover:8,railSize:4},Popover:{titleMinWidth:0}}},children:w.jsx("div",{className:"App",children:w.jsx(mi,{style:{minHeight:"100vh"},children:w.jsx(iTe,{basename:"/web",children:w.jsxs(dTe,{children:[w.jsx(Q8e,{themeSwitch:c}),w.jsx(mi,{children:w.jsxs(JIe,{children:[w.jsx(An,{path:"/",element:w.jsx(A8e,{})}),w.jsx(An,{path:"/home/stats",element:w.jsx(z8e,{})}),w.jsx(An,{path:"/home/features",element:w.jsx(mze,{})}),w.jsx(An,{path:"/home/toniemeeting",element:w.jsx(pze,{})}),w.jsx(An,{path:"/tonies",element:w.jsx(iFe,{})}),w.jsx(An,{path:"/tonies/system-sounds",element:w.jsx(cFe,{})}),w.jsx(An,{path:"/tonies/content",element:w.jsx(dFe,{})}),w.jsx(An,{path:"/tonies/library",element:w.jsx(fFe,{})}),w.jsx(An,{path:"/tonies/encoder",element:w.jsx(eje,{})}),w.jsx(An,{path:"/tonies/tap",element:w.jsx(nje,{})}),w.jsx(An,{path:"/tonieboxes",element:w.jsx(uje,{})}),w.jsx(An,{path:"/tonieboxes/esp32boxflashing",element:w.jsx(dze,{})}),w.jsx(An,{path:"/tonieboxes/cc3200boxflashing",element:w.jsx(vze,{})}),w.jsx(An,{path:"/tonieboxes/cc3235boxflashing",element:w.jsx(hze,{})}),w.jsx(An,{path:"/settings",element:w.jsx(KNe,{})}),w.jsx(An,{path:"/settings/certificates",element:w.jsx(b8e,{})}),w.jsx(An,{path:"/settings/rtnl",element:w.jsx(v8e,{})}),w.jsx(An,{path:"/community",element:w.jsx(dje,{})}),w.jsx(An,{path:"/community/faq",element:w.jsx(gze,{})}),w.jsx(An,{path:"/community/contribution",element:w.jsx(fje,{})}),w.jsx(An,{path:"/community/contribution/tonies-json",element:w.jsx(mje,{})}),w.jsx(An,{path:"/community/contributors",element:w.jsx(hje,{})}),w.jsx(An,{path:"/community/changelog",element:w.jsx(vje,{})}),w.jsx(An,{path:"/uitest",element:w.jsx(pTe,{})}),w.jsx(An,{path:"/*",element:w.jsx(j8e,{})})]})}),w.jsx(rFe,{})]})})})})})}const yze=T2.createRoot(document.getElementById("root"));yze.render(w.jsx(le.StrictMode,{children:w.jsx(bze,{})}))});export default Sze(); diff --git a/contrib/data/www/web/index.html b/contrib/data/www/web/index.html index 74a24923..54ac2472 100644 --- a/contrib/data/www/web/index.html +++ b/contrib/data/www/web/index.html @@ -12,7 +12,7 @@ --> TeddyCloud - + diff --git a/teddycloud_web b/teddycloud_web index a40b9903..9942349f 160000 --- a/teddycloud_web +++ b/teddycloud_web @@ -1 +1 @@ -Subproject commit a40b9903dae2c0ffee20958ae86ba375c4ae27a3 +Subproject commit 9942349fe5c1d01b75cd2663c86161d1861978c5