mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-18 05:08:02 +00:00
1155 lines
4.6 MiB
1155 lines
4.6 MiB
var lBe=Object.defineProperty;var SJ=e=>{throw TypeError(e)};var cBe=(e,t,n)=>t in e?lBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ni=(e,t,n)=>cBe(e,typeof t!="symbol"?t+"":t,n),y3=(e,t,n)=>t.has(e)||SJ("Cannot "+n);var ke=(e,t,n)=>(y3(e,t,"read from private field"),n?n.call(e):t.get(e)),$n=(e,t,n)=>t.has(e)?SJ("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hn=(e,t,n,r)=>(y3(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Nn=(e,t,n)=>(y3(e,t,"access private method"),n);var vg=(e,t,n,r)=>({set _(i){hn(e,t,i,n)},get _(){return ke(e,t,r)}});function jP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var v_e={exports:{}},HP={},__e={exports:{}},zr={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Jw=Symbol.for("react.element"),uBe=Symbol.for("react.portal"),dBe=Symbol.for("react.fragment"),fBe=Symbol.for("react.strict_mode"),pBe=Symbol.for("react.profiler"),mBe=Symbol.for("react.provider"),hBe=Symbol.for("react.context"),gBe=Symbol.for("react.forward_ref"),vBe=Symbol.for("react.suspense"),_Be=Symbol.for("react.memo"),yBe=Symbol.for("react.lazy"),EJ=Symbol.iterator;function bBe(e){return e===null||typeof e!="object"?null:(e=EJ&&e[EJ]||e["@@iterator"],typeof e=="function"?e:null)}var y_e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b_e=Object.assign,S_e={};function V0(e,t,n){this.props=e,this.context=t,this.refs=S_e,this.updater=n||y_e}V0.prototype.isReactComponent={};V0.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};V0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function E_e(){}E_e.prototype=V0.prototype;function vG(e,t,n){this.props=e,this.context=t,this.refs=S_e,this.updater=n||y_e}var _G=vG.prototype=new E_e;_G.constructor=vG;b_e(_G,V0.prototype);_G.isPureReactComponent=!0;var CJ=Array.isArray,C_e=Object.prototype.hasOwnProperty,yG={current:null},w_e={key:!0,ref:!0,__self:!0,__source:!0};function x_e(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)C_e.call(t,r)&&!w_e.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Jw,type:e,key:o,ref:a,props:i,_owner:yG.current}}function SBe(e,t){return{$$typeof:Jw,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bG(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jw}function EBe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wJ=/\/+/g;function b3(e,t){return typeof e=="object"&&e!==null&&e.key!=null?EBe(""+e.key):t.toString(36)}function hI(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Jw:case uBe:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+b3(a,0):r,CJ(i)?(n="",e!=null&&(n=e.replace(wJ,"$&/")+"/"),hI(i,t,n,"",function(c){return c})):i!=null&&(bG(i)&&(i=SBe(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(wJ,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",CJ(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+b3(o,s);a+=hI(o,t,n,l,i)}else if(l=bBe(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+b3(o,s++),a+=hI(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function vR(e,t,n){if(e==null)return e;var r=[],i=0;return hI(e,r,"","",function(o){return t.call(n,o,i++)}),r}function CBe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Hs={current:null},gI={transition:null},wBe={ReactCurrentDispatcher:Hs,ReactCurrentBatchConfig:gI,ReactCurrentOwner:yG};function T_e(){throw Error("act(...) is not supported in production builds of React.")}zr.Children={map:vR,forEach:function(e,t,n){vR(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vR(e,function(){t++}),t},toArray:function(e){return vR(e,function(t){return t})||[]},only:function(e){if(!bG(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};zr.Component=V0;zr.Fragment=dBe;zr.Profiler=pBe;zr.PureComponent=vG;zr.StrictMode=fBe;zr.Suspense=vBe;zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wBe;zr.act=T_e;zr.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=b_e({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=yG.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)C_e.call(t,l)&&!w_e.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Jw,type:e.type,key:i,ref:o,props:r,_owner:a}};zr.createContext=function(e){return e={$$typeof:hBe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mBe,_context:e},e.Consumer=e};zr.createElement=x_e;zr.createFactory=function(e){var t=x_e.bind(null,e);return t.type=e,t};zr.createRef=function(){return{current:null}};zr.forwardRef=function(e){return{$$typeof:gBe,render:e}};zr.isValidElement=bG;zr.lazy=function(e){return{$$typeof:yBe,_payload:{_status:-1,_result:e},_init:CBe}};zr.memo=function(e,t){return{$$typeof:_Be,type:e,compare:t===void 0?null:t}};zr.startTransition=function(e){var t=gI.transition;gI.transition={};try{e()}finally{gI.transition=t}};zr.unstable_act=T_e;zr.useCallback=function(e,t){return Hs.current.useCallback(e,t)};zr.useContext=function(e){return Hs.current.useContext(e)};zr.useDebugValue=function(){};zr.useDeferredValue=function(e){return Hs.current.useDeferredValue(e)};zr.useEffect=function(e,t){return Hs.current.useEffect(e,t)};zr.useId=function(){return Hs.current.useId()};zr.useImperativeHandle=function(e,t,n){return Hs.current.useImperativeHandle(e,t,n)};zr.useInsertionEffect=function(e,t){return Hs.current.useInsertionEffect(e,t)};zr.useLayoutEffect=function(e,t){return Hs.current.useLayoutEffect(e,t)};zr.useMemo=function(e,t){return Hs.current.useMemo(e,t)};zr.useReducer=function(e,t,n){return Hs.current.useReducer(e,t,n)};zr.useRef=function(e){return Hs.current.useRef(e)};zr.useState=function(e){return Hs.current.useState(e)};zr.useSyncExternalStore=function(e,t,n){return Hs.current.useSyncExternalStore(e,t,n)};zr.useTransition=function(){return Hs.current.useTransition()};zr.version="18.3.1";__e.exports=zr;var m=__e.exports;const de=yi(m),ex=jP({__proto__:null,default:de},[m]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var xBe=m,TBe=Symbol.for("react.element"),RBe=Symbol.for("react.fragment"),OBe=Object.prototype.hasOwnProperty,IBe=xBe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,NBe={key:!0,ref:!0,__self:!0,__source:!0};function R_e(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)OBe.call(t,r)&&!NBe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:TBe,type:e,key:o,ref:a,props:i,_owner:IBe.current}}HP.Fragment=RBe;HP.jsx=R_e;HP.jsxs=R_e;v_e.exports=HP;var M=v_e.exports,IU={},O_e={exports:{}},ac={},I_e={exports:{}},N_e={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(U,G){var V=U.length;U.push(G);e:for(;0<V;){var W=V-1>>>1,$=U[W];if(0<i($,G))U[W]=G,U[V]=$,V=W;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var G=U[0],V=U.pop();if(V!==G){U[0]=V;e:for(var W=0,$=U.length,H=$>>>1;W<H;){var K=2*(W+1)-1,re=U[K],Q=K+1,A=U[Q];if(0>i(re,V))Q<$&&0>i(A,re)?(U[W]=A,U[Q]=V,W=Q):(U[W]=re,U[K]=V,W=K);else if(Q<$&&0>i(A,V))U[W]=A,U[Q]=V,W=Q;else break e}}return G}function i(U,G){var V=U.sortIndex-G.sortIndex;return V!==0?V:U.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(U){for(var G=n(c);G!==null;){if(G.callback===null)r(c);else if(G.startTime<=U)r(c),G.sortIndex=G.expirationTime,t(l,G);else break;G=n(c)}}function S(U){if(g=!1,b(U),!h)if(n(l)!==null)h=!0,L(C);else{var G=n(c);G!==null&&B(S,G.startTime-U)}}function C(U,G){h=!1,g&&(g=!1,y(x),x=-1),p=!0;var V=f;try{for(b(G),d=n(l);d!==null&&(!(d.expirationTime>G)||U&&!N());){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var $=W(d.expirationTime<=G);G=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),b(G)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var K=n(c);K!==null&&B(S,K.startTime-G),H=!1}return H}finally{d=null,f=V,p=!1}}var E=!1,w=null,x=-1,T=5,R=-1;function N(){return!(e.unstable_now()-R<T)}function I(){if(w!==null){var U=e.unstable_now();R=U;var G=!0;try{G=w(!0,U)}finally{G?P():(E=!1,w=null)}}else E=!1}var P;if(typeof _=="function")P=function(){_(I)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,F=D.port2;D.port1.onmessage=I,P=function(){F.postMessage(null)}}else P=function(){v(I,0)};function L(U){w=U,E||(E=!0,P())}function B(U,G){x=v(function(){U(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,L(C))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(U){switch(f){case 1:case 2:case 3:var G=3;break;default:G=f}var V=f;f=G;try{return U()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var V=f;f=U;try{return G()}finally{f=V}},e.unstable_scheduleCallback=function(U,G,V){var W=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?W+V:W):V=W,U){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=V+$,U={id:u++,callback:G,priorityLevel:U,startTime:V,expirationTime:$,sortIndex:-1},V>W?(U.sortIndex=V,t(c,U),n(l)===null&&U===n(c)&&(g?(y(x),x=-1):g=!0,B(S,V-W))):(U.sortIndex=$,t(l,U),h||p||(h=!0,L(C))),U},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(U){var G=f;return function(){var V=f;f=G;try{return U.apply(this,arguments)}finally{f=V}}}})(N_e);I_e.exports=N_e;var MBe=I_e.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ABe=m,Zl=MBe;function un(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var M_e=new Set,g1={};function g_(e,t){zb(e,t),zb(e+"Capture",t)}function zb(e,t){for(g1[e]=t,e=0;e<t.length;e++)M_e.add(t[e])}var fp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),NU=Object.prototype.hasOwnProperty,PBe=/^[: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]*$/,xJ={},TJ={};function DBe(e){return NU.call(TJ,e)?!0:NU.call(xJ,e)?!1:PBe.test(e)?TJ[e]=!0:(xJ[e]=!0,!1)}function kBe(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 LBe(e,t,n,r){if(t===null||typeof t>"u"||kBe(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 zs(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var qa={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qa[e]=new zs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qa[t]=new zs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qa[e]=new zs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qa[e]=new zs(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){qa[e]=new zs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qa[e]=new zs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qa[e]=new zs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qa[e]=new zs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qa[e]=new zs(e,5,!1,e.toLowerCase(),null,!1,!1)});var SG=/[\-:]([a-z])/g;function EG(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(SG,EG);qa[t]=new zs(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(SG,EG);qa[t]=new zs(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(SG,EG);qa[t]=new zs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qa[e]=new zs(e,1,!1,e.toLowerCase(),null,!1,!1)});qa.xlinkHref=new zs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qa[e]=new zs(e,1,!1,e.toLowerCase(),null,!0,!0)});function CG(e,t,n,r){var i=qa.hasOwnProperty(t)?qa[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(LBe(t,n,i,r)&&(n=null),r||i===null?DBe(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rp=ABe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_R=Symbol.for("react.element"),Uy=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),wG=Symbol.for("react.strict_mode"),MU=Symbol.for("react.profiler"),A_e=Symbol.for("react.provider"),P_e=Symbol.for("react.context"),xG=Symbol.for("react.forward_ref"),AU=Symbol.for("react.suspense"),PU=Symbol.for("react.suspense_list"),TG=Symbol.for("react.memo"),Im=Symbol.for("react.lazy"),D_e=Symbol.for("react.offscreen"),RJ=Symbol.iterator;function aE(e){return e===null||typeof e!="object"?null:(e=RJ&&e[RJ]||e["@@iterator"],typeof e=="function"?e:null)}var vo=Object.assign,S3;function rC(e){if(S3===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);S3=t&&t[1]||""}return`
|
||
`+S3+e}var E3=!1;function C3(e,t){if(!e||E3)return"";E3=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{E3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rC(e):""}function $Be(e){switch(e.tag){case 5:return rC(e.type);case 16:return rC("Lazy");case 13:return rC("Suspense");case 19:return rC("SuspenseList");case 0:case 2:case 15:return e=C3(e.type,!1),e;case 11:return e=C3(e.type.render,!1),e;case 1:return e=C3(e.type,!0),e;default:return""}}function DU(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 jy:return"Fragment";case Uy:return"Portal";case MU:return"Profiler";case wG:return"StrictMode";case AU:return"Suspense";case PU:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case P_e:return(e.displayName||"Context")+".Consumer";case A_e:return(e._context.displayName||"Context")+".Provider";case xG:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TG:return t=e.displayName||null,t!==null?t:DU(e.type)||"Memo";case Im:t=e._payload,e=e._init;try{return DU(e(t))}catch{}}return null}function FBe(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 DU(t);case 8:return t===wG?"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 bh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function k_e(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function BBe(e){var t=k_e(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yR(e){e._valueTracker||(e._valueTracker=BBe(e))}function L_e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=k_e(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function XN(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 kU(e,t){var n=t.checked;return vo({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function OJ(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bh(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 $_e(e,t){t=t.checked,t!=null&&CG(e,"checked",t,!1)}function LU(e,t){$_e(e,t);var n=bh(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")?$U(e,t.type,n):t.hasOwnProperty("defaultValue")&&$U(e,t.type,bh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function IJ(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 $U(e,t,n){(t!=="number"||XN(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var iC=Array.isArray;function ub(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bh(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function FU(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(un(91));return vo({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function NJ(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(un(92));if(iC(n)){if(1<n.length)throw Error(un(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bh(n)}}function F_e(e,t){var n=bh(t.value),r=bh(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function MJ(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function B_e(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function BU(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?B_e(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bR,U_e=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bR=bR||document.createElement("div"),bR.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function v1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var RC={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},UBe=["Webkit","ms","Moz","O"];Object.keys(RC).forEach(function(e){UBe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),RC[t]=RC[e]})});function j_e(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||RC.hasOwnProperty(e)&&RC[e]?(""+t).trim():t+"px"}function H_e(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=j_e(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jBe=vo({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 UU(e,t){if(t){if(jBe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(un(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(un(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(un(61))}if(t.style!=null&&typeof t.style!="object")throw Error(un(62))}}function jU(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 HU=null;function RG(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zU=null,db=null,fb=null;function AJ(e){if(e=rx(e)){if(typeof zU!="function")throw Error(un(280));var t=e.stateNode;t&&(t=YP(t),zU(e.stateNode,e.type,t))}}function z_e(e){db?fb?fb.push(e):fb=[e]:db=e}function V_e(){if(db){var e=db,t=fb;if(fb=db=null,AJ(e),t)for(e=0;e<t.length;e++)AJ(t[e])}}function G_e(e,t){return e(t)}function W_e(){}var w3=!1;function Y_e(e,t,n){if(w3)return e(t,n);w3=!0;try{return G_e(e,t,n)}finally{w3=!1,(db!==null||fb!==null)&&(W_e(),V_e())}}function _1(e,t){var n=e.stateNode;if(n===null)return null;var r=YP(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(un(231,t,typeof n));return n}var VU=!1;if(fp)try{var sE={};Object.defineProperty(sE,"passive",{get:function(){VU=!0}}),window.addEventListener("test",sE,sE),window.removeEventListener("test",sE,sE)}catch{VU=!1}function HBe(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var OC=!1,ZN=null,JN=!1,GU=null,zBe={onError:function(e){OC=!0,ZN=e}};function VBe(e,t,n,r,i,o,a,s,l){OC=!1,ZN=null,HBe.apply(zBe,arguments)}function GBe(e,t,n,r,i,o,a,s,l){if(VBe.apply(this,arguments),OC){if(OC){var c=ZN;OC=!1,ZN=null}else throw Error(un(198));JN||(JN=!0,GU=c)}}function v_(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function q_e(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function PJ(e){if(v_(e)!==e)throw Error(un(188))}function WBe(e){var t=e.alternate;if(!t){if(t=v_(e),t===null)throw Error(un(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return PJ(i),e;if(o===r)return PJ(i),t;o=o.sibling}throw Error(un(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(un(189))}}if(n.alternate!==r)throw Error(un(190))}if(n.tag!==3)throw Error(un(188));return n.stateNode.current===n?e:t}function K_e(e){return e=WBe(e),e!==null?Q_e(e):null}function Q_e(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Q_e(e);if(t!==null)return t;e=e.sibling}return null}var X_e=Zl.unstable_scheduleCallback,DJ=Zl.unstable_cancelCallback,YBe=Zl.unstable_shouldYield,qBe=Zl.unstable_requestPaint,Ho=Zl.unstable_now,KBe=Zl.unstable_getCurrentPriorityLevel,OG=Zl.unstable_ImmediatePriority,Z_e=Zl.unstable_UserBlockingPriority,eM=Zl.unstable_NormalPriority,QBe=Zl.unstable_LowPriority,J_e=Zl.unstable_IdlePriority,zP=null,qd=null;function XBe(e){if(qd&&typeof qd.onCommitFiberRoot=="function")try{qd.onCommitFiberRoot(zP,e,void 0,(e.current.flags&128)===128)}catch{}}var Hu=Math.clz32?Math.clz32:e6e,ZBe=Math.log,JBe=Math.LN2;function e6e(e){return e>>>=0,e===0?32:31-(ZBe(e)/JBe|0)|0}var SR=64,ER=4194304;function oC(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 tM(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=oC(s):(o&=a,o!==0&&(r=oC(o)))}else a=n&~i,a!==0?r=oC(a):o!==0&&(r=oC(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Hu(t),i=1<<n,r|=e[n],t&=~i;return r}function t6e(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function n6e(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Hu(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=t6e(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function WU(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function eye(){var e=SR;return SR<<=1,!(SR&4194240)&&(SR=64),e}function x3(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tx(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Hu(t),e[t]=n}function r6e(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<n;){var i=31-Hu(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function IG(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Hu(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bi=0;function tye(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nye,NG,rye,iye,oye,YU=!1,CR=[],ih=null,oh=null,ah=null,y1=new Map,b1=new Map,km=[],i6e="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function kJ(e,t){switch(e){case"focusin":case"focusout":ih=null;break;case"dragenter":case"dragleave":oh=null;break;case"mouseover":case"mouseout":ah=null;break;case"pointerover":case"pointerout":y1.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":b1.delete(t.pointerId)}}function lE(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=rx(t),t!==null&&NG(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function o6e(e,t,n,r,i){switch(t){case"focusin":return ih=lE(ih,e,t,n,r,i),!0;case"dragenter":return oh=lE(oh,e,t,n,r,i),!0;case"mouseover":return ah=lE(ah,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return y1.set(o,lE(y1.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,b1.set(o,lE(b1.get(o)||null,e,t,n,r,i)),!0}return!1}function aye(e){var t=qg(e.target);if(t!==null){var n=v_(t);if(n!==null){if(t=n.tag,t===13){if(t=q_e(n),t!==null){e.blockedOn=t,oye(e.priority,function(){rye(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vI(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qU(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);HU=r,n.target.dispatchEvent(r),HU=null}else return t=rx(n),t!==null&&NG(t),e.blockedOn=n,!1;t.shift()}return!0}function LJ(e,t,n){vI(e)&&n.delete(t)}function a6e(){YU=!1,ih!==null&&vI(ih)&&(ih=null),oh!==null&&vI(oh)&&(oh=null),ah!==null&&vI(ah)&&(ah=null),y1.forEach(LJ),b1.forEach(LJ)}function cE(e,t){e.blockedOn===t&&(e.blockedOn=null,YU||(YU=!0,Zl.unstable_scheduleCallback(Zl.unstable_NormalPriority,a6e)))}function S1(e){function t(i){return cE(i,e)}if(0<CR.length){cE(CR[0],e);for(var n=1;n<CR.length;n++){var r=CR[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ih!==null&&cE(ih,e),oh!==null&&cE(oh,e),ah!==null&&cE(ah,e),y1.forEach(t),b1.forEach(t),n=0;n<km.length;n++)r=km[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<km.length&&(n=km[0],n.blockedOn===null);)aye(n),n.blockedOn===null&&km.shift()}var pb=Rp.ReactCurrentBatchConfig,nM=!0;function s6e(e,t,n,r){var i=bi,o=pb.transition;pb.transition=null;try{bi=1,MG(e,t,n,r)}finally{bi=i,pb.transition=o}}function l6e(e,t,n,r){var i=bi,o=pb.transition;pb.transition=null;try{bi=4,MG(e,t,n,r)}finally{bi=i,pb.transition=o}}function MG(e,t,n,r){if(nM){var i=qU(e,t,n,r);if(i===null)k3(e,t,r,rM,n),kJ(e,r);else if(o6e(i,e,t,n,r))r.stopPropagation();else if(kJ(e,r),t&4&&-1<i6e.indexOf(e)){for(;i!==null;){var o=rx(i);if(o!==null&&nye(o),o=qU(e,t,n,r),o===null&&k3(e,t,r,rM,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else k3(e,t,r,null,n)}}var rM=null;function qU(e,t,n,r){if(rM=null,e=RG(r),e=qg(e),e!==null)if(t=v_(e),t===null)e=null;else if(n=t.tag,n===13){if(e=q_e(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return rM=e,null}function sye(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(KBe()){case OG:return 1;case Z_e:return 4;case eM:case QBe:return 16;case J_e:return 536870912;default:return 16}default:return 16}}var Vm=null,AG=null,_I=null;function lye(){if(_I)return _I;var e,t=AG,n=t.length,r,i="value"in Vm?Vm.value:Vm.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return _I=i.slice(e,1<r?1-r:void 0)}function yI(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wR(){return!0}function $J(){return!1}function sc(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?wR:$J,this.isPropagationStopped=$J,this}return vo(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wR)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wR)},persist:function(){},isPersistent:wR}),t}var G0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},PG=sc(G0),nx=vo({},G0,{view:0,detail:0}),c6e=sc(nx),T3,R3,uE,VP=vo({},nx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:DG,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==uE&&(uE&&e.type==="mousemove"?(T3=e.screenX-uE.screenX,R3=e.screenY-uE.screenY):R3=T3=0,uE=e),T3)},movementY:function(e){return"movementY"in e?e.movementY:R3}}),FJ=sc(VP),u6e=vo({},VP,{dataTransfer:0}),d6e=sc(u6e),f6e=vo({},nx,{relatedTarget:0}),O3=sc(f6e),p6e=vo({},G0,{animationName:0,elapsedTime:0,pseudoElement:0}),m6e=sc(p6e),h6e=vo({},G0,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g6e=sc(h6e),v6e=vo({},G0,{data:0}),BJ=sc(v6e),_6e={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y6e={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},b6e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S6e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=b6e[e])?!!t[e]:!1}function DG(){return S6e}var E6e=vo({},nx,{key:function(e){if(e.key){var t=_6e[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yI(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y6e[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:DG,charCode:function(e){return e.type==="keypress"?yI(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yI(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C6e=sc(E6e),w6e=vo({},VP,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),UJ=sc(w6e),x6e=vo({},nx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DG}),T6e=sc(x6e),R6e=vo({},G0,{propertyName:0,elapsedTime:0,pseudoElement:0}),O6e=sc(R6e),I6e=vo({},VP,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),N6e=sc(I6e),M6e=[9,13,27,32],kG=fp&&"CompositionEvent"in window,IC=null;fp&&"documentMode"in document&&(IC=document.documentMode);var A6e=fp&&"TextEvent"in window&&!IC,cye=fp&&(!kG||IC&&8<IC&&11>=IC),jJ=" ",HJ=!1;function uye(e,t){switch(e){case"keyup":return M6e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dye(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hy=!1;function P6e(e,t){switch(e){case"compositionend":return dye(t);case"keypress":return t.which!==32?null:(HJ=!0,jJ);case"textInput":return e=t.data,e===jJ&&HJ?null:e;default:return null}}function D6e(e,t){if(Hy)return e==="compositionend"||!kG&&uye(e,t)?(e=lye(),_I=AG=Vm=null,Hy=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cye&&t.locale!=="ko"?null:t.data;default:return null}}var k6e={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zJ(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!k6e[e.type]:t==="textarea"}function fye(e,t,n,r){z_e(r),t=iM(t,"onChange"),0<t.length&&(n=new PG("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var NC=null,E1=null;function L6e(e){Cye(e,0)}function GP(e){var t=Gy(e);if(L_e(t))return e}function $6e(e,t){if(e==="change")return t}var pye=!1;if(fp){var I3;if(fp){var N3="oninput"in document;if(!N3){var VJ=document.createElement("div");VJ.setAttribute("oninput","return;"),N3=typeof VJ.oninput=="function"}I3=N3}else I3=!1;pye=I3&&(!document.documentMode||9<document.documentMode)}function GJ(){NC&&(NC.detachEvent("onpropertychange",mye),E1=NC=null)}function mye(e){if(e.propertyName==="value"&&GP(E1)){var t=[];fye(t,E1,e,RG(e)),Y_e(L6e,t)}}function F6e(e,t,n){e==="focusin"?(GJ(),NC=t,E1=n,NC.attachEvent("onpropertychange",mye)):e==="focusout"&&GJ()}function B6e(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return GP(E1)}function U6e(e,t){if(e==="click")return GP(t)}function j6e(e,t){if(e==="input"||e==="change")return GP(t)}function H6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ju=typeof Object.is=="function"?Object.is:H6e;function C1(e,t){if(Ju(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!NU.call(t,i)||!Ju(e[i],t[i]))return!1}return!0}function WJ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function YJ(e,t){var n=WJ(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=WJ(n)}}function hye(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hye(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gye(){for(var e=window,t=XN();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=XN(e.document)}return t}function LG(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 z6e(e){var t=gye(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hye(n.ownerDocument.documentElement,n)){if(r!==null&&LG(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=YJ(n,o);var a=YJ(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var V6e=fp&&"documentMode"in document&&11>=document.documentMode,zy=null,KU=null,MC=null,QU=!1;function qJ(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;QU||zy==null||zy!==XN(r)||(r=zy,"selectionStart"in r&&LG(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}),MC&&C1(MC,r)||(MC=r,r=iM(KU,"onSelect"),0<r.length&&(t=new PG("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zy)))}function xR(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vy={animationend:xR("Animation","AnimationEnd"),animationiteration:xR("Animation","AnimationIteration"),animationstart:xR("Animation","AnimationStart"),transitionend:xR("Transition","TransitionEnd")},M3={},vye={};fp&&(vye=document.createElement("div").style,"AnimationEvent"in window||(delete Vy.animationend.animation,delete Vy.animationiteration.animation,delete Vy.animationstart.animation),"TransitionEvent"in window||delete Vy.transitionend.transition);function WP(e){if(M3[e])return M3[e];if(!Vy[e])return e;var t=Vy[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vye)return M3[e]=t[n];return e}var _ye=WP("animationend"),yye=WP("animationiteration"),bye=WP("animationstart"),Sye=WP("transitionend"),Eye=new Map,KJ="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mh(e,t){Eye.set(e,t),g_(t,[e])}for(var A3=0;A3<KJ.length;A3++){var P3=KJ[A3],G6e=P3.toLowerCase(),W6e=P3[0].toUpperCase()+P3.slice(1);Mh(G6e,"on"+W6e)}Mh(_ye,"onAnimationEnd");Mh(yye,"onAnimationIteration");Mh(bye,"onAnimationStart");Mh("dblclick","onDoubleClick");Mh("focusin","onFocus");Mh("focusout","onBlur");Mh(Sye,"onTransitionEnd");zb("onMouseEnter",["mouseout","mouseover"]);zb("onMouseLeave",["mouseout","mouseover"]);zb("onPointerEnter",["pointerout","pointerover"]);zb("onPointerLeave",["pointerout","pointerover"]);g_("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));g_("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));g_("onBeforeInput",["compositionend","keypress","textInput","paste"]);g_("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));g_("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));g_("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var aC="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Y6e=new Set("cancel close invalid load scroll toggle".split(" ").concat(aC));function QJ(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,GBe(r,t,void 0,e),e.currentTarget=null}function Cye(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;QJ(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;QJ(i,s,c),o=l}}}if(JN)throw e=GU,JN=!1,GU=null,e}function Ui(e,t){var n=t[tj];n===void 0&&(n=t[tj]=new Set);var r=e+"__bubble";n.has(r)||(wye(t,e,2,!1),n.add(r))}function D3(e,t,n){var r=0;t&&(r|=4),wye(n,e,r,t)}var TR="_reactListening"+Math.random().toString(36).slice(2);function w1(e){if(!e[TR]){e[TR]=!0,M_e.forEach(function(n){n!=="selectionchange"&&(Y6e.has(n)||D3(n,!1,e),D3(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[TR]||(t[TR]=!0,D3("selectionchange",!1,t))}}function wye(e,t,n,r){switch(sye(t)){case 1:var i=s6e;break;case 4:i=l6e;break;default:i=MG}n=i.bind(null,t,n,e),i=void 0,!VU||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function k3(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=qg(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Y_e(function(){var c=o,u=RG(n),d=[];e:{var f=Eye.get(e);if(f!==void 0){var p=PG,h=e;switch(e){case"keypress":if(yI(n)===0)break e;case"keydown":case"keyup":p=C6e;break;case"focusin":h="focus",p=O3;break;case"focusout":h="blur",p=O3;break;case"beforeblur":case"afterblur":p=O3;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=FJ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=d6e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=T6e;break;case _ye:case yye:case bye:p=m6e;break;case Sye:p=O6e;break;case"scroll":p=c6e;break;case"wheel":p=N6e;break;case"copy":case"cut":case"paste":p=g6e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=UJ}var g=(t&4)!==0,v=!g&&e==="scroll",y=g?f!==null?f+"Capture":null:f;g=[];for(var _=c,b;_!==null;){b=_;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,y!==null&&(S=_1(_,y),S!=null&&g.push(x1(_,S,b)))),v)break;_=_.return}0<g.length&&(f=new p(f,h,null,n,u),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==HU&&(h=n.relatedTarget||n.fromElement)&&(qg(h)||h[pp]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=c,h=h?qg(h):null,h!==null&&(v=v_(h),h!==v||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=c),p!==h)){if(g=FJ,S="onMouseLeave",y="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(g=UJ,S="onPointerLeave",y="onPointerEnter",_="pointer"),v=p==null?f:Gy(p),b=h==null?f:Gy(h),f=new g(S,_+"leave",p,n,u),f.target=v,f.relatedTarget=b,S=null,qg(u)===c&&(g=new g(y,_+"enter",h,n,u),g.target=b,g.relatedTarget=v,S=g),v=S,p&&h)t:{for(g=p,y=h,_=0,b=g;b;b=sy(b))_++;for(b=0,S=y;S;S=sy(S))b++;for(;0<_-b;)g=sy(g),_--;for(;0<b-_;)y=sy(y),b--;for(;_--;){if(g===y||y!==null&&g===y.alternate)break t;g=sy(g),y=sy(y)}g=null}else g=null;p!==null&&XJ(d,f,p,g,!1),h!==null&&v!==null&&XJ(d,v,h,g,!0)}}e:{if(f=c?Gy(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=$6e;else if(zJ(f))if(pye)C=j6e;else{C=B6e;var E=F6e}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=U6e);if(C&&(C=C(e,c))){fye(d,C,n,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&$U(f,"number",f.value)}switch(E=c?Gy(c):window,e){case"focusin":(zJ(E)||E.contentEditable==="true")&&(zy=E,KU=c,MC=null);break;case"focusout":MC=KU=zy=null;break;case"mousedown":QU=!0;break;case"contextmenu":case"mouseup":case"dragend":QU=!1,qJ(d,n,u);break;case"selectionchange":if(V6e)break;case"keydown":case"keyup":qJ(d,n,u)}var w;if(kG)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Hy?uye(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(cye&&n.locale!=="ko"&&(Hy||x!=="onCompositionStart"?x==="onCompositionEnd"&&Hy&&(w=lye()):(Vm=u,AG="value"in Vm?Vm.value:Vm.textContent,Hy=!0)),E=iM(c,x),0<E.length&&(x=new BJ(x,e,null,n,u),d.push({event:x,listeners:E}),w?x.data=w:(w=dye(n),w!==null&&(x.data=w)))),(w=A6e?P6e(e,n):D6e(e,n))&&(c=iM(c,"onBeforeInput"),0<c.length&&(u=new BJ("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=w))}Cye(d,t)})}function x1(e,t,n){return{instance:e,listener:t,currentTarget:n}}function iM(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_1(e,n),o!=null&&r.unshift(x1(e,o,i)),o=_1(e,t),o!=null&&r.push(x1(e,o,i))),e=e.return}return r}function sy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function XJ(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=_1(n,o),l!=null&&a.unshift(x1(n,l,s))):i||(l=_1(n,o),l!=null&&a.push(x1(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var q6e=/\r\n?/g,K6e=/\u0000|\uFFFD/g;function ZJ(e){return(typeof e=="string"?e:""+e).replace(q6e,`
|
||
`).replace(K6e,"")}function RR(e,t,n){if(t=ZJ(t),ZJ(e)!==t&&n)throw Error(un(425))}function oM(){}var XU=null,ZU=null;function JU(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ej=typeof setTimeout=="function"?setTimeout:void 0,Q6e=typeof clearTimeout=="function"?clearTimeout:void 0,JJ=typeof Promise=="function"?Promise:void 0,X6e=typeof queueMicrotask=="function"?queueMicrotask:typeof JJ<"u"?function(e){return JJ.resolve(null).then(e).catch(Z6e)}:ej;function Z6e(e){setTimeout(function(){throw e})}function L3(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),S1(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);S1(t)}function sh(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function eee(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var W0=Math.random().toString(36).slice(2),Fd="__reactFiber$"+W0,T1="__reactProps$"+W0,pp="__reactContainer$"+W0,tj="__reactEvents$"+W0,J6e="__reactListeners$"+W0,e8e="__reactHandles$"+W0;function qg(e){var t=e[Fd];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pp]||n[Fd]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=eee(e);e!==null;){if(n=e[Fd])return n;e=eee(e)}return t}e=n,n=e.parentNode}return null}function rx(e){return e=e[Fd]||e[pp],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gy(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(un(33))}function YP(e){return e[T1]||null}var nj=[],Wy=-1;function Ah(e){return{current:e}}function Wi(e){0>Wy||(e.current=nj[Wy],nj[Wy]=null,Wy--)}function $i(e,t){Wy++,nj[Wy]=e.current,e.current=t}var Sh={},vs=Ah(Sh),dl=Ah(!1),Dv=Sh;function Vb(e,t){var n=e.type.contextTypes;if(!n)return Sh;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fl(e){return e=e.childContextTypes,e!=null}function aM(){Wi(dl),Wi(vs)}function tee(e,t,n){if(vs.current!==Sh)throw Error(un(168));$i(vs,t),$i(dl,n)}function xye(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(un(108,FBe(e)||"Unknown",i));return vo({},n,r)}function sM(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sh,Dv=vs.current,$i(vs,e),$i(dl,dl.current),!0}function nee(e,t,n){var r=e.stateNode;if(!r)throw Error(un(169));n?(e=xye(e,t,Dv),r.__reactInternalMemoizedMergedChildContext=e,Wi(dl),Wi(vs),$i(vs,e)):Wi(dl),$i(dl,n)}var Hf=null,qP=!1,$3=!1;function Tye(e){Hf===null?Hf=[e]:Hf.push(e)}function t8e(e){qP=!0,Tye(e)}function Ph(){if(!$3&&Hf!==null){$3=!0;var e=0,t=bi;try{var n=Hf;for(bi=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Hf=null,qP=!1}catch(i){throw Hf!==null&&(Hf=Hf.slice(e+1)),X_e(OG,Ph),i}finally{bi=t,$3=!1}}return null}var Yy=[],qy=0,lM=null,cM=0,Pc=[],Dc=0,kv=null,Wf=1,Yf="";function Ag(e,t){Yy[qy++]=cM,Yy[qy++]=lM,lM=e,cM=t}function Rye(e,t,n){Pc[Dc++]=Wf,Pc[Dc++]=Yf,Pc[Dc++]=kv,kv=e;var r=Wf;e=Yf;var i=32-Hu(r)-1;r&=~(1<<i),n+=1;var o=32-Hu(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Wf=1<<32-Hu(t)+i|n<<i|r,Yf=o+e}else Wf=1<<o|n<<i|r,Yf=e}function $G(e){e.return!==null&&(Ag(e,1),Rye(e,1,0))}function FG(e){for(;e===lM;)lM=Yy[--qy],Yy[qy]=null,cM=Yy[--qy],Yy[qy]=null;for(;e===kv;)kv=Pc[--Dc],Pc[Dc]=null,Yf=Pc[--Dc],Pc[Dc]=null,Wf=Pc[--Dc],Pc[Dc]=null}var Ql=null,Wl=null,oo=!1,Au=null;function Oye(e,t){var n=Bc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ree(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ql=e,Wl=sh(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ql=e,Wl=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=kv!==null?{id:Wf,overflow:Yf}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Bc(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ql=e,Wl=null,!0):!1;default:return!1}}function rj(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ij(e){if(oo){var t=Wl;if(t){var n=t;if(!ree(e,t)){if(rj(e))throw Error(un(418));t=sh(n.nextSibling);var r=Ql;t&&ree(e,t)?Oye(r,n):(e.flags=e.flags&-4097|2,oo=!1,Ql=e)}}else{if(rj(e))throw Error(un(418));e.flags=e.flags&-4097|2,oo=!1,Ql=e}}}function iee(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ql=e}function OR(e){if(e!==Ql)return!1;if(!oo)return iee(e),oo=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!JU(e.type,e.memoizedProps)),t&&(t=Wl)){if(rj(e))throw Iye(),Error(un(418));for(;t;)Oye(e,t),t=sh(t.nextSibling)}if(iee(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(un(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Wl=sh(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Wl=null}}else Wl=Ql?sh(e.stateNode.nextSibling):null;return!0}function Iye(){for(var e=Wl;e;)e=sh(e.nextSibling)}function Gb(){Wl=Ql=null,oo=!1}function BG(e){Au===null?Au=[e]:Au.push(e)}var n8e=Rp.ReactCurrentBatchConfig;function dE(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(un(309));var r=n.stateNode}if(!r)throw Error(un(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(un(284));if(!n._owner)throw Error(un(290,e))}return e}function IR(e,t){throw e=Object.prototype.toString.call(t),Error(un(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function oee(e){var t=e._init;return t(e._payload)}function Nye(e){function t(y,_){if(e){var b=y.deletions;b===null?(y.deletions=[_],y.flags|=16):b.push(_)}}function n(y,_){if(!e)return null;for(;_!==null;)t(y,_),_=_.sibling;return null}function r(y,_){for(y=new Map;_!==null;)_.key!==null?y.set(_.key,_):y.set(_.index,_),_=_.sibling;return y}function i(y,_){return y=dh(y,_),y.index=0,y.sibling=null,y}function o(y,_,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<_?(y.flags|=2,_):b):(y.flags|=2,_)):(y.flags|=1048576,_)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,_,b,S){return _===null||_.tag!==6?(_=V3(b,y.mode,S),_.return=y,_):(_=i(_,b),_.return=y,_)}function l(y,_,b,S){var C=b.type;return C===jy?u(y,_,b.props.children,S,b.key):_!==null&&(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Im&&oee(C)===_.type)?(S=i(_,b.props),S.ref=dE(y,_,b),S.return=y,S):(S=TI(b.type,b.key,b.props,null,y.mode,S),S.ref=dE(y,_,b),S.return=y,S)}function c(y,_,b,S){return _===null||_.tag!==4||_.stateNode.containerInfo!==b.containerInfo||_.stateNode.implementation!==b.implementation?(_=G3(b,y.mode,S),_.return=y,_):(_=i(_,b.children||[]),_.return=y,_)}function u(y,_,b,S,C){return _===null||_.tag!==7?(_=vv(b,y.mode,S,C),_.return=y,_):(_=i(_,b),_.return=y,_)}function d(y,_,b){if(typeof _=="string"&&_!==""||typeof _=="number")return _=V3(""+_,y.mode,b),_.return=y,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case _R:return b=TI(_.type,_.key,_.props,null,y.mode,b),b.ref=dE(y,null,_),b.return=y,b;case Uy:return _=G3(_,y.mode,b),_.return=y,_;case Im:var S=_._init;return d(y,S(_._payload),b)}if(iC(_)||aE(_))return _=vv(_,y.mode,b,null),_.return=y,_;IR(y,_)}return null}function f(y,_,b,S){var C=_!==null?_.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return C!==null?null:s(y,_,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _R:return b.key===C?l(y,_,b,S):null;case Uy:return b.key===C?c(y,_,b,S):null;case Im:return C=b._init,f(y,_,C(b._payload),S)}if(iC(b)||aE(b))return C!==null?null:u(y,_,b,S,null);IR(y,b)}return null}function p(y,_,b,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(b)||null,s(_,y,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _R:return y=y.get(S.key===null?b:S.key)||null,l(_,y,S,C);case Uy:return y=y.get(S.key===null?b:S.key)||null,c(_,y,S,C);case Im:var E=S._init;return p(y,_,b,E(S._payload),C)}if(iC(S)||aE(S))return y=y.get(b)||null,u(_,y,S,C,null);IR(_,S)}return null}function h(y,_,b,S){for(var C=null,E=null,w=_,x=_=0,T=null;w!==null&&x<b.length;x++){w.index>x?(T=w,w=null):T=w.sibling;var R=f(y,w,b[x],S);if(R===null){w===null&&(w=T);break}e&&w&&R.alternate===null&&t(y,w),_=o(R,_,x),E===null?C=R:E.sibling=R,E=R,w=T}if(x===b.length)return n(y,w),oo&&Ag(y,x),C;if(w===null){for(;x<b.length;x++)w=d(y,b[x],S),w!==null&&(_=o(w,_,x),E===null?C=w:E.sibling=w,E=w);return oo&&Ag(y,x),C}for(w=r(y,w);x<b.length;x++)T=p(w,y,x,b[x],S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?x:T.key),_=o(T,_,x),E===null?C=T:E.sibling=T,E=T);return e&&w.forEach(function(N){return t(y,N)}),oo&&Ag(y,x),C}function g(y,_,b,S){var C=aE(b);if(typeof C!="function")throw Error(un(150));if(b=C.call(b),b==null)throw Error(un(151));for(var E=C=null,w=_,x=_=0,T=null,R=b.next();w!==null&&!R.done;x++,R=b.next()){w.index>x?(T=w,w=null):T=w.sibling;var N=f(y,w,R.value,S);if(N===null){w===null&&(w=T);break}e&&w&&N.alternate===null&&t(y,w),_=o(N,_,x),E===null?C=N:E.sibling=N,E=N,w=T}if(R.done)return n(y,w),oo&&Ag(y,x),C;if(w===null){for(;!R.done;x++,R=b.next())R=d(y,R.value,S),R!==null&&(_=o(R,_,x),E===null?C=R:E.sibling=R,E=R);return oo&&Ag(y,x),C}for(w=r(y,w);!R.done;x++,R=b.next())R=p(w,y,x,R.value,S),R!==null&&(e&&R.alternate!==null&&w.delete(R.key===null?x:R.key),_=o(R,_,x),E===null?C=R:E.sibling=R,E=R);return e&&w.forEach(function(I){return t(y,I)}),oo&&Ag(y,x),C}function v(y,_,b,S){if(typeof b=="object"&&b!==null&&b.type===jy&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case _R:e:{for(var C=b.key,E=_;E!==null;){if(E.key===C){if(C=b.type,C===jy){if(E.tag===7){n(y,E.sibling),_=i(E,b.props.children),_.return=y,y=_;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Im&&oee(C)===E.type){n(y,E.sibling),_=i(E,b.props),_.ref=dE(y,E,b),_.return=y,y=_;break e}n(y,E);break}else t(y,E);E=E.sibling}b.type===jy?(_=vv(b.props.children,y.mode,S,b.key),_.return=y,y=_):(S=TI(b.type,b.key,b.props,null,y.mode,S),S.ref=dE(y,_,b),S.return=y,y=S)}return a(y);case Uy:e:{for(E=b.key;_!==null;){if(_.key===E)if(_.tag===4&&_.stateNode.containerInfo===b.containerInfo&&_.stateNode.implementation===b.implementation){n(y,_.sibling),_=i(_,b.children||[]),_.return=y,y=_;break e}else{n(y,_);break}else t(y,_);_=_.sibling}_=G3(b,y.mode,S),_.return=y,y=_}return a(y);case Im:return E=b._init,v(y,_,E(b._payload),S)}if(iC(b))return h(y,_,b,S);if(aE(b))return g(y,_,b,S);IR(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,_!==null&&_.tag===6?(n(y,_.sibling),_=i(_,b),_.return=y,y=_):(n(y,_),_=V3(b,y.mode,S),_.return=y,y=_),a(y)):n(y,_)}return v}var Wb=Nye(!0),Mye=Nye(!1),uM=Ah(null),dM=null,Ky=null,UG=null;function jG(){UG=Ky=dM=null}function HG(e){var t=uM.current;Wi(uM),e._currentValue=t}function oj(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 mb(e,t){dM=e,UG=Ky=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ll=!0),e.firstContext=null)}function Gc(e){var t=e._currentValue;if(UG!==e)if(e={context:e,memoizedValue:t,next:null},Ky===null){if(dM===null)throw Error(un(308));Ky=e,dM.dependencies={lanes:0,firstContext:e}}else Ky=Ky.next=e;return t}var Kg=null;function zG(e){Kg===null?Kg=[e]:Kg.push(e)}function Aye(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,zG(t)):(n.next=i.next,i.next=n),t.interleaved=n,mp(e,r)}function mp(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 Nm=!1;function VG(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pye(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 tp(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lh(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ri&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,mp(e,n)}return i=r.interleaved,i===null?(t.next=t,zG(r)):(t.next=i.next,i.next=t),r.interleaved=t,mp(e,n)}function bI(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,IG(e,n)}}function aee(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,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 fM(e,t,n,r){var i=e.updateQueue;Nm=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(f=t,p=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=vo({},d,f);break e;case 2:Nm=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);$v|=a,e.lanes=a,e.memoizedState=d}}function see(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(un(191,i));i.call(r)}}}var ix={},Kd=Ah(ix),R1=Ah(ix),O1=Ah(ix);function Qg(e){if(e===ix)throw Error(un(174));return e}function GG(e,t){switch($i(O1,t),$i(R1,e),$i(Kd,ix),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:BU(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=BU(t,e)}Wi(Kd),$i(Kd,t)}function Yb(){Wi(Kd),Wi(R1),Wi(O1)}function Dye(e){Qg(O1.current);var t=Qg(Kd.current),n=BU(t,e.type);t!==n&&($i(R1,e),$i(Kd,n))}function WG(e){R1.current===e&&(Wi(Kd),Wi(R1))}var mo=Ah(0);function pM(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var F3=[];function YG(){for(var e=0;e<F3.length;e++)F3[e]._workInProgressVersionPrimary=null;F3.length=0}var SI=Rp.ReactCurrentDispatcher,B3=Rp.ReactCurrentBatchConfig,Lv=0,go=null,ua=null,Ra=null,mM=!1,AC=!1,I1=0,r8e=0;function os(){throw Error(un(321))}function qG(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ju(e[n],t[n]))return!1;return!0}function KG(e,t,n,r,i,o){if(Lv=o,go=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,SI.current=e===null||e.memoizedState===null?s8e:l8e,e=n(r,i),AC){o=0;do{if(AC=!1,I1=0,25<=o)throw Error(un(301));o+=1,Ra=ua=null,t.updateQueue=null,SI.current=c8e,e=n(r,i)}while(AC)}if(SI.current=hM,t=ua!==null&&ua.next!==null,Lv=0,Ra=ua=go=null,mM=!1,t)throw Error(un(300));return e}function QG(){var e=I1!==0;return I1=0,e}function Id(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ra===null?go.memoizedState=Ra=e:Ra=Ra.next=e,Ra}function Wc(){if(ua===null){var e=go.alternate;e=e!==null?e.memoizedState:null}else e=ua.next;var t=Ra===null?go.memoizedState:Ra.next;if(t!==null)Ra=t,ua=e;else{if(e===null)throw Error(un(310));ua=e,e={memoizedState:ua.memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},Ra===null?go.memoizedState=Ra=e:Ra=Ra.next=e}return Ra}function N1(e,t){return typeof t=="function"?t(e):t}function U3(e){var t=Wc(),n=t.queue;if(n===null)throw Error(un(311));n.lastRenderedReducer=e;var r=ua,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((Lv&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,go.lanes|=u,$v|=u}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,Ju(r,t.memoizedState)||(ll=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,go.lanes|=o,$v|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function j3(e){var t=Wc(),n=t.queue;if(n===null)throw Error(un(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ju(o,t.memoizedState)||(ll=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function kye(){}function Lye(e,t){var n=go,r=Wc(),i=t(),o=!Ju(r.memoizedState,i);if(o&&(r.memoizedState=i,ll=!0),r=r.queue,XG(Bye.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ra!==null&&Ra.memoizedState.tag&1){if(n.flags|=2048,M1(9,Fye.bind(null,n,r,i,t),void 0,null),Ma===null)throw Error(un(349));Lv&30||$ye(n,t,i)}return i}function $ye(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=go.updateQueue,t===null?(t={lastEffect:null,stores:null},go.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fye(e,t,n,r){t.value=n,t.getSnapshot=r,Uye(t)&&jye(e)}function Bye(e,t,n){return n(function(){Uye(t)&&jye(e)})}function Uye(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ju(e,n)}catch{return!0}}function jye(e){var t=mp(e,1);t!==null&&zu(t,e,1,-1)}function lee(e){var t=Id();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:N1,lastRenderedState:e},t.queue=e,e=e.dispatch=a8e.bind(null,go,e),[t.memoizedState,e]}function M1(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=go.updateQueue,t===null?(t={lastEffect:null,stores:null},go.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Hye(){return Wc().memoizedState}function EI(e,t,n,r){var i=Id();go.flags|=e,i.memoizedState=M1(1|t,n,void 0,r===void 0?null:r)}function KP(e,t,n,r){var i=Wc();r=r===void 0?null:r;var o=void 0;if(ua!==null){var a=ua.memoizedState;if(o=a.destroy,r!==null&&qG(r,a.deps)){i.memoizedState=M1(t,n,o,r);return}}go.flags|=e,i.memoizedState=M1(1|t,n,o,r)}function cee(e,t){return EI(8390656,8,e,t)}function XG(e,t){return KP(2048,8,e,t)}function zye(e,t){return KP(4,2,e,t)}function Vye(e,t){return KP(4,4,e,t)}function Gye(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wye(e,t,n){return n=n!=null?n.concat([e]):null,KP(4,4,Gye.bind(null,t,e),n)}function ZG(){}function Yye(e,t){var n=Wc();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qG(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qye(e,t){var n=Wc();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qG(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kye(e,t,n){return Lv&21?(Ju(n,t)||(n=eye(),go.lanes|=n,$v|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ll=!0),e.memoizedState=n)}function i8e(e,t){var n=bi;bi=n!==0&&4>n?n:4,e(!0);var r=B3.transition;B3.transition={};try{e(!1),t()}finally{bi=n,B3.transition=r}}function Qye(){return Wc().memoizedState}function o8e(e,t,n){var r=uh(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xye(e))Zye(t,n);else if(n=Aye(e,t,n,r),n!==null){var i=$s();zu(n,e,r,i),Jye(n,t,r)}}function a8e(e,t,n){var r=uh(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xye(e))Zye(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Ju(s,a)){var l=t.interleaved;l===null?(i.next=i,zG(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Aye(e,t,i,r),n!==null&&(i=$s(),zu(n,e,r,i),Jye(n,t,r))}}function Xye(e){var t=e.alternate;return e===go||t!==null&&t===go}function Zye(e,t){AC=mM=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jye(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,IG(e,n)}}var hM={readContext:Gc,useCallback:os,useContext:os,useEffect:os,useImperativeHandle:os,useInsertionEffect:os,useLayoutEffect:os,useMemo:os,useReducer:os,useRef:os,useState:os,useDebugValue:os,useDeferredValue:os,useTransition:os,useMutableSource:os,useSyncExternalStore:os,useId:os,unstable_isNewReconciler:!1},s8e={readContext:Gc,useCallback:function(e,t){return Id().memoizedState=[e,t===void 0?null:t],e},useContext:Gc,useEffect:cee,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,EI(4194308,4,Gye.bind(null,t,e),n)},useLayoutEffect:function(e,t){return EI(4194308,4,e,t)},useInsertionEffect:function(e,t){return EI(4,2,e,t)},useMemo:function(e,t){var n=Id();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Id();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=o8e.bind(null,go,e),[r.memoizedState,e]},useRef:function(e){var t=Id();return e={current:e},t.memoizedState=e},useState:lee,useDebugValue:ZG,useDeferredValue:function(e){return Id().memoizedState=e},useTransition:function(){var e=lee(!1),t=e[0];return e=i8e.bind(null,e[1]),Id().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=go,i=Id();if(oo){if(n===void 0)throw Error(un(407));n=n()}else{if(n=t(),Ma===null)throw Error(un(349));Lv&30||$ye(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,cee(Bye.bind(null,r,o,e),[e]),r.flags|=2048,M1(9,Fye.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Id(),t=Ma.identifierPrefix;if(oo){var n=Yf,r=Wf;n=(r&~(1<<32-Hu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=I1++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=r8e++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},l8e={readContext:Gc,useCallback:Yye,useContext:Gc,useEffect:XG,useImperativeHandle:Wye,useInsertionEffect:zye,useLayoutEffect:Vye,useMemo:qye,useReducer:U3,useRef:Hye,useState:function(){return U3(N1)},useDebugValue:ZG,useDeferredValue:function(e){var t=Wc();return Kye(t,ua.memoizedState,e)},useTransition:function(){var e=U3(N1)[0],t=Wc().memoizedState;return[e,t]},useMutableSource:kye,useSyncExternalStore:Lye,useId:Qye,unstable_isNewReconciler:!1},c8e={readContext:Gc,useCallback:Yye,useContext:Gc,useEffect:XG,useImperativeHandle:Wye,useInsertionEffect:zye,useLayoutEffect:Vye,useMemo:qye,useReducer:j3,useRef:Hye,useState:function(){return j3(N1)},useDebugValue:ZG,useDeferredValue:function(e){var t=Wc();return ua===null?t.memoizedState=e:Kye(t,ua.memoizedState,e)},useTransition:function(){var e=j3(N1)[0],t=Wc().memoizedState;return[e,t]},useMutableSource:kye,useSyncExternalStore:Lye,useId:Qye,unstable_isNewReconciler:!1};function wu(e,t){if(e&&e.defaultProps){t=vo({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function aj(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:vo({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var QP={isMounted:function(e){return(e=e._reactInternals)?v_(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$s(),i=uh(e),o=tp(r,i);o.payload=t,n!=null&&(o.callback=n),t=lh(e,o,i),t!==null&&(zu(t,e,i,r),bI(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$s(),i=uh(e),o=tp(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=lh(e,o,i),t!==null&&(zu(t,e,i,r),bI(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$s(),r=uh(e),i=tp(n,r);i.tag=2,t!=null&&(i.callback=t),t=lh(e,i,r),t!==null&&(zu(t,e,r,n),bI(t,e,r))}};function uee(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!C1(n,r)||!C1(i,o):!0}function ebe(e,t,n){var r=!1,i=Sh,o=t.contextType;return typeof o=="object"&&o!==null?o=Gc(o):(i=fl(t)?Dv:vs.current,r=t.contextTypes,o=(r=r!=null)?Vb(e,i):Sh),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=QP,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function dee(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&QP.enqueueReplaceState(t,t.state,null)}function sj(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},VG(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Gc(o):(o=fl(t)?Dv:vs.current,i.context=Vb(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(aj(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&QP.enqueueReplaceState(i,i.state,null),fM(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qb(e,t){try{var n="",r=t;do n+=$Be(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function H3(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lj(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var u8e=typeof WeakMap=="function"?WeakMap:Map;function tbe(e,t,n){n=tp(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vM||(vM=!0,_j=r),lj(e,t)},n}function nbe(e,t,n){n=tp(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){lj(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){lj(e,t),typeof r!="function"&&(ch===null?ch=new Set([this]):ch.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function fee(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new u8e;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=w8e.bind(null,e,t,n),t.then(e,e))}function pee(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 mee(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=tp(-1,1),t.tag=2,lh(n,t,1))),n.lanes|=1),e)}var d8e=Rp.ReactCurrentOwner,ll=!1;function Is(e,t,n,r){t.child=e===null?Mye(t,null,n,r):Wb(t,e.child,n,r)}function hee(e,t,n,r,i){n=n.render;var o=t.ref;return mb(t,i),r=KG(e,t,n,r,o,i),n=QG(),e!==null&&!ll?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hp(e,t,i)):(oo&&n&&$G(t),t.flags|=1,Is(e,t,r,i),t.child)}function gee(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!aW(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,rbe(e,t,o,r,i)):(e=TI(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:C1,n(a,r)&&e.ref===t.ref)return hp(e,t,i)}return t.flags|=1,e=dh(o,r),e.ref=t.ref,e.return=t,t.child=e}function rbe(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(C1(o,r)&&e.ref===t.ref)if(ll=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ll=!0);else return t.lanes=e.lanes,hp(e,t,i)}return cj(e,t,n,r,i)}function ibe(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$i(Xy,Ul),Ul|=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,$i(Xy,Ul),Ul|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,$i(Xy,Ul),Ul|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,$i(Xy,Ul),Ul|=r;return Is(e,t,i,n),t.child}function obe(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cj(e,t,n,r,i){var o=fl(n)?Dv:vs.current;return o=Vb(t,o),mb(t,i),n=KG(e,t,n,r,o,i),r=QG(),e!==null&&!ll?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hp(e,t,i)):(oo&&r&&$G(t),t.flags|=1,Is(e,t,n,i),t.child)}function vee(e,t,n,r,i){if(fl(n)){var o=!0;sM(t)}else o=!1;if(mb(t,i),t.stateNode===null)CI(e,t),ebe(t,n,r),sj(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Gc(c):(c=fl(n)?Dv:vs.current,c=Vb(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&dee(t,a,r,c),Nm=!1;var f=t.memoizedState;a.state=f,fM(t,r,a,i),l=t.memoizedState,s!==r||f!==l||dl.current||Nm?(typeof u=="function"&&(aj(t,n,u,r),l=t.memoizedState),(s=Nm||uee(t,n,s,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pye(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:wu(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gc(l):(l=fl(n)?Dv:vs.current,l=Vb(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&dee(t,a,r,l),Nm=!1,f=t.memoizedState,a.state=f,fM(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||dl.current||Nm?(typeof p=="function"&&(aj(t,n,p,r),h=t.memoizedState),(c=Nm||uee(t,n,c,r,f,h,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return uj(e,t,n,r,o,i)}function uj(e,t,n,r,i,o){obe(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&nee(t,n,!1),hp(e,t,o);r=t.stateNode,d8e.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Wb(t,e.child,null,o),t.child=Wb(t,null,s,o)):Is(e,t,s,o),t.memoizedState=r.state,i&&nee(t,n,!0),t.child}function abe(e){var t=e.stateNode;t.pendingContext?tee(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tee(e,t.context,!1),GG(e,t.containerInfo)}function _ee(e,t,n,r,i){return Gb(),BG(i),t.flags|=256,Is(e,t,n,r),t.child}var dj={dehydrated:null,treeContext:null,retryLane:0};function fj(e){return{baseLanes:e,cachePool:null,transitions:null}}function sbe(e,t,n){var r=t.pendingProps,i=mo.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$i(mo,i&1),e===null)return ij(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):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=JP(a,r,0,null),e=vv(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=fj(n),t.memoizedState=dj,e):JG(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return f8e(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=dh(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=dh(s,o):(o=vv(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?fj(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=dj,r}return o=e.child,e=o.sibling,r=dh(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 JG(e,t){return t=JP({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function NR(e,t,n,r){return r!==null&&BG(r),Wb(t,e.child,null,n),e=JG(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function f8e(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=H3(Error(un(422))),NR(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=JP({mode:"visible",children:r.children},i,0,null),o=vv(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Wb(t,e.child,null,a),t.child.memoizedState=fj(a),t.memoizedState=dj,o);if(!(t.mode&1))return NR(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(un(419)),r=H3(o,r,void 0),NR(e,t,a,r)}if(s=(a&e.childLanes)!==0,ll||s){if(r=Ma,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,mp(e,i),zu(r,e,i,-1))}return oW(),r=H3(Error(un(421))),NR(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=x8e.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wl=sh(i.nextSibling),Ql=t,oo=!0,Au=null,e!==null&&(Pc[Dc++]=Wf,Pc[Dc++]=Yf,Pc[Dc++]=kv,Wf=e.id,Yf=e.overflow,kv=t),t=JG(t,r.children),t.flags|=4096,t)}function yee(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),oj(e.return,t,n)}function z3(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function lbe(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Is(e,t,r.children,n),r=mo.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&&yee(e,n,t);else if(e.tag===19)yee(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($i(mo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pM(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),z3(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pM(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}z3(t,!0,n,null,o);break;case"together":z3(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function CI(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hp(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$v|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(un(153));if(t.child!==null){for(e=t.child,n=dh(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dh(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function p8e(e,t,n){switch(t.tag){case 3:abe(t),Gb();break;case 5:Dye(t);break;case 1:fl(t.type)&&sM(t);break;case 4:GG(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$i(uM,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($i(mo,mo.current&1),t.flags|=128,null):n&t.child.childLanes?sbe(e,t,n):($i(mo,mo.current&1),e=hp(e,t,n),e!==null?e.sibling:null);$i(mo,mo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lbe(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$i(mo,mo.current),r)break;return null;case 22:case 23:return t.lanes=0,ibe(e,t,n)}return hp(e,t,n)}var cbe,pj,ube,dbe;cbe=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}};pj=function(){};ube=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Qg(Kd.current);var o=null;switch(n){case"input":i=kU(e,i),r=kU(e,r),o=[];break;case"select":i=vo({},i,{value:void 0}),r=vo({},r,{value:void 0}),o=[];break;case"textarea":i=FU(e,i),r=FU(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=oM)}UU(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(g1.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(g1.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ui("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};dbe=function(e,t,n,r){n!==r&&(t.flags|=4)};function fE(e,t){if(!oo)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 as(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function m8e(e,t,n){var r=t.pendingProps;switch(FG(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return as(t),null;case 1:return fl(t.type)&&aM(),as(t),null;case 3:return r=t.stateNode,Yb(),Wi(dl),Wi(vs),YG(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(OR(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Au!==null&&(Sj(Au),Au=null))),pj(e,t),as(t),null;case 5:WG(t);var i=Qg(O1.current);if(n=t.type,e!==null&&t.stateNode!=null)ube(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(un(166));return as(t),null}if(e=Qg(Kd.current),OR(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Fd]=t,r[T1]=o,e=(t.mode&1)!==0,n){case"dialog":Ui("cancel",r),Ui("close",r);break;case"iframe":case"object":case"embed":Ui("load",r);break;case"video":case"audio":for(i=0;i<aC.length;i++)Ui(aC[i],r);break;case"source":Ui("error",r);break;case"img":case"image":case"link":Ui("error",r),Ui("load",r);break;case"details":Ui("toggle",r);break;case"input":OJ(r,o),Ui("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ui("invalid",r);break;case"textarea":NJ(r,o),Ui("invalid",r)}UU(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&RR(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&RR(r.textContent,s,e),i=["children",""+s]):g1.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ui("scroll",r)}switch(n){case"input":yR(r),IJ(r,o,!0);break;case"textarea":yR(r),MJ(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=oM)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=B_e(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Fd]=t,e[T1]=r,cbe(e,t,!1,!1),t.stateNode=e;e:{switch(a=jU(n,r),n){case"dialog":Ui("cancel",e),Ui("close",e),i=r;break;case"iframe":case"object":case"embed":Ui("load",e),i=r;break;case"video":case"audio":for(i=0;i<aC.length;i++)Ui(aC[i],e);i=r;break;case"source":Ui("error",e),i=r;break;case"img":case"image":case"link":Ui("error",e),Ui("load",e),i=r;break;case"details":Ui("toggle",e),i=r;break;case"input":OJ(e,r),i=kU(e,r),Ui("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=vo({},r,{value:void 0}),Ui("invalid",e);break;case"textarea":NJ(e,r),i=FU(e,r),Ui("invalid",e);break;default:i=r}UU(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?H_e(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&U_e(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&v1(e,l):typeof l=="number"&&v1(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(g1.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ui("scroll",e):l!=null&&CG(e,o,l,a))}switch(n){case"input":yR(e),IJ(e,r,!1);break;case"textarea":yR(e),MJ(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bh(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ub(e,!!r.multiple,o,!1):r.defaultValue!=null&&ub(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=oM)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return as(t),null;case 6:if(e&&t.stateNode!=null)dbe(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(un(166));if(n=Qg(O1.current),Qg(Kd.current),OR(t)){if(r=t.stateNode,n=t.memoizedProps,r[Fd]=t,(o=r.nodeValue!==n)&&(e=Ql,e!==null))switch(e.tag){case 3:RR(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&RR(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Fd]=t,t.stateNode=r}return as(t),null;case 13:if(Wi(mo),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oo&&Wl!==null&&t.mode&1&&!(t.flags&128))Iye(),Gb(),t.flags|=98560,o=!1;else if(o=OR(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(un(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(un(317));o[Fd]=t}else Gb(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;as(t),o=!1}else Au!==null&&(Sj(Au),Au=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||mo.current&1?ma===0&&(ma=3):oW())),t.updateQueue!==null&&(t.flags|=4),as(t),null);case 4:return Yb(),pj(e,t),e===null&&w1(t.stateNode.containerInfo),as(t),null;case 10:return HG(t.type._context),as(t),null;case 17:return fl(t.type)&&aM(),as(t),null;case 19:if(Wi(mo),o=t.memoizedState,o===null)return as(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)fE(o,!1);else{if(ma!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=pM(e),a!==null){for(t.flags|=128,fE(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $i(mo,mo.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ho()>Kb&&(t.flags|=128,r=!0,fE(o,!1),t.lanes=4194304)}else{if(!r)if(e=pM(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fE(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!oo)return as(t),null}else 2*Ho()-o.renderingStartTime>Kb&&n!==1073741824&&(t.flags|=128,r=!0,fE(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ho(),t.sibling=null,n=mo.current,$i(mo,r?n&1|2:n&1),t):(as(t),null);case 22:case 23:return iW(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ul&1073741824&&(as(t),t.subtreeFlags&6&&(t.flags|=8192)):as(t),null;case 24:return null;case 25:return null}throw Error(un(156,t.tag))}function h8e(e,t){switch(FG(t),t.tag){case 1:return fl(t.type)&&aM(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yb(),Wi(dl),Wi(vs),YG(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return WG(t),null;case 13:if(Wi(mo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(un(340));Gb()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wi(mo),null;case 4:return Yb(),null;case 10:return HG(t.type._context),null;case 22:case 23:return iW(),null;case 24:return null;default:return null}}var MR=!1,ds=!1,g8e=typeof WeakSet=="function"?WeakSet:Set,Ln=null;function Qy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xo(e,t,r)}else n.current=null}function mj(e,t,n){try{n()}catch(r){xo(e,t,r)}}var bee=!1;function v8e(e,t){if(XU=nM,e=gye(),LG(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ZU={focusedElem:e,selectionRange:n},nM=!1,Ln=t;Ln!==null;)if(t=Ln,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ln=e;else for(;Ln!==null;){t=Ln;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,v=h.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:wu(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(un(163))}}catch(S){xo(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Ln=e;break}Ln=t.return}return h=bee,bee=!1,h}function PC(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&mj(t,n,o)}i=i.next}while(i!==r)}}function XP(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 hj(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 fbe(e){var t=e.alternate;t!==null&&(e.alternate=null,fbe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fd],delete t[T1],delete t[tj],delete t[J6e],delete t[e8e])),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 pbe(e){return e.tag===5||e.tag===3||e.tag===4}function See(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pbe(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 gj(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=oM));else if(r!==4&&(e=e.child,e!==null))for(gj(e,t,n),e=e.sibling;e!==null;)gj(e,t,n),e=e.sibling}function vj(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(vj(e,t,n),e=e.sibling;e!==null;)vj(e,t,n),e=e.sibling}var Ba=null,Ru=!1;function sm(e,t,n){for(n=n.child;n!==null;)mbe(e,t,n),n=n.sibling}function mbe(e,t,n){if(qd&&typeof qd.onCommitFiberUnmount=="function")try{qd.onCommitFiberUnmount(zP,n)}catch{}switch(n.tag){case 5:ds||Qy(n,t);case 6:var r=Ba,i=Ru;Ba=null,sm(e,t,n),Ba=r,Ru=i,Ba!==null&&(Ru?(e=Ba,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ba.removeChild(n.stateNode));break;case 18:Ba!==null&&(Ru?(e=Ba,n=n.stateNode,e.nodeType===8?L3(e.parentNode,n):e.nodeType===1&&L3(e,n),S1(e)):L3(Ba,n.stateNode));break;case 4:r=Ba,i=Ru,Ba=n.stateNode.containerInfo,Ru=!0,sm(e,t,n),Ba=r,Ru=i;break;case 0:case 11:case 14:case 15:if(!ds&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&mj(n,t,a),i=i.next}while(i!==r)}sm(e,t,n);break;case 1:if(!ds&&(Qy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){xo(n,t,s)}sm(e,t,n);break;case 21:sm(e,t,n);break;case 22:n.mode&1?(ds=(r=ds)||n.memoizedState!==null,sm(e,t,n),ds=r):sm(e,t,n);break;default:sm(e,t,n)}}function Eee(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new g8e),t.forEach(function(r){var i=T8e.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vu(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Ba=s.stateNode,Ru=!1;break e;case 3:Ba=s.stateNode.containerInfo,Ru=!0;break e;case 4:Ba=s.stateNode.containerInfo,Ru=!0;break e}s=s.return}if(Ba===null)throw Error(un(160));mbe(o,a,i),Ba=null,Ru=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){xo(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hbe(t,e),t=t.sibling}function hbe(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),Cd(e),r&4){try{PC(3,e,e.return),XP(3,e)}catch(g){xo(e,e.return,g)}try{PC(5,e,e.return)}catch(g){xo(e,e.return,g)}}break;case 1:vu(t,e),Cd(e),r&512&&n!==null&&Qy(n,n.return);break;case 5:if(vu(t,e),Cd(e),r&512&&n!==null&&Qy(n,n.return),e.flags&32){var i=e.stateNode;try{v1(i,"")}catch(g){xo(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&$_e(i,o),jU(s,a);var c=jU(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?H_e(i,d):u==="dangerouslySetInnerHTML"?U_e(i,d):u==="children"?v1(i,d):CG(i,u,d,c)}switch(s){case"input":LU(i,o);break;case"textarea":F_e(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ub(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?ub(i,!!o.multiple,o.defaultValue,!0):ub(i,!!o.multiple,o.multiple?[]:"",!1))}i[T1]=o}catch(g){xo(e,e.return,g)}}break;case 6:if(vu(t,e),Cd(e),r&4){if(e.stateNode===null)throw Error(un(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){xo(e,e.return,g)}}break;case 3:if(vu(t,e),Cd(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{S1(t.containerInfo)}catch(g){xo(e,e.return,g)}break;case 4:vu(t,e),Cd(e);break;case 13:vu(t,e),Cd(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(nW=Ho())),r&4&&Eee(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(ds=(c=ds)||u,vu(t,e),ds=c):vu(t,e),Cd(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Ln=e,u=e.child;u!==null;){for(d=Ln=u;Ln!==null;){switch(f=Ln,p=f.child,f.tag){case 0:case 11:case 14:case 15:PC(4,f,f.return);break;case 1:Qy(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){xo(r,n,g)}}break;case 5:Qy(f,f.return);break;case 22:if(f.memoizedState!==null){wee(d);continue}}p!==null?(p.return=f,Ln=p):wee(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=j_e("display",a))}catch(g){xo(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){xo(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vu(t,e),Cd(e),r&4&&Eee(e);break;case 21:break;default:vu(t,e),Cd(e)}}function Cd(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(pbe(n)){var r=n;break e}n=n.return}throw Error(un(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(v1(i,""),r.flags&=-33);var o=See(e);vj(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=See(e);gj(e,s,a);break;default:throw Error(un(161))}}catch(l){xo(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _8e(e,t,n){Ln=e,gbe(e)}function gbe(e,t,n){for(var r=(e.mode&1)!==0;Ln!==null;){var i=Ln,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||MR;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||ds;s=MR;var c=ds;if(MR=a,(ds=l)&&!c)for(Ln=i;Ln!==null;)a=Ln,l=a.child,a.tag===22&&a.memoizedState!==null?xee(i):l!==null?(l.return=a,Ln=l):xee(i);for(;o!==null;)Ln=o,gbe(o),o=o.sibling;Ln=i,MR=s,ds=c}Cee(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ln=o):Cee(e)}}function Cee(e){for(;Ln!==null;){var t=Ln;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ds||XP(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ds)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:wu(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&see(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}see(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&S1(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(un(163))}ds||t.flags&512&&hj(t)}catch(f){xo(t,t.return,f)}}if(t===e){Ln=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ln=n;break}Ln=t.return}}function wee(e){for(;Ln!==null;){var t=Ln;if(t===e){Ln=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ln=n;break}Ln=t.return}}function xee(e){for(;Ln!==null;){var t=Ln;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{XP(4,t)}catch(l){xo(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){xo(t,i,l)}}var o=t.return;try{hj(t)}catch(l){xo(t,o,l)}break;case 5:var a=t.return;try{hj(t)}catch(l){xo(t,a,l)}}}catch(l){xo(t,t.return,l)}if(t===e){Ln=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Ln=s;break}Ln=t.return}}var y8e=Math.ceil,gM=Rp.ReactCurrentDispatcher,eW=Rp.ReactCurrentOwner,Hc=Rp.ReactCurrentBatchConfig,ri=0,Ma=null,ra=null,Ga=0,Ul=0,Xy=Ah(0),ma=0,A1=null,$v=0,ZP=0,tW=0,DC=null,al=null,nW=0,Kb=1/0,Ff=null,vM=!1,_j=null,ch=null,AR=!1,Gm=null,_M=0,kC=0,yj=null,wI=-1,xI=0;function $s(){return ri&6?Ho():wI!==-1?wI:wI=Ho()}function uh(e){return e.mode&1?ri&2&&Ga!==0?Ga&-Ga:n8e.transition!==null?(xI===0&&(xI=eye()),xI):(e=bi,e!==0||(e=window.event,e=e===void 0?16:sye(e.type)),e):1}function zu(e,t,n,r){if(50<kC)throw kC=0,yj=null,Error(un(185));tx(e,n,r),(!(ri&2)||e!==Ma)&&(e===Ma&&(!(ri&2)&&(ZP|=n),ma===4&&Lm(e,Ga)),pl(e,r),n===1&&ri===0&&!(t.mode&1)&&(Kb=Ho()+500,qP&&Ph()))}function pl(e,t){var n=e.callbackNode;n6e(e,t);var r=tM(e,e===Ma?Ga:0);if(r===0)n!==null&&DJ(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&DJ(n),t===1)e.tag===0?t8e(Tee.bind(null,e)):Tye(Tee.bind(null,e)),X6e(function(){!(ri&6)&&Ph()}),n=null;else{switch(tye(r)){case 1:n=OG;break;case 4:n=Z_e;break;case 16:n=eM;break;case 536870912:n=J_e;break;default:n=eM}n=wbe(n,vbe.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vbe(e,t){if(wI=-1,xI=0,ri&6)throw Error(un(327));var n=e.callbackNode;if(hb()&&e.callbackNode!==n)return null;var r=tM(e,e===Ma?Ga:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=yM(e,r);else{t=r;var i=ri;ri|=2;var o=ybe();(Ma!==e||Ga!==t)&&(Ff=null,Kb=Ho()+500,gv(e,t));do try{E8e();break}catch(s){_be(e,s)}while(!0);jG(),gM.current=o,ri=i,ra!==null?t=0:(Ma=null,Ga=0,t=ma)}if(t!==0){if(t===2&&(i=WU(e),i!==0&&(r=i,t=bj(e,i))),t===1)throw n=A1,gv(e,0),Lm(e,r),pl(e,Ho()),n;if(t===6)Lm(e,r);else{if(i=e.current.alternate,!(r&30)&&!b8e(i)&&(t=yM(e,r),t===2&&(o=WU(e),o!==0&&(r=o,t=bj(e,o))),t===1))throw n=A1,gv(e,0),Lm(e,r),pl(e,Ho()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(un(345));case 2:Pg(e,al,Ff);break;case 3:if(Lm(e,r),(r&130023424)===r&&(t=nW+500-Ho(),10<t)){if(tM(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){$s(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ej(Pg.bind(null,e,al,Ff),t);break}Pg(e,al,Ff);break;case 4:if(Lm(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Hu(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Ho()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y8e(r/1960))-r,10<r){e.timeoutHandle=ej(Pg.bind(null,e,al,Ff),r);break}Pg(e,al,Ff);break;case 5:Pg(e,al,Ff);break;default:throw Error(un(329))}}}return pl(e,Ho()),e.callbackNode===n?vbe.bind(null,e):null}function bj(e,t){var n=DC;return e.current.memoizedState.isDehydrated&&(gv(e,t).flags|=256),e=yM(e,t),e!==2&&(t=al,al=n,t!==null&&Sj(t)),e}function Sj(e){al===null?al=e:al.push.apply(al,e)}function b8e(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ju(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lm(e,t){for(t&=~tW,t&=~ZP,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Hu(t),r=1<<n;e[n]=-1,t&=~r}}function Tee(e){if(ri&6)throw Error(un(327));hb();var t=tM(e,0);if(!(t&1))return pl(e,Ho()),null;var n=yM(e,t);if(e.tag!==0&&n===2){var r=WU(e);r!==0&&(t=r,n=bj(e,r))}if(n===1)throw n=A1,gv(e,0),Lm(e,t),pl(e,Ho()),n;if(n===6)throw Error(un(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pg(e,al,Ff),pl(e,Ho()),null}function rW(e,t){var n=ri;ri|=1;try{return e(t)}finally{ri=n,ri===0&&(Kb=Ho()+500,qP&&Ph())}}function Fv(e){Gm!==null&&Gm.tag===0&&!(ri&6)&&hb();var t=ri;ri|=1;var n=Hc.transition,r=bi;try{if(Hc.transition=null,bi=1,e)return e()}finally{bi=r,Hc.transition=n,ri=t,!(ri&6)&&Ph()}}function iW(){Ul=Xy.current,Wi(Xy)}function gv(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Q6e(n)),ra!==null)for(n=ra.return;n!==null;){var r=n;switch(FG(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&aM();break;case 3:Yb(),Wi(dl),Wi(vs),YG();break;case 5:WG(r);break;case 4:Yb();break;case 13:Wi(mo);break;case 19:Wi(mo);break;case 10:HG(r.type._context);break;case 22:case 23:iW()}n=n.return}if(Ma=e,ra=e=dh(e.current,null),Ga=Ul=t,ma=0,A1=null,tW=ZP=$v=0,al=DC=null,Kg!==null){for(t=0;t<Kg.length;t++)if(n=Kg[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Kg=null}return e}function _be(e,t){do{var n=ra;try{if(jG(),SI.current=hM,mM){for(var r=go.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mM=!1}if(Lv=0,Ra=ua=go=null,AC=!1,I1=0,eW.current=null,n===null||n.return===null){ma=1,A1=t,ra=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ga,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=pee(a);if(p!==null){p.flags&=-257,mee(p,a,s,o,t),p.mode&1&&fee(o,c,t),t=p,l=c;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break e}else{if(!(t&1)){fee(o,c,t),oW();break e}l=Error(un(426))}}else if(oo&&s.mode&1){var v=pee(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),mee(v,a,s,o,t),BG(qb(l,s));break e}}o=l=qb(l,s),ma!==4&&(ma=2),DC===null?DC=[o]:DC.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=tbe(o,l,t);aee(o,y);break e;case 1:s=l;var _=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ch===null||!ch.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=nbe(o,s,t);aee(o,S);break e}}o=o.return}while(o!==null)}Sbe(n)}catch(C){t=C,ra===n&&n!==null&&(ra=n=n.return);continue}break}while(!0)}function ybe(){var e=gM.current;return gM.current=hM,e===null?hM:e}function oW(){(ma===0||ma===3||ma===2)&&(ma=4),Ma===null||!($v&268435455)&&!(ZP&268435455)||Lm(Ma,Ga)}function yM(e,t){var n=ri;ri|=2;var r=ybe();(Ma!==e||Ga!==t)&&(Ff=null,gv(e,t));do try{S8e();break}catch(i){_be(e,i)}while(!0);if(jG(),ri=n,gM.current=r,ra!==null)throw Error(un(261));return Ma=null,Ga=0,ma}function S8e(){for(;ra!==null;)bbe(ra)}function E8e(){for(;ra!==null&&!YBe();)bbe(ra)}function bbe(e){var t=Cbe(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Sbe(e):ra=t,eW.current=null}function Sbe(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=h8e(n,t),n!==null){n.flags&=32767,ra=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ma=6,ra=null;return}}else if(n=m8e(n,t,Ul),n!==null){ra=n;return}if(t=t.sibling,t!==null){ra=t;return}ra=t=e}while(t!==null);ma===0&&(ma=5)}function Pg(e,t,n){var r=bi,i=Hc.transition;try{Hc.transition=null,bi=1,C8e(e,t,n,r)}finally{Hc.transition=i,bi=r}return null}function C8e(e,t,n,r){do hb();while(Gm!==null);if(ri&6)throw Error(un(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(un(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(r6e(e,o),e===Ma&&(ra=Ma=null,Ga=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||AR||(AR=!0,wbe(eM,function(){return hb(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Hc.transition,Hc.transition=null;var a=bi;bi=1;var s=ri;ri|=4,eW.current=null,v8e(e,n),hbe(n,e),z6e(ZU),nM=!!XU,ZU=XU=null,e.current=n,_8e(n),qBe(),ri=s,bi=a,Hc.transition=o}else e.current=n;if(AR&&(AR=!1,Gm=e,_M=i),o=e.pendingLanes,o===0&&(ch=null),XBe(n.stateNode),pl(e,Ho()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(vM)throw vM=!1,e=_j,_j=null,e;return _M&1&&e.tag!==0&&hb(),o=e.pendingLanes,o&1?e===yj?kC++:(kC=0,yj=e):kC=0,Ph(),null}function hb(){if(Gm!==null){var e=tye(_M),t=Hc.transition,n=bi;try{if(Hc.transition=null,bi=16>e?16:e,Gm===null)var r=!1;else{if(e=Gm,Gm=null,_M=0,ri&6)throw Error(un(331));var i=ri;for(ri|=4,Ln=e.current;Ln!==null;){var o=Ln,a=o.child;if(Ln.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Ln=c;Ln!==null;){var u=Ln;switch(u.tag){case 0:case 11:case 15:PC(8,u,o)}var d=u.child;if(d!==null)d.return=u,Ln=d;else for(;Ln!==null;){u=Ln;var f=u.sibling,p=u.return;if(fbe(u),u===c){Ln=null;break}if(f!==null){f.return=p,Ln=f;break}Ln=p}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(g!==null)}}Ln=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Ln=a;else e:for(;Ln!==null;){if(o=Ln,o.flags&2048)switch(o.tag){case 0:case 11:case 15:PC(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,Ln=y;break e}Ln=o.return}}var _=e.current;for(Ln=_;Ln!==null;){a=Ln;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,Ln=b;else e:for(a=_;Ln!==null;){if(s=Ln,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:XP(9,s)}}catch(C){xo(s,s.return,C)}if(s===a){Ln=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Ln=S;break e}Ln=s.return}}if(ri=i,Ph(),qd&&typeof qd.onPostCommitFiberRoot=="function")try{qd.onPostCommitFiberRoot(zP,e)}catch{}r=!0}return r}finally{bi=n,Hc.transition=t}}return!1}function Ree(e,t,n){t=qb(n,t),t=tbe(e,t,1),e=lh(e,t,1),t=$s(),e!==null&&(tx(e,1,t),pl(e,t))}function xo(e,t,n){if(e.tag===3)Ree(e,e,n);else for(;t!==null;){if(t.tag===3){Ree(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ch===null||!ch.has(r))){e=qb(n,e),e=nbe(t,e,1),t=lh(t,e,1),e=$s(),t!==null&&(tx(t,1,e),pl(t,e));break}}t=t.return}}function w8e(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=$s(),e.pingedLanes|=e.suspendedLanes&n,Ma===e&&(Ga&n)===n&&(ma===4||ma===3&&(Ga&130023424)===Ga&&500>Ho()-nW?gv(e,0):tW|=n),pl(e,t)}function Ebe(e,t){t===0&&(e.mode&1?(t=ER,ER<<=1,!(ER&130023424)&&(ER=4194304)):t=1);var n=$s();e=mp(e,t),e!==null&&(tx(e,t,n),pl(e,n))}function x8e(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ebe(e,n)}function T8e(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(un(314))}r!==null&&r.delete(t),Ebe(e,n)}var Cbe;Cbe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dl.current)ll=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ll=!1,p8e(e,t,n);ll=!!(e.flags&131072)}else ll=!1,oo&&t.flags&1048576&&Rye(t,cM,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;CI(e,t),e=t.pendingProps;var i=Vb(t,vs.current);mb(t,n),i=KG(null,t,r,e,i,n);var o=QG();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fl(r)?(o=!0,sM(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,VG(t),i.updater=QP,t.stateNode=i,i._reactInternals=t,sj(t,r,e,n),t=uj(null,t,r,!0,o,n)):(t.tag=0,oo&&o&&$G(t),Is(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(CI(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=O8e(r),e=wu(r,e),i){case 0:t=cj(null,t,r,e,n);break e;case 1:t=vee(null,t,r,e,n);break e;case 11:t=hee(null,t,r,e,n);break e;case 14:t=gee(null,t,r,wu(r.type,e),n);break e}throw Error(un(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wu(r,i),cj(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wu(r,i),vee(e,t,r,i,n);case 3:e:{if(abe(t),e===null)throw Error(un(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Pye(e,t),fM(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=qb(Error(un(423)),t),t=_ee(e,t,r,n,i);break e}else if(r!==i){i=qb(Error(un(424)),t),t=_ee(e,t,r,n,i);break e}else for(Wl=sh(t.stateNode.containerInfo.firstChild),Ql=t,oo=!0,Au=null,n=Mye(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gb(),r===i){t=hp(e,t,n);break e}Is(e,t,r,n)}t=t.child}return t;case 5:return Dye(t),e===null&&ij(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,JU(r,i)?a=null:o!==null&&JU(r,o)&&(t.flags|=32),obe(e,t),Is(e,t,a,n),t.child;case 6:return e===null&&ij(t),null;case 13:return sbe(e,t,n);case 4:return GG(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wb(t,null,r,n):Is(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wu(r,i),hee(e,t,r,i,n);case 7:return Is(e,t,t.pendingProps,n),t.child;case 8:return Is(e,t,t.pendingProps.children,n),t.child;case 12:return Is(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,$i(uM,r._currentValue),r._currentValue=a,o!==null)if(Ju(o.value,a)){if(o.children===i.children&&!dl.current){t=hp(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=tp(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),oj(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(un(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),oj(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Is(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,mb(t,n),i=Gc(i),r=r(i),t.flags|=1,Is(e,t,r,n),t.child;case 14:return r=t.type,i=wu(r,t.pendingProps),i=wu(r.type,i),gee(e,t,r,i,n);case 15:return rbe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wu(r,i),CI(e,t),t.tag=1,fl(r)?(e=!0,sM(t)):e=!1,mb(t,n),ebe(t,r,i),sj(t,r,i,n),uj(null,t,r,!0,e,n);case 19:return lbe(e,t,n);case 22:return ibe(e,t,n)}throw Error(un(156,t.tag))};function wbe(e,t){return X_e(e,t)}function R8e(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 Bc(e,t,n,r){return new R8e(e,t,n,r)}function aW(e){return e=e.prototype,!(!e||!e.isReactComponent)}function O8e(e){if(typeof e=="function")return aW(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xG)return 11;if(e===TG)return 14}return 2}function dh(e,t){var n=e.alternate;return n===null?(n=Bc(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 TI(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")aW(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case jy:return vv(n.children,i,o,t);case wG:a=8,i|=8;break;case MU:return e=Bc(12,n,t,i|2),e.elementType=MU,e.lanes=o,e;case AU:return e=Bc(13,n,t,i),e.elementType=AU,e.lanes=o,e;case PU:return e=Bc(19,n,t,i),e.elementType=PU,e.lanes=o,e;case D_e:return JP(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A_e:a=10;break e;case P_e:a=9;break e;case xG:a=11;break e;case TG:a=14;break e;case Im:a=16,r=null;break e}throw Error(un(130,e==null?e:typeof e,""))}return t=Bc(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function vv(e,t,n,r){return e=Bc(7,e,r,t),e.lanes=n,e}function JP(e,t,n,r){return e=Bc(22,e,r,t),e.elementType=D_e,e.lanes=n,e.stateNode={isHidden:!1},e}function V3(e,t,n){return e=Bc(6,e,null,t),e.lanes=n,e}function G3(e,t,n){return t=Bc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I8e(e,t,n,r,i){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=x3(0),this.expirationTimes=x3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=x3(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function sW(e,t,n,r,i,o,a,s,l){return e=new I8e(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VG(o),e}function N8e(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uy,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function xbe(e){if(!e)return Sh;e=e._reactInternals;e:{if(v_(e)!==e||e.tag!==1)throw Error(un(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(fl(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(un(171))}if(e.tag===1){var n=e.type;if(fl(n))return xye(e,n,t)}return t}function Tbe(e,t,n,r,i,o,a,s,l){return e=sW(n,r,!0,e,i,o,a,s,l),e.context=xbe(null),n=e.current,r=$s(),i=uh(n),o=tp(r,i),o.callback=t??null,lh(n,o,i),e.current.lanes=i,tx(e,i,r),pl(e,r),e}function e2(e,t,n,r){var i=t.current,o=$s(),a=uh(i);return n=xbe(n),t.context===null?t.context=n:t.pendingContext=n,t=tp(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=lh(i,t,a),e!==null&&(zu(e,i,a,o),bI(e,i,a)),a}function bM(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Oee(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lW(e,t){Oee(e,t),(e=e.alternate)&&Oee(e,t)}function M8e(){return null}var Rbe=typeof reportError=="function"?reportError:function(e){console.error(e)};function cW(e){this._internalRoot=e}t2.prototype.render=cW.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(un(409));e2(e,t,null,null)};t2.prototype.unmount=cW.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fv(function(){e2(null,e,null,null)}),t[pp]=null}};function t2(e){this._internalRoot=e}t2.prototype.unstable_scheduleHydration=function(e){if(e){var t=iye();e={blockedOn:null,target:e,priority:t};for(var n=0;n<km.length&&t!==0&&t<km[n].priority;n++);km.splice(n,0,e),n===0&&aye(e)}};function uW(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function n2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Iee(){}function A8e(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=bM(a);o.call(c)}}var a=Tbe(t,r,e,0,null,!1,!1,"",Iee);return e._reactRootContainer=a,e[pp]=a.current,w1(e.nodeType===8?e.parentNode:e),Fv(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=bM(l);s.call(c)}}var l=sW(e,0,!1,null,null,!1,!1,"",Iee);return e._reactRootContainer=l,e[pp]=l.current,w1(e.nodeType===8?e.parentNode:e),Fv(function(){e2(t,l,n,r)}),l}function r2(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=bM(a);s.call(l)}}e2(t,a,e,i)}else a=A8e(n,t,e,i,r);return bM(a)}nye=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=oC(t.pendingLanes);n!==0&&(IG(t,n|1),pl(t,Ho()),!(ri&6)&&(Kb=Ho()+500,Ph()))}break;case 13:Fv(function(){var r=mp(e,1);if(r!==null){var i=$s();zu(r,e,1,i)}}),lW(e,1)}};NG=function(e){if(e.tag===13){var t=mp(e,134217728);if(t!==null){var n=$s();zu(t,e,134217728,n)}lW(e,134217728)}};rye=function(e){if(e.tag===13){var t=uh(e),n=mp(e,t);if(n!==null){var r=$s();zu(n,e,t,r)}lW(e,t)}};iye=function(){return bi};oye=function(e,t){var n=bi;try{return bi=e,t()}finally{bi=n}};zU=function(e,t,n){switch(t){case"input":if(LU(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=YP(r);if(!i)throw Error(un(90));L_e(r),LU(r,i)}}}break;case"textarea":F_e(e,n);break;case"select":t=n.value,t!=null&&ub(e,!!n.multiple,t,!1)}};G_e=rW;W_e=Fv;var P8e={usingClientEntryPoint:!1,Events:[rx,Gy,YP,z_e,V_e,rW]},pE={findFiberByHostInstance:qg,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},D8e={bundleType:pE.bundleType,version:pE.version,rendererPackageName:pE.rendererPackageName,rendererConfig:pE.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rp.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=K_e(e),e===null?null:e.stateNode},findFiberByHostInstance:pE.findFiberByHostInstance||M8e,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var PR=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!PR.isDisabled&&PR.supportsFiber)try{zP=PR.inject(D8e),qd=PR}catch{}}ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P8e;ac.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uW(t))throw Error(un(200));return N8e(e,t,null,n)};ac.createRoot=function(e,t){if(!uW(e))throw Error(un(299));var n=!1,r="",i=Rbe;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=sW(e,1,!1,null,null,n,!1,r,i),e[pp]=t.current,w1(e.nodeType===8?e.parentNode:e),new cW(t)};ac.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(un(188)):(e=Object.keys(e).join(","),Error(un(268,e)));return e=K_e(t),e=e===null?null:e.stateNode,e};ac.flushSync=function(e){return Fv(e)};ac.hydrate=function(e,t,n){if(!n2(t))throw Error(un(200));return r2(null,e,t,!0,n)};ac.hydrateRoot=function(e,t,n){if(!uW(e))throw Error(un(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Rbe;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Tbe(t,null,e,1,n??null,i,!1,o,a),e[pp]=t.current,w1(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new t2(t)};ac.render=function(e,t,n){if(!n2(t))throw Error(un(200));return r2(null,e,t,!1,n)};ac.unmountComponentAtNode=function(e){if(!n2(e))throw Error(un(40));return e._reactRootContainer?(Fv(function(){r2(null,null,e,!1,function(){e._reactRootContainer=null,e[pp]=null})}),!0):!1};ac.unstable_batchedUpdates=rW;ac.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!n2(n))throw Error(un(200));if(e==null||e._reactInternals===void 0)throw Error(un(38));return r2(e,t,n,!1,r)};ac.version="18.3.1-next-f1338f8080-20240426";function Obe(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Obe)}catch(e){console.error(e)}}Obe(),O_e.exports=ac;var Ha=O_e.exports;const P1=yi(Ha),Ibe=jP({__proto__:null,default:P1},[Ha]);var Nee=Ha;IU.createRoot=Nee.createRoot,IU.hydrateRoot=Nee.hydrateRoot;const k8e={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},Mee=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(k8e?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},Nbe=e=>e?Mee(e):Mee;var Mbe={exports:{}},Abe={},Pbe={exports:{}},Dbe={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Qb=m;function L8e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $8e=typeof Object.is=="function"?Object.is:L8e,F8e=Qb.useState,B8e=Qb.useEffect,U8e=Qb.useLayoutEffect,j8e=Qb.useDebugValue;function H8e(e,t){var n=t(),r=F8e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return U8e(function(){i.value=n,i.getSnapshot=t,W3(i)&&o({inst:i})},[e,n,t]),B8e(function(){return W3(i)&&o({inst:i}),e(function(){W3(i)&&o({inst:i})})},[e]),j8e(n),n}function W3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$8e(e,n)}catch{return!0}}function z8e(e,t){return t()}var V8e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?z8e:H8e;Dbe.useSyncExternalStore=Qb.useSyncExternalStore!==void 0?Qb.useSyncExternalStore:V8e;Pbe.exports=Dbe;var kbe=Pbe.exports;/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var i2=m,G8e=kbe;function W8e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Y8e=typeof Object.is=="function"?Object.is:W8e,q8e=G8e.useSyncExternalStore,K8e=i2.useRef,Q8e=i2.useEffect,X8e=i2.useMemo,Z8e=i2.useDebugValue;Abe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=K8e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=X8e(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),i!==void 0&&a.hasValue){var h=a.value;if(i(h,p))return d=h}return d=p}if(h=d,Y8e(u,p))return h;var g=r(p);return i!==void 0&&i(h,g)?h:(u=p,d=g)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=q8e(e,o[0],o[1]);return Q8e(function(){a.hasValue=!0,a.value=s},[s]),Z8e(s),s};Mbe.exports=Abe;var J8e=Mbe.exports;const Lbe=yi(J8e),$be={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:e5e}=de,{useSyncExternalStoreWithSelector:t5e}=Lbe;let Aee=!1;const n5e=e=>e;function r5e(e,t=n5e,n){($be?"open":void 0)!=="production"&&n&&!Aee&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Aee=!0);const r=t5e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return e5e(r),r}const i5e=e=>{($be?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Nbe(e):e,n=(r,i)=>r5e(t,r,i);return Object.assign(n,t),n},_l=e=>i5e,RI={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},Ej=new Map,DR=e=>{const t=Ej.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},o5e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Ej.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return Ej.set(n.name,i),{type:"tracked",store:e,...i}},a5e=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:s,...l}=t;let c;try{c=(o??(RI?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(RI?"open":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...d}=o5e(s,c,l);let f=!0;i.setState=(g,v,y)=>{const _=n(g,v);if(!f)return _;const b=y===void 0?{type:a||"anonymous"}:typeof y=="string"?{type:y}:y;return s===void 0?(u==null||u.send(b,r()),_):(u==null||u.send({...b,type:`${s}/${b.type}`},{...DR(l.name),[s]:i.getState()}),_)};const p=(...g)=>{const v=f;f=!1,n(...g),f=v},h=e(i.setState,r,i);if(d.type==="untracked"?u==null||u.init(h):(d.stores[d.store]=i,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([g,v])=>[g,g===d.store?h:v.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const v=i.dispatch;i.dispatch=(...y)=>{(RI?"open":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...y)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Y3(g.payload,y=>{if(y.type==="__setState"){if(s===void 0){p(y.state);return}Object.keys(y.state).length!==1&&console.error(`
|
||
[zustand devtools middleware] Unsupported __setState action format.
|
||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||
`);const _=y.state[s];if(_==null)return;JSON.stringify(i.getState())!==JSON.stringify(_)&&p(_);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return p(h),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(DR(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(DR(l.name));case"ROLLBACK":return Y3(g.state,y=>{if(s===void 0){p(y),u==null||u.init(i.getState());return}p(y[s]),u==null||u.init(DR(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Y3(g.state,y=>{if(s===void 0){p(y);return}JSON.stringify(i.getState())!==JSON.stringify(y[s])&&p(y[s])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,_=(v=y.computedStates.slice(-1)[0])==null?void 0:v.state;if(!_)return;p(s===void 0?_:_[s]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return f=!f}return}}),h},eu=a5e,Y3=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function s5e(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const a=l=>l===null?null:JSON.parse(l,void 0),s=(o=n.getItem(i))!=null?o:null;return s instanceof Promise?s.then(a):a(s)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const D1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return D1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return D1(r)(n)}}}},l5e=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=D1(o.serialize),d=()=>{const v=o.partialize({...r()});let y;const _=u({state:v,version:o.version}).then(b=>c.setItem(o.name,b)).catch(b=>{y=b});if(y)throw y;return _},f=i.setState;i.setState=(v,y)=>{f(v,y),d()};const p=e((...v)=>{n(...v),d()},r,i);let h;const g=()=>{var v;if(!c)return;a=!1,s.forEach(_=>_(r()));const y=((v=o.onRehydrateStorage)==null?void 0:v.call(o,r()))||void 0;return D1(c.getItem.bind(c))(o.name).then(_=>{if(_)return o.deserialize(_)}).then(_=>{if(_)if(typeof _.version=="number"&&_.version!==o.version){if(o.migrate)return o.migrate(_.state,_.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return _.state}).then(_=>{var b;return h=o.merge(_,(b=r())!=null?b:p),n(h,!0),d()}).then(()=>{y==null||y(h,void 0),a=!0,l.forEach(_=>_(h))}).catch(_=>{y==null||y(void 0,_)})};return i.persist={setOptions:v=>{o={...o,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),h||p},c5e=(e,t)=>(n,r,i)=>{let o={storage:s5e(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},a=!1;const s=new Set,l=new Set;let c=o.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=o.partialize({...r()});return c.setItem(o.name,{state:g,version:o.version})},d=i.setState;i.setState=(g,v)=>{d(g,v),u()};const f=e((...g)=>{n(...g),u()},r,i);i.getInitialState=()=>f;let p;const h=()=>{var g,v;if(!c)return;a=!1,s.forEach(_=>{var b;return _((b=r())!=null?b:f)});const y=((v=o.onRehydrateStorage)==null?void 0:v.call(o,(g=r())!=null?g:f))||void 0;return D1(c.getItem.bind(c))(o.name).then(_=>{if(_)if(typeof _.version=="number"&&_.version!==o.version){if(o.migrate)return[!0,o.migrate(_.state,_.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,_.state];return[!1,void 0]}).then(_=>{var b;const[S,C]=_;if(p=o.merge(C,(b=r())!=null?b:f),n(p,!0),S)return u()}).then(()=>{y==null||y(p,void 0),p=r(),a=!0,l.forEach(_=>_(p))}).catch(_=>{y==null||y(void 0,_)})};return i.persist={setOptions:g=>{o={...o,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},o.skipHydration||h(),p||f},u5e=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((RI?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),l5e(e,t)):c5e(e,t),yl=u5e;var Fbe=Symbol.for("immer-nothing"),Pee=Symbol.for("immer-draftable"),Jl=Symbol.for("immer-state");function Pu(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xb=Object.getPrototypeOf;function Zb(e){return!!e&&!!e[Jl]}function Bv(e){var t;return e?Bbe(e)||Array.isArray(e)||!!e[Pee]||!!((t=e.constructor)!=null&&t[Pee])||a2(e)||s2(e):!1}var d5e=Object.prototype.constructor.toString();function Bbe(e){if(!e||typeof e!="object")return!1;const t=Xb(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===d5e}function SM(e,t){o2(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function o2(e){const t=e[Jl];return t?t.type_:Array.isArray(e)?1:a2(e)?2:s2(e)?3:0}function Cj(e,t){return o2(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ube(e,t,n){const r=o2(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function f5e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function a2(e){return e instanceof Map}function s2(e){return e instanceof Set}function Dg(e){return e.copy_||e.base_}function wj(e,t){if(a2(e))return new Map(e);if(s2(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Bbe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Jl];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Xb(e),r)}else{const r=Xb(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function dW(e,t=!1){return l2(e)||Zb(e)||!Bv(e)||(o2(e)>1&&(e.set=e.add=e.clear=e.delete=p5e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>dW(r,!0))),e}function p5e(){Pu(2)}function l2(e){return Object.isFrozen(e)}var m5e={};function Uv(e){const t=m5e[e];return t||Pu(0,e),t}var k1;function jbe(){return k1}function h5e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Dee(e,t){t&&(Uv("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xj(e){Tj(e),e.drafts_.forEach(g5e),e.drafts_=null}function Tj(e){e===k1&&(k1=e.parent_)}function kee(e){return k1=h5e(k1,e)}function g5e(e){const t=e[Jl];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lee(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Jl].modified_&&(xj(t),Pu(4)),Bv(e)&&(e=EM(t,e),t.parent_||CM(t,e)),t.patches_&&Uv("Patches").generateReplacementPatches_(n[Jl].base_,e,t.patches_,t.inversePatches_)):e=EM(t,n,[]),xj(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Fbe?e:void 0}function EM(e,t,n){if(l2(t))return t;const r=t[Jl];if(!r)return SM(t,(i,o)=>$ee(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return CM(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),SM(o,(s,l)=>$ee(e,r,i,s,l,n,a)),CM(e,i,!1),n&&e.patches_&&Uv("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function $ee(e,t,n,r,i,o,a){if(Zb(i)){const s=o&&t&&t.type_!==3&&!Cj(t.assigned_,r)?o.concat(r):void 0,l=EM(e,i,s);if(Ube(n,r,l),Zb(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Bv(i)&&!l2(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;EM(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&CM(e,i)}}function CM(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dW(t,n)}function v5e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:jbe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=fW;n&&(i=[r],o=L1);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var fW={get(e,t){if(t===Jl)return e;const n=Dg(e);if(!Cj(n,t))return _5e(e,n,t);const r=n[t];return e.finalized_||!Bv(r)?r:r===q3(e.base_,t)?(K3(e),e.copy_[t]=Oj(r,e)):r},has(e,t){return t in Dg(e)},ownKeys(e){return Reflect.ownKeys(Dg(e))},set(e,t,n){const r=Hbe(Dg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=q3(Dg(e),t),o=i==null?void 0:i[Jl];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(f5e(n,i)&&(n!==void 0||Cj(e.base_,t)))return!0;K3(e),Rj(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return q3(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,K3(e),Rj(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Dg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Pu(11)},getPrototypeOf(e){return Xb(e.base_)},setPrototypeOf(){Pu(12)}},L1={};SM(fW,(e,t)=>{L1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});L1.deleteProperty=function(e,t){return L1.set.call(this,e,t,void 0)};L1.set=function(e,t,n){return fW.set.call(this,e[0],t,n,e[0])};function q3(e,t){const n=e[Jl];return(n?Dg(n):e)[t]}function _5e(e,t,n){var i;const r=Hbe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Hbe(e,t){if(!(t in e))return;let n=Xb(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Xb(n)}}function Rj(e){e.modified_||(e.modified_=!0,e.parent_&&Rj(e.parent_))}function K3(e){e.copy_||(e.copy_=wj(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var y5e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Pu(6),r!==void 0&&typeof r!="function"&&Pu(7);let i;if(Bv(t)){const o=kee(this),a=Oj(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?xj(o):Tj(o)}return Dee(o,r),Lee(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Fbe&&(i=void 0),this.autoFreeze_&&dW(i,!0),r){const o=[],a=[];Uv("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Pu(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Bv(e)||Pu(8),Zb(e)&&(e=b5e(e));const t=kee(this),n=Oj(e,void 0);return n[Jl].isManual_=!0,Tj(t),n}finishDraft(e,t){const n=e&&e[Jl];(!n||!n.isManual_)&&Pu(9);const{scope_:r}=n;return Dee(r,t),Lee(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Uv("Patches").applyPatches_;return Zb(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Oj(e,t){const n=a2(e)?Uv("MapSet").proxyMap_(e,t):s2(e)?Uv("MapSet").proxySet_(e,t):v5e(e,t);return(t?t.scope_:jbe()).drafts_.push(n),n}function b5e(e){return Zb(e)||Pu(10,e),zbe(e)}function zbe(e){if(!Bv(e)||l2(e))return e;const t=e[Jl];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=wj(e,t.scope_.immer_.useStrictShallowCopy_)}else n=wj(e,!0);return SM(n,(r,i)=>{Ube(n,r,zbe(i))}),t&&(t.finalized_=!1),n}var ec=new y5e,S5e=ec.produce;ec.produceWithPatches.bind(ec);ec.setAutoFreeze.bind(ec);ec.setUseStrictShallowCopy.bind(ec);ec.applyPatches.bind(ec);ec.createDraft.bind(ec);ec.finishDraft.bind(ec);const E5e=e=>(t,n,r)=>(r.setState=(i,o,...a)=>{const s=typeof i=="function"?S5e(i):i;return t(s,o,...a)},e(r.setState,n,r)),tu=E5e,C5e="dev",Vbe="open",Fee="prod",w5e="quanjing",Gbe="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let zo;switch(Gbe){case"dev":zo={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:C5e,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/protocol",SHOW_SWITCH_SERVER:!0,SHOW_SCAN_LOGIN:!0,LOGO_URL:"http://127.0.0.1:9003/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0};break;case"prod-open":zo={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:Vbe,CLIENT:"WEB",USER_PRIVACY_URL:"http://127.0.0.1:9003/protocol",SHOW_SWITCH_SERVER:!0,SHOW_SCAN_LOGIN:!0,LOGO_URL:"http://127.0.0.1:9003/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0};break;case"prod-quanjing":zo={API_URL:"https://kf.gxzgt.com:9003",MQTT_URL:"wss://kf.gxzgt.com:9003/websocket",HTML_URL:"https://kf.gxzgt.com:9003",IS_DEBUG:!1,SERVER_MODE:w5e,CLIENT:"WEB",USER_PRIVACY_URL:"https://zgtapp.zwfw.gxzf.gov.cn/zgt-h5/userProtocol/index.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!1,LOGO_URL:"https://kf.gxzgt.com:9003/assets/images/logos/zhiguitong.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!1,SHOW_CREATE_LLM:!1,SHOW_CONTACTS:!1,SHOW_FAVORITE:!1};break;case"prod-web":zo={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:Fee,CLIENT:"WEB",USER_PRIVACY_URL:"https://www.weiyuai.cn/protocol.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!0,LOGO_URL:"https://www.weiyuai.cn/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0};break;default:zo={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:Fee,CLIENT:"ELECTRON",USER_PRIVACY_URL:"https://www.weiyuai.cn/protocol.html",SHOW_SWITCH_SERVER:!1,SHOW_SCAN_LOGIN:!0,LOGO_URL:"https://www.weiyuai.cn/logo.png",LOGO_NAME:"微语",SHOW_CREATE_GROUP:!0,SHOW_CREATE_LLM:!0,SHOW_CONTACTS:!0,SHOW_FAVORITE:!0}}console.log("config.API_BASE_URL: ",Gbe,zo);const Aa=navigator.userAgent.toLowerCase().indexOf("electron")>-1,Q3=zo.API_URL,Bee=zo.MQTT_URL;zo.HTML_URL;const Jb=zo.IS_DEBUG,x5e=zo.SERVER_MODE,Pi=zo.CLIENT,T5e=zo.USER_PRIVACY_URL,R5e=zo.SHOW_SWITCH_SERVER,O5e=zo.SHOW_SCAN_LOGIN,I5e=zo.LOGO_URL,N5e=zo.LOGO_NAME;zo.SHOW_CREATE_GROUP;zo.SHOW_CREATE_LLM;zo.SHOW_CONTACTS;zo.SHOW_FAVORITE;const Yc="BYTEDESK",Uee="locale",jee="mode",gb="team",jv="agent",wM="personal",Hee="i18n.",kR="i18n.new.message",Wbe="ANONYMOUS",jl="bytedesk_login_credentials",zee="THEME_MODE_TYPE",Vee="THEME_NAME_TYPE",OI="PLAY_AUDIO",LC="NETWORK_STATUS_NOTIFICATION",$C="CONFIG_ENABLED_AGENT",II="CONFIG_API_URL_AGENT",NI="CONFIG_WEBSOCKET_URL_AGENT",X3="CONFIG_HTML_URL_AGENT",Zy="CONFIG_CUSTOM_ENABLED_AGENT",sC="CONFIG_CUSTOM_API_URL_AGENT",lC="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",M5e="CONFIG_PROPERTIES",A5e="SCREENSHOT_OK",P5e="EVENT_BUS_SERVER_ERROR_500",fh="EVENT_BUS_TOKEN_INVALID",$1="EVENT_BUS_MQTT_MESSAGE",Ij="EVENT_BUS_MQTT_CONNECTED",Nj="EVENT_BUS_MQTT_OFFLINE",Mj="EVENT_BUS_MQTT_CLOSE",Aj="EVENT_BUS_MQTT_DISCONNECTED",Pj="EVENT_BUS_MQTT_ERROR",Dj="EVENT_BUS_MQTT_END",Ybe="EVENT_BUS_MESSAGE_TYPE_STATUS",D5e="EVENT_BUS_MESSAGE_TYPE_TYPING",k5e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",L5e="EVENT_BUS_MESSAGE_TYPE_STREAM",$5e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",kj="EVENT_BUS_MESSAGE_TYPE_TRANSFER",Lj="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",$j="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",F5e="EVENT_BUS_SCREEN_CAPTURE_IMAGE",B5e="AUTH_STORE",e0="ACCESS_TOKEN",U5e="ORGANIZATION_STORE",j5e="MEMBER_STORE",H5e="MESSAGE_STORE",z5e="CONTACT_STORE",V5e="USER_STORE",G5e="SETTINGS_STORE",W5e="THREAD_STORE",Y5e="DEVICE_STORE",q5e="AGENT_STORE",K5e="WORKGROUP_STORE",Q5e="PROCESS_STORE",X5e="member",qbe="device",Z5e="MOBILE_LOGIN",J5e="MOBILE_RESET",eUe="MOBILE_VERIFY",tUe="EMAIL_RESET",nUe="EMAIL_VERIFY",rUe="PENDING",iUe="SCANNED",oUe="CONFIRMED",aUe="EXPIRED",sUe="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",lUe="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",cUe="https://www.weiyuai.cn/download.html",Gee="AGENT",Wee="USER",Yee="AGENT",qee="WORKGROUP",Kee="QUEUING",Qee="CLOSED",Xee="SENDING",Fj="SUCCESS",uUe="TRANSFER_ACCEPT",dUe="TRANSFER_REJECT",Bj="CONTINUE",Kbe="SYSTEM",fUe="QUEUE",pUe="TEXT",mUe="IMAGE",hUe="FILE",gUe="AUDIO",vUe="VIDEO",Uj="TYPING",jj="PROCESSING",F1="STREAM",Zee="PREVIEW",Jee="RECALL",Hj="DELIVERED",zj="READ",_Ue="FAQ_UP",yUe="FAQ_DOWN",bUe="ROBOT_UP",SUe="ROBOT_DOWN",EUe="RATE_SUBMIT",CUe="RATE_CANCEL",B1="AUTO_CLOSED",U1="AGENT_CLOSED",ete="TRANSFER",tte="TRANSFER_ACCEPT",nte="TRANSFER_REJECT",rte="AVAILABLE",Z3="OFFLINE",ite="REST",wUe="org/group/",xUe="TICKET",TUe="CHAT",Vj="lastPath",xM="TICKET",RUe="ROLE_SUPER",OUe="ROLE_ADMIN",IUe="ROLE_MEMBER",NUe="ROLE_AGENT",ox=_l()(eu(yl(tu((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(e0,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(e0),e({accessToken:""})}})),{name:B5e}))),MUe=_l()(eu(yl(tu(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:G5e})));var __={},Qbe={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qbe);var Tr=Qbe.exports,c2={};Object.defineProperty(c2,"__esModule",{value:!0});c2.default=void 0;var AUe={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"};c2.default=AUe;var u2={},ax={},d2={},Xbe={exports:{}},Zbe={exports:{}},Jbe={exports:{}},e0e={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e0e);var y_=e0e.exports,t0e={exports:{}};(function(e){var t=y_.default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(t0e);var PUe=t0e.exports;(function(e){var t=y_.default,n=PUe;function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Jbe);var DUe=Jbe.exports;(function(e){var t=DUe;function n(r,i,o){return(i=t(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Zbe);var n0e=Zbe.exports;(function(e){var t=n0e;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),a.push.apply(a,s)}return a}function r(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?n(Object(a),!0).forEach(function(s){t(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Xbe);var b_=Xbe.exports,Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.commonLocale=void 0;Y0.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var kUe=Tr.default;Object.defineProperty(d2,"__esModule",{value:!0});d2.default=void 0;var ote=kUe(b_),LUe=Y0,$Ue=(0,ote.default)((0,ote.default)({},LUe.commonLocale),{},{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"});d2.default=$Ue;var sx={};Object.defineProperty(sx,"__esModule",{value:!0});sx.default=void 0;const FUe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};sx.default=FUe;var r0e=Tr.default;Object.defineProperty(ax,"__esModule",{value:!0});ax.default=void 0;var BUe=r0e(d2),UUe=r0e(sx);const jUe={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"]},BUe.default),timePickerLocale:Object.assign({},UUe.default)};ax.default=jUe;var HUe=Tr.default;Object.defineProperty(u2,"__esModule",{value:!0});u2.default=void 0;var zUe=HUe(ax);u2.default=zUe.default;var f2=Tr.default;Object.defineProperty(__,"__esModule",{value:!0});__.default=void 0;var VUe=f2(c2),GUe=f2(u2),WUe=f2(ax),YUe=f2(sx);const xl="${label} is not a valid ${type}",qUe={locale:"en",Pagination:VUe.default,DatePicker:WUe.default,TimePicker:YUe.default,Calendar:GUe.default,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:xl,method:xl,array:xl,object:xl,number:xl,date:xl,boolean:xl,integer:xl,float:xl,regexp:xl,email:xl,url:xl,hex:xl},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"}};__.default=qUe;var KUe=__;const ate=yi(KUe);var p2={},m2={};Object.defineProperty(m2,"__esModule",{value:!0});m2.default=void 0;var QUe={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:"页码"};m2.default=QUe;var h2={},lx={},g2={},XUe=Tr.default;Object.defineProperty(g2,"__esModule",{value:!0});g2.default=void 0;var ste=XUe(b_),ZUe=Y0,JUe=(0,ste.default)((0,ste.default)({},ZUe.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});g2.default=JUe;var cx={};Object.defineProperty(cx,"__esModule",{value:!0});cx.default=void 0;const eje={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};cx.default=eje;var i0e=Tr.default;Object.defineProperty(lx,"__esModule",{value:!0});lx.default=void 0;var tje=i0e(g2),nje=i0e(cx);const o0e={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},tje.default),timePickerLocale:Object.assign({},nje.default)};o0e.lang.ok="确定";lx.default=o0e;var rje=Tr.default;Object.defineProperty(h2,"__esModule",{value:!0});h2.default=void 0;var ije=rje(lx);h2.default=ije.default;var v2=Tr.default;Object.defineProperty(p2,"__esModule",{value:!0});p2.default=void 0;var oje=v2(m2),aje=v2(h2),sje=v2(lx),lje=v2(cx);const Tl="${label}不是一个有效的${type}",cje={locale:"zh-cn",Pagination:oje.default,DatePicker:sje.default,TimePicker:lje.default,Calendar:aje.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Tl,method:Tl,array:Tl,object:Tl,number:Tl,date:Tl,boolean:Tl,integer:Tl,float:Tl,regexp:Tl,email:Tl,url:Tl,hex:Tl},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};p2.default=cje;var uje=p2;const Jy=yi(uje);var _2={},y2={};Object.defineProperty(y2,"__esModule",{value:!0});y2.default=void 0;var dje={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:"頁碼"};y2.default=dje;var b2={},ux={},S2={},fje=Tr.default;Object.defineProperty(S2,"__esModule",{value:!0});S2.default=void 0;var lte=fje(b_),pje=Y0,mje=(0,lte.default)((0,lte.default)({},pje.commonLocale),{},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀",cellDateFormat:"D",monthBeforeYear:!1});S2.default=mje;var dx={};Object.defineProperty(dx,"__esModule",{value:!0});dx.default=void 0;const hje={placeholder:"請選擇時間"};dx.default=hje;var a0e=Tr.default;Object.defineProperty(ux,"__esModule",{value:!0});ux.default=void 0;var gje=a0e(S2),vje=a0e(dx);const s0e={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},gje.default),timePickerLocale:Object.assign({},vje.default)};s0e.lang.ok="確 定";ux.default=s0e;var _je=Tr.default;Object.defineProperty(b2,"__esModule",{value:!0});b2.default=void 0;var yje=_je(ux);b2.default=yje.default;var E2=Tr.default;Object.defineProperty(_2,"__esModule",{value:!0});_2.default=void 0;var bje=E2(y2),Sje=E2(b2),Eje=E2(ux),Cje=E2(dx);const Rl="${label}不是一個有效的${type}",wje={locale:"zh-tw",Pagination:bje.default,DatePicker:Eje.default,TimePicker:Cje.default,Calendar:Sje.default,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",filterCheckall:"全選",filterSearchPlaceholder:"在篩選項中搜尋",emptyText:"暫無數據",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"結束導覽"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{titles:["",""],searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"删除",selectCurrent:"全選當頁",removeCurrent:"删除當頁",selectAll:"全選所有",removeAll:"删除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},Form:{optional:"(可選)",defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:Rl,method:Rl,array:Rl,object:Rl,number:Rl,date:Rl,boolean:Rl,integer:Rl,float:Rl,regexp:Rl,email:Rl,url:Rl,hex:Rl},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"},QRCode:{expired:"二維碼過期",refresh:"點擊刷新",scanned:"已掃描"}};_2.default=wje;var xje=_2;const Tje=yi(xje);function l0e(){const e=localStorage.getItem(Vee)||"light",[t,n]=m.useState(e),r=localStorage.getItem(zee)||"system",[i,o]=m.useState(r);return m.useEffect(()=>{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{a.matches?n("dark"):n("light")}))},[]),m.useEffect(()=>{localStorage.setItem(zee,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),m.useEffect(()=>{localStorage.setItem(Vee,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:o,isDarkMode:t==="dark",isLightMode:t==="light"}}function c0e(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rje}=Object.prototype,{getPrototypeOf:pW}=Object,C2=(e=>t=>{const n=Rje.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ud=e=>(e=e.toLowerCase(),t=>C2(t)===e),w2=e=>t=>typeof t===e,{isArray:q0}=Array,j1=w2("undefined");function Oje(e){return e!==null&&!j1(e)&&e.constructor!==null&&!j1(e.constructor)&&Xl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const u0e=ud("ArrayBuffer");function Ije(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&u0e(e.buffer),t}const Nje=w2("string"),Xl=w2("function"),d0e=w2("number"),x2=e=>e!==null&&typeof e=="object",Mje=e=>e===!0||e===!1,MI=e=>{if(C2(e)!=="object")return!1;const t=pW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Aje=ud("Date"),Pje=ud("File"),Dje=ud("Blob"),kje=ud("FileList"),Lje=e=>x2(e)&&Xl(e.pipe),$je=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xl(e.append)&&((t=C2(e))==="formdata"||t==="object"&&Xl(e.toString)&&e.toString()==="[object FormData]"))},Fje=ud("URLSearchParams"),[Bje,Uje,jje,Hje]=["ReadableStream","Request","Response","Headers"].map(ud),zje=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fx(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),q0(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function f0e(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Xg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,p0e=e=>!j1(e)&&e!==Xg;function Gj(){const{caseless:e}=p0e(this)&&this||{},t={},n=(r,i)=>{const o=e&&f0e(t,i)||i;MI(t[o])&&MI(r)?t[o]=Gj(t[o],r):MI(r)?t[o]=Gj({},r):q0(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&fx(arguments[r],n);return t}const Vje=(e,t,n,{allOwnKeys:r}={})=>(fx(t,(i,o)=>{n&&Xl(i)?e[o]=c0e(i,n):e[o]=i},{allOwnKeys:r}),e),Gje=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wje=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Yje=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&pW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qje=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Kje=e=>{if(!e)return null;if(q0(e))return e;let t=e.length;if(!d0e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qje=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pW(Uint8Array)),Xje=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Zje=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jje=ud("HTMLFormElement"),eHe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),cte=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tHe=ud("RegExp"),m0e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fx(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},nHe=e=>{m0e(e,(t,n)=>{if(Xl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rHe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return q0(e)?r(e):r(String(e).split(t)),n},iHe=()=>{},oHe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,J3="abcdefghijklmnopqrstuvwxyz",ute="0123456789",h0e={DIGIT:ute,ALPHA:J3,ALPHA_DIGIT:J3+J3.toUpperCase()+ute},aHe=(e=16,t=h0e.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sHe(e){return!!(e&&Xl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lHe=e=>{const t=new Array(10),n=(r,i)=>{if(x2(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=q0(r)?[]:{};return fx(r,(a,s)=>{const l=n(a,i+1);!j1(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},cHe=ud("AsyncFunction"),uHe=e=>e&&(x2(e)||Xl(e))&&Xl(e.then)&&Xl(e.catch),g0e=((e,t)=>e?setImmediate:t?((n,r)=>(Xg.addEventListener("message",({source:i,data:o})=>{i===Xg&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Xg.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xl(Xg.postMessage)),dHe=typeof queueMicrotask<"u"?queueMicrotask.bind(Xg):typeof process<"u"&&process.nextTick||g0e,Ut={isArray:q0,isArrayBuffer:u0e,isBuffer:Oje,isFormData:$je,isArrayBufferView:Ije,isString:Nje,isNumber:d0e,isBoolean:Mje,isObject:x2,isPlainObject:MI,isReadableStream:Bje,isRequest:Uje,isResponse:jje,isHeaders:Hje,isUndefined:j1,isDate:Aje,isFile:Pje,isBlob:Dje,isRegExp:tHe,isFunction:Xl,isStream:Lje,isURLSearchParams:Fje,isTypedArray:Qje,isFileList:kje,forEach:fx,merge:Gj,extend:Vje,trim:zje,stripBOM:Gje,inherits:Wje,toFlatObject:Yje,kindOf:C2,kindOfTest:ud,endsWith:qje,toArray:Kje,forEachEntry:Xje,matchAll:Zje,isHTMLForm:Jje,hasOwnProperty:cte,hasOwnProp:cte,reduceDescriptors:m0e,freezeMethods:nHe,toObjectSet:rHe,toCamelCase:eHe,noop:iHe,toFiniteNumber:oHe,findKey:f0e,global:Xg,isContextDefined:p0e,ALPHABET:h0e,generateString:aHe,isSpecCompliantForm:sHe,toJSONObject:lHe,isAsyncFn:cHe,isThenable:uHe,setImmediate:g0e,asap:dHe};function Ir(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Ut.inherits(Ir,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ut.toJSONObject(this.config),code:this.code,status:this.status}}});const v0e=Ir.prototype,_0e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_0e[e]={value:e}});Object.defineProperties(Ir,_0e);Object.defineProperty(v0e,"isAxiosError",{value:!0});Ir.from=(e,t,n,r,i,o)=>{const a=Object.create(v0e);return Ut.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Ir.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const fHe=null;function Wj(e){return Ut.isPlainObject(e)||Ut.isArray(e)}function y0e(e){return Ut.endsWith(e,"[]")?e.slice(0,-2):e}function dte(e,t,n){return e?e.concat(t).map(function(i,o){return i=y0e(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function pHe(e){return Ut.isArray(e)&&!e.some(Wj)}const mHe=Ut.toFlatObject(Ut,{},null,function(t){return/^is[A-Z]/.test(t)});function T2(e,t,n){if(!Ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Ut.isUndefined(v[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ut.isSpecCompliantForm(t);if(!Ut.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(Ut.isDate(h))return h.toISOString();if(!l&&Ut.isBlob(h))throw new Ir("Blob is not supported. Use a Buffer instead.");return Ut.isArrayBuffer(h)||Ut.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,v){let y=h;if(h&&!v&&typeof h=="object"){if(Ut.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(Ut.isArray(h)&&pHe(h)||(Ut.isFileList(h)||Ut.endsWith(g,"[]"))&&(y=Ut.toArray(h)))return g=y0e(g),y.forEach(function(b,S){!(Ut.isUndefined(b)||b===null)&&t.append(a===!0?dte([g],S,o):a===null?g:g+"[]",c(b))}),!1}return Wj(h)?!0:(t.append(dte(v,g,o),c(h)),!1)}const d=[],f=Object.assign(mHe,{defaultVisitor:u,convertValue:c,isVisitable:Wj});function p(h,g){if(!Ut.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(h),Ut.forEach(h,function(y,_){(!(Ut.isUndefined(y)||y===null)&&i.call(t,y,Ut.isString(_)?_.trim():_,g,f))===!0&&p(y,g?g.concat(_):[_])}),d.pop()}}if(!Ut.isObject(e))throw new TypeError("data must be an object");return p(e),t}function fte(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function mW(e,t){this._pairs=[],e&&T2(e,this,t)}const b0e=mW.prototype;b0e.append=function(t,n){this._pairs.push([t,n])};b0e.toString=function(t){const n=t?function(r){return t.call(this,r,fte)}:fte;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function hHe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function S0e(e,t,n){if(!t)return e;const r=n&&n.encode||hHe;Ut.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=Ut.isURLSearchParams(t)?t.toString():new mW(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class pte{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ut.forEach(this.handlers,function(r){r!==null&&t(r)})}}const E0e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gHe=typeof URLSearchParams<"u"?URLSearchParams:mW,vHe=typeof FormData<"u"?FormData:null,_He=typeof Blob<"u"?Blob:null,yHe={isBrowser:!0,classes:{URLSearchParams:gHe,FormData:vHe,Blob:_He},protocols:["http","https","file","blob","url","data"]},hW=typeof window<"u"&&typeof document<"u",Yj=typeof navigator=="object"&&navigator||void 0,bHe=hW&&(!Yj||["ReactNative","NativeScript","NS"].indexOf(Yj.product)<0),SHe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",EHe=hW&&window.location.href||"http://localhost",CHe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hW,hasStandardBrowserEnv:bHe,hasStandardBrowserWebWorkerEnv:SHe,navigator:Yj,origin:EHe},Symbol.toStringTag,{value:"Module"})),fs={...CHe,...yHe};function wHe(e,t){return T2(e,new fs.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return fs.isNode&&Ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function xHe(e){return Ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function THe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function C0e(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&Ut.isArray(i)?i.length:a,l?(Ut.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!Ut.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&Ut.isArray(i[a])&&(i[a]=THe(i[a])),!s)}if(Ut.isFormData(e)&&Ut.isFunction(e.entries)){const n={};return Ut.forEachEntry(e,(r,i)=>{t(xHe(r),i,n,0)}),n}return null}function RHe(e,t,n){if(Ut.isString(e))try{return(t||JSON.parse)(e),Ut.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const px={transitional:E0e,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Ut.isObject(t);if(o&&Ut.isHTMLForm(t)&&(t=new FormData(t)),Ut.isFormData(t))return i?JSON.stringify(C0e(t)):t;if(Ut.isArrayBuffer(t)||Ut.isBuffer(t)||Ut.isStream(t)||Ut.isFile(t)||Ut.isBlob(t)||Ut.isReadableStream(t))return t;if(Ut.isArrayBufferView(t))return t.buffer;if(Ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wHe(t,this.formSerializer).toString();if((s=Ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return T2(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),RHe(t)):t}],transformResponse:[function(t){const n=this.transitional||px.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ut.isResponse(t)||Ut.isReadableStream(t))return t;if(t&&Ut.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ir.from(s,Ir.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ut.forEach(["delete","get","head","post","put","patch"],e=>{px.headers[e]={}});const OHe=Ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IHe=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&OHe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mte=Symbol("internals");function mE(e){return e&&String(e).trim().toLowerCase()}function AI(e){return e===!1||e==null?e:Ut.isArray(e)?e.map(AI):String(e)}function NHe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const MHe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e4(e,t,n,r,i){if(Ut.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ut.isString(t)){if(Ut.isString(r))return t.indexOf(r)!==-1;if(Ut.isRegExp(r))return r.test(t)}}function AHe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function PHe(e,t){const n=Ut.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class ml{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=mE(l);if(!u)throw new Error("header name must be a non-empty string");const d=Ut.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=AI(s))}const a=(s,l)=>Ut.forEach(s,(c,u)=>o(c,u,l));if(Ut.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ut.isString(t)&&(t=t.trim())&&!MHe(t))a(IHe(t),n);else if(Ut.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=mE(t),t){const r=Ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return NHe(i);if(Ut.isFunction(n))return n.call(this,i,r);if(Ut.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mE(t),t){const r=Ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||e4(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=mE(a),a){const s=Ut.findKey(r,a);s&&(!n||e4(r,r[s],s,n))&&(delete r[s],i=!0)}}return Ut.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||e4(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return Ut.forEach(this,(i,o)=>{const a=Ut.findKey(r,o);if(a){n[a]=AI(i),delete n[o];return}const s=t?AHe(o):String(o).trim();s!==o&&delete n[o],n[s]=AI(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ut.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ut.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[mte]=this[mte]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=mE(a);r[s]||(PHe(i,a),r[s]=!0)}return Ut.isArray(t)?t.forEach(o):o(t),this}}ml.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ut.reduceDescriptors(ml.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ut.freezeMethods(ml);function t4(e,t){const n=this||px,r=t||n,i=ml.from(r.headers);let o=r.data;return Ut.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function w0e(e){return!!(e&&e.__CANCEL__)}function K0(e,t,n){Ir.call(this,e??"canceled",Ir.ERR_CANCELED,t,n),this.name="CanceledError"}Ut.inherits(K0,Ir,{__CANCEL__:!0});function x0e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ir("Request failed with status code "+n.status,[Ir.ERR_BAD_REQUEST,Ir.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DHe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kHe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function LHe(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const TM=(e,t,n=3)=>{let r=0;const i=kHe(50,250);return LHe(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},hte=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gte=e=>(...t)=>Ut.asap(()=>e(...t)),$He=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,FHe=fs.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];Ut.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ut.isString(r)&&a.push("path="+r),Ut.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BHe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UHe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function T0e(e,t){return e&&!BHe(t)?UHe(e,t):t}const vte=e=>e instanceof ml?{...e}:e;function Hv(e,t){t=t||{};const n={};function r(c,u,d,f){return Ut.isPlainObject(c)&&Ut.isPlainObject(u)?Ut.merge.call({caseless:f},c,u):Ut.isPlainObject(u)?Ut.merge({},u):Ut.isArray(u)?u.slice():u}function i(c,u,d,f){if(Ut.isUndefined(u)){if(!Ut.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!Ut.isUndefined(u))return r(void 0,u)}function a(c,u){if(Ut.isUndefined(u)){if(!Ut.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(vte(c),vte(u),d,!0)};return Ut.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,f=d(e[u],t[u],u);Ut.isUndefined(f)&&d!==s||(n[u]=f)}),n}const R0e=e=>{const t=Hv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=ml.from(a),t.url=S0e(T0e(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ut.isFormData(n)){if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(fs.hasStandardBrowserEnv&&(r&&Ut.isFunction(r)&&(r=r(t)),r||r!==!1&&$He(t.url))){const c=i&&o&&FHe.read(o);c&&a.set(i,c)}return t},jHe=typeof XMLHttpRequest<"u",HHe=jHe&&function(e){return new Promise(function(n,r){const i=R0e(e);let o=i.data;const a=ml.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,p,h;function g(){p&&p(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const b=ml.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};x0e(function(w){n(w),g()},function(w){r(w),g()},C),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new Ir("Request aborted",Ir.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Ir("Network Error",Ir.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||E0e;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Ir(S,C.clarifyTimeoutError?Ir.ETIMEDOUT:Ir.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&Ut.forEach(a.toJSON(),function(S,C){v.setRequestHeader(C,S)}),Ut.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([f,h]=TM(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,p]=TM(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=b=>{v&&(r(!b||b.type?new K0(null,e,v):b),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=DHe(i.url);if(_&&fs.protocols.indexOf(_)===-1){r(new Ir("Unsupported protocol "+_+":",Ir.ERR_BAD_REQUEST,e));return}v.send(o||null)})},zHe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ir?u:new K0(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new Ir(`timeout ${t} of ms exceeded`,Ir.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>Ut.asap(s),l}},VHe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},GHe=async function*(e,t){for await(const n of WHe(e))yield*VHe(n,t)},WHe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},_te=(e,t,n,r)=>{const i=GHe(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},R2=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",O0e=R2&&typeof ReadableStream=="function",YHe=R2&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),I0e=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qHe=O0e&&I0e(()=>{let e=!1;const t=new Request(fs.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yte=64*1024,qj=O0e&&I0e(()=>Ut.isReadableStream(new Response("").body)),RM={stream:qj&&(e=>e.body)};R2&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!RM[t]&&(RM[t]=Ut.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ir(`Response type '${t}' is not supported`,Ir.ERR_NOT_SUPPORT,r)})})})(new Response);const KHe=async e=>{if(e==null)return 0;if(Ut.isBlob(e))return e.size;if(Ut.isSpecCompliantForm(e))return(await new Request(fs.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ut.isArrayBufferView(e)||Ut.isArrayBuffer(e))return e.byteLength;if(Ut.isURLSearchParams(e)&&(e=e+""),Ut.isString(e))return(await YHe(e)).byteLength},QHe=async(e,t)=>{const n=Ut.toFiniteNumber(e.getContentLength());return n??KHe(t)},XHe=R2&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=R0e(e);c=c?(c+"").toLowerCase():"text";let p=zHe([i,o&&o.toAbortSignal()],a),h;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&qHe&&n!=="get"&&n!=="head"&&(v=await QHe(u,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Ut.isFormData(r)&&(E=C.headers.get("content-type"))&&u.setContentType(E),C.body){const[w,x]=hte(v,TM(gte(l)));r=_te(C.body,yte,w,x)}}Ut.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let _=await fetch(h);const b=qj&&(c==="stream"||c==="response");if(qj&&(s||b&&g)){const C={};["status","statusText","headers"].forEach(T=>{C[T]=_[T]});const E=Ut.toFiniteNumber(_.headers.get("content-length")),[w,x]=s&&hte(E,TM(gte(s),!0))||[];_=new Response(_te(_.body,yte,w,()=>{x&&x(),g&&g()}),C)}c=c||"text";let S=await RM[Ut.findKey(RM,c)||"text"](_,e);return!b&&g&&g(),await new Promise((C,E)=>{x0e(C,E,{data:S,headers:ml.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:h})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Ir("Network Error",Ir.ERR_NETWORK,e,h),{cause:y.cause||y}):Ir.from(y,y&&y.code,e,h)}}),Kj={http:fHe,xhr:HHe,fetch:XHe};Ut.forEach(Kj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bte=e=>`- ${e}`,ZHe=e=>Ut.isFunction(e)||e===null||e===!1,N0e={getAdapter:e=>{e=Ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!ZHe(n)&&(r=Kj[(a=String(n)).toLowerCase()],r===void 0))throw new Ir(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
||
`+o.map(bte).join(`
|
||
`):" "+bte(o[0]):"as no adapter specified";throw new Ir("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Kj};function n4(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new K0(null,e)}function Ste(e){return n4(e),e.headers=ml.from(e.headers),e.data=t4.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),N0e.getAdapter(e.adapter||px.adapter)(e).then(function(r){return n4(e),r.data=t4.call(e,e.transformResponse,r),r.headers=ml.from(r.headers),r},function(r){return w0e(r)||(n4(e),r&&r.response&&(r.response.data=t4.call(e,e.transformResponse,r.response),r.response.headers=ml.from(r.response.headers))),Promise.reject(r)})}const M0e="1.7.9",O2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{O2[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ete={};O2.transitional=function(t,n,r){function i(o,a){return"[Axios v"+M0e+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Ir(i(a," has been removed"+(n?" in "+n:"")),Ir.ERR_DEPRECATED);return n&&!Ete[a]&&(Ete[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};O2.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function JHe(e,t,n){if(typeof e!="object")throw new Ir("options must be an object",Ir.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Ir("option "+o+" must be "+l,Ir.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ir("Unknown option "+o,Ir.ERR_BAD_OPTION)}}const PI={assertOptions:JHe,validators:O2},wd=PI.validators;class _v{constructor(t){this.defaults=t,this.interceptors={request:new pte,response:new pte}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Hv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&PI.assertOptions(r,{silentJSONParsing:wd.transitional(wd.boolean),forcedJSONParsing:wd.transitional(wd.boolean),clarifyTimeoutError:wd.transitional(wd.boolean)},!1),i!=null&&(Ut.isFunction(i)?n.paramsSerializer={serialize:i}:PI.assertOptions(i,{encode:wd.function,serialize:wd.function},!0)),PI.assertOptions(n,{baseUrl:wd.spelling("baseURL"),withXsrfToken:wd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&Ut.merge(o.common,o[n.method]);o&&Ut.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=ml.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const h=[Ste.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(n);d<f;)u=u.then(h[d++],h[d++]);return u}f=s.length;let p=n;for(d=0;d<f;){const h=s[d++],g=s[d++];try{p=h(p)}catch(v){g.call(this,v);break}}try{u=Ste.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Hv(this.defaults,t);const n=T0e(t.baseURL,t.url);return S0e(n,t.params,t.paramsSerializer)}}Ut.forEach(["delete","get","head","options"],function(t){_v.prototype[t]=function(n,r){return this.request(Hv(r||{},{method:t,url:n,data:(r||{}).data}))}});Ut.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Hv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}_v.prototype[t]=n(),_v.prototype[t+"Form"]=n(!0)});class gW{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new K0(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gW(function(i){t=i}),cancel:t}}}function e7e(e){return function(n){return e.apply(null,n)}}function t7e(e){return Ut.isObject(e)&&e.isAxiosError===!0}const Qj={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qj).forEach(([e,t])=>{Qj[t]=e});function A0e(e){const t=new _v(e),n=c0e(_v.prototype.request,t);return Ut.extend(n,_v.prototype,t,{allOwnKeys:!0}),Ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return A0e(Hv(e,i))},n}const Wo=A0e(px);Wo.Axios=_v;Wo.CanceledError=K0;Wo.CancelToken=gW;Wo.isCancel=w0e;Wo.VERSION=M0e;Wo.toFormData=T2;Wo.AxiosError=Ir;Wo.Cancel=Wo.CanceledError;Wo.all=function(t){return Promise.all(t)};Wo.spread=e7e;Wo.isAxiosError=t7e;Wo.mergeConfig=Hv;Wo.AxiosHeaders=ml;Wo.formToJSON=e=>C0e(Ut.isHTMLForm(e)?new FormData(e):e);Wo.getAdapter=N0e.getAdapter;Wo.HttpStatusCode=Qj;Wo.default=Wo;function n7e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const fr=n7e();async function r7e(){return mi("/config/bytedesk/properties",{method:"GET",params:{client:Pi}})}async function P0e(){try{const t=(await Wo.get("/agenticflow/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem($C,"true"),localStorage.setItem(II,t.apiUrl),localStorage.setItem(NI,t.websocketUrl),localStorage.setItem(X3,t.htmlUrl);else if(x5e===Vbe){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem($C,"true"),localStorage.setItem(II,r),localStorage.setItem(NI,i),localStorage.setItem(X3,r)}else console.log("config disabled"),localStorage.setItem($C,"false"),localStorage.removeItem(II),localStorage.removeItem(NI),localStorage.removeItem(X3)}catch(e){console.log("loadConfig error: ",e)}}function I2(){const e=localStorage.getItem(Zy);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(sC);return n===null?Q3:n}if(localStorage.getItem($C)==="true"){const n=localStorage.getItem(II);return n===null?Q3:n}return Q3}function vW(){return I2()+"/api/v1/upload/file"}function i7e(){const e=localStorage.getItem(Zy);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(lC);return r===null?Bee:r}const t=localStorage.getItem($C),n=localStorage.getItem(NI);return t==="true"?n:Bee}async function D0e(){const e=await r7e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(M5e,JSON.stringify(e.data.data)),e.data.data):null}const mi=Wo.create({timeout:2e4,baseURL:I2(),paramsSerializer:{indexes:null}});mi.interceptors.request.use(e=>{e.baseURL=I2();const t=localStorage.getItem(e0);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(o7e):e},e=>(console.debug("request error",e),e.response.status===403&&fr.emit(fh,"403"),e.response.status===401&&fr.emit(fh,"401"),Promise.reject(e)));mi.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),fr.emit(fh,"400");break;case 401:console.log("axios interception error 401"),fr.emit(fh,"401");break;case 403:console.log("axios interception error 403"),fr.emit(fh,"403");break;case 500:console.log("axios interception error 500"),fr.emit(P5e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const r4={data:null,status:601,statusText:Wbe,headers:{},config:{headers:void 0},request:null},o7e={message:"匿名用户,无需访问服务器接口",name:Wbe,code:"601",config:r4.config,request:r4.request,response:r4,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function a7e(e){return mi("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:Pi}})}async function s7e(e){return mi("/api/v1/agent/update",{method:"POST",data:{...e,client:Pi}})}async function l7e(e){return mi("/api/v1/agent/update/status",{method:"POST",data:{...e,client:Pi}})}async function c7e(e){return mi("/api/v1/message/unread/query",{method:"GET",params:{userUid:e,client:Pi}})}async function u7e(e){return mi("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:Pi}})}var _W=Object.defineProperty,d7e=Object.getOwnPropertyDescriptor,f7e=Object.getOwnPropertyNames,p7e=Object.prototype.hasOwnProperty,Qa=(e,t)=>()=>(e&&(t=e(e=0)),t),an=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S_=(e,t)=>{for(var n in t)_W(e,n,{get:t[n],enumerable:!0})},m7e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of f7e(t))!p7e.call(e,i)&&i!==n&&_W(e,i,{get:()=>t[i],enumerable:!(r=d7e(t,i))||r.enumerable});return e},Ai=e=>m7e(_W({},"__esModule",{value:!0}),e),Kt=Qa(()=>{}),vi={};S_(vi,{_debugEnd:()=>IH,_debugProcess:()=>OH,_events:()=>VH,_eventsCount:()=>GH,_exiting:()=>mH,_fatalExceptions:()=>xH,_getActiveHandles:()=>j0e,_getActiveRequests:()=>U0e,_kill:()=>vH,_linkedBinding:()=>F0e,_maxListeners:()=>zH,_preload_modules:()=>jH,_rawDebug:()=>dH,_startProfilerIdleNotifier:()=>NH,_stopProfilerIdleNotifier:()=>MH,_tickCallback:()=>RH,abort:()=>kH,addListener:()=>WH,allowedNodeEnvironmentFlags:()=>CH,arch:()=>Zj,argv:()=>tH,argv0:()=>UH,assert:()=>H0e,binding:()=>aH,chdir:()=>cH,config:()=>hH,cpuUsage:()=>cC,cwd:()=>lH,debugPort:()=>BH,default:()=>bW,dlopen:()=>B0e,domain:()=>pH,emit:()=>XH,emitWarning:()=>oH,env:()=>eH,execArgv:()=>nH,execPath:()=>FH,exit:()=>SH,features:()=>wH,hasUncaughtExceptionCaptureCallback:()=>z0e,hrtime:()=>DI,kill:()=>bH,listeners:()=>G0e,memoryUsage:()=>yH,moduleLoadList:()=>fH,nextTick:()=>L0e,off:()=>qH,on:()=>Pf,once:()=>YH,openStdin:()=>EH,pid:()=>LH,platform:()=>Jj,ppid:()=>$H,prependListener:()=>ZH,prependOnceListener:()=>JH,reallyExit:()=>gH,release:()=>uH,removeAllListeners:()=>QH,removeListener:()=>KH,resourceUsage:()=>_H,setSourceMapsEnabled:()=>HH,setUncaughtExceptionCaptureCallback:()=>TH,stderr:()=>PH,stdin:()=>DH,stdout:()=>AH,title:()=>Xj,umask:()=>sH,uptime:()=>V0e,version:()=>rH,versions:()=>iH});function yW(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function h7e(){!yv||!Zg||(yv=!1,Zg.length?jd=Zg.concat(jd):FC=-1,jd.length&&k0e())}function k0e(){if(!yv){var e=setTimeout(h7e,0);yv=!0;for(var t=jd.length;t;){for(Zg=jd,jd=[];++FC<t;)Zg&&Zg[FC].run();FC=-1,t=jd.length}Zg=null,yv=!1,clearTimeout(e)}}function L0e(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];jd.push(new $0e(e,t)),jd.length===1&&!yv&&setTimeout(k0e,0)}function $0e(e,t){this.fun=e,this.array=t}function ss(){}function F0e(e){yW("_linkedBinding")}function B0e(e){yW("dlopen")}function U0e(){return[]}function j0e(){return[]}function H0e(e,t){if(!e)throw new Error(t||"assertion error")}function z0e(){return!1}function V0e(){return zf.now()/1e3}function DI(e){var t=Math.floor((Date.now()-zf.now())*.001),n=zf.now()*.001,r=Math.floor(n)+t,i=Math.floor(n%1*1e9);return e&&(r=r-e[0],i=i-e[1],i<0&&(r--,i+=kI)),[r,i]}function Pf(){return bW}function G0e(e){return[]}var jd,yv,Zg,FC,Xj,Zj,Jj,eH,tH,nH,rH,iH,oH,aH,sH,lH,cH,uH,dH,fH,pH,mH,hH,gH,vH,cC,_H,yH,bH,SH,EH,CH,wH,xH,TH,RH,OH,IH,NH,MH,AH,PH,DH,kH,LH,$H,FH,BH,UH,jH,HH,zf,i4,kI,zH,VH,GH,WH,YH,qH,KH,QH,XH,ZH,JH,bW,g7e=Qa(()=>{Kt(),Xt(),Qt(),jd=[],yv=!1,FC=-1,$0e.prototype.run=function(){this.fun.apply(null,this.array)},Xj="browser",Zj="x64",Jj="browser",eH={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},tH=["/usr/bin/node"],nH=[],rH="v16.8.0",iH={},oH=function(e,t){console.warn((t?t+": ":"")+e)},aH=function(e){yW("binding")},sH=function(e){return 0},lH=function(){return"/"},cH=function(e){},uH={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},dH=ss,fH=[],pH={},mH=!1,hH={},gH=ss,vH=ss,cC=function(){return{}},_H=cC,yH=cC,bH=ss,SH=ss,EH=ss,CH={},wH={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},xH=ss,TH=ss,RH=ss,OH=ss,IH=ss,NH=ss,MH=ss,AH=void 0,PH=void 0,DH=void 0,kH=ss,LH=2,$H=1,FH="/bin/usr/node",BH=9229,UH="node",jH=[],HH=ss,zf={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},zf.now===void 0&&(i4=Date.now(),zf.timing&&zf.timing.navigationStart&&(i4=zf.timing.navigationStart),zf.now=()=>Date.now()-i4),kI=1e9,DI.bigint=function(e){var t=DI(e);return typeof BigInt>"u"?t[0]*kI+t[1]:BigInt(t[0]*kI)+BigInt(t[1])},zH=10,VH={},GH=0,WH=Pf,YH=Pf,qH=Pf,KH=Pf,QH=Pf,XH=ss,ZH=Pf,JH=Pf,bW={version:rH,versions:iH,arch:Zj,platform:Jj,release:uH,_rawDebug:dH,moduleLoadList:fH,binding:aH,_linkedBinding:F0e,_events:VH,_eventsCount:GH,_maxListeners:zH,on:Pf,addListener:WH,once:YH,off:qH,removeListener:KH,removeAllListeners:QH,emit:XH,prependListener:ZH,prependOnceListener:JH,listeners:G0e,domain:pH,_exiting:mH,config:hH,dlopen:B0e,uptime:V0e,_getActiveRequests:U0e,_getActiveHandles:j0e,reallyExit:gH,_kill:vH,cpuUsage:cC,resourceUsage:_H,memoryUsage:yH,kill:bH,exit:SH,openStdin:EH,allowedNodeEnvironmentFlags:CH,assert:H0e,features:wH,_fatalExceptions:xH,setUncaughtExceptionCaptureCallback:TH,hasUncaughtExceptionCaptureCallback:z0e,emitWarning:oH,nextTick:L0e,_tickCallback:RH,_debugProcess:OH,_debugEnd:IH,_startProfilerIdleNotifier:NH,_stopProfilerIdleNotifier:MH,stdout:AH,stdin:DH,stderr:PH,abort:kH,umask:sH,chdir:cH,cwd:lH,env:eH,title:Xj,argv:tH,execArgv:nH,pid:LH,ppid:$H,execPath:FH,debugPort:BH,hrtime:DI,argv0:UH,_preload_modules:jH,setSourceMapsEnabled:HH}}),Qt=Qa(()=>{g7e()}),Xa={};S_(Xa,{Buffer:()=>OM,INSPECT_MAX_BYTES:()=>W0e,default:()=>Df,kMaxLength:()=>Y0e});function v7e(){if(e7)return $y;e7=!0,$y.byteLength=s,$y.toByteArray=c,$y.fromByteArray=f;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(p){var h=p.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=h);var v=g===h?0:4-g%4;return[g,v]}function s(p){var h=a(p),g=h[0],v=h[1];return(g+v)*3/4-v}function l(p,h,g){return(h+g)*3/4-g}function c(p){var h,g=a(p),v=g[0],y=g[1],_=new n(l(p,v,y)),b=0,S=y>0?v-4:v,C;for(C=0;C<S;C+=4)h=t[p.charCodeAt(C)]<<18|t[p.charCodeAt(C+1)]<<12|t[p.charCodeAt(C+2)]<<6|t[p.charCodeAt(C+3)],_[b++]=h>>16&255,_[b++]=h>>8&255,_[b++]=h&255;return y===2&&(h=t[p.charCodeAt(C)]<<2|t[p.charCodeAt(C+1)]>>4,_[b++]=h&255),y===1&&(h=t[p.charCodeAt(C)]<<10|t[p.charCodeAt(C+1)]<<4|t[p.charCodeAt(C+2)]>>2,_[b++]=h>>8&255,_[b++]=h&255),_}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function d(p,h,g){for(var v,y=[],_=h;_<g;_+=3)v=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(p[_+2]&255),y.push(u(v));return y.join("")}function f(p){for(var h,g=p.length,v=g%3,y=[],_=16383,b=0,S=g-v;b<S;b+=_)y.push(d(p,b,b+_>S?S:b+_));return v===1?(h=p[g-1],y.push(e[h>>2]+e[h<<4&63]+"==")):v===2&&(h=(p[g-2]<<8)+p[g-1],y.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),y.join("")}return $y}function _7e(){return t7?uC:(t7=!0,uC.read=function(e,t,n,r,i){var o,a,s=i*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=o*256+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=a*256+e[t+d],d+=f,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-c}return(p?-1:1)*a*Math.pow(2,o-r)},uC.write=function(e,t,n,r,i,o){var a,s,l,c=o*8-i-1,u=(1<<c)-1,d=u>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=s&255,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=a&255,p+=h,a/=256,c-=8);e[n+p-h]|=g*128},uC)}function y7e(){if(n7)return bm;n7=!0;let e=v7e(),t=_7e(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;bm.Buffer=a,bm.SlowBuffer=y,bm.INSPECT_MAX_BYTES=50;let r=2147483647;bm.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let X=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(X,Y),X.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(X){if(X>r)throw new RangeError('The value "'+X+'" is invalid for option "size"');let Y=new Uint8Array(X);return Object.setPrototypeOf(Y,a.prototype),Y}function a(X,Y,J){if(typeof X=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(X)}return s(X,Y,J)}a.poolSize=8192;function s(X,Y,J){if(typeof X=="string")return d(X,Y);if(ArrayBuffer.isView(X))return p(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(Ce(X,ArrayBuffer)||X&&Ce(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(X,SharedArrayBuffer)||X&&Ce(X.buffer,SharedArrayBuffer)))return h(X,Y,J);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let he=X.valueOf&&X.valueOf();if(he!=null&&he!==X)return a.from(he,Y,J);let ve=g(X);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return a.from(X[Symbol.toPrimitive]("string"),Y,J);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}a.from=function(X,Y,J){return s(X,Y,J)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function c(X,Y,J){return l(X),X<=0?o(X):Y!==void 0?typeof J=="string"?o(X).fill(Y,J):o(X).fill(Y):o(X)}a.alloc=function(X,Y,J){return c(X,Y,J)};function u(X){return l(X),o(X<0?0:v(X)|0)}a.allocUnsafe=function(X){return u(X)},a.allocUnsafeSlow=function(X){return u(X)};function d(X,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!a.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);let J=_(X,Y)|0,he=o(J),ve=he.write(X,Y);return ve!==J&&(he=he.slice(0,ve)),he}function f(X){let Y=X.length<0?0:v(X.length)|0,J=o(Y);for(let he=0;he<Y;he+=1)J[he]=X[he]&255;return J}function p(X){if(Ce(X,Uint8Array)){let Y=new Uint8Array(X);return h(Y.buffer,Y.byteOffset,Y.byteLength)}return f(X)}function h(X,Y,J){if(Y<0||X.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<Y+(J||0))throw new RangeError('"length" is outside of buffer bounds');let he;return Y===void 0&&J===void 0?he=new Uint8Array(X):J===void 0?he=new Uint8Array(X,Y):he=new Uint8Array(X,Y,J),Object.setPrototypeOf(he,a.prototype),he}function g(X){if(a.isBuffer(X)){let Y=v(X.length)|0,J=o(Y);return J.length===0||X.copy(J,0,0,Y),J}if(X.length!==void 0)return typeof X.length!="number"||ye(X.length)?o(0):f(X);if(X.type==="Buffer"&&Array.isArray(X.data))return f(X.data)}function v(X){if(X>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return X|0}function y(X){return+X!=X&&(X=0),a.alloc(+X)}a.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==a.prototype},a.compare=function(X,Y){if(Ce(X,Uint8Array)&&(X=a.from(X,X.offset,X.byteLength)),Ce(Y,Uint8Array)&&(Y=a.from(Y,Y.offset,Y.byteLength)),!a.isBuffer(X)||!a.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===Y)return 0;let J=X.length,he=Y.length;for(let ve=0,ce=Math.min(J,he);ve<ce;++ve)if(X[ve]!==Y[ve]){J=X[ve],he=Y[ve];break}return J<he?-1:he<J?1:0},a.isEncoding=function(X){switch(String(X).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(X,Y){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return a.alloc(0);let J;if(Y===void 0)for(Y=0,J=0;J<X.length;++J)Y+=X[J].length;let he=a.allocUnsafe(Y),ve=0;for(J=0;J<X.length;++J){let ce=X[J];if(Ce(ce,Uint8Array))ve+ce.length>he.length?(a.isBuffer(ce)||(ce=a.from(ce)),ce.copy(he,ve)):Uint8Array.prototype.set.call(he,ce,ve);else if(a.isBuffer(ce))ce.copy(he,ve);else throw new TypeError('"list" argument must be an Array of Buffers');ve+=ce.length}return he};function _(X,Y){if(a.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||Ce(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);let J=X.length,he=arguments.length>2&&arguments[2]===!0;if(!he&&J===0)return 0;let ve=!1;for(;;)switch(Y){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return pe(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return xe(X).length;default:if(ve)return he?-1:pe(X).length;Y=(""+Y).toLowerCase(),ve=!0}}a.byteLength=_;function b(X,Y,J){let he=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0,Y>>>=0,J<=Y))return"";for(X||(X="utf8");;)switch(X){case"hex":return U(this,Y,J);case"utf8":case"utf-8":return P(this,Y,J);case"ascii":return L(this,Y,J);case"latin1":case"binary":return B(this,Y,J);case"base64":return I(this,Y,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,Y,J);default:if(he)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),he=!0}}a.prototype._isBuffer=!0;function S(X,Y,J){let he=X[Y];X[Y]=X[J],X[J]=he}a.prototype.swap16=function(){let X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<X;Y+=2)S(this,Y,Y+1);return this},a.prototype.swap32=function(){let X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<X;Y+=4)S(this,Y,Y+3),S(this,Y+1,Y+2);return this},a.prototype.swap64=function(){let X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<X;Y+=8)S(this,Y,Y+7),S(this,Y+1,Y+6),S(this,Y+2,Y+5),S(this,Y+3,Y+4);return this},a.prototype.toString=function(){let X=this.length;return X===0?"":arguments.length===0?P(this,0,X):b.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(X){if(!a.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:a.compare(this,X)===0},a.prototype.inspect=function(){let X="",Y=bm.INSPECT_MAX_BYTES;return X=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(X+=" ... "),"<Buffer "+X+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(X,Y,J,he,ve){if(Ce(X,Uint8Array)&&(X=a.from(X,X.offset,X.byteLength)),!a.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(Y===void 0&&(Y=0),J===void 0&&(J=X?X.length:0),he===void 0&&(he=0),ve===void 0&&(ve=this.length),Y<0||J>X.length||he<0||ve>this.length)throw new RangeError("out of range index");if(he>=ve&&Y>=J)return 0;if(he>=ve)return-1;if(Y>=J)return 1;if(Y>>>=0,J>>>=0,he>>>=0,ve>>>=0,this===X)return 0;let ce=ve-he,$e=J-Y,Be=Math.min(ce,$e),me=this.slice(he,ve),Fe=X.slice(Y,J);for(let Xe=0;Xe<Be;++Xe)if(me[Xe]!==Fe[Xe]){ce=me[Xe],$e=Fe[Xe];break}return ce<$e?-1:$e<ce?1:0};function C(X,Y,J,he,ve){if(X.length===0)return-1;if(typeof J=="string"?(he=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,ye(J)&&(J=ve?0:X.length-1),J<0&&(J=X.length+J),J>=X.length){if(ve)return-1;J=X.length-1}else if(J<0)if(ve)J=0;else return-1;if(typeof Y=="string"&&(Y=a.from(Y,he)),a.isBuffer(Y))return Y.length===0?-1:E(X,Y,J,he,ve);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(X,Y,J):Uint8Array.prototype.lastIndexOf.call(X,Y,J):E(X,[Y],J,he,ve);throw new TypeError("val must be string, number or Buffer")}function E(X,Y,J,he,ve){let ce=1,$e=X.length,Be=Y.length;if(he!==void 0&&(he=String(he).toLowerCase(),he==="ucs2"||he==="ucs-2"||he==="utf16le"||he==="utf-16le")){if(X.length<2||Y.length<2)return-1;ce=2,$e/=2,Be/=2,J/=2}function me(Xe,ze){return ce===1?Xe[ze]:Xe.readUInt16BE(ze*ce)}let Fe;if(ve){let Xe=-1;for(Fe=J;Fe<$e;Fe++)if(me(X,Fe)===me(Y,Xe===-1?0:Fe-Xe)){if(Xe===-1&&(Xe=Fe),Fe-Xe+1===Be)return Xe*ce}else Xe!==-1&&(Fe-=Fe-Xe),Xe=-1}else for(J+Be>$e&&(J=$e-Be),Fe=J;Fe>=0;Fe--){let Xe=!0;for(let ze=0;ze<Be;ze++)if(me(X,Fe+ze)!==me(Y,ze)){Xe=!1;break}if(Xe)return Fe}return-1}a.prototype.includes=function(X,Y,J){return this.indexOf(X,Y,J)!==-1},a.prototype.indexOf=function(X,Y,J){return C(this,X,Y,J,!0)},a.prototype.lastIndexOf=function(X,Y,J){return C(this,X,Y,J,!1)};function w(X,Y,J,he){J=Number(J)||0;let ve=X.length-J;he?(he=Number(he),he>ve&&(he=ve)):he=ve;let ce=Y.length;he>ce/2&&(he=ce/2);let $e;for($e=0;$e<he;++$e){let Be=parseInt(Y.substr($e*2,2),16);if(ye(Be))return $e;X[J+$e]=Be}return $e}function x(X,Y,J,he){return ge(pe(Y,X.length-J),X,J,he)}function T(X,Y,J,he){return ge(_e(Y),X,J,he)}function R(X,Y,J,he){return ge(xe(Y),X,J,he)}function N(X,Y,J,he){return ge(Te(Y,X.length-J),X,J,he)}a.prototype.write=function(X,Y,J,he){if(Y===void 0)he="utf8",J=this.length,Y=0;else if(J===void 0&&typeof Y=="string")he=Y,J=this.length,Y=0;else if(isFinite(Y))Y=Y>>>0,isFinite(J)?(J=J>>>0,he===void 0&&(he="utf8")):(he=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ve=this.length-Y;if((J===void 0||J>ve)&&(J=ve),X.length>0&&(J<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");let ce=!1;for(;;)switch(he){case"hex":return w(this,X,Y,J);case"utf8":case"utf-8":return x(this,X,Y,J);case"ascii":case"latin1":case"binary":return T(this,X,Y,J);case"base64":return R(this,X,Y,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,X,Y,J);default:if(ce)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),ce=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(X,Y,J){return Y===0&&J===X.length?e.fromByteArray(X):e.fromByteArray(X.slice(Y,J))}function P(X,Y,J){J=Math.min(X.length,J);let he=[],ve=Y;for(;ve<J;){let ce=X[ve],$e=null,Be=ce>239?4:ce>223?3:ce>191?2:1;if(ve+Be<=J){let me,Fe,Xe,ze;switch(Be){case 1:ce<128&&($e=ce);break;case 2:me=X[ve+1],(me&192)===128&&(ze=(ce&31)<<6|me&63,ze>127&&($e=ze));break;case 3:me=X[ve+1],Fe=X[ve+2],(me&192)===128&&(Fe&192)===128&&(ze=(ce&15)<<12|(me&63)<<6|Fe&63,ze>2047&&(ze<55296||ze>57343)&&($e=ze));break;case 4:me=X[ve+1],Fe=X[ve+2],Xe=X[ve+3],(me&192)===128&&(Fe&192)===128&&(Xe&192)===128&&(ze=(ce&15)<<18|(me&63)<<12|(Fe&63)<<6|Xe&63,ze>65535&&ze<1114112&&($e=ze))}}$e===null?($e=65533,Be=1):$e>65535&&($e-=65536,he.push($e>>>10&1023|55296),$e=56320|$e&1023),he.push($e),ve+=Be}return F(he)}let D=4096;function F(X){let Y=X.length;if(Y<=D)return String.fromCharCode.apply(String,X);let J="",he=0;for(;he<Y;)J+=String.fromCharCode.apply(String,X.slice(he,he+=D));return J}function L(X,Y,J){let he="";J=Math.min(X.length,J);for(let ve=Y;ve<J;++ve)he+=String.fromCharCode(X[ve]&127);return he}function B(X,Y,J){let he="";J=Math.min(X.length,J);for(let ve=Y;ve<J;++ve)he+=String.fromCharCode(X[ve]);return he}function U(X,Y,J){let he=X.length;(!Y||Y<0)&&(Y=0),(!J||J<0||J>he)&&(J=he);let ve="";for(let ce=Y;ce<J;++ce)ve+=be[X[ce]];return ve}function G(X,Y,J){let he=X.slice(Y,J),ve="";for(let ce=0;ce<he.length-1;ce+=2)ve+=String.fromCharCode(he[ce]+he[ce+1]*256);return ve}a.prototype.slice=function(X,Y){let J=this.length;X=~~X,Y=Y===void 0?J:~~Y,X<0?(X+=J,X<0&&(X=0)):X>J&&(X=J),Y<0?(Y+=J,Y<0&&(Y=0)):Y>J&&(Y=J),Y<X&&(Y=X);let he=this.subarray(X,Y);return Object.setPrototypeOf(he,a.prototype),he};function V(X,Y,J){if(X%1!==0||X<0)throw new RangeError("offset is not uint");if(X+Y>J)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(X,Y,J){X=X>>>0,Y=Y>>>0,J||V(X,Y,this.length);let he=this[X],ve=1,ce=0;for(;++ce<Y&&(ve*=256);)he+=this[X+ce]*ve;return he},a.prototype.readUintBE=a.prototype.readUIntBE=function(X,Y,J){X=X>>>0,Y=Y>>>0,J||V(X,Y,this.length);let he=this[X+--Y],ve=1;for(;Y>0&&(ve*=256);)he+=this[X+--Y]*ve;return he},a.prototype.readUint8=a.prototype.readUInt8=function(X,Y){return X=X>>>0,Y||V(X,1,this.length),this[X]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(X,Y){return X=X>>>0,Y||V(X,2,this.length),this[X]|this[X+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(X,Y){return X=X>>>0,Y||V(X,2,this.length),this[X]<<8|this[X+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(X,Y){return X=X>>>0,Y||V(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(X,Y){return X=X>>>0,Y||V(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},a.prototype.readBigUInt64LE=Ee(function(X){X=X>>>0,ae(X,"offset");let Y=this[X],J=this[X+7];(Y===void 0||J===void 0)&&ue(X,this.length-8);let he=Y+this[++X]*2**8+this[++X]*2**16+this[++X]*2**24,ve=this[++X]+this[++X]*2**8+this[++X]*2**16+J*2**24;return BigInt(he)+(BigInt(ve)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ee(function(X){X=X>>>0,ae(X,"offset");let Y=this[X],J=this[X+7];(Y===void 0||J===void 0)&&ue(X,this.length-8);let he=Y*2**24+this[++X]*2**16+this[++X]*2**8+this[++X],ve=this[++X]*2**24+this[++X]*2**16+this[++X]*2**8+J;return(BigInt(he)<<BigInt(32))+BigInt(ve)}),a.prototype.readIntLE=function(X,Y,J){X=X>>>0,Y=Y>>>0,J||V(X,Y,this.length);let he=this[X],ve=1,ce=0;for(;++ce<Y&&(ve*=256);)he+=this[X+ce]*ve;return ve*=128,he>=ve&&(he-=Math.pow(2,8*Y)),he},a.prototype.readIntBE=function(X,Y,J){X=X>>>0,Y=Y>>>0,J||V(X,Y,this.length);let he=Y,ve=1,ce=this[X+--he];for(;he>0&&(ve*=256);)ce+=this[X+--he]*ve;return ve*=128,ce>=ve&&(ce-=Math.pow(2,8*Y)),ce},a.prototype.readInt8=function(X,Y){return X=X>>>0,Y||V(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},a.prototype.readInt16LE=function(X,Y){X=X>>>0,Y||V(X,2,this.length);let J=this[X]|this[X+1]<<8;return J&32768?J|4294901760:J},a.prototype.readInt16BE=function(X,Y){X=X>>>0,Y||V(X,2,this.length);let J=this[X+1]|this[X]<<8;return J&32768?J|4294901760:J},a.prototype.readInt32LE=function(X,Y){return X=X>>>0,Y||V(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},a.prototype.readInt32BE=function(X,Y){return X=X>>>0,Y||V(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},a.prototype.readBigInt64LE=Ee(function(X){X=X>>>0,ae(X,"offset");let Y=this[X],J=this[X+7];(Y===void 0||J===void 0)&&ue(X,this.length-8);let he=this[X+4]+this[X+5]*2**8+this[X+6]*2**16+(J<<24);return(BigInt(he)<<BigInt(32))+BigInt(Y+this[++X]*2**8+this[++X]*2**16+this[++X]*2**24)}),a.prototype.readBigInt64BE=Ee(function(X){X=X>>>0,ae(X,"offset");let Y=this[X],J=this[X+7];(Y===void 0||J===void 0)&&ue(X,this.length-8);let he=(Y<<24)+this[++X]*2**16+this[++X]*2**8+this[++X];return(BigInt(he)<<BigInt(32))+BigInt(this[++X]*2**24+this[++X]*2**16+this[++X]*2**8+J)}),a.prototype.readFloatLE=function(X,Y){return X=X>>>0,Y||V(X,4,this.length),t.read(this,X,!0,23,4)},a.prototype.readFloatBE=function(X,Y){return X=X>>>0,Y||V(X,4,this.length),t.read(this,X,!1,23,4)},a.prototype.readDoubleLE=function(X,Y){return X=X>>>0,Y||V(X,8,this.length),t.read(this,X,!0,52,8)},a.prototype.readDoubleBE=function(X,Y){return X=X>>>0,Y||V(X,8,this.length),t.read(this,X,!1,52,8)};function W(X,Y,J,he,ve,ce){if(!a.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>ve||Y<ce)throw new RangeError('"value" argument is out of bounds');if(J+he>X.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(X,Y,J,he){if(X=+X,Y=Y>>>0,J=J>>>0,!he){let $e=Math.pow(2,8*J)-1;W(this,X,Y,J,$e,0)}let ve=1,ce=0;for(this[Y]=X&255;++ce<J&&(ve*=256);)this[Y+ce]=X/ve&255;return Y+J},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(X,Y,J,he){if(X=+X,Y=Y>>>0,J=J>>>0,!he){let $e=Math.pow(2,8*J)-1;W(this,X,Y,J,$e,0)}let ve=J-1,ce=1;for(this[Y+ve]=X&255;--ve>=0&&(ce*=256);)this[Y+ve]=X/ce&255;return Y+J},a.prototype.writeUint8=a.prototype.writeUInt8=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,1,255,0),this[Y]=X&255,Y+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,2,65535,0),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,2,65535,0),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,4,4294967295,0),this[Y+3]=X>>>24,this[Y+2]=X>>>16,this[Y+1]=X>>>8,this[Y]=X&255,Y+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,4,4294967295,0),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4};function $(X,Y,J,he,ve){oe(Y,he,ve,X,J,7);let ce=Number(Y&BigInt(4294967295));X[J++]=ce,ce=ce>>8,X[J++]=ce,ce=ce>>8,X[J++]=ce,ce=ce>>8,X[J++]=ce;let $e=Number(Y>>BigInt(32)&BigInt(4294967295));return X[J++]=$e,$e=$e>>8,X[J++]=$e,$e=$e>>8,X[J++]=$e,$e=$e>>8,X[J++]=$e,J}function H(X,Y,J,he,ve){oe(Y,he,ve,X,J,7);let ce=Number(Y&BigInt(4294967295));X[J+7]=ce,ce=ce>>8,X[J+6]=ce,ce=ce>>8,X[J+5]=ce,ce=ce>>8,X[J+4]=ce;let $e=Number(Y>>BigInt(32)&BigInt(4294967295));return X[J+3]=$e,$e=$e>>8,X[J+2]=$e,$e=$e>>8,X[J+1]=$e,$e=$e>>8,X[J]=$e,J+8}a.prototype.writeBigUInt64LE=Ee(function(X,Y=0){return $(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ee(function(X,Y=0){return H(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(X,Y,J,he){if(X=+X,Y=Y>>>0,!he){let Be=Math.pow(2,8*J-1);W(this,X,Y,J,Be-1,-Be)}let ve=0,ce=1,$e=0;for(this[Y]=X&255;++ve<J&&(ce*=256);)X<0&&$e===0&&this[Y+ve-1]!==0&&($e=1),this[Y+ve]=(X/ce>>0)-$e&255;return Y+J},a.prototype.writeIntBE=function(X,Y,J,he){if(X=+X,Y=Y>>>0,!he){let Be=Math.pow(2,8*J-1);W(this,X,Y,J,Be-1,-Be)}let ve=J-1,ce=1,$e=0;for(this[Y+ve]=X&255;--ve>=0&&(ce*=256);)X<0&&$e===0&&this[Y+ve+1]!==0&&($e=1),this[Y+ve]=(X/ce>>0)-$e&255;return Y+J},a.prototype.writeInt8=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,1,127,-128),X<0&&(X=255+X+1),this[Y]=X&255,Y+1},a.prototype.writeInt16LE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,2,32767,-32768),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},a.prototype.writeInt16BE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,2,32767,-32768),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},a.prototype.writeInt32LE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,4,2147483647,-2147483648),this[Y]=X&255,this[Y+1]=X>>>8,this[Y+2]=X>>>16,this[Y+3]=X>>>24,Y+4},a.prototype.writeInt32BE=function(X,Y,J){return X=+X,Y=Y>>>0,J||W(this,X,Y,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4},a.prototype.writeBigInt64LE=Ee(function(X,Y=0){return $(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ee(function(X,Y=0){return H(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(X,Y,J,he,ve,ce){if(J+he>X.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function re(X,Y,J,he,ve){return Y=+Y,J=J>>>0,ve||K(X,Y,J,4),t.write(X,Y,J,he,23,4),J+4}a.prototype.writeFloatLE=function(X,Y,J){return re(this,X,Y,!0,J)},a.prototype.writeFloatBE=function(X,Y,J){return re(this,X,Y,!1,J)};function Q(X,Y,J,he,ve){return Y=+Y,J=J>>>0,ve||K(X,Y,J,8),t.write(X,Y,J,he,52,8),J+8}a.prototype.writeDoubleLE=function(X,Y,J){return Q(this,X,Y,!0,J)},a.prototype.writeDoubleBE=function(X,Y,J){return Q(this,X,Y,!1,J)},a.prototype.copy=function(X,Y,J,he){if(!a.isBuffer(X))throw new TypeError("argument should be a Buffer");if(J||(J=0),!he&&he!==0&&(he=this.length),Y>=X.length&&(Y=X.length),Y||(Y=0),he>0&&he<J&&(he=J),he===J||X.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),X.length-Y<he-J&&(he=X.length-Y+J);let ve=he-J;return this===X&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Y,J,he):Uint8Array.prototype.set.call(X,this.subarray(J,he),Y),ve},a.prototype.fill=function(X,Y,J,he){if(typeof X=="string"){if(typeof Y=="string"?(he=Y,Y=0,J=this.length):typeof J=="string"&&(he=J,J=this.length),he!==void 0&&typeof he!="string")throw new TypeError("encoding must be a string");if(typeof he=="string"&&!a.isEncoding(he))throw new TypeError("Unknown encoding: "+he);if(X.length===1){let ce=X.charCodeAt(0);(he==="utf8"&&ce<128||he==="latin1")&&(X=ce)}}else typeof X=="number"?X=X&255:typeof X=="boolean"&&(X=Number(X));if(Y<0||this.length<Y||this.length<J)throw new RangeError("Out of range index");if(J<=Y)return this;Y=Y>>>0,J=J===void 0?this.length:J>>>0,X||(X=0);let ve;if(typeof X=="number")for(ve=Y;ve<J;++ve)this[ve]=X;else{let ce=a.isBuffer(X)?X:a.from(X,he),$e=ce.length;if($e===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(ve=0;ve<J-Y;++ve)this[ve+Y]=ce[ve%$e]}return this};let A={};function k(X,Y,J){A[X]=class extends J{constructor(){super(),Object.defineProperty(this,"message",{value:Y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(he){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:he,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}k("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),k("ERR_INVALID_ARG_TYPE",function(X,Y){return`The "${X}" argument must be of type number. Received type ${typeof Y}`},TypeError),k("ERR_OUT_OF_RANGE",function(X,Y,J){let he=`The value of "${X}" is out of range.`,ve=J;return Number.isInteger(J)&&Math.abs(J)>2**32?ve=Z(String(J)):typeof J=="bigint"&&(ve=String(J),(J>BigInt(2)**BigInt(32)||J<-(BigInt(2)**BigInt(32)))&&(ve=Z(ve)),ve+="n"),he+=` It must be ${Y}. Received ${ve}`,he},RangeError);function Z(X){let Y="",J=X.length,he=X[0]==="-"?1:0;for(;J>=he+4;J-=3)Y=`_${X.slice(J-3,J)}${Y}`;return`${X.slice(0,J)}${Y}`}function ne(X,Y,J){ae(Y,"offset"),(X[Y]===void 0||X[Y+J]===void 0)&&ue(Y,X.length-(J+1))}function oe(X,Y,J,he,ve,ce){if(X>J||X<Y){let $e=typeof Y=="bigint"?"n":"",Be;throw Y===0||Y===BigInt(0)?Be=`>= 0${$e} and < 2${$e} ** ${(ce+1)*8}${$e}`:Be=`>= -(2${$e} ** ${(ce+1)*8-1}${$e}) and < 2 ** ${(ce+1)*8-1}${$e}`,new A.ERR_OUT_OF_RANGE("value",Be,X)}ne(he,ve,ce)}function ae(X,Y){if(typeof X!="number")throw new A.ERR_INVALID_ARG_TYPE(Y,"number",X)}function ue(X,Y,J){throw Math.floor(X)!==X?(ae(X,J),new A.ERR_OUT_OF_RANGE("offset","an integer",X)):Y<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Y}`,X)}let fe=/[^+/0-9A-Za-z-_]/g;function se(X){if(X=X.split("=")[0],X=X.trim().replace(fe,""),X.length<2)return"";for(;X.length%4!==0;)X=X+"=";return X}function pe(X,Y){Y=Y||1/0;let J,he=X.length,ve=null,ce=[];for(let $e=0;$e<he;++$e){if(J=X.charCodeAt($e),J>55295&&J<57344){if(!ve){if(J>56319){(Y-=3)>-1&&ce.push(239,191,189);continue}else if($e+1===he){(Y-=3)>-1&&ce.push(239,191,189);continue}ve=J;continue}if(J<56320){(Y-=3)>-1&&ce.push(239,191,189),ve=J;continue}J=(ve-55296<<10|J-56320)+65536}else ve&&(Y-=3)>-1&&ce.push(239,191,189);if(ve=null,J<128){if((Y-=1)<0)break;ce.push(J)}else if(J<2048){if((Y-=2)<0)break;ce.push(J>>6|192,J&63|128)}else if(J<65536){if((Y-=3)<0)break;ce.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if((Y-=4)<0)break;ce.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return ce}function _e(X){let Y=[];for(let J=0;J<X.length;++J)Y.push(X.charCodeAt(J)&255);return Y}function Te(X,Y){let J,he,ve,ce=[];for(let $e=0;$e<X.length&&!((Y-=2)<0);++$e)J=X.charCodeAt($e),he=J>>8,ve=J%256,ce.push(ve),ce.push(he);return ce}function xe(X){return e.toByteArray(se(X))}function ge(X,Y,J,he){let ve;for(ve=0;ve<he&&!(ve+J>=Y.length||ve>=X.length);++ve)Y[ve+J]=X[ve];return ve}function Ce(X,Y){return X instanceof Y||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===Y.name}function ye(X){return X!==X}let be=function(){let X="0123456789abcdef",Y=new Array(256);for(let J=0;J<16;++J){let he=J*16;for(let ve=0;ve<16;++ve)Y[he+ve]=X[J]+X[ve]}return Y}();function Ee(X){return typeof BigInt>"u"?Me:X}function Me(){throw new Error("BigInt not supported")}return bm}var $y,e7,uC,t7,bm,n7,Df,OM,W0e,Y0e,Za=Qa(()=>{Kt(),Xt(),Qt(),$y={},e7=!1,uC={},t7=!1,bm={},n7=!1,Df=y7e(),Df.Buffer,Df.SlowBuffer,Df.INSPECT_MAX_BYTES,Df.kMaxLength,OM=Df.Buffer,W0e=Df.INSPECT_MAX_BYTES,Y0e=Df.kMaxLength}),Xt=Qa(()=>{Za()}),b7e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),va=an((e,t)=>{Kt(),Xt(),Qt(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),gp=an((e,t)=>{Kt(),Xt(),Qt();var n=(Za(),Ai(Xa)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,o=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},a=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c<s.length;c++)l+=` ${s[c].stack}
|
||
`;super(l),this.name="AggregateError",this.errors=s}};t.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(s){let l=!1;return function(...c){l||(l=!0,s.apply(this,c))}},createDeferredPromise:function(){let s,l;return{promise:new Promise((c,u)=>{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...d)=>u?c(u):l(...d))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let d=l.shift();return u==="f"?d.toFixed(6):u==="j"?JSON.stringify(d):u==="s"&&typeof d=="object"?`${d.constructor!==Object?d.constructor.name:""} {}`.trim():d.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:o},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),SW=an((e,t)=>{Kt(),Xt(),Qt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),bl=an((e,t)=>{Kt(),Xt(),Qt();var{format:n,inspect:r,AggregateError:i}=gp(),o=globalThis.AggregateError||i,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function d(_,b){if(!_)throw new u.ERR_INTERNAL_ASSERTION(b)}function f(_){let b="",S=_.length,C=_[0]==="-"?1:0;for(;S>=C+4;S-=3)b=`_${_.slice(S-3,S)}${b}`;return`${_.slice(0,S)}${b}`}function p(_,b,S){if(typeof b=="function")return d(b.length<=S.length,`Code: ${_}; The provided arguments length (${S.length}) does not match the required ones (${b.length}).`),b(...S);let C=(b.match(/%[dfijoOs]/g)||[]).length;return d(C===S.length,`Code: ${_}; The provided arguments length (${S.length}) does not match the required ones (${C}).`),S.length===0?b:n(b,...S)}function h(_,b,S){S||(S=Error);class C extends S{constructor(...w){super(p(_,b,w))}toString(){return`${this.name} [${_}]: ${this.message}`}}Object.defineProperties(C.prototype,{name:{value:S.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${_}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),C.prototype.code=_,C.prototype[a]=!0,u[_]=C}function g(_){let b=c+_.name;return Object.defineProperty(_,"name",{value:b}),_}function v(_,b){if(_&&b&&_!==b){if(Array.isArray(b.errors))return b.errors.push(_),b;let S=new o([b,_],b.message);return S.code=b.code,S}return _||b}var y=class extends Error{constructor(_="The operation was aborted",b=void 0){if(b!==void 0&&typeof b!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",b);super(_,b),this.code="ABORT_ERR",this.name="AbortError"}};h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",(_,b,S)=>{d(typeof _=="string","'name' must be a string"),Array.isArray(b)||(b=[b]);let C="The ";_.endsWith(" argument")?C+=`${_} `:C+=`"${_}" ${_.includes(".")?"property":"argument"} `,C+="must be ";let E=[],w=[],x=[];for(let R of b)d(typeof R=="string","All expected entries have to be of type string"),s.includes(R)?E.push(R.toLowerCase()):l.test(R)?w.push(R):(d(R!=="object",'The value "object" should be written as "Object"'),x.push(R));if(w.length>0){let R=E.indexOf("object");R!==-1&&(E.splice(E,R,1),w.push("Object"))}if(E.length>0){switch(E.length){case 1:C+=`of type ${E[0]}`;break;case 2:C+=`one of type ${E[0]} or ${E[1]}`;break;default:{let R=E.pop();C+=`one of type ${E.join(", ")}, or ${R}`}}(w.length>0||x.length>0)&&(C+=" or ")}if(w.length>0){switch(w.length){case 1:C+=`an instance of ${w[0]}`;break;case 2:C+=`an instance of ${w[0]} or ${w[1]}`;break;default:{let R=w.pop();C+=`an instance of ${w.join(", ")}, or ${R}`}}x.length>0&&(C+=" or ")}switch(x.length){case 0:break;case 1:x[0].toLowerCase()!==x[0]&&(C+="an "),C+=`${x[0]}`;break;case 2:C+=`one of ${x[0]} or ${x[1]}`;break;default:{let R=x.pop();C+=`one of ${x.join(", ")}, or ${R}`}}if(S==null)C+=`. Received ${S}`;else if(typeof S=="function"&&S.name)C+=`. Received function ${S.name}`;else if(typeof S=="object"){var T;if((T=S.constructor)!==null&&T!==void 0&&T.name)C+=`. Received an instance of ${S.constructor.name}`;else{let R=r(S,{depth:-1});C+=`. Received ${R}`}}else{let R=r(S,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),C+=`. Received type ${typeof S} (${R})`}return C},TypeError),h("ERR_INVALID_ARG_VALUE",(_,b,S="is invalid")=>{let C=r(b);return C.length>128&&(C=C.slice(0,128)+"..."),`The ${_.includes(".")?"property":"argument"} '${_}' ${S}. Received ${C}`},TypeError),h("ERR_INVALID_RETURN_VALUE",(_,b,S)=>{var C;let E=S!=null&&(C=S.constructor)!==null&&C!==void 0&&C.name?`instance of ${S.constructor.name}`:`type ${typeof S}`;return`Expected ${_} to be returned from the "${b}" function but got ${E}.`},TypeError),h("ERR_MISSING_ARGS",(..._)=>{d(_.length>0,"At least one arg needs to be specified");let b,S=_.length;switch(_=(Array.isArray(_)?_:[_]).map(C=>`"${C}"`).join(" or "),S){case 1:b+=`The ${_[0]} argument`;break;case 2:b+=`The ${_[0]} and ${_[1]} arguments`;break;default:{let C=_.pop();b+=`The ${_.join(", ")}, and ${C} arguments`}break}return`${b} must be specified`},TypeError),h("ERR_OUT_OF_RANGE",(_,b,S)=>{d(b,'Missing "range" argument');let C;return Number.isInteger(S)&&Math.abs(S)>2**32?C=f(String(S)):typeof S=="bigint"?(C=String(S),(S>2n**32n||S<-(2n**32n))&&(C=f(C)),C+="n"):C=r(S),`The value of "${_}" is out of range. It must be ${b}. Received ${C}`},RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:y,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),N2=an((e,t)=>{Kt(),Xt(),Qt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:h,StringPrototypeTrim:g}=va(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:S,ERR_UNKNOWN_SIGNAL:C}}=bl(),{normalizeEncoding:E}=gp(),{isAsyncFunction:w,isArrayBufferView:x}=gp().types,T={};function R(ge){return ge===(ge|0)}function N(ge){return ge===ge>>>0}var I=/^[0-7]+$/,P="must be a 32-bit unsigned integer or an octal string";function D(ge,Ce,ye){if(typeof ge>"u"&&(ge=ye),typeof ge=="string"){if(f(I,ge)===null)throw new b(Ce,ge,P);ge=u(ge,8)}return B(ge,Ce),ge}var F=v((ge,Ce,ye=c,be=l)=>{if(typeof ge!="number")throw new _(Ce,"number",ge);if(!a(ge))throw new S(Ce,"an integer",ge);if(ge<ye||ge>be)throw new S(Ce,`>= ${ye} && <= ${be}`,ge)}),L=v((ge,Ce,ye=-2147483648,be=2147483647)=>{if(typeof ge!="number")throw new _(Ce,"number",ge);if(!a(ge))throw new S(Ce,"an integer",ge);if(ge<ye||ge>be)throw new S(Ce,`>= ${ye} && <= ${be}`,ge)}),B=v((ge,Ce,ye=!1)=>{if(typeof ge!="number")throw new _(Ce,"number",ge);if(!a(ge))throw new S(Ce,"an integer",ge);let be=ye?1:0,Ee=4294967295;if(ge<be||ge>Ee)throw new S(Ce,`>= ${be} && <= ${Ee}`,ge)});function U(ge,Ce){if(typeof ge!="string")throw new _(Ce,"string",ge)}function G(ge,Ce,ye=void 0,be){if(typeof ge!="number")throw new _(Ce,"number",ge);if(ye!=null&&ge<ye||be!=null&&ge>be||(ye!=null||be!=null)&&s(ge))throw new S(Ce,`${ye!=null?`>= ${ye}`:""}${ye!=null&&be!=null?" && ":""}${be!=null?`<= ${be}`:""}`,ge)}var V=v((ge,Ce,ye)=>{if(!r(ye,ge)){let be="must be one of: "+i(o(ye,Ee=>typeof Ee=="string"?`'${Ee}'`:p(Ee)),", ");throw new b(Ce,ge,be)}});function W(ge,Ce){if(typeof ge!="boolean")throw new _(Ce,"boolean",ge)}function $(ge,Ce,ye){return ge==null||!d(ge,Ce)?ye:ge[Ce]}var H=v((ge,Ce,ye=null)=>{let be=$(ye,"allowArray",!1),Ee=$(ye,"allowFunction",!1);if(!$(ye,"nullable",!1)&&ge===null||!be&&n(ge)||typeof ge!="object"&&(!Ee||typeof ge!="function"))throw new _(Ce,"Object",ge)}),K=v((ge,Ce)=>{if(ge!=null&&typeof ge!="object"&&typeof ge!="function")throw new _(Ce,"a dictionary",ge)}),re=v((ge,Ce,ye=0)=>{if(!n(ge))throw new _(Ce,"Array",ge);if(ge.length<ye){let be=`must be longer than ${ye}`;throw new b(Ce,ge,be)}});function Q(ge,Ce){re(ge,Ce);for(let ye=0;ye<ge.length;ye++)U(ge[ye],`${Ce}[${ye}]`)}function A(ge,Ce){re(ge,Ce);for(let ye=0;ye<ge.length;ye++)W(ge[ye],`${Ce}[${ye}]`)}function k(ge,Ce="signal"){if(U(ge,Ce),T[ge]===void 0)throw T[h(ge)]!==void 0?new C(ge+" (signals must use all capital letters)"):new C(ge)}var Z=v((ge,Ce="buffer")=>{if(!x(ge))throw new _(Ce,["Buffer","TypedArray","DataView"],ge)});function ne(ge,Ce){let ye=E(Ce),be=ge.length;if(ye==="hex"&&be%2!==0)throw new b("encoding",Ce,`is invalid for data of length ${be}`)}function oe(ge,Ce="Port",ye=!0){if(typeof ge!="number"&&typeof ge!="string"||typeof ge=="string"&&g(ge).length===0||+ge!==+ge>>>0||ge>65535||ge===0&&!ye)throw new y(Ce,ge,ye);return ge|0}var ae=v((ge,Ce)=>{if(ge!==void 0&&(ge===null||typeof ge!="object"||!("aborted"in ge)))throw new _(Ce,"AbortSignal",ge)}),ue=v((ge,Ce)=>{if(typeof ge!="function")throw new _(Ce,"Function",ge)}),fe=v((ge,Ce)=>{if(typeof ge!="function"||w(ge))throw new _(Ce,"Function",ge)}),se=v((ge,Ce)=>{if(ge!==void 0)throw new _(Ce,"undefined",ge)});function pe(ge,Ce,ye){if(!r(ye,ge))throw new _(Ce,`('${i(ye,"|")}')`,ge)}var _e=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Te(ge,Ce){if(typeof ge>"u"||!f(_e,ge))throw new b(Ce,ge,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function xe(ge){if(typeof ge=="string")return Te(ge,"hints"),ge;if(n(ge)){let Ce=ge.length,ye="";if(Ce===0)return ye;for(let be=0;be<Ce;be++){let Ee=ge[be];Te(Ee,"hints"),ye+=Ee,be!==Ce-1&&(ye+=", ")}return ye}throw new b("hints",ge,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:R,isUint32:N,parseFileMode:D,validateArray:re,validateStringArray:Q,validateBooleanArray:A,validateBoolean:W,validateBuffer:Z,validateDictionary:K,validateEncoding:ne,validateFunction:ue,validateInt32:L,validateInteger:F,validateNumber:G,validateObject:H,validateOneOf:V,validatePlainFunction:fe,validatePort:oe,validateSignalName:k,validateString:U,validateUint32:B,validateUndefined:se,validateUnion:pe,validateAbortSignal:ae,validateLinkHeaderValue:xe}}),E_=an((e,t)=>{Kt(),Xt(),Qt();var n=t.exports={},r,i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=o}catch{r=o}try{typeof clearTimeout=="function"?i=clearTimeout:i=a}catch{i=a}})();function s(y){if(r===setTimeout)return setTimeout(y,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}function l(y){if(i===clearTimeout)return clearTimeout(y);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var c=[],u=!1,d,f=-1;function p(){!u||!d||(u=!1,d.length?c=d.concat(c):f=-1,c.length&&h())}function h(){if(!u){var y=s(p);u=!0;for(var _=c.length;_;){for(d=c,c=[];++f<_;)d&&d[f].run();f=-1,_=c.length}d=null,u=!1,l(y)}}n.nextTick=function(y){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)_[b-1]=arguments[b];c.push(new g(y,_)),c.length===1&&!u&&s(h)};function g(y,_){this.fun=y,this.array=_}g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={};function v(){}n.on=v,n.addListener=v,n.once=v,n.off=v,n.removeListener=v,n.removeAllListeners=v,n.emit=v,n.prependListener=v,n.prependOnceListener=v,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}),Op=an((e,t)=>{Kt(),Xt(),Qt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:o}=va(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function f($,H=!1){var K;return!!($&&typeof $.pipe=="function"&&typeof $.on=="function"&&(!H||typeof $.pause=="function"&&typeof $.resume=="function")&&(!$._writableState||((K=$._readableState)===null||K===void 0?void 0:K.readable)!==!1)&&(!$._writableState||$._readableState))}function p($){var H;return!!($&&typeof $.write=="function"&&typeof $.on=="function"&&(!$._readableState||((H=$._writableState)===null||H===void 0?void 0:H.writable)!==!1))}function h($){return!!($&&typeof $.pipe=="function"&&$._readableState&&typeof $.on=="function"&&typeof $.write=="function")}function g($){return $&&($._readableState||$._writableState||typeof $.write=="function"&&typeof $.on=="function"||typeof $.pipe=="function"&&typeof $.on=="function")}function v($){return!!($&&!g($)&&typeof $.pipeThrough=="function"&&typeof $.getReader=="function"&&typeof $.cancel=="function")}function y($){return!!($&&!g($)&&typeof $.getWriter=="function"&&typeof $.abort=="function")}function _($){return!!($&&!g($)&&typeof $.readable=="object"&&typeof $.writable=="object")}function b($){return v($)||y($)||_($)}function S($,H){return $==null?!1:H===!0?typeof $[r]=="function":H===!1?typeof $[i]=="function":typeof $[r]=="function"||typeof $[i]=="function"}function C($){if(!g($))return null;let H=$._writableState,K=$._readableState,re=H||K;return!!($.destroyed||$[a]||re!=null&&re.destroyed)}function E($){if(!p($))return null;if($.writableEnded===!0)return!0;let H=$._writableState;return H!=null&&H.errored?!1:typeof(H==null?void 0:H.ended)!="boolean"?null:H.ended}function w($,H){if(!p($))return null;if($.writableFinished===!0)return!0;let K=$._writableState;return K!=null&&K.errored?!1:typeof(K==null?void 0:K.finished)!="boolean"?null:!!(K.finished||H===!1&&K.ended===!0&&K.length===0)}function x($){if(!f($))return null;if($.readableEnded===!0)return!0;let H=$._readableState;return!H||H.errored?!1:typeof(H==null?void 0:H.ended)!="boolean"?null:H.ended}function T($,H){if(!f($))return null;let K=$._readableState;return K!=null&&K.errored?!1:typeof(K==null?void 0:K.endEmitted)!="boolean"?null:!!(K.endEmitted||H===!1&&K.ended===!0&&K.length===0)}function R($){return $&&$[l]!=null?$[l]:typeof($==null?void 0:$.readable)!="boolean"?null:C($)?!1:f($)&&$.readable&&!T($)}function N($){return typeof($==null?void 0:$.writable)!="boolean"?null:C($)?!1:p($)&&$.writable&&!E($)}function I($,H){return g($)?C($)?!0:!((H==null?void 0:H.readable)!==!1&&R($)||(H==null?void 0:H.writable)!==!1&&N($)):null}function P($){var H,K;return g($)?$.writableErrored?$.writableErrored:(H=(K=$._writableState)===null||K===void 0?void 0:K.errored)!==null&&H!==void 0?H:null:null}function D($){var H,K;return g($)?$.readableErrored?$.readableErrored:(H=(K=$._readableState)===null||K===void 0?void 0:K.errored)!==null&&H!==void 0?H:null:null}function F($){if(!g($))return null;if(typeof $.closed=="boolean")return $.closed;let H=$._writableState,K=$._readableState;return typeof(H==null?void 0:H.closed)=="boolean"||typeof(K==null?void 0:K.closed)=="boolean"?(H==null?void 0:H.closed)||(K==null?void 0:K.closed):typeof $._closed=="boolean"&&L($)?$._closed:null}function L($){return typeof $._closed=="boolean"&&typeof $._defaultKeepAlive=="boolean"&&typeof $._removedConnection=="boolean"&&typeof $._removedContLen=="boolean"}function B($){return typeof $._sent100=="boolean"&&L($)}function U($){var H;return typeof $._consuming=="boolean"&&typeof $._dumped=="boolean"&&((H=$.req)===null||H===void 0?void 0:H.upgradeOrConnect)===void 0}function G($){if(!g($))return null;let H=$._writableState,K=$._readableState,re=H||K;return!re&&B($)||!!(re&&re.autoDestroy&&re.emitClose&&re.closed===!1)}function V($){var H;return!!($&&((H=$[c])!==null&&H!==void 0?H:$.readableDidRead||$.readableAborted))}function W($){var H,K,re,Q,A,k,Z,ne,oe,ae;return!!($&&((H=(K=(re=(Q=(A=(k=$[s])!==null&&k!==void 0?k:$.readableErrored)!==null&&A!==void 0?A:$.writableErrored)!==null&&Q!==void 0?Q:(Z=$._readableState)===null||Z===void 0?void 0:Z.errorEmitted)!==null&&re!==void 0?re:(ne=$._writableState)===null||ne===void 0?void 0:ne.errorEmitted)!==null&&K!==void 0?K:(oe=$._readableState)===null||oe===void 0?void 0:oe.errored)!==null&&H!==void 0?H:!((ae=$._writableState)===null||ae===void 0)&&ae.errored))}t.exports={kDestroyed:a,isDisturbed:V,kIsDisturbed:c,isErrored:W,kIsErrored:s,isReadable:R,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:d,isClosed:F,isDestroyed:C,isDuplexNodeStream:h,isFinished:I,isIterable:S,isReadableNodeStream:f,isReadableStream:v,isReadableEnded:x,isReadableFinished:T,isReadableErrored:D,isNodeStream:g,isWebStream:b,isWritable:N,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:E,isWritableFinished:w,isWritableErrored:P,isServerRequest:U,isServerResponse:B,willEmitClose:G,isTransformStream:_}}),Dh=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),{AbortError:r,codes:i}=bl(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=i,{kEmptyObject:s,once:l}=gp(),{validateAbortSignal:c,validateFunction:u,validateObject:d,validateBoolean:f}=N2(),{Promise:p,PromisePrototypeThen:h}=va(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:_,isReadableFinished:b,isReadableErrored:S,isWritable:C,isWritableNodeStream:E,isWritableStream:w,isWritableFinished:x,isWritableErrored:T,isNodeStream:R,willEmitClose:N,kIsClosedPromise:I}=Op();function P(U){return U.setHeader&&typeof U.abort=="function"}var D=()=>{};function F(U,G,V){var W,$;if(arguments.length===2?(V=G,G=s):G==null?G=s:d(G,"options"),u(V,"callback"),c(G.signal,"options.signal"),V=l(V),_(U)||w(U))return L(U,G,V);if(!R(U))throw new o("stream",["ReadableStream","WritableStream","Stream"],U);let H=(W=G.readable)!==null&&W!==void 0?W:y(U),K=($=G.writable)!==null&&$!==void 0?$:E(U),re=U._writableState,Q=U._readableState,A=()=>{U.writable||ne()},k=N(U)&&y(U)===H&&E(U)===K,Z=x(U,!1),ne=()=>{Z=!0,U.destroyed&&(k=!1),!(k&&(!U.readable||H))&&(!H||oe)&&V.call(U)},oe=b(U,!1),ae=()=>{oe=!0,U.destroyed&&(k=!1),!(k&&(!U.writable||K))&&(!K||Z)&&V.call(U)},ue=xe=>{V.call(U,xe)},fe=g(U),se=()=>{fe=!0;let xe=T(U)||S(U);if(xe&&typeof xe!="boolean")return V.call(U,xe);if(H&&!oe&&y(U,!0)&&!b(U,!1))return V.call(U,new a);if(K&&!Z&&!x(U,!1))return V.call(U,new a);V.call(U)},pe=()=>{fe=!0;let xe=T(U)||S(U);if(xe&&typeof xe!="boolean")return V.call(U,xe);V.call(U)},_e=()=>{U.req.on("finish",ne)};P(U)?(U.on("complete",ne),k||U.on("abort",se),U.req?_e():U.on("request",_e)):K&&!re&&(U.on("end",A),U.on("close",A)),!k&&typeof U.aborted=="boolean"&&U.on("aborted",se),U.on("end",ae),U.on("finish",ne),G.error!==!1&&U.on("error",ue),U.on("close",se),fe?n.nextTick(se):re!=null&&re.errorEmitted||Q!=null&&Q.errorEmitted?k||n.nextTick(pe):(!H&&(!k||v(U))&&(Z||C(U)===!1)||!K&&(!k||C(U))&&(oe||v(U)===!1)||Q&&U.req&&U.aborted)&&n.nextTick(pe);let Te=()=>{V=D,U.removeListener("aborted",se),U.removeListener("complete",ne),U.removeListener("abort",se),U.removeListener("request",_e),U.req&&U.req.removeListener("finish",ne),U.removeListener("end",A),U.removeListener("close",A),U.removeListener("finish",ne),U.removeListener("end",ae),U.removeListener("error",ue),U.removeListener("close",se)};if(G.signal&&!fe){let xe=()=>{let ge=V;Te(),ge.call(U,new r(void 0,{cause:G.signal.reason}))};if(G.signal.aborted)n.nextTick(xe);else{let ge=V;V=l((...Ce)=>{G.signal.removeEventListener("abort",xe),ge.apply(U,Ce)}),G.signal.addEventListener("abort",xe)}}return Te}function L(U,G,V){let W=!1,$=D;if(G.signal)if($=()=>{W=!0,V.call(U,new r(void 0,{cause:G.signal.reason}))},G.signal.aborted)n.nextTick($);else{let K=V;V=l((...re)=>{G.signal.removeEventListener("abort",$),K.apply(U,re)}),G.signal.addEventListener("abort",$)}let H=(...K)=>{W||n.nextTick(()=>V.apply(U,K))};return h(U[I].promise,H,H),D}function B(U,G){var V;let W=!1;return G===null&&(G=s),(V=G)!==null&&V!==void 0&&V.cleanup&&(f(G.cleanup,"cleanup"),W=G.cleanup),new p(($,H)=>{let K=F(U,G,re=>{W&&K(),re?H(re):$()})})}t.exports=F,t.exports.finished=B}),Q0=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:o}=bl(),{Symbol:a}=va(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Op(),d=a("kDestroy"),f=a("kConstruct");function p(I,P,D){I&&(I.stack,P&&!P.errored&&(P.errored=I),D&&!D.errored&&(D.errored=I))}function h(I,P){let D=this._readableState,F=this._writableState,L=F||D;return F!=null&&F.destroyed||D!=null&&D.destroyed?(typeof P=="function"&&P(),this):(p(I,F,D),F&&(F.destroyed=!0),D&&(D.destroyed=!0),L.constructed?g(this,I,P):this.once(d,function(B){g(this,r(B,I),P)}),this)}function g(I,P,D){let F=!1;function L(B){if(F)return;F=!0;let U=I._readableState,G=I._writableState;p(B,G,U),G&&(G.closed=!0),U&&(U.closed=!0),typeof D=="function"&&D(B),B?n.nextTick(v,I,B):n.nextTick(y,I)}try{I._destroy(P||null,L)}catch(B){L(B)}}function v(I,P){_(I,P),y(I)}function y(I){let P=I._readableState,D=I._writableState;D&&(D.closeEmitted=!0),P&&(P.closeEmitted=!0),(D!=null&&D.emitClose||P!=null&&P.emitClose)&&I.emit("close")}function _(I,P){let D=I._readableState,F=I._writableState;F!=null&&F.errorEmitted||D!=null&&D.errorEmitted||(F&&(F.errorEmitted=!0),D&&(D.errorEmitted=!0),I.emit("error",P))}function b(){let I=this._readableState,P=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),P&&(P.constructed=!0,P.destroyed=!1,P.closed=!1,P.closeEmitted=!1,P.errored=null,P.errorEmitted=!1,P.finalCalled=!1,P.prefinished=!1,P.ended=P.writable===!1,P.ending=P.writable===!1,P.finished=P.writable===!1)}function S(I,P,D){let F=I._readableState,L=I._writableState;if(L!=null&&L.destroyed||F!=null&&F.destroyed)return this;F!=null&&F.autoDestroy||L!=null&&L.autoDestroy?I.destroy(P):P&&(P.stack,L&&!L.errored&&(L.errored=P),F&&!F.errored&&(F.errored=P),D?n.nextTick(_,I,P):_(I,P))}function C(I,P){if(typeof I._construct!="function")return;let D=I._readableState,F=I._writableState;D&&(D.constructed=!1),F&&(F.constructed=!1),I.once(f,P),!(I.listenerCount(f)>1)&&n.nextTick(E,I)}function E(I){let P=!1;function D(F){if(P){S(I,F??new i);return}P=!0;let L=I._readableState,B=I._writableState,U=B||L;L&&(L.constructed=!0),B&&(B.constructed=!0),U.destroyed?I.emit(d,F):F?S(I,F,!0):n.nextTick(w,I)}try{I._construct(F=>{n.nextTick(D,F)})}catch(F){n.nextTick(D,F)}}function w(I){I.emit(f)}function x(I){return(I==null?void 0:I.setHeader)&&typeof I.abort=="function"}function T(I){I.emit("close")}function R(I,P){I.emit("error",P),n.nextTick(T,I)}function N(I,P){!I||l(I)||(!P&&!c(I)&&(P=new o),u(I)?(I.socket=null,I.destroy(P)):x(I)?I.abort():x(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(P):typeof I.close=="function"?I.close():P?n.nextTick(R,I,P):n.nextTick(T,I),I.destroyed||(I[s]=!0))}t.exports={construct:C,destroyer:N,destroy:h,undestroy:b,errorOrDestroy:S}});function Ti(){Ti.init.call(this)}function LI(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function q0e(e){return e._maxListeners===void 0?Ti.defaultMaxListeners:e._maxListeners}function Cte(e,t,n,r){var i,o,a,s;if(LI(n),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),a===void 0)a=o[t]=n,++e._eventsCount;else if(typeof a=="function"?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=q0e(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function S7e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wte(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=S7e.bind(r);return i.listener=n,r.wrapFn=i,i}function xte(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(o){for(var a=new Array(o.length),s=0;s<a.length;++s)a[s]=o[s].listener||o[s];return a}(i):K0e(i,i.length)}function Tte(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}function K0e(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}var Rte,Ote,_g,o4,a4,s4,Bl,Ite=Qa(()=>{Kt(),Xt(),Qt(),_g=typeof Reflect=="object"?Reflect:null,o4=_g&&typeof _g.apply=="function"?_g.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Ote=_g&&typeof _g.ownKeys=="function"?_g.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},a4=Number.isNaN||function(e){return e!=e},Rte=Ti,Ti.EventEmitter=Ti,Ti.prototype._events=void 0,Ti.prototype._eventsCount=0,Ti.prototype._maxListeners=void 0,s4=10,Object.defineProperty(Ti,"defaultMaxListeners",{enumerable:!0,get:function(){return s4},set:function(e){if(typeof e!="number"||e<0||a4(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s4=e}}),Ti.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ti.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||a4(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Ti.prototype.getMaxListeners=function(){return q0e(this)},Ti.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r=e==="error",i=this._events;if(i!==void 0)r=r&&i.error===void 0;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")o4(s,this,t);else{var l=s.length,c=K0e(s,l);for(n=0;n<l;++n)o4(c[n],this,t)}return!0},Ti.prototype.addListener=function(e,t){return Cte(this,e,t,!1)},Ti.prototype.on=Ti.prototype.addListener,Ti.prototype.prependListener=function(e,t){return Cte(this,e,t,!0)},Ti.prototype.once=function(e,t){return LI(t),this.on(e,wte(this,e,t)),this},Ti.prototype.prependOnceListener=function(e,t){return LI(t),this.prependListener(e,wte(this,e,t)),this},Ti.prototype.removeListener=function(e,t){var n,r,i,o,a;if(LI(t),(r=this._events)===void 0)return this;if((n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},Ti.prototype.off=Ti.prototype.removeListener,Ti.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,o=Object.keys(n);for(r=0;r<o.length;++r)(i=o[r])!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},Ti.prototype.listeners=function(e){return xte(this,e,!0)},Ti.prototype.rawListeners=function(e){return xte(this,e,!1)},Ti.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Tte.call(e,t)},Ti.prototype.listenerCount=Tte,Ti.prototype.eventNames=function(){return this._eventsCount>0?Ote(this._events):[]},Bl=Rte,Bl.EventEmitter,Bl.defaultMaxListeners,Bl.init,Bl.listenerCount,Bl.EventEmitter,Bl.defaultMaxListeners,Bl.init,Bl.listenerCount}),C_={};S_(C_,{EventEmitter:()=>Q0e,default:()=>Bl,defaultMaxListeners:()=>X0e,init:()=>Z0e,listenerCount:()=>J0e,on:()=>eSe,once:()=>tSe});var Q0e,X0e,Z0e,J0e,eSe,tSe,X0=Qa(()=>{Kt(),Xt(),Qt(),Ite(),Ite(),Bl.once=function(e,t){return new Promise((n,r)=>{function i(...a){o!==void 0&&e.removeListener("error",o),n(a)}let o;t!=="error"&&(o=a=>{e.removeListener(name,i),r(a)},e.once("error",o)),e.once(t,i)})},Bl.on=function(e,t){let n=[],r=[],i=null,o=!1,a={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return o?createIterResult(void 0,!0):new Promise((u,d)=>r.push({resolve:u,reject:d}))},async return(){e.removeListener(t,s),e.removeListener("error",l),o=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),a;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){o=!0;let u=r.shift();u?u.reject(c):i=c,a.return()}},{EventEmitter:Q0e,defaultMaxListeners:X0e,init:Z0e,listenerCount:J0e,on:eSe,once:tSe}=Bl}),EW=an((e,t)=>{Kt(),Xt(),Qt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=va(),{EventEmitter:i}=(X0(),Ai(C_));function o(s){i.call(this,s)}r(o.prototype,i.prototype),r(o,i),o.prototype.pipe=function(s,l){let c=this;function u(y){s.writable&&s.write(y)===!1&&c.pause&&c.pause()}c.on("data",u);function d(){c.readable&&c.resume&&c.resume()}s.on("drain",d),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",p),c.on("close",h));let f=!1;function p(){f||(f=!0,s.end())}function h(){f||(f=!0,typeof s.destroy=="function"&&s.destroy())}function g(y){v(),i.listenerCount(this,"error")===0&&this.emit("error",y)}a(c,"error",g),a(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",d),c.removeListener("end",p),c.removeListener("close",h),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),s.emit("pipe",c),s};function a(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:o,prependListener:a}}),M2=an((e,t)=>{Kt(),Xt(),Qt();var{AbortError:n,codes:r}=bl(),{isNodeStream:i,isWebStream:o,kControllerErrorFunction:a}=Op(),s=Dh(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,d)=>{if(typeof u!="object"||!("aborted"in u))throw new l(d,"AbortSignal",u)};t.exports.addAbortSignal=function(u,d){if(c(u,"signal"),!i(d)&&!o(d))throw new l("stream",["ReadableStream","WritableStream","Stream"],d);return t.exports.addAbortSignalNoValidate(u,d)},t.exports.addAbortSignalNoValidate=function(u,d){if(typeof u!="object"||!("aborted"in u))return d;let f=i(d)?()=>{d.destroy(new n(void 0,{cause:u.reason}))}:()=>{d[a](new n(void 0,{cause:u.reason}))};return u.aborted?f():(u.addEventListener("abort",f),s(d,()=>u.removeEventListener("abort",f))),d}}),E7e=an((e,t)=>{Kt(),Xt(),Qt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:o}=va(),{Buffer:a}=(Za(),Ai(Xa)),{inspect:s}=gp();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return a.alloc(0);let c=a.allocUnsafe(l>>>0),u=this.head,d=0;for(;u;)i(c,u.data,d),d+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(l<u.length){let d=u.slice(0,l);return this.head.data=u.slice(l),d}return l===u.length?this.shift():c?this._getString(l):this._getBuffer(l)}first(){return this.head.data}*[r](){for(let l=this.head;l;l=l.next)yield l.data}_getString(l){let c="",u=this.head,d=0;do{let f=u.data;if(l>f.length)c+=f,l-=f.length;else{l===f.length?(c+=f,++d,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(f,0,l),this.head=u,u.data=n(f,l));break}++d}while((u=u.next)!==null);return this.length-=d,c}_getBuffer(l){let c=a.allocUnsafe(l),u=l,d=this.head,f=0;do{let p=d.data;if(l>p.length)i(c,p,u-l),l-=p.length;else{l===p.length?(i(c,p,u-l),++f,d.next?this.head=d.next:this.head=this.tail=null):(i(c,new o(p.buffer,p.byteOffset,l),u-l),this.head=d,d.data=p.slice(l));break}++f}while((d=d.next)!==null);return this.length-=f,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),CW=an((e,t)=>{Kt(),Xt(),Qt();var{MathFloor:n,NumberIsInteger:r}=va(),{ERR_INVALID_ARG_VALUE:i}=bl().codes;function o(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function a(l){return l?16:16*1024}function s(l,c,u,d){let f=o(c,d,u);if(f!=null){if(!r(f)||f<0){let p=d?`options.${u}`:"options.highWaterMark";throw new i(p,f)}return n(f)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function Nte(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function C7e(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(Ou[(i=r)>>18&63]+Ou[i>>12&63]+Ou[i>>6&63]+Ou[63&i]);return o.join("")}function qf(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,en.prototype),t}function en(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r7(e)}return nSe(e,t,n)}function nSe(e,t,n){if(typeof e=="string")return function(o,a){if(typeof a=="string"&&a!==""||(a="utf8"),!en.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|iSe(o,a),l=qf(s),c=l.write(o,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return l4(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Kf(e,ArrayBuffer)||e&&Kf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kf(e,SharedArrayBuffer)||e&&Kf(e.buffer,SharedArrayBuffer)))return w7e(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return en.from(r,t,n);var i=function(o){if(en.isBuffer(o)){var a=0|wW(o.length),s=qf(a);return s.length===0||o.copy(s,0,0,a),s}if(o.length!==void 0)return typeof o.length!="number"||xW(o.length)?qf(0):l4(o);if(o.type==="Buffer"&&Array.isArray(o.data))return l4(o.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return en.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function rSe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function r7(e){return rSe(e),qf(e<0?0:0|wW(e))}function l4(e){for(var t=e.length<0?0:0|wW(e.length),n=qf(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function w7e(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,en.prototype),r}function wW(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function iSe(e,t){if(en.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Kf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return i7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return lSe(e).length;default:if(i)return r?-1:i7(e).length;t=(""+t).toLowerCase(),i=!0}}function x7e(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D7e(this,t,n);case"utf8":case"utf-8":return aSe(this,t,n);case"ascii":return A7e(this,t,n);case"latin1":case"binary":return P7e(this,t,n);case"base64":return M7e(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k7e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function yg(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Mte(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),xW(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=en.from(t,r)),en.isBuffer(t))return t.length===0?-1:Ate(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ate(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Ate(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(p,h){return a===1?p[h]:p.readUInt16BE(h*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,u===-1?0:o-u)){if(u===-1&&(u=o),o-u+1===l)return u*a}else u!==-1&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return-1}function T7e(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(xW(s))return a;e[n+a]=s}return a}function R7e(e,t,n,r){return A2(i7(t,e.length-n),e,n,r)}function oSe(e,t,n,r){return A2(function(i){for(var o=[],a=0;a<i.length;++a)o.push(255&i.charCodeAt(a));return o}(t),e,n,r)}function O7e(e,t,n,r){return oSe(e,t,n,r)}function I7e(e,t,n,r){return A2(lSe(t),e,n,r)}function N7e(e,t,n,r){return A2(function(i,o){for(var a,s,l,c=[],u=0;u<i.length&&!((o-=2)<0);++u)a=i.charCodeAt(u),s=a>>8,l=a%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function M7e(e,t,n){return t===0&&n===e.length?IM.fromByteArray(e):IM.fromByteArray(e.slice(t,n))}function aSe(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(f){var p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var h="",g=0;g<p;)h+=String.fromCharCode.apply(String,f.slice(g,g+=4096));return h}(r)}function A7e(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P7e(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function D7e(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=uSe[e[o]];return i}function k7e(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function xa(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function qs(e,t,n,r,i,o){if(!en.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function sSe(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Pte(e,t,n,r,i){return t=+t,n>>>=0,i||sSe(e,0,n,4),jg.write(e,t,n,r,23,4),n+4}function Dte(e,t,n,r,i){return t=+t,n>>>=0,i||sSe(e,0,n,8),jg.write(e,t,n,r,52,8),n+8}function i7(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function lSe(e){return IM.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(cSe,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function A2(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Kf(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function xW(e){return e!=e}function kte(e,t){for(var n in e)t[n]=e[n]}function bg(e,t,n){return yu(e,t,n)}function hE(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var o;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(o)return;i=(""+i).toLowerCase(),o=!0}}(n);if(typeof r!="string"&&(NM.isEncoding===o7||!o7(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=$7e,this.end=F7e,t=4;break;case"utf8":this.fillLast=L7e,t=4;break;case"base64":this.text=B7e,this.end=U7e,t=3;break;default:return this.write=j7e,this.end=H7e,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=NM.allocUnsafe(t)}function c4(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function L7e(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,o){if((192&i[0])!=128)return r.lastNeed=0,"<22>";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"<22>";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"<22>"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function $7e(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function F7e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function B7e(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function U7e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function j7e(e){return e.toString(this.encoding)}function H7e(e){return e&&e.length?this.write(e):""}var Lte,Ou,Ol,$te,LR,Sg,Fte,Bte,xd,IM,jg,u4,cSe,uSe,gE,vE,yu,Ute,eb,NM,o7,jte=Qa(()=>{for(Kt(),Xt(),Qt(),Lte={byteLength:function(e){var t=Nte(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Nte(e),i=r[0],o=r[1],a=new $te(function(c,u,d){return 3*(u+d)/4-d}(0,i,o)),s=0,l=o>0?i-4:i;for(n=0;n<l;n+=4)t=Ol[e.charCodeAt(n)]<<18|Ol[e.charCodeAt(n+1)]<<12|Ol[e.charCodeAt(n+2)]<<6|Ol[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return o===2&&(t=Ol[e.charCodeAt(n)]<<2|Ol[e.charCodeAt(n+1)]>>4,a[s++]=255&t),o===1&&(t=Ol[e.charCodeAt(n)]<<10|Ol[e.charCodeAt(n+1)]<<4|Ol[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(C7e(e,o,o+16383>a?a:o+16383));return r===1?(t=e[n-1],i.push(Ou[t>>2]+Ou[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Ou[t>>10]+Ou[t>>4&63]+Ou[t<<2&63]+"=")),i.join("")}},Ou=[],Ol=[],$te=typeof Uint8Array<"u"?Uint8Array:Array,LR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sg=0,Fte=LR.length;Sg<Fte;++Sg)Ou[Sg]=LR[Sg],Ol[LR.charCodeAt(Sg)]=Sg;Ol[45]=62,Ol[95]=63,Bte={read:function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},write:function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}},xd={},IM=Lte,jg=Bte,u4=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,xd.Buffer=en,xd.SlowBuffer=function(e){return+e!=e&&(e=0),en.alloc(+e)},xd.INSPECT_MAX_BYTES=50,xd.kMaxLength=2147483647,en.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),en.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(en.prototype,"parent",{enumerable:!0,get:function(){if(en.isBuffer(this))return this.buffer}}),Object.defineProperty(en.prototype,"offset",{enumerable:!0,get:function(){if(en.isBuffer(this))return this.byteOffset}}),en.poolSize=8192,en.from=function(e,t,n){return nSe(e,t,n)},Object.setPrototypeOf(en.prototype,Uint8Array.prototype),Object.setPrototypeOf(en,Uint8Array),en.alloc=function(e,t,n){return function(r,i,o){return rSe(r),r<=0?qf(r):i!==void 0?typeof o=="string"?qf(r).fill(i,o):qf(r).fill(i):qf(r)}(e,t,n)},en.allocUnsafe=function(e){return r7(e)},en.allocUnsafeSlow=function(e){return r7(e)},en.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==en.prototype},en.compare=function(e,t){if(Kf(e,Uint8Array)&&(e=en.from(e,e.offset,e.byteLength)),Kf(t,Uint8Array)&&(t=en.from(t,t.offset,t.byteLength)),!en.isBuffer(e)||!en.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},en.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},en.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return en.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=en.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(Kf(o,Uint8Array)&&(o=en.from(o)),!en.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},en.byteLength=iSe,en.prototype._isBuffer=!0,en.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)yg(this,t,t+1);return this},en.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)yg(this,t,t+3),yg(this,t+1,t+2);return this},en.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)yg(this,t,t+7),yg(this,t+1,t+6),yg(this,t+2,t+5),yg(this,t+3,t+4);return this},en.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?aSe(this,0,e):x7e.apply(this,arguments)},en.prototype.toLocaleString=en.prototype.toString,en.prototype.equals=function(e){if(!en.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||en.compare(this,e)===0},en.prototype.inspect=function(){var e="",t=xd.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u4&&(en.prototype[u4]=en.prototype.inspect),en.prototype.compare=function(e,t,n,r,i){if(Kf(e,Uint8Array)&&(e=en.from(e,e.offset,e.byteLength)),!en.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},en.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},en.prototype.indexOf=function(e,t,n){return Mte(this,e,t,n,!0)},en.prototype.lastIndexOf=function(e,t,n){return Mte(this,e,t,n,!1)},en.prototype.write=function(e,t,n,r){if(t===void 0)r="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return T7e(this,e,t,n);case"utf8":case"utf-8":return R7e(this,e,t,n);case"ascii":return oSe(this,e,t,n);case"latin1":case"binary":return O7e(this,e,t,n);case"base64":return I7e(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N7e(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},en.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},en.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,en.prototype),r},en.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||xa(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},en.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||xa(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},en.prototype.readUInt8=function(e,t){return e>>>=0,t||xa(e,1,this.length),this[e]},en.prototype.readUInt16LE=function(e,t){return e>>>=0,t||xa(e,2,this.length),this[e]|this[e+1]<<8},en.prototype.readUInt16BE=function(e,t){return e>>>=0,t||xa(e,2,this.length),this[e]<<8|this[e+1]},en.prototype.readUInt32LE=function(e,t){return e>>>=0,t||xa(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},en.prototype.readUInt32BE=function(e,t){return e>>>=0,t||xa(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},en.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||xa(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},en.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||xa(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},en.prototype.readInt8=function(e,t){return e>>>=0,t||xa(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},en.prototype.readInt16LE=function(e,t){e>>>=0,t||xa(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},en.prototype.readInt16BE=function(e,t){e>>>=0,t||xa(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},en.prototype.readInt32LE=function(e,t){return e>>>=0,t||xa(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},en.prototype.readInt32BE=function(e,t){return e>>>=0,t||xa(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},en.prototype.readFloatLE=function(e,t){return e>>>=0,t||xa(e,4,this.length),jg.read(this,e,!0,23,4)},en.prototype.readFloatBE=function(e,t){return e>>>=0,t||xa(e,4,this.length),jg.read(this,e,!1,23,4)},en.prototype.readDoubleLE=function(e,t){return e>>>=0,t||xa(e,8,this.length),jg.read(this,e,!0,52,8)},en.prototype.readDoubleBE=function(e,t){return e>>>=0,t||xa(e,8,this.length),jg.read(this,e,!1,52,8)},en.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||qs(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},en.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||qs(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},en.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,1,255,0),this[t]=255&e,t+1},en.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},en.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},en.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},en.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},en.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);qs(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&s===0&&this[t+o-1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},en.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);qs(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&s===0&&this[t+o+1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},en.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},en.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},en.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},en.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},en.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||qs(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},en.prototype.writeFloatLE=function(e,t,n){return Pte(this,e,t,!0,n)},en.prototype.writeFloatBE=function(e,t,n){return Pte(this,e,t,!1,n)},en.prototype.writeDoubleLE=function(e,t,n){return Dte(this,e,t,!0,n)},en.prototype.writeDoubleBE=function(e,t,n){return Dte(this,e,t,!1,n)},en.prototype.copy=function(e,t,n,r){if(!en.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},en.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!en.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(o=t;o<n;++o)this[o]=e;else{var a=en.isBuffer(e)?e:en.from(e,r),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this},cSe=/[^+/0-9A-Za-z-_]/g,uSe=function(){for(var e=new Array(256),t=0;t<16;++t)for(var n=16*t,r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r];return e}(),xd.Buffer,xd.INSPECT_MAX_BYTES,xd.kMaxLength,gE={},vE=xd,yu=vE.Buffer,yu.from&&yu.alloc&&yu.allocUnsafe&&yu.allocUnsafeSlow?gE=vE:(kte(vE,gE),gE.Buffer=bg),bg.prototype=Object.create(yu.prototype),kte(yu,bg),bg.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return yu(e,t,n)},bg.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=yu(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r},bg.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return yu(e)},bg.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return vE.SlowBuffer(e)},Ute=gE,eb={},NM=Ute.Buffer,o7=NM.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},eb.StringDecoder=hE,hE.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},hE.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},hE.prototype.text=function(e,t){var n=function(i,o,a){var s=o.length-1;if(s<a)return 0;var l=c4(o[s]);return l>=0?(l>0&&(i.lastNeed=l-1),l):--s<a||l===-2?0:(l=c4(o[s]))>=0?(l>0&&(i.lastNeed=l-2),l):--s<a||l===-2?0:(l=c4(o[s]))>=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},hE.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},eb.StringDecoder,eb.StringDecoder}),dSe={};S_(dSe,{StringDecoder:()=>fSe,default:()=>eb});var fSe,z7e=Qa(()=>{Kt(),Xt(),Qt(),jte(),jte(),fSe=eb.StringDecoder}),pSe=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:o}=va(),{Buffer:a}=(Za(),Ai(Xa)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=bl().codes;function c(u,d,f){let p;if(typeof d=="string"||d instanceof a)return new u({objectMode:!0,...f,read(){this.push(d),this.push(null)}});let h;if(d&&d[i])h=!0,p=d[i]();else if(d&&d[o])h=!1,p=d[o]();else throw new s("iterable",["Iterable"],d);let g=new u({objectMode:!0,highWaterMark:1,...f}),v=!1;g._read=function(){v||(v=!0,_())},g._destroy=function(b,S){r(y(b),()=>n.nextTick(S,b),C=>n.nextTick(S,C||b))};async function y(b){let S=b!=null,C=typeof p.throw=="function";if(S&&C){let{value:E,done:w}=await p.throw(b);if(await E,w)return}if(typeof p.return=="function"){let{value:E}=await p.return();await E}}async function _(){for(;;){try{let{value:b,done:S}=h?await p.next():p.next();if(S)g.push(null);else{let C=b&&typeof b.then=="function"?await b:b;if(C===null)throw v=!1,new l;if(g.push(C))continue;v=!1}}catch(b){g.destroy(b)}break}}return g}t.exports=c}),P2=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:d,SymbolAsyncIterator:f,Symbol:p}=va();t.exports=$,$.ReadableState=W;var{EventEmitter:h}=(X0(),Ai(C_)),{Stream:g,prependListener:v}=EW(),{Buffer:y}=(Za(),Ai(Xa)),{addAbortSignal:_}=M2(),b=Dh(),S=gp().debuglog("stream",Y=>{S=Y}),C=E7e(),E=Q0(),{getHighWaterMark:w,getDefaultHighWaterMark:x}=CW(),{aggregateTwoErrors:T,codes:{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_OUT_OF_RANGE:I,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:D}}=bl(),{validateObject:F}=N2(),L=p("kPaused"),{StringDecoder:B}=(z7e(),Ai(dSe)),U=pSe();c($.prototype,g.prototype),c($,g);var G=()=>{},{errorOrDestroy:V}=E;function W(Y,J,he){typeof he!="boolean"&&(he=J instanceof vp()),this.objectMode=!!(Y&&Y.objectMode),he&&(this.objectMode=this.objectMode||!!(Y&&Y.readableObjectMode)),this.highWaterMark=Y?w(this,Y,"readableHighWaterMark",he):x(!1),this.buffer=new C,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[L]=null,this.errorEmitted=!1,this.emitClose=!Y||Y.emitClose!==!1,this.autoDestroy=!Y||Y.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=Y&&Y.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,Y&&Y.encoding&&(this.decoder=new B(Y.encoding),this.encoding=Y.encoding)}function $(Y){if(!(this instanceof $))return new $(Y);let J=this instanceof vp();this._readableState=new W(Y,this,J),Y&&(typeof Y.read=="function"&&(this._read=Y.read),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.construct=="function"&&(this._construct=Y.construct),Y.signal&&!J&&_(Y.signal,this)),g.call(this,Y),E.construct(this,()=>{this._readableState.needReadable&&oe(this,this._readableState)})}$.prototype.destroy=E.destroy,$.prototype._undestroy=E.undestroy,$.prototype._destroy=function(Y,J){J(Y)},$.prototype[h.captureRejectionSymbol]=function(Y){this.destroy(Y)},$.prototype.push=function(Y,J){return H(this,Y,J,!1)},$.prototype.unshift=function(Y,J){return H(this,Y,J,!0)};function H(Y,J,he,ve){S("readableAddChunk",J);let ce=Y._readableState,$e;if(ce.objectMode||(typeof J=="string"?(he=he||ce.defaultEncoding,ce.encoding!==he&&(ve&&ce.encoding?J=y.from(J,he).toString(ce.encoding):(J=y.from(J,he),he=""))):J instanceof y?he="":g._isUint8Array(J)?(J=g._uint8ArrayToBuffer(J),he=""):J!=null&&($e=new R("chunk",["string","Buffer","Uint8Array"],J))),$e)V(Y,$e);else if(J===null)ce.reading=!1,k(Y,ce);else if(ce.objectMode||J&&J.length>0)if(ve)if(ce.endEmitted)V(Y,new D);else{if(ce.destroyed||ce.errored)return!1;K(Y,ce,J,!0)}else if(ce.ended)V(Y,new P);else{if(ce.destroyed||ce.errored)return!1;ce.reading=!1,ce.decoder&&!he?(J=ce.decoder.write(J),ce.objectMode||J.length!==0?K(Y,ce,J,!1):oe(Y,ce)):K(Y,ce,J,!1)}else ve||(ce.reading=!1,oe(Y,ce));return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function K(Y,J,he,ve){J.flowing&&J.length===0&&!J.sync&&Y.listenerCount("data")>0?(J.multiAwaitDrain?J.awaitDrainWriters.clear():J.awaitDrainWriters=null,J.dataEmitted=!0,Y.emit("data",he)):(J.length+=J.objectMode?1:he.length,ve?J.buffer.unshift(he):J.buffer.push(he),J.needReadable&&Z(Y)),oe(Y,J)}$.prototype.isPaused=function(){let Y=this._readableState;return Y[L]===!0||Y.flowing===!1},$.prototype.setEncoding=function(Y){let J=new B(Y);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;let he=this._readableState.buffer,ve="";for(let ce of he)ve+=J.write(ce);return he.clear(),ve!==""&&he.push(ve),this._readableState.length=ve.length,this};var re=1073741824;function Q(Y){if(Y>re)throw new I("size","<= 1GiB",Y);return Y--,Y|=Y>>>1,Y|=Y>>>2,Y|=Y>>>4,Y|=Y>>>8,Y|=Y>>>16,Y++,Y}function A(Y,J){return Y<=0||J.length===0&&J.ended?0:J.objectMode?1:o(Y)?J.flowing&&J.length?J.buffer.first().length:J.length:Y<=J.length?Y:J.ended?J.length:0}$.prototype.read=function(Y){S("read",Y),Y===void 0?Y=NaN:i(Y)||(Y=a(Y,10));let J=this._readableState,he=Y;if(Y>J.highWaterMark&&(J.highWaterMark=Q(Y)),Y!==0&&(J.emittedReadable=!1),Y===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return S("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?ye(this):Z(this),null;if(Y=A(Y,J),Y===0&&J.ended)return J.length===0&&ye(this),null;let ve=J.needReadable;if(S("need readable",ve),(J.length===0||J.length-Y<J.highWaterMark)&&(ve=!0,S("length less than watermark",ve)),J.ended||J.reading||J.destroyed||J.errored||!J.constructed)ve=!1,S("reading, ended or constructing",ve);else if(ve){S("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0);try{this._read(J.highWaterMark)}catch($e){V(this,$e)}J.sync=!1,J.reading||(Y=A(he,J))}let ce;return Y>0?ce=Ce(Y,J):ce=null,ce===null?(J.needReadable=J.length<=J.highWaterMark,Y=0):(J.length-=Y,J.multiAwaitDrain?J.awaitDrainWriters.clear():J.awaitDrainWriters=null),J.length===0&&(J.ended||(J.needReadable=!0),he!==Y&&J.ended&&ye(this)),ce!==null&&!J.errorEmitted&&!J.closeEmitted&&(J.dataEmitted=!0,this.emit("data",ce)),ce};function k(Y,J){if(S("onEofChunk"),!J.ended){if(J.decoder){let he=J.decoder.end();he&&he.length&&(J.buffer.push(he),J.length+=J.objectMode?1:he.length)}J.ended=!0,J.sync?Z(Y):(J.needReadable=!1,J.emittedReadable=!0,ne(Y))}}function Z(Y){let J=Y._readableState;S("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(S("emitReadable",J.flowing),J.emittedReadable=!0,n.nextTick(ne,Y))}function ne(Y){let J=Y._readableState;S("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&!J.errored&&(J.length||J.ended)&&(Y.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,Te(Y)}function oe(Y,J){!J.readingMore&&J.constructed&&(J.readingMore=!0,n.nextTick(ae,Y,J))}function ae(Y,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){let he=J.length;if(S("maybeReadMore read 0"),Y.read(0),he===J.length)break}J.readingMore=!1}$.prototype._read=function(Y){throw new N("_read()")},$.prototype.pipe=function(Y,J){let he=this,ve=this._readableState;ve.pipes.length===1&&(ve.multiAwaitDrain||(ve.multiAwaitDrain=!0,ve.awaitDrainWriters=new d(ve.awaitDrainWriters?[ve.awaitDrainWriters]:[]))),ve.pipes.push(Y),S("pipe count=%d opts=%j",ve.pipes.length,J);let ce=(!J||J.end!==!1)&&Y!==n.stdout&&Y!==n.stderr?Be:ut;ve.endEmitted?n.nextTick(ce):he.once("end",ce),Y.on("unpipe",$e);function $e(ft,bt){S("onunpipe"),ft===he&&bt&&bt.hasUnpiped===!1&&(bt.hasUnpiped=!0,Xe())}function Be(){S("onend"),Y.end()}let me,Fe=!1;function Xe(){S("cleanup"),Y.removeListener("close",We),Y.removeListener("finish",Lt),me&&Y.removeListener("drain",me),Y.removeListener("error",Ge),Y.removeListener("unpipe",$e),he.removeListener("end",Be),he.removeListener("end",ut),he.removeListener("data",qe),Fe=!0,me&&ve.awaitDrainWriters&&(!Y._writableState||Y._writableState.needDrain)&&me()}function ze(){Fe||(ve.pipes.length===1&&ve.pipes[0]===Y?(S("false write response, pause",0),ve.awaitDrainWriters=Y,ve.multiAwaitDrain=!1):ve.pipes.length>1&&ve.pipes.includes(Y)&&(S("false write response, pause",ve.awaitDrainWriters.size),ve.awaitDrainWriters.add(Y)),he.pause()),me||(me=ue(he,Y),Y.on("drain",me))}he.on("data",qe);function qe(ft){S("ondata");let bt=Y.write(ft);S("dest.write",bt),bt===!1&&ze()}function Ge(ft){if(S("onerror",ft),ut(),Y.removeListener("error",Ge),Y.listenerCount("error")===0){let bt=Y._writableState||Y._readableState;bt&&!bt.errorEmitted?V(Y,ft):Y.emit("error",ft)}}v(Y,"error",Ge);function We(){Y.removeListener("finish",Lt),ut()}Y.once("close",We);function Lt(){S("onfinish"),Y.removeListener("close",We),ut()}Y.once("finish",Lt);function ut(){S("unpipe"),he.unpipe(Y)}return Y.emit("pipe",he),Y.writableNeedDrain===!0?ve.flowing&&ze():ve.flowing||(S("pipe resume"),he.resume()),Y};function ue(Y,J){return function(){let he=Y._readableState;he.awaitDrainWriters===J?(S("pipeOnDrain",1),he.awaitDrainWriters=null):he.multiAwaitDrain&&(S("pipeOnDrain",he.awaitDrainWriters.size),he.awaitDrainWriters.delete(J)),(!he.awaitDrainWriters||he.awaitDrainWriters.size===0)&&Y.listenerCount("data")&&Y.resume()}}$.prototype.unpipe=function(Y){let J=this._readableState,he={hasUnpiped:!1};if(J.pipes.length===0)return this;if(!Y){let ce=J.pipes;J.pipes=[],this.pause();for(let $e=0;$e<ce.length;$e++)ce[$e].emit("unpipe",this,{hasUnpiped:!1});return this}let ve=r(J.pipes,Y);return ve===-1?this:(J.pipes.splice(ve,1),J.pipes.length===0&&this.pause(),Y.emit("unpipe",this,he),this)},$.prototype.on=function(Y,J){let he=g.prototype.on.call(this,Y,J),ve=this._readableState;return Y==="data"?(ve.readableListening=this.listenerCount("readable")>0,ve.flowing!==!1&&this.resume()):Y==="readable"&&!ve.endEmitted&&!ve.readableListening&&(ve.readableListening=ve.needReadable=!0,ve.flowing=!1,ve.emittedReadable=!1,S("on readable",ve.length,ve.reading),ve.length?Z(this):ve.reading||n.nextTick(se,this)),he},$.prototype.addListener=$.prototype.on,$.prototype.removeListener=function(Y,J){let he=g.prototype.removeListener.call(this,Y,J);return Y==="readable"&&n.nextTick(fe,this),he},$.prototype.off=$.prototype.removeListener,$.prototype.removeAllListeners=function(Y){let J=g.prototype.removeAllListeners.apply(this,arguments);return(Y==="readable"||Y===void 0)&&n.nextTick(fe,this),J};function fe(Y){let J=Y._readableState;J.readableListening=Y.listenerCount("readable")>0,J.resumeScheduled&&J[L]===!1?J.flowing=!0:Y.listenerCount("data")>0?Y.resume():J.readableListening||(J.flowing=null)}function se(Y){S("readable nexttick read 0"),Y.read(0)}$.prototype.resume=function(){let Y=this._readableState;return Y.flowing||(S("resume"),Y.flowing=!Y.readableListening,pe(this,Y)),Y[L]=!1,this};function pe(Y,J){J.resumeScheduled||(J.resumeScheduled=!0,n.nextTick(_e,Y,J))}function _e(Y,J){S("resume",J.reading),J.reading||Y.read(0),J.resumeScheduled=!1,Y.emit("resume"),Te(Y),J.flowing&&!J.reading&&Y.read(0)}$.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[L]=!0,this};function Te(Y){let J=Y._readableState;for(S("flow",J.flowing);J.flowing&&Y.read()!==null;);}$.prototype.wrap=function(Y){let J=!1;Y.on("data",ve=>{!this.push(ve)&&Y.pause&&(J=!0,Y.pause())}),Y.on("end",()=>{this.push(null)}),Y.on("error",ve=>{V(this,ve)}),Y.on("close",()=>{this.destroy()}),Y.on("destroy",()=>{this.destroy()}),this._read=()=>{J&&Y.resume&&(J=!1,Y.resume())};let he=l(Y);for(let ve=1;ve<he.length;ve++){let ce=he[ve];this[ce]===void 0&&typeof Y[ce]=="function"&&(this[ce]=Y[ce].bind(Y))}return this},$.prototype[f]=function(){return xe(this)},$.prototype.iterator=function(Y){return Y!==void 0&&F(Y,"options"),xe(this,Y)};function xe(Y,J){typeof Y.read!="function"&&(Y=$.wrap(Y,{objectMode:!0}));let he=ge(Y,J);return he.stream=Y,he}async function*ge(Y,J){let he=G;function ve(Be){this===Y?(he(),he=G):he=Be}Y.on("readable",ve);let ce,$e=b(Y,{writable:!1},Be=>{ce=Be?T(ce,Be):null,he(),he=G});try{for(;;){let Be=Y.destroyed?null:Y.read();if(Be!==null)yield Be;else{if(ce)throw ce;if(ce===null)return;await new u(ve)}}}catch(Be){throw ce=T(ce,Be),ce}finally{(ce||(J==null?void 0:J.destroyOnReturn)!==!1)&&(ce===void 0||Y._readableState.autoDestroy)?E.destroyer(Y,null):(Y.off("readable",ve),$e())}}s($.prototype,{readable:{__proto__:null,get(){let Y=this._readableState;return!!Y&&Y.readable!==!1&&!Y.destroyed&&!Y.errorEmitted&&!Y.endEmitted},set(Y){this._readableState&&(this._readableState.readable=!!Y)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(Y){this._readableState&&(this._readableState.flowing=Y)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Y){this._readableState&&(this._readableState.destroyed=Y)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(W.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[L]!==!1},set(Y){this[L]=!!Y}}}),$._fromList=Ce;function Ce(Y,J){if(J.length===0)return null;let he;return J.objectMode?he=J.buffer.shift():!Y||Y>=J.length?(J.decoder?he=J.buffer.join(""):J.buffer.length===1?he=J.buffer.first():he=J.buffer.concat(J.length),J.buffer.clear()):he=J.buffer.consume(Y,J.decoder),he}function ye(Y){let J=Y._readableState;S("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,n.nextTick(be,J,Y))}function be(Y,J){if(S("endReadableNT",Y.endEmitted,Y.length),!Y.errored&&!Y.closeEmitted&&!Y.endEmitted&&Y.length===0){if(Y.endEmitted=!0,J.emit("end"),J.writable&&J.allowHalfOpen===!1)n.nextTick(Ee,J);else if(Y.autoDestroy){let he=J._writableState;(!he||he.autoDestroy&&(he.finished||he.writable===!1))&&J.destroy()}}}function Ee(Y){Y.writable&&!Y.writableEnded&&!Y.destroyed&&Y.end()}$.from=function(Y,J){return U($,Y,J)};var Me;function X(){return Me===void 0&&(Me={}),Me}$.fromWeb=function(Y,J){return X().newStreamReadableFromReadableStream(Y,J)},$.toWeb=function(Y,J){return X().newReadableStreamFromStreamReadable(Y,J)},$.wrap=function(Y,J){var he,ve;return new $({objectMode:(he=(ve=Y.readableObjectMode)!==null&&ve!==void 0?ve:Y.objectMode)!==null&&he!==void 0?he:!0,...J,destroy(ce,$e){E.destroyer(Y,ce),$e(ce)}}).wrap(Y)}}),mSe=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:d}=va();t.exports=B,B.WritableState=F;var{EventEmitter:f}=(X0(),Ai(C_)),p=EW().Stream,{Buffer:h}=(Za(),Ai(Xa)),g=Q0(),{addAbortSignal:v}=M2(),{getHighWaterMark:y,getDefaultHighWaterMark:_}=CW(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:C,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:w,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:R,ERR_UNKNOWN_ENCODING:N}=bl().codes,{errorOrDestroy:I}=g;l(B.prototype,p.prototype),l(B,p);function P(){}var D=u("kOnFinished");function F(se,pe,_e){typeof _e!="boolean"&&(_e=pe instanceof vp()),this.objectMode=!!(se&&se.objectMode),_e&&(this.objectMode=this.objectMode||!!(se&&se.writableObjectMode)),this.highWaterMark=se?y(this,se,"writableHighWaterMark",_e):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Te=!!(se&&se.decodeStrings===!1);this.decodeStrings=!Te,this.defaultEncoding=se&&se.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=$.bind(void 0,pe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!se||se.emitClose!==!1,this.autoDestroy=!se||se.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function L(se){se.buffered=[],se.bufferedIndex=0,se.allBuffers=!0,se.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function B(se){let pe=this instanceof vp();if(!pe&&!o(B,this))return new B(se);this._writableState=new F(se,this,pe),se&&(typeof se.write=="function"&&(this._write=se.write),typeof se.writev=="function"&&(this._writev=se.writev),typeof se.destroy=="function"&&(this._destroy=se.destroy),typeof se.final=="function"&&(this._final=se.final),typeof se.construct=="function"&&(this._construct=se.construct),se.signal&&v(se.signal,this)),p.call(this,se),g.construct(this,()=>{let _e=this._writableState;_e.writing||Q(this,_e),ne(this,_e)})}a(B,d,{__proto__:null,value:function(se){return o(this,se)?!0:this!==B?!1:se&&se._writableState instanceof F}}),B.prototype.pipe=function(){I(this,new E)};function U(se,pe,_e,Te){let xe=se._writableState;if(typeof _e=="function")Te=_e,_e=xe.defaultEncoding;else{if(!_e)_e=xe.defaultEncoding;else if(_e!=="buffer"&&!h.isEncoding(_e))throw new N(_e);typeof Te!="function"&&(Te=P)}if(pe===null)throw new T;if(!xe.objectMode)if(typeof pe=="string")xe.decodeStrings!==!1&&(pe=h.from(pe,_e),_e="buffer");else if(pe instanceof h)_e="buffer";else if(p._isUint8Array(pe))pe=p._uint8ArrayToBuffer(pe),_e="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],pe);let ge;return xe.ending?ge=new R:xe.destroyed&&(ge=new w("write")),ge?(n.nextTick(Te,ge),I(se,ge,!0),ge):(xe.pendingcb++,G(se,xe,pe,_e,Te))}B.prototype.write=function(se,pe,_e){return U(this,se,pe,_e)===!0},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){let se=this._writableState;se.corked&&(se.corked--,se.writing||Q(this,se))},B.prototype.setDefaultEncoding=function(se){if(typeof se=="string"&&(se=c(se)),!h.isEncoding(se))throw new N(se);return this._writableState.defaultEncoding=se,this};function G(se,pe,_e,Te,xe){let ge=pe.objectMode?1:_e.length;pe.length+=ge;let Ce=pe.length<pe.highWaterMark;return Ce||(pe.needDrain=!0),pe.writing||pe.corked||pe.errored||!pe.constructed?(pe.buffered.push({chunk:_e,encoding:Te,callback:xe}),pe.allBuffers&&Te!=="buffer"&&(pe.allBuffers=!1),pe.allNoop&&xe!==P&&(pe.allNoop=!1)):(pe.writelen=ge,pe.writecb=xe,pe.writing=!0,pe.sync=!0,se._write(_e,Te,pe.onwrite),pe.sync=!1),Ce&&!pe.errored&&!pe.destroyed}function V(se,pe,_e,Te,xe,ge,Ce){pe.writelen=Te,pe.writecb=Ce,pe.writing=!0,pe.sync=!0,pe.destroyed?pe.onwrite(new w("write")):_e?se._writev(xe,pe.onwrite):se._write(xe,ge,pe.onwrite),pe.sync=!1}function W(se,pe,_e,Te){--pe.pendingcb,Te(_e),re(pe),I(se,_e)}function $(se,pe){let _e=se._writableState,Te=_e.sync,xe=_e.writecb;if(typeof xe!="function"){I(se,new C);return}_e.writing=!1,_e.writecb=null,_e.length-=_e.writelen,_e.writelen=0,pe?(pe.stack,_e.errored||(_e.errored=pe),se._readableState&&!se._readableState.errored&&(se._readableState.errored=pe),Te?n.nextTick(W,se,_e,pe,xe):W(se,_e,pe,xe)):(_e.buffered.length>_e.bufferedIndex&&Q(se,_e),Te?_e.afterWriteTickInfo!==null&&_e.afterWriteTickInfo.cb===xe?_e.afterWriteTickInfo.count++:(_e.afterWriteTickInfo={count:1,cb:xe,stream:se,state:_e},n.nextTick(H,_e.afterWriteTickInfo)):K(se,_e,1,xe))}function H({stream:se,state:pe,count:_e,cb:Te}){return pe.afterWriteTickInfo=null,K(se,pe,_e,Te)}function K(se,pe,_e,Te){for(!pe.ending&&!se.destroyed&&pe.length===0&&pe.needDrain&&(pe.needDrain=!1,se.emit("drain"));_e-- >0;)pe.pendingcb--,Te();pe.destroyed&&re(pe),ne(se,pe)}function re(se){if(se.writing)return;for(let xe=se.bufferedIndex;xe<se.buffered.length;++xe){var pe;let{chunk:ge,callback:Ce}=se.buffered[xe],ye=se.objectMode?1:ge.length;se.length-=ye,Ce((pe=se.errored)!==null&&pe!==void 0?pe:new w("write"))}let _e=se[D].splice(0);for(let xe=0;xe<_e.length;xe++){var Te;_e[xe]((Te=se.errored)!==null&&Te!==void 0?Te:new w("end"))}L(se)}function Q(se,pe){if(pe.corked||pe.bufferProcessing||pe.destroyed||!pe.constructed)return;let{buffered:_e,bufferedIndex:Te,objectMode:xe}=pe,ge=_e.length-Te;if(!ge)return;let Ce=Te;if(pe.bufferProcessing=!0,ge>1&&se._writev){pe.pendingcb-=ge-1;let ye=pe.allNoop?P:Ee=>{for(let Me=Ce;Me<_e.length;++Me)_e[Me].callback(Ee)},be=pe.allNoop&&Ce===0?_e:r(_e,Ce);be.allBuffers=pe.allBuffers,V(se,pe,!0,pe.length,be,"",ye),L(pe)}else{do{let{chunk:ye,encoding:be,callback:Ee}=_e[Ce];_e[Ce++]=null;let Me=xe?1:ye.length;V(se,pe,!1,Me,ye,be,Ee)}while(Ce<_e.length&&!pe.writing);Ce===_e.length?L(pe):Ce>256?(_e.splice(0,Ce),pe.bufferedIndex=0):pe.bufferedIndex=Ce}pe.bufferProcessing=!1}B.prototype._write=function(se,pe,_e){if(this._writev)this._writev([{chunk:se,encoding:pe}],_e);else throw new S("_write()")},B.prototype._writev=null,B.prototype.end=function(se,pe,_e){let Te=this._writableState;typeof se=="function"?(_e=se,se=null,pe=null):typeof pe=="function"&&(_e=pe,pe=null);let xe;if(se!=null){let ge=U(this,se,pe);ge instanceof i&&(xe=ge)}return Te.corked&&(Te.corked=1,this.uncork()),xe||(!Te.errored&&!Te.ending?(Te.ending=!0,ne(this,Te,!0),Te.ended=!0):Te.finished?xe=new x("end"):Te.destroyed&&(xe=new w("end"))),typeof _e=="function"&&(xe||Te.finished?n.nextTick(_e,xe):Te[D].push(_e)),this};function A(se){return se.ending&&!se.destroyed&&se.constructed&&se.length===0&&!se.errored&&se.buffered.length===0&&!se.finished&&!se.writing&&!se.errorEmitted&&!se.closeEmitted}function k(se,pe){let _e=!1;function Te(xe){if(_e){I(se,xe??C());return}if(_e=!0,pe.pendingcb--,xe){let ge=pe[D].splice(0);for(let Ce=0;Ce<ge.length;Ce++)ge[Ce](xe);I(se,xe,pe.sync)}else A(pe)&&(pe.prefinished=!0,se.emit("prefinish"),pe.pendingcb++,n.nextTick(oe,se,pe))}pe.sync=!0,pe.pendingcb++;try{se._final(Te)}catch(xe){Te(xe)}pe.sync=!1}function Z(se,pe){!pe.prefinished&&!pe.finalCalled&&(typeof se._final=="function"&&!pe.destroyed?(pe.finalCalled=!0,k(se,pe)):(pe.prefinished=!0,se.emit("prefinish")))}function ne(se,pe,_e){A(pe)&&(Z(se,pe),pe.pendingcb===0&&(_e?(pe.pendingcb++,n.nextTick((Te,xe)=>{A(xe)?oe(Te,xe):xe.pendingcb--},se,pe)):A(pe)&&(pe.pendingcb++,oe(se,pe))))}function oe(se,pe){pe.pendingcb--,pe.finished=!0;let _e=pe[D].splice(0);for(let Te=0;Te<_e.length;Te++)_e[Te]();if(se.emit("finish"),pe.autoDestroy){let Te=se._readableState;(!Te||Te.autoDestroy&&(Te.endEmitted||Te.readable===!1))&&se.destroy()}}s(B.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(se){this._writableState&&(this._writableState.destroyed=se)}},writable:{__proto__:null,get(){let se=this._writableState;return!!se&&se.writable!==!1&&!se.destroyed&&!se.errored&&!se.ending&&!se.ended},set(se){this._writableState&&(this._writableState.writable=!!se)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let se=this._writableState;return se?!se.destroyed&&!se.ending&&se.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var ae=g.destroy;B.prototype.destroy=function(se,pe){let _e=this._writableState;return!_e.destroyed&&(_e.bufferedIndex<_e.buffered.length||_e[D].length)&&n.nextTick(re,_e),ae.call(this,se,pe),this},B.prototype._undestroy=g.undestroy,B.prototype._destroy=function(se,pe){pe(se)},B.prototype[f.captureRejectionSymbol]=function(se){this.destroy(se)};var ue;function fe(){return ue===void 0&&(ue={}),ue}B.fromWeb=function(se,pe){return fe().newStreamWritableFromWritableStream(se,pe)},B.toWeb=function(se){return fe().newWritableStreamFromStreamWritable(se)}}),V7e=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),r=(Za(),Ai(Xa)),{isReadable:i,isWritable:o,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Op(),d=Dh(),{AbortError:f,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:h}}=bl(),{destroyer:g}=Q0(),v=vp(),y=P2(),{createDeferredPromise:_}=gp(),b=pSe(),S=globalThis.Blob||r.Blob,C=typeof S<"u"?function(N){return N instanceof S}:function(N){return!1},E=globalThis.AbortController||SW().AbortController,{FunctionPrototypeCall:w}=va(),x=class extends v{constructor(N){super(N),(N==null?void 0:N.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(N==null?void 0:N.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function N(I,P){if(u(I))return I;if(l(I))return R({readable:I});if(c(I))return R({writable:I});if(s(I))return R({writable:!1,readable:!1});if(typeof I=="function"){let{value:F,write:L,final:B,destroy:U}=T(I);if(a(F))return b(x,F,{objectMode:!0,write:L,final:B,destroy:U});let G=F==null?void 0:F.then;if(typeof G=="function"){let V,W=w(G,F,$=>{if($!=null)throw new h("nully","body",$)},$=>{g(V,$)});return V=new x({objectMode:!0,readable:!1,write:L,final($){B(async()=>{try{await W,n.nextTick($,null)}catch(H){n.nextTick($,H)}})},destroy:U})}throw new h("Iterable, AsyncIterable or AsyncFunction",P,F)}if(C(I))return N(I.arrayBuffer());if(a(I))return b(x,I,{objectMode:!0,writable:!1});if(typeof(I==null?void 0:I.writable)=="object"||typeof(I==null?void 0:I.readable)=="object"){let F=I!=null&&I.readable?l(I==null?void 0:I.readable)?I==null?void 0:I.readable:N(I.readable):void 0,L=I!=null&&I.writable?c(I==null?void 0:I.writable)?I==null?void 0:I.writable:N(I.writable):void 0;return R({readable:F,writable:L})}let D=I==null?void 0:I.then;if(typeof D=="function"){let F;return w(D,I,L=>{L!=null&&F.push(L),F.push(null)},L=>{g(F,L)}),F=new x({objectMode:!0,writable:!1,read(){}})}throw new p(P,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],I)};function T(N){let{promise:I,resolve:P}=_(),D=new E,F=D.signal;return{value:N(async function*(){for(;;){let L=I;I=null;let{chunk:B,done:U,cb:G}=await L;if(n.nextTick(G),U)return;if(F.aborted)throw new f(void 0,{cause:F.reason});({promise:I,resolve:P}=_()),yield B}}(),{signal:F}),write(L,B,U){let G=P;P=null,G({chunk:L,done:!1,cb:U})},final(L){let B=P;P=null,B({done:!0,cb:L})},destroy(L,B){D.abort(),B(L)}}}function R(N){let I=N.readable&&typeof N.readable.read!="function"?y.wrap(N.readable):N.readable,P=N.writable,D=!!i(I),F=!!o(P),L,B,U,G,V;function W($){let H=G;G=null,H?H($):$&&V.destroy($)}return V=new x({readableObjectMode:!!(I!=null&&I.readableObjectMode),writableObjectMode:!!(P!=null&&P.writableObjectMode),readable:D,writable:F}),F&&(d(P,$=>{F=!1,$&&g(I,$),W($)}),V._write=function($,H,K){P.write($,H)?K():L=K},V._final=function($){P.end(),B=$},P.on("drain",function(){if(L){let $=L;L=null,$()}}),P.on("finish",function(){if(B){let $=B;B=null,$()}})),D&&(d(I,$=>{D=!1,$&&g(I,$),W($)}),I.on("readable",function(){if(U){let $=U;U=null,$()}}),I.on("end",function(){V.push(null)}),V._read=function(){for(;;){let $=I.read();if($===null){U=V._read;return}if(!V.push($))return}}),V._destroy=function($,H){!$&&G!==null&&($=new f),U=null,L=null,B=null,G===null?H($):(G=H,g(P,$),g(I,$))},V}}),vp=an((e,t)=>{Kt(),Xt(),Qt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:o}=va();t.exports=l;var a=P2(),s=mSe();o(l.prototype,a.prototype),o(l,a);{let f=i(s.prototype);for(let p=0;p<f.length;p++){let h=f[p];l.prototype[h]||(l.prototype[h]=s.prototype[h])}}function l(f){if(!(this instanceof l))return new l(f);a.call(this,f),s.call(this,f),f?(this.allowHalfOpen=f.allowHalfOpen!==!1,f.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),f.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}n(l.prototype,{writable:{__proto__:null,...r(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...r(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...r(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...r(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...r(s.prototype,"writableLength")},writableFinished:{__proto__:null,...r(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...r(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...r(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...r(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(f){this._readableState&&this._writableState&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}});var c;function u(){return c===void 0&&(c={}),c}l.fromWeb=function(f,p){return u().newStreamDuplexFromReadableWritablePair(f,p)},l.toWeb=function(f){return u().newReadableWritablePairFromDuplex(f)};var d;l.from=function(f){return d||(d=V7e()),d(f,"body")}}),hSe=an((e,t)=>{Kt(),Xt(),Qt();var{ObjectSetPrototypeOf:n,Symbol:r}=va();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=bl().codes,o=vp(),{getHighWaterMark:a}=CW();n(l.prototype,o.prototype),n(l,o);var s=r("kCallback");function l(d){if(!(this instanceof l))return new l(d);let f=d?a(this,d,"readableHighWaterMark",!0):null;f===0&&(d={...d,highWaterMark:null,readableHighWaterMark:f,writableHighWaterMark:d.writableHighWaterMark||0}),o.call(this,d),this._readableState.sync=!1,this[s]=null,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",u)}function c(d){typeof this._flush=="function"&&!this.destroyed?this._flush((f,p)=>{if(f){d?d(f):this.destroy(f);return}p!=null&&this.push(p),this.push(null),d&&d()}):(this.push(null),d&&d())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(d,f,p){throw new i("_transform()")},l.prototype._write=function(d,f,p){let h=this._readableState,g=this._writableState,v=h.length;this._transform(d,f,(y,_)=>{if(y){p(y);return}_!=null&&this.push(_),g.ended||v===h.length||h.length<h.highWaterMark?p():this[s]=p})},l.prototype._read=function(){if(this[s]){let d=this[s];this[s]=null,d()}}}),gSe=an((e,t)=>{Kt(),Xt(),Qt();var{ObjectSetPrototypeOf:n}=va();t.exports=i;var r=hSe();n(i.prototype,r.prototype),n(i,r);function i(o){if(!(this instanceof i))return new i(o);r.call(this,o)}i.prototype._transform=function(o,a,s){s(null,o)}}),TW=an((e,t)=>{Kt(),Xt(),Qt();var n=E_(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:o}=va(),a=Dh(),{once:s}=gp(),l=Q0(),c=vp(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:f,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:h,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=bl(),{validateFunction:y,validateAbortSignal:_}=N2(),{isIterable:b,isReadable:S,isReadableNodeStream:C,isNodeStream:E,isTransformStream:w,isWebStream:x,isReadableStream:T,isReadableEnded:R}=Op(),N=globalThis.AbortController||SW().AbortController,I,P;function D(H,K,re){let Q=!1;H.on("close",()=>{Q=!0});let A=a(H,{readable:K,writable:re},k=>{Q=!k});return{destroy:k=>{Q||(Q=!0,l.destroyer(H,k||new h("pipe")))},cleanup:A}}function F(H){return y(H[H.length-1],"streams[stream.length - 1]"),H.pop()}function L(H){if(b(H))return H;if(C(H))return B(H);throw new d("val",["Readable","Iterable","AsyncIterable"],H)}async function*B(H){P||(P=P2()),yield*P.prototype[o].call(H)}async function U(H,K,re,{end:Q}){let A,k=null,Z=ae=>{if(ae&&(A=ae),k){let ue=k;k=null,ue()}},ne=()=>new i((ae,ue)=>{A?ue(A):k=()=>{A?ue(A):ae()}});K.on("drain",Z);let oe=a(K,{readable:!1},Z);try{K.writableNeedDrain&&await ne();for await(let ae of H)K.write(ae)||await ne();Q&&K.end(),await ne(),re()}catch(ae){re(A!==ae?u(A,ae):ae)}finally{oe(),K.off("drain",Z)}}async function G(H,K,re,{end:Q}){w(K)&&(K=K.writable);let A=K.getWriter();try{for await(let k of H)await A.ready,A.write(k).catch(()=>{});await A.ready,Q&&await A.close(),re()}catch(k){try{await A.abort(k),re(k)}catch(Z){re(Z)}}}function V(...H){return W(H,s(F(H)))}function W(H,K,re){if(H.length===1&&r(H[0])&&(H=H[0]),H.length<2)throw new p("streams");let Q=new N,A=Q.signal,k=re==null?void 0:re.signal,Z=[];_(k,"options.signal");function ne(){pe(new v)}k==null||k.addEventListener("abort",ne);let oe,ae,ue=[],fe=0;function se(ge){pe(ge,--fe===0)}function pe(ge,Ce){if(ge&&(!oe||oe.code==="ERR_STREAM_PREMATURE_CLOSE")&&(oe=ge),!(!oe&&!Ce)){for(;ue.length;)ue.shift()(oe);k==null||k.removeEventListener("abort",ne),Q.abort(),Ce&&(oe||Z.forEach(ye=>ye()),n.nextTick(K,oe,ae))}}let _e;for(let ge=0;ge<H.length;ge++){let Ce=H[ge],ye=ge<H.length-1,be=ge>0,Ee=ye||(re==null?void 0:re.end)!==!1,Me=ge===H.length-1;if(E(Ce)){let X=function(Y){Y&&Y.name!=="AbortError"&&Y.code!=="ERR_STREAM_PREMATURE_CLOSE"&&se(Y)};if(Ee){let{destroy:Y,cleanup:J}=D(Ce,ye,be);ue.push(Y),S(Ce)&&Me&&Z.push(J)}Ce.on("error",X),S(Ce)&&Me&&Z.push(()=>{Ce.removeListener("error",X)})}if(ge===0)if(typeof Ce=="function"){if(_e=Ce({signal:A}),!b(_e))throw new f("Iterable, AsyncIterable or Stream","source",_e)}else b(Ce)||C(Ce)||w(Ce)?_e=Ce:_e=c.from(Ce);else if(typeof Ce=="function"){if(w(_e)){var Te;_e=L((Te=_e)===null||Te===void 0?void 0:Te.readable)}else _e=L(_e);if(_e=Ce(_e,{signal:A}),ye){if(!b(_e,!0))throw new f("AsyncIterable",`transform[${ge-1}]`,_e)}else{var xe;I||(I=gSe());let X=new I({objectMode:!0}),Y=(xe=_e)===null||xe===void 0?void 0:xe.then;if(typeof Y=="function")fe++,Y.call(_e,ve=>{ae=ve,ve!=null&&X.write(ve),Ee&&X.end(),n.nextTick(se)},ve=>{X.destroy(ve),n.nextTick(se,ve)});else if(b(_e,!0))fe++,U(_e,X,se,{end:Ee});else if(T(_e)||w(_e)){let ve=_e.readable||_e;fe++,U(ve,X,se,{end:Ee})}else throw new f("AsyncIterable or Promise","destination",_e);_e=X;let{destroy:J,cleanup:he}=D(_e,!1,!0);ue.push(J),Me&&Z.push(he)}}else if(E(Ce)){if(C(_e)){fe+=2;let X=$(_e,Ce,se,{end:Ee});S(Ce)&&Me&&Z.push(X)}else if(w(_e)||T(_e)){let X=_e.readable||_e;fe++,U(X,Ce,se,{end:Ee})}else if(b(_e))fe++,U(_e,Ce,se,{end:Ee});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],_e);_e=Ce}else if(x(Ce)){if(C(_e))fe++,G(L(_e),Ce,se,{end:Ee});else if(T(_e)||b(_e))fe++,G(_e,Ce,se,{end:Ee});else if(w(_e))fe++,G(_e.readable,Ce,se,{end:Ee});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],_e);_e=Ce}else _e=c.from(Ce)}return(A!=null&&A.aborted||k!=null&&k.aborted)&&n.nextTick(ne),_e}function $(H,K,re,{end:Q}){let A=!1;if(K.on("close",()=>{A||re(new g)}),H.pipe(K,{end:!1}),Q){let k=function(){A=!0,K.end()};R(H)?n.nextTick(k):H.once("end",k)}else re();return a(H,{readable:!0,writable:!1},k=>{let Z=H._readableState;k&&k.code==="ERR_STREAM_PREMATURE_CLOSE"&&Z&&Z.ended&&!Z.errored&&!Z.errorEmitted?H.once("end",re).once("error",re):re(k)}),a(K,{readable:!1,writable:!0},re)}t.exports={pipelineImpl:W,pipeline:V}}),vSe=an((e,t)=>{Kt(),Xt(),Qt();var{pipeline:n}=TW(),r=vp(),{destroyer:i}=Q0(),{isNodeStream:o,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:d}=Op(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:h}}=bl(),g=Dh();t.exports=function(...v){if(v.length===0)throw new h("streams");if(v.length===1)return r.from(v[0]);let y=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let I=v.length-1;v[I]=r.from(v[I])}for(let I=0;I<v.length;++I)if(!(!o(v[I])&&!l(v[I]))){if(I<v.length-1&&!(a(v[I])||d(v[I])||c(v[I])))throw new p(`streams[${I}]`,y[I],"must be readable");if(I>0&&!(s(v[I])||u(v[I])||c(v[I])))throw new p(`streams[${I}]`,y[I],"must be writable")}let _,b,S,C,E;function w(I){let P=C;C=null,P?P(I):I?E.destroy(I):!N&&!R&&E.destroy()}let x=v[0],T=n(v,w),R=!!(s(x)||u(x)||c(x)),N=!!(a(T)||d(T)||c(T));if(E=new r({writableObjectMode:!!(x!=null&&x.writableObjectMode),readableObjectMode:!!(T!=null&&T.writableObjectMode),writable:R,readable:N}),R){if(o(x))E._write=function(P,D,F){x.write(P,D)?F():_=F},E._final=function(P){x.end(),b=P},x.on("drain",function(){if(_){let P=_;_=null,P()}});else if(l(x)){let P=(c(x)?x.writable:x).getWriter();E._write=async function(D,F,L){try{await P.ready,P.write(D).catch(()=>{}),L()}catch(B){L(B)}},E._final=async function(D){try{await P.ready,P.close().catch(()=>{}),b=D}catch(F){D(F)}}}let I=c(T)?T.readable:T;g(I,()=>{if(b){let P=b;b=null,P()}})}if(N){if(o(T))T.on("readable",function(){if(S){let I=S;S=null,I()}}),T.on("end",function(){E.push(null)}),E._read=function(){for(;;){let I=T.read();if(I===null){S=E._read;return}if(!E.push(I))return}};else if(l(T)){let I=(c(T)?T.readable:T).getReader();E._read=async function(){for(;;)try{let{value:P,done:D}=await I.read();if(!E.push(P))return;if(D){E.push(null);return}}catch{return}}}}return E._destroy=function(I,P){!I&&C!==null&&(I=new f),S=null,_=null,b=null,C===null?P(I):(C=P,o(T)&&i(T,I))},E}}),G7e=an((e,t)=>{Kt(),Xt(),Qt();var n=globalThis.AbortController||SW().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:s}=bl(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=N2(),d=va().Symbol("kWeak"),{finished:f}=Dh(),p=vSe(),{addAbortSignalNoValidate:h}=M2(),{isWritable:g,isNodeStream:v}=Op(),{ArrayPrototypePush:y,MathFloor:_,Number:b,NumberIsNaN:S,Promise:C,PromiseReject:E,PromisePrototypeThen:w,Symbol:x}=va(),T=x("kEmpty"),R=x("kEof");function N(Q,A){if(A!=null&&u(A,"options"),(A==null?void 0:A.signal)!=null&&l(A.signal,"options.signal"),v(Q)&&!g(Q))throw new r("stream",Q,"must be writable");let k=p(this,Q);return A!=null&&A.signal&&h(A.signal,k),k}function I(Q,A){if(typeof Q!="function")throw new i("fn",["Function","AsyncFunction"],Q);A!=null&&u(A,"options"),(A==null?void 0:A.signal)!=null&&l(A.signal,"options.signal");let k=1;return(A==null?void 0:A.concurrency)!=null&&(k=_(A.concurrency)),c(k,"concurrency",1),(async function*(){var Z,ne;let oe=new n,ae=this,ue=[],fe=oe.signal,se={signal:fe},pe=()=>oe.abort();A!=null&&(Z=A.signal)!==null&&Z!==void 0&&Z.aborted&&pe(),A==null||(ne=A.signal)===null||ne===void 0||ne.addEventListener("abort",pe);let _e,Te,xe=!1;function ge(){xe=!0}async function Ce(){try{for await(let Ee of ae){var ye;if(xe)return;if(fe.aborted)throw new s;try{Ee=Q(Ee,se)}catch(Me){Ee=E(Me)}Ee!==T&&(typeof((ye=Ee)===null||ye===void 0?void 0:ye.catch)=="function"&&Ee.catch(ge),ue.push(Ee),_e&&(_e(),_e=null),!xe&&ue.length&&ue.length>=k&&await new C(Me=>{Te=Me}))}ue.push(R)}catch(Ee){let Me=E(Ee);w(Me,void 0,ge),ue.push(Me)}finally{var be;xe=!0,_e&&(_e(),_e=null),A==null||(be=A.signal)===null||be===void 0||be.removeEventListener("abort",pe)}}Ce();try{for(;;){for(;ue.length>0;){let ye=await ue[0];if(ye===R)return;if(fe.aborted)throw new s;ye!==T&&(yield ye),ue.shift(),Te&&(Te(),Te=null)}await new C(ye=>{_e=ye})}}finally{oe.abort(),xe=!0,Te&&(Te(),Te=null)}}).call(this)}function P(Q=void 0){return Q!=null&&u(Q,"options"),(Q==null?void 0:Q.signal)!=null&&l(Q.signal,"options.signal"),(async function*(){let A=0;for await(let Z of this){var k;if(Q!=null&&(k=Q.signal)!==null&&k!==void 0&&k.aborted)throw new s({cause:Q.signal.reason});yield[A++,Z]}}).call(this)}async function D(Q,A=void 0){for await(let k of U.call(this,Q,A))return!0;return!1}async function F(Q,A=void 0){if(typeof Q!="function")throw new i("fn",["Function","AsyncFunction"],Q);return!await D.call(this,async(...k)=>!await Q(...k),A)}async function L(Q,A){for await(let k of U.call(this,Q,A))return k}async function B(Q,A){if(typeof Q!="function")throw new i("fn",["Function","AsyncFunction"],Q);async function k(Z,ne){return await Q(Z,ne),T}for await(let Z of I.call(this,k,A));}function U(Q,A){if(typeof Q!="function")throw new i("fn",["Function","AsyncFunction"],Q);async function k(Z,ne){return await Q(Z,ne)?Z:T}return I.call(this,k,A)}var G=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function V(Q,A,k){var Z;if(typeof Q!="function")throw new i("reducer",["Function","AsyncFunction"],Q);k!=null&&u(k,"options"),(k==null?void 0:k.signal)!=null&&l(k.signal,"options.signal");let ne=arguments.length>1;if(k!=null&&(Z=k.signal)!==null&&Z!==void 0&&Z.aborted){let se=new s(void 0,{cause:k.signal.reason});throw this.once("error",()=>{}),await f(this.destroy(se)),se}let oe=new n,ae=oe.signal;if(k!=null&&k.signal){let se={once:!0,[d]:this};k.signal.addEventListener("abort",()=>oe.abort(),se)}let ue=!1;try{for await(let se of this){var fe;if(ue=!0,k!=null&&(fe=k.signal)!==null&&fe!==void 0&&fe.aborted)throw new s;ne?A=await Q(A,se,{signal:ae}):(A=se,ne=!0)}if(!ue&&!ne)throw new G}finally{oe.abort()}return A}async function W(Q){Q!=null&&u(Q,"options"),(Q==null?void 0:Q.signal)!=null&&l(Q.signal,"options.signal");let A=[];for await(let Z of this){var k;if(Q!=null&&(k=Q.signal)!==null&&k!==void 0&&k.aborted)throw new s(void 0,{cause:Q.signal.reason});y(A,Z)}return A}function $(Q,A){let k=I.call(this,Q,A);return(async function*(){for await(let Z of k)yield*Z}).call(this)}function H(Q){if(Q=b(Q),S(Q))return 0;if(Q<0)throw new a("number",">= 0",Q);return Q}function K(Q,A=void 0){return A!=null&&u(A,"options"),(A==null?void 0:A.signal)!=null&&l(A.signal,"options.signal"),Q=H(Q),(async function*(){var k;if(A!=null&&(k=A.signal)!==null&&k!==void 0&&k.aborted)throw new s;for await(let ne of this){var Z;if(A!=null&&(Z=A.signal)!==null&&Z!==void 0&&Z.aborted)throw new s;Q--<=0&&(yield ne)}}).call(this)}function re(Q,A=void 0){return A!=null&&u(A,"options"),(A==null?void 0:A.signal)!=null&&l(A.signal,"options.signal"),Q=H(Q),(async function*(){var k;if(A!=null&&(k=A.signal)!==null&&k!==void 0&&k.aborted)throw new s;for await(let ne of this){var Z;if(A!=null&&(Z=A.signal)!==null&&Z!==void 0&&Z.aborted)throw new s;if(Q-- >0)yield ne;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:P,drop:K,filter:U,flatMap:$,map:I,take:re,compose:N},t.exports.promiseReturningOperators={every:F,forEach:B,reduce:V,toArray:W,some:D,find:L}}),_Se=an((e,t)=>{Kt(),Xt(),Qt();var{ArrayPrototypePop:n,Promise:r}=va(),{isIterable:i,isNodeStream:o,isWebStream:a}=Op(),{pipelineImpl:s}=TW(),{finished:l}=Dh();ySe();function c(...u){return new r((d,f)=>{let p,h,g=u[u.length-1];if(g&&typeof g=="object"&&!o(g)&&!i(g)&&!a(g)){let v=n(u);p=v.signal,h=v.end}s(u,(v,y)=>{v?f(v):d(y)},{signal:p,end:h})})}t.exports={finished:l,pipeline:c}}),ySe=an((e,t)=>{Kt(),Xt(),Qt();var{Buffer:n}=(Za(),Ai(Xa)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:o}=va(),{promisify:{custom:a}}=gp(),{streamReturningOperators:s,promiseReturningOperators:l}=G7e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=bl(),u=vSe(),{pipeline:d}=TW(),{destroyer:f}=Q0(),p=Dh(),h=_Se(),g=Op(),v=t.exports=EW().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=P2();for(let _ of i(s)){let b=function(...C){if(new.target)throw c();return v.Readable.from(o(S,this,C))},S=s[_];r(b,"name",{__proto__:null,value:S.name}),r(b,"length",{__proto__:null,value:S.length}),r(v.Readable.prototype,_,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let _ of i(l)){let b=function(...C){if(new.target)throw c();return o(S,this,C)},S=l[_];r(b,"name",{__proto__:null,value:S.name}),r(b,"length",{__proto__:null,value:S.length}),r(v.Readable.prototype,_,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}v.Writable=mSe(),v.Duplex=vp(),v.Transform=hSe(),v.PassThrough=gSe(),v.pipeline=d;var{addAbortSignal:y}=M2();v.addAbortSignal=y,v.finished=p,v.destroy=f,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return h}}),r(d,a,{__proto__:null,enumerable:!0,get(){return h.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return h.finished}}),v.Stream=v,v._isUint8Array=function(_){return _ instanceof Uint8Array},v._uint8ArrayToBuffer=function(_){return n.from(_.buffer,_.byteOffset,_.byteLength)}}),w_=an((e,t)=>{Kt(),Xt(),Qt();var n=ySe(),r=_Se(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),W7e=an((e,t)=>{Kt(),Xt(),Qt(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),Y7e=an((e,t)=>{Kt(),Xt(),Qt();var{Buffer:n}=(Za(),Ai(Xa)),r=Symbol.for("BufferList");function i(o){if(!(this instanceof i))return new i(o);i._init.call(this,o)}i._init=function(o){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,o&&this.append(o)},i.prototype._new=function(o){return new i(o)},i.prototype._offset=function(o){if(o===0)return[0,0];let a=0;for(let s=0;s<this._bufs.length;s++){let l=a+this._bufs[s].length;if(o<l||s===this._bufs.length-1)return[s,o-a];a=l}},i.prototype._reverseOffset=function(o){let a=o[0],s=o[1];for(let l=0;l<a;l++)s+=this._bufs[l].length;return s},i.prototype.get=function(o){if(o>this.length||o<0)return;let a=this._offset(o);return this._bufs[a[0]][a[1]]},i.prototype.slice=function(o,a){return typeof o=="number"&&o<0&&(o+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,o,a)},i.prototype.copy=function(o,a,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return o||n.alloc(0);let c=!!o,u=this._offset(s),d=l-s,f=d,p=c&&a||0,h=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;g<this._bufs.length;g++)this._bufs[g].copy(o,p),p+=this._bufs[g].length;return o}if(f<=this._bufs[u[0]].length-h)return c?this._bufs[u[0]].copy(o,a,h,h+f):this._bufs[u[0]].slice(h,h+f);c||(o=n.allocUnsafe(d));for(let g=u[0];g<this._bufs.length;g++){let v=this._bufs[g].length-h;if(f>v)this._bufs[g].copy(o,p,h),p+=v;else{this._bufs[g].copy(o,p,h,h+f),p+=v;break}f-=v,h&&(h=0)}return o.length>p?o.slice(0,p):o},i.prototype.shallowSlice=function(o,a){if(o=o||0,a=typeof a!="number"?this.length:a,o<0&&(o+=this.length),a<0&&(a+=this.length),o===a)return this._new();let s=this._offset(o),l=this._offset(a),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(o,a,s){return this.slice(a,s).toString(o)},i.prototype.consume=function(o){if(o=Math.trunc(o),Number.isNaN(o)||o<=0)return this;for(;this._bufs.length;)if(o>=this._bufs[0].length)o-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(o),this.length-=o;break}return this},i.prototype.duplicate=function(){let o=this._new();for(let a=0;a<this._bufs.length;a++)o.append(this._bufs[a]);return o},i.prototype.append=function(o){if(o==null)return this;if(o.buffer)this._appendBuffer(n.from(o.buffer,o.byteOffset,o.byteLength));else if(Array.isArray(o))for(let a=0;a<o.length;a++)this.append(o[a]);else if(this._isBufferList(o))for(let a=0;a<o._bufs.length;a++)this.append(o._bufs[a]);else typeof o=="number"&&(o=o.toString()),this._appendBuffer(n.from(o));return this},i.prototype._appendBuffer=function(o){this._bufs.push(o),this.length+=o.length},i.prototype.indexOf=function(o,a,s){if(s===void 0&&typeof a=="string"&&(s=a,a=void 0),typeof o=="function"||Array.isArray(o))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof o=="number"?o=n.from([o]):typeof o=="string"?o=n.from(o,s):this._isBufferList(o)?o=o.slice():Array.isArray(o.buffer)?o=n.from(o.buffer,o.byteOffset,o.byteLength):n.isBuffer(o)||(o=n.from(o)),a=Number(a||0),isNaN(a)&&(a=0),a<0&&(a=this.length+a),a<0&&(a=0),o.length===0)return a>this.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c<this._bufs.length;c++){let d=this._bufs[c];for(;u<d.length;)if(d.length-u>=o.length){let f=d.indexOf(o,u);if(f!==-1)return this._reverseOffset([c,f]);u=d.length-o.length+1}else{let f=this._reverseOffset([c,u]);if(this._match(f,o))return f;u++}u=0}return-1},i.prototype._match=function(o,a){if(this.length-o<a.length)return!1;for(let s=0;s<a.length;s++)if(this.get(o+s)!==a[s])return!1;return!0},function(){let o={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readBigInt64BE:8,readBigInt64LE:8,readBigUInt64BE:8,readBigUInt64LE:8,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let a in o)(function(s){o[s]===null?i.prototype[s]=function(l,c){return this.slice(l,l+c)[s](0,c)}:i.prototype[s]=function(l=0){return this.slice(l,l+o[s])[s](0)}})(a)}(),i.prototype._isBufferList=function(o){return o instanceof i||i.isBufferList(o)},i.isBufferList=function(o){return o!=null&&o[r]},t.exports=i}),q7e=an((e,t)=>{Kt(),Xt(),Qt();var n=w_().Duplex,r=W7e(),i=Y7e();function o(a){if(!(this instanceof o))return new o(a);if(typeof a=="function"){this._callback=a;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),a=null}i._init.call(this,a),n.call(this)}r(o,n),Object.assign(o.prototype,i.prototype),o.prototype._new=function(a){return new o(a)},o.prototype._write=function(a,s,l){this._appendBuffer(a),typeof l=="function"&&l()},o.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},o.prototype.end=function(a){n.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(a,s){this._bufs.length=0,this.length=0,s(a)},o.prototype._isBufferList=function(a){return a instanceof o||a instanceof i||o.isBufferList(a)},o.isBufferList=i.isBufferList,t.exports=o,t.exports.BufferListStream=o,t.exports.BufferList=i}),K7e=an((e,t)=>{Kt(),Xt(),Qt();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),bSe=an((e,t)=>{Kt(),Xt(),Qt();var n=t.exports,{Buffer:r}=(Za(),Ai(Xa));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let o in n.requiredHeaderFlags){let a=n.requiredHeaderFlags[o];n.requiredHeaderFlagsErrors[o]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+n.types[o]+" packet"}n.codes={};for(let o in n.types){let a=n.types[o];n.codes[a]=o}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<<n.CMD_SHIFT]),n.USERNAME_MASK=128,n.PASSWORD_MASK=64,n.WILL_RETAIN_MASK=32,n.WILL_QOS_MASK=24,n.WILL_QOS_SHIFT=3,n.WILL_FLAG_MASK=4,n.CLEAN_SESSION_MASK=2,n.CONNECT_HEADER=r.from([n.codes.connect<<n.CMD_SHIFT]),n.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},n.propertiesCodes={};for(let o in n.properties){let a=n.properties[o];n.propertiesCodes[a]=o}n.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function i(o){return[0,1,2].map(a=>[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[o]<<n.CMD_SHIFT|(s?n.DUP_MASK:0)|a<<n.QOS_SHIFT|l,0,!0),c})))}n.PUBLISH_HEADER=i("publish"),n.SUBSCRIBE_HEADER=i("subscribe"),n.SUBSCRIBE_OPTIONS_QOS_MASK=3,n.SUBSCRIBE_OPTIONS_NL_MASK=1,n.SUBSCRIBE_OPTIONS_NL_SHIFT=2,n.SUBSCRIBE_OPTIONS_RAP_MASK=1,n.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,n.SUBSCRIBE_OPTIONS_RH_MASK=3,n.SUBSCRIBE_OPTIONS_RH_SHIFT=4,n.SUBSCRIBE_OPTIONS_RH=[0,16,32],n.SUBSCRIBE_OPTIONS_NL=4,n.SUBSCRIBE_OPTIONS_RAP=8,n.SUBSCRIBE_OPTIONS_QOS=[0,1,2],n.UNSUBSCRIBE_HEADER=i("unsubscribe"),n.ACKS={unsuback:i("unsuback"),puback:i("puback"),pubcomp:i("pubcomp"),pubrel:i("pubrel"),pubrec:i("pubrec")},n.SUBACK_HEADER=r.from([n.codes.suback<<n.CMD_SHIFT]),n.VERSION3=r.from([3]),n.VERSION4=r.from([4]),n.VERSION5=r.from([5]),n.VERSION131=r.from([131]),n.VERSION132=r.from([132]),n.QOS=[0,1,2].map(o=>r.from([o])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),Q7e=an((e,t)=>{Kt(),Xt(),Qt();var n=1e3,r=n*60,i=r*60,o=i*24,a=o*7,s=o*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*s;case"weeks":case"week":case"w":return h*a;case"days":case"day":case"d":return h*o;case"hours":case"hour":case"hrs":case"hr":case"h":return h*i;case"minutes":case"minute":case"mins":case"min":case"m":return h*r;case"seconds":case"second":case"secs":case"sec":case"s":return h*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=o?Math.round(f/o)+"d":p>=i?Math.round(f/i)+"h":p>=r?Math.round(f/r)+"m":p>=n?Math.round(f/n)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=o?d(f,p,o,"day"):p>=i?d(f,p,i,"hour"):p>=r?d(f,p,r,"minute"):p>=n?d(f,p,n,"second"):f+" ms"}function d(f,p,h,g){var v=p>=h*1.5;return Math.round(f/h)+" "+g+(v?"s":"")}}),X7e=an((e,t)=>{Kt(),Xt(),Qt();function n(r){o.debug=o,o.default=o,o.coerce=d,o.disable=l,o.enable=s,o.enabled=c,o.humanize=Q7e(),o.destroy=f,Object.keys(r).forEach(p=>{o[p]=r[p]}),o.names=[],o.skips=[],o.formatters={};function i(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return o.colors[Math.abs(h)%o.colors.length]}o.selectColor=i;function o(p){let h,g=null,v,y;function _(...b){if(!_.enabled)return;let S=_,C=Number(new Date),E=C-(h||C);S.diff=E,S.prev=h,S.curr=C,h=C,b[0]=o.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let w=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(x,T)=>{if(x==="%%")return"%";w++;let R=o.formatters[T];if(typeof R=="function"){let N=b[w];x=R.call(S,N),b.splice(w,1),w--}return x}),o.formatArgs.call(S,b),(S.log||o.log).apply(S,b)}return _.namespace=p,_.useColors=o.useColors(),_.color=o.selectColor(p),_.extend=a,_.destroy=o.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==o.namespaces&&(v=o.namespaces,y=o.enabled(p)),y),set:b=>{g=b}}),typeof o.init=="function"&&o.init(_),_}function a(p,h){let g=o(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function s(p){o.save(p),o.namespaces=p,o.names=[],o.skips=[];let h,g=(typeof p=="string"?p:"").split(/[\s,]+/),v=g.length;for(h=0;h<v;h++)g[h]&&(p=g[h].replace(/\*/g,".*?"),p[0]==="-"?o.skips.push(new RegExp("^"+p.slice(1)+"$")):o.names.push(new RegExp("^"+p+"$")))}function l(){let p=[...o.names.map(u),...o.skips.map(u).map(h=>"-"+h)].join(",");return o.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let h,g;for(h=0,g=o.skips.length;h<g;h++)if(o.skips[h].test(p))return!1;for(h=0,g=o.names.length;h<g;h++)if(o.names[h].test(p))return!0;return!1}function u(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}t.exports=n}),_p=an((e,t)=>{Kt(),Xt(),Qt(),e.formatArgs=r,e.save=i,e.load=o,e.useColors=n,e.storage=a(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function o(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof vi<"u"&&"env"in vi&&(l=vi.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=X7e()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),Z7e=an((e,t)=>{Kt(),Xt(),Qt();var n=q7e(),{EventEmitter:r}=(X0(),Ai(C_)),i=K7e(),o=bSe(),a=_p()("mqtt-packet:parser"),s=class a7 extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof a7?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new a7().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),a("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>o.CMD_SHIFT;this.packet.cmd=o.types[u];let d=c&15,f=o.requiredHeaderFlags[u];return f!=null&&d!==f?this._emitError(new Error(o.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&o.RETAIN_MASK)!==0,this.packet.qos=c>>o.QOS_SHIFT&o.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&o.DUP_MASK)!==0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),a("_parseLength %d",c.value),!!c}_parsePayload(){a("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return a("_parsePayload complete result: %s",c),c}_parseConnect(){a("_parseConnect");let c,u,d,f,p={},h=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(h.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(h.protocolVersion=this._list.readUInt8(this._pos),h.protocolVersion>=128&&(h.bridgeMode=!0,h.protocolVersion=h.protocolVersion-128),h.protocolVersion!==3&&h.protocolVersion!==4&&h.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));p.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(p.will)h.will={},h.will.retain=v,h.will.qos=y;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(h.clean=(this._list.readUInt8(this._pos)&o.CLEAN_SESSION_MASK)!==0,this._pos++,h.keepalive=this._parseNum(),h.keepalive===-1)return this._emitError(new Error("Packet too short"));if(h.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(h.properties=b)}let _=this._parseString();if(_===null)return this._emitError(new Error("Packet too short"));if(h.clientId=_,a("_parseConnect: packet.clientId: %s",h.clientId),p.will){if(h.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(h.will.properties=b)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(h.will.topic=c,a("_parseConnect: packet.will.topic: %s",h.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));h.will.payload=u,a("_parseConnect: packet.will.paylaod: %s",h.will.payload)}if(p.username){if(f=this._parseString(),f===null)return this._emitError(new Error("Cannot parse username"));h.username=f,a("_parseConnect: packet.username: %s",h.username)}if(p.password){if(d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse password"));h.password=d}return this.settings=h,a("_parseConnect: complete"),h}_parseConnack(){a("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&o.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(c.properties=d)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");let c=this.packet,u,d,f,p,h,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(c.properties=y)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<c.length;){if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(d=this._parseByte(),this.settings.protocolVersion===5){if(d&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(d&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(f=d&o.SUBSCRIBE_OPTIONS_QOS_MASK,f>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(d>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK)!==0,h=(d>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=d>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:f},this.settings.protocolVersion===5?(v.nl=g,v.rap=h,v.rh=p):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_parseSuback(){a("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let u=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!o.MQTT5_SUBACK_CODES[u])return this._emitError(new Error("Invalid suback code"))}else if(u>2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<c.length;){let u=this._parseString();if(u===null)return this._emitError(new Error("Cannot parse topic"));a("_parseUnsubscribe: push topic `%s` to unsubscriptions",u),c.unsubscriptions.push(u)}}}_parseUnsuback(){a("_parseUnsuback");let c=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&c.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(c.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let u=this._parseProperties();for(Object.getOwnPropertyNames(u).length&&(c.properties=u),c.granted=[];this._pos<this.packet.length;){let d=this._list.readUInt8(this._pos++);if(!o.MQTT5_UNSUBACK_CODES[d])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(d)}}}_parseConfirmation(){a("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let c=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(c.length>2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!o.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!o.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}a("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),o.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!o.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),a("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),d=u+this._pos;if(u===-1||d>this._list.length||d>this.packet.length)return null;let f=this._list.toString("utf8",this._pos,d);return this._pos+=u,a("_parseString: result: %s",f),f}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let d=this._list.slice(this._pos,u);return this._pos+=c,a("_parseBuffer: result: %o",d),d}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){a("_parseVarByteNum");let u=4,d=0,f=1,p=0,h=!1,g,v=this._pos?this._pos:0;for(;d<u&&v+d<this._list.length;){if(g=this._list.readUInt8(v+d++),p+=f*(g&o.VARBYTEINT_MASK),f*=128,!(g&o.VARBYTEINT_FIN_MASK)){h=!0;break}if(this._list.length<=d)break}return!h&&d===u&&this._list.length>=d&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=d),h?c?h={bytes:d,value:p}:h=p:h=!1,a("_parseVarByteNum: result: %o",h),h}_parseByte(){let c;return this._pos<this._list.length&&(c=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",c),c}_parseByType(c){switch(a("_parseByType: type: %s",c),c){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){a("_parseProperties");let c=this._parseVarByteNum(),u=this._pos+c,d={};for(;this._pos<u;){let f=this._parseByte();if(!f)return this._emitError(new Error("Cannot parse property code type")),!1;let p=o.propertiesCodes[f];if(!p)return this._emitError(new Error("Unknown property")),!1;if(p==="userProperties"){d[p]||(d[p]=Object.create(null));let h=this._parseByType(o.propertiesTypes[p]);if(d[p][h.name])if(Array.isArray(d[p][h.name]))d[p][h.name].push(h.value);else{let g=d[p][h.name];d[p][h.name]=[g],d[p][h.name].push(h.value)}else d[p][h.name]=h.value;continue}d[p]?Array.isArray(d[p])?d[p].push(this._parseByType(o.propertiesTypes[p])):(d[p]=[d[p]],d[p].push(this._parseByType(o.propertiesTypes[p]))):d[p]=this._parseByType(o.propertiesTypes[p])}return d}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),a("_newPacket: new packet"),this.packet=new i,this._pos=0,!0}_emitError(c){a("_emitError",c),this.error=c,this.emit("error",c)}};t.exports=s}),J7e=an((e,t)=>{Kt(),Xt(),Qt();var{Buffer:n}=(Za(),Ai(Xa)),r=65536,i={},o=n.isBuffer(n.from([1,2]).subarray(0,1));function a(u){let d=n.allocUnsafe(2);return d.writeUInt8(u>>8,0),d.writeUInt8(u&255,1),d}function s(){for(let u=0;u<r;u++)i[u]=a(u)}function l(u){let d=0,f=0,p=n.allocUnsafe(4);do d=u%128|0,u=u/128|0,u>0&&(d=d|128),p.writeUInt8(d,f++);while(u>0&&f<4);return u>0&&(f=0),o?p.subarray(0,f):p.slice(0,f)}function c(u){let d=n.allocUnsafe(4);return d.writeUInt32BE(u,0),d}t.exports={cache:i,generateCache:s,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:c}}),e9e=an((e,t)=>{Kt(),Xt(),Qt(),typeof vi>"u"||!vi.version||vi.version.indexOf("v0.")===0||vi.version.indexOf("v1.")===0&&vi.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=vi;function n(r,i,o,a){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return vi.nextTick(r);case 2:return vi.nextTick(function(){r.call(null,i)});case 3:return vi.nextTick(function(){r.call(null,i,o)});case 4:return vi.nextTick(function(){r.call(null,i,o,a)});default:for(l=new Array(s-1),c=0;c<l.length;)l[c++]=arguments[c];return vi.nextTick(function(){r.apply(null,l)})}}}),SSe=an((e,t)=>{Kt(),Xt(),Qt();var n=bSe(),{Buffer:r}=(Za(),Ai(Xa)),i=r.allocUnsafe(0),o=r.from([0]),a=J7e(),s=e9e().nextTick,l=_p()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,d=a.generateCache,f=a.genBufVariableByteInt,p=a.generate4ByteBuffer,h=B,g=!0;function v(A,k,Z){switch(l("generate called"),k.cork&&(k.cork(),s(y,k)),g&&(g=!1,d()),l("generate: packet.cmd: %s",A.cmd),A.cmd){case"connect":return _(A,k);case"connack":return b(A,k,Z);case"publish":return S(A,k,Z);case"puback":case"pubrec":case"pubrel":case"pubcomp":return C(A,k,Z);case"subscribe":return E(A,k,Z);case"suback":return w(A,k,Z);case"unsubscribe":return x(A,k,Z);case"unsuback":return T(A,k,Z);case"pingreq":case"pingresp":return R(A,k);case"disconnect":return N(A,k,Z);case"auth":return I(A,k,Z);default:return k.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return h===B},set(A){A?((!c||Object.keys(c).length===0)&&(g=!0),h=B):(g=!1,h=U)}});function y(A){A.uncork()}function _(A,k,Z){let ne=A||{},oe=ne.protocolId||"MQTT",ae=ne.protocolVersion||4,ue=ne.will,fe=ne.clean,se=ne.keepalive||0,pe=ne.clientId||"",_e=ne.username,Te=ne.password,xe=ne.properties;fe===void 0&&(fe=!0);let ge=0;if(!oe||typeof oe!="string"&&!r.isBuffer(oe))return k.destroy(new Error("Invalid protocolId")),!1;if(ge+=oe.length+2,ae!==3&&ae!==4&&ae!==5)return k.destroy(new Error("Invalid protocol version")),!1;if(ge+=1,(typeof pe=="string"||r.isBuffer(pe))&&(pe||ae>=4)&&(pe||fe))ge+=r.byteLength(pe)+2;else{if(ae<4)return k.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(fe*1===0)return k.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof se!="number"||se<0||se>65535||se%1!==0)return k.destroy(new Error("Invalid keepalive")),!1;ge+=2,ge+=1;let Ce,ye;if(ae===5){if(Ce=W(k,xe),!Ce)return!1;ge+=Ce.length}if(ue){if(typeof ue!="object")return k.destroy(new Error("Invalid will")),!1;if(!ue.topic||typeof ue.topic!="string")return k.destroy(new Error("Invalid will topic")),!1;if(ge+=r.byteLength(ue.topic)+2,ge+=2,ue.payload)if(ue.payload.length>=0)typeof ue.payload=="string"?ge+=r.byteLength(ue.payload):ge+=ue.payload.length;else return k.destroy(new Error("Invalid will payload")),!1;if(ye={},ae===5){if(ye=W(k,ue.properties),!ye)return!1;ge+=ye.length}}let be=!1;if(_e!=null)if(Q(_e))be=!0,ge+=r.byteLength(_e)+2;else return k.destroy(new Error("Invalid username")),!1;if(Te!=null){if(!be)return k.destroy(new Error("Username is required to use password")),!1;if(Q(Te))ge+=re(Te)+2;else return k.destroy(new Error("Invalid password")),!1}k.write(n.CONNECT_HEADER),D(k,ge),V(k,oe),ne.bridgeMode&&(ae+=128),k.write(ae===131?n.VERSION131:ae===132?n.VERSION132:ae===4?n.VERSION4:ae===5?n.VERSION5:n.VERSION3);let Ee=0;return Ee|=_e!=null?n.USERNAME_MASK:0,Ee|=Te!=null?n.PASSWORD_MASK:0,Ee|=ue&&ue.retain?n.WILL_RETAIN_MASK:0,Ee|=ue&&ue.qos?ue.qos<<n.WILL_QOS_SHIFT:0,Ee|=ue?n.WILL_FLAG_MASK:0,Ee|=fe?n.CLEAN_SESSION_MASK:0,k.write(r.from([Ee])),h(k,se),ae===5&&Ce.write(),V(k,pe),ue&&(ae===5&&ye.write(),F(k,ue.topic),V(k,ue.payload)),_e!=null&&V(k,_e),Te!=null&&V(k,Te),!0}function b(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=ne===5?oe.reasonCode:oe.returnCode,ue=oe.properties,fe=2;if(typeof ae!="number")return k.destroy(new Error("Invalid return code")),!1;let se=null;if(ne===5){if(se=W(k,ue),!se)return!1;fe+=se.length}return k.write(n.CONNACK_HEADER),D(k,fe),k.write(oe.sessionPresent?n.SESSIONPRESENT_HEADER:o),k.write(r.from([ae])),se==null||se.write(),!0}function S(A,k,Z){l("publish: packet: %o",A);let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.qos||0,ue=oe.retain?n.RETAIN_MASK:0,fe=oe.topic,se=oe.payload||i,pe=oe.messageId,_e=oe.properties,Te=0;if(typeof fe=="string")Te+=r.byteLength(fe)+2;else if(r.isBuffer(fe))Te+=fe.length+2;else return k.destroy(new Error("Invalid topic")),!1;if(r.isBuffer(se)?Te+=se.length:Te+=r.byteLength(se),ae&&typeof pe!="number")return k.destroy(new Error("Invalid messageId")),!1;ae&&(Te+=2);let xe=null;if(ne===5){if(xe=W(k,_e),!xe)return!1;Te+=xe.length}return k.write(n.PUBLISH_HEADER[ae][oe.dup?1:0][ue?1:0]),D(k,Te),h(k,re(fe)),k.write(fe),ae>0&&h(k,pe),xe==null||xe.write(),l("publish: payload: %o",se),k.write(se)}function C(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.cmd||"puback",ue=oe.messageId,fe=oe.dup&&ae==="pubrel"?n.DUP_MASK:0,se=0,pe=oe.reasonCode,_e=oe.properties,Te=ne===5?3:2;if(ae==="pubrel"&&(se=1),typeof ue!="number")return k.destroy(new Error("Invalid messageId")),!1;let xe=null;if(ne===5&&typeof _e=="object"){if(xe=$(k,_e,Z,Te),!xe)return!1;Te+=xe.length}return k.write(n.ACKS[ae][se][fe][0]),Te===3&&(Te+=pe!==0?1:-1),D(k,Te),h(k,ue),ne===5&&Te!==2&&k.write(r.from([pe])),xe!==null?xe.write():Te===4&&k.write(r.from([0])),!0}function E(A,k,Z){l("subscribe: packet: ");let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.dup?n.DUP_MASK:0,ue=oe.messageId,fe=oe.subscriptions,se=oe.properties,pe=0;if(typeof ue!="number")return k.destroy(new Error("Invalid messageId")),!1;pe+=2;let _e=null;if(ne===5){if(_e=W(k,se),!_e)return!1;pe+=_e.length}if(typeof fe=="object"&&fe.length)for(let xe=0;xe<fe.length;xe+=1){let ge=fe[xe].topic,Ce=fe[xe].qos;if(typeof ge!="string")return k.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof Ce!="number")return k.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(ne===5){if(typeof(fe[xe].nl||!1)!="boolean")return k.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(fe[xe].rap||!1)!="boolean")return k.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let ye=fe[xe].rh||0;if(typeof ye!="number"||ye>2)return k.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}pe+=r.byteLength(ge)+2+1}else return k.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),k.write(n.SUBSCRIBE_HEADER[1][ae?1:0][0]),D(k,pe),h(k,ue),_e!==null&&_e.write();let Te=!0;for(let xe of fe){let ge=xe.topic,Ce=xe.qos,ye=+xe.nl,be=+xe.rap,Ee=xe.rh,Me;F(k,ge),Me=n.SUBSCRIBE_OPTIONS_QOS[Ce],ne===5&&(Me|=ye?n.SUBSCRIBE_OPTIONS_NL:0,Me|=be?n.SUBSCRIBE_OPTIONS_RAP:0,Me|=Ee?n.SUBSCRIBE_OPTIONS_RH[Ee]:0),Te=k.write(r.from([Me]))}return Te}function w(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.messageId,ue=oe.granted,fe=oe.properties,se=0;if(typeof ae!="number")return k.destroy(new Error("Invalid messageId")),!1;if(se+=2,typeof ue=="object"&&ue.length)for(let _e=0;_e<ue.length;_e+=1){if(typeof ue[_e]!="number")return k.destroy(new Error("Invalid qos vector")),!1;se+=1}else return k.destroy(new Error("Invalid qos vector")),!1;let pe=null;if(ne===5){if(pe=$(k,fe,Z,se),!pe)return!1;se+=pe.length}return k.write(n.SUBACK_HEADER),D(k,se),h(k,ae),pe!==null&&pe.write(),k.write(r.from(ue))}function x(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.messageId,ue=oe.dup?n.DUP_MASK:0,fe=oe.unsubscriptions,se=oe.properties,pe=0;if(typeof ae!="number")return k.destroy(new Error("Invalid messageId")),!1;if(pe+=2,typeof fe=="object"&&fe.length)for(let xe=0;xe<fe.length;xe+=1){if(typeof fe[xe]!="string")return k.destroy(new Error("Invalid unsubscriptions")),!1;pe+=r.byteLength(fe[xe])+2}else return k.destroy(new Error("Invalid unsubscriptions")),!1;let _e=null;if(ne===5){if(_e=W(k,se),!_e)return!1;pe+=_e.length}k.write(n.UNSUBSCRIBE_HEADER[1][ue?1:0][0]),D(k,pe),h(k,ae),_e!==null&&_e.write();let Te=!0;for(let xe=0;xe<fe.length;xe++)Te=F(k,fe[xe]);return Te}function T(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.messageId,ue=oe.dup?n.DUP_MASK:0,fe=oe.granted,se=oe.properties,pe=oe.cmd,_e=0,Te=2;if(typeof ae!="number")return k.destroy(new Error("Invalid messageId")),!1;if(ne===5)if(typeof fe=="object"&&fe.length)for(let ge=0;ge<fe.length;ge+=1){if(typeof fe[ge]!="number")return k.destroy(new Error("Invalid qos vector")),!1;Te+=1}else return k.destroy(new Error("Invalid qos vector")),!1;let xe=null;if(ne===5){if(xe=$(k,se,Z,Te),!xe)return!1;Te+=xe.length}return k.write(n.ACKS[pe][_e][ue][0]),D(k,Te),h(k,ae),xe!==null&&xe.write(),ne===5&&k.write(r.from(fe)),!0}function R(A,k,Z){return k.write(n.EMPTY[A.cmd])}function N(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.reasonCode,ue=oe.properties,fe=ne===5?1:0,se=null;if(ne===5){if(se=$(k,ue,Z,fe),!se)return!1;fe+=se.length}return k.write(r.from([n.codes.disconnect<<4])),D(k,fe),ne===5&&k.write(r.from([ae])),se!==null&&se.write(),!0}function I(A,k,Z){let ne=Z?Z.protocolVersion:4,oe=A||{},ae=oe.reasonCode,ue=oe.properties,fe=ne===5?1:0;ne!==5&&k.destroy(new Error("Invalid mqtt version for auth packet"));let se=$(k,ue,Z,fe);return se?(fe+=se.length,k.write(r.from([n.codes.auth<<4])),D(k,fe),k.write(r.from([ae])),se!==null&&se.write(),!0):!1}var P={};function D(A,k){if(k>n.VARBYTEINT_MAX)return A.destroy(new Error(`Invalid variable byte integer: ${k}`)),!1;let Z=P[k];return Z||(Z=f(k),k<16384&&(P[k]=Z)),l("writeVarByteInt: writing to stream: %o",Z),A.write(Z)}function F(A,k){let Z=r.byteLength(k);return h(A,Z),l("writeString: %s",k),A.write(k,"utf8")}function L(A,k,Z){F(A,k),F(A,Z)}function B(A,k){return l("writeNumberCached: number: %d",k),l("writeNumberCached: %o",c[k]),A.write(c[k])}function U(A,k){let Z=u(k);return l("writeNumberGenerated: %o",Z),A.write(Z)}function G(A,k){let Z=p(k);return l("write4ByteNumber: %o",Z),A.write(Z)}function V(A,k){typeof k=="string"?F(A,k):k?(h(A,k.length),A.write(k)):h(A,0)}function W(A,k){if(typeof k!="object"||k.length!=null)return{length:1,write(){K(A,{},0)}};let Z=0;function ne(oe,ae){let ue=n.propertiesTypes[oe],fe=0;switch(ue){case"byte":{if(typeof ae!="boolean")return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=2;break}case"int8":{if(typeof ae!="number"||ae<0||ae>255)return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=2;break}case"binary":{if(ae&&ae===null)return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=1+r.byteLength(ae)+2;break}case"int16":{if(typeof ae!="number"||ae<0||ae>65535)return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=3;break}case"int32":{if(typeof ae!="number"||ae<0||ae>4294967295)return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=5;break}case"var":{if(typeof ae!="number"||ae<0||ae>268435455)return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=1+r.byteLength(f(ae));break}case"string":{if(typeof ae!="string")return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=3+r.byteLength(ae.toString());break}case"pair":{if(typeof ae!="object")return A.destroy(new Error(`Invalid ${oe}: ${ae}`)),!1;fe+=Object.getOwnPropertyNames(ae).reduce((se,pe)=>{let _e=ae[pe];return Array.isArray(_e)?se+=_e.reduce((Te,xe)=>(Te+=3+r.byteLength(pe.toString())+2+r.byteLength(xe.toString()),Te),0):se+=3+r.byteLength(pe.toString())+2+r.byteLength(ae[pe].toString()),se},0);break}default:return A.destroy(new Error(`Invalid property ${oe}: ${ae}`)),!1}return fe}if(k)for(let oe in k){let ae=0,ue=0,fe=k[oe];if(Array.isArray(fe))for(let se=0;se<fe.length;se++){if(ue=ne(oe,fe[se]),!ue)return!1;ae+=ue}else{if(ue=ne(oe,fe),!ue)return!1;ae=ue}if(!ae)return!1;Z+=ae}return{length:r.byteLength(f(Z))+Z,write(){K(A,k,Z)}}}function $(A,k,Z,ne){let oe=["reasonString","userProperties"],ae=Z&&Z.properties&&Z.properties.maximumPacketSize?Z.properties.maximumPacketSize:0,ue=W(A,k);if(ae)for(;ne+ue.length>ae;){let fe=oe.shift();if(fe&&k[fe])delete k[fe],ue=W(A,k);else return!1}return ue}function H(A,k,Z){switch(n.propertiesTypes[k]){case"byte":{A.write(r.from([n.properties[k]])),A.write(r.from([+Z]));break}case"int8":{A.write(r.from([n.properties[k]])),A.write(r.from([Z]));break}case"binary":{A.write(r.from([n.properties[k]])),V(A,Z);break}case"int16":{A.write(r.from([n.properties[k]])),h(A,Z);break}case"int32":{A.write(r.from([n.properties[k]])),G(A,Z);break}case"var":{A.write(r.from([n.properties[k]])),D(A,Z);break}case"string":{A.write(r.from([n.properties[k]])),F(A,Z);break}case"pair":{Object.getOwnPropertyNames(Z).forEach(ne=>{let oe=Z[ne];Array.isArray(oe)?oe.forEach(ae=>{A.write(r.from([n.properties[k]])),L(A,ne.toString(),ae.toString())}):(A.write(r.from([n.properties[k]])),L(A,ne.toString(),oe.toString()))});break}default:return A.destroy(new Error(`Invalid property ${k} value: ${Z}`)),!1}}function K(A,k,Z){D(A,Z);for(let ne in k)if(Object.prototype.hasOwnProperty.call(k,ne)&&k[ne]!==null){let oe=k[ne];if(Array.isArray(oe))for(let ae=0;ae<oe.length;ae++)H(A,ne,oe[ae]);else H(A,ne,oe)}}function re(A){return A?A instanceof r?A.length:r.byteLength(A):0}function Q(A){return typeof A=="string"||A instanceof r}t.exports=v}),t9e=an((e,t)=>{Kt(),Xt(),Qt();var n=SSe(),{EventEmitter:r}=(X0(),Ai(C_)),{Buffer:i}=(Za(),Ai(Xa));function o(s,l){let c=new a;return n(s,c,l),c.concat()}var a=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,d;for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?l[d]=c[d].length:l[d]=i.byteLength(c[d]),s+=l[d];let f=i.allocUnsafe(s);for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?(c[d].copy(f,u),u+=l[d]):(f.write(c[d],u),u+=l[d]);return f}destroy(s){s&&this.emit("error",s)}};t.exports=o}),n9e=an(e=>{Kt(),Xt(),Qt(),e.parser=Z7e().parser,e.generate=t9e(),e.writeToStream=SSe()}),ESe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),r9e=an((e,t)=>{Kt(),Xt(),Qt(),t.exports=r;function n(o){return o instanceof OM?OM.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function r(o){if(o=o||{},o.circles)return i(o);return o.proto?l:s;function a(c,u){for(var d=Object.keys(c),f=new Array(d.length),p=0;p<d.length;p++){var h=d[p],g=c[h];typeof g!="object"||g===null?f[h]=g:g instanceof Date?f[h]=new Date(g):ArrayBuffer.isView(g)?f[h]=n(g):f[h]=u(g)}return f}function s(c){if(typeof c!="object"||c===null)return c;if(c instanceof Date)return new Date(c);if(Array.isArray(c))return a(c,s);if(c instanceof Map)return new Map(a(Array.from(c),s));if(c instanceof Set)return new Set(a(Array.from(c),s));var u={};for(var d in c)if(Object.hasOwnProperty.call(c,d)!==!1){var f=c[d];typeof f!="object"||f===null?u[d]=f:f instanceof Date?u[d]=new Date(f):f instanceof Map?u[d]=new Map(a(Array.from(f),s)):f instanceof Set?u[d]=new Set(a(Array.from(f),s)):ArrayBuffer.isView(f)?u[d]=n(f):u[d]=s(f)}return u}function l(c){if(typeof c!="object"||c===null)return c;if(c instanceof Date)return new Date(c);if(Array.isArray(c))return a(c,l);if(c instanceof Map)return new Map(a(Array.from(c),l));if(c instanceof Set)return new Set(a(Array.from(c),l));var u={};for(var d in c){var f=c[d];typeof f!="object"||f===null?u[d]=f:f instanceof Date?u[d]=new Date(f):f instanceof Map?u[d]=new Map(a(Array.from(f),l)):f instanceof Set?u[d]=new Set(a(Array.from(f),l)):ArrayBuffer.isView(f)?u[d]=n(f):u[d]=l(f)}return u}}function i(o){var a=[],s=[];return o.proto?u:c;function l(d,f){for(var p=Object.keys(d),h=new Array(p.length),g=0;g<p.length;g++){var v=p[g],y=d[v];if(typeof y!="object"||y===null)h[v]=y;else if(y instanceof Date)h[v]=new Date(y);else if(ArrayBuffer.isView(y))h[v]=n(y);else{var _=a.indexOf(y);_!==-1?h[v]=s[_]:h[v]=f(y)}}return h}function c(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return l(d,c);if(d instanceof Map)return new Map(l(Array.from(d),c));if(d instanceof Set)return new Set(l(Array.from(d),c));var f={};a.push(d),s.push(f);for(var p in d)if(Object.hasOwnProperty.call(d,p)!==!1){var h=d[p];if(typeof h!="object"||h===null)f[p]=h;else if(h instanceof Date)f[p]=new Date(h);else if(h instanceof Map)f[p]=new Map(l(Array.from(h),c));else if(h instanceof Set)f[p]=new Set(l(Array.from(h),c));else if(ArrayBuffer.isView(h))f[p]=n(h);else{var g=a.indexOf(h);g!==-1?f[p]=s[g]:f[p]=c(h)}}return a.pop(),s.pop(),f}function u(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return l(d,u);if(d instanceof Map)return new Map(l(Array.from(d),u));if(d instanceof Set)return new Set(l(Array.from(d),u));var f={};a.push(d),s.push(f);for(var p in d){var h=d[p];if(typeof h!="object"||h===null)f[p]=h;else if(h instanceof Date)f[p]=new Date(h);else if(h instanceof Map)f[p]=new Map(l(Array.from(h),u));else if(h instanceof Set)f[p]=new Set(l(Array.from(h),u));else if(ArrayBuffer.isView(h))f[p]=n(h);else{var g=a.indexOf(h);g!==-1?f[p]=s[g]:f[p]=u(h)}}return a.pop(),s.pop(),f}}}),i9e=an((e,t)=>{Kt(),Xt(),Qt(),t.exports=r9e()()}),o9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let o=0;o<i.length;o++)if(i[o]!=="+"){if(i[o]==="#")return o===i.length-1;if(i[o].indexOf("+")!==-1||i[o].indexOf("#")!==-1)return!1}return!0}e.validateTopic=t;function n(r){if(r.length===0)return"empty_topic_list";for(let i=0;i<r.length;i++)if(!t(r[i]))return r[i];return null}e.validateTopics=n}),CSe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=w_(),n={objectMode:!0},r={clean:!0},i=class{constructor(o){this.options=o||{},this.options=Object.assign(Object.assign({},r),o),this._inflights=new Map}put(o,a){return this._inflights.set(o.messageId,o),a&&a(),this}createStream(){let o=new t.Readable(n),a=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{a.push(c)}),o._read=()=>{!s&&l<a.length?o.push(a[l++]):o.push(null)},o.destroy=c=>{if(!s)return s=!0,setTimeout(()=>{o.emit("close")},0),o},o}del(o,a){let s=this._inflights.get(o.messageId);return s?(this._inflights.delete(o.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(o,a){let s=this._inflights.get(o.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(o){this.options.clean&&(this._inflights=null),o&&o()}};e.default=i}),a9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,o)=>{r.log("handlePublish: packet %o",i),o=typeof o<"u"?o:r.noop;let a=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let d;if(i.properties&&(d=i.properties.topicAlias),typeof d<"u")if(a.length===0)if(d>0&&d<=65535){let f=r.topicAliasRecv.getTopicByAlias(d);if(f)a=f,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,d);else{r.log("handlePublish :: unregistered topic alias. alias: %d",d),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",d),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(a,d))r.log("handlePublish :: registered topic: %s - alias: %d",a,d);else{r.log("handlePublish :: topic alias out of range. alias: %d",d),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(a,s,i,(d,f)=>{if(typeof d=="number"&&(f=d,d=null),d)return r.emit("error",d);if(t.indexOf(f)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));f?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:f},o):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},o)})});break}case 1:{u.customHandleAcks(a,s,i,(d,f)=>{if(typeof d=="number"&&(f=d,d=null),d)return r.emit("error",d);if(t.indexOf(f)===-1)return r.emit("error",new Error("Wrong reason code for puback"));f||r.emit("message",a,s,i),r.handleMessage(i,p=>{if(p)return o&&o(p);r._sendPacket({cmd:"puback",messageId:c,reasonCode:f},o)})});break}case 0:r.emit("message",a,s,i),r.handleMessage(i,o);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),s9e=an((e,t)=>{t.exports={version:"5.10.3"}}),Z0=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class wSe extends Error{constructor(i,o){super(i),this.code=o,Object.setPrototypeOf(this,wSe.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,o=!1){var a;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(o||c!=="constructor")&&Object.defineProperty(r.prototype,c,(a=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&a!==void 0?a:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(vi==null?void 0:vi.nextTick)=="function"?vi.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=s9e().version}),D2=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=Z0();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:o}=i,a=i.cmd,s=null,l=r.outgoing[o]?r.outgoing[o].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(o,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(o,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:o};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(o,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o);let u=i.granted;for(let d=0;d<u.length;d++){let f=u[d];if(f&128){c=new Error(`Subscribe error: ${e.ReasonCodes[f]}`),c.code=f;let p=r.messageIdToTopic[o];p&&p.forEach(h=>{delete r._resubscribeTopics[h]})}}delete r.messageIdToTopic[o],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),l9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Z0(),n=D2(),r=(i,o)=>{let{options:a}=i,s=a.protocolVersion,l=s===5?o.reasonCode:o.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(o,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let d=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",d)}})};e.default=r}),c9e=an(e=>{var p,h,g,v,y,_,b,S,C,E,w,x,T,R,N,I,P,D,F,L,B,U,G,V,W,$,s7,K,re,Q,A,xSe,Z,ne,oe,Sm,Em,l7,$I,FI,Ji,c7,dC,ge;Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof vi=="object"&&vi?vi:{},i=(Ce,ye,be,Ee)=>{typeof r.emitWarning=="function"?r.emitWarning(Ce,ye,be,Ee):console.error(`[${be}] ${ye}: ${Ce}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof o>"u"){a=class{constructor(){ni(this,"onabort");ni(this,"_onabort",[]);ni(this,"reason");ni(this,"aborted",!1)}addEventListener(be,Ee){this._onabort.push(Ee)}},o=class{constructor(){ni(this,"signal",new a);ye()}abort(be){var Ee,Me;if(!this.signal.aborted){this.signal.reason=be,this.signal.aborted=!0;for(let X of this.signal._onabort)X(be);(Me=(Ee=this.signal).onabort)==null||Me.call(Ee,be)}}};let Ce=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",ye=()=>{Ce&&(Ce=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",ye))}}var s=Ce=>!n.has(Ce),l=Ce=>Ce&&Ce===Math.floor(Ce)&&Ce>0&&isFinite(Ce),c=Ce=>l(Ce)?Ce<=Math.pow(2,8)?Uint8Array:Ce<=Math.pow(2,16)?Uint16Array:Ce<=Math.pow(2,32)?Uint32Array:Ce<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Ce){super(Ce),this.fill(0)}},d=(h=class{constructor(ye,be){ni(this,"heap");ni(this,"length");if(!ke(h,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new be(ye),this.length=0}static create(ye){let be=c(ye);if(!be)return[];hn(h,g,!0);let Ee=new h(ye,be);return hn(h,g,!1),Ee}push(ye){this.heap[this.length++]=ye}pop(){return this.heap[--this.length]}},g=new WeakMap,$n(h,g,!1),h),f=(ge=class{constructor(ye){$n(this,$);$n(this,v);$n(this,y);$n(this,_);$n(this,b);$n(this,S);ni(this,"ttl");ni(this,"ttlResolution");ni(this,"ttlAutopurge");ni(this,"updateAgeOnGet");ni(this,"updateAgeOnHas");ni(this,"allowStale");ni(this,"noDisposeOnSet");ni(this,"noUpdateTTL");ni(this,"maxEntrySize");ni(this,"sizeCalculation");ni(this,"noDeleteOnFetchRejection");ni(this,"noDeleteOnStaleGet");ni(this,"allowStaleOnFetchAbort");ni(this,"allowStaleOnFetchRejection");ni(this,"ignoreFetchAbort");$n(this,C);$n(this,E);$n(this,w);$n(this,x);$n(this,T);$n(this,R);$n(this,N);$n(this,I);$n(this,P);$n(this,D);$n(this,F);$n(this,L);$n(this,B);$n(this,U);$n(this,G);$n(this,V);$n(this,W);$n(this,K,()=>{});$n(this,re,()=>{});$n(this,Q,()=>{});$n(this,A,()=>!1);$n(this,Z,ye=>{});$n(this,ne,(ye,be,Ee)=>{});$n(this,oe,(ye,be,Ee,Me)=>{if(Ee||Me)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:be=0,ttl:Ee,ttlResolution:Me=1,ttlAutopurge:X,updateAgeOnGet:Y,updateAgeOnHas:J,allowStale:he,dispose:ve,disposeAfter:ce,noDisposeOnSet:$e,noUpdateTTL:Be,maxSize:me=0,maxEntrySize:Fe=0,sizeCalculation:Xe,fetchMethod:ze,noDeleteOnFetchRejection:qe,noDeleteOnStaleGet:Ge,allowStaleOnFetchRejection:We,allowStaleOnFetchAbort:Lt,ignoreFetchAbort:ut}=ye;if(be!==0&&!l(be))throw new TypeError("max option must be a nonnegative integer");let ft=be?c(be):Array;if(!ft)throw new Error("invalid max value: "+be);if(hn(this,v,be),hn(this,y,me),this.maxEntrySize=Fe||ke(this,y),this.sizeCalculation=Xe,this.sizeCalculation){if(!ke(this,y)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(ze!==void 0&&typeof ze!="function")throw new TypeError("fetchMethod must be a function if specified");if(hn(this,S,ze),hn(this,V,!!ze),hn(this,w,new Map),hn(this,x,new Array(be).fill(void 0)),hn(this,T,new Array(be).fill(void 0)),hn(this,R,new ft(be)),hn(this,N,new ft(be)),hn(this,I,0),hn(this,P,0),hn(this,D,d.create(be)),hn(this,C,0),hn(this,E,0),typeof ve=="function"&&hn(this,_,ve),typeof ce=="function"?(hn(this,b,ce),hn(this,F,[])):(hn(this,b,void 0),hn(this,F,void 0)),hn(this,G,!!ke(this,_)),hn(this,W,!!ke(this,b)),this.noDisposeOnSet=!!$e,this.noUpdateTTL=!!Be,this.noDeleteOnFetchRejection=!!qe,this.allowStaleOnFetchRejection=!!We,this.allowStaleOnFetchAbort=!!Lt,this.ignoreFetchAbort=!!ut,this.maxEntrySize!==0){if(ke(this,y)!==0&&!l(ke(this,y)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Nn(this,$,xSe).call(this)}if(this.allowStale=!!he,this.noDeleteOnStaleGet=!!Ge,this.updateAgeOnGet=!!Y,this.updateAgeOnHas=!!J,this.ttlResolution=l(Me)||Me===0?Me:1,this.ttlAutopurge=!!X,this.ttl=Ee||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Nn(this,$,s7).call(this)}if(ke(this,v)===0&&this.ttl===0&&ke(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!ke(this,v)&&!ke(this,y)){let bt="LRU_CACHE_UNBOUNDED";s(bt)&&(n.add(bt),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",bt,ge))}}static unsafeExposeInternals(ye){return{starts:ke(ye,B),ttls:ke(ye,U),sizes:ke(ye,L),keyMap:ke(ye,w),keyList:ke(ye,x),valList:ke(ye,T),next:ke(ye,R),prev:ke(ye,N),get head(){return ke(ye,I)},get tail(){return ke(ye,P)},free:ke(ye,D),isBackgroundFetch:be=>{var Ee;return Nn(Ee=ye,$,Ji).call(Ee,be)},backgroundFetch:(be,Ee,Me,X)=>{var Y;return Nn(Y=ye,$,FI).call(Y,be,Ee,Me,X)},moveToTail:be=>{var Ee;return Nn(Ee=ye,$,dC).call(Ee,be)},indexes:be=>{var Ee;return Nn(Ee=ye,$,Sm).call(Ee,be)},rindexes:be=>{var Ee;return Nn(Ee=ye,$,Em).call(Ee,be)},isStale:be=>{var Ee;return ke(Ee=ye,A).call(Ee,be)}}}get max(){return ke(this,v)}get maxSize(){return ke(this,y)}get calculatedSize(){return ke(this,E)}get size(){return ke(this,C)}get fetchMethod(){return ke(this,S)}get dispose(){return ke(this,_)}get disposeAfter(){return ke(this,b)}getRemainingTTL(ye){return ke(this,w).has(ye)?1/0:0}*entries(){for(let ye of Nn(this,$,Sm).call(this))ke(this,T)[ye]!==void 0&&ke(this,x)[ye]!==void 0&&!Nn(this,$,Ji).call(this,ke(this,T)[ye])&&(yield[ke(this,x)[ye],ke(this,T)[ye]])}*rentries(){for(let ye of Nn(this,$,Em).call(this))ke(this,T)[ye]!==void 0&&ke(this,x)[ye]!==void 0&&!Nn(this,$,Ji).call(this,ke(this,T)[ye])&&(yield[ke(this,x)[ye],ke(this,T)[ye]])}*keys(){for(let ye of Nn(this,$,Sm).call(this)){let be=ke(this,x)[ye];be!==void 0&&!Nn(this,$,Ji).call(this,ke(this,T)[ye])&&(yield be)}}*rkeys(){for(let ye of Nn(this,$,Em).call(this)){let be=ke(this,x)[ye];be!==void 0&&!Nn(this,$,Ji).call(this,ke(this,T)[ye])&&(yield be)}}*values(){for(let ye of Nn(this,$,Sm).call(this))ke(this,T)[ye]!==void 0&&!Nn(this,$,Ji).call(this,ke(this,T)[ye])&&(yield ke(this,T)[ye])}*rvalues(){for(let ye of Nn(this,$,Em).call(this))ke(this,T)[ye]!==void 0&&!Nn(this,$,Ji).call(this,ke(this,T)[ye])&&(yield ke(this,T)[ye])}[Symbol.iterator](){return this.entries()}find(ye,be={}){for(let Ee of Nn(this,$,Sm).call(this)){let Me=ke(this,T)[Ee],X=Nn(this,$,Ji).call(this,Me)?Me.__staleWhileFetching:Me;if(X!==void 0&&ye(X,ke(this,x)[Ee],this))return this.get(ke(this,x)[Ee],be)}}forEach(ye,be=this){for(let Ee of Nn(this,$,Sm).call(this)){let Me=ke(this,T)[Ee],X=Nn(this,$,Ji).call(this,Me)?Me.__staleWhileFetching:Me;X!==void 0&&ye.call(be,X,ke(this,x)[Ee],this)}}rforEach(ye,be=this){for(let Ee of Nn(this,$,Em).call(this)){let Me=ke(this,T)[Ee],X=Nn(this,$,Ji).call(this,Me)?Me.__staleWhileFetching:Me;X!==void 0&&ye.call(be,X,ke(this,x)[Ee],this)}}purgeStale(){let ye=!1;for(let be of Nn(this,$,Em).call(this,{allowStale:!0}))ke(this,A).call(this,be)&&(this.delete(ke(this,x)[be]),ye=!0);return ye}dump(){let ye=[];for(let be of Nn(this,$,Sm).call(this,{allowStale:!0})){let Ee=ke(this,x)[be],Me=ke(this,T)[be],X=Nn(this,$,Ji).call(this,Me)?Me.__staleWhileFetching:Me;if(X===void 0||Ee===void 0)continue;let Y={value:X};if(ke(this,U)&&ke(this,B)){Y.ttl=ke(this,U)[be];let J=t.now()-ke(this,B)[be];Y.start=Math.floor(Date.now()-J)}ke(this,L)&&(Y.size=ke(this,L)[be]),ye.unshift([Ee,Y])}return ye}load(ye){this.clear();for(let[be,Ee]of ye){if(Ee.start){let Me=Date.now()-Ee.start;Ee.start=t.now()-Me}this.set(be,Ee.value,Ee)}}set(ye,be,Ee={}){var Be,me,Fe,Xe,ze;if(be===void 0)return this.delete(ye),this;let{ttl:Me=this.ttl,start:X,noDisposeOnSet:Y=this.noDisposeOnSet,sizeCalculation:J=this.sizeCalculation,status:he}=Ee,{noUpdateTTL:ve=this.noUpdateTTL}=Ee,ce=ke(this,oe).call(this,ye,be,Ee.size||0,J);if(this.maxEntrySize&&ce>this.maxEntrySize)return he&&(he.set="miss",he.maxEntrySizeExceeded=!0),this.delete(ye),this;let $e=ke(this,C)===0?void 0:ke(this,w).get(ye);if($e===void 0)$e=ke(this,C)===0?ke(this,P):ke(this,D).length!==0?ke(this,D).pop():ke(this,C)===ke(this,v)?Nn(this,$,$I).call(this,!1):ke(this,C),ke(this,x)[$e]=ye,ke(this,T)[$e]=be,ke(this,w).set(ye,$e),ke(this,R)[ke(this,P)]=$e,ke(this,N)[$e]=ke(this,P),hn(this,P,$e),vg(this,C)._++,ke(this,ne).call(this,$e,ce,he),he&&(he.set="add"),ve=!1;else{Nn(this,$,dC).call(this,$e);let qe=ke(this,T)[$e];if(be!==qe){if(ke(this,V)&&Nn(this,$,Ji).call(this,qe)){qe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ge}=qe;Ge!==void 0&&!Y&&(ke(this,G)&&((Be=ke(this,_))==null||Be.call(this,Ge,ye,"set")),ke(this,W)&&((me=ke(this,F))==null||me.push([Ge,ye,"set"])))}else Y||(ke(this,G)&&((Fe=ke(this,_))==null||Fe.call(this,qe,ye,"set")),ke(this,W)&&((Xe=ke(this,F))==null||Xe.push([qe,ye,"set"])));if(ke(this,Z).call(this,$e),ke(this,ne).call(this,$e,ce,he),ke(this,T)[$e]=be,he){he.set="replace";let Ge=qe&&Nn(this,$,Ji).call(this,qe)?qe.__staleWhileFetching:qe;Ge!==void 0&&(he.oldValue=Ge)}}else he&&(he.set="update")}if(Me!==0&&!ke(this,U)&&Nn(this,$,s7).call(this),ke(this,U)&&(ve||ke(this,Q).call(this,$e,Me,X),he&&ke(this,re).call(this,he,$e)),!Y&&ke(this,W)&&ke(this,F)){let qe=ke(this,F),Ge;for(;Ge=qe==null?void 0:qe.shift();)(ze=ke(this,b))==null||ze.call(this,...Ge)}return this}pop(){var ye;try{for(;ke(this,C);){let be=ke(this,T)[ke(this,I)];if(Nn(this,$,$I).call(this,!0),Nn(this,$,Ji).call(this,be)){if(be.__staleWhileFetching)return be.__staleWhileFetching}else if(be!==void 0)return be}}finally{if(ke(this,W)&&ke(this,F)){let be=ke(this,F),Ee;for(;Ee=be==null?void 0:be.shift();)(ye=ke(this,b))==null||ye.call(this,...Ee)}}}has(ye,be={}){let{updateAgeOnHas:Ee=this.updateAgeOnHas,status:Me}=be,X=ke(this,w).get(ye);if(X!==void 0){let Y=ke(this,T)[X];if(Nn(this,$,Ji).call(this,Y)&&Y.__staleWhileFetching===void 0)return!1;if(ke(this,A).call(this,X))Me&&(Me.has="stale",ke(this,re).call(this,Me,X));else return Ee&&ke(this,K).call(this,X),Me&&(Me.has="hit",ke(this,re).call(this,Me,X)),!0}else Me&&(Me.has="miss");return!1}peek(ye,be={}){let{allowStale:Ee=this.allowStale}=be,Me=ke(this,w).get(ye);if(Me!==void 0&&(Ee||!ke(this,A).call(this,Me))){let X=ke(this,T)[Me];return Nn(this,$,Ji).call(this,X)?X.__staleWhileFetching:X}}async fetch(ye,be={}){let{allowStale:Ee=this.allowStale,updateAgeOnGet:Me=this.updateAgeOnGet,noDeleteOnStaleGet:X=this.noDeleteOnStaleGet,ttl:Y=this.ttl,noDisposeOnSet:J=this.noDisposeOnSet,size:he=0,sizeCalculation:ve=this.sizeCalculation,noUpdateTTL:ce=this.noUpdateTTL,noDeleteOnFetchRejection:$e=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Be=this.allowStaleOnFetchRejection,ignoreFetchAbort:me=this.ignoreFetchAbort,allowStaleOnFetchAbort:Fe=this.allowStaleOnFetchAbort,context:Xe,forceRefresh:ze=!1,status:qe,signal:Ge}=be;if(!ke(this,V))return qe&&(qe.fetch="get"),this.get(ye,{allowStale:Ee,updateAgeOnGet:Me,noDeleteOnStaleGet:X,status:qe});let We={allowStale:Ee,updateAgeOnGet:Me,noDeleteOnStaleGet:X,ttl:Y,noDisposeOnSet:J,size:he,sizeCalculation:ve,noUpdateTTL:ce,noDeleteOnFetchRejection:$e,allowStaleOnFetchRejection:Be,allowStaleOnFetchAbort:Fe,ignoreFetchAbort:me,status:qe,signal:Ge},Lt=ke(this,w).get(ye);if(Lt===void 0){qe&&(qe.fetch="miss");let ut=Nn(this,$,FI).call(this,ye,Lt,We,Xe);return ut.__returned=ut}else{let ut=ke(this,T)[Lt];if(Nn(this,$,Ji).call(this,ut)){let Ht=Ee&&ut.__staleWhileFetching!==void 0;return qe&&(qe.fetch="inflight",Ht&&(qe.returnedStale=!0)),Ht?ut.__staleWhileFetching:ut.__returned=ut}let ft=ke(this,A).call(this,Lt);if(!ze&&!ft)return qe&&(qe.fetch="hit"),Nn(this,$,dC).call(this,Lt),Me&&ke(this,K).call(this,Lt),qe&&ke(this,re).call(this,qe,Lt),ut;let bt=Nn(this,$,FI).call(this,ye,Lt,We,Xe),St=bt.__staleWhileFetching!==void 0&&Ee;return qe&&(qe.fetch=ft?"stale":"refresh",St&&ft&&(qe.returnedStale=!0)),St?bt.__staleWhileFetching:bt.__returned=bt}}get(ye,be={}){let{allowStale:Ee=this.allowStale,updateAgeOnGet:Me=this.updateAgeOnGet,noDeleteOnStaleGet:X=this.noDeleteOnStaleGet,status:Y}=be,J=ke(this,w).get(ye);if(J!==void 0){let he=ke(this,T)[J],ve=Nn(this,$,Ji).call(this,he);return Y&&ke(this,re).call(this,Y,J),ke(this,A).call(this,J)?(Y&&(Y.get="stale"),ve?(Y&&Ee&&he.__staleWhileFetching!==void 0&&(Y.returnedStale=!0),Ee?he.__staleWhileFetching:void 0):(X||this.delete(ye),Y&&Ee&&(Y.returnedStale=!0),Ee?he:void 0)):(Y&&(Y.get="hit"),ve?he.__staleWhileFetching:(Nn(this,$,dC).call(this,J),Me&&ke(this,K).call(this,J),he))}else Y&&(Y.get="miss")}delete(ye){var Ee,Me,X,Y;let be=!1;if(ke(this,C)!==0){let J=ke(this,w).get(ye);if(J!==void 0)if(be=!0,ke(this,C)===1)this.clear();else{ke(this,Z).call(this,J);let he=ke(this,T)[J];Nn(this,$,Ji).call(this,he)?he.__abortController.abort(new Error("deleted")):(ke(this,G)||ke(this,W))&&(ke(this,G)&&((Ee=ke(this,_))==null||Ee.call(this,he,ye,"delete")),ke(this,W)&&((Me=ke(this,F))==null||Me.push([he,ye,"delete"]))),ke(this,w).delete(ye),ke(this,x)[J]=void 0,ke(this,T)[J]=void 0,J===ke(this,P)?hn(this,P,ke(this,N)[J]):J===ke(this,I)?hn(this,I,ke(this,R)[J]):(ke(this,R)[ke(this,N)[J]]=ke(this,R)[J],ke(this,N)[ke(this,R)[J]]=ke(this,N)[J]),vg(this,C)._--,ke(this,D).push(J)}}if(ke(this,W)&&((X=ke(this,F))!=null&&X.length)){let J=ke(this,F),he;for(;he=J==null?void 0:J.shift();)(Y=ke(this,b))==null||Y.call(this,...he)}return be}clear(){var ye,be,Ee;for(let Me of Nn(this,$,Em).call(this,{allowStale:!0})){let X=ke(this,T)[Me];if(Nn(this,$,Ji).call(this,X))X.__abortController.abort(new Error("deleted"));else{let Y=ke(this,x)[Me];ke(this,G)&&((ye=ke(this,_))==null||ye.call(this,X,Y,"delete")),ke(this,W)&&((be=ke(this,F))==null||be.push([X,Y,"delete"]))}}if(ke(this,w).clear(),ke(this,T).fill(void 0),ke(this,x).fill(void 0),ke(this,U)&&ke(this,B)&&(ke(this,U).fill(0),ke(this,B).fill(0)),ke(this,L)&&ke(this,L).fill(0),hn(this,I,0),hn(this,P,0),ke(this,D).length=0,hn(this,E,0),hn(this,C,0),ke(this,W)&&ke(this,F)){let Me=ke(this,F),X;for(;X=Me==null?void 0:Me.shift();)(Ee=ke(this,b))==null||Ee.call(this,...X)}}},v=new WeakMap,y=new WeakMap,_=new WeakMap,b=new WeakMap,S=new WeakMap,C=new WeakMap,E=new WeakMap,w=new WeakMap,x=new WeakMap,T=new WeakMap,R=new WeakMap,N=new WeakMap,I=new WeakMap,P=new WeakMap,D=new WeakMap,F=new WeakMap,L=new WeakMap,B=new WeakMap,U=new WeakMap,G=new WeakMap,V=new WeakMap,W=new WeakMap,$=new WeakSet,s7=function(){let ye=new u(ke(this,v)),be=new u(ke(this,v));hn(this,U,ye),hn(this,B,be),hn(this,Q,(X,Y,J=t.now())=>{if(be[X]=Y!==0?J:0,ye[X]=Y,Y!==0&&this.ttlAutopurge){let he=setTimeout(()=>{ke(this,A).call(this,X)&&this.delete(ke(this,x)[X])},Y+1);he.unref&&he.unref()}}),hn(this,K,X=>{be[X]=ye[X]!==0?t.now():0}),hn(this,re,(X,Y)=>{if(ye[Y]){let J=ye[Y],he=be[Y];X.ttl=J,X.start=he,X.now=Ee||Me();let ve=X.now-he;X.remainingTTL=J-ve}});let Ee=0,Me=()=>{let X=t.now();if(this.ttlResolution>0){Ee=X;let Y=setTimeout(()=>Ee=0,this.ttlResolution);Y.unref&&Y.unref()}return X};this.getRemainingTTL=X=>{let Y=ke(this,w).get(X);if(Y===void 0)return 0;let J=ye[Y],he=be[Y];if(J===0||he===0)return 1/0;let ve=(Ee||Me())-he;return J-ve},hn(this,A,X=>ye[X]!==0&&be[X]!==0&&(Ee||Me())-be[X]>ye[X])},K=new WeakMap,re=new WeakMap,Q=new WeakMap,A=new WeakMap,xSe=function(){let ye=new u(ke(this,v));hn(this,E,0),hn(this,L,ye),hn(this,Z,be=>{hn(this,E,ke(this,E)-ye[be]),ye[be]=0}),hn(this,oe,(be,Ee,Me,X)=>{if(Nn(this,$,Ji).call(this,Ee))return 0;if(!l(Me))if(X){if(typeof X!="function")throw new TypeError("sizeCalculation must be a function");if(Me=X(Ee,be),!l(Me))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Me}),hn(this,ne,(be,Ee,Me)=>{if(ye[be]=Ee,ke(this,y)){let X=ke(this,y)-ye[be];for(;ke(this,E)>X;)Nn(this,$,$I).call(this,!0)}hn(this,E,ke(this,E)+ye[be]),Me&&(Me.entrySize=Ee,Me.totalCalculatedSize=ke(this,E))})},Z=new WeakMap,ne=new WeakMap,oe=new WeakMap,Sm=function*({allowStale:ye=this.allowStale}={}){if(ke(this,C))for(let be=ke(this,P);!(!Nn(this,$,l7).call(this,be)||((ye||!ke(this,A).call(this,be))&&(yield be),be===ke(this,I)));)be=ke(this,N)[be]},Em=function*({allowStale:ye=this.allowStale}={}){if(ke(this,C))for(let be=ke(this,I);!(!Nn(this,$,l7).call(this,be)||((ye||!ke(this,A).call(this,be))&&(yield be),be===ke(this,P)));)be=ke(this,R)[be]},l7=function(ye){return ye!==void 0&&ke(this,w).get(ke(this,x)[ye])===ye},$I=function(ye){var X,Y;let be=ke(this,I),Ee=ke(this,x)[be],Me=ke(this,T)[be];return ke(this,V)&&Nn(this,$,Ji).call(this,Me)?Me.__abortController.abort(new Error("evicted")):(ke(this,G)||ke(this,W))&&(ke(this,G)&&((X=ke(this,_))==null||X.call(this,Me,Ee,"evict")),ke(this,W)&&((Y=ke(this,F))==null||Y.push([Me,Ee,"evict"]))),ke(this,Z).call(this,be),ye&&(ke(this,x)[be]=void 0,ke(this,T)[be]=void 0,ke(this,D).push(be)),ke(this,C)===1?(hn(this,I,hn(this,P,0)),ke(this,D).length=0):hn(this,I,ke(this,R)[be]),ke(this,w).delete(Ee),vg(this,C)._--,be},FI=function(ye,be,Ee,Me){let X=be===void 0?void 0:ke(this,T)[be];if(Nn(this,$,Ji).call(this,X))return X;let Y=new o,{signal:J}=Ee;J==null||J.addEventListener("abort",()=>Y.abort(J.reason),{signal:Y.signal});let he={signal:Y.signal,options:Ee,context:Me},ve=(Xe,ze=!1)=>{let{aborted:qe}=Y.signal,Ge=Ee.ignoreFetchAbort&&Xe!==void 0;if(Ee.status&&(qe&&!ze?(Ee.status.fetchAborted=!0,Ee.status.fetchError=Y.signal.reason,Ge&&(Ee.status.fetchAbortIgnored=!0)):Ee.status.fetchResolved=!0),qe&&!Ge&&!ze)return $e(Y.signal.reason);let We=me;return ke(this,T)[be]===me&&(Xe===void 0?We.__staleWhileFetching?ke(this,T)[be]=We.__staleWhileFetching:this.delete(ye):(Ee.status&&(Ee.status.fetchUpdated=!0),this.set(ye,Xe,he.options))),Xe},ce=Xe=>(Ee.status&&(Ee.status.fetchRejected=!0,Ee.status.fetchError=Xe),$e(Xe)),$e=Xe=>{let{aborted:ze}=Y.signal,qe=ze&&Ee.allowStaleOnFetchAbort,Ge=qe||Ee.allowStaleOnFetchRejection,We=Ge||Ee.noDeleteOnFetchRejection,Lt=me;if(ke(this,T)[be]===me&&(!We||Lt.__staleWhileFetching===void 0?this.delete(ye):qe||(ke(this,T)[be]=Lt.__staleWhileFetching)),Ge)return Ee.status&&Lt.__staleWhileFetching!==void 0&&(Ee.status.returnedStale=!0),Lt.__staleWhileFetching;if(Lt.__returned===Lt)throw Xe},Be=(Xe,ze)=>{var Ge;let qe=(Ge=ke(this,S))==null?void 0:Ge.call(this,ye,X,he);qe&&qe instanceof Promise&&qe.then(We=>Xe(We===void 0?void 0:We),ze),Y.signal.addEventListener("abort",()=>{(!Ee.ignoreFetchAbort||Ee.allowStaleOnFetchAbort)&&(Xe(void 0),Ee.allowStaleOnFetchAbort&&(Xe=We=>ve(We,!0)))})};Ee.status&&(Ee.status.fetchDispatched=!0);let me=new Promise(Be).then(ve,ce),Fe=Object.assign(me,{__abortController:Y,__staleWhileFetching:X,__returned:void 0});return be===void 0?(this.set(ye,Fe,{...he.options,status:void 0}),be=ke(this,w).get(ye)):ke(this,T)[be]=Fe,Fe},Ji=function(ye){if(!ke(this,V))return!1;let be=ye;return!!be&&be instanceof Promise&&be.hasOwnProperty("__staleWhileFetching")&&be.__abortController instanceof o},c7=function(ye,be){ke(this,N)[be]=ye,ke(this,R)[ye]=be},dC=function(ye){ye!==ke(this,P)&&(ye===ke(this,I)?hn(this,I,ke(this,R)[ye]):Nn(this,$,c7).call(this,ke(this,N)[ye],ke(this,R)[ye]),Nn(this,$,c7).call(this,ke(this,P),ye),hn(this,P,ye))},ge);e.LRUCache=f}),Ip=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),u9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ip(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let o=this;i.forEach(function(a){o.push(a)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),d9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ip(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let o=this;i.forEach(function(a){o.push(a)})}clear(){this.q=[],this.i=this.j=0}push(i){let o=this.q.length;if(this.j/o>.5&&this.j+this.i>=o&&o>4096){let a=this.i;for(let s=0;s<a;++s)this.q[s]=this.q[this.j+s];this.j=0,this.q[this.i]=i}else this.q[this.j+this.i]=i;return++this.i}pop(){if(this.i===0)return;let i=this.q[this.j++];return this.i-=1,i}front(){if(this.i!==0)return this.q[this.j]}},r=n;e.default=r}),f9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ip(),n=class extends t.Base{constructor(i=[],o=function(s,l){return s>l?-1:s<l?1:0},a=!0){if(super(),this.v=o,Array.isArray(i))this.C=a?[...i]:i;else{this.C=[];let l=this;i.forEach(function(c){l.C.push(c)})}this.i=this.C.length;let s=this.i>>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let o=this.C[i];for(;i>0;){let a=i-1>>1,s=this.C[a];if(this.v(s,o)<=0)break;this.C[i]=s,i=a}this.C[i]=o}k(i,o){let a=this.C[i];for(;i<o;){let s=i<<1|1,l=s+1,c=this.C[s];if(l<this.i&&this.v(c,this.C[l])>0&&(s=l,c=this.C[l]),this.v(c,a)>=0)break;this.C[i]=c,i=s}this.C[i]=a}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],o=this.C.pop();return this.i-=1,this.i&&(this.C[0]=o,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let o=this.C.indexOf(i);return o<0?!1:(o===0?this.pop():o===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(o,1,this.C.pop()),this.i-=1,this.m(o),this.k(o,this.i>>1)),!0)}updateItem(i){let o=this.C.indexOf(i);return o<0?!1:(this.m(o),this.k(o,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),RW=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ip(),n=class extends t.Container{},r=n;e.default=r}),Np=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),TSe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=Ip(),n=Np(),r=class extends t.ContainerIterator{constructor(i,o){super(o),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),p9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(RW()),n=TSe();function r(s){return s&&s.t?s:{default:s}}var i=class RSe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new RSe(this.o,this.container,this.iteratorType)}},o=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;c<this.i;++c)this.J[c]!==s&&(this.J[l++]=this.J[c]);return this.i=this.J.length=l,this.i}eraseElementByIterator(s){let l=s.o;return s=s.next(),this.eraseElementByPos(l),s}pushBack(s){return this.J.push(s),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l<this.i;++l)if(this.J[l]===s)return new i(l,this);return this.end()}reverse(){this.J.reverse()}unique(){let s=1;for(let l=1;l<this.i;++l)this.J[l]!==this.J[l-1]&&(this.J[s++]=this.J[l]);return this.i=this.J.length=s,this.i}sort(s){this.J.sort(s)}forEach(s){for(let l=0;l<this.i;++l)s(this.J[l],l,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},a=o;e.default=a}),m9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(RW()),n=Ip(),r=Np();function i(l){return l&&l.t?l:{default:l}}var o=class OSe extends n.ContainerIterator{constructor(c,u,d,f){super(f),this.o=c,this.h=u,this.container=d,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new OSe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,d={l,L:c,B:u};c.B=d,u.L=d,c===this.h&&(this.p=d),u===this.h&&(this._=d),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let d=this.p;for(let p=1;p<l;++p)d=d.B;let f=d.B;for(this.i+=u;u--;)d.B={l:c,L:d},d.B.L=d,d=d.B;d.B=f,f.L=d}return this.i}find(l){let c=this.p;for(;c!==this.h;){if(c.l===l)return new o(c,this.h,this);c=c.B}return this.end()}reverse(){if(this.i<=1)return;let l=this.p,c=this._,u=0;for(;u<<1<this.i;){let d=l.l;l.l=c.l,c.l=d,l=l.B,c=c.L,u+=1}}unique(){if(this.i<=1)return this.i;let l=this.p;for(;l!==this.h;){let c=l;for(;c.B!==this.h&&c.l===c.B.l;)c=c.B,this.i-=1;l.B=c.B,l.B.L=l,l=l.B}return this.i}sort(l){if(this.i<=1)return;let c=[];this.forEach(function(d){c.push(d)}),c.sort(l);let u=this.p;c.forEach(function(d){u.l=d,u=u.B})}merge(l){let c=this;if(this.i===0)l.forEach(function(u){c.pushBack(u)});else{let u=this.p;l.forEach(function(d){for(;u!==c.h&&u.l<=d;)u=u.B;c.G(d,u.L)})}return this.i}forEach(l){let c=this.p,u=0;for(;c!==this.h;)l(c.l,u++,this),c=c.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let l=this.p;for(;l!==this.h;)yield l.l,l=l.B}).bind(this)()}},s=a;e.default=s}),h9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(RW()),n=TSe();function r(s){return s&&s.t?s:{default:s}}var i=class ISe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new ISe(this.o,this.container,this.iteratorType)}},o=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let f=0;f<this.P;++f)this.A.push(new Array(this.F));let u=Math.ceil(c/this.F);this.j=this.R=(this.P>>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let d=this;s.forEach(function(f){d.pushBack(f)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c<l;++c)s[c]=new Array(this.F);for(let c=this.j;c<this.P;++c)s[s.length]=this.A[c];for(let c=0;c<this.R;++c)s[s.length]=this.A[c];s[s.length]=[...this.A[this.R]],this.j=l,this.R=s.length-1;for(let c=0;c<l;++c)s[s.length]=new Array(this.F);this.A=s,this.P=s.length}O(s){let l=this.D+s+1,c=l%this.F,u=c-1,d=this.j+(l-c)/this.F;return c===0&&(d-=1),d%=this.P,u<0&&(u+=this.F),{curNodeBucketIndex:d,curNodePointerIndex:u}}clear(){this.A=[new Array(this.F)],this.P=1,this.j=this.R=this.i=0,this.D=this.N=this.F>>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N<this.F-1?this.N+=1:this.R<this.P-1?(this.R+=1,this.N=0):(this.R=0,this.N=0),this.R===this.j&&this.N===this.D&&this.T()),this.i+=1,this.A[this.R][this.N]=s,this.i}popBack(){if(this.i===0)return;let s=this.A[this.R][this.N];return this.i!==1&&(this.N>0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.D<this.F-1?this.D+=1:this.j<this.P-1?(this.j+=1,this.D=0):(this.j=0,this.D=0)),this.i-=1,s}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let d=s;d<this.i;++d)u.push(this.getElementByPos(d));this.cut(s-1);for(let d=0;d<c;++d)this.pushBack(l);for(let d=0;d<u.length;++d)this.pushBack(u[d])}return this.i}cut(s){if(s<0)return this.clear(),0;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.R=l,this.N=c,this.i=s+1,this.i}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;u<this.i;++u)l.push(this.getElementByPos(u));this.cut(s),this.popBack();let c=this;l.forEach(function(u){c.pushBack(u)})}return this.i}eraseElementByValue(s){if(this.i===0)return 0;let l=[];for(let u=0;u<this.i;++u){let d=this.getElementByPos(u);d!==s&&l.push(d)}let c=l.length;for(let u=0;u<c;++u)this.setElementByPos(u,l[u]);return this.cut(c-1)}eraseElementByIterator(s){let l=s.o;return this.eraseElementByPos(l),s=s.next(),s}find(s){for(let l=0;l<this.i;++l)if(this.getElementByPos(l)===s)return new i(l,this);return this.end()}reverse(){let s=0,l=this.i-1;for(;s<l;){let c=this.getElementByPos(s);this.setElementByPos(s,this.getElementByPos(l)),this.setElementByPos(l,c),s+=1,l-=1}}unique(){if(this.i<=1)return this.i;let s=1,l=this.getElementByPos(0);for(let c=1;c<this.i;++c){let u=this.getElementByPos(c);u!==l&&(l=u,this.setElementByPos(s++,u))}for(;this.i>s;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c<this.i;++c)l.push(this.getElementByPos(c));l.sort(s);for(let c=0;c<this.i;++c)this.setElementByPos(c,l[c])}shrinkToFit(){if(this.i===0)return;let s=[];this.forEach(function(l){s.push(l)}),this.P=Math.max(Math.ceil(this.i/this.F),1),this.i=this.j=this.R=this.D=this.N=0,this.A=[];for(let l=0;l<this.P;++l)this.A.push(new Array(this.F));for(let l=0;l<s.length;++l)this.pushBack(s[l])}forEach(s){for(let l=0;l<this.i;++l)s(this.getElementByPos(l),l,this)}[Symbol.iterator](){return(function*(){for(let s=0;s<this.i;++s)yield this.getElementByPos(s)}).bind(this)()}},a=o;e.default=a}),g9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,o=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=o,o&&(o.tt=this),i}se(){let r=this.tt,i=this.U,o=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=o,o&&(o.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),NSe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=g9e(),n=Ip(),r=Np(),i=class extends n.Container{constructor(a=function(l,c){return l<c?-1:l>c?1:0},s=!1){super(),this.Y=void 0,this.v=a,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let d=this.ne(l,c,u);if(d){let f=d.tt;for(;f!==this.h;)f.rt+=1,f=f.tt;let p=this.he(d);if(p){let{parentNode:h,grandParent:g,curNode:v}=p;h.ie(),g.ie(),v.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let d=this.ne(l,c,u);return d&&this.he(d),this.i},this.V=this.fe),this.h=new this.re}X(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)a=a.W;else if(c>0)l=a,a=a.U;else return a}return l}Z(a,s){let l=this.h;for(;a;)this.v(a.u,s)<=0?a=a.W:(l=a,a=a.U);return l}$(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)l=a,a=a.W;else if(c>0)a=a.U;else return a}return l}rr(a,s){let l=this.h;for(;a;)this.v(a.u,s)<0?(l=a,a=a.W):a=a.U;return l}ue(a){for(;;){let s=a.tt;if(s===this.h)return;if(a.ee===1){a.ee=0;return}if(a===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,a=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,a=s)}}}fe(a){if(this.i===1)return this.clear(),this.h;let s=a;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[a.u,s.u]=[s.u,a.u],[a.l,s.l]=[s.l,a.l],a=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(a,s){return a===void 0?!1:this.oe(a.U,s)||s(a)?!0:this.oe(a.W,s)}he(a){for(;;){let s=a.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.W){if(a.ee=0,a.U&&(a.U.tt=s),a.W&&(a.W.tt=l),s.W=a.U,l.U=a.W,a.U=s,a.W=l,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.U){if(a.ee=0,a.U&&(a.U.tt=l),a.W&&(a.W.tt=s),l.W=a.U,s.U=a.W,a.U=l,a.W=s,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(a,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(a,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,d=this.v(u.u,a);if(d===0){u.l=s;return}else if(d>0)u.U=new this.re(a,s),u.U.tt=u,c=u.U,this.h.U=c;else{let f=this.h.W,p=this.v(f.u,a);if(p===0){f.l=s;return}else if(p<0)f.W=new this.re(a,s),f.W.tt=f,c=f.W,this.h.W=c;else{if(l!==void 0){let h=l.o;if(h!==this.h){let g=this.v(h.u,a);if(g===0){h.l=s;return}else if(g>0){let v=h.L(),y=this.v(v.u,a);if(y===0){v.l=s;return}else y<0&&(c=new this.re(a,s),v.W===void 0?(v.W=c,c.tt=v):(h.U=c,c.tt=h))}}}if(c===void 0)for(c=this.Y;;){let h=this.v(c.u,a);if(h>0){if(c.U===void 0){c.U=new this.re(a,s),c.U.tt=c,c=c.U;break}c=c.U}else if(h<0){if(c.W===void 0){c.W=new this.re(a,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(a,s){for(;a;){let l=this.v(a.u,s);if(l<0)a=a.W;else if(l>0)a=a.U;else return a}return a||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(a,s){let l=a.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return a===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(a){if(this.i===0)return!1;let s=this.I(this.Y,a);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(a){let s=a.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return a.iteratorType===0?l&&a.next():(!l||s.U===void 0)&&a.next(),this.V(s),a}forEach(a){let s=0;for(let l of this)a(l,s++,this)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===a){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let a=function(s){return s?Math.max(a(s.U),a(s.W))+1:0};return a(this.Y)}},o=i;e.default=o}),MSe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Ip(),n=Np(),r=class extends t.ContainerIterator{constructor(o,a,s){super(s),this.o=o,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let o=this.o,a=this.h.tt;if(o===this.h)return a?a.rt-1:0;let s=0;for(o.U&&(s+=o.U.rt);o!==a;){let l=o.tt;o===l.W&&(s+=1,l.U&&(s+=l.U.rt)),o=l}return s}},i=r;e.default=i}),v9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(NSe()),n=i(MSe()),r=Np();function i(l){return l&&l.t?l:{default:l}}var o=class ASe extends n.default{constructor(c,u,d,f){super(c,u,f),this.container=d}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new ASe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let d=this;l.forEach(function(f){d.insert(f)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new o(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new o(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new o(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new o(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new o(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),_9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(NSe()),n=i(MSe()),r=Np();function i(l){return l&&l.t?l:{default:l}}var o=class PSe extends n.default{constructor(c,u,d,f){super(c,u,f),this.container=d}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,d){if(d==="0")return c.o.u;if(d==="1")return c.o.l},set(u,d,f){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=f,!0}})}copy(){return new PSe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let d=this;l.forEach(function(f){d.setElement(f[0],f[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new o(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new o(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new o(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new o(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new o(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),DSe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),kSe=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=Ip(),n=i(DSe()),r=Np();function i(s){return s&&s.t?s:{default:s}}var o=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=o;var a=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let d=s[this.HASH_TAG];if(d!==void 0)return this.H[d].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let d=this.g[s];if(d)return d.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=a}),y9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=kSe(),n=Np(),r=class LSe extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new LSe(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(a=[]){super();let s=this;a.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,s){return this.M(a,void 0,s)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=this.p;for(;a--;)s=s.B;return s.u}find(a,s){let l=this.I(a,s);return new r(l,this.h,this)}forEach(a){let s=0,l=this.p;for(;l!==this.h;)a(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}},o=i;e.default=o}),b9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=kSe(),n=i(DSe()),r=Np();function i(l){return l&&l.t?l:{default:l}}var o=class $Se extends t.HashContainerIterator{constructor(c,u,d,f){super(c,u,f),this.container=d}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,d){if(d==="0")return c.o.u;if(d==="1")return c.o.l},set(u,d,f){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=f,!0}})}copy(){return new $Se(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let d=l[this.HASH_TAG];return d!==void 0?this.H[d].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new o(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=a;e.default=s}),S9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=d(u9e()),n=d(d9e()),r=d(f9e()),i=d(p9e()),o=d(m9e()),a=d(h9e()),s=d(v9e()),l=d(_9e()),c=d(y9e()),u=d(b9e());function d(f){return f&&f.t?f:{default:f}}}),E9e=an((e,t)=>{Kt(),Xt(),Qt();var n=S9e().OrderedSet,r=_p()("number-allocator:trace"),i=_p()("number-allocator:error");function o(s,l){this.low=s,this.high=l}o.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},o.prototype.compare=function(s){return this.low<s.low&&this.high<s.low?-1:s.low<this.low&&s.high<this.low?1:0};function a(s,l){if(!(this instanceof a))return new a(s,l);this.min=s,this.max=l,this.ss=new n([],(c,u)=>c.compare(u)),r("Create"),this.clear()}a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new o(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},a.prototype.use=function(s){let l=new o(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,d=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new o(u+1,d)),r("use():"+s),!0):d===s?(this.ss.updateKeyByIterator(c,new o(u,d-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new o(s+1,d)),this.ss.insert(new o(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},a.prototype.free=function(s){if(s<this.min||s>this.max){i("free():"+s+" is out of range");return}let l=new o(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new o(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new o(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,d=c.pointer.high;c.pre();let f=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new o(f,d))):this.ss.updateKeyByIterator(c,new o(f,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new o(s,d))):this.ss.insert(l)}r("free():"+s)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new o(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=a}),FSe=an((e,t)=>{Kt(),Xt(),Qt();var n=E9e();t.exports.NumberAllocator=n}),C9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=c9e(),n=FSe(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,o){if(o===0||o>this.max)return!1;let a=this.aliasToTopic.get(o);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(o,i),this.topicToAlias[i]=o,this.numberAllocator.use(o),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let o=this.topicToAlias[i];return typeof o<"u"&&this.aliasToTopic.get(o),o}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),w9e=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=D2(),r=t(C9e()),i=Z0(),o=(a,s)=>{a.log("_handleConnack");let{options:l}=a,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){a.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(a.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)a.reconnecting=!1,a._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};e.default=o}),x9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let o=typeof i<"u"?i:n.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,o):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return o(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,o)}))})};e.default=t}),T9e=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(a9e()),r=t(l9e()),i=t(w9e()),o=t(D2()),a=t(x9e()),s=(l,c,u)=>{let{options:d}=l;if(d.protocolVersion===5&&d.properties&&d.properties.maximumPacketSize&&d.properties.maximumPacketSize<c.length)return l.emit("error",new Error(`exceeding packets size ${c.cmd}`)),l.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),l;switch(l.log("_handlePacket :: emitting packetreceive"),l.emit("packetreceive",c),c.cmd){case"publish":(0,n.default)(l,c,u);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":l.reschedulePing(),(0,o.default)(l,c),u();break;case"pubrel":l.reschedulePing(),(0,a.default)(l,c,u);break;case"connack":(0,i.default)(l,c),u();break;case"auth":l.reschedulePing(),(0,r.default)(l,c),u();break;case"pingresp":l.log("_handlePacket :: received pingresp"),l.reschedulePing(!0),u();break;case"disconnect":l.emit("disconnect",c),u();break;default:l.log("_handlePacket :: unknown command"),u();break}};e.default=s}),R9e=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((X0(),Ai(C_))),r=Z0(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),k2=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var o;return typeof window<"u"?typeof navigator<"u"&&((o=navigator.userAgent)===null||o===void 0?void 0:o.toLowerCase().indexOf(" electron/"))>-1&&vi!=null&&vi.versions?!Object.prototype.hasOwnProperty.call(vi.versions,"electron"):typeof window.document<"u":!1},n=()=>{var o,a;return!!(typeof self=="object"&&!((a=(o=self==null?void 0:self.constructor)===null||o===void 0?void 0:o.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),O9e=an((e,t)=>{Kt(),Xt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(p){return function(h){var g=p(h);return h.add(g),g}},i=function(p){return function(h,g){return p.set(h,g),g}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,h){return function(g){var v=h.get(g),y=v===void 0?g.size:v<s?v+1:0;if(!g.has(y))return p(g,y);if(g.size<a){for(;g.has(y);)y=Math.floor(Math.random()*s);return p(g,y)}if(g.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*o);return p(g,y)}},c=new WeakMap,u=i(c),d=l(u,c),f=r(d);n.addUniqueNumber=f,n.generateUniqueNumber=d})}),I9e=an((e,t)=>{Kt(),Xt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,O9e()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},o=function(s){return s.error===null&&typeof s.id=="number"},a=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,d=new Worker(s);d.addEventListener("message",function(v){var y=v.data;if(i(y)){var _=y.params,b=_.timerId,S=_.timerType;if(S==="interval"){var C=l.get(b);if(typeof C=="number"){var E=u.get(C);if(E===void 0||E.timerId!==b||E.timerType!==S)throw new Error("The timer is in an undefined state.")}else if(typeof C<"u")C();else throw new Error("The timer is in an undefined state.")}else if(S==="timeout"){var w=c.get(b);if(typeof w=="number"){var x=u.get(w);if(x===void 0||x.timerId!==b||x.timerType!==S)throw new Error("The timer is in an undefined state.")}else if(typeof w<"u")w(),c.delete(b);else throw new Error("The timer is in an undefined state.")}}else if(o(y)){var T=y.id,R=u.get(T);if(R===void 0)throw new Error("The timer is in an undefined state.");var N=R.timerId,I=R.timerType;u.delete(T),I==="interval"?l.delete(N):c.delete(N)}else{var P=y.error.message;throw new Error(P)}});var f=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"interval"}),l.set(v,y),d.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"interval"}})},p=function(v){var y=r.generateUniqueNumber(u);u.set(y,{timerId:v,timerType:"timeout"}),c.set(v,y),d.postMessage({id:y,method:"clear",params:{timerId:v,timerType:"timeout"}})},h=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=r.generateUniqueNumber(l);return l.set(_,function(){v(),typeof l.get(_)=="function"&&d.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:_,timerType:"interval"}})}),d.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:_,timerType:"interval"}}),_},g=function(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=r.generateUniqueNumber(c);return c.set(_,v),d.postMessage({id:null,method:"set",params:{delay:y,now:performance.now(),timerId:_,timerType:"timeout"}}),_};return{clearInterval:f,clearTimeout:p,setInterval:h,setTimeout:g}};n.load=a})}),N9e=an((e,t)=>{Kt(),Xt(),Qt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,I9e()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(d,f){var p=null;return function(){if(p!==null)return p;var h=new Blob([f],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(h);return p=d(g),setTimeout(function(){return URL.revokeObjectURL(g)}),p}},o=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=i(r.load,o),s=function(d){return a().clearInterval(d)},l=function(d){return a().clearTimeout(d)},c=function(){var d;return(d=a()).setInterval.apply(d,arguments)},u=function(){var d;return(d=a()).setTimeout.apply(d,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),M9e=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__createBinding||(Object.create?function(c,u,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(c,f,p)}:function(c,u,d,f){f===void 0&&(f=d),c[f]=u[d]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var d in c)d!=="default"&&Object.prototype.hasOwnProperty.call(c,d)&&t(u,c,d);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(k2()),o=N9e(),a={set:o.setInterval,clear:o.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return a;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?a:s}};e.default=l}),BSe=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(M9e()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,o){this.destroyed=!1,this.client=i,this.timer=typeof o=="object"&&"set"in o&&"clear"in o?o:(0,n.default)(o),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),u7=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__createBinding||(Object.create?function(C,E,w,x){x===void 0&&(x=w);var T=Object.getOwnPropertyDescriptor(E,w);(!T||("get"in T?!E.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return E[w]}}),Object.defineProperty(C,x,T)}:function(C,E,w,x){x===void 0&&(x=w),C[x]=E[w]}),n=e&&e.__setModuleDefault||(Object.create?function(C,E){Object.defineProperty(C,"default",{enumerable:!0,value:E})}:function(C,E){C.default=E}),r=e&&e.__importStar||function(C){if(C&&C.__esModule)return C;var E={};if(C!=null)for(var w in C)w!=="default"&&Object.prototype.hasOwnProperty.call(C,w)&&t(E,C,w);return n(E,C),E},i=e&&e.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(b7e()),a=i(n9e()),s=i(ESe()),l=w_(),c=i(i9e()),u=r(o9e()),d=i(_p()),f=i(CSe()),p=i(T9e()),h=Z0(),g=R9e(),v=i(BSe()),y=r(k2()),_=globalThis.setImmediate||((...C)=>{let E=C.shift();(0,h.nextTick)(()=>{E(...C)})}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},S=class d7 extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(E,w){super(),this.options=w||{};for(let x in b)typeof this.options[x]>"u"?this.options[x]=b[x]:this.options[x]=w[x];this.log=this.options.log||(0,d.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",d7.VERSION),y.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",y.default?"browser":"node"),this.log("MqttClient :: options.protocol",w.protocol),this.log("MqttClient :: options.protocolVersion",w.protocolVersion),this.log("MqttClient :: options.username",w.username),this.log("MqttClient :: options.keepalive",w.keepalive),this.log("MqttClient :: options.reconnectPeriod",w.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",w.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",w.properties?w.properties.topicAliasMaximum:void 0),this.options.clientId=typeof w.clientId=="string"?w.clientId:d7.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=w.protocolVersion===5&&w.customHandleAcks?w.customHandleAcks:(...x)=>{x[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=E,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=w.outgoingStore||new f.default,this.incomingStore=w.incomingStore||new f.default,this.queueQoSZero=w.queueQoSZero===void 0?!0:w.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,w.properties&&w.properties.topicAliasMaximum>0&&(w.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(w.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:x}=this,T=()=>{let R=x.shift();this.log("deliver :: entry %o",R);let N=null;if(!R){this._resubscribe();return}N=R.packet,this.log("deliver :: call _sendPacket for %o",N);let I=!0;N.messageId&&N.messageId!==0&&(this.messageIdProvider.register(N.messageId)||(I=!1)),I?this._sendPacket(N,P=>{R.cb&&R.cb(P),T()}):(this.log("messageId: %d has already used. The message is skipped and removed.",N.messageId),T())};this.log("connect :: sending queued packets"),T()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(E,w){w()}handleMessage(E,w){w()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var E;let w=new l.Writable,x=a.default.parser(this.options),T=null,R=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new f.default,this.outgoingStore=this.options.outgoingStore||new f.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),x.on("packet",F=>{this.log("parser :: on packet push to packets array."),R.push(F)});let N=()=>{this.log("work :: getting next packet in queue");let F=R.shift();if(F)this.log("work :: packet pulled from queue"),(0,p.default)(this,F,I);else{this.log("work :: no packets in queue");let L=T;T=null,this.log("work :: done flag is %s",!!L),L&&L()}},I=()=>{if(R.length)(0,h.nextTick)(N);else{let F=T;T=null,F()}};w._write=(F,L,B)=>{T=B,this.log("writable stream :: parsing buffer"),x.parse(F),N()};let P=F=>{this.log("streamErrorHandler :: error",F.message),F.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",F)):this.noop(F)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(w),this.stream.on("error",P),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let D={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(D.will=Object.assign(Object.assign({},this.options.will),{payload:(E=this.options.will)===null||E===void 0?void 0:E.payload})),this.topicAliasRecv&&(D.properties||(D.properties={}),this.topicAliasRecv&&(D.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(D),x.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let F=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(F)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(E,w,x,T){this.log("publish :: message `%s` to topic `%s`",w,E);let{options:R}=this;typeof x=="function"&&(T=x,x=null),x=x||{},x=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),x);let{qos:N,retain:I,dup:P,properties:D,cbStorePut:F}=x;if(this._checkDisconnecting(T))return this;let L=()=>{let B=0;if((N===1||N===2)&&(B=this._nextId(),B===null))return this.log("No messageId left"),!1;let U={cmd:"publish",topic:E,payload:w,qos:N,retain:I,messageId:B,dup:P};switch(R.protocolVersion===5&&(U.properties=D),this.log("publish :: qos",N),N){case 1:case 2:this.outgoing[U.messageId]={volatile:!1,cb:T||this.noop},this.log("MqttClient:publish: packet cmd: %s",U.cmd),this._sendPacket(U,void 0,F);break;default:this.log("MqttClient:publish: packet cmd: %s",U.cmd),this._sendPacket(U,T,F);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!L())&&this._storeProcessingQueue.push({invoke:L,cbStorePut:x.cbStorePut,callback:T}),this}publishAsync(E,w,x){return new Promise((T,R)=>{this.publish(E,w,x,(N,I)=>{N?R(N):T(I)})})}subscribe(E,w,x){let T=this.options.protocolVersion;typeof w=="function"&&(x=w),x=x||this.noop;let R=!1,N=[];typeof E=="string"?(E=[E],N=E):Array.isArray(E)?N=E:typeof E=="object"&&(R=E.resubscribe,delete E.resubscribe,N=Object.keys(E));let I=u.validateTopics(N);if(I!==null)return _(x,new Error(`Invalid topic ${I}`)),this;if(this._checkDisconnecting(x))return this.log("subscribe: discconecting true"),this;let P={qos:0};T===5&&(P.nl=!1,P.rap=!1,P.rh=0),w=Object.assign(Object.assign({},P),w);let D=w.properties,F=[],L=(U,G)=>{if(G=G||w,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,U)||this._resubscribeTopics[U].qos<G.qos||R){let V={topic:U,qos:G.qos};T===5&&(V.nl=G.nl,V.rap=G.rap,V.rh=G.rh,V.properties=D),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",V.topic,V.qos),F.push(V)}};if(Array.isArray(E)?E.forEach(U=>{this.log("subscribe: array topic %s",U),L(U)}):Object.keys(E).forEach(U=>{this.log("subscribe: object topic %s, %o",U,E[U]),L(U,E[U])}),!F.length)return x(null,[]),this;let B=()=>{let U=this._nextId();if(U===null)return this.log("No messageId left"),!1;let G={cmd:"subscribe",subscriptions:F,messageId:U};if(D&&(G.properties=D),this.options.resubscribe){this.log("subscribe :: resubscribe true");let V=[];F.forEach(W=>{if(this.options.reconnectPeriod>0){let $={qos:W.qos};T===5&&($.nl=W.nl||!1,$.rap=W.rap||!1,$.rh=W.rh||0,$.properties=W.properties),this._resubscribeTopics[W.topic]=$,V.push(W.topic)}}),this.messageIdToTopic[G.messageId]=V}return this.outgoing[G.messageId]={volatile:!0,cb(V,W){if(!V){let{granted:$}=W;for(let H=0;H<$.length;H+=1)F[H].qos=$[H]}x(V,F,W)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(G),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!B())&&this._storeProcessingQueue.push({invoke:B,callback:x}),this}subscribeAsync(E,w){return new Promise((x,T)=>{this.subscribe(E,w,(R,N)=>{R?T(R):x(N)})})}unsubscribe(E,w,x){typeof E=="string"&&(E=[E]),typeof w=="function"&&(x=w),x=x||this.noop;let T=u.validateTopics(E);if(T!==null)return _(x,new Error(`Invalid topic ${T}`)),this;if(this._checkDisconnecting(x))return this;let R=()=>{let N=this._nextId();if(N===null)return this.log("No messageId left"),!1;let I={cmd:"unsubscribe",messageId:N,unsubscriptions:[]};return typeof E=="string"?I.unsubscriptions=[E]:Array.isArray(E)&&(I.unsubscriptions=E),this.options.resubscribe&&I.unsubscriptions.forEach(P=>{delete this._resubscribeTopics[P]}),typeof w=="object"&&w.properties&&(I.properties=w.properties),this.outgoing[I.messageId]={volatile:!0,cb:x},this.log("unsubscribe: call _sendPacket"),this._sendPacket(I),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!R())&&this._storeProcessingQueue.push({invoke:R,callback:x}),this}unsubscribeAsync(E,w){return new Promise((x,T)=>{this.unsubscribe(E,w,(R,N)=>{R?T(R):x(N)})})}end(E,w,x){this.log("end :: (%s)",this.options.clientId),(E==null||typeof E!="boolean")&&(x=x||w,w=E,E=!1),typeof w!="object"&&(x=x||w,w=null),this.log("end :: cb? %s",!!x),(!x||typeof x!="function")&&(x=this.noop);let T=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(N=>{this.outgoingStore.close(I=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),x){let P=N||I;this.log("end :: closeStores: invoking callback with args"),x(P)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},R=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,E),this._cleanUp(E,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,h.nextTick)(T)},w)};return this.disconnecting?(x(),this):(this._clearReconnect(),this.disconnecting=!0,!E&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,R,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),R()),this)}endAsync(E,w){return new Promise((x,T)=>{this.end(E,w,R=>{R?T(R):x()})})}removeOutgoingMessage(E){if(this.outgoing[E]){let{cb:w}=this.outgoing[E];this._removeOutgoingAndStoreMessage(E,()=>{w(new Error("Message removed"))})}return this}reconnect(E){this.log("client reconnect");let w=()=>{E?(this.options.incomingStore=E.incomingStore,this.options.outgoingStore=E.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new f.default,this.outgoingStore=this.options.outgoingStore||new f.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=w:w(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(E=>{this.outgoing[E].volatile&&typeof this.outgoing[E].cb=="function"&&(this.outgoing[E].cb(new Error("Connection closed")),delete this.outgoing[E])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(E=>{typeof this.outgoing[E].cb=="function"&&(this.outgoing[E].cb(new Error("Connection closed")),delete this.outgoing[E])}))}_removeTopicAliasAndRecoverTopicName(E){let w;E.properties&&(w=E.properties.topicAlias);let x=E.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",w,x),x.length===0){if(typeof w>"u")return new Error("Unregistered Topic Alias");if(x=this.topicAliasSend.getTopicByAlias(w),typeof x>"u")return new Error("Unregistered Topic Alias");E.topic=x}w&&delete E.properties.topicAlias}_checkDisconnecting(E){return this.disconnecting&&(E&&E!==this.noop?E(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(E,w,x={}){if(w&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",w)),this.log("_cleanUp :: forced? %s",E),E)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let T=Object.assign({cmd:"disconnect"},x);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(T,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),_(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),w&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",w),w())}_storeAndSend(E,w,x){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",E.cmd);let T=E,R;if(T.cmd==="publish"&&(T=(0,c.default)(E),R=this._removeTopicAliasAndRecoverTopicName(T),R))return w&&w(R);this.outgoingStore.put(T,N=>{if(N)return w&&w(N);x(),this._writePacket(E,w)})}_applyTopicAlias(E){if(this.options.protocolVersion===5&&E.cmd==="publish"){let w;E.properties&&(w=E.properties.topicAlias);let x=E.topic.toString();if(this.topicAliasSend)if(w){if(x.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",x,w),!this.topicAliasSend.put(x,w)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",x,w),new Error("Sending Topic Alias out of range")}else x.length!==0&&(this.options.autoAssignTopicAlias?(w=this.topicAliasSend.getAliasByTopic(x),w?(E.topic="",E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:w}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",x,w)):(w=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(x,w),E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:w}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",x,w))):this.options.autoUseTopicAlias&&(w=this.topicAliasSend.getAliasByTopic(x),w&&(E.topic="",E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:w}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",x,w))));else if(w)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",x,w),new Error("Sending Topic Alias out of range")}}_noop(E){this.log("noop ::",E)}_writePacket(E,w){this.log("_writePacket :: packet: %O",E),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",E),this.log("_writePacket :: writing to stream");let x=a.default.writeToStream(E,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",x),!x&&w&&w!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",w)):w&&(this.log("_writePacket :: invoking cb"),w())}_sendPacket(E,w,x,T){this.log("_sendPacket :: (%s) :: start",this.options.clientId),x=x||this.noop,w=w||this.noop;let R=this._applyTopicAlias(E);if(R){w(R);return}if(!this.connected){if(E.cmd==="auth"){this._writePacket(E,w);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(E,w,x);return}if(T){this._writePacket(E,w);return}switch(E.cmd){case"publish":break;case"pubrel":this._storeAndSend(E,w,x);return;default:this._writePacket(E,w);return}switch(E.qos){case 2:case 1:this._storeAndSend(E,w,x);break;case 0:default:this._writePacket(E,w);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(E,w,x){this.log("_storePacket :: packet: %o",E),this.log("_storePacket :: cb? %s",!!w),x=x||this.noop;let T=E;if(T.cmd==="publish"){T=(0,c.default)(E);let N=this._removeTopicAliasAndRecoverTopicName(T);if(N)return w&&w(N)}let R=T.qos||0;R===0&&this.queueQoSZero||T.cmd!=="publish"?this.queue.push({packet:T,cb:w}):R>0?(w=this.outgoing[T.messageId]?this.outgoing[T.messageId].cb:null,this.outgoingStore.put(T,N=>{if(N)return w&&w(N);x()})):w&&w(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(E=!1){this.keepaliveManager&&this.options.keepalive&&(E||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let E=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&E.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let w=0;w<E.length;w++){let x={};x[E[w]]=this._resubscribeTopics[E[w]],x.resubscribe=!0,this.subscribe(x,{properties:x[E[w]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(E){if(this.disconnected){this.emit("connect",E);return}this.connackPacket=E,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let w=()=>{let x=this.outgoingStore.createStream(),T=()=>{x.destroy(),x=null,this._flushStoreProcessingQueue(),R()},R=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",T),x.on("error",I=>{R(),this._flushStoreProcessingQueue(),this.removeListener("close",T),this.emit("error",I)});let N=()=>{if(!x)return;let I=x.read(1),P;if(!I){x.once("readable",N);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[I.messageId]){N();return}!this.disconnecting&&!this.reconnectTimer?(P=this.outgoing[I.messageId]?this.outgoing[I.messageId].cb:null,this.outgoing[I.messageId]={volatile:!1,cb(D,F){P&&P(D,F),N()}},this._packetIdsDuringStoreProcessing[I.messageId]=!0,this.messageIdProvider.register(I.messageId)?this._sendPacket(I,void 0,void 0,!0):this.log("messageId: %d has already used.",I.messageId)):x.destroy&&x.destroy()};x.on("end",()=>{let I=!0;for(let P in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[P]){I=!1;break}this.removeListener("close",T),I?(R(),this._invokeAllStoreProcessingQueue(),this.emit("connect",E)):w()}),N()};w()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let E=this._storeProcessingQueue[0];if(E&&E.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let E of this._storeProcessingQueue)E.cbStorePut&&E.cbStorePut(new Error("Connection closed")),E.callback&&E.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(E,w){delete this.outgoing[E],this.outgoingStore.del({messageId:E},(x,T)=>{w(x,T),this.messageIdProvider.deallocate(E),this._invokeStoreProcessingQueue()})}};S.VERSION=h.MQTTJS_VERSION,e.default=S}),A9e=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=FSe(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Eg(e){throw new RangeError(jSe[e])}function Hte(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(o,a){let s=[],l=o.length;for(;l--;)s[l]=a(o[l]);return s}((e=e.replace(USe,".")).split("."),t).join(".");return r+i}function zte(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let o=e.charCodeAt(n++);(64512&o)==56320?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var Vte,Gte,USe,jSe,_u,$R,d4,f4,p4,m4,Cm,P9e=Qa(()=>{Kt(),Xt(),Qt(),Vte=/^xn--/,Gte=/[^\0-\x7E]/,USe=/[\x2E\u3002\uFF0E\uFF61]/g,jSe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_u=Math.floor,$R=String.fromCharCode,d4=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},f4=function(e,t,n){let r=0;for(e=n?_u(e/700):e>>1,e+=_u(e/t);e>455;r+=36)e=_u(e/35);return _u(r+36*e/(e+38))},p4=function(e){let t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let l=0;l<a;++l)e.charCodeAt(l)>=128&&Eg("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){let c=r;for(let d=1,f=36;;f+=36){l>=n&&Eg("invalid-input");let p=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(p>=36||p>_u((2147483647-r)/d))&&Eg("overflow"),r+=p*d;let h=f<=o?1:f>=o+26?26:f-o;if(p<h)break;let g=36-h;d>_u(2147483647/g)&&Eg("overflow"),d*=g}let u=t.length+1;o=f4(r-c,u,c==0),_u(r/u)>2147483647-i&&Eg("overflow"),i+=_u(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},m4=function(e){let t=[],n=(e=zte(e)).length,r=128,i=0,o=72;for(let l of e)l<128&&t.push($R(l));let a=t.length,s=a;for(a&&t.push("-");s<n;){let l=2147483647;for(let u of e)u>=r&&u<l&&(l=u);let c=s+1;l-r>_u((2147483647-i)/c)&&Eg("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u<r&&++i>2147483647&&Eg("overflow"),u==r){let d=i;for(let f=36;;f+=36){let p=f<=o?1:f>=o+26?26:f-o;if(d<p)break;let h=d-p,g=36-p;t.push($R(d4(p+h%g,0))),d=_u(h/g)}t.push($R(d4(d,0))),o=f4(i,c,s==a),i=0,++s}++i,++r}return t.join("")},Cm={version:"2.1.0",ucs2:{decode:zte,encode:e=>String.fromCodePoint(...e)},decode:p4,encode:m4,toASCII:function(e){return Hte(e,function(t){return Gte.test(t)?"xn--"+m4(t):t})},toUnicode:function(e){return Hte(e,function(t){return Vte.test(t)?p4(t.slice(4).toLowerCase()):t})}},Cm.decode,Cm.encode,Cm.toASCII,Cm.toUnicode,Cm.ucs2,Cm.version});function D9e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Wte,ly,Yte,Od,k9e=Qa(()=>{Kt(),Xt(),Qt(),Wte=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&typeof r.maxKeys=="number"&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var c,u,d,f,p=e[l].replace(o,"%20"),h=p.indexOf(n);h>=0?(c=p.substr(0,h),u=p.substr(h+1)):(c=p,u=""),d=decodeURIComponent(c),f=decodeURIComponent(u),D9e(i,d)?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i},ly=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Yte=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var o=encodeURIComponent(ly(i))+n;return Array.isArray(e[i])?e[i].map(function(a){return o+encodeURIComponent(ly(a))}).join(t):o+encodeURIComponent(ly(e[i]))}).join(t):r?encodeURIComponent(ly(r))+n+encodeURIComponent(ly(e)):""},Od={},Od.decode=Od.parse=Wte,Od.encode=Od.stringify=Yte,Od.decode,Od.encode,Od.parse,Od.stringify});function f7(){throw new Error("setTimeout has not been defined")}function p7(){throw new Error("clearTimeout has not been defined")}function HSe(e){if(Bf===setTimeout)return setTimeout(e,0);if((Bf===f7||!Bf)&&setTimeout)return Bf=setTimeout,setTimeout(e,0);try{return Bf(e,0)}catch{try{return Bf.call(null,e,0)}catch{return Bf.call(this||bv,e,0)}}}function L9e(){Sv&&Jg&&(Sv=!1,Jg.length?Hd=Jg.concat(Hd):BC=-1,Hd.length&&zSe())}function zSe(){if(!Sv){var e=HSe(L9e);Sv=!0;for(var t=Hd.length;t;){for(Jg=Hd,Hd=[];++BC<t;)Jg&&Jg[BC].run();BC=-1,t=Hd.length}Jg=null,Sv=!1,function(n){if(Uf===clearTimeout)return clearTimeout(n);if((Uf===p7||!Uf)&&clearTimeout)return Uf=clearTimeout,clearTimeout(n);try{Uf(n)}catch{try{return Uf.call(null,n)}catch{return Uf.call(this||bv,n)}}}(e)}}function qte(e,t){(this||bv).fun=e,(this||bv).array=t}function Tf(){}var Kte,Bf,Uf,bv,bo,Jg,Hd,Sv,BC,fo,$9e=Qa(()=>{Kt(),Xt(),Qt(),bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,bo=Kte={},function(){try{Bf=typeof setTimeout=="function"?setTimeout:f7}catch{Bf=f7}try{Uf=typeof clearTimeout=="function"?clearTimeout:p7}catch{Uf=p7}}(),Hd=[],Sv=!1,BC=-1,bo.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Hd.push(new qte(e,t)),Hd.length!==1||Sv||HSe(zSe)},qte.prototype.run=function(){(this||bv).fun.apply(null,(this||bv).array)},bo.title="browser",bo.browser=!0,bo.env={},bo.argv=[],bo.version="",bo.versions={},bo.on=Tf,bo.addListener=Tf,bo.once=Tf,bo.off=Tf,bo.removeListener=Tf,bo.removeAllListeners=Tf,bo.emit=Tf,bo.prependListener=Tf,bo.prependOnceListener=Tf,bo.listeners=function(e){return[]},bo.binding=function(e){throw new Error("process.binding is not supported")},bo.cwd=function(){return"/"},bo.chdir=function(e){throw new Error("process.chdir is not supported")},bo.umask=function(){return 0},fo=Kte,fo.addListener,fo.argv,fo.binding,fo.browser,fo.chdir,fo.cwd,fo.emit,fo.env,fo.listeners,fo.nextTick,fo.off,fo.on,fo.once,fo.prependListener,fo.prependOnceListener,fo.removeAllListeners,fo.removeListener,fo.title,fo.umask,fo.version,fo.versions});function F9e(){if(m7)return BI;m7=!0;var e=BI={},t,n;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=r}catch{t=r}try{typeof clearTimeout=="function"?n=clearTimeout:n=i}catch{n=i}})();function o(g){if(t===setTimeout)return setTimeout(g,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(g,0);try{return t(g,0)}catch{try{return t.call(null,g,0)}catch{return t.call(this||kg,g,0)}}}function a(g){if(n===clearTimeout)return clearTimeout(g);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(g);try{return n(g)}catch{try{return n.call(null,g)}catch{return n.call(this||kg,g)}}}var s=[],l=!1,c,u=-1;function d(){!l||!c||(l=!1,c.length?s=c.concat(s):u=-1,s.length&&f())}function f(){if(!l){var g=o(d);l=!0;for(var v=s.length;v;){for(c=s,s=[];++u<v;)c&&c[u].run();u=-1,v=s.length}c=null,l=!1,a(g)}}e.nextTick=function(g){var v=new Array(arguments.length-1);if(arguments.length>1)for(var y=1;y<arguments.length;y++)v[y-1]=arguments[y];s.push(new p(g,v)),s.length===1&&!l&&o(f)};function p(g,v){(this||kg).fun=g,(this||kg).array=v}p.prototype.run=function(){(this||kg).fun.apply(null,(this||kg).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function h(){}return e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(g){return[]},e.binding=function(g){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(g){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},BI}var BI,m7,kg,eo,VSe=Qa(()=>{Kt(),Xt(),Qt(),BI={},m7=!1,kg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,eo=F9e(),eo.platform="browser",eo.addListener,eo.argv,eo.binding,eo.browser,eo.chdir,eo.cwd,eo.emit,eo.env,eo.listeners,eo.nextTick,eo.off,eo.on,eo.once,eo.prependListener,eo.prependOnceListener,eo.removeAllListeners,eo.removeListener,eo.title,eo.umask,eo.version,eo.versions});function B9e(){if(h7)return UI;h7=!0;var e=eo;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,a){for(var s="",l=0,c=-1,u=0,d,f=0;f<=o.length;++f){if(f<o.length)d=o.charCodeAt(f);else{if(d===47)break;d=47}if(d===47){if(!(c===f-1||u===1))if(c!==f-1&&u===2){if(s.length<2||l!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=f,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=f,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,f):s=o.slice(c+1,f),l=f-c-1;c=f,u=0}else d===46&&u!==-1?++u:u=-1}return s}function r(o,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+o+l:l}var i={resolve:function(){for(var o="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,a=c.charCodeAt(0)===47)}return o=n(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=n(o,!a),o.length===0&&!a&&(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(t(o),t(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,f=d-u,p=c<f?c:f,h=-1,g=0;g<=p;++g){if(g===p){if(f>p){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(o.charCodeAt(s+g)===47?h=g:g===0&&(h=0));break}var v=o.charCodeAt(s+g),y=a.charCodeAt(u+g);if(v!==y)break;v===47&&(h=g)}var _="";for(g=s+h+1;g<=l;++g)(g===l||o.charCodeAt(g)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+a.slice(u+h):(u+=h,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(a=o.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":o.slice(0,l)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var d=a.length-1,f=-1;for(u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(p===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return s===l?l=f:l===-1&&(l=o.length),o.slice(s,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(s,l)}},extname:function(o){t(o);for(var a=-1,s=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var f=o.charCodeAt(d);if(f===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===46?a===-1?a=d:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":o.slice(a,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s=o.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,d=0,f=-1,p=!0,h=o.length-1,g=0;h>=c;--h){if(s=o.charCodeAt(h),s===47){if(!p){d=h+1;break}continue}f===-1&&(p=!1,f=h+1),s===46?u===-1?u=h:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||f===-1||g===0||g===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?a.base=a.name=o.slice(1,f):a.base=a.name=o.slice(d,f)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,f)):(a.name=o.slice(d,u),a.base=o.slice(d,f)),a.ext=o.slice(u,f)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,UI=i,UI}var UI,h7,g7,U9e=Qa(()=>{Kt(),Xt(),Qt(),VSe(),UI={},h7=!1,g7=B9e()}),GSe={};S_(GSe,{URL:()=>cEe,Url:()=>iEe,default:()=>xi,fileURLToPath:()=>WSe,format:()=>oEe,parse:()=>lEe,pathToFileURL:()=>YSe,resolve:()=>aEe,resolveObject:()=>sEe});function xc(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function _E(e,t,n){if(e&&bu.isObject(e)&&e instanceof xc)return e;var r=new xc;return r.parse(e,t,n),r}function j9e(){if(v7)return jI;v7=!0;var e=fo;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,a){for(var s="",l=0,c=-1,u=0,d,f=0;f<=o.length;++f){if(f<o.length)d=o.charCodeAt(f);else{if(d===47)break;d=47}if(d===47){if(!(c===f-1||u===1))if(c!==f-1&&u===2){if(s.length<2||l!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=f,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=f,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,f):s=o.slice(c+1,f),l=f-c-1;c=f,u=0}else d===46&&u!==-1?++u:u=-1}return s}function r(o,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+o+l:l}var i={resolve:function(){for(var o="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,a=c.charCodeAt(0)===47)}return o=n(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=n(o,!a),o.length===0&&!a&&(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(t(o),t(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,f=d-u,p=c<f?c:f,h=-1,g=0;g<=p;++g){if(g===p){if(f>p){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(o.charCodeAt(s+g)===47?h=g:g===0&&(h=0));break}var v=o.charCodeAt(s+g),y=a.charCodeAt(u+g);if(v!==y)break;v===47&&(h=g)}var _="";for(g=s+h+1;g<=l;++g)(g===l||o.charCodeAt(g)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+a.slice(u+h):(u+=h,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(a=o.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":o.slice(0,l)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var d=a.length-1,f=-1;for(u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else f===-1&&(c=!1,f=u+1),d>=0&&(p===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=f))}return s===l?l=f:l===-1&&(l=o.length),o.slice(s,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(s,l)}},extname:function(o){t(o);for(var a=-1,s=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var f=o.charCodeAt(d);if(f===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),f===46?a===-1?a=d:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":o.slice(a,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s=o.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,d=0,f=-1,p=!0,h=o.length-1,g=0;h>=c;--h){if(s=o.charCodeAt(h),s===47){if(!p){d=h+1;break}continue}f===-1&&(p=!1,f=h+1),s===46?u===-1?u=h:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||f===-1||g===0||g===1&&u===f-1&&u===d+1?f!==-1&&(d===0&&l?a.base=a.name=o.slice(1,f):a.base=a.name=o.slice(d,f)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,f)):(a.name=o.slice(d,u),a.base=o.slice(d,f)),a.ext=o.slice(u,f)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,jI=i,jI}function H9e(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return MM?z9e(e):V9e(e)}function z9e(e){let t=e.hostname,n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102||n[r+1]==="5"&&i===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(n=n.replace(ZSe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<QSe||r>XSe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function V9e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let r=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&r===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function G9e(e){let t=_7.resolve(e),n=e.charCodeAt(e.length-1);(n===KSe||MM&&n===qSe)&&t[t.length-1]!==_7.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(JSe,"%25")),!MM&&t.includes("\\")&&(t=t.replace(eEe,"%5C")),t.includes(`
|
||
`)&&(t=t.replace(tEe,"%0A")),t.includes("\r")&&(t=t.replace(nEe,"%0D")),t.includes(" ")&&(t=t.replace(rEe,"%09")),r.pathname=t,r}function WSe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return AM?W9e(e):Y9e(e)}function W9e(e){let t=e.hostname,n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102||n[r+1]==="5"&&i===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(n=n.replace(mEe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<fEe||r>pEe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function Y9e(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let r=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&r===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function YSe(e){let t=g7.resolve(e),n=e.charCodeAt(e.length-1);(n===dEe||AM&&n===uEe)&&t[t.length-1]!==g7.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(hEe,"%25")),!AM&&t.includes("\\")&&(t=t.replace(gEe,"%5C")),t.includes(`
|
||
`)&&(t=t.replace(vEe,"%0A")),t.includes("\r")&&(t=t.replace(_Ee,"%0D")),t.includes(" ")&&(t=t.replace(yEe,"%09")),r.pathname=t,r}var xi,Qte,bu,Xte,Zte,Jte,ene,FR,h4,g4,v4,tne,nne,BR,Cg,UR,jI,v7,_7,rne,qSe,KSe,QSe,XSe,MM,ZSe,JSe,eEe,tEe,nEe,rEe,ine,iEe,oEe,aEe,sEe,lEe,cEe,uEe,dEe,fEe,pEe,AM,mEe,hEe,gEe,vEe,_Ee,yEe,q9e=Qa(()=>{Kt(),Xt(),Qt(),P9e(),k9e(),$9e(),U9e(),VSe(),xi={},Qte=Cm,bu={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},xi.parse=_E,xi.resolve=function(e,t){return _E(e,!1,!0).resolve(t)},xi.resolveObject=function(e,t){return e?_E(e,!1,!0).resolveObject(t):t},xi.format=function(e){return bu.isString(e)&&(e=_E(e)),e instanceof xc?e.format():xc.prototype.format.call(e)},xi.Url=xc,Xte=/^([a-z0-9.+-]+:)/i,Zte=/:[0-9]*$/,Jte=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ene=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
||
`," "]),FR=["'"].concat(ene),h4=["%","/","?",";","#"].concat(FR),g4=["/","?","#"],v4=/^[+a-z0-9A-Z_-]{0,63}$/,tne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,nne={javascript:!0,"javascript:":!0},BR={javascript:!0,"javascript:":!0},Cg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},UR=Od,xc.prototype.parse=function(e,t,n){if(!bu.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!n&&e.split("#").length===1){var s=Jte.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?UR.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=Xte.exec(a);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,a=a.substr(l.length)}if(n||l||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var u=a.substr(0,2)==="//";!u||l&&BR[l]||(a=a.substr(2),this.slashes=!0)}if(!BR[l]&&(u||l&&!Cg[l])){for(var d,f,p=-1,h=0;h<g4.length;h++)(g=a.indexOf(g4[h]))!==-1&&(p===-1||g<p)&&(p=g);for((f=p===-1?a.lastIndexOf("@"):a.lastIndexOf("@",p))!==-1&&(d=a.slice(0,f),a=a.slice(f+1),this.auth=decodeURIComponent(d)),p=-1,h=0;h<h4.length;h++){var g;(g=a.indexOf(h4[h]))!==-1&&(p===-1||g<p)&&(p=g)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v)for(var y=this.hostname.split(/\./),_=(h=0,y.length);h<_;h++){var b=y[h];if(b&&!b.match(v4)){for(var S="",C=0,E=b.length;C<E;C++)b.charCodeAt(C)>127?S+="x":S+=b[C];if(!S.match(v4)){var w=y.slice(0,h),x=y.slice(h+1),T=b.match(tne);T&&(w.push(T[1]),x.unshift(T[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=w.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=Qte.toASCII(this.hostname));var R=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+R,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!nne[c])for(h=0,_=FR.length;h<_;h++){var I=FR[h];if(a.indexOf(I)!==-1){var P=encodeURIComponent(I);P===I&&(P=escape(I)),a=a.split(I).join(P)}}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=UR.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Cg[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){R=this.pathname||"";var L=this.search||"";this.path=R+L}return this.href=this.format(),this},xc.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&bu.isObject(this.query)&&Object.keys(this.query).length&&(o=UR.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Cg[t])&&i!==!1?(i="//"+(i||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}))+(a=a.replace("#","%23"))+r},xc.prototype.resolve=function(e){return this.resolveObject(_E(e,!1,!0)).format()},xc.prototype.resolveObject=function(e){if(bu.isString(e)){var t=new xc;t.parse(e,!1,!0),e=t}for(var n=new xc,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];l!=="protocol"&&(n[l]=e[l])}return Cg[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Cg[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||BR[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),f[0]!==""&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",h=n.search||"";n.path=p+h}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&n.pathname.charAt(0)==="/",v=e.host||e.pathname&&e.pathname.charAt(0)==="/",y=v||g||n.host&&e.pathname,_=y,b=n.pathname&&n.pathname.split("/")||[],S=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!Cg[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(b[0]===""?b[0]=n.host:b.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(f[0]===""?f[0]=e.host:f.unshift(e.host)),e.host=null),y=y&&(f[0]===""||b[0]==="")),v)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,b=f;else if(f.length)b||(b=[]),b.pop(),b=b.concat(f),n.search=e.search,n.query=e.query;else if(!bu.isNullOrUndefined(e.search))return S&&(n.hostname=n.host=b.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),n.search=e.search,n.query=e.query,bu.isNull(n.pathname)&&bu.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=b.slice(-1)[0],E=(n.host||e.host||b.length>1)&&(C==="."||C==="..")||C==="",w=0,x=b.length;x>=0;x--)(C=b[x])==="."?b.splice(x,1):C===".."?(b.splice(x,1),w++):w&&(b.splice(x,1),w--);if(!y&&!_)for(;w--;w)b.unshift("..");!y||b[0]===""||b[0]&&b[0].charAt(0)==="/"||b.unshift(""),E&&b.join("/").substr(-1)!=="/"&&b.push("");var T,R=b[0]===""||b[0]&&b[0].charAt(0)==="/";return S&&(n.hostname=n.host=R?"":b.length?b.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),(y=y||n.host&&b.length)&&!R&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),bu.isNull(n.pathname)&&bu.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},xc.prototype.parseHost=function(){var e=this.host,t=Zte.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},xi.Url,xi.format,xi.resolve,xi.resolveObject,jI={},v7=!1,_7=j9e(),rne=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,xi.URL=typeof URL<"u"?URL:null,xi.pathToFileURL=G9e,xi.fileURLToPath=H9e,xi.Url,xi.format,xi.resolve,xi.resolveObject,xi.URL,qSe=92,KSe=47,QSe=97,XSe=122,MM=rne==="win32",ZSe=/\//g,JSe=/%/g,eEe=/\\/g,tEe=/\n/g,nEe=/\r/g,rEe=/\t/g,ine=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,xi.URL=typeof URL<"u"?URL:null,xi.pathToFileURL=YSe,xi.fileURLToPath=WSe,iEe=xi.Url,oEe=xi.format,aEe=xi.resolve,sEe=xi.resolveObject,lEe=xi.parse,cEe=xi.URL,uEe=92,dEe=47,fEe=97,pEe=122,AM=ine==="win32",mEe=/\//g,hEe=/%/g,gEe=/\\/g,vEe=/\n/g,_Ee=/\r/g,yEe=/\t/g}),K9e=an((e,t)=>{Kt(),Xt(),Qt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),OW=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=w_(),n=(Za(),Ai(Xa));function r(o,a){let s=new Array(o.length);for(let l=0;l<o.length;l++)typeof o[l].chunk=="string"?s[l]=n.Buffer.from(o[l].chunk,"utf8"):s[l]=o[l].chunk;this._write(n.Buffer.concat(s),"binary",a)}e.writev=r;var i=class extends t.Duplex{constructor(o,a,s){super({objectMode:!0}),this.proxy=a,this.socket=s,this.writeQueue=[],o.objectMode||(this._writev=r.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",l=>{this.destroyed||this.push(l)})}_read(o){this.proxy.read(o)}_write(o,a,s){this.isSocketOpen?this.writeToProxy(o,a,s):this.writeQueue.push({chunk:o,encoding:a,cb:s})}_final(o){this.writeQueue=[],this.proxy.end(o)}_destroy(o,a){this.writeQueue=[],this.proxy.destroy(),a(o)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(o,a,s){this.proxy.write(o,a)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:o,encoding:a,cb:s}=this.writeQueue.shift();this.writeToProxy(o,a,s)}}};e.BufferedDuplex=i}),jR=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(Za(),Ai(Xa)),r=t(K9e()),i=t(_p()),o=w_(),a=t(k2()),s=OW(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(y,_){let b=`${y.protocol}://${y.hostname}:${y.port}${y.path}`;return typeof y.transformWsUrl=="function"&&(b=y.transformWsUrl(b,y,_)),b}function d(y){let _=y;return y.port||(y.protocol==="wss"?_.port=443:_.port=80),y.path||(_.path="/"),y.wsOptions||(_.wsOptions={}),!a.default&&!y.forceNativeWebSocket&&y.protocol==="wss"&&c.forEach(b=>{Object.prototype.hasOwnProperty.call(y,b)&&!Object.prototype.hasOwnProperty.call(y.wsOptions,b)&&(_.wsOptions[b]=y[b])}),_}function f(y){let _=d(y);if(_.hostname||(_.hostname=_.host),!_.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let b=new URL(document.URL);_.hostname=b.hostname,_.port||(_.port=Number(b.port))}return _.objectMode===void 0&&(_.objectMode=!(_.binary===!0||_.binary===void 0)),_}function p(y,_,b){l("createWebSocket"),l(`protocol: ${b.protocolId} ${b.protocolVersion}`);let S=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${_} and protocol: ${S}`);let C;return b.createWebsocket?C=b.createWebsocket(_,[S],b):C=new r.default(_,[S],b.wsOptions),C}function h(y,_){let b=_.protocolId==="MQIsdp"&&_.protocolVersion===3?"mqttv3.1":"mqtt",S=u(_,y),C;return _.createWebsocket?C=_.createWebsocket(S,[b],_):C=new WebSocket(S,[b]),C.binaryType="arraybuffer",C}var g=(y,_)=>{l("streamBuilder");let b=d(_);b.hostname=b.hostname||b.host||"localhost";let S=u(b,y),C=p(y,S,b),E=r.default.createWebSocketStream(C,b.wsOptions);return E.url=S,C.on("close",()=>{E.destroy()}),E};e.streamBuilder=g;var v=(y,_)=>{l("browserStreamBuilder");let b,S=f(_).browserBufferSize||1024*512,C=_.browserBufferTimeout||1e3,E=!_.objectMode,w=h(y,_),x=R(_,F,L);_.objectMode||(x._writev=s.writev.bind(x)),x.on("close",()=>{w.close()});let T=typeof w.addEventListener<"u";w.readyState===w.OPEN?(b=x,b.socket=w):(b=new s.BufferedDuplex(_,x,w),T?w.addEventListener("open",N):w.onopen=N),T?(w.addEventListener("close",I),w.addEventListener("error",P),w.addEventListener("message",D)):(w.onclose=I,w.onerror=P,w.onmessage=D);function R(B,U,G){let V=new o.Transform({objectMode:B.objectMode});return V._write=U,V._flush=G,V}function N(){l("WebSocket onOpen"),b instanceof s.BufferedDuplex&&b.socketReady()}function I(B){l("WebSocket onClose",B),b.end(),b.destroy()}function P(B){l("WebSocket onError",B);let U=new Error("WebSocket error");U.event=B,b.destroy(U)}async function D(B){let{data:U}=B;U instanceof ArrayBuffer?U=n.Buffer.from(U):U instanceof Blob?U=n.Buffer.from(await new Response(U).arrayBuffer()):U=n.Buffer.from(U,"utf8"),x&&!x.destroyed&&x.push(U)}function F(B,U,G){if(w.bufferedAmount>S){setTimeout(F,C,B,U,G);return}E&&typeof B=="string"&&(B=n.Buffer.from(B,"utf8"));try{w.send(B)}catch(V){return G(V)}G()}function L(B){w.close(),B()}return b};e.browserStreamBuilder=v}),IW={};S_(IW,{Server:()=>no,Socket:()=>no,Stream:()=>no,_createServerHandle:()=>no,_normalizeArgs:()=>no,_setSimultaneousAccepts:()=>no,connect:()=>no,createConnection:()=>no,createServer:()=>no,default:()=>bEe,isIP:()=>no,isIPv4:()=>no,isIPv6:()=>no});function no(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var bEe,SEe=Qa(()=>{Kt(),Xt(),Qt(),bEe={_createServerHandle:no,_normalizeArgs:no,_setSimultaneousAccepts:no,connect:no,createConnection:no,createServer:no,isIP:no,isIPv4:no,isIPv6:no,Server:no,Socket:no,Stream:no}}),one=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((SEe(),Ai(IW))),r=t(_p()),i=(0,r.default)("mqttjs:tcp"),o=(a,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=o}),EEe={};S_(EEe,{default:()=>CEe});var CEe,Q9e=Qa(()=>{Kt(),Xt(),Qt(),CEe={}}),ane=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Q9e(),Ai(EEe))),r=t((SEe(),Ai(IW))),i=t(_p()),o=(0,i.default)("mqttjs:tls"),a=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,o("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(d){l.rejectUnauthorized&&s.emit("error",d),c.end()}return c.on("error",u),c};e.default=a}),sne=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Za(),Ai(Xa)),n=w_(),r=OW(),i,o,a;function s(){let f=new n.Transform;return f._write=(p,h,g)=>{i.send({data:p.buffer,success(){g()},fail(v){g(new Error(v))}})},f._flush=p=>{i.close({success(){p()}})},f}function l(f){f.hostname||(f.hostname="localhost"),f.path||(f.path="/"),f.wsOptions||(f.wsOptions={})}function c(f,p){let h=f.protocol==="wxs"?"wss":"ws",g=`${h}://${f.hostname}${f.path}`;return f.port&&f.port!==80&&f.port!==443&&(g=`${h}://${f.hostname}:${f.port}${f.path}`),typeof f.transformWsUrl=="function"&&(g=f.transformWsUrl(g,f,p)),g}function u(){i.onOpen(()=>{a.socketReady()}),i.onMessage(f=>{let{data:p}=f;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),o.push(p)}),i.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),i.onError(f=>{let p=new Error(f.errMsg);a.destroy(p)})}var d=(f,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let h=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let g=c(p,f);i=wx.connectSocket({url:g,protocols:[h]}),o=s(),a=new r.BufferedDuplex(p,o,i),a._destroy=(y,_)=>{i.close({success(){_&&_(y)}})};let v=a.destroy;return a.destroy=(y,_)=>(a.destroy=v,setTimeout(()=>{i.close({fail(){a._destroy(y,_)}})},0),a),u(),a};e.default=d}),lne=an(e=>{Kt(),Xt(),Qt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Za(),Ai(Xa)),n=w_(),r=OW(),i,o,a,s=!1;function l(){let p=new n.Transform;return p._write=(h,g,v)=>{i.sendSocketMessage({data:h.buffer,success(){v()},fail(){v(new Error)}})},p._flush=h=>{i.closeSocket({success(){h()}})},p}function c(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function u(p,h){let g=p.protocol==="alis"?"wss":"ws",v=`${g}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${g}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,h)),v}function d(){s||(s=!0,i.onSocketOpen(()=>{a.socketReady()}),i.onSocketMessage(p=>{if(typeof p.data=="string"){let h=t.Buffer.from(p.data,"base64");o.push(h)}else{let h=new FileReader;h.addEventListener("load",()=>{let g=h.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),o.push(g)}),h.readAsArrayBuffer(p.data)}}),i.onSocketClose(()=>{a.end(),a.destroy()}),i.onSocketError(p=>{a.destroy(p)}))}var f=(p,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");let g=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";c(h);let v=u(h,p);return i=h.my,i.connectSocket({url:v,protocols:g}),o=l(),a=new r.BufferedDuplex(h,o,i),d(),a};e.default=f}),X9e=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(_p()),r=t((q9e(),Ai(GSe))),i=t(u7()),o=t(k2());typeof(vi==null?void 0:vi.nextTick)!="function"&&(vi.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(d){let f;d.auth&&(f=d.auth.match(/^(.+):(.+)$/),f?(d.username=f[1],d.password=f[2]):d.username=d.auth)}function c(d,f){var p,h,g,v;if(a("connecting to an MQTT broker..."),typeof d=="object"&&!f&&(f=d,d=""),f=f||{},d&&typeof d=="string"){let b=r.default.parse(d,!0),S={};if(b.port!=null&&(S.port=Number(b.port)),S.host=b.hostname,S.query=b.query,S.auth=b.auth,S.protocol=b.protocol,S.path=b.path,S.protocol=(p=S.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),f=Object.assign(Object.assign({},S),f),!f.protocol)throw new Error("Missing protocol")}if(f.unixSocket=f.unixSocket||((h=f.protocol)===null||h===void 0?void 0:h.includes("+unix")),f.unixSocket?f.protocol=f.protocol.replace("+unix",""):!(!((g=f.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=f.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete f.path,l(f),f.query&&typeof f.query.clientId=="string"&&(f.clientId=f.query.clientId),f.cert&&f.key)if(f.protocol){if(["mqtts","wss","wxs","alis"].indexOf(f.protocol)===-1)switch(f.protocol){case"mqtt":f.protocol="mqtts";break;case"ws":f.protocol="wss";break;case"wx":f.protocol="wxs";break;case"ali":f.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${f.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!o.default&&!f.forceNativeWebSocket?(s.ws=jR().streamBuilder,s.wss=jR().streamBuilder,s.mqtt=one().default,s.tcp=one().default,s.ssl=ane().default,s.tls=s.ssl,s.mqtts=ane().default):(s.ws=jR().browserStreamBuilder,s.wss=jR().browserStreamBuilder,s.wx=sne().default,s.wxs=sne().default,s.ali=lne().default,s.alis=lne().default)),!s[f.protocol]){let b=["mqtts","wss"].indexOf(f.protocol)!==-1;f.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((S,C)=>b&&C%2===0?!1:typeof s[S]=="function")[0]}if(f.clean===!1&&!f.clientId)throw new Error("Missing clientId for unclean clients");f.protocol&&(f.defaultProtocol=f.protocol);function y(b){return f.servers&&((!b._reconnectCount||b._reconnectCount===f.servers.length)&&(b._reconnectCount=0),f.host=f.servers[b._reconnectCount].host,f.port=f.servers[b._reconnectCount].port,f.protocol=f.servers[b._reconnectCount].protocol?f.servers[b._reconnectCount].protocol:f.defaultProtocol,f.hostname=f.host,b._reconnectCount++),a("calling streambuilder for",f.protocol),s[f.protocol](b,f)}let _=new i.default(y,f);return _.on("error",()=>{}),_}function u(d,f,p=!0){return new Promise((h,g)=>{let v=c(d,f),y={connect:b=>{_(),h(v)},end:()=>{_(),h(v)},error:b=>{_(),v.end(),g(b)}};p===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))});function _(){Object.keys(y).forEach(b=>{v.off(b,y[b])})}Object.keys(y).forEach(b=>{v.on(b,y[b])})})}e.connectAsync=u,e.default=c}),cne=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__createBinding||(Object.create?function(p,h,g,v){v===void 0&&(v=g);var y=Object.getOwnPropertyDescriptor(h,g);(!y||("get"in y?!h.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return h[g]}}),Object.defineProperty(p,v,y)}:function(p,h,g,v){v===void 0&&(v=g),p[v]=h[g]}),n=e&&e.__setModuleDefault||(Object.create?function(p,h){Object.defineProperty(p,"default",{enumerable:!0,value:h})}:function(p,h){p.default=h}),r=e&&e.__importStar||function(p){if(p&&p.__esModule)return p;var h={};if(p!=null)for(var g in p)g!=="default"&&Object.prototype.hasOwnProperty.call(p,g)&&t(h,p,g);return n(h,p),h},i=e&&e.__exportStar||function(p,h){for(var g in p)g!=="default"&&!Object.prototype.hasOwnProperty.call(h,g)&&t(h,p,g)},o=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var a=o(u7());e.MqttClient=a.default;var s=o(ESe());e.DefaultMessageIdProvider=s.default;var l=o(A9e());e.UniqueMessageIdProvider=l.default;var c=o(CSe());e.Store=c.default;var u=r(X9e());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var d=o(BSe());e.KeepaliveManager=d.default,e.Client=a.default,i(u7(),e),i(Z0(),e);var f=D2();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return f.ReasonCodes}})}),Z9e=an(e=>{Kt(),Xt(),Qt();var t=e&&e.__createBinding||(Object.create?function(a,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,u)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}:function(a,s){a.default=s}),r=e&&e.__importStar||function(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var l in a)l!=="default"&&Object.prototype.hasOwnProperty.call(a,l)&&t(s,a,l);return n(s,a),s},i=e&&e.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,a,l)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(cne());e.default=o,i(cne(),e)});const J9e=Z9e();/*! Bundled license information:
|
||
|
||
@jspm/core/nodelibs/browser/buffer.js:
|
||
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||
*/var Sn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(O,j,te){O!=Array.prototype&&O!=Object.prototype&&(O[j]=te.value)},n=(typeof window<"u"&&window===Gi||typeof Gi<"u"&&Gi!=null,Gi);function r(O,j){if(j){var te=n;O=O.split(".");for(var we=0;we<O.length-1;we++){var Le=O[we];Le in te||(te[Le]={}),te=te[Le]}O=O[O.length-1],we=te[O],j=j(we),j!=we&&j!=null&&t(te,O,{configurable:!0,writable:!0,value:j})}}function i(O){var j=0;return function(){return j<O.length?{done:!1,value:O[j++]}:{done:!0}}}function o(){o=function(){},n.Symbol||(n.Symbol=s)}function a(O,j){this.a=O,t(this,"description",{configurable:!0,writable:!0,value:j})}a.prototype.toString=function(){return this.a};var s=function(){function O(te){if(this instanceof O)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(te||"")+"_"+j++,te)}var j=0;return O}();function l(){o();var O=n.Symbol.iterator;O||(O=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[O]!="function"&&t(Array.prototype,O,{configurable:!0,writable:!0,value:function(){return c(i(this))}}),l=function(){}}function c(O){return l(),O={next:O},O[n.Symbol.iterator]=function(){return this},O}function u(O,j){l(),O instanceof String&&(O+="");var te=0,we={next:function(){if(te<O.length){var Le=te++;return{value:j(Le,O[Le]),done:!1}}return we.next=function(){return{done:!0,value:void 0}},we.next()}};return we[Symbol.iterator]=function(){return we},we}r("Array.prototype.entries",function(O){return O||function(){return u(this,function(j,te){return[j,te]})}});var d=Gi||self;function f(O,j,te){O=O.split("."),te=te||d,O[0]in te||typeof te.execScript>"u"||te.execScript("var "+O[0]);for(var we;O.length&&(we=O.shift());)O.length||j===void 0?te[we]&&te[we]!==Object.prototype[we]?te=te[we]:te=te[we]={}:te[we]=j}function p(O){var j=typeof O;if(j=="object")if(O){if(O instanceof Array)return"array";if(O instanceof Object)return j;var te=Object.prototype.toString.call(O);if(te=="[object Window]")return"object";if(te=="[object Array]"||typeof O.length=="number"&&typeof O.splice<"u"&&typeof O.propertyIsEnumerable<"u"&&!O.propertyIsEnumerable("splice"))return"array";if(te=="[object Function]"||typeof O.call<"u"&&typeof O.propertyIsEnumerable<"u"&&!O.propertyIsEnumerable("call"))return"function"}else return"null";else if(j=="function"&&typeof O.call>"u")return"object";return j}function h(O){var j=typeof O;return j=="object"&&O!=null||j=="function"}function g(O,j,te){f(O,j,te)}function v(O,j){function te(){}te.prototype=j.prototype,O.prototype=new te,O.prototype.constructor=O}var y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function _(O,j){for(var te,we,Le=1;Le<arguments.length;Le++){we=arguments[Le];for(te in we)O[te]=we[te];for(var Je=0;Je<y.length;Je++)te=y[Je],Object.prototype.hasOwnProperty.call(we,te)&&(O[te]=we[te])}}var b=Array.prototype.forEach?function(O,j){Array.prototype.forEach.call(O,j,void 0)}:function(O,j){for(var te=O.length,we=typeof O=="string"?O.split(""):O,Le=0;Le<te;Le++)Le in we&&j.call(void 0,we[Le],Le,O)},S=Array.prototype.map?function(O,j){return Array.prototype.map.call(O,j,void 0)}:function(O,j){for(var te=O.length,we=Array(te),Le=typeof O=="string"?O.split(""):O,Je=0;Je<te;Je++)Je in Le&&(we[Je]=j.call(void 0,Le[Je],Je,O));return we};function C(O,j,te){return 2>=arguments.length?Array.prototype.slice.call(O,j):Array.prototype.slice.call(O,j,te)}function E(O,j,te,we){var Le="Assertion failed";if(te){Le+=": "+te;var Je=we}else O&&(Le+=": "+O,Je=j);throw Error(Le,Je||[])}function w(O,j,te){for(var we=[],Le=2;Le<arguments.length;++Le)we[Le-2]=arguments[Le];return O||E("",null,j,we),O}function x(O,j,te){for(var we=[],Le=2;Le<arguments.length;++Le)we[Le-2]=arguments[Le];typeof O!="string"&&E("Expected string but got %s: %s.",[p(O),O],j,we)}function T(O,j,te){for(var we=[],Le=2;Le<arguments.length;++Le)we[Le-2]=arguments[Le];Array.isArray(O)||E("Expected array but got %s: %s.",[p(O),O],j,we)}function R(O,j){for(var te=[],we=1;we<arguments.length;++we)te[we-1]=arguments[we];throw Error("Failure"+(O?": "+O:""),te)}function N(O,j,te,we){for(var Le=[],Je=3;Je<arguments.length;++Je)Le[Je-3]=arguments[Je];O instanceof j||E("Expected instanceof %s but got %s.",[I(j),I(O)],te,Le)}function I(O){return O instanceof Function?O.displayName||O.name||"unknown type name":O instanceof Object?O.constructor.displayName||O.constructor.name||Object.prototype.toString.call(O):O===null?"null":typeof O}function P(O,j){if(this.c=O,this.b=j,this.a={},this.arrClean=!0,0<this.c.length){for(O=0;O<this.c.length;O++){j=this.c[O];var te=j[0];this.a[te.toString()]=new B(te,j[1])}this.arrClean=!0}}f("jspb.Map",P,void 0),P.prototype.g=function(){if(this.arrClean){if(this.b){var O=this.a,j;for(j in O)if(Object.prototype.hasOwnProperty.call(O,j)){var te=O[j].a;te&&te.g()}}}else{for(this.c.length=0,O=L(this),O.sort(),j=0;j<O.length;j++){var we=this.a[O[j]];(te=we.a)&&te.g(),this.c.push([we.key,we.value])}this.arrClean=!0}return this.c},P.prototype.toArray=P.prototype.g,P.prototype.Mc=function(O,j){for(var te=this.g(),we=[],Le=0;Le<te.length;Le++){var Je=this.a[te[Le][0].toString()];F(this,Je);var At=Je.a;At?(w(j),we.push([Je.key,j(O,At)])):we.push([Je.key,Je.value])}return we},P.prototype.toObject=P.prototype.Mc,P.fromObject=function(O,j,te){j=new P([],j);for(var we=0;we<O.length;we++){var Le=O[we][0],Je=te(O[we][1]);j.set(Le,Je)}return j};function D(O){this.a=0,this.b=O}D.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(D.prototype[Symbol.iterator]=function(){return this}),P.prototype.Jb=function(){return L(this).length},P.prototype.getLength=P.prototype.Jb,P.prototype.clear=function(){this.a={},this.arrClean=!1},P.prototype.clear=P.prototype.clear,P.prototype.Cb=function(O){O=O.toString();var j=this.a.hasOwnProperty(O);return delete this.a[O],this.arrClean=!1,j},P.prototype.del=P.prototype.Cb,P.prototype.Eb=function(){var O=[],j=L(this);j.sort();for(var te=0;te<j.length;te++){var we=this.a[j[te]];O.push([we.key,we.value])}return O},P.prototype.getEntryList=P.prototype.Eb,P.prototype.entries=function(){var O=[],j=L(this);j.sort();for(var te=0;te<j.length;te++){var we=this.a[j[te]];O.push([we.key,F(this,we)])}return new D(O)},P.prototype.entries=P.prototype.entries,P.prototype.keys=function(){var O=[],j=L(this);j.sort();for(var te=0;te<j.length;te++)O.push(this.a[j[te]].key);return new D(O)},P.prototype.keys=P.prototype.keys,P.prototype.values=function(){var O=[],j=L(this);j.sort();for(var te=0;te<j.length;te++)O.push(F(this,this.a[j[te]]));return new D(O)},P.prototype.values=P.prototype.values,P.prototype.forEach=function(O,j){var te=L(this);te.sort();for(var we=0;we<te.length;we++){var Le=this.a[te[we]];O.call(j,F(this,Le),Le.key,this)}},P.prototype.forEach=P.prototype.forEach,P.prototype.set=function(O,j){var te=new B(O);return this.b?(te.a=j,te.value=j.g()):te.value=j,this.a[O.toString()]=te,this.arrClean=!1,this},P.prototype.set=P.prototype.set;function F(O,j){return O.b?(j.a||(j.a=new O.b(j.value)),j.a):j.value}P.prototype.get=function(O){if(O=this.a[O.toString()])return F(this,O)},P.prototype.get=P.prototype.get,P.prototype.has=function(O){return O.toString()in this.a},P.prototype.has=P.prototype.has,P.prototype.Jc=function(O,j,te,we,Le){var Je=L(this);Je.sort();for(var At=0;At<Je.length;At++){var dn=this.a[Je[At]];j.Va(O),te.call(j,1,dn.key),this.b?we.call(j,2,F(this,dn),Le):we.call(j,2,dn.value),j.Ya()}},P.prototype.serializeBinary=P.prototype.Jc,P.deserializeBinary=function(O,j,te,we,Le,Je,At){for(;j.oa()&&!j.bb();){var dn=j.c;dn==1?Je=te.call(j):dn==2&&(O.b?(w(Le),At||(At=new O.b),we.call(j,At,Le)):At=we.call(j))}w(Je!=null),w(At!=null),O.set(Je,At)};function L(O){O=O.a;var j=[],te;for(te in O)Object.prototype.hasOwnProperty.call(O,te)&&j.push(te);return j}function B(O,j){this.key=O,this.value=j,this.a=void 0}function U(O){if(8192>=O.length)return String.fromCharCode.apply(null,O);for(var j="",te=0;te<O.length;te+=8192)j+=String.fromCharCode.apply(null,C(O,te,te+8192));return j}var G={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},V={"'":"\\'"},W={},$=null;function H(O,j){j===void 0&&(j=0),Q(),j=W[j];for(var te=[],we=0;we<O.length;we+=3){var Le=O[we],Je=we+1<O.length,At=Je?O[we+1]:0,dn=we+2<O.length,Mn=dn?O[we+2]:0,Kr=Le>>2;Le=(Le&3)<<4|At>>4,At=(At&15)<<2|Mn>>6,Mn&=63,dn||(Mn=64,Je||(At=64)),te.push(j[Kr],j[Le],j[At]||"",j[Mn]||"")}return te.join("")}function K(O){var j=O.length,te=3*j/4;te%3?te=Math.floor(te):"=.".indexOf(O[j-1])!=-1&&(te="=.".indexOf(O[j-2])!=-1?te-2:te-1);var we=new Uint8Array(te),Le=0;return re(O,function(Je){we[Le++]=Je}),we.subarray(0,Le)}function re(O,j){function te(Mn){for(;we<O.length;){var Kr=O.charAt(we++),Ur=$[Kr];if(Ur!=null)return Ur;if(!/^[\s\xa0]*$/.test(Kr))throw Error("Unknown base64 encoding at char: "+Kr)}return Mn}Q();for(var we=0;;){var Le=te(-1),Je=te(0),At=te(64),dn=te(64);if(dn===64&&Le===-1)break;j(Le<<2|Je>>4),At!=64&&(j(Je<<4&240|At>>2),dn!=64&&j(At<<6&192|dn))}}function Q(){if(!$){$={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),j=["+/=","+/","-_=","-_.","-_"],te=0;5>te;te++){var we=O.concat(j[te].split(""));W[te]=we;for(var Le=0;Le<we.length;Le++){var Je=we[Le];$[Je]===void 0&&($[Je]=Le)}}}}f("jspb.ConstBinaryMessage",function(){},void 0),f("jspb.BinaryMessage",function(){},void 0),f("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),f("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),f("jspb.BinaryConstants.FieldTypeToWireType",function(O){switch(O){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),f("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),f("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),f("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),f("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),f("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),f("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),f("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),f("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),f("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),f("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),f("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),f("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),f("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),f("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),f("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var A=0,k=0;f("jspb.utils.getSplit64Low",function(){return A},void 0),f("jspb.utils.getSplit64High",function(){return k},void 0);function Z(O){var j=O>>>0;O=Math.floor((O-j)/4294967296)>>>0,A=j,k=O}f("jspb.utils.splitUint64",Z,void 0);function ne(O){var j=0>O;O=Math.abs(O);var te=O>>>0;O=Math.floor((O-te)/4294967296),O>>>=0,j&&(O=~O>>>0,te=(~te>>>0)+1,4294967295<te&&(te=0,O++,4294967295<O&&(O=0))),A=te,k=O}f("jspb.utils.splitInt64",ne,void 0);function oe(O){var j=0>O;O=2*Math.abs(O),Z(O),O=A;var te=k;j&&(O==0?te==0?te=O=4294967295:(te--,O=4294967295):O--),A=O,k=te}f("jspb.utils.splitZigzag64",oe,void 0);function ae(O){var j=0>O?1:0;if(O=j?-O:O,O===0)0<1/O?A=k=0:(k=0,A=2147483648);else if(isNaN(O))k=0,A=2147483647;else if(34028234663852886e22<O)k=0,A=(j<<31|2139095040)>>>0;else if(11754943508222875e-54>O)O=Math.round(O/Math.pow(2,-149)),k=0,A=(j<<31|O)>>>0;else{var te=Math.floor(Math.log(O)/Math.LN2);O*=Math.pow(2,-te),O=Math.round(8388608*O),16777216<=O&&++te,k=0,A=(j<<31|te+127<<23|O&8388607)>>>0}}f("jspb.utils.splitFloat32",ae,void 0);function ue(O){var j=0>O?1:0;if(O=j?-O:O,O===0)k=0<1/O?0:2147483648,A=0;else if(isNaN(O))k=2147483647,A=4294967295;else if(17976931348623157e292<O)k=(j<<31|2146435072)>>>0,A=0;else if(22250738585072014e-324>O)O/=Math.pow(2,-1074),k=(j<<31|O/4294967296)>>>0,A=O>>>0;else{var te=O,we=0;if(2<=te)for(;2<=te&&1023>we;)we++,te/=2;else for(;1>te&&-1022<we;)te*=2,we--;O*=Math.pow(2,-we),k=(j<<31|we+1023<<20|1048576*O&1048575)>>>0,A=4503599627370496*O>>>0}}f("jspb.utils.splitFloat64",ue,void 0);function fe(O){var j=O.charCodeAt(4),te=O.charCodeAt(5),we=O.charCodeAt(6),Le=O.charCodeAt(7);A=O.charCodeAt(0)+(O.charCodeAt(1)<<8)+(O.charCodeAt(2)<<16)+(O.charCodeAt(3)<<24)>>>0,k=j+(te<<8)+(we<<16)+(Le<<24)>>>0}f("jspb.utils.splitHash64",fe,void 0);function se(O,j){return 4294967296*j+(O>>>0)}f("jspb.utils.joinUint64",se,void 0);function pe(O,j){var te=j&2147483648;return te&&(O=~O+1>>>0,j=~j>>>0,O==0&&(j=j+1>>>0)),O=se(O,j),te?-O:O}f("jspb.utils.joinInt64",pe,void 0);function _e(O,j,te){var we=j>>31;return te(O<<1^we,(j<<1|O>>>31)^we)}f("jspb.utils.toZigzag64",_e,void 0);function Te(O,j){return xe(O,j,pe)}f("jspb.utils.joinZigzag64",Te,void 0);function xe(O,j,te){var we=-(O&1);return te((O>>>1|j<<31)^we,j>>>1^we)}f("jspb.utils.fromZigzag64",xe,void 0);function ge(O){var j=2*(O>>31)+1,te=O>>>23&255;return O&=8388607,te==255?O?NaN:1/0*j:te==0?j*Math.pow(2,-149)*O:j*Math.pow(2,te-150)*(O+Math.pow(2,23))}f("jspb.utils.joinFloat32",ge,void 0);function Ce(O,j){var te=2*(j>>31)+1,we=j>>>20&2047;return O=4294967296*(j&1048575)+O,we==2047?O?NaN:1/0*te:we==0?te*Math.pow(2,-1074)*O:te*Math.pow(2,we-1075)*(O+4503599627370496)}f("jspb.utils.joinFloat64",Ce,void 0);function ye(O,j){return String.fromCharCode(O>>>0&255,O>>>8&255,O>>>16&255,O>>>24&255,j>>>0&255,j>>>8&255,j>>>16&255,j>>>24&255)}f("jspb.utils.joinHash64",ye,void 0),f("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function be(O,j){function te(Le,Je){return Le=Le?String(Le):"",Je?"0000000".slice(Le.length)+Le:Le}if(2097151>=j)return""+se(O,j);var we=(O>>>24|j<<8)>>>0&16777215;return j=j>>16&65535,O=(O&16777215)+6777216*we+6710656*j,we+=8147497*j,j*=2,1e7<=O&&(we+=Math.floor(O/1e7),O%=1e7),1e7<=we&&(j+=Math.floor(we/1e7),we%=1e7),te(j,0)+te(we,j)+te(O,1)}f("jspb.utils.joinUnsignedDecimalString",be,void 0);function Ee(O,j){var te=j&2147483648;return te&&(O=~O+1>>>0,j=~j+(O==0?1:0)>>>0),O=be(O,j),te?"-"+O:O}f("jspb.utils.joinSignedDecimalString",Ee,void 0);function Me(O,j){fe(O),O=A;var te=k;return j?Ee(O,te):be(O,te)}f("jspb.utils.hash64ToDecimalString",Me,void 0),f("jspb.utils.hash64ArrayToDecimalStrings",function(O,j){for(var te=Array(O.length),we=0;we<O.length;we++)te[we]=Me(O[we],j);return te},void 0);function X(O){function j(At,dn){for(var Mn=0;8>Mn&&(At!==1||0<dn);Mn++)dn=At*Le[Mn]+dn,Le[Mn]=dn&255,dn>>>=8}function te(){for(var At=0;8>At;At++)Le[At]=~Le[At]&255}w(0<O.length);var we=!1;O[0]==="-"&&(we=!0,O=O.slice(1));for(var Le=[0,0,0,0,0,0,0,0],Je=0;Je<O.length;Je++)j(10,O.charCodeAt(Je)-48);return we&&(te(),j(1,1)),U(Le)}f("jspb.utils.decimalStringToHash64",X,void 0),f("jspb.utils.splitDecimalString",function(O){fe(X(O))},void 0);function Y(O){return String.fromCharCode(10>O?48+O:87+O)}function J(O){return 97<=O?O-97+10:O-48}f("jspb.utils.hash64ToHexString",function(O){var j=Array(18);j[0]="0",j[1]="x";for(var te=0;8>te;te++){var we=O.charCodeAt(7-te);j[2*te+2]=Y(we>>4),j[2*te+3]=Y(we&15)}return j.join("")},void 0),f("jspb.utils.hexStringToHash64",function(O){O=O.toLowerCase(),w(O.length==18),w(O[0]=="0"),w(O[1]=="x");for(var j="",te=0;8>te;te++)j=String.fromCharCode(16*J(O.charCodeAt(2*te+2))+J(O.charCodeAt(2*te+3)))+j;return j},void 0),f("jspb.utils.hash64ToNumber",function(O,j){fe(O),O=A;var te=k;return j?pe(O,te):se(O,te)},void 0),f("jspb.utils.numberToHash64",function(O){return ne(O),ye(A,k)},void 0),f("jspb.utils.countVarints",function(O,j,te){for(var we=0,Le=j;Le<te;Le++)we+=O[Le]>>7;return te-j-we},void 0),f("jspb.utils.countVarintFields",function(O,j,te,we){var Le=0;if(we*=8,128>we)for(;j<te&&O[j++]==we;)for(Le++;;){var Je=O[j++];if(!(Je&128))break}else for(;j<te;){for(Je=we;128<Je;){if(O[j]!=(Je&127|128))return Le;j++,Je>>=7}if(O[j++]!=Je)break;for(Le++;Je=O[j++],(Je&128)!=0;);}return Le},void 0);function he(O,j,te,we,Le){var Je=0;if(128>we)for(;j<te&&O[j++]==we;)Je++,j+=Le;else for(;j<te;){for(var At=we;128<At;){if(O[j++]!=(At&127|128))return Je;At>>=7}if(O[j++]!=At)break;Je++,j+=Le}return Je}f("jspb.utils.countFixed32Fields",function(O,j,te,we){return he(O,j,te,8*we+5,4)},void 0),f("jspb.utils.countFixed64Fields",function(O,j,te,we){return he(O,j,te,8*we+1,8)},void 0),f("jspb.utils.countDelimitedFields",function(O,j,te,we){var Le=0;for(we=8*we+2;j<te;){for(var Je=we;128<Je;){if(O[j++]!=(Je&127|128))return Le;Je>>=7}if(O[j++]!=Je)break;Le++;for(var At=0,dn=1;Je=O[j++],At+=(Je&127)*dn,dn*=128,(Je&128)!=0;);j+=At}return Le},void 0),f("jspb.utils.debugBytesToTextFormat",function(O){var j='"';if(O){O=ve(O);for(var te=0;te<O.length;te++)j+="\\x",16>O[te]&&(j+="0"),j+=O[te].toString(16)}return j+'"'},void 0),f("jspb.utils.debugScalarToTextFormat",function(O){if(typeof O=="string"){O=String(O);for(var j=['"'],te=0;te<O.length;te++){var we=O.charAt(te),Le=we.charCodeAt(0),Je=te+1,At;(At=G[we])||(31<Le&&127>Le||(Le=we,Le in V?we=V[Le]:Le in G?we=V[Le]=G[Le]:(At=Le.charCodeAt(0),31<At&&127>At?we=Le:(256>At?(we="\\x",(16>At||256<At)&&(we+="0")):(we="\\u",4096>At&&(we+="0")),we+=At.toString(16).toUpperCase()),we=V[Le]=we)),At=we),j[Je]=At}j.push('"'),O=j.join("")}else O=O.toString();return O},void 0),f("jspb.utils.stringToByteArray",function(O){for(var j=new Uint8Array(O.length),te=0;te<O.length;te++){var we=O.charCodeAt(te);if(255<we)throw Error("Conversion error: string contains codepoint outside of byte range");j[te]=we}return j},void 0);function ve(O){return O.constructor===Uint8Array?O:O.constructor===ArrayBuffer?new Uint8Array(O):O.constructor===Array?new Uint8Array(O):O.constructor===String?K(O):O instanceof Uint8Array?new Uint8Array(O.buffer,O.byteOffset,O.byteLength):(R("Type not convertible to Uint8Array."),new Uint8Array(0))}f("jspb.utils.byteSourceToUint8Array",ve,void 0);function ce(O,j,te){this.b=null,this.a=this.c=this.h=0,this.v=!1,O&&this.H(O,j,te)}f("jspb.BinaryDecoder",ce,void 0);var $e=[];ce.getInstanceCacheLength=function(){return $e.length};function Be(O,j,te){if($e.length){var we=$e.pop();return O&&we.H(O,j,te),we}return new ce(O,j,te)}ce.alloc=Be,ce.prototype.Ca=function(){this.clear(),100>$e.length&&$e.push(this)},ce.prototype.free=ce.prototype.Ca,ce.prototype.clone=function(){return Be(this.b,this.h,this.c-this.h)},ce.prototype.clone=ce.prototype.clone,ce.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ce.prototype.clear=ce.prototype.clear,ce.prototype.Y=function(){return this.b},ce.prototype.getBuffer=ce.prototype.Y,ce.prototype.H=function(O,j,te){this.b=ve(O),this.h=j!==void 0?j:0,this.c=te!==void 0?this.h+te:this.b.length,this.a=this.h},ce.prototype.setBlock=ce.prototype.H,ce.prototype.Db=function(){return this.c},ce.prototype.getEnd=ce.prototype.Db,ce.prototype.setEnd=function(O){this.c=O},ce.prototype.setEnd=ce.prototype.setEnd,ce.prototype.reset=function(){this.a=this.h},ce.prototype.reset=ce.prototype.reset,ce.prototype.B=function(){return this.a},ce.prototype.getCursor=ce.prototype.B,ce.prototype.Ma=function(O){this.a=O},ce.prototype.setCursor=ce.prototype.Ma,ce.prototype.advance=function(O){this.a+=O,w(this.a<=this.c)},ce.prototype.advance=ce.prototype.advance,ce.prototype.ya=function(){return this.a==this.c},ce.prototype.atEnd=ce.prototype.ya,ce.prototype.Qb=function(){return this.a>this.c},ce.prototype.pastEnd=ce.prototype.Qb,ce.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ce.prototype.getError=ce.prototype.getError,ce.prototype.w=function(O){for(var j=128,te=0,we=0,Le=0;4>Le&&128<=j;Le++)j=this.b[this.a++],te|=(j&127)<<7*Le;if(128<=j&&(j=this.b[this.a++],te|=(j&127)<<28,we|=(j&127)>>4),128<=j)for(Le=0;5>Le&&128<=j;Le++)j=this.b[this.a++],we|=(j&127)<<7*Le+3;if(128>j)return O(te>>>0,we>>>0);R("Failed to read varint, encoding is invalid."),this.v=!0},ce.prototype.readSplitVarint64=ce.prototype.w,ce.prototype.ea=function(O){return this.w(function(j,te){return xe(j,te,O)})},ce.prototype.readSplitZigzagVarint64=ce.prototype.ea,ce.prototype.ta=function(O){var j=this.b,te=this.a;this.a+=8;for(var we=0,Le=0,Je=te+7;Je>=te;Je--)we=we<<8|j[Je],Le=Le<<8|j[Je+4];return O(we,Le)},ce.prototype.readSplitFixed64=ce.prototype.ta,ce.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},ce.prototype.skipVarint=ce.prototype.kb,ce.prototype.mb=function(O){for(;128<O;)this.a--,O>>>=7;this.a--},ce.prototype.unskipVarint=ce.prototype.mb,ce.prototype.o=function(){var O=this.b,j=O[this.a],te=j&127;return 128>j?(this.a+=1,w(this.a<=this.c),te):(j=O[this.a+1],te|=(j&127)<<7,128>j?(this.a+=2,w(this.a<=this.c),te):(j=O[this.a+2],te|=(j&127)<<14,128>j?(this.a+=3,w(this.a<=this.c),te):(j=O[this.a+3],te|=(j&127)<<21,128>j?(this.a+=4,w(this.a<=this.c),te):(j=O[this.a+4],te|=(j&15)<<28,128>j?(this.a+=5,w(this.a<=this.c),te>>>0):(this.a+=5,128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&w(!1),w(this.a<=this.c),te)))))},ce.prototype.readUnsignedVarint32=ce.prototype.o,ce.prototype.da=function(){return~~this.o()},ce.prototype.readSignedVarint32=ce.prototype.da,ce.prototype.O=function(){return this.o().toString()},ce.prototype.Ea=function(){return this.da().toString()},ce.prototype.readSignedVarint32String=ce.prototype.Ea,ce.prototype.Ia=function(){var O=this.o();return O>>>1^-(O&1)},ce.prototype.readZigzagVarint32=ce.prototype.Ia,ce.prototype.Ga=function(){return this.w(se)},ce.prototype.readUnsignedVarint64=ce.prototype.Ga,ce.prototype.Ha=function(){return this.w(be)},ce.prototype.readUnsignedVarint64String=ce.prototype.Ha,ce.prototype.sa=function(){return this.w(pe)},ce.prototype.readSignedVarint64=ce.prototype.sa,ce.prototype.Fa=function(){return this.w(Ee)},ce.prototype.readSignedVarint64String=ce.prototype.Fa,ce.prototype.Ja=function(){return this.w(Te)},ce.prototype.readZigzagVarint64=ce.prototype.Ja,ce.prototype.fb=function(){return this.ea(ye)},ce.prototype.readZigzagVarintHash64=ce.prototype.fb,ce.prototype.Ka=function(){return this.ea(Ee)},ce.prototype.readZigzagVarint64String=ce.prototype.Ka,ce.prototype.Gc=function(){var O=this.b[this.a];return this.a+=1,w(this.a<=this.c),O},ce.prototype.readUint8=ce.prototype.Gc,ce.prototype.Ec=function(){var O=this.b[this.a],j=this.b[this.a+1];return this.a+=2,w(this.a<=this.c),O<<0|j<<8},ce.prototype.readUint16=ce.prototype.Ec,ce.prototype.m=function(){var O=this.b[this.a],j=this.b[this.a+1],te=this.b[this.a+2],we=this.b[this.a+3];return this.a+=4,w(this.a<=this.c),(O<<0|j<<8|te<<16|we<<24)>>>0},ce.prototype.readUint32=ce.prototype.m,ce.prototype.ga=function(){var O=this.m(),j=this.m();return se(O,j)},ce.prototype.readUint64=ce.prototype.ga,ce.prototype.ha=function(){var O=this.m(),j=this.m();return be(O,j)},ce.prototype.readUint64String=ce.prototype.ha,ce.prototype.Xb=function(){var O=this.b[this.a];return this.a+=1,w(this.a<=this.c),O<<24>>24},ce.prototype.readInt8=ce.prototype.Xb,ce.prototype.Vb=function(){var O=this.b[this.a],j=this.b[this.a+1];return this.a+=2,w(this.a<=this.c),(O<<0|j<<8)<<16>>16},ce.prototype.readInt16=ce.prototype.Vb,ce.prototype.P=function(){var O=this.b[this.a],j=this.b[this.a+1],te=this.b[this.a+2],we=this.b[this.a+3];return this.a+=4,w(this.a<=this.c),O<<0|j<<8|te<<16|we<<24},ce.prototype.readInt32=ce.prototype.P,ce.prototype.ba=function(){var O=this.m(),j=this.m();return pe(O,j)},ce.prototype.readInt64=ce.prototype.ba,ce.prototype.ca=function(){var O=this.m(),j=this.m();return Ee(O,j)},ce.prototype.readInt64String=ce.prototype.ca,ce.prototype.aa=function(){var O=this.m();return ge(O)},ce.prototype.readFloat=ce.prototype.aa,ce.prototype.Z=function(){var O=this.m(),j=this.m();return Ce(O,j)},ce.prototype.readDouble=ce.prototype.Z,ce.prototype.pa=function(){return!!this.b[this.a++]},ce.prototype.readBool=ce.prototype.pa,ce.prototype.ra=function(){return this.da()},ce.prototype.readEnum=ce.prototype.ra,ce.prototype.fa=function(O){var j=this.b,te=this.a;O=te+O;for(var we=[],Le="";te<O;){var Je=j[te++];if(128>Je)we.push(Je);else{if(192>Je)continue;if(224>Je){var At=j[te++];we.push((Je&31)<<6|At&63)}else if(240>Je){At=j[te++];var dn=j[te++];we.push((Je&15)<<12|(At&63)<<6|dn&63)}else if(248>Je){At=j[te++],dn=j[te++];var Mn=j[te++];Je=(Je&7)<<18|(At&63)<<12|(dn&63)<<6|Mn&63,Je-=65536,we.push((Je>>10&1023)+55296,(Je&1023)+56320)}}8192<=we.length&&(Le+=String.fromCharCode.apply(null,we),we.length=0)}return Le+=U(we),this.a=te,Le},ce.prototype.readString=ce.prototype.fa,ce.prototype.Dc=function(){var O=this.o();return this.fa(O)},ce.prototype.readStringWithLength=ce.prototype.Dc,ce.prototype.qa=function(O){if(0>O||this.a+O>this.b.length)return this.v=!0,R("Invalid byte length!"),new Uint8Array(0);var j=this.b.subarray(this.a,this.a+O);return this.a+=O,w(this.a<=this.c),j},ce.prototype.readBytes=ce.prototype.qa,ce.prototype.ia=function(){return this.w(ye)},ce.prototype.readVarintHash64=ce.prototype.ia,ce.prototype.$=function(){var O=this.b,j=this.a,te=O[j],we=O[j+1],Le=O[j+2],Je=O[j+3],At=O[j+4],dn=O[j+5],Mn=O[j+6];return O=O[j+7],this.a+=8,String.fromCharCode(te,we,Le,Je,At,dn,Mn,O)},ce.prototype.readFixedHash64=ce.prototype.$;function me(O,j,te){this.a=Be(O,j,te),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}f("jspb.BinaryReader",me,void 0);var Fe=[];me.clearInstanceCache=function(){Fe=[]},me.getInstanceCacheLength=function(){return Fe.length};function Xe(O,j,te){if(Fe.length){var we=Fe.pop();return O&&we.a.H(O,j,te),we}return new me(O,j,te)}me.alloc=Xe,me.prototype.zb=Xe,me.prototype.alloc=me.prototype.zb,me.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>Fe.length&&Fe.push(this)},me.prototype.free=me.prototype.Ca,me.prototype.Fb=function(){return this.O},me.prototype.getFieldCursor=me.prototype.Fb,me.prototype.B=function(){return this.a.B()},me.prototype.getCursor=me.prototype.B,me.prototype.Y=function(){return this.a.Y()},me.prototype.getBuffer=me.prototype.Y,me.prototype.Hb=function(){return this.c},me.prototype.getFieldNumber=me.prototype.Hb,me.prototype.Lb=function(){return this.b},me.prototype.getWireType=me.prototype.Lb,me.prototype.Mb=function(){return this.b==2},me.prototype.isDelimited=me.prototype.Mb,me.prototype.bb=function(){return this.b==4},me.prototype.isEndGroup=me.prototype.bb,me.prototype.getError=function(){return this.h||this.a.getError()},me.prototype.getError=me.prototype.getError,me.prototype.H=function(O,j,te){this.a.H(O,j,te),this.b=this.c=-1},me.prototype.setBlock=me.prototype.H,me.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},me.prototype.reset=me.prototype.reset,me.prototype.advance=function(O){this.a.advance(O)},me.prototype.advance=me.prototype.advance,me.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return R("Decoder hit an error"),!1;this.O=this.a.B();var O=this.a.o(),j=O>>>3;return O&=7,O!=0&&O!=5&&O!=1&&O!=2&&O!=3&&O!=4?(R("Invalid wire type: %s (at position %s)",O,this.O),this.h=!0,!1):(this.c=j,this.b=O,!0)},me.prototype.nextField=me.prototype.oa,me.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},me.prototype.unskipHeader=me.prototype.Oa,me.prototype.Lc=function(){var O=this.c;for(this.Oa();this.oa()&&this.c==O;)this.C();this.a.ya()||this.Oa()},me.prototype.skipMatchingFields=me.prototype.Lc,me.prototype.lb=function(){this.b!=0?(R("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},me.prototype.skipVarintField=me.prototype.lb,me.prototype.gb=function(){if(this.b!=2)R("Invalid wire type for skipDelimitedField"),this.C();else{var O=this.a.o();this.a.advance(O)}},me.prototype.skipDelimitedField=me.prototype.gb,me.prototype.hb=function(){this.b!=5?(R("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},me.prototype.skipFixed32Field=me.prototype.hb,me.prototype.ib=function(){this.b!=1?(R("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},me.prototype.skipFixed64Field=me.prototype.ib,me.prototype.jb=function(){var O=this.c;do{if(!this.oa()){R("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=O&&(R("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},me.prototype.skipGroup=me.prototype.jb,me.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:R("Invalid wire encoding for field.")}},me.prototype.skipField=me.prototype.C,me.prototype.Hc=function(O,j){this.v===null&&(this.v={}),w(!this.v[O]),this.v[O]=j},me.prototype.registerReadCallback=me.prototype.Hc,me.prototype.Ic=function(O){return w(this.v!==null),O=this.v[O],w(O),O(this)},me.prototype.runReadCallback=me.prototype.Ic,me.prototype.Yb=function(O,j){w(this.b==2);var te=this.a.c,we=this.a.o();we=this.a.B()+we,this.a.setEnd(we),j(O,this),this.a.Ma(we),this.a.setEnd(te)},me.prototype.readMessage=me.prototype.Yb,me.prototype.Ub=function(O,j,te){w(this.b==3),w(this.c==O),te(j,this),this.h||this.b==4||(R("Group submessage did not end with an END_GROUP tag"),this.h=!0)},me.prototype.readGroup=me.prototype.Ub,me.prototype.Gb=function(){w(this.b==2);var O=this.a.o(),j=this.a.B(),te=j+O;return O=Be(this.a.Y(),j,O),this.a.Ma(te),O},me.prototype.getFieldDecoder=me.prototype.Gb,me.prototype.P=function(){return w(this.b==0),this.a.da()},me.prototype.readInt32=me.prototype.P,me.prototype.Wb=function(){return w(this.b==0),this.a.Ea()},me.prototype.readInt32String=me.prototype.Wb,me.prototype.ba=function(){return w(this.b==0),this.a.sa()},me.prototype.readInt64=me.prototype.ba,me.prototype.ca=function(){return w(this.b==0),this.a.Fa()},me.prototype.readInt64String=me.prototype.ca,me.prototype.m=function(){return w(this.b==0),this.a.o()},me.prototype.readUint32=me.prototype.m,me.prototype.Fc=function(){return w(this.b==0),this.a.O()},me.prototype.readUint32String=me.prototype.Fc,me.prototype.ga=function(){return w(this.b==0),this.a.Ga()},me.prototype.readUint64=me.prototype.ga,me.prototype.ha=function(){return w(this.b==0),this.a.Ha()},me.prototype.readUint64String=me.prototype.ha,me.prototype.zc=function(){return w(this.b==0),this.a.Ia()},me.prototype.readSint32=me.prototype.zc,me.prototype.Ac=function(){return w(this.b==0),this.a.Ja()},me.prototype.readSint64=me.prototype.Ac,me.prototype.Bc=function(){return w(this.b==0),this.a.Ka()},me.prototype.readSint64String=me.prototype.Bc,me.prototype.Rb=function(){return w(this.b==5),this.a.m()},me.prototype.readFixed32=me.prototype.Rb,me.prototype.Sb=function(){return w(this.b==1),this.a.ga()},me.prototype.readFixed64=me.prototype.Sb,me.prototype.Tb=function(){return w(this.b==1),this.a.ha()},me.prototype.readFixed64String=me.prototype.Tb,me.prototype.vc=function(){return w(this.b==5),this.a.P()},me.prototype.readSfixed32=me.prototype.vc,me.prototype.wc=function(){return w(this.b==5),this.a.P().toString()},me.prototype.readSfixed32String=me.prototype.wc,me.prototype.xc=function(){return w(this.b==1),this.a.ba()},me.prototype.readSfixed64=me.prototype.xc,me.prototype.yc=function(){return w(this.b==1),this.a.ca()},me.prototype.readSfixed64String=me.prototype.yc,me.prototype.aa=function(){return w(this.b==5),this.a.aa()},me.prototype.readFloat=me.prototype.aa,me.prototype.Z=function(){return w(this.b==1),this.a.Z()},me.prototype.readDouble=me.prototype.Z,me.prototype.pa=function(){return w(this.b==0),!!this.a.o()},me.prototype.readBool=me.prototype.pa,me.prototype.ra=function(){return w(this.b==0),this.a.sa()},me.prototype.readEnum=me.prototype.ra,me.prototype.fa=function(){w(this.b==2);var O=this.a.o();return this.a.fa(O)},me.prototype.readString=me.prototype.fa,me.prototype.qa=function(){w(this.b==2);var O=this.a.o();return this.a.qa(O)},me.prototype.readBytes=me.prototype.qa,me.prototype.ia=function(){return w(this.b==0),this.a.ia()},me.prototype.readVarintHash64=me.prototype.ia,me.prototype.Cc=function(){return w(this.b==0),this.a.fb()},me.prototype.readSintHash64=me.prototype.Cc,me.prototype.w=function(O){return w(this.b==0),this.a.w(O)},me.prototype.readSplitVarint64=me.prototype.w,me.prototype.ea=function(O){return w(this.b==0),this.a.w(function(j,te){return xe(j,te,O)})},me.prototype.readSplitZigzagVarint64=me.prototype.ea,me.prototype.$=function(){return w(this.b==1),this.a.$()},me.prototype.readFixedHash64=me.prototype.$,me.prototype.ta=function(O){return w(this.b==1),this.a.ta(O)},me.prototype.readSplitFixed64=me.prototype.ta;function ze(O,j){w(O.b==2);var te=O.a.o();te=O.a.B()+te;for(var we=[];O.a.B()<te;)we.push(j.call(O.a));return we}me.prototype.gc=function(){return ze(this,this.a.da)},me.prototype.readPackedInt32=me.prototype.gc,me.prototype.hc=function(){return ze(this,this.a.Ea)},me.prototype.readPackedInt32String=me.prototype.hc,me.prototype.ic=function(){return ze(this,this.a.sa)},me.prototype.readPackedInt64=me.prototype.ic,me.prototype.jc=function(){return ze(this,this.a.Fa)},me.prototype.readPackedInt64String=me.prototype.jc,me.prototype.qc=function(){return ze(this,this.a.o)},me.prototype.readPackedUint32=me.prototype.qc,me.prototype.rc=function(){return ze(this,this.a.O)},me.prototype.readPackedUint32String=me.prototype.rc,me.prototype.sc=function(){return ze(this,this.a.Ga)},me.prototype.readPackedUint64=me.prototype.sc,me.prototype.tc=function(){return ze(this,this.a.Ha)},me.prototype.readPackedUint64String=me.prototype.tc,me.prototype.nc=function(){return ze(this,this.a.Ia)},me.prototype.readPackedSint32=me.prototype.nc,me.prototype.oc=function(){return ze(this,this.a.Ja)},me.prototype.readPackedSint64=me.prototype.oc,me.prototype.pc=function(){return ze(this,this.a.Ka)},me.prototype.readPackedSint64String=me.prototype.pc,me.prototype.bc=function(){return ze(this,this.a.m)},me.prototype.readPackedFixed32=me.prototype.bc,me.prototype.cc=function(){return ze(this,this.a.ga)},me.prototype.readPackedFixed64=me.prototype.cc,me.prototype.dc=function(){return ze(this,this.a.ha)},me.prototype.readPackedFixed64String=me.prototype.dc,me.prototype.kc=function(){return ze(this,this.a.P)},me.prototype.readPackedSfixed32=me.prototype.kc,me.prototype.lc=function(){return ze(this,this.a.ba)},me.prototype.readPackedSfixed64=me.prototype.lc,me.prototype.mc=function(){return ze(this,this.a.ca)},me.prototype.readPackedSfixed64String=me.prototype.mc,me.prototype.fc=function(){return ze(this,this.a.aa)},me.prototype.readPackedFloat=me.prototype.fc,me.prototype.$b=function(){return ze(this,this.a.Z)},me.prototype.readPackedDouble=me.prototype.$b,me.prototype.Zb=function(){return ze(this,this.a.pa)},me.prototype.readPackedBool=me.prototype.Zb,me.prototype.ac=function(){return ze(this,this.a.ra)},me.prototype.readPackedEnum=me.prototype.ac,me.prototype.uc=function(){return ze(this,this.a.ia)},me.prototype.readPackedVarintHash64=me.prototype.uc,me.prototype.ec=function(){return ze(this,this.a.$)},me.prototype.readPackedFixedHash64=me.prototype.ec;function qe(O,j,te,we,Le){this.ma=O,this.Ba=j,this.la=te,this.Na=we,this.na=Le}f("jspb.ExtensionFieldInfo",qe,void 0);function Ge(O,j,te,we,Le,Je){this.Za=O,this.za=j,this.Aa=te,this.Wa=we,this.Ab=Le,this.Nb=Je}f("jspb.ExtensionFieldBinaryInfo",Ge,void 0),qe.prototype.F=function(){return!!this.la},qe.prototype.isMessageType=qe.prototype.F;function We(){}f("jspb.Message",We,void 0),We.GENERATE_TO_OBJECT=!0,We.GENERATE_FROM_OBJECT=!0;var Lt=typeof Uint8Array=="function";We.prototype.Ib=function(){return this.b},We.prototype.getJsPbMessageId=We.prototype.Ib,We.initialize=function(O,j,te,we,Le,Je){O.f=null,j||(j=te?[te]:[]),O.b=te?String(te):void 0,O.D=te===0?-1:0,O.u=j;e:{if(te=O.u.length,j=-1,te&&(j=te-1,te=O.u[j],!(te===null||typeof te!="object"||Array.isArray(te)||Lt&&te instanceof Uint8Array))){O.G=j-O.D,O.i=te;break e}-1<we?(O.G=Math.max(we,j+1-O.D),O.i=null):O.G=Number.MAX_VALUE}if(O.a={},Le)for(we=0;we<Le.length;we++)j=Le[we],j<O.G?(j+=O.D,O.u[j]=O.u[j]||ut):(ft(O),O.i[j]=O.i[j]||ut);if(Je&&Je.length)for(we=0;we<Je.length;we++)vt(O,Je[we])};var ut=Object.freeze?Object.freeze([]):[];function ft(O){var j=O.G+O.D;O.u[j]||(O.i=O.u[j]={})}function bt(O,j,te){for(var we=[],Le=0;Le<O.length;Le++)we[Le]=j.call(O[Le],te,O[Le]);return we}We.toObjectList=bt,We.toObjectExtension=function(O,j,te,we,Le){for(var Je in te){var At=te[Je],dn=we.call(O,At);if(dn!=null){for(var Mn in At.Ba)if(At.Ba.hasOwnProperty(Mn))break;j[Mn]=At.Na?At.na?bt(dn,At.Na,Le):At.Na(Le,dn):dn}}},We.serializeBinaryExtensions=function(O,j,te,we){for(var Le in te){var Je=te[Le],At=Je.Za;if(!Je.Aa)throw Error("Message extension present that was generated without binary serialization support");var dn=we.call(O,At);if(dn!=null)if(At.F())if(Je.Wa)Je.Aa.call(j,At.ma,dn,Je.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else Je.Aa.call(j,At.ma,dn)}},We.readBinaryExtension=function(O,j,te,we,Le){var Je=te[j.c];if(Je){if(te=Je.Za,!Je.za)throw Error("Deserializing extension whose generated code does not support binary format");if(te.F()){var At=new te.la;Je.za.call(j,At,Je.Ab)}else At=Je.za.call(j);te.na&&!Je.Nb?(j=we.call(O,te))?j.push(At):Le.call(O,te,[At]):Le.call(O,te,At)}else j.C()};function St(O,j){if(j<O.G){j+=O.D;var te=O.u[j];return te===ut?O.u[j]=[]:te}if(O.i)return te=O.i[j],te===ut?O.i[j]=[]:te}We.getField=St,We.getRepeatedField=function(O,j){return St(O,j)};function Ht(O,j){return O=St(O,j),O==null?O:+O}We.getOptionalFloatingPointField=Ht;function xt(O,j){return O=St(O,j),O==null?O:!!O}We.getBooleanField=xt,We.getRepeatedFloatingPointField=function(O,j){var te=St(O,j);if(O.a||(O.a={}),!O.a[j]){for(var we=0;we<te.length;we++)te[we]=+te[we];O.a[j]=!0}return te},We.getRepeatedBooleanField=function(O,j){var te=St(O,j);if(O.a||(O.a={}),!O.a[j]){for(var we=0;we<te.length;we++)te[we]=!!te[we];O.a[j]=!0}return te};function Nt(O){return O==null||typeof O=="string"?O:Lt&&O instanceof Uint8Array?H(O):(R("Cannot coerce to b64 string: "+p(O)),null)}We.bytesAsB64=Nt;function Vt(O){return O==null||O instanceof Uint8Array?O:typeof O=="string"?K(O):(R("Cannot coerce to Uint8Array: "+p(O)),null)}We.bytesAsU8=Vt,We.bytesListAsB64=function(O){return Ue(O),O.length&&typeof O[0]!="string"?S(O,Nt):O},We.bytesListAsU8=function(O){return Ue(O),!O.length||O[0]instanceof Uint8Array?O:S(O,Vt)};function Ue(O){if(O&&1<O.length){var j=p(O[0]);b(O,function(te){p(te)!=j&&R("Inconsistent type in JSPB repeated field array. Got "+p(te)+" expected "+j)})}}function Ve(O,j,te){return O=St(O,j),O??te}We.getFieldWithDefault=Ve,We.getBooleanFieldWithDefault=function(O,j,te){return O=xt(O,j),O??te},We.getFloatingPointFieldWithDefault=function(O,j,te){return O=Ht(O,j),O??te},We.getFieldProto3=Ve,We.getMapField=function(O,j,te,we){if(O.f||(O.f={}),j in O.f)return O.f[j];var Le=St(O,j);if(!Le){if(te)return;Le=[],je(O,j,Le)}return O.f[j]=new P(Le,we)};function je(O,j,te){return N(O,We),j<O.G?O.u[j+O.D]=te:(ft(O),O.i[j]=te),O}We.setField=je,We.setProto3IntField=function(O,j,te){return et(O,j,te,0)},We.setProto3FloatField=function(O,j,te){return et(O,j,te,0)},We.setProto3BooleanField=function(O,j,te){return et(O,j,te,!1)},We.setProto3StringField=function(O,j,te){return et(O,j,te,"")},We.setProto3BytesField=function(O,j,te){return et(O,j,te,"")},We.setProto3EnumField=function(O,j,te){return et(O,j,te,0)},We.setProto3StringIntField=function(O,j,te){return et(O,j,te,"0")};function et(O,j,te,we){return N(O,We),te!==we?je(O,j,te):j<O.G?O.u[j+O.D]=null:(ft(O),delete O.i[j]),O}We.addToRepeatedField=function(O,j,te,we){return N(O,We),j=St(O,j),we!=null?j.splice(we,0,te):j.push(te),O};function _t(O,j,te,we){return N(O,We),(te=vt(O,te))&&te!==j&&we!==void 0&&(O.f&&te in O.f&&(O.f[te]=void 0),je(O,te,void 0)),je(O,j,we)}We.setOneofField=_t;function vt(O,j){for(var te,we,Le=0;Le<j.length;Le++){var Je=j[Le],At=St(O,Je);At!=null&&(te=Je,we=At,je(O,Je,void 0))}return te?(je(O,te,we),te):0}We.computeOneofCase=vt,We.getWrapperField=function(O,j,te,we){if(O.f||(O.f={}),!O.f[te]){var Le=St(O,te);(we||Le)&&(O.f[te]=new j(Le))}return O.f[te]},We.getRepeatedWrapperField=function(O,j,te){return Mt(O,j,te),j=O.f[te],j==ut&&(j=O.f[te]=[]),j};function Mt(O,j,te){if(O.f||(O.f={}),!O.f[te]){for(var we=St(O,te),Le=[],Je=0;Je<we.length;Je++)Le[Je]=new j(we[Je]);O.f[te]=Le}}We.setWrapperField=function(O,j,te){N(O,We),O.f||(O.f={});var we=te&&te.g();return O.f[j]=te,je(O,j,we)},We.setOneofWrapperField=function(O,j,te,we){N(O,We),O.f||(O.f={});var Le=we&&we.g();return O.f[j]=we,_t(O,j,te,Le)},We.setRepeatedWrapperField=function(O,j,te){N(O,We),O.f||(O.f={}),te=te||[];for(var we=[],Le=0;Le<te.length;Le++)we[Le]=te[Le].g();return O.f[j]=te,je(O,j,we)},We.addToRepeatedWrapperField=function(O,j,te,we,Le){Mt(O,we,j);var Je=O.f[j];return Je||(Je=O.f[j]=[]),te=te||new we,O=St(O,j),Le!=null?(Je.splice(Le,0,te),O.splice(Le,0,te.g())):(Je.push(te),O.push(te.g())),te},We.toMap=function(O,j,te,we){for(var Le={},Je=0;Je<O.length;Je++)Le[j.call(O[Je])]=te?te.call(O[Je],we,O[Je]):O[Je];return Le};function wt(O){if(O.f)for(var j in O.f){var te=O.f[j];if(Array.isArray(te))for(var we=0;we<te.length;we++)te[we]&&te[we].g();else te&&te.g()}}We.prototype.g=function(){return wt(this),this.u},We.prototype.toArray=We.prototype.g,We.prototype.toString=function(){return wt(this),this.u.toString()},We.prototype.getExtension=function(O){if(this.i){this.f||(this.f={});var j=O.ma;if(O.na){if(O.F())return this.f[j]||(this.f[j]=S(this.i[j]||[],function(te){return new O.la(te)})),this.f[j]}else if(O.F())return!this.f[j]&&this.i[j]&&(this.f[j]=new O.la(this.i[j])),this.f[j];return this.i[j]}},We.prototype.getExtension=We.prototype.getExtension,We.prototype.Kc=function(O,j){this.f||(this.f={}),ft(this);var te=O.ma;return O.na?(j=j||[],O.F()?(this.f[te]=j,this.i[te]=S(j,function(we){return we.g()})):this.i[te]=j):O.F()?(this.f[te]=j,this.i[te]=j&&j.g()):this.i[te]=j,this},We.prototype.setExtension=We.prototype.Kc,We.difference=function(O,j){if(!(O instanceof j.constructor))throw Error("Messages have different types.");var te=O.g();j=j.g();var we=[],Le=0,Je=te.length>j.length?te.length:j.length;for(O.b&&(we[0]=O.b,Le=1);Le<Je;Le++)zt(te[Le],j[Le])||(we[Le]=j[Le]);return new O.constructor(we)},We.equals=function(O,j){return O==j||!(!O||!j)&&O instanceof j.constructor&&zt(O.g(),j.g())};function jt(O,j){O=O||{},j=j||{};var te={},we;for(we in O)te[we]=0;for(we in j)te[we]=0;for(we in te)if(!zt(O[we],j[we]))return!1;return!0}We.compareExtensions=jt;function zt(O,j){if(O==j)return!0;if(!h(O)||!h(j))return typeof O=="number"&&isNaN(O)||typeof j=="number"&&isNaN(j)?String(O)==String(j):!1;if(O.constructor!=j.constructor)return!1;if(Lt&&O.constructor===Uint8Array){if(O.length!=j.length)return!1;for(var te=0;te<O.length;te++)if(O[te]!=j[te])return!1;return!0}if(O.constructor===Array){var we=void 0,Le=void 0,Je=Math.max(O.length,j.length);for(te=0;te<Je;te++){var At=O[te],dn=j[te];if(At&&At.constructor==Object&&(w(we===void 0),w(te===O.length-1),we=At,At=void 0),dn&&dn.constructor==Object&&(w(Le===void 0),w(te===j.length-1),Le=dn,dn=void 0),!zt(At,dn))return!1}return we||Le?(we=we||{},Le=Le||{},jt(we,Le)):!0}if(O.constructor===Object)return jt(O,j);throw Error("Invalid type in JSPB array")}We.compareFields=zt,We.prototype.Bb=function(){return Gt(this)},We.prototype.cloneMessage=We.prototype.Bb,We.prototype.clone=function(){return Gt(this)},We.prototype.clone=We.prototype.clone,We.clone=function(O){return Gt(O)};function Gt(O){return new O.constructor($t(O.g()))}We.copyInto=function(O,j){N(O,We),N(j,We),w(O.constructor==j.constructor,"Copy source and target message should have the same type."),O=Gt(O);for(var te=j.g(),we=O.g(),Le=te.length=0;Le<we.length;Le++)te[Le]=we[Le];j.f=O.f,j.i=O.i};function $t(O){if(Array.isArray(O)){for(var j=Array(O.length),te=0;te<O.length;te++){var we=O[te];we!=null&&(j[te]=typeof we=="object"?$t(w(we)):we)}return j}if(Lt&&O instanceof Uint8Array)return new Uint8Array(O);j={};for(te in O)we=O[te],we!=null&&(j[te]=typeof we=="object"?$t(w(we)):we);return j}We.registerMessageType=function(O,j){j.we=O};var on={dump:function(O){return N(O,We,"jspb.Message instance expected"),w(O.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),on.X(O)}};f("jspb.debug.dump",on.dump,void 0),on.X=function(O){var j=p(O);if(j=="number"||j=="string"||j=="boolean"||j=="null"||j=="undefined"||typeof Uint8Array<"u"&&O instanceof Uint8Array)return O;if(j=="array")return T(O),S(O,on.X);if(O instanceof P){var te={};O=O.entries();for(var we=O.next();!we.done;we=O.next())te[we.value[0]]=on.X(we.value[1]);return te}N(O,We,"Only messages expected: "+O),j=O.constructor;var Le={$name:j.name||j.displayName};for(dn in j.prototype){var Je=/^get([A-Z]\w*)/.exec(dn);if(Je&&dn!="getExtension"&&dn!="getJsPbMessageId"){var At="has"+Je[1];(!O[At]||O[At]())&&(At=O[dn](),Le[on.$a(Je[1])]=on.X(At))}}if(O.extensionObject_)return Le.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",Le;for(we in j.extensions)if(/^\d+$/.test(we)){At=j.extensions[we];var dn=O.getExtension(At);Je=void 0,At=At.Ba;var Mn=[],Kr=0;for(Je in At)Mn[Kr++]=Je;Je=Mn[0],dn!=null&&(te||(te=Le.$extensions={}),te[on.$a(Je)]=on.X(dn))}return Le},on.$a=function(O){return O.replace(/^[A-Z]/,function(j){return j.toLowerCase()})};function pt(){this.a=[]}f("jspb.BinaryEncoder",pt,void 0),pt.prototype.length=function(){return this.a.length},pt.prototype.length=pt.prototype.length,pt.prototype.end=function(){var O=this.a;return this.a=[],O},pt.prototype.end=pt.prototype.end,pt.prototype.l=function(O,j){for(w(O==Math.floor(O)),w(j==Math.floor(j)),w(0<=O&&4294967296>O),w(0<=j&&4294967296>j);0<j||127<O;)this.a.push(O&127|128),O=(O>>>7|j<<25)>>>0,j>>>=7;this.a.push(O)},pt.prototype.writeSplitVarint64=pt.prototype.l,pt.prototype.A=function(O,j){w(O==Math.floor(O)),w(j==Math.floor(j)),w(0<=O&&4294967296>O),w(0<=j&&4294967296>j),this.s(O),this.s(j)},pt.prototype.writeSplitFixed64=pt.prototype.A,pt.prototype.j=function(O){for(w(O==Math.floor(O)),w(0<=O&&4294967296>O);127<O;)this.a.push(O&127|128),O>>>=7;this.a.push(O)},pt.prototype.writeUnsignedVarint32=pt.prototype.j,pt.prototype.M=function(O){if(w(O==Math.floor(O)),w(-2147483648<=O&&2147483648>O),0<=O)this.j(O);else{for(var j=0;9>j;j++)this.a.push(O&127|128),O>>=7;this.a.push(1)}},pt.prototype.writeSignedVarint32=pt.prototype.M,pt.prototype.va=function(O){w(O==Math.floor(O)),w(0<=O&&18446744073709552e3>O),ne(O),this.l(A,k)},pt.prototype.writeUnsignedVarint64=pt.prototype.va,pt.prototype.ua=function(O){w(O==Math.floor(O)),w(-9223372036854776e3<=O&&9223372036854776e3>O),ne(O),this.l(A,k)},pt.prototype.writeSignedVarint64=pt.prototype.ua,pt.prototype.wa=function(O){w(O==Math.floor(O)),w(-2147483648<=O&&2147483648>O),this.j((O<<1^O>>31)>>>0)},pt.prototype.writeZigzagVarint32=pt.prototype.wa,pt.prototype.xa=function(O){w(O==Math.floor(O)),w(-9223372036854776e3<=O&&9223372036854776e3>O),oe(O),this.l(A,k)},pt.prototype.writeZigzagVarint64=pt.prototype.xa,pt.prototype.Ta=function(O){this.W(X(O))},pt.prototype.writeZigzagVarint64String=pt.prototype.Ta,pt.prototype.W=function(O){var j=this;fe(O),_e(A,k,function(te,we){j.l(te>>>0,we>>>0)})},pt.prototype.writeZigzagVarintHash64=pt.prototype.W,pt.prototype.be=function(O){w(O==Math.floor(O)),w(0<=O&&256>O),this.a.push(O>>>0&255)},pt.prototype.writeUint8=pt.prototype.be,pt.prototype.ae=function(O){w(O==Math.floor(O)),w(0<=O&&65536>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255)},pt.prototype.writeUint16=pt.prototype.ae,pt.prototype.s=function(O){w(O==Math.floor(O)),w(0<=O&&4294967296>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255),this.a.push(O>>>16&255),this.a.push(O>>>24&255)},pt.prototype.writeUint32=pt.prototype.s,pt.prototype.V=function(O){w(O==Math.floor(O)),w(0<=O&&18446744073709552e3>O),Z(O),this.s(A),this.s(k)},pt.prototype.writeUint64=pt.prototype.V,pt.prototype.Qc=function(O){w(O==Math.floor(O)),w(-128<=O&&128>O),this.a.push(O>>>0&255)},pt.prototype.writeInt8=pt.prototype.Qc,pt.prototype.Pc=function(O){w(O==Math.floor(O)),w(-32768<=O&&32768>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255)},pt.prototype.writeInt16=pt.prototype.Pc,pt.prototype.S=function(O){w(O==Math.floor(O)),w(-2147483648<=O&&2147483648>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255),this.a.push(O>>>16&255),this.a.push(O>>>24&255)},pt.prototype.writeInt32=pt.prototype.S,pt.prototype.T=function(O){w(O==Math.floor(O)),w(-9223372036854776e3<=O&&9223372036854776e3>O),ne(O),this.A(A,k)},pt.prototype.writeInt64=pt.prototype.T,pt.prototype.ka=function(O){w(O==Math.floor(O)),w(-9223372036854776e3<=+O&&9223372036854776e3>+O),fe(X(O)),this.A(A,k)},pt.prototype.writeInt64String=pt.prototype.ka,pt.prototype.L=function(O){w(O===1/0||O===-1/0||isNaN(O)||-34028234663852886e22<=O&&34028234663852886e22>=O),ae(O),this.s(A)},pt.prototype.writeFloat=pt.prototype.L,pt.prototype.J=function(O){w(O===1/0||O===-1/0||isNaN(O)||-17976931348623157e292<=O&&17976931348623157e292>=O),ue(O),this.s(A),this.s(k)},pt.prototype.writeDouble=pt.prototype.J,pt.prototype.I=function(O){w(typeof O=="boolean"||typeof O=="number"),this.a.push(O?1:0)},pt.prototype.writeBool=pt.prototype.I,pt.prototype.R=function(O){w(O==Math.floor(O)),w(-2147483648<=O&&2147483648>O),this.M(O)},pt.prototype.writeEnum=pt.prototype.R,pt.prototype.ja=function(O){this.a.push.apply(this.a,O)},pt.prototype.writeBytes=pt.prototype.ja,pt.prototype.N=function(O){fe(O),this.l(A,k)},pt.prototype.writeVarintHash64=pt.prototype.N,pt.prototype.K=function(O){fe(O),this.s(A),this.s(k)},pt.prototype.writeFixedHash64=pt.prototype.K,pt.prototype.U=function(O){var j=this.a.length;x(O);for(var te=0;te<O.length;te++){var we=O.charCodeAt(te);if(128>we)this.a.push(we);else if(2048>we)this.a.push(we>>6|192),this.a.push(we&63|128);else if(65536>we)if(55296<=we&&56319>=we&&te+1<O.length){var Le=O.charCodeAt(te+1);56320<=Le&&57343>=Le&&(we=1024*(we-55296)+Le-56320+65536,this.a.push(we>>18|240),this.a.push(we>>12&63|128),this.a.push(we>>6&63|128),this.a.push(we&63|128),te++)}else this.a.push(we>>12|224),this.a.push(we>>6&63|128),this.a.push(we&63|128)}return this.a.length-j},pt.prototype.writeString=pt.prototype.U;function Dt(O,j){this.lo=O,this.hi=j}f("jspb.arith.UInt64",Dt,void 0),Dt.prototype.cmp=function(O){return this.hi<O.hi||this.hi==O.hi&&this.lo<O.lo?-1:this.hi==O.hi&&this.lo==O.lo?0:1},Dt.prototype.cmp=Dt.prototype.cmp,Dt.prototype.La=function(){return new Dt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},Dt.prototype.rightShift=Dt.prototype.La,Dt.prototype.Da=function(){return new Dt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Dt.prototype.leftShift=Dt.prototype.Da,Dt.prototype.cb=function(){return!!(this.hi&2147483648)},Dt.prototype.msb=Dt.prototype.cb,Dt.prototype.Ob=function(){return!!(this.lo&1)},Dt.prototype.lsb=Dt.prototype.Ob,Dt.prototype.Ua=function(){return this.lo==0&&this.hi==0},Dt.prototype.zero=Dt.prototype.Ua,Dt.prototype.add=function(O){return new Dt((this.lo+O.lo&4294967295)>>>0>>>0,((this.hi+O.hi&4294967295)>>>0)+(4294967296<=this.lo+O.lo?1:0)>>>0)},Dt.prototype.add=Dt.prototype.add,Dt.prototype.sub=function(O){return new Dt((this.lo-O.lo&4294967295)>>>0>>>0,((this.hi-O.hi&4294967295)>>>0)-(0>this.lo-O.lo?1:0)>>>0)},Dt.prototype.sub=Dt.prototype.sub;function Wt(O,j){var te=O&65535;O>>>=16;var we=j&65535,Le=j>>>16;for(j=te*we+65536*(te*Le&65535)+65536*(O*we&65535),te=O*Le+(te*Le>>>16)+(O*we>>>16);4294967296<=j;)j-=4294967296,te+=1;return new Dt(j>>>0,te>>>0)}Dt.mul32x32=Wt,Dt.prototype.eb=function(O){var j=Wt(this.lo,O);return O=Wt(this.hi,O),O.hi=O.lo,O.lo=0,j.add(O)},Dt.prototype.mul=Dt.prototype.eb,Dt.prototype.Xa=function(O){if(O==0)return[];var j=new Dt(0,0),te=new Dt(this.lo,this.hi);O=new Dt(O,0);for(var we=new Dt(1,0);!O.cb();)O=O.Da(),we=we.Da();for(;!we.Ua();)0>=O.cmp(te)&&(j=j.add(we),te=te.sub(O)),O=O.La(),we=we.La();return[j,te]},Dt.prototype.div=Dt.prototype.Xa,Dt.prototype.toString=function(){for(var O="",j=this;!j.Ua();){j=j.Xa(10);var te=j[0];O=j[1].lo+O,j=te}return O==""&&(O="0"),O},Dt.prototype.toString=Dt.prototype.toString;function Et(O){for(var j=new Dt(0,0),te=new Dt(0,0),we=0;we<O.length;we++){if("0">O[we]||"9"<O[we])return null;te.lo=parseInt(O[we],10),j=j.eb(10).add(te)}return j}Dt.fromString=Et,Dt.prototype.clone=function(){return new Dt(this.lo,this.hi)},Dt.prototype.clone=Dt.prototype.clone;function yt(O,j){this.lo=O,this.hi=j}f("jspb.arith.Int64",yt,void 0),yt.prototype.add=function(O){return new yt((this.lo+O.lo&4294967295)>>>0>>>0,((this.hi+O.hi&4294967295)>>>0)+(4294967296<=this.lo+O.lo?1:0)>>>0)},yt.prototype.add=yt.prototype.add,yt.prototype.sub=function(O){return new yt((this.lo-O.lo&4294967295)>>>0>>>0,((this.hi-O.hi&4294967295)>>>0)-(0>this.lo-O.lo?1:0)>>>0)},yt.prototype.sub=yt.prototype.sub,yt.prototype.clone=function(){return new yt(this.lo,this.hi)},yt.prototype.clone=yt.prototype.clone,yt.prototype.toString=function(){var O=(this.hi&2147483648)!=0,j=new Dt(this.lo,this.hi);return O&&(j=new Dt(0,0).sub(j)),(O?"-":"")+j.toString()},yt.prototype.toString=yt.prototype.toString;function Ft(O){var j=0<O.length&&O[0]=="-";return j&&(O=O.substring(1)),O=Et(O),O===null?null:(j&&(O=new Dt(0,0).sub(O)),new yt(O.lo,O.hi))}yt.fromString=Ft;function Ae(){this.c=[],this.b=0,this.a=new pt,this.h=[]}f("jspb.BinaryWriter",Ae,void 0);function kt(O,j){var te=O.a.end();O.c.push(te),O.c.push(j),O.b+=te.length+j.length}function nt(O,j){return Tt(O,j,2),j=O.a.end(),O.c.push(j),O.b+=j.length,j.push(O.b),j}function Rt(O,j){var te=j.pop();for(te=O.b+O.a.length()-te,w(0<=te);127<te;)j.push(te&127|128),te>>>=7,O.b++;j.push(te),O.b++}Ae.prototype.pb=function(O,j,te){kt(this,O.subarray(j,te))},Ae.prototype.writeSerializedMessage=Ae.prototype.pb,Ae.prototype.Pb=function(O,j,te){O!=null&&j!=null&&te!=null&&this.pb(O,j,te)},Ae.prototype.maybeWriteSerializedMessage=Ae.prototype.Pb,Ae.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ae.prototype.reset=Ae.prototype.reset,Ae.prototype.ab=function(){w(this.h.length==0);for(var O=new Uint8Array(this.b+this.a.length()),j=this.c,te=j.length,we=0,Le=0;Le<te;Le++){var Je=j[Le];O.set(Je,we),we+=Je.length}return j=this.a.end(),O.set(j,we),we+=j.length,w(we==O.length),this.c=[O],O},Ae.prototype.getResultBuffer=Ae.prototype.ab,Ae.prototype.Kb=function(O){return H(this.ab(),O)},Ae.prototype.getResultBase64String=Ae.prototype.Kb,Ae.prototype.Va=function(O){this.h.push(nt(this,O))},Ae.prototype.beginSubMessage=Ae.prototype.Va,Ae.prototype.Ya=function(){w(0<=this.h.length),Rt(this,this.h.pop())},Ae.prototype.endSubMessage=Ae.prototype.Ya;function Tt(O,j,te){w(1<=j&&j==Math.floor(j)),O.a.j(8*j+te)}Ae.prototype.Nc=function(O,j,te){switch(O){case 1:this.J(j,te);break;case 2:this.L(j,te);break;case 3:this.T(j,te);break;case 4:this.V(j,te);break;case 5:this.S(j,te);break;case 6:this.Qa(j,te);break;case 7:this.Pa(j,te);break;case 8:this.I(j,te);break;case 9:this.U(j,te);break;case 10:R("Group field type not supported in writeAny()");break;case 11:R("Message field type not supported in writeAny()");break;case 12:this.ja(j,te);break;case 13:this.s(j,te);break;case 14:this.R(j,te);break;case 15:this.Ra(j,te);break;case 16:this.Sa(j,te);break;case 17:this.rb(j,te);break;case 18:this.sb(j,te);break;case 30:this.K(j,te);break;case 31:this.N(j,te);break;default:R("Invalid field type in writeAny()")}},Ae.prototype.writeAny=Ae.prototype.Nc;function xn(O,j,te){te!=null&&(Tt(O,j,0),O.a.j(te))}function Un(O,j,te){te!=null&&(Tt(O,j,0),O.a.M(te))}Ae.prototype.S=function(O,j){j!=null&&(w(-2147483648<=j&&2147483648>j),Un(this,O,j))},Ae.prototype.writeInt32=Ae.prototype.S,Ae.prototype.ob=function(O,j){j!=null&&(j=parseInt(j,10),w(-2147483648<=j&&2147483648>j),Un(this,O,j))},Ae.prototype.writeInt32String=Ae.prototype.ob,Ae.prototype.T=function(O,j){j!=null&&(w(-9223372036854776e3<=j&&9223372036854776e3>j),j!=null&&(Tt(this,O,0),this.a.ua(j)))},Ae.prototype.writeInt64=Ae.prototype.T,Ae.prototype.ka=function(O,j){j!=null&&(j=Ft(j),Tt(this,O,0),this.a.l(j.lo,j.hi))},Ae.prototype.writeInt64String=Ae.prototype.ka,Ae.prototype.s=function(O,j){j!=null&&(w(0<=j&&4294967296>j),xn(this,O,j))},Ae.prototype.writeUint32=Ae.prototype.s,Ae.prototype.ub=function(O,j){j!=null&&(j=parseInt(j,10),w(0<=j&&4294967296>j),xn(this,O,j))},Ae.prototype.writeUint32String=Ae.prototype.ub,Ae.prototype.V=function(O,j){j!=null&&(w(0<=j&&18446744073709552e3>j),j!=null&&(Tt(this,O,0),this.a.va(j)))},Ae.prototype.writeUint64=Ae.prototype.V,Ae.prototype.vb=function(O,j){j!=null&&(j=Et(j),Tt(this,O,0),this.a.l(j.lo,j.hi))},Ae.prototype.writeUint64String=Ae.prototype.vb,Ae.prototype.rb=function(O,j){j!=null&&(w(-2147483648<=j&&2147483648>j),j!=null&&(Tt(this,O,0),this.a.wa(j)))},Ae.prototype.writeSint32=Ae.prototype.rb,Ae.prototype.sb=function(O,j){j!=null&&(w(-9223372036854776e3<=j&&9223372036854776e3>j),j!=null&&(Tt(this,O,0),this.a.xa(j)))},Ae.prototype.writeSint64=Ae.prototype.sb,Ae.prototype.$d=function(O,j){j!=null&&j!=null&&(Tt(this,O,0),this.a.W(j))},Ae.prototype.writeSintHash64=Ae.prototype.$d,Ae.prototype.Zd=function(O,j){j!=null&&j!=null&&(Tt(this,O,0),this.a.Ta(j))},Ae.prototype.writeSint64String=Ae.prototype.Zd,Ae.prototype.Pa=function(O,j){j!=null&&(w(0<=j&&4294967296>j),Tt(this,O,5),this.a.s(j))},Ae.prototype.writeFixed32=Ae.prototype.Pa,Ae.prototype.Qa=function(O,j){j!=null&&(w(0<=j&&18446744073709552e3>j),Tt(this,O,1),this.a.V(j))},Ae.prototype.writeFixed64=Ae.prototype.Qa,Ae.prototype.nb=function(O,j){j!=null&&(j=Et(j),Tt(this,O,1),this.a.A(j.lo,j.hi))},Ae.prototype.writeFixed64String=Ae.prototype.nb,Ae.prototype.Ra=function(O,j){j!=null&&(w(-2147483648<=j&&2147483648>j),Tt(this,O,5),this.a.S(j))},Ae.prototype.writeSfixed32=Ae.prototype.Ra,Ae.prototype.Sa=function(O,j){j!=null&&(w(-9223372036854776e3<=j&&9223372036854776e3>j),Tt(this,O,1),this.a.T(j))},Ae.prototype.writeSfixed64=Ae.prototype.Sa,Ae.prototype.qb=function(O,j){j!=null&&(j=Ft(j),Tt(this,O,1),this.a.A(j.lo,j.hi))},Ae.prototype.writeSfixed64String=Ae.prototype.qb,Ae.prototype.L=function(O,j){j!=null&&(Tt(this,O,5),this.a.L(j))},Ae.prototype.writeFloat=Ae.prototype.L,Ae.prototype.J=function(O,j){j!=null&&(Tt(this,O,1),this.a.J(j))},Ae.prototype.writeDouble=Ae.prototype.J,Ae.prototype.I=function(O,j){j!=null&&(w(typeof j=="boolean"||typeof j=="number"),Tt(this,O,0),this.a.I(j))},Ae.prototype.writeBool=Ae.prototype.I,Ae.prototype.R=function(O,j){j!=null&&(w(-2147483648<=j&&2147483648>j),Tt(this,O,0),this.a.M(j))},Ae.prototype.writeEnum=Ae.prototype.R,Ae.prototype.U=function(O,j){j!=null&&(O=nt(this,O),this.a.U(j),Rt(this,O))},Ae.prototype.writeString=Ae.prototype.U,Ae.prototype.ja=function(O,j){j!=null&&(j=ve(j),Tt(this,O,2),this.a.j(j.length),kt(this,j))},Ae.prototype.writeBytes=Ae.prototype.ja,Ae.prototype.Rc=function(O,j,te){j!=null&&(O=nt(this,O),te(j,this),Rt(this,O))},Ae.prototype.writeMessage=Ae.prototype.Rc,Ae.prototype.Sc=function(O,j,te){j!=null&&(Tt(this,1,3),Tt(this,2,0),this.a.M(O),O=nt(this,3),te(j,this),Rt(this,O),Tt(this,1,4))},Ae.prototype.writeMessageSet=Ae.prototype.Sc,Ae.prototype.Oc=function(O,j,te){j!=null&&(Tt(this,O,3),te(j,this),Tt(this,O,4))},Ae.prototype.writeGroup=Ae.prototype.Oc,Ae.prototype.K=function(O,j){j!=null&&(w(j.length==8),Tt(this,O,1),this.a.K(j))},Ae.prototype.writeFixedHash64=Ae.prototype.K,Ae.prototype.N=function(O,j){j!=null&&(w(j.length==8),Tt(this,O,0),this.a.N(j))},Ae.prototype.writeVarintHash64=Ae.prototype.N,Ae.prototype.A=function(O,j,te){Tt(this,O,1),this.a.A(j,te)},Ae.prototype.writeSplitFixed64=Ae.prototype.A,Ae.prototype.l=function(O,j,te){Tt(this,O,0),this.a.l(j,te)},Ae.prototype.writeSplitVarint64=Ae.prototype.l,Ae.prototype.tb=function(O,j,te){Tt(this,O,0);var we=this.a;_e(j,te,function(Le,Je){we.l(Le>>>0,Je>>>0)})},Ae.prototype.writeSplitZigzagVarint64=Ae.prototype.tb,Ae.prototype.Ed=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)Un(this,O,j[te])},Ae.prototype.writeRepeatedInt32=Ae.prototype.Ed,Ae.prototype.Fd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.ob(O,j[te])},Ae.prototype.writeRepeatedInt32String=Ae.prototype.Fd,Ae.prototype.Gd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++){var we=j[te];we!=null&&(Tt(this,O,0),this.a.ua(we))}},Ae.prototype.writeRepeatedInt64=Ae.prototype.Gd,Ae.prototype.Qd=function(O,j,te,we){if(j!=null)for(var Le=0;Le<j.length;Le++)this.A(O,te(j[Le]),we(j[Le]))},Ae.prototype.writeRepeatedSplitFixed64=Ae.prototype.Qd,Ae.prototype.Rd=function(O,j,te,we){if(j!=null)for(var Le=0;Le<j.length;Le++)this.l(O,te(j[Le]),we(j[Le]))},Ae.prototype.writeRepeatedSplitVarint64=Ae.prototype.Rd,Ae.prototype.Sd=function(O,j,te,we){if(j!=null)for(var Le=0;Le<j.length;Le++)this.tb(O,te(j[Le]),we(j[Le]))},Ae.prototype.writeRepeatedSplitZigzagVarint64=Ae.prototype.Sd,Ae.prototype.Hd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.ka(O,j[te])},Ae.prototype.writeRepeatedInt64String=Ae.prototype.Hd,Ae.prototype.Ud=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)xn(this,O,j[te])},Ae.prototype.writeRepeatedUint32=Ae.prototype.Ud,Ae.prototype.Vd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.ub(O,j[te])},Ae.prototype.writeRepeatedUint32String=Ae.prototype.Vd,Ae.prototype.Wd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++){var we=j[te];we!=null&&(Tt(this,O,0),this.a.va(we))}},Ae.prototype.writeRepeatedUint64=Ae.prototype.Wd,Ae.prototype.Xd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.vb(O,j[te])},Ae.prototype.writeRepeatedUint64String=Ae.prototype.Xd,Ae.prototype.Md=function(O,j){if(j!=null)for(var te=0;te<j.length;te++){var we=j[te];we!=null&&(Tt(this,O,0),this.a.wa(we))}},Ae.prototype.writeRepeatedSint32=Ae.prototype.Md,Ae.prototype.Nd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++){var we=j[te];we!=null&&(Tt(this,O,0),this.a.xa(we))}},Ae.prototype.writeRepeatedSint64=Ae.prototype.Nd,Ae.prototype.Od=function(O,j){if(j!=null)for(var te=0;te<j.length;te++){var we=j[te];we!=null&&(Tt(this,O,0),this.a.Ta(we))}},Ae.prototype.writeRepeatedSint64String=Ae.prototype.Od,Ae.prototype.Pd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++){var we=j[te];we!=null&&(Tt(this,O,0),this.a.W(we))}},Ae.prototype.writeRepeatedSintHash64=Ae.prototype.Pd,Ae.prototype.yd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.Pa(O,j[te])},Ae.prototype.writeRepeatedFixed32=Ae.prototype.yd,Ae.prototype.zd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.Qa(O,j[te])},Ae.prototype.writeRepeatedFixed64=Ae.prototype.zd,Ae.prototype.Ad=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.nb(O,j[te])},Ae.prototype.writeRepeatedFixed64String=Ae.prototype.Ad,Ae.prototype.Jd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.Ra(O,j[te])},Ae.prototype.writeRepeatedSfixed32=Ae.prototype.Jd,Ae.prototype.Kd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.Sa(O,j[te])},Ae.prototype.writeRepeatedSfixed64=Ae.prototype.Kd,Ae.prototype.Ld=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.qb(O,j[te])},Ae.prototype.writeRepeatedSfixed64String=Ae.prototype.Ld,Ae.prototype.Cd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.L(O,j[te])},Ae.prototype.writeRepeatedFloat=Ae.prototype.Cd,Ae.prototype.wd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.J(O,j[te])},Ae.prototype.writeRepeatedDouble=Ae.prototype.wd,Ae.prototype.ud=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.I(O,j[te])},Ae.prototype.writeRepeatedBool=Ae.prototype.ud,Ae.prototype.xd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.R(O,j[te])},Ae.prototype.writeRepeatedEnum=Ae.prototype.xd,Ae.prototype.Td=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.U(O,j[te])},Ae.prototype.writeRepeatedString=Ae.prototype.Td,Ae.prototype.vd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.ja(O,j[te])},Ae.prototype.writeRepeatedBytes=Ae.prototype.vd,Ae.prototype.Id=function(O,j,te){if(j!=null)for(var we=0;we<j.length;we++){var Le=nt(this,O);te(j[we],this),Rt(this,Le)}},Ae.prototype.writeRepeatedMessage=Ae.prototype.Id,Ae.prototype.Dd=function(O,j,te){if(j!=null)for(var we=0;we<j.length;we++)Tt(this,O,3),te(j[we],this),Tt(this,O,4)},Ae.prototype.writeRepeatedGroup=Ae.prototype.Dd,Ae.prototype.Bd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.K(O,j[te])},Ae.prototype.writeRepeatedFixedHash64=Ae.prototype.Bd,Ae.prototype.Yd=function(O,j){if(j!=null)for(var te=0;te<j.length;te++)this.N(O,j[te])},Ae.prototype.writeRepeatedVarintHash64=Ae.prototype.Yd,Ae.prototype.ad=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.M(j[te]);Rt(this,O)}},Ae.prototype.writePackedInt32=Ae.prototype.ad,Ae.prototype.bd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.M(parseInt(j[te],10));Rt(this,O)}},Ae.prototype.writePackedInt32String=Ae.prototype.bd,Ae.prototype.cd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.ua(j[te]);Rt(this,O)}},Ae.prototype.writePackedInt64=Ae.prototype.cd,Ae.prototype.md=function(O,j,te,we){if(j!=null){O=nt(this,O);for(var Le=0;Le<j.length;Le++)this.a.A(te(j[Le]),we(j[Le]));Rt(this,O)}},Ae.prototype.writePackedSplitFixed64=Ae.prototype.md,Ae.prototype.nd=function(O,j,te,we){if(j!=null){O=nt(this,O);for(var Le=0;Le<j.length;Le++)this.a.l(te(j[Le]),we(j[Le]));Rt(this,O)}},Ae.prototype.writePackedSplitVarint64=Ae.prototype.nd,Ae.prototype.od=function(O,j,te,we){if(j!=null){O=nt(this,O);for(var Le=this.a,Je=0;Je<j.length;Je++)_e(te(j[Je]),we(j[Je]),function(At,dn){Le.l(At>>>0,dn>>>0)});Rt(this,O)}},Ae.prototype.writePackedSplitZigzagVarint64=Ae.prototype.od,Ae.prototype.dd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++){var we=Ft(j[te]);this.a.l(we.lo,we.hi)}Rt(this,O)}},Ae.prototype.writePackedInt64String=Ae.prototype.dd,Ae.prototype.pd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.j(j[te]);Rt(this,O)}},Ae.prototype.writePackedUint32=Ae.prototype.pd,Ae.prototype.qd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.j(parseInt(j[te],10));Rt(this,O)}},Ae.prototype.writePackedUint32String=Ae.prototype.qd,Ae.prototype.rd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.va(j[te]);Rt(this,O)}},Ae.prototype.writePackedUint64=Ae.prototype.rd,Ae.prototype.sd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++){var we=Et(j[te]);this.a.l(we.lo,we.hi)}Rt(this,O)}},Ae.prototype.writePackedUint64String=Ae.prototype.sd,Ae.prototype.hd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.wa(j[te]);Rt(this,O)}},Ae.prototype.writePackedSint32=Ae.prototype.hd,Ae.prototype.jd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.xa(j[te]);Rt(this,O)}},Ae.prototype.writePackedSint64=Ae.prototype.jd,Ae.prototype.kd=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.W(X(j[te]));Rt(this,O)}},Ae.prototype.writePackedSint64String=Ae.prototype.kd,Ae.prototype.ld=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.W(j[te]);Rt(this,O)}},Ae.prototype.writePackedSintHash64=Ae.prototype.ld,Ae.prototype.Wc=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.s(j[O])},Ae.prototype.writePackedFixed32=Ae.prototype.Wc,Ae.prototype.Xc=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.V(j[O])},Ae.prototype.writePackedFixed64=Ae.prototype.Xc,Ae.prototype.Yc=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++){var te=Et(j[O]);this.a.A(te.lo,te.hi)}},Ae.prototype.writePackedFixed64String=Ae.prototype.Yc,Ae.prototype.ed=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.S(j[O])},Ae.prototype.writePackedSfixed32=Ae.prototype.ed,Ae.prototype.fd=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.T(j[O])},Ae.prototype.writePackedSfixed64=Ae.prototype.fd,Ae.prototype.gd=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.ka(j[O])},Ae.prototype.writePackedSfixed64String=Ae.prototype.gd,Ae.prototype.$c=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.L(j[O])},Ae.prototype.writePackedFloat=Ae.prototype.$c,Ae.prototype.Uc=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.J(j[O])},Ae.prototype.writePackedDouble=Ae.prototype.Uc,Ae.prototype.Tc=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(j.length),O=0;O<j.length;O++)this.a.I(j[O])},Ae.prototype.writePackedBool=Ae.prototype.Tc,Ae.prototype.Vc=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.R(j[te]);Rt(this,O)}},Ae.prototype.writePackedEnum=Ae.prototype.Vc,Ae.prototype.Zc=function(O,j){if(j!=null&&j.length)for(Tt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.K(j[O])},Ae.prototype.writePackedFixedHash64=Ae.prototype.Zc,Ae.prototype.td=function(O,j){if(j!=null&&j.length){O=nt(this,O);for(var te=0;te<j.length;te++)this.a.N(j[te]);Rt(this,O)}},Ae.prototype.writePackedVarintHash64=Ae.prototype.td,e.debug=on,e.Map=P,e.Message=We,e.BinaryReader=me,e.BinaryWriter=Ae,e.ExtensionFieldInfo=qe,e.ExtensionFieldBinaryInfo=Ge,e.exportSymbol=g,e.inherits=v,e.object={extend:_},e.typeOf=p})(Sn);const eze=yi(Sn),NW=jP({__proto__:null,default:eze},[Sn]);var MW=NW,y7=(function(){return this?this:typeof window<"u"?window:typeof y7<"u"?y7:typeof self<"u"?self:Function("return this")()}).call(null);MW.exportSymbol("proto.User",null,y7);proto.User=function(e){Sn.Message.initialize(this,e,0,-1,null,null)};MW.inherits(proto.User,Sn.Message);MW.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");Sn.Message.GENERATE_TO_OBJECT&&(proto.User.prototype.toObject=function(e){return proto.User.toObject(e,this)},proto.User.toObject=function(e,t){var n={uid:Sn.Message.getFieldWithDefault(t,1,""),nickname:Sn.Message.getFieldWithDefault(t,2,""),avatar:Sn.Message.getFieldWithDefault(t,3,""),type:Sn.Message.getFieldWithDefault(t,4,""),extra:Sn.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n});proto.User.deserializeBinary=function(e){var t=new Sn.BinaryReader(e),n=new proto.User;return proto.User.deserializeBinaryFromReader(n,t)};proto.User.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setNickname(r);break;case 3:var r=t.readString();e.setAvatar(r);break;case 4:var r=t.readString();e.setType(r);break;case 5:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.User.prototype.serializeBinary=function(){var e=new Sn.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.User.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return Sn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Sn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Sn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Sn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Sn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Sn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Sn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Sn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Sn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Sn.Message.setProto3StringField(this,5,e)};const une=proto;var AW=NW,b7=(function(){return this?this:typeof window<"u"?window:typeof b7<"u"?b7:typeof self<"u"?self:Function("return this")()}).call(null);AW.exportSymbol("proto.Thread",null,b7);proto.Thread=function(e){Sn.Message.initialize(this,e,0,-1,null,null)};AW.inherits(proto.Thread,Sn.Message);AW.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Sn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:Sn.Message.getFieldWithDefault(t,1,""),topic:Sn.Message.getFieldWithDefault(t,2,""),type:Sn.Message.getFieldWithDefault(t,3,""),state:Sn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Sn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new Sn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Sn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return Sn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Sn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Sn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Sn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Sn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Sn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Sn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Sn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Sn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Sn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Sn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return Sn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return Sn.Message.setProto3StringField(this,6,e)};const tze=proto;var PW=NW,S7=(function(){return this?this:typeof window<"u"?window:typeof S7<"u"?S7:typeof self<"u"?self:Function("return this")()}).call(null);PW.exportSymbol("proto.Message",null,S7);proto.Message=function(e){Sn.Message.initialize(this,e,0,-1,null,null)};PW.inherits(proto.Message,Sn.Message);PW.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Sn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:Sn.Message.getFieldWithDefault(t,1,""),type:Sn.Message.getFieldWithDefault(t,2,""),content:Sn.Message.getFieldWithDefault(t,3,""),status:Sn.Message.getFieldWithDefault(t,4,""),createdat:Sn.Message.getFieldWithDefault(t,5,""),client:Sn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Sn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new Sn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Sn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return Sn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Sn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Sn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Sn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Sn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Sn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Sn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Sn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Sn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Sn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Sn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Sn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Sn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Sn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Sn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Sn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Sn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Sn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Sn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Sn.Message.setProto3StringField(this,9,e)};const wEe=proto,nze="modulepreload",rze=function(e){return"/agenticflow/"+e},dne={},ize=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=rze(l),l in dne)return;dne[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":nze,c||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),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 ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};//! moment.js
|
||
//! version : 2.30.1
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var xEe;function bn(){return xEe.apply(null,arguments)}function oze(e){xEe=e}function ed(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ev(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function li(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function DW(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(li(e,t))return!1;return!0}function el(e){return e===void 0}function yp(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function mx(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function TEe(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Wm(e,t){for(var n in t)li(t,n)&&(e[n]=t[n]);return li(t,"toString")&&(e.toString=t.toString),li(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ff(e,t,n,r){return KEe(e,t,n,r,!0).utc()}function aze(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Mr(e){return e._pf==null&&(e._pf=aze()),e._pf}var E7;Array.prototype.some?E7=Array.prototype.some:E7=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function kW(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Mr(e),n=E7.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function L2(e){var t=ff(NaN);return e!=null?Wm(Mr(t),e):Mr(t).userInvalidated=!0,t}var fne=bn.momentProperties=[],_4=!1;function LW(e,t){var n,r,i,o=fne.length;if(el(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),el(t._i)||(e._i=t._i),el(t._f)||(e._f=t._f),el(t._l)||(e._l=t._l),el(t._strict)||(e._strict=t._strict),el(t._tzm)||(e._tzm=t._tzm),el(t._isUTC)||(e._isUTC=t._isUTC),el(t._offset)||(e._offset=t._offset),el(t._pf)||(e._pf=Mr(t)),el(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=fne[n],i=t[r],el(i)||(e[r]=i);return e}function hx(e){LW(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_4===!1&&(_4=!0,bn.updateOffset(this),_4=!1)}function td(e){return e instanceof hx||e!=null&&e._isAMomentObject!=null}function REe(e){bn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function nu(e,t){var n=!0;return Wm(function(){if(bn.deprecationHandler!=null&&bn.deprecationHandler(null,e),n){var r=[],i,o,a,s=arguments.length;for(o=0;o<s;o++){if(i="",typeof arguments[o]=="object"){i+=`
|
||
[`+o+"] ";for(a in arguments[0])li(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}REe(e+`
|
||
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
||
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var pne={};function OEe(e,t){bn.deprecationHandler!=null&&bn.deprecationHandler(e,t),pne[e]||(REe(t),pne[e]=!0)}bn.suppressDeprecationWarnings=!1;bn.deprecationHandler=null;function pf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function sze(e){var t,n;for(n in e)li(e,n)&&(t=e[n],pf(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C7(e,t){var n=Wm({},e),r;for(r in t)li(t,r)&&(Ev(e[r])&&Ev(t[r])?(n[r]={},Wm(n[r],e[r]),Wm(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)li(e,r)&&!li(t,r)&&Ev(e[r])&&(n[r]=Wm({},n[r]));return n}function $W(e){e!=null&&this.set(e)}var w7;Object.keys?w7=Object.keys:w7=function(e){var t,n=[];for(t in e)li(e,t)&&n.push(t);return n};var lze={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function cze(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return pf(r)?r.call(t,n):r}function tf(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var FW=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,HR=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y4={},vb={};function Zn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(vb[e]=i),t&&(vb[t[0]]=function(){return tf(i.apply(this,arguments),t[1],t[2])}),n&&(vb[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function uze(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function dze(e){var t=e.match(FW),n,r;for(n=0,r=t.length;n<r;n++)vb[t[n]]?t[n]=vb[t[n]]:t[n]=uze(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=pf(t[a])?t[a].call(i,e):t[a];return o}}function HI(e,t){return e.isValid()?(t=IEe(t,e.localeData()),y4[t]=y4[t]||dze(t),y4[t](e)):e.localeData().invalidDate()}function IEe(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(HR.lastIndex=0;n>=0&&HR.test(e);)e=e.replace(HR,r),HR.lastIndex=0,n-=1;return e}var fze={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"};function pze(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(FW).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var mze="Invalid date";function hze(){return this._invalidDate}var gze="%d",vze=/\d{1,2}/;function _ze(e){return this._ordinal.replace("%d",e)}var yze={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function bze(e,t,n,r){var i=this._relativeTime[n];return pf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Sze(e,t){var n=this._relativeTime[e>0?"future":"past"];return pf(n)?n(t):n.replace(/%s/i,t)}var mne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ru(e){return typeof e=="string"?mne[e]||mne[e.toLowerCase()]:void 0}function BW(e){var t={},n,r;for(r in e)li(e,r)&&(n=ru(r),n&&(t[n]=e[r]));return t}var Eze={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Cze(e){var t=[],n;for(n in e)li(e,n)&&t.push({unit:n,priority:Eze[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var NEe=/\d/,lc=/\d\d/,MEe=/\d{3}/,UW=/\d{4}/,$2=/[+-]?\d{6}/,Ki=/\d\d?/,AEe=/\d\d\d\d?/,PEe=/\d\d\d\d\d\d?/,F2=/\d{1,3}/,jW=/\d{1,4}/,B2=/[+-]?\d{1,6}/,J0=/\d+/,U2=/[+-]?\d+/,wze=/Z|[+-]\d\d:?\d\d/gi,j2=/Z|[+-]\d\d(?::?\d\d)?/gi,xze=/[+-]?\d+(\.\d{1,3})?/,gx=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,eS=/^[1-9]\d?/,HW=/^([1-9]\d|\d)/,PM;PM={};function kn(e,t,n){PM[e]=pf(t)?t:function(r,i){return r&&n?n:t}}function Tze(e,t){return li(PM,e)?PM[e](t._strict,t._locale):new RegExp(Rze(e))}function Rze(e){return np(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function np(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function kc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=kc(t)),n}var x7={};function Ii(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),yp(t)&&(r=function(o,a){a[t]=Vr(o)}),i=e.length,n=0;n<i;n++)x7[e[n]]=r}function vx(e,t){Ii(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Oze(e,t,n){t!=null&&li(x7,e)&&x7[e](t,n._a,n,e)}function H2(e){return e%4===0&&e%100!==0||e%400===0}var ms=0,Qf=1,Bd=2,ha=3,Lu=4,Xf=5,ev=6,Ize=7,Nze=8;Zn("Y",0,0,function(){var e=this.year();return e<=9999?tf(e,4):"+"+e});Zn(0,["YY",2],0,function(){return this.year()%100});Zn(0,["YYYY",4],0,"year");Zn(0,["YYYYY",5],0,"year");Zn(0,["YYYYYY",6,!0],0,"year");kn("Y",U2);kn("YY",Ki,lc);kn("YYYY",jW,UW);kn("YYYYY",B2,$2);kn("YYYYYY",B2,$2);Ii(["YYYYY","YYYYYY"],ms);Ii("YYYY",function(e,t){t[ms]=e.length===2?bn.parseTwoDigitYear(e):Vr(e)});Ii("YY",function(e,t){t[ms]=bn.parseTwoDigitYear(e)});Ii("Y",function(e,t){t[ms]=parseInt(e,10)});function UC(e){return H2(e)?366:365}bn.parseTwoDigitYear=function(e){return Vr(e)+(Vr(e)>68?1900:2e3)};var DEe=tS("FullYear",!0);function Mze(){return H2(this.year())}function tS(e,t){return function(n){return n!=null?(kEe(this,e,n),bn.updateOffset(this,t),this):H1(this,e)}}function H1(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function kEe(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!H2(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Aze(e){return e=ru(e),pf(this[e])?this[e]():this}function Pze(e,t){if(typeof e=="object"){e=BW(e);var n=Cze(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=ru(e),pf(this[e]))return this[e](t);return this}function Dze(e,t){return(e%t+t)%t}var Fo;Array.prototype.indexOf?Fo=Array.prototype.indexOf:Fo=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function zW(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Dze(t,12);return e+=(t-n)/12,n===1?H2(e)?29:28:31-n%7%2}Zn("M",["MM",2],"Mo",function(){return this.month()+1});Zn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Zn("MMMM",0,0,function(e){return this.localeData().months(this,e)});kn("M",Ki,eS);kn("MM",Ki,lc);kn("MMM",function(e,t){return t.monthsShortRegex(e)});kn("MMMM",function(e,t){return t.monthsRegex(e)});Ii(["M","MM"],function(e,t){t[Qf]=Vr(e)-1});Ii(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Qf]=i:Mr(n).invalidMonth=e});var kze="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),LEe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lze=gx,$ze=gx;function Fze(e,t){return e?ed(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$Ee).test(t)?"format":"standalone"][e.month()]:ed(this._months)?this._months:this._months.standalone}function Bze(e,t){return e?ed(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$Ee.test(t)?"format":"standalone"][e.month()]:ed(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Uze(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=ff([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=Fo.call(this._shortMonthsParse,a),i!==-1?i:null):(i=Fo.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=Fo.call(this._shortMonthsParse,a),i!==-1?i:(i=Fo.call(this._longMonthsParse,a),i!==-1?i:null)):(i=Fo.call(this._longMonthsParse,a),i!==-1?i:(i=Fo.call(this._shortMonthsParse,a),i!==-1?i:null))}function jze(e,t,n){var r,i,o;if(this._monthsParseExact)return Uze.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=ff([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function FEe(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Vr(t);else if(t=e.localeData().monthsParse(t),!yp(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,zW(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function BEe(e){return e!=null?(FEe(this,e),bn.updateOffset(this,!0),this):H1(this,"Month")}function Hze(){return zW(this.year(),this.month())}function zze(e){return this._monthsParseExact?(li(this,"_monthsRegex")||UEe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(li(this,"_monthsShortRegex")||(this._monthsShortRegex=Lze),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Vze(e){return this._monthsParseExact?(li(this,"_monthsRegex")||UEe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(li(this,"_monthsRegex")||(this._monthsRegex=$ze),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function UEe(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++)o=ff([2e3,i]),a=np(this.monthsShort(o,"")),s=np(this.months(o,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Gze(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function z1(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function DM(e,t,n){var r=7+t-n,i=(7+z1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function jEe(e,t,n,r,i){var o=(7+n-r)%7,a=DM(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=UC(l)+s):s>UC(e)?(l=e+1,c=s-UC(e)):(l=e,c=s),{year:l,dayOfYear:c}}function V1(e,t,n){var r=DM(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+rp(a,t,n)):i>rp(e.year(),t,n)?(o=i-rp(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function rp(e,t,n){var r=DM(e,t,n),i=DM(e+1,t,n);return(UC(e)-r+i)/7}Zn("w",["ww",2],"wo","week");Zn("W",["WW",2],"Wo","isoWeek");kn("w",Ki,eS);kn("ww",Ki,lc);kn("W",Ki,eS);kn("WW",Ki,lc);vx(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vr(e)});function Wze(e){return V1(e,this._week.dow,this._week.doy).week}var Yze={dow:0,doy:6};function qze(){return this._week.dow}function Kze(){return this._week.doy}function Qze(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Xze(e){var t=V1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Zn("d",0,"do","day");Zn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Zn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Zn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Zn("e",0,0,"weekday");Zn("E",0,0,"isoWeekday");kn("d",Ki);kn("e",Ki);kn("E",Ki);kn("dd",function(e,t){return t.weekdaysMinRegex(e)});kn("ddd",function(e,t){return t.weekdaysShortRegex(e)});kn("dddd",function(e,t){return t.weekdaysRegex(e)});vx(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Mr(n).invalidWeekday=e});vx(["d","e","E"],function(e,t,n,r){t[r]=Vr(e)});function Zze(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Jze(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function VW(e,t){return e.slice(t,7).concat(e.slice(0,t))}var eVe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),HEe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tVe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),nVe=gx,rVe=gx,iVe=gx;function oVe(e,t){var n=ed(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?VW(n,this._week.dow):e?n[e.day()]:n}function aVe(e){return e===!0?VW(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sVe(e){return e===!0?VW(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function lVe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=ff([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Fo.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Fo.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Fo.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Fo.call(this._weekdaysParse,a),i!==-1||(i=Fo.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Fo.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Fo.call(this._shortWeekdaysParse,a),i!==-1||(i=Fo.call(this._weekdaysParse,a),i!==-1)?i:(i=Fo.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Fo.call(this._minWeekdaysParse,a),i!==-1||(i=Fo.call(this._weekdaysParse,a),i!==-1)?i:(i=Fo.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function cVe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return lVe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=ff([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function uVe(e){if(!this.isValid())return e!=null?this:NaN;var t=H1(this,"Day");return e!=null?(e=Zze(e,this.localeData()),this.add(e-t,"d")):t}function dVe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function fVe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Jze(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function pVe(e){return this._weekdaysParseExact?(li(this,"_weekdaysRegex")||GW.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(li(this,"_weekdaysRegex")||(this._weekdaysRegex=nVe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function mVe(e){return this._weekdaysParseExact?(li(this,"_weekdaysRegex")||GW.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(li(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=rVe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function hVe(e){return this._weekdaysParseExact?(li(this,"_weekdaysRegex")||GW.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(li(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=iVe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function GW(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=ff([2e3,1]).day(o),s=np(this.weekdaysMin(a,"")),l=np(this.weekdaysShort(a,"")),c=np(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function WW(){return this.hours()%12||12}function gVe(){return this.hours()||24}Zn("H",["HH",2],0,"hour");Zn("h",["hh",2],0,WW);Zn("k",["kk",2],0,gVe);Zn("hmm",0,0,function(){return""+WW.apply(this)+tf(this.minutes(),2)});Zn("hmmss",0,0,function(){return""+WW.apply(this)+tf(this.minutes(),2)+tf(this.seconds(),2)});Zn("Hmm",0,0,function(){return""+this.hours()+tf(this.minutes(),2)});Zn("Hmmss",0,0,function(){return""+this.hours()+tf(this.minutes(),2)+tf(this.seconds(),2)});function zEe(e,t){Zn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zEe("a",!0);zEe("A",!1);function VEe(e,t){return t._meridiemParse}kn("a",VEe);kn("A",VEe);kn("H",Ki,HW);kn("h",Ki,eS);kn("k",Ki,eS);kn("HH",Ki,lc);kn("hh",Ki,lc);kn("kk",Ki,lc);kn("hmm",AEe);kn("hmmss",PEe);kn("Hmm",AEe);kn("Hmmss",PEe);Ii(["H","HH"],ha);Ii(["k","kk"],function(e,t,n){var r=Vr(e);t[ha]=r===24?0:r});Ii(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Ii(["h","hh"],function(e,t,n){t[ha]=Vr(e),Mr(n).bigHour=!0});Ii("hmm",function(e,t,n){var r=e.length-2;t[ha]=Vr(e.substr(0,r)),t[Lu]=Vr(e.substr(r)),Mr(n).bigHour=!0});Ii("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ha]=Vr(e.substr(0,r)),t[Lu]=Vr(e.substr(r,2)),t[Xf]=Vr(e.substr(i)),Mr(n).bigHour=!0});Ii("Hmm",function(e,t,n){var r=e.length-2;t[ha]=Vr(e.substr(0,r)),t[Lu]=Vr(e.substr(r))});Ii("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ha]=Vr(e.substr(0,r)),t[Lu]=Vr(e.substr(r,2)),t[Xf]=Vr(e.substr(i))});function vVe(e){return(e+"").toLowerCase().charAt(0)==="p"}var _Ve=/[ap]\.?m?\.?/i,yVe=tS("Hours",!0);function bVe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var GEe={calendar:lze,longDateFormat:fze,invalidDate:mze,ordinal:gze,dayOfMonthOrdinalParse:vze,relativeTime:yze,months:kze,monthsShort:LEe,week:Yze,weekdays:eVe,weekdaysMin:tVe,weekdaysShort:HEe,meridiemParse:_Ve},to={},yE={},G1;function SVe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hne(e){return e&&e.toLowerCase().replace("_","-")}function EVe(e){for(var t=0,n,r,i,o;t<e.length;){for(o=hne(e[t]).split("-"),n=o.length,r=hne(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=z2(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&SVe(o,r)>=n-1)break;n--}t++}return G1}function CVe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function z2(e){var t=null,n;if(to[e]===void 0&&typeof module<"u"&&module&&module.exports&&CVe(e))try{t=G1._abbr,n=require,n("./locale/"+e),ph(t)}catch{to[e]=null}return to[e]}function ph(e,t){var n;return e&&(el(t)?n=Mp(e):n=YW(e,t),n?G1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),G1._abbr}function YW(e,t){if(t!==null){var n,r=GEe;if(t.abbr=e,to[e]!=null)OEe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=to[e]._config;else if(t.parentLocale!=null)if(to[t.parentLocale]!=null)r=to[t.parentLocale]._config;else if(n=z2(t.parentLocale),n!=null)r=n._config;else return yE[t.parentLocale]||(yE[t.parentLocale]=[]),yE[t.parentLocale].push({name:e,config:t}),null;return to[e]=new $W(C7(r,t)),yE[e]&&yE[e].forEach(function(i){YW(i.name,i.config)}),ph(e),to[e]}else return delete to[e],null}function wVe(e,t){if(t!=null){var n,r,i=GEe;to[e]!=null&&to[e].parentLocale!=null?to[e].set(C7(to[e]._config,t)):(r=z2(e),r!=null&&(i=r._config),t=C7(i,t),r==null&&(t.abbr=e),n=new $W(t),n.parentLocale=to[e],to[e]=n),ph(e)}else to[e]!=null&&(to[e].parentLocale!=null?(to[e]=to[e].parentLocale,e===ph()&&ph(e)):to[e]!=null&&delete to[e]);return to[e]}function Mp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return G1;if(!ed(e)){if(t=z2(e),t)return t;e=[e]}return EVe(e)}function xVe(){return w7(to)}function qW(e){var t,n=e._a;return n&&Mr(e).overflow===-2&&(t=n[Qf]<0||n[Qf]>11?Qf:n[Bd]<1||n[Bd]>zW(n[ms],n[Qf])?Bd:n[ha]<0||n[ha]>24||n[ha]===24&&(n[Lu]!==0||n[Xf]!==0||n[ev]!==0)?ha:n[Lu]<0||n[Lu]>59?Lu:n[Xf]<0||n[Xf]>59?Xf:n[ev]<0||n[ev]>999?ev:-1,Mr(e)._overflowDayOfYear&&(t<ms||t>Bd)&&(t=Bd),Mr(e)._overflowWeeks&&t===-1&&(t=Ize),Mr(e)._overflowWeekday&&t===-1&&(t=Nze),Mr(e).overflow=t),e}var TVe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,RVe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,OVe=/Z|[+-]\d\d(?::?\d\d)?/,zR=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],IVe=/^\/?Date\((-?\d+)/i,NVe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,MVe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function WEe(e){var t,n,r=e._i,i=TVe.exec(r)||RVe.exec(r),o,a,s,l,c=zR.length,u=b4.length;if(i){for(Mr(e).iso=!0,t=0,n=c;t<n;t++)if(zR[t][1].exec(i[1])){a=zR[t][0],o=zR[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(b4[t][1].exec(i[3])){s=(i[2]||" ")+b4[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(OVe.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),QW(e)}else e._isValid=!1}function AVe(e,t,n,r,i,o){var a=[PVe(e),LEe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function PVe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function DVe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kVe(e,t,n){if(e){var r=HEe.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Mr(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function LVe(e,t,n){if(e)return MVe[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function YEe(e){var t=NVe.exec(DVe(e._i)),n;if(t){if(n=AVe(t[4],t[3],t[2],t[5],t[6],t[7]),!kVe(t[1],n,e))return;e._a=n,e._tzm=LVe(t[8],t[9],t[10]),e._d=z1.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Mr(e).rfc2822=!0}else e._isValid=!1}function $Ve(e){var t=IVe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(WEe(e),e._isValid===!1)delete e._isValid;else return;if(YEe(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:bn.createFromInputFallback(e)}bn.createFromInputFallback=nu("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Fy(e,t,n){return e??t??n}function FVe(e){var t=new Date(bn.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function KW(e){var t,n,r=[],i,o,a;if(!e._d){for(i=FVe(e),e._w&&e._a[Bd]==null&&e._a[Qf]==null&&BVe(e),e._dayOfYear!=null&&(a=Fy(e._a[ms],i[ms]),(e._dayOfYear>UC(a)||e._dayOfYear===0)&&(Mr(e)._overflowDayOfYear=!0),n=z1(a,0,e._dayOfYear),e._a[Qf]=n.getUTCMonth(),e._a[Bd]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ha]===24&&e._a[Lu]===0&&e._a[Xf]===0&&e._a[ev]===0&&(e._nextDay=!0,e._a[ha]=0),e._d=(e._useUTC?z1:Gze).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ha]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Mr(e).weekdayMismatch=!0)}}function BVe(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=Fy(t.GG,e._a[ms],V1(qi(),1,4).year),r=Fy(t.W,1),i=Fy(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=V1(qi(),o,a),n=Fy(t.gg,e._a[ms],c.year),r=Fy(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>rp(n,o,a)?Mr(e)._overflowWeeks=!0:l!=null?Mr(e)._overflowWeekday=!0:(s=jEe(n,r,i,o,a),e._a[ms]=s.year,e._dayOfYear=s.dayOfYear)}bn.ISO_8601=function(){};bn.RFC_2822=function(){};function QW(e){if(e._f===bn.ISO_8601){WEe(e);return}if(e._f===bn.RFC_2822){YEe(e);return}e._a=[],Mr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=IEe(e._f,e._locale).match(FW)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(Tze(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&Mr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),vb[o]?(r?Mr(e).empty=!1:Mr(e).unusedTokens.push(o),Oze(o,r,e)):e._strict&&!r&&Mr(e).unusedTokens.push(o);Mr(e).charsLeftOver=s-l,t.length>0&&Mr(e).unusedInput.push(t),e._a[ha]<=12&&Mr(e).bigHour===!0&&e._a[ha]>0&&(Mr(e).bigHour=void 0),Mr(e).parsedDateParts=e._a.slice(0),Mr(e).meridiem=e._meridiem,e._a[ha]=UVe(e._locale,e._a[ha],e._meridiem),c=Mr(e).era,c!==null&&(e._a[ms]=e._locale.erasConvertYear(c,e._a[ms])),KW(e),qW(e)}function UVe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function jVe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Mr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=LW({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],QW(t),kW(t)&&(a=!0),o+=Mr(t).charsLeftOver,o+=Mr(t).unusedTokens.length*10,Mr(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));Wm(e,n||t)}function HVe(e){if(!e._d){var t=BW(e._i),n=t.day===void 0?t.date:t.day;e._a=TEe([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),KW(e)}}function zVe(e){var t=new hx(qW(qEe(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qEe(e){var t=e._i,n=e._f;return e._locale=e._locale||Mp(e._l),t===null||n===void 0&&t===""?L2({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),td(t)?new hx(qW(t)):(mx(t)?e._d=t:ed(n)?jVe(e):n?QW(e):VVe(e),kW(e)||(e._d=null),e))}function VVe(e){var t=e._i;el(t)?e._d=new Date(bn.now()):mx(t)?e._d=new Date(t.valueOf()):typeof t=="string"?$Ve(e):ed(t)?(e._a=TEe(t.slice(0),function(n){return parseInt(n,10)}),KW(e)):Ev(t)?HVe(e):yp(t)?e._d=new Date(t):bn.createFromInputFallback(e)}function KEe(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ev(e)&&DW(e)||ed(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,zVe(o)}function qi(e,t,n,r){return KEe(e,t,n,r,!1)}var GVe=nu("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:L2()}),WVe=nu("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:L2()});function QEe(e,t){var n,r;if(t.length===1&&ed(t[0])&&(t=t[0]),!t.length)return qi();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function YVe(){var e=[].slice.call(arguments,0);return QEe("isBefore",e)}function qVe(){var e=[].slice.call(arguments,0);return QEe("isAfter",e)}var KVe=function(){return Date.now?Date.now():+new Date},bE=["year","quarter","month","week","day","hour","minute","second","millisecond"];function QVe(e){var t,n=!1,r,i=bE.length;for(t in e)if(li(e,t)&&!(Fo.call(bE,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[bE[r]]){if(n)return!1;parseFloat(e[bE[r]])!==Vr(e[bE[r]])&&(n=!0)}return!0}function XVe(){return this._isValid}function ZVe(){return dd(NaN)}function V2(e){var t=BW(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=QVe(t),this._milliseconds=+u+c*1e3+l*6e4+s*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=Mp(),this._bubble()}function zI(e){return e instanceof V2}function T7(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function JVe(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)Vr(e[a])!==Vr(t[a])&&o++;return o+i}function XEe(e,t){Zn(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+tf(~~(n/60),2)+t+tf(~~n%60,2)})}XEe("Z",":");XEe("ZZ","");kn("Z",j2);kn("ZZ",j2);Ii(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=XW(j2,e)});var eGe=/([\+\-]|\d\d)/gi;function XW(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(eGe)||["-",0,0],o=+(i[1]*60)+Vr(i[2]),o===0?0:i[0]==="+"?o:-o)}function ZW(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(td(e)||mx(e)?e.valueOf():qi(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),bn.updateOffset(n,!1),n):qi(e).local()}function R7(e){return-Math.round(e._d.getTimezoneOffset())}bn.updateOffset=function(){};function tGe(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=XW(j2,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=R7(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?eCe(this,dd(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,bn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:R7(this)}function nGe(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function rGe(e){return this.utcOffset(0,e)}function iGe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(R7(this),"m")),this}function oGe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=XW(wze,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function aGe(e){return this.isValid()?(e=e?qi(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function sGe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function lGe(){if(!el(this._isDSTShifted))return this._isDSTShifted;var e={},t;return LW(e,this),e=qEe(e),e._a?(t=e._isUTC?ff(e._a):qi(e._a),this._isDSTShifted=this.isValid()&&JVe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function cGe(){return this.isValid()?!this._isUTC:!1}function uGe(){return this.isValid()?this._isUTC:!1}function ZEe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var dGe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fGe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function dd(e,t){var n=e,r=null,i,o,a;return zI(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:yp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=dGe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Vr(r[Bd])*i,h:Vr(r[ha])*i,m:Vr(r[Lu])*i,s:Vr(r[Xf])*i,ms:Vr(T7(r[ev]*1e3))*i}):(r=fGe.exec(e))?(i=r[1]==="-"?-1:1,n={y:wg(r[2],i),M:wg(r[3],i),w:wg(r[4],i),d:wg(r[5],i),h:wg(r[6],i),m:wg(r[7],i),s:wg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=pGe(qi(n.from),qi(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new V2(n),zI(e)&&li(e,"_locale")&&(o._locale=e._locale),zI(e)&&li(e,"_isValid")&&(o._isValid=e._isValid),o}dd.fn=V2.prototype;dd.invalid=ZVe;function wg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function gne(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function pGe(e,t){var n;return e.isValid()&&t.isValid()?(t=ZW(t,e),e.isBefore(t)?n=gne(e,t):(n=gne(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function JEe(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(OEe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=dd(n,r),eCe(this,i,e),this}}function eCe(e,t,n,r){var i=t._milliseconds,o=T7(t._days),a=T7(t._months);e.isValid()&&(r=r??!0,a&&FEe(e,H1(e,"Month")+a*n),o&&kEe(e,"Date",H1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&bn.updateOffset(e,o||a))}var mGe=JEe(1,"add"),hGe=JEe(-1,"subtract");function tCe(e){return typeof e=="string"||e instanceof String}function gGe(e){return td(e)||mx(e)||tCe(e)||yp(e)||_Ge(e)||vGe(e)||e===null||e===void 0}function vGe(e){var t=Ev(e)&&!DW(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||li(e,o);return t&&n}function _Ge(e){var t=ed(e),n=!1;return t&&(n=e.filter(function(r){return!yp(r)&&tCe(e)}).length===0),t&&n}function yGe(e){var t=Ev(e)&&!DW(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||li(e,o);return t&&n}function bGe(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function SGe(e,t){arguments.length===1&&(arguments[0]?gGe(arguments[0])?(e=arguments[0],t=void 0):yGe(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||qi(),r=ZW(n,this).startOf("day"),i=bn.calendarFormat(this,r)||"sameElse",o=t&&(pf(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,qi(n)))}function EGe(){return new hx(this)}function CGe(e,t){var n=td(e)?e:qi(e);return this.isValid()&&n.isValid()?(t=ru(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function wGe(e,t){var n=td(e)?e:qi(e);return this.isValid()&&n.isValid()?(t=ru(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function xGe(e,t,n,r){var i=td(e)?e:qi(e),o=td(t)?t:qi(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function TGe(e,t){var n=td(e)?e:qi(e),r;return this.isValid()&&n.isValid()?(t=ru(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function RGe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function OGe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function IGe(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=ZW(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=ru(t),t){case"year":o=VI(this,r)/12;break;case"month":o=VI(this,r);break;case"quarter":o=VI(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:kc(o)}function VI(e,t){if(e.date()<t.date())return-VI(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}bn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";bn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function NGe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function MGe(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?HI(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):pf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",HI(n,"Z")):HI(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function AGe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function PGe(e){e||(e=this.isUtc()?bn.defaultFormatUtc:bn.defaultFormat);var t=HI(this,e);return this.localeData().postformat(t)}function DGe(e,t){return this.isValid()&&(td(e)&&e.isValid()||qi(e).isValid())?dd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kGe(e){return this.from(qi(),e)}function LGe(e,t){return this.isValid()&&(td(e)&&e.isValid()||qi(e).isValid())?dd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $Ge(e){return this.to(qi(),e)}function nCe(e){var t;return e===void 0?this._locale._abbr:(t=Mp(e),t!=null&&(this._locale=t),this)}var rCe=nu("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function iCe(){return this._locale}var kM=1e3,_b=60*kM,LM=60*_b,oCe=(365*400+97)*24*LM;function yb(e,t){return(e%t+t)%t}function aCe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-oCe:new Date(e,t,n).valueOf()}function sCe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-oCe:Date.UTC(e,t,n)}function FGe(e){var t,n;if(e=ru(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?sCe:aCe,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=yb(t+(this._isUTC?0:this.utcOffset()*_b),LM);break;case"minute":t=this._d.valueOf(),t-=yb(t,_b);break;case"second":t=this._d.valueOf(),t-=yb(t,kM);break}return this._d.setTime(t),bn.updateOffset(this,!0),this}function BGe(e){var t,n;if(e=ru(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?sCe:aCe,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=LM-yb(t+(this._isUTC?0:this.utcOffset()*_b),LM)-1;break;case"minute":t=this._d.valueOf(),t+=_b-yb(t,_b)-1;break;case"second":t=this._d.valueOf(),t+=kM-yb(t,kM)-1;break}return this._d.setTime(t),bn.updateOffset(this,!0),this}function UGe(){return this._d.valueOf()-(this._offset||0)*6e4}function jGe(){return Math.floor(this.valueOf()/1e3)}function HGe(){return new Date(this.valueOf())}function zGe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function VGe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function GGe(){return this.isValid()?this.toISOString():null}function WGe(){return kW(this)}function YGe(){return Wm({},Mr(this))}function qGe(){return Mr(this).overflow}function KGe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Zn("N",0,0,"eraAbbr");Zn("NN",0,0,"eraAbbr");Zn("NNN",0,0,"eraAbbr");Zn("NNNN",0,0,"eraName");Zn("NNNNN",0,0,"eraNarrow");Zn("y",["y",1],"yo","eraYear");Zn("y",["yy",2],0,"eraYear");Zn("y",["yyy",3],0,"eraYear");Zn("y",["yyyy",4],0,"eraYear");kn("N",JW);kn("NN",JW);kn("NNN",JW);kn("NNNN",aWe);kn("NNNNN",sWe);Ii(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Mr(n).era=i:Mr(n).invalidEra=e});kn("y",J0);kn("yy",J0);kn("yyy",J0);kn("yyyy",J0);kn("yo",lWe);Ii(["y","yy","yyy","yyyy"],ms);Ii(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ms]=n._locale.eraYearOrdinalParse(e,i):t[ms]=parseInt(e,10)});function QGe(e,t){var n,r,i,o=this._eras||Mp("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=bn(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=bn(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function XGe(e,t,n){var r,i,o=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),s=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(l===e)return o[r];break}else if([a,s,l].indexOf(e)>=0)return o[r]}function ZGe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?bn(e.since).year():bn(e.since).year()+(t-e.offset)*n}function JGe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function eWe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function tWe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function nWe(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-bn(i[e].since).year())*n+i[e].offset;return this.year()}function rWe(e){return li(this,"_erasNameRegex")||eY.call(this),e?this._erasNameRegex:this._erasRegex}function iWe(e){return li(this,"_erasAbbrRegex")||eY.call(this),e?this._erasAbbrRegex:this._erasRegex}function oWe(e){return li(this,"_erasNarrowRegex")||eY.call(this),e?this._erasNarrowRegex:this._erasRegex}function JW(e,t){return t.erasAbbrRegex(e)}function aWe(e,t){return t.erasNameRegex(e)}function sWe(e,t){return t.erasNarrowRegex(e)}function lWe(e,t){return t._eraYearOrdinalRegex||J0}function eY(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=np(c[i].name),s=np(c[i].abbr),l=np(c[i].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Zn(0,["gg",2],0,function(){return this.weekYear()%100});Zn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function G2(e,t){Zn(0,[e,e.length],0,t)}G2("gggg","weekYear");G2("ggggg","weekYear");G2("GGGG","isoWeekYear");G2("GGGGG","isoWeekYear");kn("G",U2);kn("g",U2);kn("GG",Ki,lc);kn("gg",Ki,lc);kn("GGGG",jW,UW);kn("gggg",jW,UW);kn("GGGGG",B2,$2);kn("ggggg",B2,$2);vx(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Vr(e)});vx(["gg","GG"],function(e,t,n,r){t[r]=bn.parseTwoDigitYear(e)});function cWe(e){return lCe.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function uWe(e){return lCe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function dWe(){return rp(this.year(),1,4)}function fWe(){return rp(this.isoWeekYear(),1,4)}function pWe(){var e=this.localeData()._week;return rp(this.year(),e.dow,e.doy)}function mWe(){var e=this.localeData()._week;return rp(this.weekYear(),e.dow,e.doy)}function lCe(e,t,n,r,i){var o;return e==null?V1(this,r,i).year:(o=rp(e,r,i),t>o&&(t=o),hWe.call(this,e,t,n,r,i))}function hWe(e,t,n,r,i){var o=jEe(e,t,n,r,i),a=z1(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Zn("Q",0,"Qo","quarter");kn("Q",NEe);Ii("Q",function(e,t){t[Qf]=(Vr(e)-1)*3});function gWe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Zn("D",["DD",2],"Do","date");kn("D",Ki,eS);kn("DD",Ki,lc);kn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ii(["D","DD"],Bd);Ii("Do",function(e,t){t[Bd]=Vr(e.match(Ki)[0])});var cCe=tS("Date",!0);Zn("DDD",["DDDD",3],"DDDo","dayOfYear");kn("DDD",F2);kn("DDDD",MEe);Ii(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vr(e)});function vWe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Zn("m",["mm",2],0,"minute");kn("m",Ki,HW);kn("mm",Ki,lc);Ii(["m","mm"],Lu);var _We=tS("Minutes",!1);Zn("s",["ss",2],0,"second");kn("s",Ki,HW);kn("ss",Ki,lc);Ii(["s","ss"],Xf);var yWe=tS("Seconds",!1);Zn("S",0,0,function(){return~~(this.millisecond()/100)});Zn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Zn(0,["SSS",3],0,"millisecond");Zn(0,["SSSS",4],0,function(){return this.millisecond()*10});Zn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Zn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Zn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Zn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Zn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});kn("S",F2,NEe);kn("SS",F2,lc);kn("SSS",F2,MEe);var Ym,uCe;for(Ym="SSSS";Ym.length<=9;Ym+="S")kn(Ym,J0);function bWe(e,t){t[ev]=Vr(("0."+e)*1e3)}for(Ym="S";Ym.length<=9;Ym+="S")Ii(Ym,bWe);uCe=tS("Milliseconds",!1);Zn("z",0,0,"zoneAbbr");Zn("zz",0,0,"zoneName");function SWe(){return this._isUTC?"UTC":""}function EWe(){return this._isUTC?"Coordinated Universal Time":""}var fn=hx.prototype;fn.add=mGe;fn.calendar=SGe;fn.clone=EGe;fn.diff=IGe;fn.endOf=BGe;fn.format=PGe;fn.from=DGe;fn.fromNow=kGe;fn.to=LGe;fn.toNow=$Ge;fn.get=Aze;fn.invalidAt=qGe;fn.isAfter=CGe;fn.isBefore=wGe;fn.isBetween=xGe;fn.isSame=TGe;fn.isSameOrAfter=RGe;fn.isSameOrBefore=OGe;fn.isValid=WGe;fn.lang=rCe;fn.locale=nCe;fn.localeData=iCe;fn.max=WVe;fn.min=GVe;fn.parsingFlags=YGe;fn.set=Pze;fn.startOf=FGe;fn.subtract=hGe;fn.toArray=zGe;fn.toObject=VGe;fn.toDate=HGe;fn.toISOString=MGe;fn.inspect=AGe;typeof Symbol<"u"&&Symbol.for!=null&&(fn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});fn.toJSON=GGe;fn.toString=NGe;fn.unix=jGe;fn.valueOf=UGe;fn.creationData=KGe;fn.eraName=JGe;fn.eraNarrow=eWe;fn.eraAbbr=tWe;fn.eraYear=nWe;fn.year=DEe;fn.isLeapYear=Mze;fn.weekYear=cWe;fn.isoWeekYear=uWe;fn.quarter=fn.quarters=gWe;fn.month=BEe;fn.daysInMonth=Hze;fn.week=fn.weeks=Qze;fn.isoWeek=fn.isoWeeks=Xze;fn.weeksInYear=pWe;fn.weeksInWeekYear=mWe;fn.isoWeeksInYear=dWe;fn.isoWeeksInISOWeekYear=fWe;fn.date=cCe;fn.day=fn.days=uVe;fn.weekday=dVe;fn.isoWeekday=fVe;fn.dayOfYear=vWe;fn.hour=fn.hours=yVe;fn.minute=fn.minutes=_We;fn.second=fn.seconds=yWe;fn.millisecond=fn.milliseconds=uCe;fn.utcOffset=tGe;fn.utc=rGe;fn.local=iGe;fn.parseZone=oGe;fn.hasAlignedHourOffset=aGe;fn.isDST=sGe;fn.isLocal=cGe;fn.isUtcOffset=uGe;fn.isUtc=ZEe;fn.isUTC=ZEe;fn.zoneAbbr=SWe;fn.zoneName=EWe;fn.dates=nu("dates accessor is deprecated. Use date instead.",cCe);fn.months=nu("months accessor is deprecated. Use month instead",BEe);fn.years=nu("years accessor is deprecated. Use year instead",DEe);fn.zone=nu("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",nGe);fn.isDSTShifted=nu("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",lGe);function CWe(e){return qi(e*1e3)}function wWe(){return qi.apply(null,arguments).parseZone()}function dCe(e){return e}var ci=$W.prototype;ci.calendar=cze;ci.longDateFormat=pze;ci.invalidDate=hze;ci.ordinal=_ze;ci.preparse=dCe;ci.postformat=dCe;ci.relativeTime=bze;ci.pastFuture=Sze;ci.set=sze;ci.eras=QGe;ci.erasParse=XGe;ci.erasConvertYear=ZGe;ci.erasAbbrRegex=iWe;ci.erasNameRegex=rWe;ci.erasNarrowRegex=oWe;ci.months=Fze;ci.monthsShort=Bze;ci.monthsParse=jze;ci.monthsRegex=Vze;ci.monthsShortRegex=zze;ci.week=Wze;ci.firstDayOfYear=Kze;ci.firstDayOfWeek=qze;ci.weekdays=oVe;ci.weekdaysMin=sVe;ci.weekdaysShort=aVe;ci.weekdaysParse=cVe;ci.weekdaysRegex=pVe;ci.weekdaysShortRegex=mVe;ci.weekdaysMinRegex=hVe;ci.isPM=vVe;ci.meridiem=bVe;function $M(e,t,n,r){var i=Mp(),o=ff().set(r,t);return i[n](o,e)}function fCe(e,t,n){if(yp(e)&&(t=e,e=void 0),e=e||"",t!=null)return $M(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=$M(e,r,n,"month");return i}function tY(e,t,n,r){typeof e=="boolean"?(yp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,yp(t)&&(n=t,t=void 0),t=t||"");var i=Mp(),o=e?i._week.dow:0,a,s=[];if(n!=null)return $M(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=$M(t,(a+o)%7,r,"day");return s}function xWe(e,t){return fCe(e,t,"months")}function TWe(e,t){return fCe(e,t,"monthsShort")}function RWe(e,t,n){return tY(e,t,n,"weekdays")}function OWe(e,t,n){return tY(e,t,n,"weekdaysShort")}function IWe(e,t,n){return tY(e,t,n,"weekdaysMin")}ph("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Vr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});bn.lang=nu("moment.lang is deprecated. Use moment.locale instead.",ph);bn.langData=nu("moment.langData is deprecated. Use moment.localeData instead.",Mp);var Rf=Math.abs;function NWe(){var e=this._data;return this._milliseconds=Rf(this._milliseconds),this._days=Rf(this._days),this._months=Rf(this._months),e.milliseconds=Rf(e.milliseconds),e.seconds=Rf(e.seconds),e.minutes=Rf(e.minutes),e.hours=Rf(e.hours),e.months=Rf(e.months),e.years=Rf(e.years),this}function pCe(e,t,n,r){var i=dd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function MWe(e,t){return pCe(this,e,t,1)}function AWe(e,t){return pCe(this,e,t,-1)}function vne(e){return e<0?Math.floor(e):Math.ceil(e)}function PWe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=vne(O7(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=kc(e/1e3),r.seconds=i%60,o=kc(i/60),r.minutes=o%60,a=kc(o/60),r.hours=a%24,t+=kc(a/24),l=kc(mCe(t)),n+=l,t-=vne(O7(l)),s=kc(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function mCe(e){return e*4800/146097}function O7(e){return e*146097/4800}function DWe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ru(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+mCe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(O7(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ap(e){return function(){return this.as(e)}}var hCe=Ap("ms"),kWe=Ap("s"),LWe=Ap("m"),$We=Ap("h"),FWe=Ap("d"),BWe=Ap("w"),UWe=Ap("M"),jWe=Ap("Q"),HWe=Ap("y"),zWe=hCe;function VWe(){return dd(this)}function GWe(e){return e=ru(e),this.isValid()?this[e+"s"]():NaN}function x_(e){return function(){return this.isValid()?this._data[e]:NaN}}var WWe=x_("milliseconds"),YWe=x_("seconds"),qWe=x_("minutes"),KWe=x_("hours"),QWe=x_("days"),XWe=x_("months"),ZWe=x_("years");function JWe(){return kc(this.days()/7)}var jf=Math.round,tb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eYe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function tYe(e,t,n,r){var i=dd(e).abs(),o=jf(i.as("s")),a=jf(i.as("m")),s=jf(i.as("h")),l=jf(i.as("d")),c=jf(i.as("M")),u=jf(i.as("w")),d=jf(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],f[2]=t,f[3]=+e>0,f[4]=r,eYe.apply(null,f)}function nYe(e){return e===void 0?jf:typeof e=="function"?(jf=e,!0):!1}function rYe(e,t){return tb[e]===void 0?!1:t===void 0?tb[e]:(tb[e]=t,e==="s"&&(tb.ss=t-1),!0)}function iYe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=tb,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},tb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=tYe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var S4=Math.abs;function cy(e){return(e>0)-(e<0)||+e}function W2(){if(!this.isValid())return this.localeData().invalidDate();var e=S4(this._milliseconds)/1e3,t=S4(this._days),n=S4(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=kc(e/60),i=kc(r/60),e%=60,r%=60,o=kc(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=cy(this._months)!==cy(s)?"-":"",u=cy(this._days)!==cy(s)?"-":"",d=cy(this._milliseconds)!==cy(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var ti=V2.prototype;ti.isValid=XVe;ti.abs=NWe;ti.add=MWe;ti.subtract=AWe;ti.as=DWe;ti.asMilliseconds=hCe;ti.asSeconds=kWe;ti.asMinutes=LWe;ti.asHours=$We;ti.asDays=FWe;ti.asWeeks=BWe;ti.asMonths=UWe;ti.asQuarters=jWe;ti.asYears=HWe;ti.valueOf=zWe;ti._bubble=PWe;ti.clone=VWe;ti.get=GWe;ti.milliseconds=WWe;ti.seconds=YWe;ti.minutes=qWe;ti.hours=KWe;ti.days=QWe;ti.weeks=JWe;ti.months=XWe;ti.years=ZWe;ti.humanize=iYe;ti.toISOString=W2;ti.toString=W2;ti.toJSON=W2;ti.locale=nCe;ti.localeData=iCe;ti.toIsoString=nu("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",W2);ti.lang=rCe;Zn("X",0,0,"unix");Zn("x",0,0,"valueOf");kn("x",U2);kn("X",xze);Ii("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Ii("x",function(e,t,n){n._d=new Date(Vr(e))});//! moment.js
|
||
bn.version="2.30.1";oze(qi);bn.fn=fn;bn.min=YVe;bn.max=qVe;bn.now=KVe;bn.utc=ff;bn.unix=CWe;bn.months=xWe;bn.isDate=mx;bn.locale=ph;bn.invalid=L2;bn.duration=dd;bn.isMoment=td;bn.weekdays=RWe;bn.parseZone=wWe;bn.localeData=Mp;bn.isDuration=zI;bn.monthsShort=TWe;bn.weekdaysMin=IWe;bn.defineLocale=YW;bn.updateLocale=wVe;bn.locales=xVe;bn.weekdaysShort=OWe;bn.normalizeUnits=ru;bn.relativeTimeRounding=nYe;bn.relativeTimeThreshold=rYe;bn.calendarFormat=bGe;bn.prototype=fn;bn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let VR;const oYe=new Uint8Array(16);function aYe(){if(!VR&&(VR=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!VR))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return VR(oYe)}const Fa=[];for(let e=0;e<256;++e)Fa.push((e+256).toString(16).slice(1));function sYe(e,t=0){return Fa[e[t+0]]+Fa[e[t+1]]+Fa[e[t+2]]+Fa[e[t+3]]+"-"+Fa[e[t+4]]+Fa[e[t+5]]+"-"+Fa[e[t+6]]+Fa[e[t+7]]+"-"+Fa[e[t+8]]+Fa[e[t+9]]+"-"+Fa[e[t+10]]+Fa[e[t+11]]+Fa[e[t+12]]+Fa[e[t+13]]+Fa[e[t+14]]+Fa[e[t+15]]}const lYe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_ne={randomUUID:lYe};function gCe(e,t,n){if(_ne.randomUUID&&!t&&!e)return _ne.randomUUID();e=e||{};const r=e.random||(e.rng||aYe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,sYe(r)}const cYe="1.1.1";function uYe(){return cYe}function dYe(){const e=localStorage.getItem(OI);(e===null||e==="true")&&new Audio(sUe).play()}function fYe(){return bn().format("YYYY-MM-DD HH:mm:ss")}function Y2(){return gCe().replaceAll(/-/g,"")}function uy(e){return e.endsWith("/")?e.slice(0,-1):e}function yne(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function pYe(e){if(pUe===e||mUe===e||hUe===e||gUe===e||vUe===e)return!0}function mYe(e){return e===B1||e===U1}function hYe(e){return e===B1||e===U1}function gYe(e){return e.startsWith(wUe)}function vCe(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const kh=_l()(eu(yl(tu(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:U5e}))),$u=_l()(eu(yl(tu((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.status===Kee)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;a<t().threads.length;a++){const s=t().threads[a];s.topic===n.topic&&(n.unreadCount=s.unreadCount+1,n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent)}return e({threads:[n,...t().threads.filter(a=>a.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===fUe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!mYe(r.type);if(hYe(r.type)&&(n.status=Qee),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;c<t().threads.length;c++){const u=t().threads[c];u.topic===n.topic&&(o&&(n.unreadCount=u.unreadCount+1),n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent)}return e({threads:[n,...t().threads.filter(c=>c.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,status:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:Qee}:i);e({threads:r})},addThreads(n){for(let r=0;r<n.length;r++){const i=n[r];if(i.status===Kee){t().addQueuingThread(i);continue}if(!t().threads.some(a=>a.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=kh.getState();if(n!=null&&n.uid){const{threadService:r}=await ize(async()=>{const{threadService:i}=await import("./threadService-D2NMNKav.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:W5e}))),Pp=_l()(eu(yl(tu((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===F1){const o=t().messageList.findIndex(a=>a.type===F1&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===Bj&&i.type===Bj){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;o<n.length;o++){const a=n[o];t().messageList.some(l=>l.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=bn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=bn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=Kbe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=bn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=bn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:H5e}))),Yo=_l()(eu(yl(tu((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:V5e}))),T_=_l()(eu(yl(tu((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:q5e})));var _Ce={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="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(_Ce);var q2=_Ce.exports;const Re=yi(q2);function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}function qt(e){"@babel/helpers - typeof";return qt=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},qt(e)}var vYe=Symbol.for("react.element"),_Ye=Symbol.for("react.transitional.element"),yYe=Symbol.for("react.fragment");function yCe(e){return e&&qt(e)==="object"&&(e.$$typeof===vYe||e.$$typeof===_Ye)&&e.type===yYe}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_a(r)):yCe(r)&&r.props?n=n.concat(_a(r.props.children,t)):n.push(r))}),n}var I7={},bYe=function(t){};function SYe(e,t){}function EYe(e,t){}function CYe(){I7={}}function bCe(e,t,n){!t&&!I7[n]&&(e(!1,n),I7[n]=!0)}function Wr(e,t){bCe(SYe,e,t)}function FM(e,t){bCe(EYe,e,t)}Wr.preMessage=bYe;Wr.resetWarned=CYe;Wr.noteOnce=FM;function wYe(e,t){if(qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SCe(e){var t=wYe(e,"string");return qt(t)=="symbol"?t:t+""}function ie(e,t,n){return(t=SCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bne(Object(n),!0).forEach(function(r){ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W1(e){return e instanceof HTMLElement||e instanceof SVGElement}function ECe(e){return e&&qt(e)==="object"&&W1(e.nativeElement)?e.nativeElement:W1(e)?e:null}function jC(e){var t=ECe(e);if(t)return t;if(e instanceof de.Component){var n;return(n=P1.findDOMNode)===null||n===void 0?void 0:n.call(P1,e)}return null}var CCe={exports:{}},Si={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var nY=Symbol.for("react.element"),rY=Symbol.for("react.portal"),K2=Symbol.for("react.fragment"),Q2=Symbol.for("react.strict_mode"),X2=Symbol.for("react.profiler"),Z2=Symbol.for("react.provider"),J2=Symbol.for("react.context"),xYe=Symbol.for("react.server_context"),eD=Symbol.for("react.forward_ref"),tD=Symbol.for("react.suspense"),nD=Symbol.for("react.suspense_list"),rD=Symbol.for("react.memo"),iD=Symbol.for("react.lazy"),TYe=Symbol.for("react.offscreen"),wCe;wCe=Symbol.for("react.module.reference");function iu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nY:switch(e=e.type,e){case K2:case X2:case Q2:case tD:case nD:return e;default:switch(e=e&&e.$$typeof,e){case xYe:case J2:case eD:case iD:case rD:case Z2:return e;default:return t}}case rY:return t}}}Si.ContextConsumer=J2;Si.ContextProvider=Z2;Si.Element=nY;Si.ForwardRef=eD;Si.Fragment=K2;Si.Lazy=iD;Si.Memo=rD;Si.Portal=rY;Si.Profiler=X2;Si.StrictMode=Q2;Si.Suspense=tD;Si.SuspenseList=nD;Si.isAsyncMode=function(){return!1};Si.isConcurrentMode=function(){return!1};Si.isContextConsumer=function(e){return iu(e)===J2};Si.isContextProvider=function(e){return iu(e)===Z2};Si.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nY};Si.isForwardRef=function(e){return iu(e)===eD};Si.isFragment=function(e){return iu(e)===K2};Si.isLazy=function(e){return iu(e)===iD};Si.isMemo=function(e){return iu(e)===rD};Si.isPortal=function(e){return iu(e)===rY};Si.isProfiler=function(e){return iu(e)===X2};Si.isStrictMode=function(e){return iu(e)===Q2};Si.isSuspense=function(e){return iu(e)===tD};Si.isSuspenseList=function(e){return iu(e)===nD};Si.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===K2||e===X2||e===Q2||e===tD||e===nD||e===TYe||typeof e=="object"&&e!==null&&(e.$$typeof===iD||e.$$typeof===rD||e.$$typeof===Z2||e.$$typeof===J2||e.$$typeof===eD||e.$$typeof===wCe||e.getModuleId!==void 0)};Si.typeOf=iu;CCe.exports=Si;var E4=CCe.exports;function zv(e,t,n){var r=m.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var iY=function(t,n){typeof t=="function"?t(n):qt(t)==="object"&&t&&"current"in t&&(t.current=n)},Sa=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(o){n.forEach(function(a){iY(a,o)})}},fd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zv(function(){return Sa.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Dp=function(t){var n,r;if(!t)return!1;if(oY(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=E4.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==E4.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==E4.ForwardRef)};function oY(e){return m.isValidElement(e)&&!yCe(e)}var RYe=function(t){return oY(t)&&Dp(t)},Lh=function(t){if(t&&oY(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},N7=m.createContext(null);function OYe(e){var t=e.children,n=e.onBatchResize,r=m.useRef(0),i=m.useRef([]),o=m.useContext(N7),a=m.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return m.createElement(N7.Provider,{value:a},t)}var xCe=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[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),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,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 i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},t}()}(),M7=typeof window<"u"&&typeof document<"u"&&window.document===document,BM=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),IYe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(BM):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),NYe=2;function MYe(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){IYe(o)}function s(){var l=Date.now();if(n){if(l-i<NYe)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=l}return s}var AYe=20,PYe=["top","right","bottom","left","width","height","size","weight"],DYe=typeof MutationObserver<"u",kYe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=MYe(this.refresh.bind(this),AYe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!M7||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DYe?(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(){!M7||!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,i=PYe.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),TCe=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},t0=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||BM},RCe=oD(0,0,0,0);function UM(e){return parseFloat(e)||0}function Sne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+UM(o)},0)}function LYe(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=UM(a)}return n}function $Ye(e){var t=e.getBBox();return oD(0,0,t.width,t.height)}function FYe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return RCe;var r=t0(e).getComputedStyle(e),i=LYe(r),o=i.left+i.right,a=i.top+i.bottom,s=UM(r.width),l=UM(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Sne(r,"left","right")+o),Math.round(l+a)!==n&&(l-=Sne(r,"top","bottom")+a)),!UYe(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return oD(i.left,i.top,s,l)}var BYe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof t0(e).SVGGraphicsElement}:function(e){return e instanceof t0(e).SVGElement&&typeof e.getBBox=="function"}}();function UYe(e){return e===t0(e).document.documentElement}function jYe(e){return M7?BYe(e)?$Ye(e):FYe(e):RCe}function HYe(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return TCe(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function oD(e,t,n,r){return{x:e,y:t,width:n,height:r}}var zYe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oD(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=jYe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),VYe=function(){function e(t,n){var r=HYe(n);TCe(this,{target:t,contentRect:r})}return e}(),GYe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new xCe,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=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 t0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new zYe(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 t0(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 VYe(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}(),OCe=typeof WeakMap<"u"?new WeakMap:new xCe,ICe=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=kYe.getInstance(),r=new GYe(t,n,this);OCe.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ICe.prototype[e]=function(){var t;return(t=OCe.get(this))[e].apply(t,arguments)}});var WYe=function(){return typeof BM.ResizeObserver<"u"?BM.ResizeObserver:ICe}(),qm=new Map;function YYe(e){e.forEach(function(t){var n,r=t.target;(n=qm.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var NCe=new WYe(YYe);function qYe(e,t){qm.has(e)||(qm.set(e,new Set),NCe.observe(e)),qm.get(e).add(t)}function KYe(e,t){qm.has(e)&&(qm.get(e).delete(t),qm.get(e).size||(NCe.unobserve(e),qm.delete(e)))}function Yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ene(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SCe(r.key),r)}}function qr(e,t,n){return t&&Ene(e.prototype,t),n&&Ene(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Y1(e,t)}function Es(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y1(e,t)}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vv(e)}function aD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aD=function(){return!!e})()}function ln(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MCe(e,t){if(t&&(qt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ln(e)}function Vs(e){var t=aD();return function(){var n,r=Vv(e);if(t){var i=Vv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return MCe(this,n)}}var QYe=function(e){Es(n,e);var t=Vs(n);function n(){return Yr(this,n),t.apply(this,arguments)}return qr(n,[{key:"render",value:function(){return this.props.children}}]),n}(m.Component);function XYe(e,t){var n=e.children,r=e.disabled,i=m.useRef(null),o=m.useRef(null),a=m.useContext(N7),s=typeof n=="function",l=s?n(i):n,c=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m.isValidElement(l)&&Dp(l),d=u?Lh(l):null,f=fd(d,i),p=function(){var y;return jC(i.current)||(i.current&&qt(i.current)==="object"?jC((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||jC(o.current)};m.useImperativeHandle(t,function(){return p()});var h=m.useRef(e);h.current=e;var g=m.useCallback(function(v){var y=h.current,_=y.onResize,b=y.data,S=v.getBoundingClientRect(),C=S.width,E=S.height,w=v.offsetWidth,x=v.offsetHeight,T=Math.floor(C),R=Math.floor(E);if(c.current.width!==T||c.current.height!==R||c.current.offsetWidth!==w||c.current.offsetHeight!==x){var N={width:T,height:R,offsetWidth:w,offsetHeight:x};c.current=N;var I=w===Math.round(C)?C:w,P=x===Math.round(E)?E:x,D=q(q({},N),{},{offsetWidth:I,offsetHeight:P});a==null||a(D,v,b),_&&Promise.resolve().then(function(){_(D,v)})}},[]);return m.useEffect(function(){var v=p();return v&&!r&&qYe(v,g),function(){return KYe(v,g)}},[i.current,r]),m.createElement(QYe,{ref:o},u?m.cloneElement(l,{ref:f}):l)}var ZYe=m.forwardRef(XYe),JYe="rc-observer-key";function eqe(e,t){var n=e.children,r=typeof n=="function"?[n]:_a(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(JYe,"-").concat(o);return m.createElement(ZYe,Qe({},e,{key:a,ref:o===0?t:void 0}),i)})}var hs=m.forwardRef(eqe);hs.Collection=OYe;function ur(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function A7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tqe(e){if(Array.isArray(e))return A7(e)}function ACe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sD(e,t){if(e){if(typeof e=="string")return A7(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A7(e,t):void 0}}function nqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function at(e){return tqe(e)||ACe(e)||sD(e)||nqe()}var PCe=function(t){return+setTimeout(t,16)},DCe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(PCe=function(t){return window.requestAnimationFrame(t)},DCe=function(t){return window.cancelAnimationFrame(t)});var Cne=0,aY=new Map;function kCe(e){aY.delete(e)}var rr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Cne+=1;var r=Cne;function i(o){if(o===0)kCe(r),t();else{var a=PCe(function(){i(o-1)});aY.set(r,a)}}return i(n),r};rr.cancel=function(e){var t=aY.get(e);return kCe(e),DCe(t)};function LCe(e){if(Array.isArray(e))return e}function rqe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function $Ce(){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 Oe(e,t){return LCe(e)||rqe(e,t)||sD(e,t)||$Ce()}function q1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 nS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function iqe(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 wne="data-rc-order",xne="data-rc-priority",oqe="rc-util-key",P7=new Map;function FCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):oqe}function lD(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function aqe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sY(e){return Array.from((P7.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function BCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nS())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=aqe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(wne,a),s&&o&&l.setAttribute(xne,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=lD(t),u=c.firstChild;if(r){if(s){var d=(t.styles||sY(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(wne)))return!1;var p=Number(f.getAttribute(xne)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function UCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lD(t);return(t.styles||sY(n)).find(function(r){return r.getAttribute(FCe(t))===e})}function lY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=UCe(e,t);if(n){var r=lD(t);r.removeChild(n)}}function sqe(e,t){var n=P7.get(e);if(!n||!iqe(document,n)){var r=BCe("",t),i=r.parentNode;P7.set(e,i),e.removeChild(r)}}function bb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=lD(n),i=sY(r),o=q(q({},n),{},{styles:i});sqe(r,o);var a=UCe(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=BCe(e,o);return u.setAttribute(FCe(o),t),u}function lqe(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 It(e,t){if(e==null)return{};var n,r,i=lqe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cqe(e,t,n){var r=m.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var D7={},uqe=function(t){};function dqe(e,t){}function fqe(e,t){}function pqe(){D7={}}function jCe(e,t,n){!t&&!D7[n]&&(e(!1,n),D7[n]=!0)}function _x(e,t){jCe(dqe,e,t)}function mqe(e,t){jCe(fqe,e,t)}_x.preMessage=uqe;_x.resetWarned=pqe;_x.noteOnce=mqe;function Tne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(_x(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&qt(o)==="object"&&qt(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}var hqe="%";function k7(e){return e.join(hqe)}var gqe=function(){function e(t){Yr(this,e),ie(this,"instanceId",void 0),ie(this,"cache",new Map),this.instanceId=t}return qr(e,[{key:"get",value:function(n){return this.opGet(k7(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(k7(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e}(),vqe=["children"],n0="data-token-hash",Vu="data-css-hash",Km="__cssinjs_instance__";function cY(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Vu,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[Km]=i[Km]||e,i[Km]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Vu,"]"))).forEach(function(i){var o=i.getAttribute(Vu);if(r[o]){if(i[Km]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new gqe(e)}var r0=m.createContext({hashPriority:"low",cache:cY(),defaultCache:!0}),_qe=function(t){var n=t.children,r=It(t,vqe),i=m.useContext(r0),o=cqe(function(){var a=q({},i);Object.keys(r).forEach(function(l){var c=r[l];r[l]!==void 0&&(a[l]=c)});var s=r.cache;return a.cache=a.cache||cY(),a.defaultCache=!s&&i.defaultCache,a},[i,r],function(a,s){return!Tne(a[0],s[0],!0)||!Tne(a[1],s[1],!0)});return m.createElement(r0.Provider,{value:o},n)},HCe=qr(function e(){Yr(this,e)}),zCe="CALC_UNIT",yqe=new RegExp(zCe,"g");function C4(e){return typeof e=="number"?"".concat(e).concat(zCe):e}var bqe=function(e){Es(n,e);var t=Vs(n);function n(r,i){var o;Yr(this,n),o=t.call(this),ie(ln(o),"result",""),ie(ln(o),"unitlessCssVar",void 0),ie(ln(o),"lowPriority",void 0);var a=qt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=C4(r):a==="string"&&(o.result=r),o}return qr(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(C4(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(C4(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(yqe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(HCe),Sqe=function(e){Es(n,e);var t=Vs(n);function n(r){var i;return Yr(this,n),i=t.call(this),ie(ln(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return qr(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(HCe),Eqe=function(t,n){var r=t==="css"?bqe:Sqe;return function(i){return new r(i,n)}};function Cqe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var uY=function(){function e(){Yr(this,e),ie(this,"cache",void 0),ie(this,"keys",void 0),ie(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return qr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.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 i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=Oe(c,2),f=d[1];return i.internalGet(u)[1]<f?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=Oe(o,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,i.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Cqe(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ie(uY,"MAX_CACHE_SIZE",20);ie(uY,"MAX_CACHE_OFFSET",5);var Rne=0,dY=function(){function e(t){Yr(this,e),ie(this,"derivatives",void 0),ie(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Rne,t.length===0&&(t.length>0,void 0),Rne+=1}return qr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),w4=new uY;function Gv(e){var t=Array.isArray(e)?e:[e];return w4.has(t)||w4.set(t,new dY(t)),w4.get(t)}var wqe=new WeakMap,x4={};function xqe(e,t){for(var n=wqe,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(x4)||n.set(x4,e()),n.get(x4)}var One=new WeakMap;function HC(e){var t=One.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof dY?t+=r.id:r&&qt(r)==="object"?t+=HC(r):t+=r}),t=q1(t),One.set(e,t)),t}function Ine(e,t){return q1("".concat(t,"_").concat(HC(e)))}var i0="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),VCe="_bAmBoO_";function GCe(e,t,n){if(nS()){var r,i;bb(e,i0);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",t==null||t(o),document.body.appendChild(o);var a=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(VCe);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),lY(i0),a}return!1}var T4=void 0;function Tqe(){return T4===void 0&&(T4=GCe(":where(.".concat(i0,') { content: "').concat(VCe,'"!important; }'),function(e){e.className=i0})),T4}var R4=void 0;function Rqe(){return R4===void 0&&(R4=GCe(".".concat(i0," { inset-block: 93px !important; }"),function(e){e.className=i0},function(e){return getComputedStyle(e).bottom==="93px"})),R4}var L7=nS();function De(e){return typeof e=="number"?"".concat(e,"px"):e}function K1(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=q(q({},i),{},(r={},ie(r,n0,t),ie(r,Vu,n),r)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var zC=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()},Oqe=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(i){var o=Oe(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},WCe=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Oe(a,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,p=zC(u,r==null?void 0:r.prefix);i[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(p,")")}}),[o,Oqe(i,n,{scope:r==null?void 0:r.scope})]},Nne=nS()?m.useLayoutEffect:m.useEffect,Iqe=function(t,n){var r=m.useRef(!0);Nne(function(){return t(r.current)},n),Nne(function(){return r.current=!1,function(){r.current=!0}},[])},Nqe=q({},ex),Mne=Nqe.useInsertionEffect,Mqe=function(t,n,r){m.useMemo(t,r),Iqe(function(){return n(!0)},r)},Aqe=Mne?function(e,t,n){return Mne(function(){return e(),t()},n)}:Mqe,Pqe=q({},ex),Dqe=Pqe.useInsertionEffect,kqe=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return m.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},Lqe=function(){return function(t){t()}},$qe=typeof Dqe<"u"?kqe:Lqe;function fY(e,t,n,r,i){var o=m.useContext(r0),a=o.cache,s=[e].concat(at(t)),l=k7(s),c=$qe([l]),u=function(h){a.opUpdate(l,function(g){var v=g||[void 0,void 0],y=Oe(v,2),_=y[0],b=_===void 0?0:_,S=y[1],C=S,E=C||n(),w=[b,E];return h?h(w):w})};m.useMemo(function(){u()},[l]);var d=a.opGet(l),f=d[1];return Aqe(function(){i==null||i(f)},function(p){return u(function(h){var g=Oe(h,2),v=g[0],y=g[1];return p&&v===0&&(i==null||i(f)),[v+1,y]}),function(){a.opUpdate(l,function(h){var g=h||[],v=Oe(g,2),y=v[0],_=y===void 0?0:y,b=v[1],S=_-1;return S===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(b,!1))}),null):[_-1,b]})}},[l]),f}var Fqe={},Bqe="css",Hg=new Map;function Uqe(e){Hg.set(e,(Hg.get(e)||0)+1)}function jqe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(n0,'="').concat(e,'"]'));n.forEach(function(r){if(r[Km]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var Hqe=0;function zqe(e,t){Hg.set(e,(Hg.get(e)||0)-1);var n=Array.from(Hg.keys()),r=n.filter(function(i){var o=Hg.get(i)||0;return o<=0});n.length-r.length>Hqe&&r.forEach(function(i){jqe(i,t),Hg.delete(i)})}var pY=function(t,n,r,i){var o=r.getDerivativeToken(t),a=q(q({},o),n);return i&&(a=i(a)),a},YCe="token";function mY(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(r0),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?Fqe:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=xqe(function(){return Object.assign.apply(Object,[{}].concat(at(t)))},t),h=HC(p),g=HC(c),v=f?HC(f):"",y=fY(YCe,[s,e.id,h,g,v],function(){var _,b=d?d(p,c,e):pY(p,c,e,u),S=q({},b),C="";if(f){var E=WCe(b,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),w=Oe(E,2);b=w[0],C=w[1]}var x=Ine(b,s);b._tokenKey=x,S._tokenKey=Ine(S,s);var T=(_=f==null?void 0:f.key)!==null&&_!==void 0?_:x;b._themeKey=T,Uqe(T);var R="".concat(Bqe,"-").concat(q1(x));return b._hashId=R,[b,R,S,C,(f==null?void 0:f.key)||""]},function(_){zqe(_[0]._themeKey,i)},function(_){var b=Oe(_,4),S=b[0],C=b[3];if(f&&C){var E=bb(C,q1("css-variables-".concat(S._themeKey)),{mark:Vu,prepend:"queue",attachTo:o,priority:-999});E[Km]=i,E.setAttribute(n0,S._themeKey)}});return y}var Vqe=function(t,n,r){var i=Oe(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=K1(a,s,u,f,c);return[d,u,p]},qCe={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},KCe="comm",QCe="rule",XCe="decl",Gqe="@import",Wqe="@keyframes",Yqe="@layer",ZCe=Math.abs,hY=String.fromCharCode;function JCe(e){return e.trim()}function GI(e,t,n){return e.replace(t,n)}function qqe(e,t,n){return e.indexOf(t,n)}function Q1(e,t){return e.charCodeAt(t)|0}function o0(e,t,n){return e.slice(t,n)}function Ad(e){return e.length}function Kqe(e){return e.length}function GR(e,t){return t.push(e),e}var cD=1,a0=1,e1e=0,qc=0,na=0,rS="";function gY(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:cD,column:a0,length:a,return:"",siblings:s}}function Qqe(){return na}function Xqe(){return na=qc>0?Q1(rS,--qc):0,a0--,na===10&&(a0=1,cD--),na}function Gu(){return na=qc<e1e?Q1(rS,qc++):0,a0++,na===10&&(a0=1,cD++),na}function Qm(){return Q1(rS,qc)}function WI(){return qc}function uD(e,t){return o0(rS,e,t)}function X1(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 Zqe(e){return cD=a0=1,e1e=Ad(rS=e),qc=0,[]}function Jqe(e){return rS="",e}function O4(e){return JCe(uD(qc-1,$7(e===91?e+2:e===40?e+1:e)))}function eKe(e){for(;(na=Qm())&&na<33;)Gu();return X1(e)>2||X1(na)>3?"":" "}function tKe(e,t){for(;--t&&Gu()&&!(na<48||na>102||na>57&&na<65||na>70&&na<97););return uD(e,WI()+(t<6&&Qm()==32&&Gu()==32))}function $7(e){for(;Gu();)switch(na){case e:return qc;case 34:case 39:e!==34&&e!==39&&$7(na);break;case 40:e===41&&$7(e);break;case 92:Gu();break}return qc}function nKe(e,t){for(;Gu()&&e+na!==57;)if(e+na===84&&Qm()===47)break;return"/*"+uD(t,qc-1)+"*"+hY(e===47?e:Gu())}function rKe(e){for(;!X1(Qm());)Gu();return uD(e,qc)}function iKe(e){return Jqe(YI("",null,null,null,[""],e=Zqe(e),0,[0],e))}function YI(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,v=1,y=1,_=0,b="",S=i,C=o,E=r,w=b;v;)switch(h=_,_=Gu()){case 40:if(h!=108&&Q1(w,d-1)==58){qqe(w+=GI(O4(_),"&","&\f"),"&\f",ZCe(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=O4(_);break;case 9:case 10:case 13:case 32:w+=eKe(h);break;case 92:w+=tKe(WI()-1,7);continue;case 47:switch(Qm()){case 42:case 47:GR(oKe(nKe(Gu(),WI()),t,n,l),l),(X1(h||1)==5||X1(Qm()||1)==5)&&Ad(w)&&o0(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:s[c++]=Ad(w)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+u:y==-1&&(w=GI(w,/\f/g,"")),p>0&&(Ad(w)-d||g===0&&h===47)&&GR(p>32?Pne(w+";",r,n,d-1,l):Pne(GI(w," ","")+";",r,n,d-2,l),l);break;case 59:w+=";";default:if(GR(E=Ane(w,t,n,c,u,i,s,b,S=[],C=[],d,o),o),_===123)if(u===0)YI(w,t,E,E,S,o,d,s,C);else switch(f===99&&Q1(w,3)===110?100:f){case 100:case 108:case 109:case 115:YI(e,E,E,r&&GR(Ane(e,E,E,0,0,i,s,b,i,S=[],d,C),C),i,C,d,s,r?S:C);break;default:YI(w,E,E,E,[""],C,0,s,C)}}c=u=p=0,g=y=1,b=w="",d=a;break;case 58:d=1+Ad(w),p=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&Xqe()==125)continue}switch(w+=hY(_),_*g){case 38:y=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Ad(w)-1)*y,y=1;break;case 64:Qm()===45&&(w+=O4(Gu())),f=Qm(),u=d=Ad(b=w+=rKe(WI())),_++;break;case 45:h===45&&Ad(w)==2&&(g=0)}}return o}function Ane(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=Kqe(p),g=0,v=0,y=0;g<r;++g)for(var _=0,b=o0(e,f+1,f=ZCe(v=a[g])),S=e;_<h;++_)(S=JCe(v>0?p[_]+" "+b:GI(b,/&\f/g,p[_])))&&(l[y++]=S);return gY(e,t,n,i===0?QCe:s,l,c,u,d)}function oKe(e,t,n,r){return gY(e,t,n,KCe,hY(Qqe()),o0(e,2,-2),0,r)}function Pne(e,t,n,r,i){return gY(e,t,n,XCe,o0(e,0,r),o0(e,r+1,-1),r,i)}function F7(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function aKe(e,t,n,r){switch(e.type){case Yqe:if(e.children.length)break;case Gqe:case XCe:return e.return=e.return||e.value;case KCe:return"";case Wqe:return e.return=e.value+"{"+F7(e.children,r)+"}";case QCe:if(!Ad(e.value=e.props.join(",")))return""}return Ad(n=F7(e.children,r))?e.return=e.value+"{"+n+"}":""}function tv(e,t){var n=t.path,r=t.parentSelectors;_x(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function sKe(e){var t,n=((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"",r=n.split(/(\[[^[]*])|(?=[.#])/).filter(function(i){return i});return r.length>1}function lKe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var cKe=function(t,n,r){var i=lKe(r),o=i.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(sKe)&&tv("Concat ':not' selector not support in legacy browsers.",r)},uKe=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":tv("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&tv("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&tv("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var o=n.split("/").map(function(s){return s.trim()}),a=o.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);a&&tv("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},dKe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&tv("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},fKe=function(t,n,r){r.parentSelectors.some(function(i){var o=i.split(",");return o.some(function(a){return a.split("&").length>2})})&&tv("Should not use more than one `&` in a selector.",r)},VC="data-ant-cssinjs-cache-path",t1e="_FILE_STYLE__";function pKe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Cv,n1e=!0;function mKe(){if(!Cv&&(Cv={},nS())){var e=document.createElement("div");e.className=VC,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(i){var o=i.split(":"),a=Oe(o,2),s=a[0],l=a[1];Cv[s]=l});var n=document.querySelector("style[".concat(VC,"]"));if(n){var r;n1e=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function hKe(e){return mKe(),!!Cv[e]}function gKe(e){var t=Cv[e],n=null;if(t&&nS())if(n1e)n=t1e;else{var r=document.querySelector("style[".concat(Vu,'="').concat(Cv[e],'"]'));r?n=r.innerHTML:delete Cv[e]}return[n,t]}var vKe="_skip_check_",r1e="_multi_value_";function qI(e){var t=F7(iKe(e),aKe);return t.replace(/\{%%%\:[^;];}/g,";")}function _Ke(e){return qt(e)==="object"&&e&&(vKe in e||r1e in e)}function Dne(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(at(l.slice(1))).join(" ")});return o.join(",")}var yKe=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:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",p={};function h(y){var _=y.getName(s);if(!p[_]){var b=e(y.style,n,{root:!1,parentSelectors:a}),S=Oe(b,1),C=S[0];p[_]="@keyframes ".concat(y.getName(s)).concat(C)}}function g(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(b){Array.isArray(b)?g(b,_):b&&_.push(b)}),_}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var _=typeof y=="string"&&!i?{}:y;if(typeof _=="string")f+="".concat(_,`
|
||
`);else if(_._keyframe)h(_);else{var b=d.reduce(function(S,C){var E;return(C==null||(E=C.visit)===null||E===void 0?void 0:E.call(C,S))||S},_);Object.keys(b).forEach(function(S){var C=b[S];if(qt(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!_Ke(C)){var E=!1,w=S.trim(),x=!1;(i||o)&&s?w.startsWith("@")?E=!0:w==="&"?w=Dne("",s,c):w=Dne(S,s,c):i&&!s&&(w==="&"||w==="")&&(w="",x=!0);var T=e(C,n,{root:x,injectHash:E,parentSelectors:[].concat(at(a),[w])}),R=Oe(T,2),N=R[0],I=R[1];p=q(q({},p),I),f+="".concat(w).concat(N)}else{let F=function(L,B){var U=L.replace(/[A-Z]/g,function(V){return"-".concat(V.toLowerCase())}),G=B;!qCe[L]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),L==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(h(B),G=B.getName(s)),f+="".concat(U,":").concat(G,";")};var P,D=(P=C==null?void 0:C.value)!==null&&P!==void 0?P:C;qt(C)==="object"&&C!==null&&C!==void 0&&C[r1e]&&Array.isArray(D)?D.forEach(function(L){F(S,L)}):F(S,D)}})}}),i?l&&(f="@layer ".concat(l.name," {").concat(f,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(`
|
||
`))):f="{".concat(f,"}"),[f,p]};function i1e(e,t){return q1("".concat(e.join("%")).concat(t))}function bKe(){return null}var o1e="style";function Z1(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=m.useContext(r0),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,h=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,_=u.cache,b=u.layer,S=n._tokenKey,C=[S];b&&C.push("layer"),C.push.apply(C,at(r));var E=L7,w=fY(o1e,C,function(){var I=C.join("|");if(hKe(I)){var P=gKe(I),D=Oe(P,2),F=D[0],L=D[1];if(F)return[F,S,L,{},s,c]}var B=t(),U=yKe(B,{hashId:i,hashPriority:p,layer:b?o:void 0,path:r.join("-"),transformers:v,linters:y}),G=Oe(U,2),V=G[0],W=G[1],$=qI(V),H=i1e(C,$);return[$,S,H,W,s,c]},function(I,P){var D=Oe(I,3),F=D[2];(P||d)&&L7&&lY(F,{mark:Vu})},function(I){var P=Oe(I,4),D=P[0];P[1];var F=P[2],L=P[3];if(E&&D!==t1e){var B={mark:Vu,prepend:b?!1:"queue",attachTo:h,priority:c},U=typeof a=="function"?a():a;U&&(B.csp={nonce:U});var G=[],V=[];Object.keys(L).forEach(function($){$.startsWith("@layer")?G.push($):V.push($)}),G.forEach(function($){bb(qI(L[$]),"_layer-".concat($),q(q({},B),{},{prepend:!0}))});var W=bb(D,F,B);W[Km]=_.instanceId,W.setAttribute(n0,S),V.forEach(function($){bb(qI(L[$]),"_effect-".concat($),B)})}}),x=Oe(w,3),T=x[0],R=x[1],N=x[2];return function(I){var P;if(!g||E||!f)P=m.createElement(bKe,null);else{var D;P=m.createElement("style",Qe({},(D={},ie(D,n0,R),ie(D,Vu,N),D),{dangerouslySetInnerHTML:{__html:T}}))}return m.createElement(m.Fragment,null,P,I)}}var SKe=function(t,n,r){var i=Oe(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},f=d.plain;if(c)return null;var p=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=K1(o,a,s,h,f),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=qI(l[g]),y=K1(v,a,"_effect-".concat(g),h,f);g.startsWith("@layer")?p=y+p:p+=y}}),[u,s,p]},a1e="cssVar",s1e=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=m.useContext(r0),d=u.cache.instanceId,f=u.container,p=s._tokenKey,h=[].concat(at(t.path),[r,c,p]),g=fY(a1e,h,function(){var v=n(),y=WCe(v,r,{prefix:i,unitless:o,ignore:a,scope:c}),_=Oe(y,2),b=_[0],S=_[1],C=i1e(h,S);return[b,S,C,r]},function(v){var y=Oe(v,3),_=y[2];L7&&lY(_,{mark:Vu})},function(v){var y=Oe(v,3),_=y[1],b=y[2];if(_){var S=bb(_,b,{mark:Vu,prepend:"queue",attachTo:f,priority:-999});S[Km]=d,S.setAttribute(n0,r)}});return g},EKe=function(t,n,r){var i=Oe(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=K1(o,s,a,d,c);return[u,a,f]},SE,CKe=(SE={},ie(SE,o1e,SKe),ie(SE,YCe,Vqe),ie(SE,a1e,EKe),SE);function wKe(e){return e!==null}function xKe(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,o=n.types,a=o===void 0?["style","token","cssVar"]:o,s=new RegExp("^(".concat((typeof a=="string"?[a]:a).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(f){return s.test(f)}),c={},u={},d="";return l.map(function(f){var p=f.replace(s,"").replace(/%/g,"|"),h=f.split("%"),g=Oe(h,1),v=g[0],y=CKe[v],_=y(e.cache.get(f)[1],c,{plain:i});if(!_)return null;var b=Oe(_,3),S=b[0],C=b[1],E=b[2];return f.startsWith("style")&&(u[p]=C),[S,E]}).filter(wKe).sort(function(f,p){var h=Oe(f,1),g=h[0],v=Oe(p,1),y=v[0];return g-y}).forEach(function(f){var p=Oe(f,2),h=p[1];d+=h}),d+=K1(".".concat(VC,'{content:"').concat(pKe(u),'";}'),void 0,void 0,ie({},VC,VC),i),d}var ir=function(){function e(t,n){Yr(this,e),ie(this,"name",void 0),ie(this,"style",void 0),ie(this,"_keyframe",!0),this.name=t,this.style=n}return qr(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 TKe(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],o=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;o+=l-c}return o>=0&&i.push(s),o===0&&(a.push(i.join(" ")),i=[]),a},[]),!!n]}function dy(e){return e.notSplit=!0,e}var RKe={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:dy(["borderTop","borderBottom"]),borderBlockStart:dy(["borderTop"]),borderBlockEnd:dy(["borderBottom"]),borderInline:dy(["borderLeft","borderRight"]),borderInlineStart:dy(["borderLeft"]),borderInlineEnd:dy(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function WR(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var OKe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],o=RKe[r];if(o&&(typeof i=="number"||typeof i=="string")){var a=TKe(i),s=Oe(a,2),l=s[0],c=s[1];o.length&&o.notSplit?o.forEach(function(u){n[u]=WR(i,c)}):o.length===1?n[o[0]]=WR(l[0],c):o.length===2?o.forEach(function(u,d){var f;n[u]=WR((f=l[d])!==null&&f!==void 0?f:l[0],c)}):o.length===4?o.forEach(function(u,d){var f,p;n[u]=WR((f=(p=l[d])!==null&&p!==void 0?p:l[d-2])!==null&&f!==void 0?f:l[0],c)}):n[r]=i}else n[r]=i}),n}},I4=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function IKe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var NKe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,o=i===void 0?5:i,a=t.mediaQuery,s=a===void 0?!1:a,l=function(d,f){if(!f)return d;var p=parseFloat(f);if(p<=1)return d;var h=IKe(p/r,o);return"".concat(h,"rem")},c=function(d){var f=q({},d);return Object.entries(d).forEach(function(p){var h=Oe(p,2),g=h[0],v=h[1];if(typeof v=="string"&&v.includes("px")){var y=v.replace(I4,l);f[g]=y}!qCe[g]&&typeof v=="number"&&v!==0&&(f[g]="".concat(v,"px").replace(I4,l));var _=g.trim();if(_.startsWith("@")&&_.includes("px")&&s){var b=g.replace(I4,l);f[b]=f[g],delete f[g]}}),f};return{visit:c}},MKe={supportModernCSS:function(){return Tqe()&&Rqe()}};const AKe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:ir,NaNLinter:dKe,StyleProvider:_qe,Theme:dY,_experimental:MKe,createCache:cY,createTheme:Gv,extractStyle:xKe,genCalc:Eqe,getComputedToken:pY,legacyLogicalPropertiesTransformer:OKe,legacyNotSelectorLinter:cKe,logicalPropertiesLinter:uKe,parentSelectorLinter:fKe,px2remTransformer:NKe,token2CSSVar:zC,unit:De,useCSSVarRegister:s1e,useCacheToken:mY,useStyleRegister:Z1},Symbol.toStringTag,{value:"Module"}));var dD=m.createContext({});function l1e(e){return LCe(e)||ACe(e)||sD(e)||$Ce()}function ia(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function c1e(e,t,n,r){if(!t.length)return n;var i=l1e(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=at(e):s=q({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=c1e(s[o],a,n,r),s}function jo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ia(e,t.slice(0,-1))?e:c1e(e,t,n,r)}function PKe(e){return qt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function kne(e){return Array.isArray(e)?[]:{}}var DKe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function nb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=kne(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=ia(i,a),u=Array.isArray(c);if(u||PKe(c)){if(!l.has(c)){l.add(c);var d=ia(r,a);u?r=jo(r,a,[]):(!d||qt(d)!=="object")&&(r=jo(r,a,kne(c))),DKe(c).forEach(function(f){o([].concat(at(a),[f]),l)})}}else r=jo(r,a,c)}o([])}),r}function kKe(){}const LKe=m.createContext({}),R_=()=>{const e=()=>{};return e.deprecated=kKe,e},u1e=m.createContext(void 0);var $Ke={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"},d1e={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},FKe=q(q({},d1e),{},{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 f1e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jM={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"]},FKe),timePickerLocale:Object.assign({},f1e)},Il="${label} is not a valid ${type}",Kc={locale:"en",Pagination:$Ke,DatePicker:jM,TimePicker:f1e,Calendar:jM,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:Il,method:Il,array:Il,object:Il,number:Il,date:Il,boolean:Il,integer:Il,float:Il,regexp:Il,email:Il,url:Il,hex:Il},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 KI=Object.assign({},Kc.Modal),QI=[];const Lne=()=>QI.reduce((e,t)=>Object.assign(Object.assign({},e),t),Kc.Modal);function BKe(e){if(e){const t=Object.assign({},e);return QI.push(t),KI=Lne(),()=>{QI=QI.filter(n=>n!==t),KI=Lne()}}KI=Object.assign({},Kc.Modal)}function p1e(){return KI}const vY=m.createContext(void 0),Gs=(e,t)=>{const n=m.useContext(vY),r=m.useMemo(()=>{var o;const a=t||Kc[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=m.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Kc.locale:o},[n]);return[r,i]},UKe="internalMark",jKe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m.useEffect(()=>BKe(t==null?void 0:t.Modal),[t]);const i=m.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m.createElement(vY.Provider,{value:i},n)},Ta=Math.round;function N4(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const $ne=(e,t,n)=>n===0?e:e/100;function EE(e,t){const n=t||255;return e>n?n:e<0?0:e}class cr{constructor(t){ie(this,"isValid",!0),ie(this,"r",0),ie(this,"g",0),ie(this,"b",0),ie(this,"a",1),ie(this,"_h",void 0),ie(this,"_s",void 0),ie(this,"_l",void 0),ie(this,"_v",void 0),ie(this,"_max",void 0),ie(this,"_min",void 0),ie(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof cr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=EE(t.r),this.g=EE(t.g),this.b=EE(t.b),this.a=typeof t.a=="number"?EE(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ta(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:Ta(o("r")),g:Ta(o("g")),b:Ta(o("b")),a:Ta(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Ta((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Ta(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ta(this.getSaturation()*100),r=Ta(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=EE(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const f=Ta(r*255);this.r=f,this.g=f,this.b=f}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=r-c/2;this.r=Ta((o+d)*255),this.g=Ta((a+d)*255),this.b=Ta((s+d)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Ta(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Ta(r*(1-n)*255),u=Ta(r*(1-n*l)*255),d=Ta(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=N4(t,$ne);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=N4(t,$ne);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=N4(t,(r,i)=>i.includes("%")?Ta(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const HKe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:cr},Symbol.toStringTag,{value:"Module"}));var YR=2,Fne=.16,zKe=.05,VKe=.05,GKe=.15,m1e=5,h1e=4,WKe=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Bne(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-YR*t:Math.round(e.h)+YR*t:r=n?Math.round(e.h)+YR*t:Math.round(e.h)-YR*t,r<0?r+=360:r>=360&&(r-=360),r}function Une(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Fne*t:t===h1e?r=e.s+Fne:r=e.s+zKe*t,r>1&&(r=1),n&&t===m1e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function jne(e,t,n){var r;return n?r=e.v+VKe*t:r=e.v-GKe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Eh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new cr(e),i=r.toHsv(),o=m1e;o>0;o-=1){var a=new cr({h:Bne(i,o,!0),s:Une(i,o,!0),v:jne(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=h1e;s+=1){var l=new cr({h:Bne(i,s),s:Une(i,s),v:jne(i,s)});n.push(l)}return t.theme==="dark"?WKe.map(function(c){var u=c.index,d=c.amount;return new cr(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var wv={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"},HM=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];HM.primary=HM[5];var zM=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];zM.primary=zM[5];var VM=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];VM.primary=VM[5];var GM=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];GM.primary=GM[5];var WM=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];WM.primary=WM[5];var YM=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];YM.primary=YM[5];var qM=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];qM.primary=qM[5];var KM=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];KM.primary=KM[5];var Wv=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wv.primary=Wv[5];var QM=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];QM.primary=QM[5];var XM=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];XM.primary=XM[5];var ZM=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ZM.primary=ZM[5];var J1=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];J1.primary=J1[5];var YKe=J1,XI={red:HM,volcano:zM,orange:VM,gold:GM,yellow:WM,lime:YM,green:qM,cyan:KM,blue:Wv,geekblue:QM,purple:XM,magenta:ZM,grey:J1},JM=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];JM.primary=JM[5];var eA=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];eA.primary=eA[5];var tA=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];tA.primary=tA[5];var nA=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];nA.primary=nA[5];var rA=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];rA.primary=rA[5];var iA=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];iA.primary=iA[5];var oA=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];oA.primary=oA[5];var aA=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];aA.primary=aA[5];var sA=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];sA.primary=sA[5];var lA=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];lA.primary=lA[5];var cA=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];cA.primary=cA[5];var uA=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];uA.primary=uA[5];var dA=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];dA.primary=dA[5];var qKe={red:JM,volcano:eA,orange:tA,gold:nA,yellow:rA,lime:iA,green:oA,cyan:aA,blue:sA,geekblue:lA,purple:cA,magenta:uA,grey:dA};const KKe=Object.freeze(Object.defineProperty({__proto__:null,blue:Wv,blueDark:sA,cyan:KM,cyanDark:aA,geekblue:QM,geekblueDark:lA,generate:Eh,gold:GM,goldDark:nA,gray:YKe,green:qM,greenDark:oA,grey:J1,greyDark:dA,lime:YM,limeDark:iA,magenta:ZM,magentaDark:uA,orange:VM,orangeDark:tA,presetDarkPalettes:qKe,presetPalettes:XI,presetPrimaryColors:wv,purple:XM,purpleDark:cA,red:HM,redDark:JM,volcano:zM,volcanoDark:eA,yellow:WM,yellowDark:rA},Symbol.toStringTag,{value:"Module"})),_Y={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"},s0=Object.assign(Object.assign({},_Y),{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 g1e(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(i),p=n(o),h=n(a),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,_=n(y),b=new cr(h[1]).mix(new cr(h[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:_[4],colorLink:_[6],colorLinkActive:_[7],colorBgMask:new cr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const QKe=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function XKe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=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:i+1},QKe(r))}const v1e=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ZI(e){return(e+8)/e}function ZKe(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ZI(n)}))}const _1e=e=>{const t=ZKe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function JKe(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 yc=(e,t)=>new cr(e).setA(t).toRgbString(),CE=(e,t)=>new cr(e).darken(t).toHexString(),eQe=e=>{const t=Eh(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]}},tQe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:yc(r,.88),colorTextSecondary:yc(r,.65),colorTextTertiary:yc(r,.45),colorTextQuaternary:yc(r,.25),colorFill:yc(r,.15),colorFillSecondary:yc(r,.06),colorFillTertiary:yc(r,.04),colorFillQuaternary:yc(r,.02),colorBgSolid:yc(r,1),colorBgSolidHover:yc(r,.75),colorBgSolidActive:yc(r,.95),colorBgLayout:CE(n,4),colorBgContainer:CE(n,0),colorBgElevated:CE(n,0),colorBgSpotlight:yc(r,.85),colorBgBlur:"transparent",colorBorder:CE(n,15),colorBorderSecondary:CE(n,6)}};function yx(e){wv.pink=wv.magenta,XI.pink=XI.magenta;const t=Object.keys(_Y).map(n=>{const r=e[n]===wv[n]?XI[n]:Eh(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).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),g1e(e,{generateColorPalettes:eQe,generateNeutralColorPalettes:tQe})),_1e(e.fontSize)),JKe(e)),v1e(e)),XKe(e))}const y1e=Gv(yx),ew={token:s0,override:{override:s0},hashed:!0},yY=de.createContext(ew),tw="ant",fD="anticon",nQe=["outlined","borderless","filled"],rQe=(e,t)=>t||(e?`${tw}-${e}`:tw),nn=m.createContext({getPrefixCls:rQe,iconPrefixCls:fD});function tc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function B7(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 Hne="data-rc-order",zne="data-rc-priority",iQe="rc-util-key",U7=new Map;function b1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):iQe}function pD(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function oQe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function bY(e){return Array.from((U7.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function S1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!tc())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=oQe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Hne,a),s&&o&&l.setAttribute(zne,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=pD(t),u=c.firstChild;if(r){if(s){var d=(t.styles||bY(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Hne)))return!1;var p=Number(f.getAttribute(zne)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function E1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=pD(t);return(t.styles||bY(n)).find(function(r){return r.getAttribute(b1e(t))===e})}function j7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=E1e(e,t);if(n){var r=pD(t);r.removeChild(n)}}function aQe(e,t){var n=U7.get(e);if(!n||!B7(document,n)){var r=S1e("",t),i=r.parentNode;U7.set(e,i),e.removeChild(r)}}function mD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=pD(n),i=bY(r),o=q(q({},n),{},{styles:i});aQe(r,o);var a=E1e(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=S1e(e,o);return u.setAttribute(b1e(o),t),u}const sQe=`-ant-${Date.now()}-${Math.random()}`;function lQe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new cr(a),c=Eh(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new cr(t.primaryColor),s=Eh(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new cr(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function cQe(e,t){const n=lQe(e,t);tc()&&mD(n,`${sQe}-dynamic-theme`)}const No=m.createContext(!1),SY=e=>{let{children:t,disabled:n}=e;const r=m.useContext(No);return m.createElement(No.Provider,{value:n??r},t)},Yv=m.createContext(void 0),uQe=e=>{let{children:t,size:n}=e;const r=m.useContext(Yv);return m.createElement(Yv.Provider,{value:n||r},t)};function dQe(){const e=m.useContext(No),t=m.useContext(Yv);return{componentDisabled:e,componentSize:t}}function qv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Wr(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&qt(o)==="object"&&qt(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}var C1e=qr(function e(){Yr(this,e)}),w1e="CALC_UNIT",fQe=new RegExp(w1e,"g");function M4(e){return typeof e=="number"?"".concat(e).concat(w1e):e}var pQe=function(e){Es(n,e);var t=Vs(n);function n(r,i){var o;Yr(this,n),o=t.call(this),ie(ln(o),"result",""),ie(ln(o),"unitlessCssVar",void 0),ie(ln(o),"lowPriority",void 0);var a=qt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=M4(r):a==="string"&&(o.result=r),o}return qr(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(M4(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(M4(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(fQe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(C1e),mQe=function(e){Es(n,e);var t=Vs(n);function n(r){var i;return Yr(this,n),i=t.call(this),ie(ln(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return qr(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(C1e),x1e=function(t,n){var r=t==="css"?pQe:mQe;return function(i){return new r(i,n)}},Vne=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 Wn(e){var t=m.useRef();t.current=e;var n=m.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}var Gne=tc()?m.useLayoutEffect:m.useEffect,gr=function(t,n){var r=m.useRef(!0);Gne(function(){return t(r.current)},n),Gne(function(){return r.current=!1,function(){r.current=!0}},[])},xv=function(t,n){gr(function(r){if(!r)return t()},n)};function Kv(e){var t=m.useRef(!1),n=m.useState(e),r=Oe(n,2),i=r[0],o=r[1];m.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function A4(e){return e!==void 0}function Fn(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Kv(function(){return A4(i)?i:A4(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Oe(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=a?a(d):d,p=Wn(o),h=Kv([d]),g=Oe(h,2),v=g[0],y=g[1];xv(function(){var b=v[0];c!==b&&p(c,b)},[v]),xv(function(){A4(i)||u(i)},[i]);var _=Wn(function(b,S){u(b,S),y([d],S)});return[f,_]}function Wne(e,t,n,r){var i=q({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=Oe(s,2),c=l[0],u=l[1];if(i!=null&&i[c]||i!=null&&i[u]){var d;(d=i[u])!==null&&d!==void 0||(i[u]=i==null?void 0:i[c])}})}var a=q(q({},n),i);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var T1e=typeof CSSINJS_STATISTIC<"u",H7=!0;function qn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!T1e)return Object.assign.apply(Object,[{}].concat(t));H7=!1;var r={};return t.forEach(function(i){if(qt(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),H7=!0,r}var z7={};function hQe(){}var R1e=function(t){var n,r=t,i=hQe;return T1e&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(H7){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),i=function(a,s){var l;z7[a]={global:Array.from(n),component:q(q({},(l=z7[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function Yne(e,t,n){if(typeof n=="function"){var r;return n(qn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function gQe(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return De(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return De(o)}).join(","),")")}}}var vQe=1e3*60*10,_Qe=function(){function e(){Yr(this,e),ie(this,"map",new Map),ie(this,"objectIDMap",new WeakMap),ie(this,"nextID",0),ie(this,"lastAccessBeat",new Map),ie(this,"accessBeat",0)}return qr(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(o){return o&&qt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(qt(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>vQe&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),qne=new _Qe;function yQe(e,t){return de.useMemo(function(){var n=qne.get(t);if(n)return n;var r=e();return qne.set(t,r),r},t)}var bQe=function(){return{}};function O1e(e){var t=e.useCSP,n=t===void 0?bQe:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,p,h,g){var v=Array.isArray(f)?f[0]:f;function y(x){return"".concat(String(v)).concat(x.slice(0,1).toUpperCase()).concat(x.slice(1))}var _=(g==null?void 0:g.unitless)||{},b=typeof s=="function"?s(f):{},S=q(q({},b),{},ie({},y("zIndexPopup"),!0));Object.keys(_).forEach(function(x){S[y(x)]=_[x]});var C=q(q({},g),{},{unitless:S,prefixToken:y}),E=u(f,p,h,C),w=c(v,h,C);return function(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,R=E(x,T),N=Oe(R,2),I=N[1],P=w(T),D=Oe(P,2),F=D[0],L=D[1];return[F,I,L]}}function c(f,p,h){var g=h.unitless,v=h.injectStyle,y=v===void 0?!0:v,_=h.prefixToken,b=h.ignore,S=function(w){var x=w.rootCls,T=w.cssVar,R=T===void 0?{}:T,N=r(),I=N.realToken;return s1e({path:[f],prefix:R.prefix,key:R.key,unitless:g,ignore:b,token:I,scope:x},function(){var P=Yne(f,I,p),D=Wne(f,I,P,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(P).forEach(function(F){D[_(F)]=D[F],delete D[F]}),D}),null},C=function(w){var x=r(),T=x.cssVar;return[function(R){return y&&T?de.createElement(de.Fragment,null,de.createElement(S,{rootCls:w,cssVar:T,component:f}),R):R},T==null?void 0:T.key]};return C}function u(f,p,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(f)?f:[f,f],y=Oe(v,1),_=y[0],b=v.join("-"),S=e.layer||{name:"antd"};return function(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,w=r(),x=w.theme,T=w.realToken,R=w.hashId,N=w.token,I=w.cssVar,P=i(),D=P.rootPrefixCls,F=P.iconPrefixCls,L=n(),B=I?"css":"js",U=yQe(function(){var K=new Set;return I&&Object.keys(g.unitless||{}).forEach(function(re){K.add(zC(re,I.prefix)),K.add(zC(re,Vne(_,I.prefix)))}),x1e(B,K)},[B,_,I==null?void 0:I.prefix]),G=gQe(B),V=G.max,W=G.min,$={theme:x,token:N,hashId:R,nonce:function(){return L.nonce},clientOnly:g.clientOnly,layer:S,order:g.order||-999};typeof o=="function"&&Z1(q(q({},$),{},{clientOnly:!1,path:["Shared",D]}),function(){return o(N,{prefix:{rootPrefixCls:D,iconPrefixCls:F},csp:L})});var H=Z1(q(q({},$),{},{path:[b,C,F]}),function(){if(g.injectStyle===!1)return[];var K=R1e(N),re=K.token,Q=K.flush,A=Yne(_,T,h),k=".".concat(C),Z=Wne(_,T,A,{deprecatedTokens:g.deprecatedTokens});I&&A&&qt(A)==="object"&&Object.keys(A).forEach(function(ue){A[ue]="var(".concat(zC(ue,Vne(_,I.prefix)),")")});var ne=qn(re,{componentCls:k,prefixCls:C,iconCls:".".concat(F),antCls:".".concat(D),calc:U,max:V,min:W},I?A:Z),oe=p(ne,{hashId:R,prefixCls:C,rootPrefixCls:D,iconPrefixCls:F});Q(_,Z);var ae=typeof a=="function"?a(ne,C,E,g.resetFont):null;return[g.resetStyle===!1?null:ae,oe]});return[H,R]}}function d(f,p,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(f,p,h,q({resetStyle:!1,order:-998},g)),y=function(b){var S=b.prefixCls,C=b.rootCls,E=C===void 0?S:C;return v(S,E),null};return y}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const SQe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:x1e,genStyleUtils:O1e,mergeToken:qn,statistic:z7,statisticToken:R1e},Symbol.toStringTag,{value:"Module"})),Qv=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],bp="5.23.2";function P4(e){return e>=0&&e<=255}function qR(e,t){const{r:n,g:r,b:i,a:o}=new cr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new cr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(P4(u)&&P4(d)&&P4(f))return new cr({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new cr({r:n,g:r,b:i,a:1}).toRgbString()}var EQe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function EY(e){const{override:t}=e,n=EQe(e,["override"]),r=Object.assign({},t);Object.keys(s0).forEach(f=>{delete r[f]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:qR(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:qR(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:qR(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:qR(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
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)
|
||
`,boxShadowSecondary:`
|
||
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)
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new cr("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new cr("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new cr("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerUp:`
|
||
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)
|
||
`,boxShadowDrawerDown:`
|
||
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 Kne=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const I1e={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},CQe={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},wQe={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},N1e=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Kne(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=EY(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Kne(c,["theme"]);let f=d;u&&(f=N1e(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};function Ea(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=de.useContext(yY),o=`${bp}-${t||""}`,a=n||y1e,[s,l,c]=mY(a,[s0,e],{salt:o,override:r,getComputedToken:N1e,formatToken:EY,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:I1e,ignore:CQe,preserve:wQe}});return[a,c,t?l:"",s,i]}const nc={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},wr=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}},O_=()=>({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"}}),nf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),xQe=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"}}}),TQe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={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),a),{[i]:a})}},kp=(e,t)=>({outline:`${De(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Qc=(e,t)=>({"&:focus-visible":Object.assign({},kp(e,t))}),M1e=e=>({[`.${e}`]:Object.assign(Object.assign({},O_()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:dr,genComponentStyleHook:A1e,genSubStyleComponent:CY}=O1e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=m.useContext(nn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Ea();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=m.useContext(nn);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":xQe(e)},M1e((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:fD)]},getCommonStyle:TQe,getCompUnitless:()=>I1e});function wY(e,t){return Qv.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const RQe=(e,t)=>{const[n,r]=Ea();return Z1({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[M1e(e)])},OQe=Object.assign({},ex),{useId:Qne}=OQe,IQe=()=>"",NQe=typeof Qne>"u"?IQe:Qne;function MQe(e,t,n){var r;R_();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},ew),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:ew.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=NQe();return zv(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.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 i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!qv(c,d,!0)}))}var AQe=["children"],P1e=m.createContext({});function D1e(e){var t=e.children,n=It(e,AQe);return m.createElement(P1e.Provider,{value:n},t)}var PQe=function(e){Es(n,e);var t=Vs(n);function n(){return Yr(this,n),t.apply(this,arguments)}return qr(n,[{key:"render",value:function(){return this.props.children}}]),n}(m.Component);function DQe(e){var t=m.useReducer(function(s){return s+1},0),n=Oe(t,2),r=n[1],i=m.useRef(e),o=Wn(function(){return i.current}),a=Wn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var wm="none",KR="appear",QR="enter",XR="leave",Xne="none",Iu="prepare",rb="start",ib="active",xY="end",k1e="prepared";function Zne(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 kQe(e,t){var n={animationend:Zne("Animation","AnimationEnd"),transitionend:Zne("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var LQe=kQe(tc(),typeof window<"u"?window:{}),L1e={};if(tc()){var $Qe=document.createElement("div");L1e=$Qe.style}var ZR={};function $1e(e){if(ZR[e])return ZR[e];var t=LQe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in L1e)return ZR[e]=t[o],ZR[e]}return""}var F1e=$1e("animationend"),B1e=$1e("transitionend"),U1e=!!(F1e&&B1e),Jne=F1e||"animationend",ere=B1e||"transitionend";function tre(e,t){if(!e)return null;if(qt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const FQe=function(e){var t=m.useRef();function n(i){i&&(i.removeEventListener(ere,e),i.removeEventListener(Jne,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(ere,e),i.addEventListener(Jne,e),t.current=i)}return m.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var j1e=tc()?m.useLayoutEffect:m.useEffect;const BQe=function(){var e=m.useRef(null);function t(){rr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=rr(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return m.useEffect(function(){return function(){t()}},[]),[n,t]};var UQe=[Iu,rb,ib,xY],jQe=[Iu,k1e],H1e=!1,HQe=!0;function z1e(e){return e===ib||e===xY}const zQe=function(e,t,n){var r=Kv(Xne),i=Oe(r,2),o=i[0],a=i[1],s=BQe(),l=Oe(s,2),c=l[0],u=l[1];function d(){a(Iu,!0)}var f=t?jQe:UQe;return j1e(function(){if(o!==Xne&&o!==xY){var p=f.indexOf(o),h=f[p+1],g=n(o);g===H1e?a(h,!0):h&&c(function(v){function y(){v.isCanceled()||a(h,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),m.useEffect(function(){return function(){u()}},[]),[d,o]};function VQe(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,_=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,w=r.onLeaveEnd,x=r.onVisibleChanged,T=Kv(),R=Oe(T,2),N=R[0],I=R[1],P=DQe(wm),D=Oe(P,2),F=D[0],L=D[1],B=Kv(null),U=Oe(B,2),G=U[0],V=U[1],W=F(),$=m.useRef(!1),H=m.useRef(null);function K(){return n()}var re=m.useRef(!1);function Q(){L(wm),V(null,!0)}var A=Wn(function(Ce){var ye=F();if(ye!==wm){var be=K();if(!(Ce&&!Ce.deadline&&Ce.target!==be)){var Ee=re.current,Me;ye===KR&&Ee?Me=C==null?void 0:C(be,Ce):ye===QR&&Ee?Me=E==null?void 0:E(be,Ce):ye===XR&&Ee&&(Me=w==null?void 0:w(be,Ce)),Ee&&Me!==!1&&Q()}}}),k=FQe(A),Z=Oe(k,1),ne=Z[0],oe=function(ye){switch(ye){case KR:return ie(ie(ie({},Iu,f),rb,g),ib,_);case QR:return ie(ie(ie({},Iu,p),rb,v),ib,b);case XR:return ie(ie(ie({},Iu,h),rb,y),ib,S);default:return{}}},ae=m.useMemo(function(){return oe(W)},[W]),ue=zQe(W,!e,function(Ce){if(Ce===Iu){var ye=ae[Iu];return ye?ye(K()):H1e}if(pe in ae){var be;V(((be=ae[pe])===null||be===void 0?void 0:be.call(ae,K(),null))||null)}return pe===ib&&W!==wm&&(ne(K()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){A({deadline:!0})},u))),pe===k1e&&Q(),HQe}),fe=Oe(ue,2),se=fe[0],pe=fe[1],_e=z1e(pe);re.current=_e;var Te=m.useRef(null);j1e(function(){if(!($.current&&Te.current===t)){I(t);var Ce=$.current;$.current=!0;var ye;!Ce&&t&&s&&(ye=KR),Ce&&t&&o&&(ye=QR),(Ce&&!t&&c||!Ce&&d&&!t&&c)&&(ye=XR);var be=oe(ye);ye&&(e||be[Iu])?(L(ye),se()):L(wm),Te.current=t}},[t]),m.useEffect(function(){(W===KR&&!s||W===QR&&!o||W===XR&&!c)&&L(wm)},[s,o,c]),m.useEffect(function(){return function(){$.current=!1,clearTimeout(H.current)}},[]);var xe=m.useRef(!1);m.useEffect(function(){N&&(xe.current=!0),N!==void 0&&W===wm&&((xe.current||N)&&(x==null||x(N)),xe.current=!0)},[N,W]);var ge=G;return ae[Iu]&&pe===rb&&(ge=q({transition:"none"},ge)),[W,pe,ge,N??t]}function GQe(e){var t=e;qt(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=m.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,p=i.leavedClassName,h=i.eventProps,g=m.useContext(P1e),v=g.motion,y=n(i,v),_=m.useRef(),b=m.useRef();function S(){try{return _.current instanceof HTMLElement?_.current:jC(b.current)}catch{return null}}var C=VQe(y,s,S,i),E=Oe(C,4),w=E[0],x=E[1],T=E[2],R=E[3],N=m.useRef(R);R&&(N.current=!0);var I=m.useCallback(function(U){_.current=U,iY(o,U)},[o]),P,D=q(q({},h),{},{visible:s});if(!d)P=null;else if(w===wm)R?P=d(q({},D),I):!c&&N.current&&p?P=d(q(q({},D),{},{className:p}),I):u||!c&&!p?P=d(q(q({},D),{},{style:{display:"none"}}),I):P=null;else{var F;x===Iu?F="prepare":z1e(x)?F="active":x===rb&&(F="start");var L=tre(f,"".concat(w,"-").concat(F));P=d(q(q({},D),{},{className:Re(tre(f,w),ie(ie({},L,L&&F),f,typeof f=="string")),style:T}),I)}if(m.isValidElement(P)&&Dp(P)){var B=Lh(P);B||(P=m.cloneElement(P,{ref:I}))}return m.createElement(PQe,{ref:b},P)});return r.displayName="CSSMotion",r}const qo=GQe(U1e);var V7="add",G7="keep",W7="remove",D4="removed";function WQe(e){var t;return e&&qt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Y7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(WQe)}function YQe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=Y7(e),a=Y7(t);o.forEach(function(c){for(var u=!1,d=r;d<i;d+=1){var f=a[d];if(f.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(p){return q(q({},p),{},{status:V7})})),r=d),n.push(q(q({},f),{},{status:G7})),r+=1,u=!0;break}}u||n.push(q(q({},c),{},{status:W7}))}),r<i&&(n=n.concat(a.slice(r).map(function(c){return q(q({},c),{},{status:V7})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==W7}),n.forEach(function(u){u.key===c&&(u.status=G7)})}),n}var qQe=["component","children","onVisibleChanged","onAllRemoved"],KQe=["status"],QQe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function XQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qo,n=function(r){Es(o,r);var i=Vs(o);function o(){var a;Yr(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),ie(ln(a),"state",{keyEntities:[]}),ie(ln(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(p){return p.key!==u?p:q(q({},p),{},{status:D4})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(p){var h=p.status;return h!==D4}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return qr(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var p=It(c,qQe),h=u||m.Fragment,g={};return QQe.forEach(function(v){g[v]=p[v],delete p[v]}),delete p.keys,m.createElement(h,p,l.map(function(v,y){var _=v.status,b=It(v,KQe),S=_===V7||_===G7;return m.createElement(t,Qe({},g,{key:b.key,visible:S,eventProps:b,onVisibleChanged:function(E){f==null||f(E,{key:b.key}),E||s.removeKey(b.key)}}),function(C,E){return d(q(q({},C),{},{index:y}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Y7(c),f=YQe(u,d);return{keyEntities:f.filter(function(p){var h=u.find(function(g){var v=g.key;return p.key===v});return!(h&&h.status===D4&&p.status===W7)})}}}]),o}(m.Component);return ie(n,"defaultProps",{component:"div"}),n}const hD=XQe(U1e),ZQe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:hD,Provider:D1e,default:qo},Symbol.toStringTag,{value:"Module"}));function JQe(e){const{children:t}=e,[,n]=Ea(),{motion:r}=n,i=m.useRef(!1);return i.current=i.current||r===!1,i.current?m.createElement(D1e,{motion:r},t):t}const eXe=()=>null;var tXe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nXe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let fA,V1e,G1e,W1e;function JI(){return fA||tw}function rXe(){return V1e||fD}function iXe(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const oXe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(fA=t),n!==void 0&&(V1e=n),"holderRender"in e&&(W1e=i),r&&(iXe(r)?cQe(JI(),r):G1e=r)},Y1e=()=>({getPrefixCls:(e,t)=>t||(e?`${JI()}-${e}`:JI()),getIconPrefixCls:rXe,getRootPrefixCls:()=>fA||JI(),getTheme:()=>G1e,holderRender:W1e}),aXe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:_,theme:b,componentDisabled:S,segmented:C,statistic:E,spin:w,calendar:x,carousel:T,cascader:R,collapse:N,typography:I,checkbox:P,descriptions:D,divider:F,drawer:L,skeleton:B,steps:U,image:G,layout:V,list:W,mentions:$,modal:H,progress:K,result:re,slider:Q,breadcrumb:A,menu:k,pagination:Z,input:ne,textArea:oe,empty:ae,badge:ue,radio:fe,rate:se,switch:pe,transfer:_e,avatar:Te,message:xe,tag:ge,table:Ce,card:ye,tabs:be,timeline:Ee,timePicker:Me,upload:X,notification:Y,tree:J,colorPicker:he,datePicker:ve,rangePicker:ce,flex:$e,wave:Be,dropdown:me,warning:Fe,tour:Xe,tooltip:ze,popover:qe,popconfirm:Ge,floatButtonGroup:We,variant:Lt,inputNumber:ut,treeSelect:ft}=e,bt=m.useCallback((vt,Mt)=>{const{prefixCls:wt}=e;if(Mt)return Mt;const jt=wt||y.getPrefixCls("");return vt?`${jt}-${vt}`:jt},[y.getPrefixCls,e.prefixCls]),St=_||y.iconPrefixCls||fD,Ht=n||y.csp;RQe(St,Ht);const xt=MQe(b,y.theme,{prefixCls:bt("")}),Nt={csp:Ht,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||v,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??p,popupOverflow:g,getPrefixCls:bt,iconPrefixCls:St,theme:xt,segmented:C,statistic:E,spin:w,calendar:x,carousel:T,cascader:R,collapse:N,typography:I,checkbox:P,descriptions:D,divider:F,drawer:L,skeleton:B,steps:U,image:G,input:ne,textArea:oe,layout:V,list:W,mentions:$,modal:H,progress:K,result:re,slider:Q,breadcrumb:A,menu:k,pagination:Z,empty:ae,badge:ue,radio:fe,rate:se,switch:pe,transfer:_e,avatar:Te,message:xe,tag:ge,table:Ce,card:ye,tabs:be,timeline:Ee,timePicker:Me,upload:X,notification:Y,tree:J,colorPicker:he,datePicker:ve,rangePicker:ce,flex:$e,wave:Be,dropdown:me,warning:Fe,tour:Xe,tooltip:ze,popover:qe,popconfirm:Ge,floatButtonGroup:We,variant:Lt,inputNumber:ut,treeSelect:ft},Vt=Object.assign({},y);Object.keys(Nt).forEach(vt=>{Nt[vt]!==void 0&&(Vt[vt]=Nt[vt])}),nXe.forEach(vt=>{const Mt=e[vt];Mt&&(Vt[vt]=Mt)}),typeof r<"u"&&(Vt.button=Object.assign({autoInsertSpace:r},Vt.button));const Ue=zv(()=>Vt,Vt,(vt,Mt)=>{const wt=Object.keys(vt),jt=Object.keys(Mt);return wt.length!==jt.length||wt.some(zt=>vt[zt]!==Mt[zt])}),Ve=m.useMemo(()=>({prefixCls:St,csp:Ht}),[St,Ht]);let je=m.createElement(m.Fragment,null,m.createElement(eXe,{dropdownMatchSelectWidth:p}),t);const et=m.useMemo(()=>{var vt,Mt,wt,jt;return nb(((vt=Kc.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((wt=(Mt=Ue.locale)===null||Mt===void 0?void 0:Mt.Form)===null||wt===void 0?void 0:wt.defaultValidateMessages)||{},((jt=Ue.form)===null||jt===void 0?void 0:jt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ue,a==null?void 0:a.validateMessages]);Object.keys(et).length>0&&(je=m.createElement(u1e.Provider,{value:et},je)),s&&(je=m.createElement(jKe,{locale:s,_ANT_MARK__:UKe},je)),(St||Ht)&&(je=m.createElement(dD.Provider,{value:Ve},je)),l&&(je=m.createElement(uQe,{size:l},je)),je=m.createElement(JQe,null,je);const _t=m.useMemo(()=>{const vt=xt||{},{algorithm:Mt,token:wt,components:jt,cssVar:zt}=vt,Gt=tXe(vt,["algorithm","token","components","cssVar"]),$t=Mt&&(!Array.isArray(Mt)||Mt.length>0)?Gv(Mt):y1e,on={};Object.entries(jt||{}).forEach(Dt=>{let[Wt,Et]=Dt;const yt=Object.assign({},Et);"algorithm"in yt&&(yt.algorithm===!0?yt.theme=$t:(Array.isArray(yt.algorithm)||typeof yt.algorithm=="function")&&(yt.theme=Gv(yt.algorithm)),delete yt.algorithm),on[Wt]=yt});const pt=Object.assign(Object.assign({},s0),wt);return Object.assign(Object.assign({},Gt),{theme:$t,token:pt,components:on,override:Object.assign({override:pt},on),cssVar:zt})},[xt]);return b&&(je=m.createElement(yY.Provider,{value:_t},je)),Ue.warning&&(je=m.createElement(LKe.Provider,{value:Ue.warning},je)),S!==void 0&&(je=m.createElement(SY,{disabled:S},je)),m.createElement(nn.Provider,{value:Ue},je)},Pn=e=>{const t=m.useContext(nn),n=m.useContext(vY);return m.createElement(aXe,Object.assign({parentContext:t,legacyLocale:n},e))};Pn.ConfigContext=nn;Pn.SizeContext=Yv;Pn.config=oXe;Pn.useConfig=dQe;Object.defineProperty(Pn,"SizeContext",{get:()=>Yv});var sXe={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 q1e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function lXe(e){return q1e(e)instanceof ShadowRoot}function pA(e){return lXe(e)?q1e(e):null}function cXe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function q7(e,t){Wr(e,"[@ant-design/icons] ".concat(t))}function nre(e){return qt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(qt(e.icon)==="object"||typeof e.icon=="function")}function rre(){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[cXe(n)]=r}return t},{})}function K7(e,t,n){return n?de.createElement(e.tag,q(q({key:t},rre(e.attrs)),n),(e.children||[]).map(function(r,i){return K7(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):de.createElement(e.tag,q({key:t},rre(e.attrs)),(e.children||[]).map(function(r,i){return K7(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function K1e(e){return Eh(e)[0]}function Q1e(e){return e?Array.isArray(e)?e:[e]:[]}var uXe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},dXe=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,X1e=function(t){var n=m.useContext(dD),r=n.csp,i=n.prefixCls,o=n.layer,a=dXe;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
||
`).concat(a,`
|
||
}`)),m.useEffect(function(){var s=t.current,l=pA(s);mD(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])},fXe=["icon","className","onClick","style","primaryColor","secondaryColor"],GC={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function pXe(e){var t=e.primaryColor,n=e.secondaryColor;GC.primaryColor=t,GC.secondaryColor=n||K1e(t),GC.calculated=!!n}function mXe(){return q({},GC)}var iS=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=It(t,fXe),c=m.useRef(),u=GC;if(a&&(u={primaryColor:a,secondaryColor:s||K1e(a)}),X1e(c),q7(nre(n),"icon should be icon definiton, but got ".concat(n)),!nre(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=q(q({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),K7(d.icon,"svg-".concat(d.name),q(q({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};iS.displayName="IconReact";iS.getTwoToneColors=mXe;iS.setTwoToneColors=pXe;function Z1e(e){var t=Q1e(e),n=Oe(t,2),r=n[0],i=n[1];return iS.setTwoToneColors({primaryColor:r,secondaryColor:i})}function hXe(){var e=iS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var gXe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Z1e(Wv.primary);var In=m.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=It(e,gXe),u=m.useContext(dD),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,h=Re(p,f,ie(ie({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=Q1e(l),_=Oe(y,2),b=_[0],S=_[1];return m.createElement("span",Qe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),m.createElement(iS,{icon:r,primaryColor:b,secondaryColor:S,style:v}))});In.displayName="AntdIcon";In.getTwoToneColor=hXe;In.setTwoToneColor=Z1e;var vXe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:sXe}))},I_=m.forwardRef(vXe),_Xe={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"},yXe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:_Xe}))},mf=m.forwardRef(yXe),bXe={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"},SXe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:bXe}))},ou=m.forwardRef(SXe),EXe={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"},CXe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:EXe}))},$h=m.forwardRef(CXe),wXe={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"},xXe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:wXe}))},gD=m.forwardRef(xXe),TXe=`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
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,RXe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,OXe="".concat(TXe," ").concat(RXe).split(/[\s\n]+/),IXe="aria-",NXe="data-";function ire(e,t){return e.indexOf(t)===0}function ao(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=q({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||ire(i,IXe))||n.data&&ire(i,NXe)||n.attr&&OXe.includes(i))&&(r[i]=e[i])}),r}function J1e(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const ewe=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Ko(e,t){return ewe(e,e,t)}const JR=(e,t,n,r,i)=>({background:e,border:`${De(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),MXe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${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:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
|
||
padding-top ${n} ${c}, padding-bottom ${n} ${c},
|
||
margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},AXe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":JR(i,r,n,e,t),"&-info":JR(p,f,d,e,t),"&-warning":JR(s,a,o,e,t),"&-error":Object.assign(Object.assign({},JR(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},PXe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:De(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},DXe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),kXe=dr("Alert",e=>[MXe(e),AXe(e),PXe(e)],DXe);var ore=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const LXe={success:I_,info:gD,error:mf,warning:$h},$Xe=e=>{const{icon:t,prefixCls:n,type:r}=e,i=LXe[r]||null;return t?ewe(t,m.createElement("span",{className:`${n}-icon`},t),()=>({className:Re(`${n}-icon`,t.props.className)})):m.createElement(i,{className:`${n}-icon`})},FXe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?m.createElement(ou,null):r;return t?m.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},twe=m.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:p,closable:h,closeText:g,closeIcon:v,action:y,id:_}=e,b=ore(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,C]=m.useState(!1),E=m.useRef(null);m.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:w,direction:x,alert:T}=m.useContext(nn),R=w("alert",r),[N,I,P]=kXe(R),D=$=>{var H;C(!0),(H=e.onClose)===null||H===void 0||H.call(e,$)},F=m.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),L=m.useMemo(()=>typeof h=="object"&&h.closeIcon||g?!0:typeof h=="boolean"?h:v!==!1&&v!==null&&v!==void 0?!0:!!(T!=null&&T.closable),[g,v,h,T==null?void 0:T.closable]),B=o&&p===void 0?!0:p,U=Re(R,`${R}-${F}`,{[`${R}-with-description`]:!!n,[`${R}-no-icon`]:!B,[`${R}-banner`]:!!o,[`${R}-rtl`]:x==="rtl"},T==null?void 0:T.className,a,s,P,I),G=ao(b,{aria:!0,data:!0}),V=m.useMemo(()=>{var $,H;return typeof h=="object"&&h.closeIcon?h.closeIcon:g||(v!==void 0?v:typeof(T==null?void 0:T.closable)=="object"&&(!(($=T==null?void 0:T.closable)===null||$===void 0)&&$.closeIcon)?(H=T==null?void 0:T.closable)===null||H===void 0?void 0:H.closeIcon:T==null?void 0:T.closeIcon)},[v,h,g,T==null?void 0:T.closeIcon]),W=m.useMemo(()=>{const $=h??(T==null?void 0:T.closable);return typeof $=="object"?ore($,["closeIcon"]):{}},[h,T==null?void 0:T.closable]);return N(m.createElement(qo,{visible:!S,motionName:`${R}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:$=>({maxHeight:$.offsetHeight}),onLeaveEnd:f},($,H)=>{let{className:K,style:re}=$;return m.createElement("div",Object.assign({id:_,ref:Sa(E,H),"data-show":!S,className:Re(U,K),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),l),re),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},G),B?m.createElement($Xe,{description:n,icon:e.icon,prefixCls:R,type:F}):null,m.createElement("div",{className:`${R}-content`},i?m.createElement("div",{className:`${R}-message`},i):null,n?m.createElement("div",{className:`${R}-description`},n):null),y?m.createElement("div",{className:`${R}-action`},y):null,m.createElement(FXe,{isClosable:L,prefixCls:R,closeIcon:V,handleClose:D,ariaProps:W}))}))});function BXe(e,t,n){return t=Vv(t),MCe(e,aD()?Reflect.construct(t,n||[],Vv(e).constructor):t.apply(e,n))}let UXe=function(e){function t(){var n;return Yr(this,t),n=BXe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Es(t,e),qr(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:o,children:a}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,d=typeof i>"u"?c:i;return s?m.createElement(twe,{id:o,type:"error",message:u,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(m.Component);const nwe=twe;nwe.ErrorBoundary=UXe;const are=e=>typeof e=="object"&&e!=null&&e.nodeType===1,sre=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",k4=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return sre(n.overflowY,t)||sre(n.overflowX,t)||(r=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},eO=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,jXe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},lre=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:L=>L!==c;if(!are(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;are(h)&&d(h);){if(h=jXe(h),h===f){p.push(h);break}h!=null&&h===document.body&&k4(h)&&!k4(document.documentElement)||h!=null&&k4(h,u)&&p.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:y,scrollY:_}=window,{height:b,width:S,top:C,right:E,bottom:w,left:x}=e.getBoundingClientRect(),{top:T,right:R,bottom:N,left:I}=(L=>{const B=window.getComputedStyle(L);return{top:parseFloat(B.scrollMarginTop)||0,right:parseFloat(B.scrollMarginRight)||0,bottom:parseFloat(B.scrollMarginBottom)||0,left:parseFloat(B.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?C-T:s==="end"?w+N:C+b/2-T+N,D=l==="center"?x+S/2-I+R:l==="end"?E+R:x-I;const F=[];for(let L=0;L<p.length;L++){const B=p[L],{height:U,width:G,top:V,right:W,bottom:$,left:H}=B.getBoundingClientRect();if(a==="if-needed"&&C>=0&&x>=0&&w<=v&&E<=g&&C>=V&&w<=$&&x>=H&&E<=W)return F;const K=getComputedStyle(B),re=parseInt(K.borderLeftWidth,10),Q=parseInt(K.borderTopWidth,10),A=parseInt(K.borderRightWidth,10),k=parseInt(K.borderBottomWidth,10);let Z=0,ne=0;const oe="offsetWidth"in B?B.offsetWidth-B.clientWidth-re-A:0,ae="offsetHeight"in B?B.offsetHeight-B.clientHeight-Q-k:0,ue="offsetWidth"in B?B.offsetWidth===0?0:G/B.offsetWidth:0,fe="offsetHeight"in B?B.offsetHeight===0?0:U/B.offsetHeight:0;if(f===B)Z=s==="start"?P:s==="end"?P-v:s==="nearest"?eO(_,_+v,v,Q,k,_+P,_+P+b,b):P-v/2,ne=l==="start"?D:l==="center"?D-g/2:l==="end"?D-g:eO(y,y+g,g,re,A,y+D,y+D+S,S),Z=Math.max(0,Z+_),ne=Math.max(0,ne+y);else{Z=s==="start"?P-V-Q:s==="end"?P-$+k+ae:s==="nearest"?eO(V,$,U,Q,k+ae,P,P+b,b):P-(V+U/2)+ae/2,ne=l==="start"?D-H-re:l==="center"?D-(H+G/2)+oe/2:l==="end"?D-W+A+oe:eO(H,W,G,re,A+oe,D,D+S,S);const{scrollLeft:se,scrollTop:pe}=B;Z=fe===0?0:Math.max(0,Math.min(pe+Z/fe,B.scrollHeight-U/fe+ae)),ne=ue===0?0:Math.max(0,Math.min(se+ne/ue,B.scrollWidth-G/ue+oe)),P+=pe-Z,D+=se-ne}F.push({el:B,top:Z,left:ne})}return F},HXe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function zXe(e,t){if(!e.isConnected||!(i=>{let o=i;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=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(lre(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of lre(e,HXe(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const oi=e=>{const[,,,,t]=Ea();return t?`${e}-css-var`:""};var gt={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>=gt.F1&&n<=gt.F12)return!1;switch(n){case gt.ALT:case gt.CAPS_LOCK:case gt.CONTEXT_MENU:case gt.CTRL:case gt.DOWN:case gt.END:case gt.ESC:case gt.HOME:case gt.INSERT:case gt.LEFT:case gt.MAC_FF_META:case gt.META:case gt.NUMLOCK:case gt.NUM_CENTER:case gt.PAGE_DOWN:case gt.PAGE_UP:case gt.PAUSE:case gt.PRINT_SCREEN:case gt.RIGHT:case gt.SHIFT:case gt.UP:case gt.WIN_KEY:case gt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=gt.ZERO&&t<=gt.NINE||t>=gt.NUM_ZERO&&t<=gt.NUM_MULTIPLY||t>=gt.A&&t<=gt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case gt.SPACE:case gt.QUESTION_MARK:case gt.NUM_PLUS:case gt.NUM_MINUS:case gt.NUM_PERIOD:case gt.NUM_DIVISION:case gt.SEMICOLON:case gt.DASH:case gt.EQUALS:case gt.COMMA:case gt.PERIOD:case gt.SLASH:case gt.APOSTROPHE:case gt.SINGLE_QUOTE:case gt.OPEN_SQUARE_BRACKET:case gt.BACKSLASH:case gt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rwe=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,f=e.closable,p=e.closeIcon,h=p===void 0?"x":p,g=e.props,v=e.onClick,y=e.onNoticeClose,_=e.times,b=e.hovering,S=m.useState(!1),C=Oe(S,2),E=C[0],w=C[1],x=m.useState(0),T=Oe(x,2),R=T[0],N=T[1],I=m.useState(0),P=Oe(I,2),D=P[0],F=P[1],L=b||E,B=a>0&&s,U=function(){y(u)},G=function(re){(re.key==="Enter"||re.code==="Enter"||re.keyCode===gt.ENTER)&&U()};m.useEffect(function(){if(!L&&a>0){var K=Date.now()-D,re=setTimeout(function(){U()},a*1e3-D);return function(){c&&clearTimeout(re),F(Date.now()-K)}}},[a,L,_]),m.useEffect(function(){if(!L&&B&&(c||D===0)){var K=performance.now(),re,Q=function A(){cancelAnimationFrame(re),re=requestAnimationFrame(function(k){var Z=k+D-K,ne=Math.min(Z/(a*1e3),1);N(ne*100),ne<1&&A()})};return Q(),function(){c&&cancelAnimationFrame(re)}}},[a,D,L,B,_]);var V=m.useMemo(function(){return qt(f)==="object"&&f!==null?f:f?{closeIcon:h}:{}},[f,h]),W=ao(V,!0),$=100-(!R||R<0?0:R>100?100:R),H="".concat(n,"-notice");return m.createElement("div",Qe({},g,{ref:t,className:Re(H,i,ie({},"".concat(H,"-closable"),f)),style:r,onMouseEnter:function(re){var Q;w(!0),g==null||(Q=g.onMouseEnter)===null||Q===void 0||Q.call(g,re)},onMouseLeave:function(re){var Q;w(!1),g==null||(Q=g.onMouseLeave)===null||Q===void 0||Q.call(g,re)},onClick:v}),m.createElement("div",{className:"".concat(H,"-content")},d),f&&m.createElement("a",Qe({tabIndex:0,className:"".concat(H,"-close"),onKeyDown:G,"aria-label":"Close"},W,{onClick:function(re){re.preventDefault(),re.stopPropagation(),U()}}),V.closeIcon),B&&m.createElement("progress",{className:"".concat(H,"-progress"),max:"100",value:$},$+"%"))}),iwe=de.createContext({}),owe=function(t){var n=t.children,r=t.classNames;return de.createElement(iwe.Provider,{value:{classNames:r}},n)},cre=8,ure=3,dre=16,VXe=function(t){var n={offset:cre,threshold:ure,gap:dre};if(t&&qt(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:cre,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:ure,n.gap=(o=t.gap)!==null&&o!==void 0?o:dre}return[!!t,n]},GXe=["className","style","classNames","styles"],WXe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,d=m.useContext(iwe),f=d.classNames,p=m.useRef({}),h=m.useState(null),g=Oe(h,2),v=g[0],y=g[1],_=m.useState([]),b=Oe(_,2),S=b[0],C=b[1],E=n.map(function(L){return{config:L,key:String(L.key)}}),w=VXe(u),x=Oe(w,2),T=x[0],R=x[1],N=R.offset,I=R.threshold,P=R.gap,D=T&&(S.length>0||E.length<=I),F=typeof s=="function"?s(r):s;return m.useEffect(function(){T&&S.length>1&&C(function(L){return L.filter(function(B){return E.some(function(U){var G=U.key;return B===G})})})},[S,E,T]),m.useEffect(function(){var L;if(T&&p.current[(L=E[E.length-1])===null||L===void 0?void 0:L.key]){var B;y(p.current[(B=E[E.length-1])===null||B===void 0?void 0:B.key])}},[E,T]),de.createElement(hD,Qe({key:r,className:Re(i,"".concat(i,"-").concat(r),f==null?void 0:f.list,o,ie(ie({},"".concat(i,"-stack"),!!T),"".concat(i,"-stack-expanded"),D)),style:a,keys:E,motionAppear:!0},F,{onAllRemoved:function(){l(r)}}),function(L,B){var U=L.config,G=L.className,V=L.style,W=L.index,$=U,H=$.key,K=$.times,re=String(H),Q=U,A=Q.className,k=Q.style,Z=Q.classNames,ne=Q.styles,oe=It(Q,GXe),ae=E.findIndex(function(Ee){return Ee.key===re}),ue={};if(T){var fe=E.length-1-(ae>-1?ae:W-1),se=r==="top"||r==="bottom"?"-50%":"0";if(fe>0){var pe,_e,Te;ue.height=D?(pe=p.current[re])===null||pe===void 0?void 0:pe.offsetHeight:v==null?void 0:v.offsetHeight;for(var xe=0,ge=0;ge<fe;ge++){var Ce;xe+=((Ce=p.current[E[E.length-1-ge].key])===null||Ce===void 0?void 0:Ce.offsetHeight)+P}var ye=(D?xe:fe*N)*(r.startsWith("top")?1:-1),be=!D&&v!==null&&v!==void 0&&v.offsetWidth&&(_e=p.current[re])!==null&&_e!==void 0&&_e.offsetWidth?((v==null?void 0:v.offsetWidth)-N*2*(fe<3?fe:3))/((Te=p.current[re])===null||Te===void 0?void 0:Te.offsetWidth):1;ue.transform="translate3d(".concat(se,", ").concat(ye,"px, 0) scaleX(").concat(be,")")}else ue.transform="translate3d(".concat(se,", 0, 0)")}return de.createElement("div",{ref:B,className:Re("".concat(i,"-notice-wrapper"),G,Z==null?void 0:Z.wrapper),style:q(q(q({},V),ue),ne==null?void 0:ne.wrapper),onMouseEnter:function(){return C(function(Me){return Me.includes(re)?Me:[].concat(at(Me),[re])})},onMouseLeave:function(){return C(function(Me){return Me.filter(function(X){return X!==re})})}},de.createElement(rwe,Qe({},oe,{ref:function(Me){ae>-1?p.current[re]=Me:delete p.current[re]},prefixCls:i,classNames:Z,styles:ne,className:Re(A,f==null?void 0:f.notice),style:k,times:K,key:H,eventKey:H,onNoticeClose:c,hovering:T&&S.length>0})))})},YXe=m.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=m.useState([]),p=Oe(f,2),h=p[0],g=p[1],v=function(T){var R,N=h.find(function(I){return I.key===T});N==null||(R=N.onClose)===null||R===void 0||R.call(N),g(function(I){return I.filter(function(P){return P.key!==T})})};m.useImperativeHandle(t,function(){return{open:function(T){g(function(R){var N=at(R),I=N.findIndex(function(F){return F.key===T.key}),P=q({},T);if(I>=0){var D;P.times=(((D=R[I])===null||D===void 0?void 0:D.times)||0)+1,N[I]=P}else P.times=0,N.push(P);return a>0&&N.length>a&&(N=N.slice(-a)),N})},close:function(T){v(T)},destroy:function(){g([])}}});var y=m.useState({}),_=Oe(y,2),b=_[0],S=_[1];m.useEffect(function(){var x={};h.forEach(function(T){var R=T.placement,N=R===void 0?"topRight":R;N&&(x[N]=x[N]||[],x[N].push(T))}),Object.keys(b).forEach(function(T){x[T]=x[T]||[]}),S(x)},[h]);var C=function(T){S(function(R){var N=q({},R),I=N[T]||[];return I.length||delete N[T],N})},E=m.useRef(!1);if(m.useEffect(function(){Object.keys(b).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[b]),!i)return null;var w=Object.keys(b);return Ha.createPortal(m.createElement(m.Fragment,null,w.map(function(x){var T=b[x],R=m.createElement(WXe,{key:x,configList:T,placement:x,prefixCls:r,className:s==null?void 0:s(x),style:l==null?void 0:l(x),motion:o,onNoticeClose:v,onAllNoticeRemoved:C,stack:u});return d?d(R,{prefixCls:r,key:x}):R})),i)}),qXe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],KXe=function(){return document.body},fre=0;function QXe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function awe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?KXe:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=It(e,qXe),f=m.useState(),p=Oe(f,2),h=p[0],g=p[1],v=m.useRef(),y=m.createElement(YXe,{container:h,ref:v,prefixCls:i,motion:r,maxCount:o,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),_=m.useState([]),b=Oe(_,2),S=b[0],C=b[1],E=m.useMemo(function(){return{open:function(x){var T=QXe(d,x);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(fre),fre+=1),C(function(R){return[].concat(at(R),[{type:"open",config:T}])})},close:function(x){C(function(T){return[].concat(at(T),[{type:"close",key:x}])})},destroy:function(){C(function(x){return[].concat(at(x),[{type:"destroy"}])})}}},[]);return m.useEffect(function(){g(n())}),m.useEffect(function(){v.current&&S.length&&(S.forEach(function(w){switch(w.type){case"open":v.current.open(w.config);break;case"close":v.current.close(w.key);break;case"destroy":v.current.destroy();break}}),C(function(w){return w.filter(function(x){return!S.includes(x)})}))},[S]),[E,y]}var XXe={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"},ZXe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:XXe}))},rf=m.forwardRef(ZXe);const bx=de.createContext(void 0),xm=100,JXe=10,TY=xm*JXe,swe={Modal:xm,Drawer:xm,Popover:xm,Popconfirm:xm,Tooltip:xm,Tour:xm,FloatButton:xm},eZe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function tZe(e){return e in swe}const au=(e,t)=>{const[,n]=Ea(),r=de.useContext(bx),i=tZe(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+swe[e]:a+=eZe[e],o=[r===void 0?t:a,a]}return o},nZe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:v,contentBg:y}=e,_=`${t}-notice`,b=new ir("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),S=new ir("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:c},[`${_}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
||
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},wr(e)),{color:i,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
||
${t}-move-up-appear,
|
||
${t}-move-up-enter
|
||
`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
|
||
${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:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${_}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},rZe=e=>({zIndexPopup:e.zIndexPopupBase+TY+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),lwe=dr("Message",e=>{const t=qn(e,{height:150});return[nZe(t)]},rZe);var iZe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const oZe={info:m.createElement(gD,null),success:m.createElement(I_,null),error:m.createElement(mf,null),warning:m.createElement($h,null),loading:m.createElement(rf,null)},cwe=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return m.createElement("div",{className:Re(`${t}-custom-content`,`${t}-${n}`)},r||oZe[n],m.createElement("span",null,i))},aZe=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=iZe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=m.useContext(nn),l=t||s("message"),c=oi(l),[u,d,f]=lwe(l,c);return u(m.createElement(rwe,Object.assign({},a,{prefixCls:l,className:Re(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:m.createElement(cwe,{prefixCls:l,type:r,icon:i},o)})))};function sZe(e,t){return{motionName:t??`${e}-move-up`}}function RY(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}var lZe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cZe=8,uZe=3,dZe=e=>{let{children:t,prefixCls:n}=e;const r=oi(n),[i,o,a]=lwe(n,r);return i(m.createElement(owe,{classNames:{list:Re(o,a,r)}},t))},fZe=(e,t)=>{let{prefixCls:n,key:r}=t;return m.createElement(dZe,{prefixCls:n,key:r},e)},pZe=m.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=uZe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=m.useContext(nn),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??cZe}),v=()=>Re({[`${h}-rtl`]:s??p==="rtl"}),y=()=>sZe(h,l),_=m.createElement("span",{className:`${h}-close-x`},m.createElement(ou,{className:`${h}-close-icon`})),[b,S]=awe({prefixCls:h,style:g,className:v,motion:y,closable:!1,closeIcon:_,duration:a,getContainer:()=>(i==null?void 0:i())||(d==null?void 0:d())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:fZe});return m.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:h,message:f})),S});let pre=0;function uwe(e){const t=m.useRef(null);return R_(),[m.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:d}=t.current,f=`${u}-notice`,{content:p,icon:h,type:g,key:v,className:y,style:_,onClose:b}=l,S=lZe(l,["content","icon","type","key","className","style","onClose"]);let C=v;return C==null&&(pre+=1,C=`antd-message-${pre}`),RY(E=>(c(Object.assign(Object.assign({},S),{key:C,content:m.createElement(cwe,{prefixCls:u,type:g,icon:h},p),placement:"top",className:Re(g&&`${f}-${g}`,y,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),_),onClose:()=>{b==null||b(),E()}})),()=>{r(C)}))},a={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,f)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let h,g;typeof d=="function"?g=d:(h=d,g=f);const v=Object.assign(Object.assign({onClose:g,duration:h},p),{type:l});return i(v)};a[l]=c}),a},[]),m.createElement(pZe,Object.assign({key:"message-holder"},e,{ref:t}))]}function dwe(e){return uwe(e)}function mZe(){const[e,t]=m.useState([]),n=m.useCallback(r=>(t(i=>[].concat(at(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function yr(){yr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(L,B,U){L[B]=U.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(L,B,U){return Object.defineProperty(L,B,{value:U,enumerable:!0,configurable:!0,writable:!0}),L[B]}try{c({},"")}catch{c=function(U,G,V){return U[G]=V}}function u(L,B,U,G){var V=B&&B.prototype instanceof y?B:y,W=Object.create(V.prototype),$=new D(G||[]);return i(W,"_invoke",{value:R(L,U,$)}),W}function d(L,B,U){try{return{type:"normal",arg:L.call(B,U)}}catch(G){return{type:"throw",arg:G}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",v={};function y(){}function _(){}function b(){}var S={};c(S,a,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(F([])));E&&E!==n&&r.call(E,a)&&(S=E);var w=b.prototype=y.prototype=Object.create(S);function x(L){["next","throw","return"].forEach(function(B){c(L,B,function(U){return this._invoke(B,U)})})}function T(L,B){function U(V,W,$,H){var K=d(L[V],L,W);if(K.type!=="throw"){var re=K.arg,Q=re.value;return Q&&qt(Q)=="object"&&r.call(Q,"__await")?B.resolve(Q.__await).then(function(A){U("next",A,$,H)},function(A){U("throw",A,$,H)}):B.resolve(Q).then(function(A){re.value=A,$(re)},function(A){return U("throw",A,$,H)})}H(K.arg)}var G;i(this,"_invoke",{value:function(W,$){function H(){return new B(function(K,re){U(W,$,K,re)})}return G=G?G.then(H,H):H()}})}function R(L,B,U){var G=f;return function(V,W){if(G===h)throw Error("Generator is already running");if(G===g){if(V==="throw")throw W;return{value:e,done:!0}}for(U.method=V,U.arg=W;;){var $=U.delegate;if($){var H=N($,U);if(H){if(H===v)continue;return H}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(G===f)throw G=g,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);G=h;var K=d(L,B,U);if(K.type==="normal"){if(G=U.done?g:p,K.arg===v)continue;return{value:K.arg,done:U.done}}K.type==="throw"&&(G=g,U.method="throw",U.arg=K.arg)}}}function N(L,B){var U=B.method,G=L.iterator[U];if(G===e)return B.delegate=null,U==="throw"&&L.iterator.return&&(B.method="return",B.arg=e,N(L,B),B.method==="throw")||U!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+U+"' method")),v;var V=d(G,L.iterator,B.arg);if(V.type==="throw")return B.method="throw",B.arg=V.arg,B.delegate=null,v;var W=V.arg;return W?W.done?(B[L.resultName]=W.value,B.next=L.nextLoc,B.method!=="return"&&(B.method="next",B.arg=e),B.delegate=null,v):W:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,v)}function I(L){var B={tryLoc:L[0]};1 in L&&(B.catchLoc=L[1]),2 in L&&(B.finallyLoc=L[2],B.afterLoc=L[3]),this.tryEntries.push(B)}function P(L){var B=L.completion||{};B.type="normal",delete B.arg,L.completion=B}function D(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(I,this),this.reset(!0)}function F(L){if(L||L===""){var B=L[a];if(B)return B.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var U=-1,G=function V(){for(;++U<L.length;)if(r.call(L,U))return V.value=L[U],V.done=!1,V;return V.value=e,V.done=!0,V};return G.next=G}}throw new TypeError(qt(L)+" is not iterable")}return _.prototype=b,i(w,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:_,configurable:!0}),_.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(L){var B=typeof L=="function"&&L.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,b):(L.__proto__=b,c(L,l,"GeneratorFunction")),L.prototype=Object.create(w),L},t.awrap=function(L){return{__await:L}},x(T.prototype),c(T.prototype,s,function(){return this}),t.AsyncIterator=T,t.async=function(L,B,U,G,V){V===void 0&&(V=Promise);var W=new T(u(L,B,U,G),V);return t.isGeneratorFunction(B)?W:W.next().then(function($){return $.done?$.value:W.next()})},x(w),c(w,l,"Generator"),c(w,a,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),t.keys=function(L){var B=Object(L),U=[];for(var G in B)U.push(G);return U.reverse(),function V(){for(;U.length;){var W=U.pop();if(W in B)return V.value=W,V.done=!1,V}return V.done=!0,V}},t.values=F,D.prototype={constructor:D,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!B)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=e)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var U=this;function G(re,Q){return $.type="throw",$.arg=B,U.next=re,Q&&(U.method="next",U.arg=e),!!Q}for(var V=this.tryEntries.length-1;V>=0;--V){var W=this.tryEntries[V],$=W.completion;if(W.tryLoc==="root")return G("end");if(W.tryLoc<=this.prev){var H=r.call(W,"catchLoc"),K=r.call(W,"finallyLoc");if(H&&K){if(this.prev<W.catchLoc)return G(W.catchLoc,!0);if(this.prev<W.finallyLoc)return G(W.finallyLoc)}else if(H){if(this.prev<W.catchLoc)return G(W.catchLoc,!0)}else{if(!K)throw Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return G(W.finallyLoc)}}}},abrupt:function(B,U){for(var G=this.tryEntries.length-1;G>=0;--G){var V=this.tryEntries[G];if(V.tryLoc<=this.prev&&r.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var W=V;break}}W&&(B==="break"||B==="continue")&&W.tryLoc<=U&&U<=W.finallyLoc&&(W=null);var $=W?W.completion:{};return $.type=B,$.arg=U,W?(this.method="next",this.next=W.finallyLoc,v):this.complete($)},complete:function(B,U){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&U&&(this.next=U),v},finish:function(B){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.finallyLoc===B)return this.complete(G.completion,G.afterLoc),P(G),v}},catch:function(B){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.tryLoc===B){var V=G.completion;if(V.type==="throw"){var W=V.arg;P(G)}return W}}throw Error("illegal catch attempt")},delegateYield:function(B,U,G){return this.delegate={iterator:F(B),resultName:U,nextLoc:G},this.method==="next"&&(this.arg=e),v}},t}function mre(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Oo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){mre(o,r,i,a,s,"next",l)}function s(l){mre(o,r,i,a,s,"throw",l)}a(void 0)})}}var Sx=q({},Ibe),hZe=Sx.version,L4=Sx.render,gZe=Sx.unmountComponentAtNode,vD;try{var vZe=Number((hZe||"").split(".")[0]);vZe>=18&&(vD=Sx.createRoot)}catch{}function hre(e){var t=Sx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&qt(t)==="object"&&(t.usingClientEntryPoint=e)}var mA="__rc_react_root__";function _Ze(e,t){hre(!0);var n=t[mA]||vD(t);hre(!1),n.render(e),t[mA]=n}function yZe(e,t){L4==null||L4(e,t)}function bZe(e,t){if(vD){_Ze(e,t);return}yZe(e,t)}function SZe(e){return Q7.apply(this,arguments)}function Q7(){return Q7=Oo(yr().mark(function e(t){return yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[mA])===null||i===void 0||i.unmount(),delete t[mA]}));case 1:case"end":return r.stop()}},e)})),Q7.apply(this,arguments)}function EZe(e){gZe(e)}function CZe(e){return X7.apply(this,arguments)}function X7(){return X7=Oo(yr().mark(function e(t){return yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(vD===void 0){r.next=2;break}return r.abrupt("return",SZe(t));case 2:EZe(t);case 3:case"end":return r.stop()}},e)})),X7.apply(this,arguments)}const wZe=(e,t)=>(bZe(e,t),()=>CZe(t));let xZe=wZe;function OY(){return xZe}const $4=()=>({height:0,opacity:0}),gre=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},TZe=e=>({height:e?e.offsetHeight:0}),F4=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",nw=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:tw}-motion-collapse`,onAppearStart:$4,onEnterStart:$4,onAppearActive:gre,onEnterActive:gre,onLeaveStart:TZe,onLeaveActive:$4,onAppearEnd:F4,onEnterEnd:F4,onLeaveEnd:F4,motionDeadline:500}},Pa=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ex=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 i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},RZe=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(",")}}}}},OZe=A1e("Wave",e=>[RZe(e)]),_D=`${tw}-wave-target`;function B4(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function IZe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return B4(t)?t:B4(n)?n:B4(r)?r:null}function U4(e){return Number.isNaN(e)?0:e}const NZe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=m.useRef(null),a=m.useRef(null);m.useEffect(()=>{a.current=i()},[]);const[s,l]=m.useState(null),[c,u]=m.useState([]),[d,f]=m.useState(0),[p,h]=m.useState(0),[g,v]=m.useState(0),[y,_]=m.useState(0),[b,S]=m.useState(!1),C={left:d,top:p,width:g,height:y,borderRadius:c.map(x=>`${x}px`).join(" ")};s&&(C["--wave-color"]=s);function E(){const x=getComputedStyle(n);l(IZe(n));const T=x.position==="static",{borderLeftWidth:R,borderTopWidth:N}=x;f(T?n.offsetLeft:U4(-parseFloat(R))),h(T?n.offsetTop:U4(-parseFloat(N))),v(n.offsetWidth),_(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:P,borderBottomLeftRadius:D,borderBottomRightRadius:F}=x;u([I,P,F,D].map(L=>U4(parseFloat(L))))}if(m.useEffect(()=>{if(n){const x=rr(()=>{E(),S(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(E),T.observe(n)),()=>{rr.cancel(x),T==null||T.disconnect()}}},[]),!b)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(_D));return m.createElement(qo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,T)=>{var R,N;if(T.deadline||T.propertyName==="opacity"){const I=(R=o.current)===null||R===void 0?void 0:R.parentElement;(N=a.current)===null||N===void 0||N.call(a).then(()=>{I==null||I.remove()})}return!1}},(x,T)=>{let{className:R}=x;return m.createElement("div",{ref:Sa(o,T),className:Re(t,R,{"wave-quick":w}),style:C})})},MZe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const o=OY();let a=null;function s(){return a}a=o(m.createElement(NZe,Object.assign({},t,{target:e,registerUnmount:s})),i)},AZe=(e,t,n)=>{const{wave:r}=m.useContext(nn),[,i,o]=Ea(),a=Wn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${_D}`)||u,{showEffect:f}=r||{};(f||MZe)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=m.useRef(null);return c=>{rr.cancel(s.current),s.current=rr(()=>{a(c)})}},yD=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=m.useContext(nn),o=m.useRef(null),a=i("wave"),[,s]=OZe(a),l=AZe(o,Re(a,s),r);if(de.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!Ex(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!de.isValidElement(t))return t??null;const c=Dp(t)?Sa(Lh(t),o):o;return Ko(t,{ref:c})},Zo=e=>{const t=de.useContext(Yv);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},PZe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},DZe=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"}}}},kZe=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}}}},fwe=dr("Space",e=>{const t=qn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[DZe(t),kZe(t),PZe(t)]},()=>({}),{resetStyle:!1});var pwe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bD=m.createContext(null),pd=(e,t)=>{const n=m.useContext(bD),r=m.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Re(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${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}},LZe=e=>{let{children:t}=e;return m.createElement(bD.Provider,{value:null},t)},$Ze=e=>{var{children:t}=e,n=pwe(e,["children"]);return m.createElement(bD.Provider,{value:n},t)},FZe=e=>{const{getPrefixCls:t,direction:n}=m.useContext(nn),{size:r,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=pwe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Zo(b=>r??b),f=t("space-compact",a),[p,h]=fwe(f),g=Re(f,h,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},s,l),v=m.useContext(bD),y=_a(c),_=m.useMemo(()=>y.map((b,S)=>{const C=(b==null?void 0:b.key)||`${f}-item-${S}`;return m.createElement($Ze,{key:C,compactSize:d,compactDirection:i,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[r,y,v]);return y.length===0?null:p(m.createElement("div",Object.assign({className:g},u),_))};var BZe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mwe=m.createContext(void 0),UZe=e=>{const{getPrefixCls:t,direction:n}=m.useContext(nn),{prefixCls:r,size:i,className:o}=e,a=BZe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ea();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Re(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return m.createElement(mwe.Provider,{value:i},m.createElement("div",Object.assign({},a,{className:u})))},vre=/^[\u4E00-\u9FA5]{2}$/,Z7=vre.test.bind(vre);function IY(e){return e==="danger"?{danger:!0}:{type:e}}function _re(e){return typeof e=="string"}function j4(e){return e==="text"||e==="link"}function jZe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&_re(e.type)&&Z7(e.props.children)?Ko(e,{children:e.props.children.split("").join(n)}):_re(e)?Z7(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):J1e(e)?de.createElement("span",null,e):e}function HZe(e,t){let n=!1;const r=[];return de.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),de.Children.map(r,i=>jZe(i,t))}["default","primary","danger"].concat(at(Qv));const J7=m.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=Re(`${o}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},i)}),yre=m.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=Re(`${n}-loading-icon`,r);return de.createElement(J7,{prefixCls:n,className:a,style:i,ref:t},de.createElement(rf,{className:o}))}),H4=()=>({width:0,opacity:0,transform:"scale(0)"}),z4=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),zZe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,s=!!n;return r?de.createElement(yre,{prefixCls:t,className:i,style:o}):de.createElement(qo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:H4,onAppearActive:z4,onEnterStart:H4,onEnterActive:z4,onLeaveStart:z4,onLeaveActive:H4},(l,c)=>{let{className:u,style:d}=l;const f=Object.assign(Object.assign({},o),d);return de.createElement(yre,{prefixCls:t,className:Re(i,u),style:f,ref:c})})},bre=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),VZe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(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}},bre(`${t}-primary`,i),bre(`${t}-danger`,o)]}};var GZe=["b"],WZe=["v"],V4=function(t){return Math.round(Number(t||0))},YZe=function(t){if(t instanceof cr)return t;if(t&&qt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=It(n,GZe);return q(q({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},nd=function(e){Es(n,e);var t=Vs(n);function n(r){return Yr(this,n),t.call(this,YZe(r))}return qr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=V4(i.s*100),a=V4(i.b*100),s=V4(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=It(i,WZe);return q(q({},a),{},{b:o,a:this.a})}}]),n}(cr),qZe="rc-color-picker",Sb=function(t){return t instanceof nd?t:new nd(t)},KZe=Sb("#1677ff"),hwe=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,o=t.color,a=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,f=u.height,p=d/2,h=f/2,g=(n.x+p)/l,v=1-(n.y+h)/c,y=o.toHsb(),_=g,b=(n.x+p)/l*360;if(a)switch(a){case"hue":return Sb(q(q({},y),{},{h:b<=0?0:b}));case"alpha":return Sb(q(q({},y),{},{a:_<=0?0:_}))}return Sb({h:y.h,s:g<=0?0:g,b:v>=1?1:v,a:y.a})},gwe=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},NY=function(t){var n=t.color,r=t.prefixCls,i=t.className,o=t.style,a=t.onClick,s="".concat(r,"-color-block");return de.createElement("div",{className:Re(s,i),style:o,onClick:a},de.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function QZe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function vwe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=m.useState({x:0,y:0}),u=Oe(c,2),d=u[0],f=u[1],p=m.useRef(null),h=m.useRef(null);m.useEffect(function(){f(a())},[s]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}},[]);var g=function(S){var C=QZe(S),E=C.pageX,w=C.pageY,x=n.current.getBoundingClientRect(),T=x.x,R=x.y,N=x.width,I=x.height,P=t.current.getBoundingClientRect(),D=P.width,F=P.height,L=D/2,B=F/2,U=Math.max(0,Math.min(E-T,N))-L,G=Math.max(0,Math.min(w-R,I))-B,V={x:U,y:r==="x"?d.y:G};if(D===0&&F===0||D!==F)return!1;i==null||i(V)},v=function(S){S.preventDefault(),g(S)},y=function(S){S.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,o==null||o()},_=function(S){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),!l&&(g(S),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),p.current=v,h.current=y)};return[d,_]}var _we=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,o=t.prefixCls;return de.createElement("div",{className:Re("".concat(o,"-handler"),ie({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},ywe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return de.createElement("div",{className:"".concat(i,"-palette"),style:q({position:"relative"},r)},n)},bwe=m.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return de.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),XZe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,o=t.onChangeComplete,a=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=Wn(function(g){var v=hwe({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),d=vwe({color:n,containerRef:s,targetRef:l,calculate:function(){return gwe(n)},onDragChange:u,onDragChangeComplete:function(){return o==null?void 0:o(c.current)},disabledDrag:a}),f=Oe(d,2),p=f[0],h=f[1];return de.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:h,onTouchStart:h},de.createElement(ywe,{prefixCls:i},de.createElement(bwe,{x:p.x,y:p.y,ref:l},de.createElement(_we,{color:n.toRgbString(),prefixCls:i})),de.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ZZe=function(t,n){var r=Fn(t,{value:n}),i=Oe(r,2),o=i[0],a=i[1],s=m.useMemo(function(){return Sb(o)},[o]);return[s,a]},JZe=function(t){var n=t.colors,r=t.children,i=t.direction,o=i===void 0?"to right":i,a=t.type,s=t.prefixCls,l=m.useMemo(function(){return n.map(function(c,u){var d=Sb(c);return a==="alpha"&&u===n.length-1&&(d=new nd(d.setA(1))),d.toRgbString()}).join(",")},[n,a]);return de.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},r)},eJe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,o=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=m.useRef(),u=m.useRef(),d=m.useRef(s),f=function(C){return l==="hue"?C.getHue():C.a*100},p=Wn(function(S){var C=hwe({offset:S,targetRef:u,containerRef:c,color:s,type:l});d.current=C,o(f(C))}),h=vwe({color:s,targetRef:u,containerRef:c,calculate:function(){return gwe(s,l)},onDragChange:p,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:i}),g=Oe(h,2),v=g[0],y=g[1],_=de.useMemo(function(){if(l==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var C=new nd(S);return C}return s},[s,l]),b=de.useMemo(function(){return r.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[r]);return de.createElement("div",{ref:c,className:Re("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},de.createElement(ywe,{prefixCls:n},de.createElement(bwe,{x:v.x,y:v.y,ref:u},de.createElement(_we,{size:"small",color:_.toHexString(),prefixCls:n})),de.createElement(JZe,{colors:b,type:l,prefixCls:n})))};function tJe(e){return m.useMemo(function(){var t=e||{},n=t.slider;return[n||eJe]},[e])}var nJe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],rJe=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,o=i===void 0?qZe:i,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,p=e.disabled,h=p===void 0?!1:p,g=e.components,v=tJe(g),y=Oe(v,1),_=y[0],b=ZZe(r||KZe,n),S=Oe(b,2),C=S[0],E=S[1],w=m.useMemo(function(){return C.setA(1).toRgbString()},[C]),x=function(G,V){n||E(G),a==null||a(G,V)},T=function(G){return new nd(C.setHue(G))},R=function(G){return new nd(C.setA(G/100))},N=function(G){x(T(G),{type:"hue",value:G})},I=function(G){x(R(G),{type:"alpha",value:G})},P=function(G){s&&s(T(G))},D=function(G){s&&s(R(G))},F=Re("".concat(o,"-panel"),l,ie({},"".concat(o,"-panel-disabled"),h)),L={prefixCls:o,disabled:h,color:C},B=de.createElement(de.Fragment,null,de.createElement(XZe,Qe({onChange:x},L,{onChangeComplete:s})),de.createElement("div",{className:"".concat(o,"-slider-container")},de.createElement("div",{className:Re("".concat(o,"-slider-group"),ie({},"".concat(o,"-slider-group-disabled-alpha"),f))},de.createElement(_,Qe({},L,{type:"hue",colors:nJe,min:0,max:359,value:C.getHue(),onChange:N,onChangeComplete:P})),!f&&de.createElement(_,Qe({},L,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:C.a*100,onChange:I,onChangeComplete:D}))),de.createElement(NY,{color:C.toRgbString(),prefixCls:o})));return de.createElement("div",{className:F,style:c,ref:t},typeof u=="function"?u(B):B)});const fC=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",iJe=(e,t)=>e?fC(e,t):"";let Yl=function(){function e(t){Yr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new nd(this.colors[0].color.metaColor)):this.metaColor=new nd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return qr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return iJe(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var oJe={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"},aJe=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:oJe}))},Ch=m.forwardRef(aJe),Swe=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,o=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,d=de.useState(s||r),f=Oe(d,2),p=f[0],h=f[1];return de.useEffect(function(){(r||s)&&h(!0)},[r,s]),p?de.createElement("div",{ref:t,className:Re("".concat(n,"-content"),ie(ie({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:o,role:l},de.createElement("div",{className:Re("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});Swe.displayName="PanelContent";var sJe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Ewe=de.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,o=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,d=e.styles,f=d===void 0?{}:d,p=e.prefixCls,h=e.collapsible,g=e.accordion,v=e.panelKey,y=e.extra,_=e.header,b=e.expandIcon,S=e.openMotion,C=e.destroyInactivePanel,E=e.children,w=It(e,sJe),x=h==="disabled",T=y!=null&&typeof y!="boolean",R=ie(ie(ie({onClick:function(){a==null||a(v)},onKeyDown:function(B){(B.key==="Enter"||B.keyCode===gt.ENTER||B.which===gt.ENTER)&&(a==null||a(v))},role:g?"tab":"button"},"aria-expanded",o),"aria-disabled",x),"tabIndex",x?-1:0),N=typeof b=="function"?b(e):de.createElement("i",{className:"arrow"}),I=N&&de.createElement("div",Qe({className:"".concat(p,"-expand-icon")},["header","icon"].includes(h)?R:{}),N),P=Re("".concat(p,"-item"),ie(ie({},"".concat(p,"-item-active"),o),"".concat(p,"-item-disabled"),x),l),D=Re(i,"".concat(p,"-header"),ie({},"".concat(p,"-collapsible-").concat(h),!!h),u.header),F=q({className:D,style:f.header},["header","icon"].includes(h)?{}:R);return de.createElement("div",Qe({},w,{ref:t,className:P}),de.createElement("div",F,r&&I,de.createElement("span",Qe({className:"".concat(p,"-header-text")},h==="header"?R:{}),_),T&&de.createElement("div",{className:"".concat(p,"-extra")},y)),de.createElement(qo,Qe({visible:o,leavedClassName:"".concat(p,"-content-hidden")},S,{forceRender:s,removeOnLeave:C}),function(L,B){var U=L.className,G=L.style;return de.createElement(Swe,{ref:B,prefixCls:p,className:U,classNames:u,style:G,styles:f,isActive:o,forceRender:s,role:g?"tabpanel":void 0},E)}))}),lJe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],cJe=function(t,n){var r=n.prefixCls,i=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,f){var p=d.children,h=d.label,g=d.key,v=d.collapsible,y=d.onItemClick,_=d.destroyInactivePanel,b=It(d,lJe),S=String(g??f),C=v??o,E=_??a,w=function(R){C!=="disabled"&&(s(R),y==null||y(R))},x=!1;return i?x=l[0]===S:x=l.indexOf(S)>-1,de.createElement(Ewe,Qe({},b,{prefixCls:r,key:S,panelKey:S,isActive:x,accordion:i,openMotion:c,expandIcon:u,header:h,collapsible:C,onItemClick:w,destroyInactivePanel:E}),p)})},uJe=function(t,n,r){if(!t)return null;var i=r.prefixCls,o=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,f=t.key||String(n),p=t.props,h=p.header,g=p.headerClass,v=p.destroyInactivePanel,y=p.collapsible,_=p.onItemClick,b=!1;o?b=c[0]===f:b=c.indexOf(f)>-1;var S=y??a,C=function(x){S!=="disabled"&&(l(x),_==null||_(x))},E={key:f,panelKey:f,header:h,headerClass:g,isActive:b,prefixCls:i,destroyInactivePanel:v??s,openMotion:u,accordion:o,children:t.props.children,onItemClick:C,expandIcon:d,collapsible:S};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(w){typeof E[w]>"u"&&delete E[w]}),de.cloneElement(t,E))};function dJe(e,t,n){return Array.isArray(e)?cJe(e,n):_a(t).map(function(r,i){return uJe(r,i,n)})}function fJe(e){var t=e;if(!Array.isArray(t)){var n=qt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var pJe=de.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,o=i===void 0?!1:i,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,g=e.onChange,v=e.items,y=Re(r,l),_=Fn([],{value:p,onChange:function(T){return g==null?void 0:g(T)},defaultValue:h,postState:fJe}),b=Oe(_,2),S=b[0],C=b[1],E=function(T){return C(function(){if(s)return S[0]===T?[]:[T];var R=S.indexOf(T),N=R>-1;return N?S.filter(function(I){return I!==T}):[].concat(at(S),[T])})};Wr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=dJe(v,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:o,onItemClick:E,activeKey:S});return de.createElement("div",Qe({ref:t,className:y,style:a,role:s?"tablist":void 0},ao(e,{aria:!0,data:!0})),w)});const MY=Object.assign(pJe,{Panel:Ewe});MY.Panel;const mJe=m.forwardRef((e,t)=>{const{getPrefixCls:n}=m.useContext(nn),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),s=Re({[`${a}-no-arrow`]:!o},i);return m.createElement(MY.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),Cx=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`}}}),hJe=e=>({animationDuration:e,animationFillMode:"both"}),gJe=e=>({animationDuration:e,animationFillMode:"both"}),SD=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
||
${o}${e}-enter,
|
||
${o}${e}-appear
|
||
`]:Object.assign(Object.assign({},hJe(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},gJe(r)),{animationPlayState:"paused"}),[`
|
||
${o}${e}-enter${e}-enter-active,
|
||
${o}${e}-appear${e}-appear-active
|
||
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},vJe=new ir("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_Je=new ir("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),AY=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[SD(r,vJe,_Je,e.motionDurationMid,t),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},yJe=new ir("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bJe=new ir("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),SJe=new ir("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),EJe=new ir("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),CJe=new ir("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wJe=new ir("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),xJe=new ir("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),TJe=new ir("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),RJe={"move-up":{inKeyframes:xJe,outKeyframes:TJe},"move-down":{inKeyframes:yJe,outKeyframes:bJe},"move-left":{inKeyframes:SJe,outKeyframes:EJe},"move-right":{inKeyframes:CJe,outKeyframes:wJe}},l0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=RJe[t];return[SD(r,i,o,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ED=new ir("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),CD=new ir("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wD=new ir("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),xD=new ir("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),OJe=new ir("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),IJe=new ir("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),NJe=new ir("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),MJe=new ir("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),AJe={"slide-up":{inKeyframes:ED,outKeyframes:CD},"slide-down":{inKeyframes:wD,outKeyframes:xD},"slide-left":{inKeyframes:OJe,outKeyframes:IJe},"slide-right":{inKeyframes:NJe,outKeyframes:MJe}},of=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=AJe[t];return[SD(r,i,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}}]},PY=new ir("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),PJe=new ir("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Sre=new ir("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ere=new ir("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),DJe=new ir("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),kJe=new ir("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),LJe=new ir("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$Je=new ir("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),FJe=new ir("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),BJe=new ir("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),UJe=new ir("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),jJe=new ir("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),HJe={zoom:{inKeyframes:PY,outKeyframes:PJe},"zoom-big":{inKeyframes:Sre,outKeyframes:Ere},"zoom-big-fast":{inKeyframes:Sre,outKeyframes:Ere},"zoom-left":{inKeyframes:LJe,outKeyframes:$Je},"zoom-right":{inKeyframes:FJe,outKeyframes:BJe},"zoom-up":{inKeyframes:DJe,outKeyframes:kJe},"zoom-down":{inKeyframes:UJe,outKeyframes:jJe}},oS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=HJe[t];return[SD(r,i,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}}]},zJe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:g,lineHeight:v,lineHeightLG:y,marginSM:_,paddingSM:b,paddingLG:S,paddingXS:C,motionDurationSlow:E,fontSizeIcon:w,contentPadding:x,fontHeight:T,fontHeightLG:R}=e,N=`${De(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},wr(e)),{backgroundColor:i,border:N,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${De(l)} ${De(l)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`0 0 ${De(l)} ${De(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:p,lineHeight:v,cursor:"pointer",transition:`all ${E}, visibility 0s`},Qc(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:_},[`${t}-arrow`]:Object.assign(Object.assign({},O_()),{fontSize:w,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:x},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:R,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${De(l)} ${De(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:_}}}}})}},VJe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},GJe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
|
||
> ${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}}}},WJe=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}}}}}},YJe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),qJe=dr("Collapse",e=>{const t=qn(e,{collapseHeaderPaddingSM:`${De(e.paddingXS)} ${De(e.paddingSM)}`,collapseHeaderPaddingLG:`${De(e.padding)} ${De(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[zJe(t),GJe(t),WJe(t),VJe(t),Cx(t)]},YJe),KJe=m.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=m.useContext(nn),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=Zo(N=>{var I;return(I=d??N)!==null&&I!==void 0?I:"middle"}),v=n("collapse",o),y=n(),[_,b,S]=qJe(v),C=m.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),E=h??(i==null?void 0:i.expandIcon),w=m.useCallback(function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const I=typeof E=="function"?E(N):m.createElement(Ch,{rotate:N.isActive?r==="rtl"?-90:90:void 0,"aria-label":N.isActive?"expanded":"collapsed"});return Ko(I,()=>{var P;return{className:Re((P=I==null?void 0:I.props)===null||P===void 0?void 0:P.className,`${v}-arrow`)}})},[E,v]),x=Re(`${v}-icon-position-${C}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},i==null?void 0:i.className,a,s,b,S),T=Object.assign(Object.assign({},nw(y)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),R=m.useMemo(()=>p?_a(p).map((N,I)=>{var P,D;const F=N.props;if(F!=null&&F.disabled){const L=(P=N.key)!==null&&P!==void 0?P:String(I),B=Object.assign(Object.assign({},ur(N.props,["disabled"])),{key:L,collapsible:(D=F.collapsible)!==null&&D!==void 0?D:"disabled"});return Ko(N,B)}return N}):null,[p]);return _(m.createElement(MY,Object.assign({ref:t,openMotion:T},ur(e,["rootClassName"]),{expandIcon:w,prefixCls:v,className:x,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),R))}),Cwe=Object.assign(KJe,{Panel:mJe}),_s=e=>e instanceof Yl?e:new Yl(e),eN=e=>Math.round(Number(e||0)),DY=e=>eN(e.toHsb().a*100),tN=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,_s(r)}return n.a=1,_s(n)},wwe=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(at(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const i=n[r].percent,o=n[r+1].percent,a=n[r].color,s=n[r+1].color;if(i<=t&&t<=o){const l=o-i;if(l===0)return a;const c=(t-i)/l*100,u=new nd(a),d=new nd(s);return u.mix(d,c).toRgbString()}}return""},G4=e=>e.map(t=>(t.colors=t.colors.map(_s),t)),xwe=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new nd(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},Cre=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},QJe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[o]=Gs("ColorPicker"),[,a]=Ea(),[s]=Fn(G4(n),{value:G4(n),postState:G4}),l=`${t}-presets`,c=m.useMemo(()=>s.reduce((f,p,h)=>{const{defaultOpen:g=!0}=p;return g&&f.push(Cre(p,h)),f},[]),[s]),u=f=>{i==null||i(f)},d=s.map((f,p)=>{var h;return{key:Cre(f,p),label:de.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:de.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((h=f.colors)===null||h===void 0?void 0:h.length)>0?f.colors.map((g,v)=>de.createElement(NY,{key:`preset-${v}-${g.toHexString()}`,color:_s(g).toRgbString(),prefixCls:t,className:Re(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:xwe(g,a.colorBgElevated)}),onClick:()=>u(g)})):de.createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return de.createElement("div",{className:l},de.createElement(Cwe,{defaultActiveKey:c,ghost:!0,items:d}))},Twe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return qn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Rwe=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:ZI(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:ZI(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ZI(c),p=xwe(new Yl(e.colorBgSolid),"#fff")?"#000":"#fff";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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},XJe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:s,calc:l}=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:`${De(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:O_(),"> a":{color:"currentColor"},"&:not(:disabled)":Qc(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Owe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ZJe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),JJe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),eet=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),kY=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Owe(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),tet=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},eet(e))}),net=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),TD=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?net:tet;return Object.assign(Object.assign({},o(e)),Owe(e.componentCls,t,n))},RD=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},TD(e,r,i))}),OD=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},TD(e,r,i))}),ID=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ND=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},TD(e,n,r))}),wh=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},TD(e,r,i,n))}),ret=e=>{const{componentCls:t}=e;return Qv.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${De(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},RD(e,e.colorTextLightSolid,i,{background:a},{background:c})),OD(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),ID(e)),ND(e,o,{background:s},{background:l})),wh(e,i,"link",{color:a},{color:c})),wh(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},iet=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},RD(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ID(e)),ND(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),wh(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),kY(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),oet=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},OD(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ID(e)),ND(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),wh(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),kY(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),aet=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},RD(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),OD(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ID(e)),ND(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),wh(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),wh(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),kY(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),set=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:iet(e),[`${t}-color-primary`]:oet(e),[`${t}-color-dangerous`]:aet(e)},ret(e))},cet=e=>Object.assign(Object.assign(Object.assign(Object.assign({},OD(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wh(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),RD(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),wh(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),LY=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${De(l)} ${De(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:ZJe(e)},{[`${n}${n}-round${t}`]:JJe(e)}]},uet=e=>{const t=qn(e,{fontSize:e.contentFontSize});return LY(t,e.componentCls)},det=e=>{const t=qn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return LY(t,`${e.componentCls}-sm`)},fet=e=>{const t=qn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return LY(t,`${e.componentCls}-lg`)},pet=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},met=dr("Button",e=>{const t=Twe(e);return[XJe(t),uet(t),det(t),fet(t),pet(t),set(t),cet(t),VZe(t)]},Rwe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function het(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function get(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function N_(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({},het(e,r,t)),get(n,r,t))}}function vet(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 _et(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 yet(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},vet(e,t)),_et(e.componentCls,t))}}const bet=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?o:0,insetInlineStart:s?0:o,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Eet=CY(["Button","compact"],e=>{const t=Twe(e);return[N_(t),yet(t),bet(t)]},Rwe);var Cet=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function wet(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const xet={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Tet=de.forwardRef((e,t)=>{var n,r,i,o;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:d=!1,shape:f="default",size:p,styles:h,disabled:g,className:v,rootClassName:y,children:_,icon:b,iconPosition:S="start",ghost:C=!1,block:E=!1,htmlType:w="button",classNames:x,style:T={},autoInsertSpace:R,autoFocus:N}=e,I=Cet(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=u||"default",[D,F]=m.useMemo(()=>{if(l&&c)return[l,c];const Be=xet[P]||[];return d?["danger",Be[1]]:Be},[u,l,c,d]),B=D==="danger"?"dangerous":D,{getPrefixCls:U,direction:G,button:V}=m.useContext(nn),W=(n=R??(V==null?void 0:V.autoInsertSpace))!==null&&n!==void 0?n:!0,$=U("btn",s),[H,K,re]=met($),Q=m.useContext(No),A=g??Q,k=m.useContext(mwe),Z=m.useMemo(()=>wet(a),[a]),[ne,oe]=m.useState(Z.loading),[ae,ue]=m.useState(!1),fe=m.useRef(null),se=fd(t,fe),pe=m.Children.count(_)===1&&!b&&!j4(F),_e=m.useRef(!0);de.useEffect(()=>(_e.current=!1,()=>{_e.current=!0}),[]),m.useEffect(()=>{let Be=null;Z.delay>0?Be=setTimeout(()=>{Be=null,oe(!0)},Z.delay):oe(Z.loading);function me(){Be&&(clearTimeout(Be),Be=null)}return me},[Z]),m.useEffect(()=>{if(!fe.current||!W)return;const Be=fe.current.textContent||"";pe&&Z7(Be)?ae||ue(!0):ae&&ue(!1)}),m.useEffect(()=>{N&&fe.current&&fe.current.focus()},[]);const Te=de.useCallback(Be=>{var me;if(ne||A){Be.preventDefault();return}(me=e.onClick)===null||me===void 0||me.call(e,Be)},[e.onClick,ne,A]),{compactSize:xe,compactItemClassnames:ge}=pd($,G),Ce={large:"lg",small:"sm",middle:void 0},ye=Zo(Be=>{var me,Fe;return(Fe=(me=p??xe)!==null&&me!==void 0?me:k)!==null&&Fe!==void 0?Fe:Be}),be=ye&&(r=Ce[ye])!==null&&r!==void 0?r:"",Ee=ne?"loading":b,Me=ur(I,["navigate"]),X=Re($,K,re,{[`${$}-${f}`]:f!=="default"&&f,[`${$}-${P}`]:P,[`${$}-dangerous`]:d,[`${$}-color-${B}`]:B,[`${$}-variant-${F}`]:F,[`${$}-${be}`]:be,[`${$}-icon-only`]:!_&&_!==0&&!!Ee,[`${$}-background-ghost`]:C&&!j4(F),[`${$}-loading`]:ne,[`${$}-two-chinese-chars`]:ae&&W&&!ne,[`${$}-block`]:E,[`${$}-rtl`]:G==="rtl",[`${$}-icon-end`]:S==="end"},ge,v,y,V==null?void 0:V.className),Y=Object.assign(Object.assign({},V==null?void 0:V.style),T),J=Re(x==null?void 0:x.icon,(i=V==null?void 0:V.classNames)===null||i===void 0?void 0:i.icon),he=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),((o=V==null?void 0:V.styles)===null||o===void 0?void 0:o.icon)||{}),ve=b&&!ne?de.createElement(J7,{prefixCls:$,className:J,style:he},b):typeof a=="object"&&a.icon?de.createElement(J7,{prefixCls:$,className:J,style:he},a.icon):de.createElement(zZe,{existIcon:!!b,prefixCls:$,loading:ne,mount:_e.current}),ce=_||_===0?HZe(_,pe&&W):null;if(Me.href!==void 0)return H(de.createElement("a",Object.assign({},Me,{className:Re(X,{[`${$}-disabled`]:A}),href:A?void 0:Me.href,style:Y,onClick:Te,ref:se,tabIndex:A?-1:0}),ve,ce));let $e=de.createElement("button",Object.assign({},I,{type:w,className:X,style:Y,onClick:Te,disabled:A,ref:se}),ve,ce,ge&&de.createElement(Eet,{prefixCls:$}));return j4(F)||($e=de.createElement(yD,{component:"Button",disabled:ne},$e)),H($e)}),On=Tet;On.Group=UZe;On.__ANT_BUTTON=!0;function W4(e){return!!(e!=null&&e.then)}const $Y=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m.useRef(!1),f=m.useRef(null),[p,h]=Kv(!1),g=function(){o==null||o.apply(void 0,arguments)};m.useEffect(()=>{let _=null;return a&&(_=setTimeout(()=>{var b;(b=f.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{_&&clearTimeout(_)}},[]);const v=_=>{W4(_)&&(h(!0),_.then(function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1},b=>{if(h(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},y=_=>{if(d.current)return;if(d.current=!0,!u){g();return}let b;if(s){if(b=u(_),c&&!W4(b)){d.current=!1,g(_);return}}else if(u.length)b=u(o),d.current=!1;else if(b=u(),!W4(b)){g();return}v(b)};return m.createElement(On,Object.assign({},IY(t),{onClick:y,loading:p,prefixCls:r},i,{ref:f}),n)},xx=de.createContext({}),{Provider:Iwe}=xx,wre=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l}=m.useContext(xx);return i?de.createElement($Y,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},xre=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l}=m.useContext(xx);return de.createElement($Y,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var Nwe=m.createContext(null),Tre=[];function Ret(e,t){var n=m.useState(function(){if(!tc())return null;var h=document.createElement("div");return h}),r=Oe(n,1),i=r[0],o=m.useRef(!1),a=m.useContext(Nwe),s=m.useState(Tre),l=Oe(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(h){u(function(g){var v=[h].concat(at(g));return v})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function p(){var h;(h=i.parentElement)===null||h===void 0||h.removeChild(i),o.current=!1}return gr(function(){return e?a?a(f):f():p(),p},[e]),gr(function(){c.length&&(c.forEach(function(h){return h()}),u(Tre))},[c]),[i,d]}function Oet(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 i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";mD(`
|
||
#`.concat(t,`::-webkit-scrollbar {
|
||
`).concat(u,`
|
||
`).concat(d,`
|
||
}`),t)}catch(h){console.error(h),i=l,o=c}}document.body.appendChild(n);var f=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),j7(t),{width:f,height:p}}function Iet(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Oet(e)}function Net(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Met="rc-util-locker-".concat(Date.now()),Rre=0;function Aet(e){var t=!!e,n=m.useState(function(){return Rre+=1,"".concat(Met,"_").concat(Rre)}),r=Oe(n,1),i=r[0];gr(function(){if(t){var o=Iet(document.body).width,a=Net();mD(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
||
}`),i)}else j7(i);return function(){j7(i)}},[t,i])}var Pet=!1;function Det(e){return Pet}var Ore=function(t){return t===!1?!1:!tc()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Tx=m.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=m.useState(n),c=Oe(l,2),u=c[0],d=c[1],f=u||n;m.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=m.useState(function(){return Ore(i)}),h=Oe(p,2),g=h[0],v=h[1];m.useEffect(function(){var N=Ore(i);v(N??null)});var y=Ret(f&&!g),_=Oe(y,2),b=_[0],S=_[1],C=g??b;Aet(r&&n&&tc()&&(C===b||C===document.body));var E=null;if(s&&Dp(s)&&t){var w=s;E=w.ref}var x=fd(E,t);if(!f||!tc()||g===void 0)return null;var T=C===!1||Det(),R=s;return t&&(R=m.cloneElement(s,{ref:x})),m.createElement(Nwe.Provider,{value:S},T?R:Ha.createPortal(R,C))}),Mwe=m.createContext({});function ket(){var e=q({},ex);return e.useId}var Ire=0,Nre=ket();const MD=Nre?function(t){var n=Nre();return t||n}:function(t){var n=m.useState("ssr-id"),r=Oe(n,2),i=r[0],o=r[1];return m.useEffect(function(){var a=Ire;Ire+=1,o("rc_unique_".concat(a))},[]),t||i};function Mre(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Are(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function Let(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Are(i),n.top+=Are(i,!0),n}const $et=m.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Fet={width:0,height:0,overflow:"hidden",outline:"none"},Bet={outline:"none"},Awe=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,_=e.visible,b=e.forceRender,S=e.width,C=e.height,E=e.classNames,w=e.styles,x=de.useContext(Mwe),T=x.panel,R=fd(y,T),N=m.useRef(),I=m.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var $;($=N.current)===null||$===void 0||$.focus({preventScroll:!0})},changeActive:function($){var H=document,K=H.activeElement;$&&K===I.current?N.current.focus({preventScroll:!0}):!$&&K===N.current&&I.current.focus({preventScroll:!0})}}});var P={};S!==void 0&&(P.width=S),C!==void 0&&(P.height=C);var D=s?de.createElement("div",{className:Re("".concat(n,"-footer"),E==null?void 0:E.footer),style:q({},w==null?void 0:w.footer)},s):null,F=o?de.createElement("div",{className:Re("".concat(n,"-header"),E==null?void 0:E.header),style:q({},w==null?void 0:w.header)},de.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,L=m.useMemo(function(){return qt(l)==="object"&&l!==null?l:l?{closeIcon:c??de.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),B=ao(L,!0),U=qt(l)==="object"&&l.disabled,G=l?de.createElement("button",Qe({type:"button",onClick:u,"aria-label":"Close"},B,{className:"".concat(n,"-close"),disabled:U}),L.closeIcon):null,V=de.createElement("div",{className:Re("".concat(n,"-content"),E==null?void 0:E.content),style:w==null?void 0:w.content},G,F,de.createElement("div",Qe({className:Re("".concat(n,"-body"),E==null?void 0:E.body),style:q(q({},f),w==null?void 0:w.body)},p),d),D);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:R,style:q(q({},i),P),className:Re(n,r),onMouseDown:g,onMouseUp:v},de.createElement("div",{ref:N,tabIndex:0,style:Bet},de.createElement($et,{shouldUpdate:_||b},h?h(V):V)),de.createElement("div",{tabIndex:0,ref:I,style:Fet}))}),Pwe=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=m.useRef(),h=m.useState(),g=Oe(h,2),v=g[0],y=g[1],_={};v&&(_.transformOrigin=v);function b(){var S=Let(p.current);y(f&&(f.x||f.y)?"".concat(f.x-S.left,"px ").concat(f.y-S.top,"px"):"")}return m.createElement(qo,{visible:a,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(S,C){var E=S.className,w=S.style;return m.createElement(Awe,Qe({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:C,style:q(q(q({},w),i),_),className:Re(o,E)}))})});Pwe.displayName="Content";var Uet=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,s=t.className;return m.createElement(qo,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return m.createElement("div",Qe({ref:c,style:q(q({},d),r),className:Re("".concat(n,"-mask"),u,s)},o))})},jet=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,o=t.visible,a=o===void 0?!1:o,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,d=t.wrapStyle,f=t.wrapClassName,p=t.wrapProps,h=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,_=t.animation,b=t.closable,S=b===void 0?!0:b,C=t.mask,E=C===void 0?!0:C,w=t.maskTransitionName,x=t.maskAnimation,T=t.maskClosable,R=T===void 0?!0:T,N=t.maskStyle,I=t.maskProps,P=t.rootClassName,D=t.classNames,F=t.styles,L=m.useRef(),B=m.useRef(),U=m.useRef(),G=m.useState(a),V=Oe(G,2),W=V[0],$=V[1],H=MD();function K(){B7(B.current,document.activeElement)||(L.current=document.activeElement)}function re(){if(!B7(B.current,document.activeElement)){var se;(se=U.current)===null||se===void 0||se.focus()}}function Q(se){if(se)re();else{if($(!1),E&&L.current&&u){try{L.current.focus({preventScroll:!0})}catch{}L.current=null}W&&(v==null||v())}g==null||g(se)}function A(se){h==null||h(se)}var k=m.useRef(!1),Z=m.useRef(),ne=function(){clearTimeout(Z.current),k.current=!0},oe=function(){Z.current=setTimeout(function(){k.current=!1})},ae=null;R&&(ae=function(pe){k.current?k.current=!1:B.current===pe.target&&A(pe)});function ue(se){if(l&&se.keyCode===gt.ESC){se.stopPropagation(),A(se);return}a&&se.keyCode===gt.TAB&&U.current.changeActive(!se.shiftKey)}m.useEffect(function(){a&&($(!0),K())},[a]),m.useEffect(function(){return function(){clearTimeout(Z.current)}},[]);var fe=q(q(q({zIndex:i},d),F==null?void 0:F.wrapper),{},{display:W?null:"none"});return m.createElement("div",Qe({className:Re("".concat(r,"-root"),P)},ao(t,{data:!0})),m.createElement(Uet,{prefixCls:r,visible:E&&a,motionName:Mre(r,w,x),style:q(q({zIndex:i},N),F==null?void 0:F.mask),maskProps:I,className:D==null?void 0:D.mask}),m.createElement("div",Qe({tabIndex:-1,onKeyDown:ue,className:Re("".concat(r,"-wrap"),f,D==null?void 0:D.wrapper),ref:B,onClick:ae,style:fe},p),m.createElement(Pwe,Qe({},t,{onMouseDown:ne,onMouseUp:oe,ref:U,closable:S,ariaId:H,prefixCls:r,visible:a&&W,onClose:A,onVisibleChanged:Q,motionName:Mre(r,y,_)}))))},FY=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,s=t.afterClose,l=t.panelRef,c=m.useState(n),u=Oe(c,2),d=u[0],f=u[1],p=m.useMemo(function(){return{panel:l}},[l]);return m.useEffect(function(){n&&f(!0)},[n]),!i&&a&&!d?null:m.createElement(Mwe.Provider,{value:p},m.createElement(Tx,{open:n||i||d,autoDestroy:!1,getContainer:r,autoLock:n||d},m.createElement(jet,Qe({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),f(!1)}}))))};FY.displayName="Dialog";var nv="RC_FORM_INTERNAL_HOOKS",wi=function(){Wr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},xh=m.createContext({getFieldValue:wi,getFieldsValue:wi,getFieldError:wi,getFieldWarning:wi,getFieldsError:wi,isFieldsTouched:wi,isFieldTouched:wi,isFieldValidating:wi,isFieldsValidating:wi,resetFields:wi,setFields:wi,setFieldValue:wi,setFieldsValue:wi,validateFields:wi,submit:wi,getInternalHooks:function(){return wi(),{dispatch:wi,initEntityValue:wi,registerField:wi,useSubscribe:wi,setInitialValues:wi,destroyForm:wi,setCallbacks:wi,registerWatch:wi,getFields:wi,setValidateMessages:wi,setPreserve:wi,getInitialValue:wi}}}),rw=m.createContext(null);function e9(e){return e==null?[]:Array.isArray(e)?e:[e]}function Het(e){return e&&!!e._init}function t9(){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 n9=t9();function zet(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Vet(e,t,n){if(aD())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Y1(i,n.prototype),i}function r9(e){var t=typeof Map=="function"?new Map:void 0;return r9=function(r){if(r===null||!zet(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,i)}function i(){return Vet(r,arguments,Vv(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Y1(i,r)},r9(e)}var Get=/%[sdj%]/g,Wet=function(){};function i9(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 ql(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Get,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function Yet(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ya(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Yet(t)&&typeof e=="string"&&!e)}function qet(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,at(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Pre(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?t(e[s],o):n([])}o([])}function Ket(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,at(e[n]||[]))}),t}var Dre=function(e){Es(n,e);var t=Vs(n);function n(r,i){var o;return Yr(this,n),o=t.call(this,"Async Validation Error"),ie(ln(o),"errors",void 0),ie(ln(o),"fields",void 0),o.errors=r,o.fields=i,o}return qr(n)}(r9(Error));function Qet(e,t,n,r,i){if(t.first){var o=new Promise(function(f,p){var h=function(y){return r(y),y.length?p(new Dre(y,i9(y))):f(i)},g=Ket(e);Pre(g,n,h)});return o.catch(function(f){return f}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,p){var h=function(v){if(u.push.apply(u,v),c++,c===l)return r(u),u.length?p(new Dre(u,i9(u))):f(i)};s.length||(r(u),f(i)),s.forEach(function(g){var v=e[g];a.indexOf(g)!==-1?Pre(v,n,h):qet(v,n,h)})});return d.catch(function(f){return f}),d}function Xet(e){return!!(e&&e.message!==void 0)}function Zet(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function kre(e,t){return function(n){var r;return e.fullFields?r=Zet(t,e.fullFields):r=t[n.field||e.fullField],Xet(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Lre(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];qt(r)==="object"&&qt(e[n])==="object"?e[n]=q(q({},e[n]),r):e[n]=r}}return e}var fy="enum",Jet=function(t,n,r,i,o){t[fy]=Array.isArray(t[fy])?t[fy]:[],t[fy].indexOf(n)===-1&&i.push(ql(o.messages[fy],t.fullField,t[fy].join(", ")))},ett=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ql(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(ql(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ttt=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&i.push(ql(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(ql(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(ql(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(ql(o.messages[d].range,t.fullField,t.min,t.max))},Dwe=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||ya(n,a||t.type))&&i.push(ql(o.messages.required,t.fullField))},tO;const ntt=function(){if(tO)return tO;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}",i=["(?:".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,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(p,"|").concat(h,"|").concat(g).concat(v).concat(y,")").concat(_).concat(b);return tO=new RegExp("(?:^".concat(S,"$)"),"i"),tO};var $re={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},pC={integer:function(t){return pC.number(t)&&parseInt(t,10)===t},float:function(t){return pC.number(t)&&!pC.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 qt(t)==="object"&&!pC.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($re.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ntt())},hex:function(t){return typeof t=="string"&&!!t.match($re.hex)}},rtt=function(t,n,r,i,o){if(t.required&&n===void 0){Dwe(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?pC[s](n)||i.push(ql(o.messages.types[s],t.fullField,t.type)):s&&qt(n)!==t.type&&i.push(ql(o.messages.types[s],t.fullField,t.type))},itt=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(ql(o.messages.whitespace,t.fullField))};const Gr={required:Dwe,whitespace:itt,type:rtt,range:ttt,enum:Jet,pattern:ett};var ott=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o)}r(a)},att=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Gr.required(t,n,i,a,o,"array"),n!=null&&(Gr.type(t,n,i,a,o),Gr.range(t,n,i,a,o))}r(a)},stt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&Gr.type(t,n,i,a,o)}r(a)},ltt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n,"date")&&!t.required)return r();if(Gr.required(t,n,i,a,o),!ya(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Gr.type(t,l,i,a,o),l&&Gr.range(t,l.getTime(),i,a,o)}}r(a)},ctt="enum",utt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&Gr[ctt](t,n,i,a,o)}r(a)},dtt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&(Gr.type(t,n,i,a,o),Gr.range(t,n,i,a,o))}r(a)},ftt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&(Gr.type(t,n,i,a,o),Gr.range(t,n,i,a,o))}r(a)},ptt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&Gr.type(t,n,i,a,o)}r(a)},mtt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&(Gr.type(t,n,i,a,o),Gr.range(t,n,i,a,o))}r(a)},htt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),n!==void 0&&Gr.type(t,n,i,a,o)}r(a)},gtt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n,"string")&&!t.required)return r();Gr.required(t,n,i,a,o),ya(n,"string")||Gr.pattern(t,n,i,a,o)}r(a)},vtt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n)&&!t.required)return r();Gr.required(t,n,i,a,o),ya(n)||Gr.type(t,n,i,a,o)}r(a)},_tt=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":qt(n);Gr.required(t,n,i,a,o,s),r(a)},ytt=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ya(n,"string")&&!t.required)return r();Gr.required(t,n,i,a,o,"string"),ya(n,"string")||(Gr.type(t,n,i,a,o),Gr.range(t,n,i,a,o),Gr.pattern(t,n,i,a,o),t.whitespace===!0&&Gr.whitespace(t,n,i,a,o))}r(a)},Y4=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(ya(n,a)&&!t.required)return r();Gr.required(t,n,i,s,o,a),ya(n,a)||Gr.type(t,n,i,s,o)}r(s)};const WC={string:ytt,method:ptt,number:mtt,boolean:stt,regexp:vtt,integer:ftt,float:dtt,array:att,object:htt,enum:utt,pattern:gtt,date:ltt,url:Y4,hex:Y4,email:Y4,required:_tt,any:ott};var Rx=function(){function e(t){Yr(this,e),ie(this,"rules",null),ie(this,"_messages",n9),this.define(t)}return qr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(qt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Lre(t9(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var g=[],v={};function y(b){if(Array.isArray(b)){var S;g=(S=g).concat.apply(S,at(b))}else g.push(b)}for(var _=0;_<h.length;_++)y(h[_]);g.length?(v=i9(g),l(g,v)):l(null,a)}if(s.messages){var u=this.messages();u===n9&&(u=t9()),Lre(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(h){var g=r.rules[h],v=a[h];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(a===n&&(a=q({},a)),v=a[h]=_.transform(v),v!=null&&(_.type=_.type||(Array.isArray(v)?"array":qt(v)))),typeof _=="function"?_={validator:_}:_=q({},_),_.validator=r.getValidationMethod(_),_.validator&&(_.field=h,_.fullField=_.fullField||h,_.type=r.getType(_),d[h]=d[h]||[],d[h].push({rule:_,value:v,source:a,field:h}))})});var p={};return Qet(d,s,function(h,g){var v=h.rule,y=(v.type==="object"||v.type==="array")&&(qt(v.fields)==="object"||qt(v.defaultField)==="object");y=y&&(v.required||!v.required&&h.value),v.field=h.field;function _(w,x){return q(q({},x),{},{fullField:"".concat(v.fullField,".").concat(w),fullFields:v.fullFields?[].concat(at(v.fullFields),[w]):[w]})}function b(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=Array.isArray(w)?w:[w];!s.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&v.message!==void 0&&(x=[].concat(v.message));var T=x.map(kre(v,a));if(s.first&&T.length)return p[v.field]=1,g(T);if(!y)g(T);else{if(v.required&&!h.value)return v.message!==void 0?T=[].concat(v.message).map(kre(v,a)):s.error&&(T=[s.error(v,ql(s.messages.required,v.field))]),g(T);var R={};v.defaultField&&Object.keys(h.value).map(function(P){R[P]=v.defaultField}),R=q(q({},R),h.rule.fields);var N={};Object.keys(R).forEach(function(P){var D=R[P],F=Array.isArray(D)?D:[D];N[P]=F.map(_.bind(null,P))});var I=new e(N);I.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),I.validate(h.value,h.rule.options||s,function(P){var D=[];T&&T.length&&D.push.apply(D,at(T)),P&&P.length&&D.push.apply(D,at(P)),g(D.length?D:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,h.value,b,h.source,s);else if(v.validator){try{S=v.validator(v,h.value,b,h.source,s)}catch(w){var C,E;(C=(E=console).error)===null||C===void 0||C.call(E,w),s.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}S===!0?b():S===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(w){return b(w)})},function(h){c(h)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!WC.hasOwnProperty(n.type))throw new Error(ql("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),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?WC.required:WC[this.getType(n)]||void 0}}]),e}();ie(Rx,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");WC[t]=n});ie(Rx,"warning",Wet);ie(Rx,"messages",n9);ie(Rx,"validators",WC);var Nl="'${name}' is not a valid ${type}",kwe={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:Nl,method:Nl,array:Nl,object:Nl,number:Nl,date:Nl,boolean:Nl,integer:Nl,float:Nl,regexp:Nl,email:Nl,url:Nl,hex:Nl},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}"}},Fre=Rx;function btt(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Bre="CODE_LOGIC_ERROR";function o9(e,t,n,r,i){return a9.apply(this,arguments)}function a9(){return a9=Oo(yr().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,f,p,h;return yr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=q({},r),delete a.ruleIndex,Fre.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(Bre)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Fre(ie({},t,[a])),u=nb(kwe,i.validateMessages),c.messages(u),d=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ie({},t,n),q({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(d=v.t0.errors.map(function(y,_){var b=y.message,S=b===Bre?u.default:b;return m.isValidElement(S)?m.cloneElement(S,{key:"error_".concat(_)}):S}));case 18:if(!(!d.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,_){return o9("".concat(t,".").concat(_),y,l,i,o)}));case 21:return f=v.sent,v.abrupt("return",f.reduce(function(y,_){return[].concat(at(y),at(_))},[]));case 23:return p=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=d.map(function(y){return typeof y=="string"?btt(y,p):y}),v.abrupt("return",h);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),a9.apply(this,arguments)}function Stt(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,p=q(q({},u),{},{ruleIndex:d});return f&&(p.validator=function(h,g,v){var y=!1,_=function(){for(var C=arguments.length,E=new Array(C),w=0;w<C;w++)E[w]=arguments[w];Promise.resolve().then(function(){Wr(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,E)})},b=f(h,g,_);y=b&&typeof b.then=="function"&&typeof b.catch=="function",Wr(y,"`callback` is deprecated. Please return a promise instead."),y&&b.then(function(){v()}).catch(function(S){v(S||" ")})}),p}).sort(function(u,d){var f=u.warningOnly,p=u.ruleIndex,h=d.warningOnly,g=d.ruleIndex;return!!f==!!h?p-g:f?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Oo(yr().mark(function d(f,p){var h,g,v;return yr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:h=0;case 1:if(!(h<s.length)){_.next=12;break}return g=s[h],_.next=5,o9(a,t,g,r,o);case 5:if(v=_.sent,!v.length){_.next=9;break}return p([{errors:v,rule:g}]),_.abrupt("return");case 9:h+=1,_.next=1;break;case 12:f([]);case 13:case"end":return _.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return o9(a,t,u,r,o).then(function(d){return{errors:d,rule:u}})});l=(i?Ctt(c):Ett(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function Ett(e){return s9.apply(this,arguments)}function s9(){return s9=Oo(yr().mark(function e(t){return yr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,at(i));return a}));case 1:case"end":return r.stop()}},e)})),s9.apply(this,arguments)}function Ctt(e){return l9.apply(this,arguments)}function l9(){return l9=Oo(yr().mark(function e(t){var n;return yr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),l9.apply(this,arguments)}function $o(e){return e9(e)}function Ure(e,t){var n={};return t.forEach(function(r){var i=ia(e,r);n=jo(n,r,i)}),n}function Eb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Lwe(t,r,n)})}function Lwe(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,i){return e[i]===r})}function wtt(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||qt(e)!=="object"||qt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return at(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function xtt(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&qt(t.target)==="object"&&e in t.target?t.target[e]:t}function jre(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(at(e.slice(0,n)),[i],at(e.slice(n,t)),at(e.slice(t+1,r))):o<0?[].concat(at(e.slice(0,t)),at(e.slice(t+1,n+1)),[i],at(e.slice(n+1,r))):e}var Ttt=["name"],bc=[];function q4(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var BY=function(e){Es(n,e);var t=Vs(n);function n(r){var i;if(Yr(this,n),i=t.call(this,r),ie(ln(i),"state",{resetCount:0}),ie(ln(i),"cancelRegisterFunc",null),ie(ln(i),"mounted",!1),ie(ln(i),"touched",!1),ie(ln(i),"dirty",!1),ie(ln(i),"validatePromise",void 0),ie(ln(i),"prevValidating",void 0),ie(ln(i),"errors",bc),ie(ln(i),"warnings",bc),ie(ln(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,$o(d)),i.cancelRegisterFunc=null}),ie(ln(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(at(f),at(c)):[]}),ie(ln(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),ie(ln(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ie(ln(i),"metaCache",null),ie(ln(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=q(q({},i.getMeta()),{},{destroy:l});qv(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ie(ln(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,p=d.dependencies,h=p===void 0?[]:p,g=d.onReset,v=u.store,y=i.getNamePath(),_=i.getValue(l),b=i.getValue(v),S=c&&Eb(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!qv(_,b)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=bc,i.warnings=bc,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=bc,i.warnings=bc,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(f&&q4(f,l,v,_,b,u)){i.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||bc),"warnings"in C&&(i.warnings=C.warnings||bc),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&Eb(c,y,!0)){i.reRender();return}if(f&&!y.length&&q4(f,l,v,_,b,u)){i.reRender();return}break}case"dependenciesUpdate":{var E=h.map($o);if(E.some(function(w){return Eb(u.relatedFields,w)})){i.reRender();return}break}default:if(S||(!h.length||y.length||f)&&q4(f,l,v,_,b,u)){i.reRender();return}break}f===!0&&i.reRender()}),ie(ln(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,h=p===void 0?!1:p,g=Promise.resolve().then(Oo(yr().mark(function v(){var y,_,b,S,C,E,w;return yr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=i.props,_=y.validateFirst,b=_===void 0?!1:_,S=y.messageVariables,C=y.validateDebounce,E=i.getRules(),f&&(E=E.filter(function(R){return R}).filter(function(R){var N=R.validateTrigger;if(!N)return!0;var I=e9(N);return I.includes(f)})),!(C&&f)){T.next=10;break}return T.next=8,new Promise(function(R){setTimeout(R,C)});case 8:if(i.validatePromise===g){T.next=10;break}return T.abrupt("return",[]);case 10:return w=Stt(c,u,E,l,b,S),w.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bc;if(i.validatePromise===g){var N;i.validatePromise=null;var I=[],P=[];(N=R.forEach)===null||N===void 0||N.call(R,function(D){var F=D.rule.warningOnly,L=D.errors,B=L===void 0?bc:L;F?P.push.apply(P,at(B)):I.push.apply(I,at(B))}),i.errors=I,i.warnings=P,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",w);case 13:case"end":return T.stop()}},v)})));return h||(i.validatePromise=g,i.dirty=!0,i.errors=bc,i.warnings=bc,i.triggerMetaEvent(),i.reRender()),g}),ie(ln(i),"isFieldValidating",function(){return!!i.validatePromise}),ie(ln(i),"isFieldTouched",function(){return i.touched}),ie(ln(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(nv),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ie(ln(i),"getErrors",function(){return i.errors}),ie(ln(i),"getWarnings",function(){return i.warnings}),ie(ln(i),"isListField",function(){return i.props.isListField}),ie(ln(i),"isList",function(){return i.props.isList}),ie(ln(i),"isPreserve",function(){return i.props.preserve}),ie(ln(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ie(ln(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return q(q({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=_a(l);return u.length!==1||!m.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ie(ln(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return ia(l||c(!0),u)}),ie(ln(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,_=f!==void 0?f:y.validateTrigger,b=i.getNamePath(),S=y.getInternalHooks,C=y.getFieldsValue,E=S(nv),w=E.dispatch,x=i.getValue(),T=v||function(D){return ie({},g,D)},R=l[d],N=u!==void 0?T(x):{},I=q(q({},l),N);I[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var D,F=arguments.length,L=new Array(F),B=0;B<F;B++)L[B]=arguments[B];p?D=p.apply(void 0,L):D=xtt.apply(void 0,[g].concat(L)),h&&(D=h(D,x,C(!0))),D!==x&&w({type:"updateValue",namePath:b,value:D}),R&&R.apply(void 0,L)};var P=e9(_||[]);return P.forEach(function(D){var F=I[D];I[D]=function(){F&&F.apply(void 0,arguments);var L=i.props.rules;L&&L.length&&w({type:"validateField",namePath:b,triggerName:D})}}),I}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(nv),s=a.initEntityValue;s(ln(i))}return i}return qr(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(nv),c=l.registerField;this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,l=a.isFunction,c;return l?c=s:m.isValidElement(s)?c=m.cloneElement(s,this.getControlled(s.props)):(Wr(!s,"`children` of Field is not validate ReactElement."),c=s),m.createElement(m.Fragment,{key:i},c)}}]),n}(m.Component);ie(BY,"contextType",xh);ie(BY,"defaultProps",{trigger:"onChange",valuePropName:"value"});function UY(e){var t,n=e.name,r=It(e,Ttt),i=m.useContext(xh),o=m.useContext(rw),a=n!==void 0?$o(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((a||[]).join("_"))),m.createElement(BY,Qe({key:l,name:a,isListField:s},r,{fieldContext:i}))}function $we(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=m.useContext(xh),l=m.useContext(rw),c=m.useRef({keys:[],id:0}),u=c.current,d=m.useMemo(function(){var g=$o(s.prefixName)||[];return[].concat(at(g),at($o(t)))},[s.prefixName,t]),f=m.useMemo(function(){return q(q({},s),{},{prefixName:d})},[s,d]),p=m.useMemo(function(){return{getKey:function(v){var y=d.length,_=v[y];return[u.keys[_],v.slice(y+1)]}}},[d]);if(typeof r!="function")return Wr(!1,"Form.List only accepts function as children."),null;var h=function(v,y,_){var b=_.source;return b==="internal"?!1:v!==y};return m.createElement(rw.Provider,{value:p},m.createElement(xh.Provider,{value:f},m.createElement(UY,{name:[],shouldUpdate:h,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!l},function(g,v){var y=g.value,_=y===void 0?[]:y,b=g.onChange,S=s.getFieldValue,C=function(){var T=S(d||[]);return T||[]},E={add:function(T,R){var N=C();R>=0&&R<=N.length?(u.keys=[].concat(at(u.keys.slice(0,R)),[u.id],at(u.keys.slice(R))),b([].concat(at(N.slice(0,R)),[T],at(N.slice(R))))):(u.keys=[].concat(at(u.keys),[u.id]),b([].concat(at(N),[T]))),u.id+=1},remove:function(T){var R=C(),N=new Set(Array.isArray(T)?T:[T]);N.size<=0||(u.keys=u.keys.filter(function(I,P){return!N.has(P)}),b(R.filter(function(I,P){return!N.has(P)})))},move:function(T,R){if(T!==R){var N=C();T<0||T>=N.length||R<0||R>=N.length||(u.keys=jre(u.keys,T,R),b(jre(N,T,R)))}}},w=_||[];return Array.isArray(w)||(w=[]),r(w.map(function(x,T){var R=u.keys[T];return R===void 0&&(u.keys[T]=u.id,R=u.keys[T],u.id+=1),{name:T,key:R,isListField:!0}}),E,v)})))}function Rtt(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var Fwe="__@field_split__";function K4(e){return e.map(function(t){return"".concat(qt(t),":").concat(t)}).join(Fwe)}var py=function(){function e(){Yr(this,e),ie(this,"kvs",new Map)}return qr(e,[{key:"set",value:function(n,r){this.kvs.set(K4(n),r)}},{key:"get",value:function(n){return this.kvs.get(K4(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(K4(n))}},{key:"map",value:function(n){return at(this.kvs.entries()).map(function(r){var i=Oe(r,2),o=i[0],a=i[1],s=o.split(Fwe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Oe(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),Ott=["name"],Itt=qr(function e(t){var n=this;Yr(this,e),ie(this,"formHooked",!1),ie(this,"forceRootUpdate",void 0),ie(this,"subscribable",!0),ie(this,"store",{}),ie(this,"fieldEntities",[]),ie(this,"initialValues",{}),ie(this,"callbacks",{}),ie(this,"validateMessages",null),ie(this,"preserve",null),ie(this,"lastValidatePromise",null),ie(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}}),ie(this,"getInternalHooks",function(r){return r===nv?(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}):(Wr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ie(this,"useSubscribe",function(r){n.subscribable=r}),ie(this,"prevWithoutPreserves",null),ie(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=nb(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=jo(a,l,ia(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),ie(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new py;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ie(this,"getInitialValue",function(r){var i=ia(n.initialValues,r);return r.length?nb(i):i}),ie(this,"setCallbacks",function(r){n.callbacks=r}),ie(this,"setValidateMessages",function(r){n.validateMessages=r}),ie(this,"setPreserve",function(r){n.preserve=r}),ie(this,"watchList",[]),ie(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ie(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),ie(this,"timeoutId",null),ie(this,"warningUnhooked",function(){}),ie(this,"updateStore",function(r){n.store=r}),ie(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ie(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new py;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),ie(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=$o(o);return i.get(a)||{INVALIDATE_NAME_PATH:$o(o)}})}),ie(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&qt(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var d,f,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!o&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(p);else{var v="getMeta"in u?u.getMeta():null;a(v)&&c.push(p)}}),Ure(n.store,c.map($o))}),ie(this,"getFieldValue",function(r){n.warningUnhooked();var i=$o(r);return ia(n.store,i)}),ie(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:$o(r[a]),errors:[],warnings:[]}})}),ie(this,"getFieldError",function(r){n.warningUnhooked();var i=$o(r),o=n.getFieldsError([i])[0];return o.errors}),ie(this,"getFieldWarning",function(r){n.warningUnhooked();var i=$o(r),o=n.getFieldsError([i])[0];return o.warnings}),ie(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(a)?(l=a.map($o),c=!1):(l=null,c=a):(l=a.map($o),c=s);var u=n.getFieldEntities(!0),d=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(g){return d(g)||g.isList()}):u.some(d);var f=new py;l.forEach(function(g){f.set(g,[])}),u.forEach(function(g){var v=g.getNamePath();l.forEach(function(y){y.every(function(_,b){return v[b]===_})&&f.update(y,function(_){return[].concat(at(_),[g])})})});var p=function(v){return v.some(d)},h=f.map(function(g){var v=g.value;return v});return c?h.every(p):h.some(p)}),ie(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ie(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map($o);return i.some(function(a){var s=a.getNamePath();return Eb(o,s)&&a.isFieldValidating()})}),ie(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ie(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new py,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)Wr(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=i.get(f);if(h&&h.size>1)Wr(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(f),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(jo(n.store,f,at(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,at(at(c).map(function(d){return d.entity})))}})):s=o,a(s)}),ie(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(nb(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map($o);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(jo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),ie(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=It(a,Ott),c=$o(s);o.push(c),"value"in l&&n.updateStore(jo(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),ie(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=q(q({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ie(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=ia(n.store,o);a===void 0&&n.updateStore(jo(n.store,o,i))}}),ie(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ie(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),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(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!Lwe(d.getNamePath(),i)})){var u=n.store;n.updateStore(jo(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ie(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),ie(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=q(q({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),ie(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(at(o))}),o}),ie(this,"updateValue",function(r,i){var o=$o(r),a=n.store;n.updateStore(jo(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=Ure(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(at(s)))}),ie(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=nb(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ie(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ie(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new py;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=$o(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),l(f))}})};return s(r),o}),ie(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new py;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Eb(r,u)});l.length&&o(l,a)}}),ie(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map($o):[],c=[],u=String(Date.now()),d=new Set,f=a||{},p=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach(function(_){if(s||l.push(_.getNamePath()),!(!_.props.rules||!_.props.rules.length)&&!(h&&!_.isFieldDirty())){var b=_.getNamePath();if(d.add(b.join(u)),!s||Eb(l,b,p)){var S=_.validateRules(q({validateMessages:q(q({},kwe),n.validateMessages)},a));c.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(C){var E,w=[],x=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(T){var R=T.rule.warningOnly,N=T.errors;R?x.push.apply(x,at(N)):w.push.apply(w,at(N))}),w.length?Promise.reject({name:b,errors:w,warnings:x}):{name:b,errors:w,warnings:x}}))}}});var g=Rtt(c);n.lastValidatePromise=g,g.catch(function(_){return _}).then(function(_){var b=_.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,_)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(_){var b=_.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==g})});v.catch(function(_){return _});var y=l.filter(function(_){return d.has(_.join(u))});return n.triggerOnFieldsChange(y),v}),ie(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function jY(e){var t=m.useRef(),n=m.useState({}),r=Oe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new Itt(o);t.current=a.getForm()}return[t.current]}var c9=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Bwe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=m.useContext(c9),s=m.useRef({});return m.createElement(c9.Provider,{value:q(q({},a),{},{validateMessages:q(q({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=q(q({},s.current),{},ie({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=q({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},Ntt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Mtt=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,h=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,_=t.clearOnDestroy,b=It(t,Ntt),S=m.useRef(null),C=m.useContext(c9),E=jY(a),w=Oe(E,1),x=w[0],T=x.getInternalHooks(nv),R=T.useSubscribe,N=T.setInitialValues,I=T.setCallbacks,P=T.setValidateMessages,D=T.setPreserve,F=T.destroyForm;m.useImperativeHandle(n,function(){return q(q({},x),{},{nativeElement:S.current})}),m.useEffect(function(){return C.registerForm(r,x),function(){C.unregisterForm(r)}},[C,x,r]),P(q(q({},C.validateMessages),d)),I({onValuesChange:h,onFieldsChange:function(K){if(C.triggerFormChange(r,K),g){for(var re=arguments.length,Q=new Array(re>1?re-1:0),A=1;A<re;A++)Q[A-1]=arguments[A];g.apply(void 0,[K].concat(Q))}},onFinish:function(K){C.triggerFormFinish(r,K),v&&v(K)},onFinishFailed:y}),D(s);var L=m.useRef(null);N(i,!L.current),L.current||(L.current=!0),m.useEffect(function(){return function(){return F(_)}},[]);var B,U=typeof l=="function";if(U){var G=x.getFieldsValue(!0);B=l(G,x)}else B=l;R(!U);var V=m.useRef();m.useEffect(function(){wtt(V.current||[],o||[])||x.setFields(o||[]),V.current=o},[o,x]);var W=m.useMemo(function(){return q(q({},x),{},{validateTrigger:p})},[x,p]),$=m.createElement(rw.Provider,{value:null},m.createElement(xh.Provider,{value:W},B));return u===!1?$:m.createElement(u,Qe({},b,{ref:S,onSubmit:function(K){K.preventDefault(),K.stopPropagation(),x.submit()},onReset:function(K){var re;K.preventDefault(),x.resetFields(),(re=b.onReset)===null||re===void 0||re.call(b,K)}}),$)};function Hre(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Uwe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=i===void 0?{}:i,a=Het(o)?{form:o}:o,s=a.form,l=m.useState(),c=Oe(l,2),u=c[0],d=c[1],f=m.useMemo(function(){return Hre(u)},[u]),p=m.useRef(f);p.current=f;var h=m.useContext(xh),g=s||h,v=g&&g._init,y=$o(r),_=m.useRef(y);return _.current=y,m.useEffect(function(){if(v){var b=g.getFieldsValue,S=g.getInternalHooks,C=S(nv),E=C.registerWatch,w=function(N,I){var P=a.preserve?I:N;return typeof r=="function"?r(P):ia(P,_.current)},x=E(function(R,N){var I=w(R,N),P=Hre(I);p.current!==P&&(p.current=P,d(I))}),T=w(b(),b(!0));return u!==T&&d(T),x}},[v]),u}var Att=m.forwardRef(Mtt),aS=Att;aS.FormProvider=Bwe;aS.Field=UY;aS.List=$we;aS.useForm=jY;aS.useWatch=Uwe;const Sp=m.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),jwe=m.createContext(null),Hwe=e=>{const t=ur(e,["prefixCls"]);return m.createElement(Bwe,Object.assign({},t))},HY=m.createContext({prefixCls:""}),Qo=m.createContext({}),Ptt=e=>{let{children:t,status:n,override:r}=e;const i=m.useContext(Qo),o=m.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return m.createElement(Qo.Provider,{value:o},t)},zwe=m.createContext(void 0),rd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=de.createElement(Ptt,{override:!0,status:!0},i)),t&&(i=de.createElement(LZe,null,i)),i};function hA(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function zre(e){const{closable:t,closeIcon:n}=e||{};return de.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 Vre(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{i[o]!==void 0&&(e[o]=i[o])})}),e}const Dtt={};function Vwe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dtt;const r=zre(e),i=zre(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=de.useMemo(()=>Object.assign({closeIcon:de.createElement(ou,null)},n),[n]),s=de.useMemo(()=>r===!1?!1:r?Vre(a,i,r):i===!1?!1:i?Vre(a,i):a.closable?a:!1,[r,i,a]);return de.useMemo(()=>{if(s===!1)return[!1,null,o];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const d=ao(s,!0);Object.keys(d).length&&(u=de.isValidElement(u)?de.cloneElement(u,d):de.createElement("span",Object.assign({},d),u))}return[!0,u,o]},[s,a])}const ktt=()=>tc()&&window.document.documentElement,AD=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=Re({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Re({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=m.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return m.createElement("span",{className:Re(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},Ltt=new ir("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),PD=e=>({height:e,lineHeight:De(e)}),Cb=e=>Object.assign({width:e},PD(e)),$tt=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ltt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Q4=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},PD(e)),Ftt=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Cb(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Cb(i)),[`${t}${t}-sm`]:Object.assign({},Cb(o))}},Btt=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Q4(t,s)),[`${r}-lg`]:Object.assign({},Q4(i,s)),[`${r}-sm`]:Object.assign({},Q4(o,s))}},Gre=e=>Object.assign({width:e},PD(e)),Utt=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},Gre(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Gre(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%"}}},X4=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Z4=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},PD(e)),jtt=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Z4(r,s))},X4(e,r,n)),{[`${n}-lg`]:Object.assign({},Z4(i,s))}),X4(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Z4(o,s))}),X4(e,o,`${n}-sm`))},Htt=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:_,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Cb(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Cb(c)),[`${n}-sm`]:Object.assign({},Cb(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:_}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jtt(e)),Ftt(e)),Btt(e)),Utt(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${o},
|
||
${a},
|
||
${s}
|
||
`]:Object.assign({},$tt(e))}}},ztt=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},sS=dr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=qn(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[Htt(r)]},ztt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Vtt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=m.useContext(nn),l=s("skeleton",t),[c,u,d]=sS(l),f=ur(e,["prefixCls","className"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(m.createElement("div",{className:p},m.createElement(AD,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},f))))},Gtt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=m.useContext(nn),l=s("skeleton",t),[c,u,d]=sS(l),f=ur(e,["prefixCls"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(m.createElement("div",{className:p},m.createElement(AD,Object.assign({prefixCls:`${l}-button`,size:a},f))))},Wtt="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",Ytt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=m.useContext(nn),s=a("skeleton",t),[l,c,u]=sS(s),d=Re(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(m.createElement("div",{className:d},m.createElement("div",{className:Re(`${s}-image`,n),style:i},m.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},m.createElement("title",null,"Image placeholder"),m.createElement("path",{d:Wtt,className:`${s}-image-path`})))))},qtt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=m.useContext(nn),l=s("skeleton",t),[c,u,d]=sS(l),f=ur(e,["prefixCls"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(m.createElement("div",{className:p},m.createElement(AD,Object.assign({prefixCls:`${l}-input`,size:a},f))))},Ktt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=m.useContext(nn),l=s("skeleton",t),[c,u,d]=sS(l),f=Re(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,d);return c(m.createElement("div",{className:f},m.createElement("div",{className:Re(`${l}-image`,n),style:i},a)))},Qtt=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Xtt=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=at(new Array(i)).map((a,s)=>m.createElement("li",{key:s,style:{width:Qtt(s,e)}}));return m.createElement("ul",{className:Re(t,n),style:r},o)},Ztt=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return m.createElement("h3",{className:Re(t,n),style:Object.assign({width:r},i)})};function J4(e){return e&&typeof e=="object"?e:{}}function Jtt(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ent(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function tnt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Lp=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=m.useContext(nn),g=f("skeleton",t),[v,y,_]=sS(g);if(n||!("loading"in e)){const b=!!s,S=!!l,C=!!c;let E;if(b){const T=Object.assign(Object.assign({prefixCls:`${g}-avatar`},Jtt(S,C)),J4(s));E=m.createElement("div",{className:`${g}-header`},m.createElement(AD,Object.assign({},T)))}let w;if(S||C){let T;if(S){const N=Object.assign(Object.assign({prefixCls:`${g}-title`},ent(b,C)),J4(l));T=m.createElement(Ztt,Object.assign({},N))}let R;if(C){const N=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},tnt(b,S)),J4(c));R=m.createElement(Xtt,Object.assign({},N))}w=m.createElement("div",{className:`${g}-content`},T,R)}const x=Re(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:u,[`${g}-rtl`]:p==="rtl",[`${g}-round`]:d},h==null?void 0:h.className,r,i,y,_);return v(m.createElement("div",{className:x,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,w))}return a??null};Lp.Button=Gtt;Lp.Avatar=Vtt;Lp.Input=qtt;Lp.Image=Ytt;Lp.Node=Ktt;function Wre(){}const nnt=m.createContext({add:Wre,remove:Wre});function Gwe(e){const t=m.useContext(nnt),n=m.useRef(null);return Wn(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const Yre=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=m.useContext(xx);return de.createElement(On,Object.assign({onClick:n},e),t)},qre=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=m.useContext(xx);return de.createElement(On,Object.assign({},IY(n),{loading:e,onClick:i},t),r)};function Wwe(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(ou,{className:`${e}-close-icon`}))}const Ywe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Gs("Modal",p1e()),d=t||(u==null?void 0:u.okText),f=r||(u==null?void 0:u.cancelText),p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:o,onCancel:a},h=de.useMemo(()=>p,at(Object.values(p)));let g;return typeof c=="function"||typeof c>"u"?(g=de.createElement(de.Fragment,null,de.createElement(Yre,null),de.createElement(qre,null)),typeof c=="function"&&(g=c(g,{OkBtn:qre,CancelBtn:Yre})),g=de.createElement(Iwe,{value:h},g)):g=c,de.createElement(SY,{disabled:!1},g)},rnt=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"}}}},int=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ont=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},u9=(e,t)=>ont(e,t),ant=(e,t,n)=>({[`@media (min-width: ${De(t)})`]:Object.assign({},u9(e,n))}),snt=()=>({}),lnt=()=>({}),cnt=dr("Grid",rnt,snt),qwe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),unt=dr("Grid",e=>{const t=qn(e,{gridColumns:24}),n=qwe(t);return delete n.xs,[int(t),u9(t,""),u9(t,"-xs"),Object.keys(n).map(r=>ant(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},lnt);function Kre(e){return{position:e,inset:0}}const Kwe=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({},Kre("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Kre("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:AY(e)}]},dnt=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:`${De(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},wr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${De(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:De(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Qc(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${De(e.borderRadiusLG)} ${De(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:`${De(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"}}}]},fnt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pnt=e=>{const{componentCls:t}=e,n=qwe(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${De(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(at(r))}}},Qwe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return qn(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()})},Xwe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${De(e.paddingMD)} ${De(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${De(e.padding)} ${De(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${De(e.paddingXS)} ${De(e.padding)}`:0,footerBorderTop:e.wireframe?`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${De(e.padding*2)} ${De(e.padding*2)} ${De(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Zwe=dr("Modal",e=>{const t=Qwe(e);return[dnt(t),fnt(t),Kwe(t),oS(t,"zoom"),pnt(t)]},Xwe,{unitless:{titleLineHeight:!0}});var mnt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let d9;const hnt=e=>{d9={x:e.pageX,y:e.pageY},setTimeout(()=>{d9=null},100)};ktt()&&document.documentElement.addEventListener("click",hnt,!0);const Jwe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=m.useContext(nn),a=Q=>{const{onCancel:A}=e;A==null||A(Q)},s=Q=>{const{onOk:A}=e;A==null||A(Q)},{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:f,centered:p,getContainer:h,focusTriggerAfterClose:g=!0,style:v,visible:y,width:_=520,footer:b,classNames:S,styles:C,children:E,loading:w}=e,x=mnt(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),T=r("modal",l),R=r(),N=oi(T),[I,P,D]=Zwe(T,N),F=Re(f,{[`${T}-centered`]:!!p,[`${T}-wrap-rtl`]:i==="rtl"}),L=b!==null&&!w?m.createElement(Ywe,Object.assign({},e,{onOk:s,onCancel:a})):null,[B,U,G]=Vwe(hA(e),hA(o),{closable:!0,closeIcon:m.createElement(ou,{className:`${T}-close-icon`}),closeIconRender:Q=>Wwe(T,Q)}),V=Gwe(`.${T}-content`),[W,$]=au("Modal",x.zIndex),[H,K]=m.useMemo(()=>_&&typeof _=="object"?[void 0,_]:[_,void 0],[_]),re=m.useMemo(()=>{const Q={};return K&&Object.keys(K).forEach(A=>{const k=K[A];k!==void 0&&(Q[`--${T}-${A}-width`]=typeof k=="number"?`${k}px`:k)}),Q},[K]);return I(m.createElement(rd,{form:!0,space:!0},m.createElement(bx.Provider,{value:$},m.createElement(FY,Object.assign({width:H},x,{zIndex:W,getContainer:h===void 0?n:h,prefixCls:T,rootClassName:Re(P,u,D,N),footer:L,visible:d??y,mousePosition:(t=x.mousePosition)!==null&&t!==void 0?t:d9,onClose:a,closable:B&&{disabled:G,closeIcon:U},closeIcon:U,focusTriggerAfterClose:g,transitionName:Pa(R,"zoom",e.transitionName),maskTransitionName:Pa(R,"fade",e.maskTransitionName),className:Re(P,c,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),v),re),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),S),{wrapper:Re(F,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),C),panelRef:V}),w?m.createElement(Lp,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):E))))},gnt=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},nf()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${De(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${De(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
||
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},vnt=CY(["Modal","confirm"],e=>{const t=Qwe(e);return[gnt(t)]},Xwe,{order:-1e3});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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function exe(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,u=_nt(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(a){case"info":d=m.createElement(gD,null);break;case"success":d=m.createElement(I_,null);break;case"error":d=m.createElement(mf,null);break;default:d=m.createElement($h,null)}const f=s??a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=Gs("Modal"),g=c||h,v=r||(f?g==null?void 0:g.okText:g==null?void 0:g.justOkText),y=i||(g==null?void 0:g.cancelText),_=Object.assign({autoFocusButton:p,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:f},u),b=m.useMemo(()=>_,at(Object.values(_))),S=m.createElement(m.Fragment,null,m.createElement(wre,null),m.createElement(xre,null)),C=e.title!==void 0&&e.title!==null,E=`${o}-body`;return m.createElement("div",{className:`${o}-body-wrapper`},m.createElement("div",{className:Re(E,{[`${E}-has-title`]:C})},d,m.createElement("div",{className:`${o}-paragraph`},C&&m.createElement("span",{className:`${o}-title`},e.title),m.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?m.createElement(Iwe,{value:b},m.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(S,{OkBtn:xre,CancelBtn:wre}):S)):l,m.createElement(vnt,{prefixCls:t}))}const ynt=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d}=e,f=`${o}-confirm`,p=e.width||416,h=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=Re(f,`${f}-${e.type}`,{[`${f}-rtl`]:i==="rtl"},e.className),[,_]=Ea(),b=m.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+TY,[n,_]);return m.createElement(Jwe,Object.assign({},e,{className:y,wrapClassName:Re({[`${f}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:Pa(s||"","zoom",e.transitionName),maskTransitionName:Pa(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:h,styles:Object.assign({body:l,mask:r},d),width:p,zIndex:b,closable:c}),m.createElement(exe,Object.assign({},e,{confirmPrefixCls:f})))},txe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return m.createElement(Pn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},m.createElement(ynt,Object.assign({},e)))},rv=[];let nxe="";function rxe(){return nxe}const bnt=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=p1e(),s=m.useContext(nn),l=rxe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),de.createElement(txe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,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:a,getContainer:u}))};function Ox(e){const t=Y1e(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(){for(var u,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];if(f.some(v=>v==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(at(f.slice(1))))}for(let v=0;v<rv.length;v++)if(rv[v]===l){rv.splice(v,1);break}o()}function s(u){clearTimeout(i),i=setTimeout(()=>{const d=t.getPrefixCls(void 0,rxe()),f=t.getIconPrefixCls(),p=t.getTheme(),h=de.createElement(bnt,Object.assign({},u));o=OY()(de.createElement(Pn,{prefixCls:d,iconPrefixCls:f,theme:p},t.holderRender?t.holderRender(h):h),n)})}function l(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),rv.push(l),{destroy:l,update:c}}function ixe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function oxe(e){return Object.assign(Object.assign({},e),{type:"info"})}function axe(e){return Object.assign(Object.assign({},e),{type:"success"})}function sxe(e){return Object.assign(Object.assign({},e),{type:"error"})}function lxe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Snt(e){let{rootPrefixCls:t}=e;nxe=t}var Ent=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Cnt=(e,t)=>{var n,{afterClose:r,config:i}=e,o=Ent(e,["afterClose","config"]);const[a,s]=m.useState(!0),[l,c]=m.useState(i),{direction:u,getPrefixCls:d}=m.useContext(nn),f=d("modal"),p=d(),h=()=>{var _;r(),(_=l.afterClose)===null||_===void 0||_.call(l)},g=function(){var _;s(!1);for(var b=arguments.length,S=new Array(b),C=0;C<b;C++)S[C]=arguments[C];if(S.some(x=>x==null?void 0:x.triggerCancel)){var w;(_=l.onCancel)===null||_===void 0||(w=_).call.apply(w,[l,()=>{}].concat(at(S.slice(1))))}};m.useImperativeHandle(t,()=>({destroy:g,update:_=>{c(b=>Object.assign(Object.assign({},b),_))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=Gs("Modal",Kc.Modal);return m.createElement(txe,Object.assign({prefixCls:f,rootPrefixCls:p},l,{close:g,open:a,afterClose:h,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},o))},wnt=m.forwardRef(Cnt);let Qre=0;const xnt=m.memo(m.forwardRef((e,t)=>{const[n,r]=mZe();return m.useImperativeHandle(t,()=>({patchElement:r}),[]),m.createElement(m.Fragment,null,n)}));function cxe(){const e=m.useRef(null),[t,n]=m.useState([]);m.useEffect(()=>{t.length&&(at(t).forEach(a=>{a()}),n([]))},[t]);const r=m.useCallback(o=>function(s){var l;Qre+=1;const c=m.createRef();let u;const d=new Promise(v=>{u=v});let f=!1,p;const h=m.createElement(wnt,{key:`modal-${Qre}`,config:o(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>f,onConfirm:v=>{u(v)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(h),p&&rv.push(p),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():n(y=>[].concat(at(y),[v]))},update:v=>{function y(){var _;(_=c.current)===null||_===void 0||_.update(v)}c.current?y():n(_=>[].concat(at(_),[y]))},then:v=>(f=!0,d.then(v))}},[]);return[m.useMemo(()=>({info:r(oxe),success:r(axe),error:r(sxe),warning:r(ixe),confirm:r(lxe)}),[]),m.createElement(xnt,{key:"modal-holder",ref:e})]}const Tnt=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,o=new ir("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new ir("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new ir("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new ir("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},Rnt=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Ont={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Int=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Ont[t]]:{value:0,_skip_check_:!0}}}}},Nnt=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Mnt=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Ant=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Nnt(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Mnt(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Rnt.map(n=>Int(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Pnt=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:g,notificationProgressHeight:v,fontSize:y,lineHeight:_,width:b,notificationIconSize:S,colorText:C}=e,E=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[E]:{padding:p,width:b,maxWidth:`calc(100vw - ${De(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:_,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:y,color:C},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:i},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:y},[`${E}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Qc(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${De(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},Dnt=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=e,a=`${t}-notice`,s=new ir("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},wr(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Pnt(e))}}]},knt=e=>({zIndexPopup:e.zIndexPopupBase+TY+50,width:384}),Lnt=e=>{const t=e.paddingMD,n=e.paddingLG;return qn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${De(e.paddingMD)} ${De(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},$nt=dr("Notification",e=>{const t=Lnt(e);return[Dnt(t),Tnt(t),Ant(t)]},knt);function uxe(e,t){return t===null||t===!1?null:t||m.createElement(ou,{className:`${e}-close-icon`})}const Fnt={success:I_,info:gD,error:mf,warning:$h},Bnt=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,btn:a,role:s="alert"}=e;let l=null;return n?l=m.createElement("span",{className:`${t}-icon`},n):r&&(l=m.createElement(Fnt[r]||null,{className:Re(`${t}-icon`,`${t}-icon-${r}`)})),m.createElement("div",{className:Re({[`${t}-with-icon`]:l}),role:s},l,m.createElement("div",{className:`${t}-message`},i),m.createElement("div",{className:`${t}-description`},o),a&&m.createElement("div",{className:`${t}-btn`},a))};function Unt(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function jnt(e){return{motionName:`${e}-fade`}}var Hnt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Xre=24,znt=4.5,Vnt="topRight",Gnt=e=>{let{children:t,prefixCls:n}=e;const r=oi(n),[i,o,a]=$nt(n,r);return i(de.createElement(owe,{classNames:{list:Re(o,a,r)}},t))},Wnt=(e,t)=>{let{prefixCls:n,key:r}=t;return de.createElement(Gnt,{prefixCls:n,key:r},e)},Ynt=de.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:o,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:h,notification:g,direction:v}=m.useContext(nn),[,y]=Ea(),_=i||p("notification"),b=x=>Unt(x,n??Xre,r??Xre),S=()=>Re({[`${_}-rtl`]:s??v==="rtl"}),C=()=>jnt(_),[E,w]=awe({prefixCls:_,style:b,className:S,motion:C,closable:!0,closeIcon:uxe(_),duration:u??znt,getContainer:()=>(o==null?void 0:o())||(h==null?void 0:h())||document.body,maxCount:a,pauseOnHover:d,showProgress:f,onAllRemoved:l,renderNotifications:Wnt,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return de.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:_,notification:g})),w});function qnt(e){const t=de.useRef(null);return R_(),[de.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,f=`${u}-notice`,{message:p,description:h,icon:g,type:v,btn:y,className:_,style:b,role:S="alert",closeIcon:C,closable:E}=s,w=Hnt(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),x=uxe(f,typeof C<"u"?C:d==null?void 0:d.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:Vnt},w),{content:de.createElement(Bnt,{prefixCls:f,icon:g,type:v,message:p,description:h,btn:y,role:S}),className:Re(v&&`${f}-${v}`,_,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),closeIcon:x,closable:E??!!x}))},o={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),o},[]),de.createElement(Ynt,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Knt(e){return qnt(e)}const f9=de.createContext({}),dxe=de.createContext({message:{},notification:{},modal:{}}),Qnt=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},Xnt=()=>({}),Znt=dr("App",Qnt,Xnt),Jnt=()=>de.useContext(dxe),DD=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=m.useContext(nn),d=u("app",t),[f,p,h]=Znt(d),g=Re(p,d,r,i,h,{[`${d}-rtl`]:c==="rtl"}),v=m.useContext(f9),y=de.useMemo(()=>({message:Object.assign(Object.assign({},v.message),o),notification:Object.assign(Object.assign({},v.notification),a)}),[o,a,v.message,v.notification]),[_,b]=dwe(y.message),[S,C]=Knt(y.notification),[E,w]=cxe(),x=de.useMemo(()=>({message:_,notification:S,modal:E}),[_,S,E]);R_()(!(h&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const T=l===!1?de.Fragment:l,R={className:g,style:s};return f(de.createElement(dxe.Provider,{value:x},de.createElement(f9.Provider,{value:y},de.createElement(T,Object.assign({},l===!1?void 0:R),w,b,C,n))))};DD.useApp=Jnt;function fxe(e){return t=>m.createElement(Pn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},t)))}const Fh=(e,t,n,r,i)=>fxe(a=>{const{prefixCls:s,style:l}=a,c=m.useRef(null),[u,d]=m.useState(0),[f,p]=m.useState(0),[h,g]=Fn(!1,{value:a.open}),{getPrefixCls:v}=m.useContext(nn),y=v(r||"select",s);m.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(E=>{const w=E[0].target;d(w.offsetHeight+8),p(w.offsetWidth)}),C=setInterval(()=>{var E;const w=i?`.${i(y)}`:`.${y}-dropdown`,x=(E=c.current)===null||E===void 0?void 0:E.querySelector(w);x&&(clearInterval(C),S.observe(x))},10);return()=>{clearInterval(C),S.disconnect()}}},[]);let _=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});n&&(_=n(_)),t&&Object.assign(_,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:f};return m.createElement("div",{ref:c,style:b},m.createElement(e,Object.assign({},_)))}),kD=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 LD=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return m.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a==null||a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:m.createElement("span",{className:Re(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},ert=function(t,n,r,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=de.useMemo(function(){if(qt(i)==="object")return i.clearIcon;if(o)return o},[i,o]),u=de.useMemo(function(){return!!(!a&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,a,r.length,s,l]);return{allowClear:u,clearIcon:de.createElement(LD,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},pxe=m.createContext(null);function zY(){return m.useContext(pxe)}function trt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m.useState(!1),n=Oe(t,2),r=n[0],i=n[1],o=m.useRef(null),a=function(){window.clearTimeout(o.current)};m.useEffect(function(){return a},[]);var s=function(c,u){a(),o.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,a]}function mxe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m.useRef(null),n=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function nrt(e,t,n,r){var i=m.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},m.useEffect(function(){function o(a){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function rrt(e){return e&&![gt.ESC,gt.SHIFT,gt.BACKSPACE,gt.TAB,gt.WIN_KEY,gt.ALT,gt.META,gt.WIN_KEY_RIGHT,gt.CTRL,gt.SEMICOLON,gt.EQUALS,gt.CAPS_LOCK,gt.CONTEXT_MENU,gt.F1,gt.F2,gt.F3,gt.F4,gt.F5,gt.F6,gt.F7,gt.F8,gt.F9,gt.F10,gt.F11,gt.F12].includes(e)}var irt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],my=void 0;function ort(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,g=e.component,v=g===void 0?"div":g,y=It(e,irt),_=a&&!p;function b(x){l(c,x)}m.useEffect(function(){return function(){b(null)}},[]);var S=o&&i!==my?o(i):f,C;r||(C={opacity:_?0:1,height:_?0:my,overflowY:_?"hidden":my,order:a?h:my,pointerEvents:_?"none":my,position:_?"absolute":my});var E={};_&&(E["aria-hidden"]=!0);var w=m.createElement(v,Qe({className:Re(!r&&n,u),style:q(q({},C),d)},E,y,{ref:t}),S);return a&&(w=m.createElement(hs,{onResize:function(T){var R=T.offsetWidth;b(R)},disabled:s},w)),w}var YC=m.forwardRef(ort);YC.displayName="Item";function art(e){if(typeof MessageChannel>"u")rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function srt(){var e=m.useRef(null),t=function(r){e.current||(e.current=[],art(function(){Ha.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function wE(e,t){var n=m.useState(t),r=Oe(n,2),i=r[0],o=r[1],a=Wn(function(s){e(function(){o(s)})});return[i,a]}var gA=de.createContext(null),lrt=["component"],crt=["className"],urt=["className"],drt=function(t,n){var r=m.useContext(gA);if(!r){var i=t.component,o=i===void 0?"div":i,a=It(t,lrt);return m.createElement(o,Qe({},a,{ref:n}))}var s=r.className,l=It(r,crt),c=t.className,u=It(t,urt);return m.createElement(gA.Provider,{value:null},m.createElement(YC,Qe({ref:n,className:Re(s,c)},l,u)))},hxe=m.forwardRef(drt);hxe.displayName="RawItem";var frt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],gxe="responsive",vxe="invalidate";function prt(e){return"+ ".concat(e.length," ...")}function mrt(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.suffix,_=e.component,b=_===void 0?"div":_,S=e.itemComponent,C=e.onVisibleChange,E=It(e,frt),w=d==="full",x=srt(),T=wE(x,null),R=Oe(T,2),N=R[0],I=R[1],P=N||0,D=wE(x,new Map),F=Oe(D,2),L=F[0],B=F[1],U=wE(x,0),G=Oe(U,2),V=G[0],W=G[1],$=wE(x,0),H=Oe($,2),K=H[0],re=H[1],Q=wE(x,0),A=Oe(Q,2),k=A[0],Z=A[1],ne=m.useState(null),oe=Oe(ne,2),ae=oe[0],ue=oe[1],fe=m.useState(null),se=Oe(fe,2),pe=se[0],_e=se[1],Te=m.useMemo(function(){return pe===null&&w?Number.MAX_SAFE_INTEGER:pe||0},[pe,N]),xe=m.useState(!1),ge=Oe(xe,2),Ce=ge[0],ye=ge[1],be="".concat(r,"-item"),Ee=Math.max(V,K),Me=h===gxe,X=o.length&&Me,Y=h===vxe,J=X||typeof h=="number"&&o.length>h,he=m.useMemo(function(){var xt=o;return X?N===null&&w?xt=o:xt=o.slice(0,Math.min(o.length,P/u)):typeof h=="number"&&(xt=o.slice(0,h)),xt},[o,u,N,h,X]),ve=m.useMemo(function(){return X?o.slice(Te+1):o.slice(he.length)},[o,he,X,Te]),ce=m.useCallback(function(xt,Nt){var Vt;return typeof l=="function"?l(xt):(Vt=l&&(xt==null?void 0:xt[l]))!==null&&Vt!==void 0?Vt:Nt},[l]),$e=m.useCallback(a||function(xt){return xt},[a]);function Be(xt,Nt,Vt){pe===xt&&(Nt===void 0||Nt===ae)||(_e(xt),Vt||(ye(xt<o.length-1),C==null||C(xt)),Nt!==void 0&&ue(Nt))}function me(xt,Nt){I(Nt.clientWidth)}function Fe(xt,Nt){B(function(Vt){var Ue=new Map(Vt);return Nt===null?Ue.delete(xt):Ue.set(xt,Nt),Ue})}function Xe(xt,Nt){re(Nt),W(K)}function ze(xt,Nt){Z(Nt)}function qe(xt){return L.get(ce(he[xt],xt))}gr(function(){if(P&&typeof Ee=="number"&&he){var xt=k,Nt=he.length,Vt=Nt-1;if(!Nt){Be(0,null);return}for(var Ue=0;Ue<Nt;Ue+=1){var Ve=qe(Ue);if(w&&(Ve=Ve||0),Ve===void 0){Be(Ue-1,void 0,!0);break}if(xt+=Ve,Vt===0&&xt<=P||Ue===Vt-1&&xt+qe(Vt)<=P){Be(Vt,null);break}else if(xt+Ee>P){Be(Ue-1,xt-Ve-k+K);break}}y&&qe(0)+k>P&&ue(null)}},[P,L,K,k,ce,he]);var Ge=Ce&&!!ve.length,We={};ae!==null&&X&&(We={position:"absolute",left:ae,top:0});var Lt={prefixCls:be,responsive:X,component:S,invalidate:Y},ut=s?function(xt,Nt){var Vt=ce(xt,Nt);return m.createElement(gA.Provider,{key:Vt,value:q(q({},Lt),{},{order:Nt,item:xt,itemKey:Vt,registerSize:Fe,display:Nt<=Te})},s(xt,Nt))}:function(xt,Nt){var Vt=ce(xt,Nt);return m.createElement(YC,Qe({},Lt,{order:Nt,key:Vt,item:xt,renderItem:$e,itemKey:Vt,registerSize:Fe,display:Nt<=Te}))},ft,bt={order:Ge?Te:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:Xe,display:Ge};if(v)v&&(ft=m.createElement(gA.Provider,{value:q(q({},Lt),bt)},v(ve)));else{var St=g||prt;ft=m.createElement(YC,Qe({},Lt,bt),typeof St=="function"?St(ve):St)}var Ht=m.createElement(b,Qe({className:Re(!Y&&r,p),style:f,ref:t},E),he.map(ut),J?ft:null,y&&m.createElement(YC,Qe({},Lt,{responsive:Me,responsiveDisabled:!X,order:Te,className:"".concat(be,"-suffix"),registerSize:ze,display:!0,style:We}),y));return Me&&(Ht=m.createElement(hs,{onResize:me,disabled:!X},Ht)),Ht}var Wu=m.forwardRef(mrt);Wu.displayName="Overflow";Wu.Item=hxe;Wu.RESPONSIVE=gxe;Wu.INVALIDATE=vxe;var hrt=function(t,n){var r,i=t.prefixCls,o=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,p=t.value,h=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,_=t.onPaste,b=t.onCompositionStart,S=t.onCompositionEnd,C=t.onBlur,E=t.open,w=t.attrs,x=a||m.createElement("input",null),T=x,R=T.ref,N=T.props,I=N.onKeyDown,P=N.onChange,D=N.onMouseDown,F=N.onCompositionStart,L=N.onCompositionEnd,B=N.onBlur,U=N.style;return"maxLength"in x.props,x=m.cloneElement(x,q(q(q({type:"search"},N),{},{id:o,ref:Sa(n,R),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Re("".concat(i,"-selection-search-input"),(r=x)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":E||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":E?f:void 0},w),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:q(q({},U),{},{opacity:d?null:0}),onKeyDown:function(V){g(V),I&&I(V)},onMouseDown:function(V){v(V),D&&D(V)},onChange:function(V){y(V),P&&P(V)},onCompositionStart:function(V){b(V),F&&F(V)},onCompositionEnd:function(V){S(V),L&&L(V)},onPaste:_,onBlur:function(V){C(V),B&&B(V)}})),x},_xe=m.forwardRef(hrt);function yxe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var grt=typeof window<"u"&&window.document&&window.document.documentElement,vrt=grt;function _rt(e){return e!=null}function yrt(e){return!e&&e!==0}function Zre(e){return["string","number"].includes(qt(e))}function bxe(e){var t=void 0;return e&&(Zre(e.title)?t=e.title.toString():Zre(e.label)&&(t=e.label.toString())),t}function brt(e,t){vrt?m.useLayoutEffect(e,t):m.useEffect(e,t)}function Srt(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Jre=function(t){t.preventDefault(),t.stopPropagation()},Ert=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,p=t.autoFocus,h=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,_=t.maxTagCount,b=t.maxTagTextLength,S=t.maxTagPlaceholder,C=S===void 0?function(fe){return"+ ".concat(fe.length," ...")}:S,E=t.tagRender,w=t.onToggleOpen,x=t.onRemove,T=t.onInputChange,R=t.onInputPaste,N=t.onInputKeyDown,I=t.onInputMouseDown,P=t.onInputCompositionStart,D=t.onInputCompositionEnd,F=t.onInputBlur,L=m.useRef(null),B=m.useState(0),U=Oe(B,2),G=U[0],V=U[1],W=m.useState(!1),$=Oe(W,2),H=$[0],K=$[1],re="".concat(r,"-selection"),Q=o||d==="multiple"&&s===!1||d==="tags"?a:"",A=d==="tags"||d==="multiple"&&s===!1||f&&(o||H);brt(function(){V(L.current.scrollWidth)},[Q]);var k=function(se,pe,_e,Te,xe){return m.createElement("span",{title:bxe(se),className:Re("".concat(re,"-item"),ie({},"".concat(re,"-item-disabled"),_e))},m.createElement("span",{className:"".concat(re,"-item-content")},pe),Te&&m.createElement(LD,{className:"".concat(re,"-item-remove"),onMouseDown:Jre,onClick:xe,customizeIcon:y},"×"))},Z=function(se,pe,_e,Te,xe,ge){var Ce=function(be){Jre(be),w(!o)};return m.createElement("span",{onMouseDown:Ce},E({label:pe,value:se,disabled:_e,closable:Te,onClose:xe,isMaxTag:!!ge}))},ne=function(se){var pe=se.disabled,_e=se.label,Te=se.value,xe=!u&&!pe,ge=_e;if(typeof b=="number"&&(typeof _e=="string"||typeof _e=="number")){var Ce=String(ge);Ce.length>b&&(ge="".concat(Ce.slice(0,b),"..."))}var ye=function(Ee){Ee&&Ee.stopPropagation(),x(se)};return typeof E=="function"?Z(Te,ge,pe,xe,ye):k(se,ge,pe,xe,ye)},oe=function(se){if(!i.length)return null;var pe=typeof C=="function"?C(se):C;return typeof E=="function"?Z(void 0,pe,!1,!1,void 0,!0):k({title:pe},pe,!1)},ae=m.createElement("div",{className:"".concat(re,"-search"),style:{width:G},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},m.createElement(_xe,{ref:l,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:h,editable:A,activeDescendantId:g,value:Q,onKeyDown:N,onMouseDown:I,onChange:T,onPaste:R,onCompositionStart:P,onCompositionEnd:D,onBlur:F,tabIndex:v,attrs:ao(t,!0)}),m.createElement("span",{ref:L,className:"".concat(re,"-search-mirror"),"aria-hidden":!0},Q," ")),ue=m.createElement(Wu,{prefixCls:"".concat(re,"-overflow"),data:i,renderItem:ne,renderRest:oe,suffix:ae,itemKey:Srt,maxCount:_});return m.createElement("span",{className:"".concat(re,"-wrap")},ue,!i.length&&!Q&&m.createElement("span",{className:"".concat(re,"-placeholder")},c))},Crt=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,p=t.placeholder,h=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,_=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,C=t.onInputChange,E=t.onInputPaste,w=t.onInputCompositionStart,x=t.onInputCompositionEnd,T=t.onInputBlur,R=t.title,N=m.useState(!1),I=Oe(N,2),P=I[0],D=I[1],F=u==="combobox",L=F||g,B=f[0],U=v||"";F&&y&&!P&&(U=y),m.useEffect(function(){F&&D(!1)},[F,y]);var G=u!=="combobox"&&!d&&!g?!1:!!U,V=R===void 0?bxe(B):R,W=m.useMemo(function(){return B?null:m.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},p)},[B,G,p,r]);return m.createElement("span",{className:"".concat(r,"-selection-wrap")},m.createElement("span",{className:"".concat(r,"-selection-search")},m.createElement(_xe,{ref:o,prefixCls:r,id:i,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:L,activeDescendantId:c,value:U,onKeyDown:b,onMouseDown:S,onChange:function(H){D(!0),C(H)},onPaste:E,onCompositionStart:w,onCompositionEnd:x,onBlur:T,tabIndex:h,attrs:ao(t,!0),maxLength:F?_:void 0})),!F&&B?m.createElement("span",{className:"".concat(r,"-selection-item"),title:V,style:G?{visibility:"hidden"}:void 0},B.label):null,W)},wrt=function(t,n){var r=m.useRef(null),i=m.useRef(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,p=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,_=t.domRef;m.useImperativeHandle(n,function(){return{focus:function(V){r.current.focus(V)},blur:function(){r.current.blur()}}});var b=mxe(0),S=Oe(b,2),C=S[0],E=S[1],w=function(V){var W=V.which,$=r.current instanceof HTMLTextAreaElement;!$&&a&&(W===gt.UP||W===gt.DOWN)&&V.preventDefault(),v&&v(V),W===gt.ENTER&&s==="tags"&&!i.current&&!a&&(h==null||h(V.target.value)),!($&&!a&&~[gt.UP,gt.DOWN,gt.LEFT,gt.RIGHT].indexOf(W))&&rrt(W)&&g(!0)},x=function(){E(!0)},T=m.useRef(null),R=function(V){p(V,!0,i.current)!==!1&&g(!0)},N=function(){i.current=!0},I=function(V){i.current=!1,s!=="combobox"&&R(V.target.value)},P=function(V){var W=V.target.value;if(c&&T.current&&/[\r\n]/.test(T.current)){var $=T.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");W=W.replace($,T.current)}T.current=null,R(W)},D=function(V){var W=V.clipboardData,$=W==null?void 0:W.getData("text");T.current=$||""},F=function(V){var W=V.target;if(W!==r.current){var $=document.body.style.msTouchAction!==void 0;$?setTimeout(function(){r.current.focus()}):r.current.focus()}},L=function(V){var W=C();V.target!==r.current&&!W&&!(s==="combobox"&&u)&&V.preventDefault(),(s!=="combobox"&&(!l||!W)||!a)&&(a&&f!==!1&&p("",!0,!1),g())},B={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:P,onInputPaste:D,onInputCompositionStart:N,onInputCompositionEnd:I,onInputBlur:y},U=s==="multiple"||s==="tags"?m.createElement(Ert,Qe({},t,B)):m.createElement(Crt,Qe({},t,B));return m.createElement("div",{ref:_,className:"".concat(o,"-selector"),onClick:F,onMouseDown:L},d&&m.createElement("div",{className:"".concat(o,"-prefix")},d),U)},xrt=m.forwardRef(wrt);function Trt(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=m.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],v=h[0],y=h[1],_=g[0],b=g[1];v===_||!["t","b"].includes(v)?p.top=d:v==="t"?p.top=0:p.bottom=0,y===b||!["l","r"].includes(y)?p.left=c:y==="l"?p.left=0:p.right=0}return m.createElement("div",{ref:f,className:Re("".concat(t,"-arrow"),a),style:p},s)}function Rrt(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?m.createElement(qo,Qe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return m.createElement("div",{style:{zIndex:r},className:Re("".concat(t,"-mask"),s)})}):null}var Ort=m.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Irt=m.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,_=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,C=e.portal,E=e.zIndex,w=e.onMouseEnter,x=e.onMouseLeave,T=e.onPointerEnter,R=e.onPointerDownCapture,N=e.ready,I=e.offsetX,P=e.offsetY,D=e.offsetR,F=e.offsetB,L=e.onAlign,B=e.onPrepare,U=e.stretch,G=e.targetWidth,V=e.targetHeight,W=typeof n=="function"?n():n,$=l||c,H=(b==null?void 0:b.length)>0,K=m.useState(!b||!H),re=Oe(K,2),Q=re[0],A=re[1];if(gr(function(){!Q&&H&&a&&A(!0)},[Q,H,a]),!Q)return null;var k="auto",Z={left:"-1000vw",top:"-1000vh",right:k,bottom:k};if(N||!l){var ne,oe=g.points,ae=g.dynamicInset||((ne=g._experimental)===null||ne===void 0?void 0:ne.dynamicInset),ue=ae&&oe[0][1]==="r",fe=ae&&oe[0][0]==="b";ue?(Z.right=D,Z.left=k):(Z.left=I,Z.right=k),fe?(Z.bottom=F,Z.top=k):(Z.top=P,Z.bottom=k)}var se={};return U&&(U.includes("height")&&V?se.height=V:U.includes("minHeight")&&V&&(se.minHeight=V),U.includes("width")&&G?se.width=G:U.includes("minWidth")&&G&&(se.minWidth=G)),l||(se.pointerEvents="none"),m.createElement(C,{open:_||$,getContainer:b&&function(){return b(a)},autoDestroy:S},m.createElement(Rrt,{prefixCls:i,open:l,zIndex:E,mask:f,motion:y}),m.createElement(hs,{onResize:L,disabled:!l},function(pe){return m.createElement(qo,Qe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:B,onEnterPrepare:B,visible:l,onVisibleChanged:function(Te){var xe;v==null||(xe=v.onVisibleChanged)===null||xe===void 0||xe.call(v,Te),s(Te)}}),function(_e,Te){var xe=_e.className,ge=_e.style,Ce=Re(i,xe,r);return m.createElement("div",{ref:Sa(pe,t,Te),className:Ce,style:q(q(q(q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),se),ge),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:w,onMouseLeave:x,onPointerEnter:T,onClick:d,onPointerDownCapture:R},p&&m.createElement(Trt,{prefixCls:i,arrow:p,arrowPos:h,align:g}),m.createElement(Ort,{cache:!l&&!u},W))})}))}),Nrt=m.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Dp(n),o=m.useCallback(function(s){iY(t,r?r(s):s)},[r]),a=fd(o,Lh(n));return i?m.cloneElement(n,{ref:a}):n}),eie=m.createContext(null);function tie(e){return e?Array.isArray(e)?e:[e]:[]}function Mrt(e,t,n,r){return m.useMemo(function(){var i=tie(n??t),o=tie(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function Art(){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 Prt(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(Art((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function nie(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ix(e){return e.ownerDocument.defaultView}function p9(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Ix(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function iw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function xE(e){return iw(parseFloat(e),0)}function rie(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Ix(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,v=xE(s),y=xE(l),_=xE(c),b=xE(u),S=iw(Math.round(d.width/h*1e3)/1e3),C=iw(Math.round(d.height/f*1e3)/1e3),E=(h-g-_-b)*S,w=(f-p-v-y)*C,x=v*C,T=y*C,R=_*S,N=b*S,I=0,P=0;if(o==="clip"){var D=xE(a);I=D*S,P=D*C}var F=d.x+R-I,L=d.y+x-P,B=F+d.width+2*I-R-N-E,U=L+d.height+2*P-x-T-w;n.left=Math.max(n.left,F),n.top=Math.max(n.top,L),n.right=Math.min(n.right,B),n.bottom=Math.min(n.bottom,U)}}),n}function iie(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 oie(e,t){var n=t||[],r=Oe(n,2),i=r[0],o=r[1];return[iie(e.width,i),iie(e.height,o)]}function aie(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function hy(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function lm(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function Drt(e,t,n,r,i,o,a){var s=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Oe(s,2),c=l[0],u=l[1],d=m.useRef(0),f=m.useMemo(function(){return t?p9(t):[]},[t]),p=m.useRef({}),h=function(){p.current={}};e||h();var g=Wn(function(){if(t&&n&&e){let Hn=function(Qr,es){var ts=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee,Ci=K.x+Qr,wa=K.y+es,gc=Ci+ue,vc=wa+ae,im=Math.max(Ci,ts.left),Tn=Math.max(wa,ts.top),ar=Math.min(gc,ts.right),Xr=Math.min(vc,ts.bottom);return Math.max(0,(ar-im)*(Xr-Tn))},_r=function(){on=K.y+Vt,pt=on+ae,Dt=K.x+Nt,Wt=Dt+ue};var _,b,S,C,E=t,w=E.ownerDocument,x=Ix(E),T=x.getComputedStyle(E),R=T.width,N=T.height,I=T.position,P=E.style.left,D=E.style.top,F=E.style.right,L=E.style.bottom,B=E.style.overflow,U=q(q({},i[r]),o),G=w.createElement("div");(_=E.parentElement)===null||_===void 0||_.appendChild(G),G.style.left="".concat(E.offsetLeft,"px"),G.style.top="".concat(E.offsetTop,"px"),G.style.position=I,G.style.height="".concat(E.offsetHeight,"px"),G.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var V;if(Array.isArray(n))V={x:n[0],y:n[1],width:0,height:0};else{var W,$,H=n.getBoundingClientRect();H.x=(W=H.x)!==null&&W!==void 0?W:H.left,H.y=($=H.y)!==null&&$!==void 0?$:H.top,V={x:H.x,y:H.y,width:H.width,height:H.height}}var K=E.getBoundingClientRect();K.x=(b=K.x)!==null&&b!==void 0?b:K.left,K.y=(S=K.y)!==null&&S!==void 0?S:K.top;var re=w.documentElement,Q=re.clientWidth,A=re.clientHeight,k=re.scrollWidth,Z=re.scrollHeight,ne=re.scrollTop,oe=re.scrollLeft,ae=K.height,ue=K.width,fe=V.height,se=V.width,pe={left:0,top:0,right:Q,bottom:A},_e={left:-oe,top:-ne,right:k-oe,bottom:Z-ne},Te=U.htmlRegion,xe="visible",ge="visibleFirst";Te!=="scroll"&&Te!==ge&&(Te=xe);var Ce=Te===ge,ye=rie(_e,f),be=rie(pe,f),Ee=Te===xe?be:ye,Me=Ce?be:Ee;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var X=E.getBoundingClientRect();E.style.left=P,E.style.top=D,E.style.right=F,E.style.bottom=L,E.style.overflow=B,(C=E.parentElement)===null||C===void 0||C.removeChild(G);var Y=iw(Math.round(ue/parseFloat(R)*1e3)/1e3),J=iw(Math.round(ae/parseFloat(N)*1e3)/1e3);if(Y===0||J===0||W1(n)&&!Ex(n))return;var he=U.offset,ve=U.targetOffset,ce=oie(K,he),$e=Oe(ce,2),Be=$e[0],me=$e[1],Fe=oie(V,ve),Xe=Oe(Fe,2),ze=Xe[0],qe=Xe[1];V.x-=ze,V.y-=qe;var Ge=U.points||[],We=Oe(Ge,2),Lt=We[0],ut=We[1],ft=aie(ut),bt=aie(Lt),St=hy(V,ft),Ht=hy(K,bt),xt=q({},U),Nt=St.x-Ht.x+Be,Vt=St.y-Ht.y+me,Ue=Hn(Nt,Vt),Ve=Hn(Nt,Vt,be),je=hy(V,["t","l"]),et=hy(K,["t","l"]),_t=hy(V,["b","r"]),vt=hy(K,["b","r"]),Mt=U.overflow||{},wt=Mt.adjustX,jt=Mt.adjustY,zt=Mt.shiftX,Gt=Mt.shiftY,$t=function(es){return typeof es=="boolean"?es:es>=0},on,pt,Dt,Wt;_r();var Et=$t(jt),yt=bt[0]===ft[0];if(Et&&bt[0]==="t"&&(pt>Me.bottom||p.current.bt)){var Ft=Vt;yt?Ft-=ae-fe:Ft=je.y-vt.y-me;var Ae=Hn(Nt,Ft),kt=Hn(Nt,Ft,be);Ae>Ue||Ae===Ue&&(!Ce||kt>=Ve)?(p.current.bt=!0,Vt=Ft,me=-me,xt.points=[lm(bt,0),lm(ft,0)]):p.current.bt=!1}if(Et&&bt[0]==="b"&&(on<Me.top||p.current.tb)){var nt=Vt;yt?nt+=ae-fe:nt=_t.y-et.y-me;var Rt=Hn(Nt,nt),Tt=Hn(Nt,nt,be);Rt>Ue||Rt===Ue&&(!Ce||Tt>=Ve)?(p.current.tb=!0,Vt=nt,me=-me,xt.points=[lm(bt,0),lm(ft,0)]):p.current.tb=!1}var xn=$t(wt),Un=bt[1]===ft[1];if(xn&&bt[1]==="l"&&(Wt>Me.right||p.current.rl)){var O=Nt;Un?O-=ue-se:O=je.x-vt.x-Be;var j=Hn(O,Vt),te=Hn(O,Vt,be);j>Ue||j===Ue&&(!Ce||te>=Ve)?(p.current.rl=!0,Nt=O,Be=-Be,xt.points=[lm(bt,1),lm(ft,1)]):p.current.rl=!1}if(xn&&bt[1]==="r"&&(Dt<Me.left||p.current.lr)){var we=Nt;Un?we+=ue-se:we=_t.x-et.x-Be;var Le=Hn(we,Vt),Je=Hn(we,Vt,be);Le>Ue||Le===Ue&&(!Ce||Je>=Ve)?(p.current.lr=!0,Nt=we,Be=-Be,xt.points=[lm(bt,1),lm(ft,1)]):p.current.lr=!1}_r();var At=zt===!0?0:zt;typeof At=="number"&&(Dt<be.left&&(Nt-=Dt-be.left-Be,V.x+se<be.left+At&&(Nt+=V.x-be.left+se-At)),Wt>be.right&&(Nt-=Wt-be.right-Be,V.x>be.right-At&&(Nt+=V.x-be.right+At)));var dn=Gt===!0?0:Gt;typeof dn=="number"&&(on<be.top&&(Vt-=on-be.top-me,V.y+fe<be.top+dn&&(Vt+=V.y-be.top+fe-dn)),pt>be.bottom&&(Vt-=pt-be.bottom-me,V.y>be.bottom-dn&&(Vt+=V.y-be.bottom+dn)));var Mn=K.x+Nt,Kr=Mn+ue,Ur=K.y+Vt,di=Ur+ae,Sr=V.x,cn=Sr+se,vn=V.y,Rr=vn+fe,tn=Math.max(Mn,Sr),rn=Math.min(Kr,cn),jn=(tn+rn)/2,vr=jn-Mn,ai=Math.max(Ur,vn),co=Math.min(di,Rr),Xn=(ai+co)/2,Ni=Xn-Ur;a==null||a(t,xt);var Do=X.right-K.x-(Nt+K.width),Kn=X.bottom-K.y-(Vt+K.height);Y===1&&(Nt=Math.round(Nt),Do=Math.round(Do)),J===1&&(Vt=Math.round(Vt),Kn=Math.round(Kn));var An={ready:!0,offsetX:Nt/Y,offsetY:Vt/J,offsetR:Do/Y,offsetB:Kn/J,arrowX:vr/Y,arrowY:Ni/J,scaleX:Y,scaleY:J,align:xt};u(An)}}),v=function(){d.current+=1;var b=d.current;Promise.resolve().then(function(){d.current===b&&g()})},y=function(){u(function(b){return q(q({},b),{},{ready:!1})})};return gr(y,[r]),gr(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function krt(e,t,n,r,i){gr(function(){if(e&&t&&n){let d=function(){r(),i()};var o=t,a=n,s=p9(o),l=p9(a),c=Ix(a),u=new Set([c].concat(at(s),at(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function Lrt(e,t,n,r,i,o,a,s){var l=m.useRef(e);l.current=e;var c=m.useRef(!1);m.useEffect(function(){if(t&&r&&(!i||o)){var d=function(){c.current=!1},f=function(v){var y;l.current&&!a(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},p=Ix(r);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",f,!0),p.addEventListener("contextmenu",f,!0);var h=pA(n);return h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),function(){p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",f,!0),p.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,n,r,i,o]);function u(){c.current=!0}return u}var $rt=["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 Frt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tx,t=m.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,_=n.focusDelay,b=n.blurDelay,S=n.mask,C=n.maskClosable,E=C===void 0?!0:C,w=n.getPopupContainer,x=n.forceRender,T=n.autoDestroy,R=n.destroyPopupOnHide,N=n.popup,I=n.popupClassName,P=n.popupStyle,D=n.popupPlacement,F=n.builtinPlacements,L=F===void 0?{}:F,B=n.popupAlign,U=n.zIndex,G=n.stretch,V=n.getPopupClassNameFromAlign,W=n.fresh,$=n.alignPoint,H=n.onPopupClick,K=n.onPopupAlign,re=n.arrow,Q=n.popupMotion,A=n.maskMotion,k=n.popupTransitionName,Z=n.popupAnimation,ne=n.maskTransitionName,oe=n.maskAnimation,ae=n.className,ue=n.getTriggerDOMNode,fe=It(n,$rt),se=T||R||!1,pe=m.useState(!1),_e=Oe(pe,2),Te=_e[0],xe=_e[1];gr(function(){xe(kD())},[]);var ge=m.useRef({}),Ce=m.useContext(eie),ye=m.useMemo(function(){return{registerSubPopup:function(ar,Xr){ge.current[ar]=Xr,Ce==null||Ce.registerSubPopup(ar,Xr)}}},[Ce]),be=MD(),Ee=m.useState(null),Me=Oe(Ee,2),X=Me[0],Y=Me[1],J=m.useRef(null),he=Wn(function(Tn){J.current=Tn,W1(Tn)&&X!==Tn&&Y(Tn),Ce==null||Ce.registerSubPopup(be,Tn)}),ve=m.useState(null),ce=Oe(ve,2),$e=ce[0],Be=ce[1],me=m.useRef(null),Fe=Wn(function(Tn){W1(Tn)&&$e!==Tn&&(Be(Tn),me.current=Tn)}),Xe=m.Children.only(a),ze=(Xe==null?void 0:Xe.props)||{},qe={},Ge=Wn(function(Tn){var ar,Xr,uo=$e;return(uo==null?void 0:uo.contains(Tn))||((ar=pA(uo))===null||ar===void 0?void 0:ar.host)===Tn||Tn===uo||(X==null?void 0:X.contains(Tn))||((Xr=pA(X))===null||Xr===void 0?void 0:Xr.host)===Tn||Tn===X||Object.values(ge.current).some(function(Bi){return(Bi==null?void 0:Bi.contains(Tn))||Tn===Bi})}),We=nie(o,Q,Z,k),Lt=nie(o,A,oe,ne),ut=m.useState(f||!1),ft=Oe(ut,2),bt=ft[0],St=ft[1],Ht=d??bt,xt=Wn(function(Tn){d===void 0&&St(Tn)});gr(function(){St(d||!1)},[d]);var Nt=m.useRef(Ht);Nt.current=Ht;var Vt=m.useRef([]);Vt.current=[];var Ue=Wn(function(Tn){var ar;xt(Tn),((ar=Vt.current[Vt.current.length-1])!==null&&ar!==void 0?ar:Ht)!==Tn&&(Vt.current.push(Tn),p==null||p(Tn))}),Ve=m.useRef(),je=function(){clearTimeout(Ve.current)},et=function(ar){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;je(),Xr===0?Ue(ar):Ve.current=setTimeout(function(){Ue(ar)},Xr*1e3)};m.useEffect(function(){return je},[]);var _t=m.useState(!1),vt=Oe(_t,2),Mt=vt[0],wt=vt[1];gr(function(Tn){(!Tn||Ht)&&wt(!0)},[Ht]);var jt=m.useState(null),zt=Oe(jt,2),Gt=zt[0],$t=zt[1],on=m.useState(null),pt=Oe(on,2),Dt=pt[0],Wt=pt[1],Et=function(ar){Wt([ar.clientX,ar.clientY])},yt=Drt(Ht,X,$&&Dt!==null?Dt:$e,D,L,B,K),Ft=Oe(yt,11),Ae=Ft[0],kt=Ft[1],nt=Ft[2],Rt=Ft[3],Tt=Ft[4],xn=Ft[5],Un=Ft[6],O=Ft[7],j=Ft[8],te=Ft[9],we=Ft[10],Le=Mrt(Te,l,c,u),Je=Oe(Le,2),At=Je[0],dn=Je[1],Mn=At.has("click"),Kr=dn.has("click")||dn.has("contextMenu"),Ur=Wn(function(){Mt||we()}),di=function(){Nt.current&&$&&Kr&&et(!1)};krt(Ht,$e,X,Ur,di),gr(function(){Ur()},[Dt,D]),gr(function(){Ht&&!(L!=null&&L[D])&&Ur()},[JSON.stringify(B)]);var Sr=m.useMemo(function(){var Tn=Prt(L,o,te,$);return Re(Tn,V==null?void 0:V(te))},[te,V,L,o,$]);m.useImperativeHandle(r,function(){return{nativeElement:me.current,popupElement:J.current,forceAlign:Ur}});var cn=m.useState(0),vn=Oe(cn,2),Rr=vn[0],tn=vn[1],rn=m.useState(0),jn=Oe(rn,2),vr=jn[0],ai=jn[1],co=function(){if(G&&$e){var ar=$e.getBoundingClientRect();tn(ar.width),ai(ar.height)}},Xn=function(){co(),Ur()},Ni=function(ar){wt(!1),we(),h==null||h(ar)},Do=function(){return new Promise(function(ar){co(),$t(function(){return ar})})};gr(function(){Gt&&(we(),Gt(),$t(null))},[Gt]);function Kn(Tn,ar,Xr,uo){qe[Tn]=function(Bi){var om;uo==null||uo(Bi),et(ar,Xr);for(var wf=arguments.length,oy=new Array(wf>1?wf-1:0),pg=1;pg<wf;pg++)oy[pg-1]=arguments[pg];(om=ze[Tn])===null||om===void 0||om.call.apply(om,[ze,Bi].concat(oy))}}(Mn||Kr)&&(qe.onClick=function(Tn){var ar;Nt.current&&Kr?et(!1):!Nt.current&&Mn&&(Et(Tn),et(!0));for(var Xr=arguments.length,uo=new Array(Xr>1?Xr-1:0),Bi=1;Bi<Xr;Bi++)uo[Bi-1]=arguments[Bi];(ar=ze.onClick)===null||ar===void 0||ar.call.apply(ar,[ze,Tn].concat(uo))});var An=Lrt(Ht,Kr,$e,X,S,E,Ge,et),Hn=At.has("hover"),_r=dn.has("hover"),Qr,es;Hn&&(Kn("onMouseEnter",!0,g,function(Tn){Et(Tn)}),Kn("onPointerEnter",!0,g,function(Tn){Et(Tn)}),Qr=function(ar){(Ht||Mt)&&X!==null&&X!==void 0&&X.contains(ar.target)&&et(!0,g)},$&&(qe.onMouseMove=function(Tn){var ar;(ar=ze.onMouseMove)===null||ar===void 0||ar.call(ze,Tn)})),_r&&(Kn("onMouseLeave",!1,y),Kn("onPointerLeave",!1,y),es=function(){et(!1,y)}),At.has("focus")&&Kn("onFocus",!0,_),dn.has("focus")&&Kn("onBlur",!1,b),At.has("contextMenu")&&(qe.onContextMenu=function(Tn){var ar;Nt.current&&dn.has("contextMenu")?et(!1):(Et(Tn),et(!0)),Tn.preventDefault();for(var Xr=arguments.length,uo=new Array(Xr>1?Xr-1:0),Bi=1;Bi<Xr;Bi++)uo[Bi-1]=arguments[Bi];(ar=ze.onContextMenu)===null||ar===void 0||ar.call.apply(ar,[ze,Tn].concat(uo))}),ae&&(qe.className=Re(ze.className,ae));var ts=q(q({},ze),qe),Ci={},wa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];wa.forEach(function(Tn){fe[Tn]&&(Ci[Tn]=function(){for(var ar,Xr=arguments.length,uo=new Array(Xr),Bi=0;Bi<Xr;Bi++)uo[Bi]=arguments[Bi];(ar=ts[Tn])===null||ar===void 0||ar.call.apply(ar,[ts].concat(uo)),fe[Tn].apply(fe,uo)})});var gc=m.cloneElement(Xe,q(q({},ts),Ci)),vc={x:xn,y:Un},im=re?q({},re!==!0?re:{}):null;return m.createElement(m.Fragment,null,m.createElement(hs,{disabled:!Ht,ref:Fe,onResize:Xn},m.createElement(Nrt,{getTriggerDOMNode:ue},gc)),m.createElement(eie.Provider,{value:ye},m.createElement(Irt,{portal:e,ref:he,prefixCls:o,popup:N,className:Re(I,Sr),style:P,target:$e,onMouseEnter:Qr,onMouseLeave:es,onPointerEnter:Qr,zIndex:U,open:Ht,keepDom:Mt,fresh:W,onClick:H,onPointerDownCapture:An,mask:S,motion:We,maskMotion:Lt,onVisibleChanged:Ni,onPrepare:Do,forceRender:x,autoDestroy:se,getPopupContainer:w,align:te,arrow:im,arrowPos:vc,ready:Ae,offsetX:kt,offsetY:nt,offsetR:Rt,offsetB:Tt,onAlign:Ur,stretch:G,targetWidth:Rr/O,targetHeight:vr/j})))});return t}const Nx=Frt(Tx);var Brt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Urt=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},jrt=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,p=t.placement,h=t.builtinPlacements,g=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,_=t.getPopupContainer,b=t.empty,S=t.getTriggerDOMNode,C=t.onPopupVisibleChange,E=t.onPopupMouseEnter,w=It(t,Brt),x="".concat(r,"-dropdown"),T=a;v&&(T=v(a));var R=m.useMemo(function(){return h||Urt(g)},[h,g]),N=s?"".concat(x,"-").concat(s):l,I=typeof g=="number",P=m.useMemo(function(){return I?null:g===!1?"minWidth":"width"},[g,I]),D=c;I&&(D=q(q({},D),{},{width:g}));var F=m.useRef(null);return m.useImperativeHandle(n,function(){return{getPopupElement:function(){var B;return(B=F.current)===null||B===void 0?void 0:B.popupElement}}}),m.createElement(Nx,Qe({},w,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:x,popupTransitionName:N,popup:m.createElement("div",{onMouseEnter:E},T),ref:F,stretch:P,popupAlign:y,popupVisible:i,getPopupContainer:_,popupClassName:Re(u,ie({},"".concat(x,"-empty"),b)),popupStyle:D,getTriggerDOMNode:S,onPopupVisibleChange:C}),o)},Hrt=m.forwardRef(jrt);function sie(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function m9(e){return typeof e<"u"&&!Number.isNaN(e)}function Sxe(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:i||"value",options:o||"options",groupLabel:a||s}}function zrt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=Sxe(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(p){if(f||!(l in p)){var h=p[s];i.push({key:sie(p,i.length),groupOption:f,data:p,label:p[a],value:h})}else{var g=p[c];g===void 0&&r&&(g=p.label),i.push({key:sie(p,i.length),group:!0,data:p,label:g}),u(p[l],!0)}})}return u(e,!1),i}function h9(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Wr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Vrt=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function s(l,c){var u=l1e(c),d=u[0],f=u.slice(1);if(!d)return[l];var p=l.split(d);return i=i||p.length>1,p.reduce(function(h,g){return[].concat(at(h),at(s(g,f)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},VY=m.createContext(null);function Grt(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return m.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var o=i.label,a=i.value;return["number","string"].includes(qt(o))?o:a}).join(", ")),n.length>r?", ...":null)}var Wrt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Yrt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],g9=function(t){return t==="tags"||t==="multiple"},GY=m.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,g=e.onClear,v=e.mode,y=e.disabled,_=e.loading,b=e.getInputElement,S=e.getRawInputElement,C=e.open,E=e.defaultOpen,w=e.onDropdownVisibleChange,x=e.activeValue,T=e.onActiveValueChange,R=e.activeDescendantId,N=e.searchValue,I=e.autoClearSearchValue,P=e.onSearch,D=e.onSearchSplit,F=e.tokenSeparators,L=e.allowClear,B=e.prefix,U=e.suffixIcon,G=e.clearIcon,V=e.OptionList,W=e.animation,$=e.transitionName,H=e.dropdownStyle,K=e.dropdownClassName,re=e.dropdownMatchSelectWidth,Q=e.dropdownRender,A=e.dropdownAlign,k=e.placement,Z=e.builtinPlacements,ne=e.getPopupContainer,oe=e.showAction,ae=oe===void 0?[]:oe,ue=e.onFocus,fe=e.onBlur,se=e.onKeyUp,pe=e.onKeyDown,_e=e.onMouseDown,Te=It(e,Wrt),xe=g9(v),ge=(a!==void 0?a:xe)||v==="combobox",Ce=q({},Te);Yrt.forEach(function(cn){delete Ce[cn]}),c==null||c.forEach(function(cn){delete Ce[cn]});var ye=m.useState(!1),be=Oe(ye,2),Ee=be[0],Me=be[1];m.useEffect(function(){Me(kD())},[]);var X=m.useRef(null),Y=m.useRef(null),J=m.useRef(null),he=m.useRef(null),ve=m.useRef(null),ce=m.useRef(!1),$e=trt(),Be=Oe($e,3),me=Be[0],Fe=Be[1],Xe=Be[2];m.useImperativeHandle(t,function(){var cn,vn;return{focus:(cn=he.current)===null||cn===void 0?void 0:cn.focus,blur:(vn=he.current)===null||vn===void 0?void 0:vn.blur,scrollTo:function(tn){var rn;return(rn=ve.current)===null||rn===void 0?void 0:rn.scrollTo(tn)},nativeElement:X.current||Y.current}});var ze=m.useMemo(function(){var cn;if(v!=="combobox")return N;var vn=(cn=u[0])===null||cn===void 0?void 0:cn.value;return typeof vn=="string"||typeof vn=="number"?String(vn):""},[N,v,u]),qe=v==="combobox"&&typeof b=="function"&&b()||null,Ge=typeof S=="function"&&S(),We=fd(Y,Ge==null||(n=Ge.props)===null||n===void 0?void 0:n.ref),Lt=m.useState(!1),ut=Oe(Lt,2),ft=ut[0],bt=ut[1];gr(function(){bt(!0)},[]);var St=Fn(!1,{defaultValue:E,value:C}),Ht=Oe(St,2),xt=Ht[0],Nt=Ht[1],Vt=ft?xt:!1,Ue=!h&&f;(y||Ue&&Vt&&v==="combobox")&&(Vt=!1);var Ve=Ue?!1:Vt,je=m.useCallback(function(cn){var vn=cn!==void 0?cn:!Vt;y||(Nt(vn),Vt!==vn&&(w==null||w(vn)))},[y,Vt,Nt,w]),et=m.useMemo(function(){return(F||[]).some(function(cn){return[`
|
||
`,`\r
|
||
`].includes(cn)})},[F]),_t=m.useContext(VY)||{},vt=_t.maxCount,Mt=_t.rawValues,wt=function(vn,Rr,tn){if(!(xe&&m9(vt)&&(Mt==null?void 0:Mt.size)>=vt)){var rn=!0,jn=vn;T==null||T(null);var vr=Vrt(vn,F,m9(vt)?vt-Mt.size:void 0),ai=tn?null:vr;return v!=="combobox"&&ai&&(jn="",D==null||D(ai),je(!1),rn=!1),P&&ze!==jn&&P(jn,{source:Rr?"typing":"effect"}),rn}},jt=function(vn){!vn||!vn.trim()||P(vn,{source:"submit"})};m.useEffect(function(){!Vt&&!xe&&v!=="combobox"&&wt("",!1,!1)},[Vt]),m.useEffect(function(){xt&&y&&Nt(!1),y&&!ce.current&&Fe(!1)},[y]);var zt=mxe(),Gt=Oe(zt,2),$t=Gt[0],on=Gt[1],pt=m.useRef(!1),Dt=function(vn){var Rr=$t(),tn=vn.key,rn=tn==="Enter";if(rn&&(v!=="combobox"&&vn.preventDefault(),Vt||je(!0)),on(!!ze),tn==="Backspace"&&!Rr&&xe&&!ze&&u.length){for(var jn=at(u),vr=null,ai=jn.length-1;ai>=0;ai-=1){var co=jn[ai];if(!co.disabled){jn.splice(ai,1),vr=co;break}}vr&&d(jn,{type:"remove",values:[vr]})}for(var Xn=arguments.length,Ni=new Array(Xn>1?Xn-1:0),Do=1;Do<Xn;Do++)Ni[Do-1]=arguments[Do];if(Vt&&(!rn||!pt.current)){var Kn;rn&&(pt.current=!0),(Kn=ve.current)===null||Kn===void 0||Kn.onKeyDown.apply(Kn,[vn].concat(Ni))}pe==null||pe.apply(void 0,[vn].concat(Ni))},Wt=function(vn){for(var Rr=arguments.length,tn=new Array(Rr>1?Rr-1:0),rn=1;rn<Rr;rn++)tn[rn-1]=arguments[rn];if(Vt){var jn;(jn=ve.current)===null||jn===void 0||jn.onKeyUp.apply(jn,[vn].concat(tn))}vn.key==="Enter"&&(pt.current=!1),se==null||se.apply(void 0,[vn].concat(tn))},Et=function(vn){var Rr=u.filter(function(tn){return tn!==vn});d(Rr,{type:"remove",values:[vn]})},yt=function(){pt.current=!1},Ft=m.useRef(!1),Ae=function(){Fe(!0),y||(ue&&!Ft.current&&ue.apply(void 0,arguments),ae.includes("focus")&&je(!0)),Ft.current=!0},kt=function(){ce.current=!0,Fe(!1,function(){Ft.current=!1,ce.current=!1,je(!1)}),!y&&(ze&&(v==="tags"?P(ze,{source:"submit"}):v==="multiple"&&P("",{source:"blur"})),fe&&fe.apply(void 0,arguments))},nt=[];m.useEffect(function(){return function(){nt.forEach(function(cn){return clearTimeout(cn)}),nt.splice(0,nt.length)}},[]);var Rt=function(vn){var Rr,tn=vn.target,rn=(Rr=J.current)===null||Rr===void 0?void 0:Rr.getPopupElement();if(rn&&rn.contains(tn)){var jn=setTimeout(function(){var Xn=nt.indexOf(jn);if(Xn!==-1&&nt.splice(Xn,1),Xe(),!Ee&&!rn.contains(document.activeElement)){var Ni;(Ni=he.current)===null||Ni===void 0||Ni.focus()}});nt.push(jn)}for(var vr=arguments.length,ai=new Array(vr>1?vr-1:0),co=1;co<vr;co++)ai[co-1]=arguments[co];_e==null||_e.apply(void 0,[vn].concat(ai))},Tt=m.useState({}),xn=Oe(Tt,2),Un=xn[1];function O(){Un({})}var j;Ge&&(j=function(vn){je(vn)}),nrt(function(){var cn;return[X.current,(cn=J.current)===null||cn===void 0?void 0:cn.getPopupElement()]},Ve,je,!!Ge);var te=m.useMemo(function(){return q(q({},e),{},{notFoundContent:h,open:Vt,triggerOpen:Ve,id:r,showSearch:ge,multiple:xe,toggleOpen:je})},[e,h,Ve,Vt,r,ge,xe,je]),we=!!U||_,Le;we&&(Le=m.createElement(LD,{className:Re("".concat(i,"-arrow"),ie({},"".concat(i,"-arrow-loading"),_)),customizeIcon:U,customizeIconProps:{loading:_,searchValue:ze,open:Vt,focused:me,showSearch:ge}}));var Je=function(){var vn;g==null||g(),(vn=he.current)===null||vn===void 0||vn.focus(),d([],{type:"clear",values:u}),wt("",!1,!1)},At=ert(i,Je,u,L,G,y,ze,v),dn=At.allowClear,Mn=At.clearIcon,Kr=m.createElement(V,{ref:ve}),Ur=Re(i,o,ie(ie(ie(ie(ie(ie(ie(ie(ie(ie({},"".concat(i,"-focused"),me),"".concat(i,"-multiple"),xe),"".concat(i,"-single"),!xe),"".concat(i,"-allow-clear"),L),"".concat(i,"-show-arrow"),we),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),_),"".concat(i,"-open"),Vt),"".concat(i,"-customize-input"),qe),"".concat(i,"-show-search"),ge)),di=m.createElement(Hrt,{ref:J,disabled:y,prefixCls:i,visible:Ve,popupElement:Kr,animation:W,transitionName:$,dropdownStyle:H,dropdownClassName:K,direction:l,dropdownMatchSelectWidth:re,dropdownRender:Q,dropdownAlign:A,placement:k,builtinPlacements:Z,getPopupContainer:ne,empty:f,getTriggerDOMNode:function(vn){return Y.current||vn},onPopupVisibleChange:j,onPopupMouseEnter:O},Ge?m.cloneElement(Ge,{ref:We}):m.createElement(xrt,Qe({},e,{domRef:Y,prefixCls:i,inputElement:qe,ref:he,id:r,prefix:B,showSearch:ge,autoClearSearchValue:I,mode:v,activeDescendantId:R,tagRender:s,values:u,open:Vt,onToggleOpen:je,activeValue:x,searchValue:ze,onSearch:wt,onSearchSubmit:jt,onRemove:Et,tokenWithEnter:et,onInputBlur:yt}))),Sr;return Ge?Sr=di:Sr=m.createElement("div",Qe({className:Ur},Ce,{ref:X,onMouseDown:Rt,onKeyDown:Dt,onKeyUp:Wt,onFocus:Ae,onBlur:kt}),m.createElement(Grt,{visible:me&&!Vt,values:u}),di,Le,dn&&Mn),m.createElement(pxe.Provider,{value:te},Sr)}),WY=function(){return null};WY.isSelectOptGroup=!0;var YY=function(){return null};YY.isSelectOption=!0;var Exe=m.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},f=q(q({},f),{},ie(ie(ie(ie(ie({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:d},m.createElement(hs,{onResize:function(h){var g=h.offsetHeight;g&&s&&s()}},m.createElement("div",Qe({style:f,className:Re(ie({},"".concat(a,"-holder-inner"),a)),ref:t},l),o,u)))});Exe.displayName="Filler";function qrt(e){var t=e.children,n=e.setRef,r=m.useCallback(function(i){n(i)},[]);return m.cloneElement(t,{ref:r})}function Krt(e,t,n,r,i,o,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,f=a(c,d,{style:{width:r},offsetX:i}),p=l(c);return m.createElement(qrt,{key:p,setRef:function(g){return o(c,g)}},f)})}function Qrt(e,t,n){var r=e.length,i=t.length,o,a;if(r===0&&i===0)return null;r<i?(o=e,a=t):(o=t,a=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-i)!==1,d=0;d<a.length;d+=1){var f=l(o[d]),p=l(a[d]);if(f!==p){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function Xrt(e,t,n){var r=m.useState(e),i=Oe(r,2),o=i[0],a=i[1],s=m.useState(null),l=Oe(s,2),c=l[0],u=l[1];return m.useEffect(function(){var d=Qrt(o||[],e||[],t);(d==null?void 0:d.index)!==void 0&&u(e[d.index]),a(e)},[e]),[c]}var lie=(typeof navigator>"u"?"undefined":qt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Cxe=function(e,t,n,r){var i=m.useRef(!1),o=m.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var s=m.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(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(o.current),i.current=!1):(!d||i.current)&&a(),!i.current&&d}};function Zrt(e,t,n,r,i,o,a){var s=m.useRef(0),l=m.useRef(null),c=m.useRef(null),u=m.useRef(!1),d=Cxe(t,n,r,i);function f(_,b){if(rr.cancel(l.current),!d(!1,b)){var S=_;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=b,c.current=b,lie||S.preventDefault(),l.current=rr(function(){var C=u.current?10:1;a(s.current*C,!1),s.current=0})}}function p(_,b){a(b,!0),lie||_.preventDefault()}var h=m.useRef(null),g=m.useRef(null);function v(_){if(e){rr.cancel(g.current),g.current=rr(function(){h.current=null},2);var b=_.deltaX,S=_.deltaY,C=_.shiftKey,E=b,w=S;(h.current==="sx"||!h.current&&C&&S&&!b)&&(E=S,w=0,h.current="sx");var x=Math.abs(E),T=Math.abs(w);h.current===null&&(h.current=o&&x>T?"x":"y"),h.current==="y"?f(_,w):p(_,E)}}function y(_){e&&(u.current=_.detail===c.current)}return[v,y]}function Jrt(e,t,n,r){var i=m.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Oe(i,2),a=o[0],s=o[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=a.get(u),p=a.get(d);if(f===void 0||p===void 0)for(var h=e.length,g=s.length;g<h;g+=1){var v,y=e[g],_=t(y);a.set(_,g);var b=(v=n.get(_))!==null&&v!==void 0?v:r;if(s[g]=(s[g-1]||0)+b,_===u&&(f=g),_===d&&(p=g),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var eit=function(){function e(){Yr(this,e),ie(this,"maps",void 0),ie(this,"id",0),this.maps=Object.create(null)}return qr(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function cie(e){var t=parseFloat(e);return isNaN(t)?0:t}function tit(e,t,n){var r=m.useState(0),i=Oe(r,2),o=i[0],a=i[1],s=m.useRef(new Map),l=m.useRef(new eit),c=m.useRef();function u(){rr.cancel(c.current)}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var _=jC(v),b=_.offsetHeight,S=getComputedStyle(_),C=S.marginTop,E=S.marginBottom,w=cie(C),x=cie(E),T=b+w+x;l.current.get(y)!==T&&l.current.set(y,T)}}),a(function(v){return v+1})};p?h():c.current=rr(h)}function f(p,h){var g=e(p);s.current.get(g),h?(s.current.set(g,h),d()):s.current.delete(g)}return m.useEffect(function(){return u},[]),[f,d,l.current,o]}var uie=14/15;function nit(e,t,n){var r=m.useRef(!1),i=m.useRef(0),o=m.useRef(0),a=m.useRef(null),s=m.useRef(null),l,c=function(p){if(r.current){var h=Math.ceil(p.touches[0].pageX),g=Math.ceil(p.touches[0].pageY),v=i.current-h,y=o.current-g,_=Math.abs(v)>Math.abs(y);_?i.current=h:o.current=g;var b=n(_,_?v:y,!1,p);b&&p.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){_?v*=uie:y*=uie;var S=Math.floor(_?v:y);(!n(_,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),o.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},gr(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var rit=10;function iit(e,t,n,r,i,o,a,s){var l=m.useRef(),c=m.useState(null),u=Oe(c,2),d=u[0],f=u[1];return gr(function(){if(d&&d.times<rit){if(!e.current){f(function(G){return q({},G)});return}o();var p=d.targetAlign,h=d.originAlign,g=d.index,v=d.offset,y=e.current.clientHeight,_=!1,b=p,S=null;if(y){for(var C=p||h,E=0,w=0,x=0,T=Math.min(t.length-1,g),R=0;R<=T;R+=1){var N=i(t[R]);w=E;var I=n.get(N);x=w+(I===void 0?r:I),E=x}for(var P=C==="top"?v:y-v,D=T;D>=0;D-=1){var F=i(t[D]),L=n.get(F);if(L===void 0){_=!0;break}if(P-=L,P<=0)break}switch(C){case"top":S=w-v;break;case"bottom":S=x-y+v;break;default:{var B=e.current.scrollTop,U=B+y;w<B?b="top":x>U&&(b="bottom")}}S!==null&&a(S),S!==d.lastTop&&(_=!0)}_&&f(q(q({},d),{},{times:d.times+1,targetAlign:b,lastTop:S}))}},[d,e.current]),function(p){if(p==null){s();return}if(rr.cancel(l.current),typeof p=="number")a(p);else if(p&&qt(p)==="object"){var h,g=p.align;"index"in p?h=p.index:h=t.findIndex(function(_){return i(_)===p.key});var v=p.offset,y=v===void 0?0:v;f({times:0,index:h,offset:y,originAlign:g})}}}function die(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var fie=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,h=m.useState(!1),g=Oe(h,2),v=g[0],y=g[1],_=m.useState(null),b=Oe(_,2),S=b[0],C=b[1],E=m.useState(null),w=Oe(E,2),x=w[0],T=w[1],R=!r,N=m.useRef(),I=m.useRef(),P=m.useState(!1),D=Oe(P,2),F=D[0],L=D[1],B=m.useRef(),U=function(){clearTimeout(B.current),L(!0),B.current=setTimeout(function(){L(!1)},3e3)},G=o-d||0,V=d-u||0,W=m.useMemo(function(){if(i===0||G===0)return 0;var ne=i/G;return ne*V},[i,G,V]),$=function(oe){oe.stopPropagation(),oe.preventDefault()},H=m.useRef({top:W,dragging:v,pageY:S,startTop:x});H.current={top:W,dragging:v,pageY:S,startTop:x};var K=function(oe){y(!0),C(die(oe,c)),T(H.current.top),a(),oe.stopPropagation(),oe.preventDefault()};m.useEffect(function(){var ne=function(fe){fe.preventDefault()},oe=N.current,ae=I.current;return oe.addEventListener("touchstart",ne,{passive:!1}),ae.addEventListener("touchstart",K,{passive:!1}),function(){oe.removeEventListener("touchstart",ne),ae.removeEventListener("touchstart",K)}},[]);var re=m.useRef();re.current=G;var Q=m.useRef();Q.current=V,m.useEffect(function(){if(v){var ne,oe=function(fe){var se=H.current,pe=se.dragging,_e=se.pageY,Te=se.startTop;rr.cancel(ne);var xe=N.current.getBoundingClientRect(),ge=d/(c?xe.width:xe.height);if(pe){var Ce=(die(fe,c)-_e)*ge,ye=Te;!R&&c?ye-=Ce:ye+=Ce;var be=re.current,Ee=Q.current,Me=Ee?ye/Ee:0,X=Math.ceil(Me*be);X=Math.max(X,0),X=Math.min(X,be),ne=rr(function(){l(X,c)})}},ae=function(){y(!1),s()};return window.addEventListener("mousemove",oe,{passive:!0}),window.addEventListener("touchmove",oe,{passive:!0}),window.addEventListener("mouseup",ae,{passive:!0}),window.addEventListener("touchend",ae,{passive:!0}),function(){window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe),window.removeEventListener("mouseup",ae),window.removeEventListener("touchend",ae),rr.cancel(ne)}}},[v]),m.useEffect(function(){return U(),function(){clearTimeout(B.current)}},[i]),m.useImperativeHandle(t,function(){return{delayHidden:U}});var A="".concat(n,"-scrollbar"),k={position:"absolute",visibility:F?null:"hidden"},Z={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(k.height=8,k.left=0,k.right=0,k.bottom=0,Z.height="100%",Z.width=u,R?Z.left=W:Z.right=W):(k.width=8,k.top=0,k.bottom=0,R?k.right=0:k.left=0,Z.width="100%",Z.height=u,Z.top=W),m.createElement("div",{ref:N,className:Re(A,ie(ie(ie({},"".concat(A,"-horizontal"),c),"".concat(A,"-vertical"),!c),"".concat(A,"-visible"),F)),style:q(q({},k),f),onMouseDown:$,onMouseMove:U},m.createElement("div",{ref:I,className:Re("".concat(A,"-thumb"),ie({},"".concat(A,"-thumb-moving"),v)),style:q(q({},Z),p),onMouseDown:K}))}),oit=20;function pie(){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,oit),Math.floor(n)}var ait=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],sit=[],lit={overflowY:"auto",overflowAnchor:"none"};function cit(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,_=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,C=e.innerProps,E=e.extraRender,w=e.styles,x=It(e,ait),T=m.useCallback(function(Et){return typeof f=="function"?f(Et):Et==null?void 0:Et[f]},[f]),R=tit(T),N=Oe(R,4),I=N[0],P=N[1],D=N[2],F=N[3],L=!!(p!==!1&&o&&a),B=m.useMemo(function(){return Object.values(D.maps).reduce(function(Et,yt){return Et+yt},0)},[D.id,D.maps]),U=L&&u&&(Math.max(a*u.length,B)>o||!!g),G=h==="rtl",V=Re(r,ie({},"".concat(r,"-rtl"),G),i),W=u||sit,$=m.useRef(),H=m.useRef(),K=m.useRef(),re=m.useState(0),Q=Oe(re,2),A=Q[0],k=Q[1],Z=m.useState(0),ne=Oe(Z,2),oe=ne[0],ae=ne[1],ue=m.useState(!1),fe=Oe(ue,2),se=fe[0],pe=fe[1],_e=function(){pe(!0)},Te=function(){pe(!1)},xe={getKey:T};function ge(Et){k(function(yt){var Ft;typeof Et=="function"?Ft=Et(yt):Ft=Et;var Ae=ut(Ft);return $.current.scrollTop=Ae,Ae})}var Ce=m.useRef({start:0,end:W.length}),ye=m.useRef(),be=Xrt(W,T),Ee=Oe(be,1),Me=Ee[0];ye.current=Me;var X=m.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!U){var Et;return{scrollHeight:((Et=H.current)===null||Et===void 0?void 0:Et.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var yt=0,Ft,Ae,kt,nt=W.length,Rt=0;Rt<nt;Rt+=1){var Tt=W[Rt],xn=T(Tt),Un=D.get(xn),O=yt+(Un===void 0?a:Un);O>=A&&Ft===void 0&&(Ft=Rt,Ae=yt),O>A+o&&kt===void 0&&(kt=Rt),yt=O}return Ft===void 0&&(Ft=0,Ae=0,kt=Math.ceil(o/a)),kt===void 0&&(kt=W.length-1),kt=Math.min(kt+1,W.length-1),{scrollHeight:yt,start:Ft,end:kt,offset:Ae}},[U,L,A,W,F,o]),Y=X.scrollHeight,J=X.start,he=X.end,ve=X.offset;Ce.current.start=J,Ce.current.end=he;var ce=m.useState({width:0,height:o}),$e=Oe(ce,2),Be=$e[0],me=$e[1],Fe=function(yt){me({width:yt.offsetWidth,height:yt.offsetHeight})},Xe=m.useRef(),ze=m.useRef(),qe=m.useMemo(function(){return pie(Be.width,g)},[Be.width,g]),Ge=m.useMemo(function(){return pie(Be.height,Y)},[Be.height,Y]),We=Y-o,Lt=m.useRef(We);Lt.current=We;function ut(Et){var yt=Et;return Number.isNaN(Lt.current)||(yt=Math.min(yt,Lt.current)),yt=Math.max(yt,0),yt}var ft=A<=0,bt=A>=We,St=oe<=0,Ht=oe>=g,xt=Cxe(ft,bt,St,Ht),Nt=function(){return{x:G?-oe:oe,y:A}},Vt=m.useRef(Nt()),Ue=Wn(function(Et){if(b){var yt=q(q({},Nt()),Et);(Vt.current.x!==yt.x||Vt.current.y!==yt.y)&&(b(yt),Vt.current=yt)}});function Ve(Et,yt){var Ft=Et;yt?(Ha.flushSync(function(){ae(Ft)}),Ue()):ge(Ft)}function je(Et){var yt=Et.currentTarget.scrollTop;yt!==A&&ge(yt),_==null||_(Et),Ue()}var et=function(yt){var Ft=yt,Ae=g?g-Be.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,Ae),Ft},_t=Wn(function(Et,yt){yt?(Ha.flushSync(function(){ae(function(Ft){var Ae=Ft+(G?-Et:Et);return et(Ae)})}),Ue()):ge(function(Ft){var Ae=Ft+Et;return Ae})}),vt=Zrt(L,ft,bt,St,Ht,!!g,_t),Mt=Oe(vt,2),wt=Mt[0],jt=Mt[1];nit(L,$,function(Et,yt,Ft,Ae){var kt=Ae;return xt(Et,yt,Ft)?!1:!kt||!kt._virtualHandled?(kt&&(kt._virtualHandled=!0),wt({preventDefault:function(){},deltaX:Et?yt:0,deltaY:Et?0:yt}),!0):!1}),gr(function(){function Et(Ft){var Ae=ft&&Ft.detail<0,kt=bt&&Ft.detail>0;L&&!Ae&&!kt&&Ft.preventDefault()}var yt=$.current;return yt.addEventListener("wheel",wt,{passive:!1}),yt.addEventListener("DOMMouseScroll",jt,{passive:!0}),yt.addEventListener("MozMousePixelScroll",Et,{passive:!1}),function(){yt.removeEventListener("wheel",wt),yt.removeEventListener("DOMMouseScroll",jt),yt.removeEventListener("MozMousePixelScroll",Et)}},[L,ft,bt]),gr(function(){if(g){var Et=et(oe);ae(Et),Ue({x:Et})}},[Be.width,g]);var zt=function(){var yt,Ft;(yt=Xe.current)===null||yt===void 0||yt.delayHidden(),(Ft=ze.current)===null||Ft===void 0||Ft.delayHidden()},Gt=iit($,W,D,a,T,function(){return P(!0)},ge,zt);m.useImperativeHandle(t,function(){return{nativeElement:K.current,getScrollInfo:Nt,scrollTo:function(yt){function Ft(Ae){return Ae&&qt(Ae)==="object"&&("left"in Ae||"top"in Ae)}Ft(yt)?(yt.left!==void 0&&ae(et(yt.left)),Gt(yt.top)):Gt(yt)}}}),gr(function(){if(S){var Et=W.slice(J,he+1);S(Et,W)}},[J,he,W]);var $t=Jrt(W,T,D,a),on=E==null?void 0:E({start:J,end:he,virtual:U,offsetX:oe,offsetY:ve,rtl:G,getSize:$t}),pt=Krt(W,J,he,g,oe,I,d,xe),Dt=null;o&&(Dt=q(ie({},l?"height":"maxHeight",o),lit),L&&(Dt.overflowY="hidden",g&&(Dt.overflowX="hidden"),se&&(Dt.pointerEvents="none")));var Wt={};return G&&(Wt.dir="rtl"),m.createElement("div",Qe({ref:K,style:q(q({},c),{},{position:"relative"}),className:V},Wt,x),m.createElement(hs,{onResize:Fe},m.createElement(y,{className:"".concat(r,"-holder"),style:Dt,ref:$,onScroll:je,onMouseEnter:zt},m.createElement(Exe,{prefixCls:r,height:Y,offsetX:oe,offsetY:ve,scrollWidth:g,onInnerResize:P,ref:H,innerProps:C,rtl:G,extra:on},pt))),U&&Y>o&&m.createElement(fie,{ref:Xe,prefixCls:r,scrollOffset:A,scrollRange:Y,rtl:G,onScroll:Ve,onStartMove:_e,onStopMove:Te,spinSize:Ge,containerSize:Be.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),U&&g>Be.width&&m.createElement(fie,{ref:ze,prefixCls:r,scrollOffset:oe,scrollRange:g,rtl:G,onScroll:Ve,onStartMove:_e,onStopMove:Te,spinSize:qe,containerSize:Be.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var qY=m.forwardRef(cit);qY.displayName="List";function uit(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var dit=["disabled","title","children","style","className"];function mie(e){return typeof e=="string"||typeof e=="number"}var fit=function(t,n){var r=zY(),i=r.prefixCls,o=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=m.useContext(VY),h=p.maxCount,g=p.flattenOptions,v=p.onActiveValue,y=p.defaultActiveFirstOption,_=p.onSelect,b=p.menuItemSelectedIcon,S=p.rawValues,C=p.fieldNames,E=p.virtual,w=p.direction,x=p.listHeight,T=p.listItemHeight,R=p.optionRender,N="".concat(i,"-item"),I=zv(function(){return g},[a,g],function(oe,ae){return ae[0]&&oe[1]!==ae[1]}),P=m.useRef(null),D=m.useMemo(function(){return s&&m9(h)&&(S==null?void 0:S.size)>=h},[s,h,S==null?void 0:S.size]),F=function(ae){ae.preventDefault()},L=function(ae){var ue;(ue=P.current)===null||ue===void 0||ue.scrollTo(typeof ae=="number"?{index:ae}:ae)},B=m.useCallback(function(oe){return l==="combobox"?!1:S.has(oe)},[l,at(S).toString(),S.size]),U=function(ae){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fe=I.length,se=0;se<fe;se+=1){var pe=(ae+se*ue+fe)%fe,_e=I[pe]||{},Te=_e.group,xe=_e.data;if(!Te&&!(xe!=null&&xe.disabled)&&(B(xe.value)||!D))return pe}return-1},G=m.useState(function(){return U(0)}),V=Oe(G,2),W=V[0],$=V[1],H=function(ae){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$(ae);var fe={source:ue?"keyboard":"mouse"},se=I[ae];if(!se){v(null,-1,fe);return}v(se.value,ae,fe)};m.useEffect(function(){H(y!==!1?U(0):-1)},[I.length,c]);var K=m.useCallback(function(oe){return l==="combobox"?String(oe).toLowerCase()===c.toLowerCase():S.has(oe)},[l,c,at(S).toString(),S.size]);m.useEffect(function(){var oe=setTimeout(function(){if(!s&&a&&S.size===1){var ue=Array.from(S)[0],fe=I.findIndex(function(se){var pe=se.data;return pe.value===ue});fe!==-1&&(H(fe),L(fe))}});if(a){var ae;(ae=P.current)===null||ae===void 0||ae.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[a,c]);var re=function(ae){ae!==void 0&&_(ae,{selected:!S.has(ae)}),s||u(!1)};if(m.useImperativeHandle(n,function(){return{onKeyDown:function(ae){var ue=ae.which,fe=ae.ctrlKey;switch(ue){case gt.N:case gt.P:case gt.UP:case gt.DOWN:{var se=0;if(ue===gt.UP?se=-1:ue===gt.DOWN?se=1:uit()&&fe&&(ue===gt.N?se=1:ue===gt.P&&(se=-1)),se!==0){var pe=U(W+se,se);L(pe),H(pe,!0)}break}case gt.TAB:case gt.ENTER:{var _e,Te=I[W];Te&&!(Te!=null&&(_e=Te.data)!==null&&_e!==void 0&&_e.disabled)&&!D?re(Te.value):re(void 0),a&&ae.preventDefault();break}case gt.ESC:u(!1),a&&ae.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ae){L(ae)}}}),I.length===0)return m.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:F},d);var Q=Object.keys(C).map(function(oe){return C[oe]}),A=function(ae){return ae.label};function k(oe,ae){var ue=oe.group;return{role:ue?"presentation":"option",id:"".concat(o,"_list_").concat(ae)}}var Z=function(ae){var ue=I[ae];if(!ue)return null;var fe=ue.data||{},se=fe.value,pe=ue.group,_e=ao(fe,!0),Te=A(ue);return ue?m.createElement("div",Qe({"aria-label":typeof Te=="string"&&!pe?Te:null},_e,{key:ae},k(ue,ae),{"aria-selected":K(se)}),se):null},ne={role:"listbox",id:"".concat(o,"_list")};return m.createElement(m.Fragment,null,E&&m.createElement("div",Qe({},ne,{style:{height:0,width:0,overflow:"hidden"}}),Z(W-1),Z(W),Z(W+1)),m.createElement(qY,{itemKey:"key",ref:P,data:I,height:x,itemHeight:T,fullHeight:!1,onMouseDown:F,onScroll:f,virtual:E,direction:w,innerProps:E?null:ne},function(oe,ae){var ue=oe.group,fe=oe.groupOption,se=oe.data,pe=oe.label,_e=oe.value,Te=se.key;if(ue){var xe,ge=(xe=se.title)!==null&&xe!==void 0?xe:mie(pe)?pe.toString():void 0;return m.createElement("div",{className:Re(N,"".concat(N,"-group"),se.className),title:ge},pe!==void 0?pe:Te)}var Ce=se.disabled,ye=se.title;se.children;var be=se.style,Ee=se.className,Me=It(se,dit),X=ur(Me,Q),Y=B(_e),J=Ce||!Y&&D,he="".concat(N,"-option"),ve=Re(N,he,Ee,ie(ie(ie(ie({},"".concat(he,"-grouped"),fe),"".concat(he,"-active"),W===ae&&!J),"".concat(he,"-disabled"),J),"".concat(he,"-selected"),Y)),ce=A(oe),$e=!b||typeof b=="function"||Y,Be=typeof ce=="number"?ce:ce||_e,me=mie(Be)?Be.toString():void 0;return ye!==void 0&&(me=ye),m.createElement("div",Qe({},ao(X),E?{}:k(oe,ae),{"aria-selected":K(_e),className:ve,title:me,onMouseMove:function(){W===ae||J||H(ae)},onClick:function(){J||re(_e)},style:be}),m.createElement("div",{className:"".concat(he,"-content")},typeof R=="function"?R(oe,{index:ae}):Be),m.isValidElement(b)||Y,$e&&m.createElement(LD,{className:"".concat(N,"-option-state"),customizeIcon:b,customizeIconProps:{value:_e,disabled:J,isSelected:Y}},Y?"✓":null))}))},pit=m.forwardRef(fit);const mit=function(e,t){var n=m.useRef({values:new Map,options:new Map}),r=m.useMemo(function(){var o=n.current,a=o.values,s=o.options,l=e.map(function(d){if(d.label===void 0){var f;return q(q({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=m.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function eF(e,t){return yxe(e).join("").toUpperCase().includes(t)}const hit=function(e,t,n,r,i){return m.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,h){return i?eF(h[i],u):h[o]?eF(h[a!=="children"?a:"label"],u):eF(h[s],u)},f=c?function(p){return h9(p)}:function(p){return p};return e.forEach(function(p){if(p[o]){var h=d(n,f(p));if(h)l.push(p);else{var g=p[o].filter(function(v){return d(n,f(v))});g.length&&l.push(q(q({},p),{},ie({},o,g)))}return}d(n,f(p))&&l.push(p)}),l},[e,r,i,n,t])};var hie=0,git=tc();function vit(){var e;return git?(e=hie,hie+=1):e="TEST_OR_SSR",e}function KY(e){var t=m.useState(),n=Oe(t,2),r=n[0],i=n[1];return m.useEffect(function(){i("rc_select_".concat(vit()))},[]),e||r}var _it=["children","value"],yit=["children"];function bit(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=It(r,_it);return q({key:n,value:o!==void 0?o:n,children:i},a)}function wxe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _a(e).map(function(n,r){if(!m.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,c=It(s,yit);return t||!o?bit(n):q(q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:wxe(l)})}).filter(function(n){return n})}var Sit=function(t,n,r,i,o){return m.useMemo(function(){var a=t,s=!t;s&&(a=wxe(n));var l=new Map,c=new Map,u=function(p,h,g){g&&typeof g=="string"&&p.set(h[g],h)},d=function f(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<p.length;g+=1){var v=p[g];!v[r.options]||h?(l.set(v[r.value],v),u(c,v,r.label),u(c,v,i),u(c,v,o)):f(v[r.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:c}},[t,n,r,i,o])};function gie(e){var t=m.useRef();t.current=e;var n=m.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Eit=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Cit=["inputValue"];function wit(e){return!e||qt(e)!=="object"}var xit=m.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,p=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,v=g===void 0?!0:g,y=e.filterOption,_=e.filterSort,b=e.optionFilterProp,S=e.optionLabelProp,C=e.options,E=e.optionRender,w=e.children,x=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,R=e.virtual,N=e.direction,I=e.listHeight,P=I===void 0?200:I,D=e.listItemHeight,F=D===void 0?20:D,L=e.labelRender,B=e.value,U=e.defaultValue,G=e.labelInValue,V=e.onChange,W=e.maxCount,$=It(e,Eit),H=KY(n),K=g9(r),re=!!(!C&&w),Q=m.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),A=m.useMemo(function(){return Sxe(s,re)},[JSON.stringify(s),re]),k=Fn("",{value:c!==void 0?c:l,postState:function(et){return et||""}}),Z=Oe(k,2),ne=Z[0],oe=Z[1],ae=Sit(C,w,A,b,S),ue=ae.valueOptions,fe=ae.labelOptions,se=ae.options,pe=m.useCallback(function(je){var et=yxe(je);return et.map(function(_t){var vt,Mt,wt,jt,zt;if(wit(_t))vt=_t;else{var Gt;wt=_t.key,Mt=_t.label,vt=(Gt=_t.value)!==null&&Gt!==void 0?Gt:wt}var $t=ue.get(vt);if($t){var on;Mt===void 0&&(Mt=$t==null?void 0:$t[S||A.label]),wt===void 0&&(wt=(on=$t==null?void 0:$t.key)!==null&&on!==void 0?on:vt),jt=$t==null?void 0:$t.disabled,zt=$t==null?void 0:$t.title}return{label:Mt,value:vt,key:wt,disabled:jt,title:zt}})},[A,S,ue]),_e=Fn(U,{value:B}),Te=Oe(_e,2),xe=Te[0],ge=Te[1],Ce=m.useMemo(function(){var je,et=K&&xe===null?[]:xe,_t=pe(et);return r==="combobox"&&yrt((je=_t[0])===null||je===void 0?void 0:je.value)?[]:_t},[xe,pe,r,K]),ye=mit(Ce,ue),be=Oe(ye,2),Ee=be[0],Me=be[1],X=m.useMemo(function(){if(!r&&Ee.length===1){var je=Ee[0];if(je.value===null&&(je.label===null||je.label===void 0))return[]}return Ee.map(function(et){var _t;return q(q({},et),{},{label:(_t=typeof L=="function"?L(et):et.label)!==null&&_t!==void 0?_t:et.value})})},[r,Ee,L]),Y=m.useMemo(function(){return new Set(Ee.map(function(je){return je.value}))},[Ee]);m.useEffect(function(){if(r==="combobox"){var je,et=(je=Ee[0])===null||je===void 0?void 0:je.value;oe(_rt(et)?String(et):"")}},[Ee]);var J=gie(function(je,et){var _t=et??je;return ie(ie({},A.value,je),A.label,_t)}),he=m.useMemo(function(){if(r!=="tags")return se;var je=at(se),et=function(vt){return ue.has(vt)};return at(Ee).sort(function(_t,vt){return _t.value<vt.value?-1:1}).forEach(function(_t){var vt=_t.value;et(vt)||je.push(J(vt,_t.label))}),je},[J,se,ue,Ee,r]),ve=hit(he,A,ne,Q,b),ce=m.useMemo(function(){return r!=="tags"||!ne||ve.some(function(je){return je[b||"value"]===ne})||ve.some(function(je){return je[A.value]===ne})?ve:[J(ne)].concat(at(ve))},[J,b,r,ve,ne,A]),$e=function je(et){var _t=at(et).sort(function(vt,Mt){return _(vt,Mt,{searchValue:ne})});return _t.map(function(vt){return Array.isArray(vt.options)?q(q({},vt),{},{options:vt.options.length>0?je(vt.options):vt.options}):vt})},Be=m.useMemo(function(){return _?$e(ce):ce},[ce,_,ne]),me=m.useMemo(function(){return zrt(Be,{fieldNames:A,childrenAsData:re})},[Be,A,re]),Fe=function(et){var _t=pe(et);if(ge(_t),V&&(_t.length!==Ee.length||_t.some(function(wt,jt){var zt;return((zt=Ee[jt])===null||zt===void 0?void 0:zt.value)!==(wt==null?void 0:wt.value)}))){var vt=G?_t:_t.map(function(wt){return wt.value}),Mt=_t.map(function(wt){return h9(Me(wt.value))});V(K?vt:vt[0],K?Mt:Mt[0])}},Xe=m.useState(null),ze=Oe(Xe,2),qe=ze[0],Ge=ze[1],We=m.useState(0),Lt=Oe(We,2),ut=Lt[0],ft=Lt[1],bt=x!==void 0?x:r!=="combobox",St=m.useCallback(function(je,et){var _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=_t.source,Mt=vt===void 0?"keyboard":vt;ft(et),a&&r==="combobox"&&je!==null&&Mt==="keyboard"&&Ge(String(je))},[a,r]),Ht=function(et,_t,vt){var Mt=function(){var Et,yt=Me(et);return[G?{label:yt==null?void 0:yt[A.label],value:et,key:(Et=yt==null?void 0:yt.key)!==null&&Et!==void 0?Et:et}:et,h9(yt)]};if(_t&&p){var wt=Mt(),jt=Oe(wt,2),zt=jt[0],Gt=jt[1];p(zt,Gt)}else if(!_t&&h&&vt!=="clear"){var $t=Mt(),on=Oe($t,2),pt=on[0],Dt=on[1];h(pt,Dt)}},xt=gie(function(je,et){var _t,vt=K?et.selected:!0;vt?_t=K?[].concat(at(Ee),[je]):[je]:_t=Ee.filter(function(Mt){return Mt.value!==je}),Fe(_t),Ht(je,vt),r==="combobox"?Ge(""):(!g9||f)&&(oe(""),Ge(""))}),Nt=function(et,_t){Fe(et);var vt=_t.type,Mt=_t.values;(vt==="remove"||vt==="clear")&&Mt.forEach(function(wt){Ht(wt.value,!1,vt)})},Vt=function(et,_t){if(oe(et),Ge(null),_t.source==="submit"){var vt=(et||"").trim();if(vt){var Mt=Array.from(new Set([].concat(at(Y),[vt])));Fe(Mt),Ht(vt,!0),oe("")}return}_t.source!=="blur"&&(r==="combobox"&&Fe(et),u==null||u(et))},Ue=function(et){var _t=et;r!=="tags"&&(_t=et.map(function(Mt){var wt=fe.get(Mt);return wt==null?void 0:wt.value}).filter(function(Mt){return Mt!==void 0}));var vt=Array.from(new Set([].concat(at(Y),at(_t))));Fe(vt),vt.forEach(function(Mt){Ht(Mt,!0)})},Ve=m.useMemo(function(){var je=R!==!1&&v!==!1;return q(q({},ae),{},{flattenOptions:me,onActiveValue:St,defaultActiveFirstOption:bt,onSelect:xt,menuItemSelectedIcon:T,rawValues:Y,fieldNames:A,virtual:je,direction:N,listHeight:P,listItemHeight:F,childrenAsData:re,maxCount:W,optionRender:E})},[W,ae,me,St,bt,xt,T,Y,A,R,v,N,P,F,re,E]);return m.createElement(VY.Provider,{value:Ve},m.createElement(GY,Qe({},$,{id:H,prefixCls:o,ref:t,omitDomProps:Cit,mode:r,displayValues:X,onDisplayValuesChange:Nt,direction:N,searchValue:ne,onSearch:Vt,autoClearSearchValue:f,onSearchSplit:Ue,dropdownMatchSelectWidth:v,OptionList:pit,emptyOptions:!me.length,activeValue:qe,activeDescendantId:"".concat(H,"_list_").concat(ut)})))}),QY=xit;QY.Option=YY;QY.OptGroup=WY;function id(e,t,n){return Re({[`${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 $p=(e,t)=>t||e,Tit=()=>{const[,e]=Ea(),[t]=Gs("Empty"),r=new cr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(t==null?void 0:t.description)||"Empty"),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.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"}),m.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)"}),m.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"}),m.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"})),m.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"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Rit=()=>{const[,e]=Ea(),[t]=Gs("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=m.useMemo(()=>({borderColor:new cr(n).onBackground(o).toHexString(),shadowColor:new cr(r).onBackground(o).toHexString(),contentColor:new cr(i).onBackground(o).toHexString()}),[n,r,i,o]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(t==null?void 0:t.description)||"Empty"),m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:a},m.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"}),m.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},Oit=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Iit=dr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=qn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Oit(i)]});var Nit=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xxe=m.createElement(Tit,null),Txe=m.createElement(Rit,null),$m=e=>{var t,n,r,i,o,a,s,l;const{className:c,rootClassName:u,prefixCls:d,image:f=xxe,description:p,children:h,imageStyle:g,style:v,classNames:y,styles:_}=e,b=Nit(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:S,direction:C,empty:E}=m.useContext(nn),w=S("empty",d),[x,T,R]=Iit(w),[N]=Gs("Empty"),I=typeof p<"u"?p:N==null?void 0:N.description,P=typeof I=="string"?I:"empty";let D=null;return typeof f=="string"?D=m.createElement("img",{alt:P,src:f}):D=f,x(m.createElement("div",Object.assign({className:Re(T,R,w,E==null?void 0:E.className,{[`${w}-normal`]:f===Txe,[`${w}-rtl`]:C==="rtl"},c,u,(t=E==null?void 0:E.classNames)===null||t===void 0?void 0:t.root,y==null?void 0:y.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=E==null?void 0:E.styles)===null||n===void 0?void 0:n.root),E==null?void 0:E.style),_==null?void 0:_.root),v)},b),m.createElement("div",{className:Re(`${w}-image`,(r=E==null?void 0:E.classNames)===null||r===void 0?void 0:r.image,y==null?void 0:y.image),style:Object.assign(Object.assign(Object.assign({},g),(i=E==null?void 0:E.styles)===null||i===void 0?void 0:i.image),_==null?void 0:_.image)},D),I&&m.createElement("div",{className:Re(`${w}-description`,(o=E==null?void 0:E.classNames)===null||o===void 0?void 0:o.description,y==null?void 0:y.description),style:Object.assign(Object.assign({},(a=E==null?void 0:E.styles)===null||a===void 0?void 0:a.description),_==null?void 0:_.description)},I),h&&m.createElement("div",{className:Re(`${w}-footer`,(s=E==null?void 0:E.classNames)===null||s===void 0?void 0:s.footer,y==null?void 0:y.footer),style:Object.assign(Object.assign({},(l=E==null?void 0:E.styles)===null||l===void 0?void 0:l.footer),_==null?void 0:_.footer)},h)))};$m.PRESENTED_IMAGE_DEFAULT=xxe;$m.PRESENTED_IMAGE_SIMPLE=Txe;const $D=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(nn),r=n("empty");switch(t){case"Table":case"List":return de.createElement($m,{image:$m.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement($m,{image:$m.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return de.createElement($m,null)}},Fp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=m.useContext(nn),s=m.useContext(zwe),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=nQe.includes(c);return[c,u]},Mit=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 XY(e,t){return e||Mit(t)}const vie=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Ait=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},wr(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,[`
|
||
${i}${s}bottomLeft,
|
||
${o}${s}bottomLeft
|
||
`]:{animationName:ED},[`
|
||
${i}${s}topLeft,
|
||
${o}${s}topLeft,
|
||
${i}${s}topRight,
|
||
${o}${s}topRight
|
||
`]:{animationName:wD},[`${a}${s}bottomLeft`]:{animationName:CD},[`
|
||
${a}${s}topLeft,
|
||
${a}${s}topRight
|
||
`]:{animationName:xD},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},vie(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"},nc),"&-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}},"&-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({},vie(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},of(e,"slide-up"),of(e,"slide-down"),l0(e,"move-up"),l0(e,"move-down")]},Rxe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:De(t),itemLineHeight:De(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Pit=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Oxe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},O_()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Dit=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=Pit(e),s=t?`${n}-${t}`:"",l=Rxe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},Oxe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${De(r)} 0`,lineHeight:De(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:De(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:De(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
|
||
${n}-prefix + ${n}-selection-wrap
|
||
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:De(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.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function tF(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${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[Dit(e,t),i]}const kit=e=>{const{componentCls:t}=e,n=qn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=qn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tF(e),tF(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},tF(r,"lg")]};function nF(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},wr(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
||
${n}-selection-item,
|
||
${n}-selection-placeholder
|
||
`]:{display:"block",padding:0,lineHeight:De(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-search,
|
||
&${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%",alignItems:"center",padding:`0 ${De(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:De(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 ${De(r)}`,"&:after":{display:"none"}}}}}}}function Lit(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[nF(e),nF(qn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${De(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()}}}},nF(qn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const $it=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:_,colorPrimary:b,controlOutline:S}=e,C=s*2,E=r*2,w=Math.min(i-C,i-E),x=Math.min(o-C,o-E),T=Math.min(a-C,a-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:T,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:_,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}},Ixe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${De(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 ${De(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},_ie=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ixe(e,t))}),Fit=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ixe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),_ie(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),_ie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${De(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Nxe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${De(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}}}},yie=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Nxe(e,t))}),Bit=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Nxe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),yie(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),yie(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:`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Uit=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${De(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${De(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),jit=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Fit(e)),Bit(e)),Uit(e))}),Hit=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"}}}},zit=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"}}}},Vit=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Hit(e)),zit(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},nc),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},nc),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},O_()),{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`,[i]:{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}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${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,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Git=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Vit(e),Lit(e),kit(e),Ait(e),{[`${t}-rtl`]:{direction:"rtl"}},N_(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ZY=dr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=qn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Git(r),jit(r)]},$it,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Wit={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"},Yit=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Wit}))},mh=m.forwardRef(Yit),qit={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"},Kit=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:qit}))},Mx=m.forwardRef(Kit),Qit={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"},Xit=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Qit}))},JY=m.forwardRef(Xit);function FD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=n??m.createElement(mf,null),h=_=>t===null&&!s&&!d?null:m.createElement(m.Fragment,null,c!==!1&&_,s&&u);let g=null;if(t!==void 0)g=h(t);else if(o)g=h(m.createElement(rf,{spin:!0}));else{const _=`${l}-suffix`;g=b=>{let{open:S,showSearch:C}=b;return h(S&&C?m.createElement(JY,{className:_}):m.createElement(Mx,{className:_}))}}let v=null;r!==void 0?v=r:a?v=m.createElement(mh,null):v=null;let y=null;return i!==void 0?y=i:y=m.createElement(ou,null),{clearIcon:p,suffixIcon:g,itemIcon:v,removeIcon:y}}function eq(e,t){return t!==void 0?t:e!==null}var Zit=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Mxe="SECRET_COMBOBOX_MODE_DO_NOT_USE",Jit=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:p,disabled:h,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:_,popupMatchSelectWidth:b,direction:S,style:C,allowClear:E,variant:w,dropdownStyle:x,transitionName:T,tagRender:R,maxCount:N,prefix:I}=e,P=Zit(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:F,renderEmpty:L,direction:B,virtual:U,popupMatchSelectWidth:G,popupOverflow:V,select:W}=m.useContext(nn),[,$]=Ea(),H=f??($==null?void 0:$.controlHeight),K=F("select",r),re=F(),Q=S??B,{compactSize:A,compactItemClassnames:k}=pd(K,Q),[Z,ne]=Fp("select",w,i),oe=oi(K),[ae,ue,fe]=ZY(K,oe),se=m.useMemo(()=>{const{mode:qe}=e;if(qe!=="combobox")return qe===Mxe?"combobox":qe},[e.mode]),pe=se==="multiple"||se==="tags",_e=eq(e.suffixIcon,e.showArrow),Te=(n=b??_)!==null&&n!==void 0?n:G,{status:xe,hasFeedback:ge,isFormItemInput:Ce,feedbackIcon:ye}=m.useContext(Qo),be=$p(xe,v);let Ee;g!==void 0?Ee=g:se==="combobox"?Ee=null:Ee=(L==null?void 0:L("Select"))||m.createElement($D,{componentName:"Select"});const{suffixIcon:Me,itemIcon:X,removeIcon:Y,clearIcon:J}=FD(Object.assign(Object.assign({},P),{multiple:pe,hasFeedback:ge,feedbackIcon:ye,showSuffixIcon:_e,prefixCls:K,componentName:"Select"})),he=E===!0?{clearIcon:J}:E,ve=ur(P,["suffixIcon","itemIcon"]),ce=Re(l||c,{[`${K}-dropdown-${Q}`]:Q==="rtl"},a,fe,oe,ue),$e=Zo(qe=>{var Ge;return(Ge=p??A)!==null&&Ge!==void 0?Ge:qe}),Be=m.useContext(No),me=h??Be,Fe=Re({[`${K}-lg`]:$e==="large",[`${K}-sm`]:$e==="small",[`${K}-rtl`]:Q==="rtl",[`${K}-${Z}`]:ne,[`${K}-in-form-item`]:Ce},id(K,be,ge),k,W==null?void 0:W.className,o,a,fe,oe,ue),Xe=m.useMemo(()=>d!==void 0?d:Q==="rtl"?"bottomRight":"bottomLeft",[d,Q]),[ze]=au("SelectLike",x==null?void 0:x.zIndex);return ae(m.createElement(QY,Object.assign({ref:t,virtual:U,showSearch:W==null?void 0:W.showSearch},ve,{style:Object.assign(Object.assign({},W==null?void 0:W.style),C),dropdownMatchSelectWidth:Te,transitionName:Pa(re,"slide-up",T),builtinPlacements:XY(y,V),listHeight:u,listItemHeight:H,mode:se,prefixCls:K,placement:Xe,direction:Q,prefix:I,suffixIcon:Me,menuItemSelectedIcon:X,removeIcon:Y,allowClear:he,notFoundContent:Ee,className:Fe,getPopupContainer:s||D,dropdownClassName:ce,disabled:me,dropdownStyle:Object.assign(Object.assign({},x),{zIndex:ze}),maxCount:pe?N:void 0,tagRender:pe?R:void 0})))},md=m.forwardRef(Jit),eot=Fh(md,"dropdownAlign");md.SECRET_COMBOBOX_MODE_DO_NOT_USE=Mxe;md.Option=YY;md.OptGroup=WY;md._InternalPanelDoNotUseOrYouWillBeFired=eot;const c0=["xxl","xl","lg","md","sm","xs"],tot=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)`}),not=e=>{const t=e,n=[].concat(c0).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i<n.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function Axe(){const[,e]=Ea(),t=tot(not(e));return de.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Pxe(){const[,e]=m.useReducer(t=>t+1,0);return e}function rot(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=Pxe(),r=Axe();return gr(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const v9=m.createContext({}),iot=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:g,lineType:v}=e,y=(_,b,S)=>({width:_,height:_,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${De(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,c,f)),{"&-lg":Object.assign({},y(s,u,p)),"&-sm":Object.assign({},y(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},oot=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},aot=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+a)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},Dxe=dr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=qn(e,{avatarBg:n,avatarColor:t});return[iot(r),oot(r)]},aot);var sot=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lot=(e,t)=>{const[n,r]=m.useState(1),[i,o]=m.useState(!1),[a,s]=m.useState(!0),l=m.useRef(null),c=m.useRef(null),u=Sa(t,l),{getPrefixCls:d,avatar:f}=m.useContext(nn),p=m.useContext(v9),h=()=>{if(!c.current||!l.current)return;const k=c.current.offsetWidth,Z=l.current.offsetWidth;if(k!==0&&Z!==0){const{gap:ne=4}=e;ne*2<Z&&r(Z-ne*2<k?(Z-ne*2)/k:1)}};m.useEffect(()=>{o(!0)},[]),m.useEffect(()=>{s(!0),r(1)},[e.src]),m.useEffect(h,[e.gap]);const g=()=>{const{onError:k}=e;(k==null?void 0:k())!==!1&&s(!1)},{prefixCls:v,shape:y,size:_,src:b,srcSet:S,icon:C,className:E,rootClassName:w,alt:x,draggable:T,children:R,crossOrigin:N}=e,I=sot(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=Zo(k=>{var Z,ne;return(ne=(Z=_??(p==null?void 0:p.size))!==null&&Z!==void 0?Z:k)!==null&&ne!==void 0?ne:"default"}),D=Object.keys(typeof P=="object"?P||{}:{}).some(k=>["xs","sm","md","lg","xl","xxl"].includes(k)),F=rot(D),L=m.useMemo(()=>{if(typeof P!="object")return{};const k=c0.find(ne=>F[ne]),Z=P[k];return Z?{width:Z,height:Z,fontSize:Z&&(C||R)?Z/2:18}:{}},[F,P]),B=d("avatar",v),U=oi(B),[G,V,W]=Dxe(B,U),$=Re({[`${B}-lg`]:P==="large",[`${B}-sm`]:P==="small"}),H=m.isValidElement(b),K=y||(p==null?void 0:p.shape)||"circle",re=Re(B,$,f==null?void 0:f.className,`${B}-${K}`,{[`${B}-image`]:H||b&&a,[`${B}-icon`]:!!C},W,U,E,w,V),Q=typeof P=="number"?{width:P,height:P,fontSize:C?P/2:18}:{};let A;if(typeof b=="string"&&a)A=m.createElement("img",{src:b,draggable:T,srcSet:S,onError:g,alt:x,crossOrigin:N});else if(H)A=b;else if(C)A=C;else if(i||n!==1){const k=`scale(${n})`,Z={msTransform:k,WebkitTransform:k,transform:k};A=m.createElement(hs,{onResize:h},m.createElement("span",{className:`${B}-string`,ref:c,style:Object.assign({},Z)},R))}else A=m.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:c},R);return delete I.onError,delete I.gap,G(m.createElement("span",Object.assign({},I,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q),L),f==null?void 0:f.style),I.style),className:re,ref:u}),A))},kxe=m.forwardRef(lot),u0=e=>e?typeof e=="function"?e():e:null;function tq(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return m.createElement("div",{className:Re("".concat(n,"-content"),a),style:s},m.createElement("div",{className:Re("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var gy={shiftX:64,adjustY:1},vy={adjustX:1,shiftY:!0},Sc=[0,0],cot={left:{points:["cr","cl"],overflow:vy,offset:[-4,0],targetOffset:Sc},right:{points:["cl","cr"],overflow:vy,offset:[4,0],targetOffset:Sc},top:{points:["bc","tc"],overflow:gy,offset:[0,-4],targetOffset:Sc},bottom:{points:["tc","bc"],overflow:gy,offset:[0,4],targetOffset:Sc},topLeft:{points:["bl","tl"],overflow:gy,offset:[0,-4],targetOffset:Sc},leftTop:{points:["tr","tl"],overflow:vy,offset:[-4,0],targetOffset:Sc},topRight:{points:["br","tr"],overflow:gy,offset:[0,-4],targetOffset:Sc},rightTop:{points:["tl","tr"],overflow:vy,offset:[4,0],targetOffset:Sc},bottomRight:{points:["tr","br"],overflow:gy,offset:[0,4],targetOffset:Sc},rightBottom:{points:["bl","br"],overflow:vy,offset:[4,0],targetOffset:Sc},bottomLeft:{points:["tl","bl"],overflow:gy,offset:[0,4],targetOffset:Sc},leftBottom:{points:["br","bl"],overflow:vy,offset:[-4,0],targetOffset:Sc}},uot=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],dot=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,_=t.motion,b=t.placement,S=b===void 0?"right":b,C=t.align,E=C===void 0?{}:C,w=t.destroyTooltipOnHide,x=w===void 0?!1:w,T=t.defaultVisible,R=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,P=t.id,D=t.showArrow,F=D===void 0?!0:D,L=t.classNames,B=t.styles,U=It(t,uot),G=m.useRef(null);m.useImperativeHandle(n,function(){return G.current});var V=q({},U);"visible"in t&&(V.popupVisible=t.visible);var W=function(){return m.createElement(tq,{key:"content",prefixCls:f,id:P,bodyClassName:L==null?void 0:L.body,overlayInnerStyle:q(q({},N),B==null?void 0:B.body)},I)};return m.createElement(Nx,Qe({popupClassName:Re(r,L==null?void 0:L.root),prefixCls:f,popup:W,action:o,builtinPlacements:cot,popupPlacement:S,ref:G,popupAlign:E,getPopupContainer:R,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:_,defaultPopupVisible:T,autoDestroy:x,mouseLeaveDelay:c,popupStyle:q(q({},u),B==null?void 0:B.root),mouseEnterDelay:s,arrow:F},V),p)};const fot=m.forwardRef(dot);function BD(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,f=u,p=2*i-s,h=l,g=2*i-o,v=a,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),b=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${h} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:b}}const Lxe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${De(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},$xe=8;function UD(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?$xe:r}}function nO(e,t){return e?t:{}}function nq(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={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"},Lxe(e,t,i)),{"&:before":{background:t}})]},nO(!!l.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${De(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),nO(!!l.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${De(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),nO(!!l.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}})),nO(!!l.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 pot(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=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 a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const bie={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"]}},mot={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"]}},hot=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Fxe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(bie).forEach(c=>{const u=r&&mot[c]||bie[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,hot.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const f=UD({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal*2-s;break}d.overflow=pot(c,f,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const got=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,h=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,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":o,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${De(e.calc(u).div(2).equal())} ${De(d)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,$xe)}},[`${n}-content`]:{position:"relative"}}),wY(e,(v,y)=>{let{darkColor:_}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:_},[`${n}-arrow`]:{"--antd-arrow-background-color":_}}}})),{"&-rtl":{direction:"rtl"}})},nq(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vot=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},UD({contentRadius:e.borderRadius,limitVerticalRadius:!0})),BD(qn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Bxe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return dr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=qn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[got(s),oS(r,"zoom-big-fast")]},vot,{resetStyle:!1,injectStyle:t})(e)},_ot=Qv.map(e=>`${e}-inverse`);function rq(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(at(_ot),at(Qv)).includes(e):Qv.includes(e)}function Uxe(e,t){const n=rq(t),r=Re({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const yot=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=m.useContext(nn),l=s("tooltip",t),[c,u,d]=Bxe(l),f=Uxe(l,o),p=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),g=Re(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(m.createElement("div",{className:g,style:p},m.createElement("div",{className:`${l}-arrow`}),m.createElement(tq,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),i)))};var bot=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Sot=m.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:d,overlayInnerStyle:f,children:p,afterOpenChange:h,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:y=!0,title:_,overlay:b,builtinPlacements:S,arrowPointAtCenter:C=!1,autoAdjustOverflow:E=!0}=e,w=!!y,[,x]=Ea(),{getPopupContainer:T,getPrefixCls:R,direction:N,tooltip:I}=m.useContext(nn),P=R_(),D=m.useRef(null),F=()=>{var ve;(ve=D.current)===null||ve===void 0||ve.forceAlign()};m.useImperativeHandle(t,()=>{var ve;return{forceAlign:F,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(ve=D.current)===null||ve===void 0?void 0:ve.nativeElement}});const[L,B]=Fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),U=!_&&!b&&_!==0,G=ve=>{var ce,$e;B(U?!1:ve),U||((ce=e.onOpenChange)===null||ce===void 0||ce.call(e,ve),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,ve))},V=m.useMemo(()=>{var ve,ce;let $e=C;return typeof y=="object"&&($e=(ce=(ve=y.pointAtCenter)!==null&&ve!==void 0?ve:y.arrowPointAtCenter)!==null&&ce!==void 0?ce:C),S||Fxe({arrowPointAtCenter:$e,autoAdjustOverflow:E,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[C,y,S,x]),W=m.useMemo(()=>_===0?_:b||_||"",[b,_]),$=m.createElement(rd,{space:!0},typeof W=="function"?W():W),{getPopupContainer:H,placement:K="top",mouseEnterDelay:re=.1,mouseLeaveDelay:Q=.1,overlayStyle:A,rootClassName:k,overlayClassName:Z,styles:ne,classNames:oe}=e,ae=bot(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),ue=R("tooltip",l),fe=R(),se=e["data-popover-inject"];let pe=L;!("open"in e)&&!("visible"in e)&&U&&(pe=!1);const _e=m.isValidElement(p)&&!J1e(p)?p:m.createElement("span",null,p),Te=_e.props,xe=!Te.className||typeof Te.className=="string"?Re(Te.className,c||`${ue}-open`):Te.className,[ge,Ce,ye]=Bxe(ue,!se),be=Uxe(ue,d),Ee=be.arrowStyle,Me=Re(Z,{[`${ue}-rtl`]:N==="rtl"},be.className,k,Ce,ye,I==null?void 0:I.className,(i=I==null?void 0:I.classNames)===null||i===void 0?void 0:i.root,oe==null?void 0:oe.root),X=Re((o=I==null?void 0:I.classNames)===null||o===void 0?void 0:o.body,oe==null?void 0:oe.body),[Y,J]=au("Tooltip",ae.zIndex),he=m.createElement(fot,Object.assign({},ae,{zIndex:Y,showArrow:w,placement:K,mouseEnterDelay:re,mouseLeaveDelay:Q,prefixCls:ue,classNames:{root:Me,body:X},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ee),(a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.root),I==null?void 0:I.style),A),ne==null?void 0:ne.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=I==null?void 0:I.styles)===null||s===void 0?void 0:s.body),f),ne==null?void 0:ne.body),be.overlayStyle)},getTooltipContainer:H||u||T,ref:D,builtinPlacements:V,overlay:$,visible:pe,onVisibleChange:G,afterVisibleChange:h??g,arrowContent:m.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:Pa(fe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),pe?Ko(_e,{className:xe}):_e);return ge(m.createElement(bx.Provider,{value:J},he))}),rc=Sot;rc._InternalPanelDoNotUseOrYouWillBeFired=yot;const Eot=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},wr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},nq(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Cot=e=>{const{componentCls:t}=e;return{[t]:Qv.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},wot=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,g=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},BD(e)),UD({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${p}px ${g}px ${h}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${d}px ${g}px`:0})},jxe=dr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=qn(e,{popoverBg:t,popoverColor:n});return[Eot(r),Cot(r),oS(r,"zoom-big")]},wot,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var xot=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Hxe=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:m.createElement(m.Fragment,null,t&&m.createElement("div",{className:`${r}-title`},t),n&&m.createElement("div",{className:`${r}-inner-content`},n))},Tot=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:s,children:l}=e,c=u0(a),u=u0(s),d=Re(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return m.createElement("div",{className:d,style:i},m.createElement("div",{className:`${n}-arrow`}),m.createElement(tq,Object.assign({},e,{className:t,prefixCls:n}),l||m.createElement(Hxe,{prefixCls:n,title:c,content:u})))},zxe=e=>{const{prefixCls:t,className:n}=e,r=xot(e,["prefixCls","className"]),{getPrefixCls:i}=m.useContext(nn),o=i("popover",t),[a,s,l]=jxe(o);return a(m.createElement(Tot,Object.assign({},r,{prefixCls:o,hashId:s,className:Re(n,l)})))};var Rot=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Oot=m.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:d,placement:f="top",trigger:p="hover",children:h,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:_={},styles:b,classNames:S}=e,C=Rot(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:E,getPrefixCls:w}=m.useContext(nn),x=w("popover",l),[T,R,N]=jxe(x),I=w(),P=Re(d,R,N,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.root,S==null?void 0:S.root),D=Re((r=E==null?void 0:E.classNames)===null||r===void 0?void 0:r.body,S==null?void 0:S.body),[F,L]=Fn(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),B=($,H)=>{L($,!0),y==null||y($,H)},U=$=>{$.keyCode===gt.ESC&&B(!1,$)},G=$=>{B($)},V=u0(c),W=u0(u);return T(m.createElement(rc,Object.assign({placement:f,trigger:p,mouseEnterDelay:g,mouseLeaveDelay:v},C,{prefixCls:x,classNames:{root:P,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=E==null?void 0:E.styles)===null||a===void 0?void 0:a.root),E==null?void 0:E.style),_),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=E==null?void 0:E.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},ref:t,open:F,onOpenChange:G,overlay:V||W?m.createElement(Hxe,{prefixCls:x,title:V,content:W}):null,transitionName:Pa(I,"zoom-big",C.transitionName),"data-popover-inject":!0}),Ko(h,{onKeyDown:$=>{var H,K;m.isValidElement(h)&&((K=h==null?void 0:(H=h.props).onKeyDown)===null||K===void 0||K.call(H,$)),U($)}})))}),Xc=Oot;Xc._InternalPanelDoNotUseOrYouWillBeFired=zxe;const Sie=e=>{const{size:t,shape:n}=m.useContext(v9),r=m.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return m.createElement(v9.Provider,{value:r},e.children)},Iot=e=>{var t,n,r,i;const{getPrefixCls:o,direction:a}=m.useContext(nn),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:f,size:p,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:_}=e,b=o("avatar",s),S=`${b}-group`,C=oi(b),[E,w,x]=Dxe(b,C),T=Re(S,{[`${S}-rtl`]:a==="rtl"},x,C,l,c,w),R=_a(y).map((P,D)=>Ko(P,{key:`avatar-key-${D}`})),N=(_==null?void 0:_.count)||d,I=R.length;if(N&&N<I){const P=R.slice(0,N),D=R.slice(N,I),F=(_==null?void 0:_.style)||f,L=((t=_==null?void 0:_.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",B=((n=_==null?void 0:_.popover)===null||n===void 0?void 0:n.placement)||g||"top",U=Object.assign(Object.assign({content:D},_==null?void 0:_.popover),{classNames:{root:Re(`${S}-popover`,(i=(r=_==null?void 0:_.popover)===null||r===void 0?void 0:r.classNames)===null||i===void 0?void 0:i.root)},placement:B,trigger:L});return P.push(m.createElement(Xc,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},U),m.createElement(kxe,{style:F},`+${I-N}`))),E(m.createElement(Sie,{shape:h,size:p},m.createElement("div",{className:T,style:u},P)))}return E(m.createElement(Sie,{shape:h,size:p},m.createElement("div",{className:T,style:u},R)))},Bh=kxe;Bh.Group=Iot;const Not=new ir("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Mot=new ir("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Aot=new ir("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Pot=new ir("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Dot=new ir("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),kot=new ir("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Lot=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:o,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,h=`${r}-scroll-number`,g=wY(e,(v,y)=>{let{darkColor:_}=y;return{[`&${t} ${t}-color-${v}`]:{background:_,[`&:not(${t}-count)`]:{color:_},"a:hover &":{background:_}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:o,lineHeight:De(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${De(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:De(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${De(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${De(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:kot,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Not,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Mot,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Aot,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Pot,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Dot,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Vxe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,o=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return qn(e,{badgeFontHeight:o,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Gxe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},$ot=dr("Badge",e=>{const t=Vxe(e);return Lot(t)},Gxe),Fot=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=wY(e,(c,u)=>{let{darkColor:d}=u;return{[`&${a}-color-${c}`]:{background:d,color:d}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"absolute",top:r,padding:`0 ${De(e.paddingXS)}`,color:e.colorPrimary,lineHeight:De(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${De(o(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Bot=dr(["Badge","Ribbon"],e=>{const t=Vxe(e);return Fot(t)},Gxe),Uot=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=m.useContext(nn),d=c("ribbon",n),f=`${d}-wrapper`,[p,h,g]=Bot(d,f),v=rq(i,!1),y=Re(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${i}`]:v},t),_={},b={};return i&&!v&&(_.background=i,b.color=i),p(m.createElement("div",{className:Re(f,l,h,g)},o,m.createElement("div",{className:Re(y,h),style:Object.assign(Object.assign({},_),r)},m.createElement("span",{className:`${d}-text`},a),m.createElement("div",{className:`${d}-corner`,style:b}))))},Eie=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),m.createElement("span",{style:o,className:Re(`${t}-only-unit`,{current:r})},n)};function jot(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const Hot=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[a,s]=m.useState(i),[l,c]=m.useState(o),u=()=>{s(i),c(o)};m.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[i]);let d,f;if(a===i||Number.isNaN(i)||Number.isNaN(a))d=[m.createElement(Eie,Object.assign({},e,{key:i,current:!0}))],f={transition:"none"};else{d=[];const p=i+10,h=[];for(let _=i;_<=p;_+=1)h.push(_);const g=l<o?1:-1,v=h.findIndex(_=>_%10===a);d=(g<0?h.slice(0,v+1):h.slice(v)).map((_,b)=>{const S=_%10;return m.createElement(Eie,Object.assign({},e,{key:_,value:S,offset:g<0?b-v:b,current:b===v}))}),f={transform:`translateY(${-jot(a,i,g)}00%)`}}return m.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)};var zot=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Vot=m.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:o,style:a,title:s,show:l,component:c="sup",children:u}=e,d=zot(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=m.useContext(nn),p=f("scroll-number",n),h=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:Re(p,i,o),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=m.createElement("bdi",null,v.map((y,_)=>m.createElement(Hot,{prefixCls:p,count:Number(r),value:y,key:v.length-_})))}return a!=null&&a.borderColor&&(h.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Ko(u,v=>({className:Re(`${p}-custom-component`,v==null?void 0:v.className,o)})):m.createElement(c,Object.assign({},h,{ref:t}),g)});var Got=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Wot=m.forwardRef((e,t)=>{var n,r,i,o,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:p=null,overflowCount:h=99,dot:g=!1,size:v="default",title:y,offset:_,style:b,className:S,rootClassName:C,classNames:E,styles:w,showZero:x=!1}=e,T=Got(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:R,direction:N,badge:I}=m.useContext(nn),P=R("badge",s),[D,F,L]=$ot(P),B=p>h?`${h}+`:p,U=B==="0"||B===0,G=p===null||U&&!x,V=(u!=null||f!=null)&&G,W=g&&!U,$=W?"":B,H=m.useMemo(()=>($==null||$===""||U&&!x)&&!W,[$,U,x,W]),K=m.useRef(p);H||(K.current=p);const re=K.current,Q=m.useRef($);H||(Q.current=$);const A=Q.current,k=m.useRef(W);H||(k.current=W);const Z=m.useMemo(()=>{if(!_)return Object.assign(Object.assign({},I==null?void 0:I.style),b);const _e={marginTop:_[1]};return N==="rtl"?_e.left=parseInt(_[0],10):_e.right=-parseInt(_[0],10),Object.assign(Object.assign(Object.assign({},_e),I==null?void 0:I.style),b)},[N,_,b,I==null?void 0:I.style]),ne=y??(typeof re=="string"||typeof re=="number"?re:void 0),oe=H||!d?null:m.createElement("span",{className:`${P}-status-text`},d),ae=!re||typeof re!="object"?void 0:Ko(re,_e=>({style:Object.assign(Object.assign({},Z),_e.style)})),ue=rq(f,!1),fe=Re(E==null?void 0:E.indicator,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:V,[`${P}-status-${u}`]:!!u,[`${P}-color-${f}`]:ue}),se={};f&&!ue&&(se.color=f,se.background=f);const pe=Re(P,{[`${P}-status`]:V,[`${P}-not-a-wrapper`]:!c,[`${P}-rtl`]:N==="rtl"},S,C,I==null?void 0:I.className,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,F,L);if(!c&&V){const _e=Z.color;return D(m.createElement("span",Object.assign({},T,{className:pe,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.root),(i=I==null?void 0:I.styles)===null||i===void 0?void 0:i.root),Z)}),m.createElement("span",{className:fe,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(o=I==null?void 0:I.styles)===null||o===void 0?void 0:o.indicator),se)}),d&&m.createElement("span",{style:{color:_e},className:`${P}-status-text`},d)))}return D(m.createElement("span",Object.assign({ref:t},T,{className:pe,style:Object.assign(Object.assign({},(a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.root),w==null?void 0:w.root)}),c,m.createElement(qo,{visible:!H,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},_e=>{let{className:Te}=_e;var xe,ge;const Ce=R("scroll-number",l),ye=k.current,be=Re(E==null?void 0:E.indicator,(xe=I==null?void 0:I.classNames)===null||xe===void 0?void 0:xe.indicator,{[`${P}-dot`]:ye,[`${P}-count`]:!ye,[`${P}-count-sm`]:v==="small",[`${P}-multiple-words`]:!ye&&A&&A.toString().length>1,[`${P}-status-${u}`]:!!u,[`${P}-color-${f}`]:ue});let Ee=Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(ge=I==null?void 0:I.styles)===null||ge===void 0?void 0:ge.indicator),Z);return f&&!ue&&(Ee=Ee||{},Ee.background=f),m.createElement(Vot,{prefixCls:Ce,show:!H,motionClassName:Te,className:be,count:A,title:ne,style:Ee,key:"scrollNumber"},ae)}),oe))}),nl=Wot;nl.Ribbon=Uot;var Yot=gt.ESC,qot=gt.TAB;function Kot(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=m.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.call(d),r==null||r(!1)}},l=function(){var d;return(d=o.current)!==null&&d!==void 0&&d.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case Yot:s();break;case qot:{var f=!1;a.current||(f=l()),f?d.preventDefault():s();break}}};m.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&rr(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var Qot=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Sa(t,Lh(o));return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(i,"-arrow")}),de.cloneElement(o,{ref:Dp(o)?a:void 0}))}),_y={adjustX:1,adjustY:1},yy=[0,0],Xot={topLeft:{points:["bl","tl"],overflow:_y,offset:[0,-4],targetOffset:yy},top:{points:["bc","tc"],overflow:_y,offset:[0,-4],targetOffset:yy},topRight:{points:["br","tr"],overflow:_y,offset:[0,-4],targetOffset:yy},bottomLeft:{points:["tl","bl"],overflow:_y,offset:[0,4],targetOffset:yy},bottom:{points:["tc","bc"],overflow:_y,offset:[0,4],targetOffset:yy},bottomRight:{points:["tr","br"],overflow:_y,offset:[0,4],targetOffset:yy}},Zot=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Jot(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,f=e.placements,p=f===void 0?Xot:f,h=e.getPopupContainer,g=e.showAction,v=e.hideAction,y=e.overlayClassName,_=e.overlayStyle,b=e.visible,S=e.trigger,C=S===void 0?["hover"]:S,E=e.autoFocus,w=e.overlay,x=e.children,T=e.onVisibleChange,R=It(e,Zot),N=de.useState(),I=Oe(N,2),P=I[0],D=I[1],F="visible"in e?b:P,L=de.useRef(null),B=de.useRef(null),U=de.useRef(null);de.useImperativeHandle(t,function(){return L.current});var G=function(k){D(k),T==null||T(k)};Kot({visible:F,triggerRef:U,onVisibleChange:G,autoFocus:E,overlayRef:B});var V=function(k){var Z=e.onOverlayClick;D(!1),Z&&Z(k)},W=function(){return de.createElement(Qot,{ref:B,overlay:w,prefixCls:a,arrow:i})},$=function(){return typeof w=="function"?W:W()},H=function(){var k=e.minOverlayWidthMatchTrigger,Z=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?k:!Z},K=function(){var k=e.openClassName;return k!==void 0?k:"".concat(a,"-open")},re=de.cloneElement(x,{className:Re((n=x.props)===null||n===void 0?void 0:n.className,F&&K()),ref:Dp(x)?Sa(U,Lh(x)):void 0}),Q=v;return!Q&&C.indexOf("contextMenu")!==-1&&(Q=["click"]),de.createElement(Nx,Qe({builtinPlacements:p},R,{prefixCls:a,ref:L,popupClassName:Re(y,ie({},"".concat(a,"-show-arrow"),i)),popupStyle:_,action:C,showAction:g,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:F,stretch:H()?"minWidth":"",popup:$(),onPopupVisibleChange:G,onPopupClick:V,getPopupContainer:h}),re)}const Wxe=de.forwardRef(Jot),eat=e=>typeof e!="object"&&typeof e!="function"||e===null;var Yxe=m.createContext(null);function qxe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Kxe(e){var t=m.useContext(Yxe);return qxe(t,e)}var tat=["children","locked"],od=m.createContext(null);function nat(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function ow(e){var t=e.children,n=e.locked,r=It(e,tat),i=m.useContext(od),o=zv(function(){return nat(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!qv(a[1],s[1],!0))});return m.createElement(od.Provider,{value:o},t)}var rat=[],Qxe=m.createContext(null);function jD(){return m.useContext(Qxe)}var Xxe=m.createContext(rat);function lS(e){var t=m.useContext(Xxe);return m.useMemo(function(){return e!==void 0?[].concat(at(t),[e]):t},[t,e])}var Zxe=m.createContext(null),iq=m.createContext({});function Cie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ex(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function iat(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=at(e.querySelectorAll("*")).filter(function(r){return Cie(r,t)});return Cie(e,t)&&n.unshift(e),n}var _9=gt.LEFT,y9=gt.RIGHT,b9=gt.UP,nN=gt.DOWN,rN=gt.ENTER,Jxe=gt.ESC,TE=gt.HOME,RE=gt.END,wie=[b9,nN,_9,y9];function oat(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===rN)return{inlineTrigger:!0};var c=ie(ie({},b9,o),nN,a),u=ie(ie(ie(ie({},_9,n?a:o),y9,n?o:a),nN,s),rN,s),d=ie(ie(ie(ie(ie(ie({},b9,o),nN,a),rN,s),Jxe,l),_9,n?s:l),y9,n?l:s),f={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},p=(i=f["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(p){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function aat(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function sat(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function oq(e,t){var n=iat(e,!0);return n.filter(function(r){return t.has(r)})}function xie(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=oq(e,t),o=i.length,a=i.findIndex(function(s){return n===s});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var S9=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(qxe(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function lat(e,t,n,r,i,o,a,s,l,c){var u=m.useRef(),d=m.useRef();d.current=t;var f=function(){rr.cancel(u.current)};return m.useEffect(function(){return function(){f()}},[]),function(p){var h=p.which;if([].concat(wie,[rN,Jxe,TE,RE]).includes(h)){var g=o(),v=S9(g,r),y=v,_=y.elements,b=y.key2element,S=y.element2key,C=b.get(t),E=sat(C,_),w=S.get(E),x=oat(e,a(w,!0).length===1,n,h);if(!x&&h!==TE&&h!==RE)return;(wie.includes(h)||[TE,RE].includes(h))&&p.preventDefault();var T=function(B){if(B){var U=B,G=B.querySelector("a");G!=null&&G.getAttribute("href")&&(U=G);var V=S.get(B);s(V),f(),u.current=rr(function(){d.current===V&&U.focus()})}};if([TE,RE].includes(h)||x.sibling||!E){var R;!E||e==="inline"?R=i.current:R=aat(E);var N,I=oq(R,_);h===TE?N=I[0]:h===RE?N=I[I.length-1]:N=xie(R,_,E,x.offset),T(N)}else if(x.inlineTrigger)l(w);else if(x.offset>0)l(w,!0),f(),u.current=rr(function(){v=S9(g,r);var L=E.getAttribute("aria-controls"),B=document.getElementById(L),U=xie(B,v.elements);T(U)},5);else if(x.offset<0){var P=a(w,!0),D=P[P.length-2],F=b.get(D);l(D,!1),T(F)}}c==null||c(p)}}function cat(e){Promise.resolve().then(e)}var aq="__RC_UTIL_PATH_SPLIT__",Tie=function(t){return t.join(aq)},uat=function(t){return t.split(aq)},E9="rc-menu-more";function dat(){var e=m.useState({}),t=Oe(e,2),n=t[1],r=m.useRef(new Map),i=m.useRef(new Map),o=m.useState([]),a=Oe(o,2),s=a[0],l=a[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({})},f=m.useCallback(function(b,S){var C=Tie(S);i.current.set(C,b),r.current.set(b,C),c.current+=1;var E=c.current;cat(function(){E===c.current&&d()})},[]),p=m.useCallback(function(b,S){var C=Tie(S);i.current.delete(C),r.current.delete(b)},[]),h=m.useCallback(function(b){l(b)},[]),g=m.useCallback(function(b,S){var C=r.current.get(b)||"",E=uat(C);return S&&s.includes(E[0])&&E.unshift(E9),E},[s]),v=m.useCallback(function(b,S){return b.filter(function(C){return C!==void 0}).some(function(C){var E=g(C,!0);return E.includes(S)})},[g]),y=function(){var S=at(r.current.keys());return s.length&&S.push(E9),S},_=m.useCallback(function(b){var S="".concat(r.current.get(b)).concat(aq),C=new Set;return at(i.current.keys()).forEach(function(E){E.startsWith(S)&&C.add(i.current.get(E))}),C},[]);return m.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:_}}function mC(e){var t=m.useRef(e);t.current=e;var n=m.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var fat=Math.random().toFixed(5).toString().slice(2),Rie=0;function pat(e){var t=Fn(e,{value:e}),n=Oe(t,2),r=n[0],i=n[1];return m.useEffect(function(){Rie+=1;var o="".concat(fat,"-").concat(Rie);i("rc-menu-uuid-".concat(o))},[]),r}function eTe(e,t,n,r){var i=m.useContext(od),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function tTe(e){var t=m.useContext(od),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function nTe(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=m.createElement(t,q({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var mat=["item"];function vA(e){var t=e.item,n=It(e,mat);return Object.defineProperty(n,"item",{get:function(){return Wr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var hat=["title","attribute","elementRef"],gat=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],vat=["active"],_at=function(e){Es(n,e);var t=Vs(n);function n(){return Yr(this,n),t.apply(this,arguments)}return qr(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=It(i,hat),c=ur(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Wr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(Wu.Item,Qe({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),n}(m.Component),yat=m.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,p=e.onFocus,h=It(e,gat),g=Kxe(i),v=m.useContext(od),y=v.prefixCls,_=v.onItemClick,b=v.disabled,S=v.overflowDisabled,C=v.itemIcon,E=v.selectedKeys,w=v.onActive,x=m.useContext(iq),T=x._internalRenderMenuItem,R="".concat(y,"-item"),N=m.useRef(),I=m.useRef(),P=b||o,D=fd(t,I),F=lS(i),L=function(Z){return{key:i,keyPath:at(F).reverse(),item:N.current,domEvent:Z}},B=a||C,U=eTe(i,P,c,u),G=U.active,V=It(U,vat),W=E.includes(i),$=tTe(F.length),H=function(Z){if(!P){var ne=L(Z);d==null||d(vA(ne)),_(ne)}},K=function(Z){if(f==null||f(Z),Z.which===gt.ENTER){var ne=L(Z);d==null||d(vA(ne)),_(ne)}},re=function(Z){w(i),p==null||p(Z)},Q={};e.role==="option"&&(Q["aria-selected"]=W);var A=m.createElement(_at,Qe({ref:N,elementRef:D,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":S&&g?null:g},ur(h,["extra"]),V,Q,{component:"li","aria-disabled":o,style:q(q({},$),n),className:Re(R,ie(ie(ie({},"".concat(R,"-active"),G),"".concat(R,"-selected"),W),"".concat(R,"-disabled"),P),r),onClick:H,onKeyDown:K,onFocus:re}),s,m.createElement(nTe,{props:q(q({},e),{},{isSelected:W}),icon:B}));return T&&(A=T(A,e,{selected:W})),A});function bat(e,t){var n=e.eventKey,r=jD(),i=lS(n);return m.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:m.createElement(yat,Qe({},e,{ref:t}))}const Ax=m.forwardRef(bat);var Sat=["className","children"],Eat=function(t,n){var r=t.className,i=t.children,o=It(t,Sat),a=m.useContext(od),s=a.prefixCls,l=a.mode,c=a.rtl;return m.createElement("ul",Qe({className:Re(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},sq=m.forwardRef(Eat);sq.displayName="SubMenuList";function lq(e,t){return _a(e).map(function(n,r){if(m.isValidElement(n)){var i,o,a=n.key,s=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,l=s==null;l&&(s="tmp_key-".concat([].concat(at(t),[r]).join("-")));var c={key:s,eventKey:s};return m.cloneElement(n,c)}return n})}var us={adjustX:1,adjustY:1},Cat={topLeft:{points:["bl","tl"],overflow:us},topRight:{points:["br","tr"],overflow:us},bottomLeft:{points:["tl","bl"],overflow:us},bottomRight:{points:["tr","br"],overflow:us},leftTop:{points:["tr","tl"],overflow:us},leftBottom:{points:["br","bl"],overflow:us},rightTop:{points:["tl","tr"],overflow:us},rightBottom:{points:["bl","br"],overflow:us}},wat={topLeft:{points:["bl","tl"],overflow:us},topRight:{points:["br","tr"],overflow:us},bottomLeft:{points:["tl","bl"],overflow:us},bottomRight:{points:["tr","br"],overflow:us},rightTop:{points:["tr","tl"],overflow:us},rightBottom:{points:["br","bl"],overflow:us},leftTop:{points:["tl","tr"],overflow:us},leftBottom:{points:["bl","br"],overflow:us}};function rTe(e,t,n){if(t)return t;if(n)return n[e]||n.other}var xat={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Tat(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=m.useContext(od),f=d.getPopupContainer,p=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,y=d.triggerSubMenuAction,_=d.forceSubMenuRender,b=d.rootClassName,S=d.motion,C=d.defaultMotions,E=m.useState(!1),w=Oe(E,2),x=w[0],T=w[1],R=q(p?q({},wat):q({},Cat),v),N=xat[c],I=rTe(c,S,C),P=m.useRef(I);c!=="inline"&&(P.current=I);var D=q(q({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=m.useRef();return m.useEffect(function(){return F.current=rr(function(){T(n)}),function(){rr.cancel(F.current)}},[n]),m.createElement(Nx,{prefixCls:t,popupClassName:Re("".concat(t,"-popup"),ie({},"".concat(t,"-rtl"),p),a,b),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:R,popupPlacement:N,popupVisible:x,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[y],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:_,popupMotion:D,fresh:!0},r)}function Rat(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=m.useContext(od),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=m.useRef(!1);f.current=d===o;var p=m.useState(!f.current),h=Oe(p,2),g=h[0],v=h[1],y=f.current?n:!1;m.useEffect(function(){f.current&&v(!1)},[d]);var _=q({},rTe(o,c,u));r.length>1&&(_.motionAppear=!1);var b=_.onVisibleChanged;return _.onVisibleChanged=function(S){return!f.current&&!S&&v(!0),b==null?void 0:b(S)},g?null:m.createElement(ow,{mode:o,locked:!f.current},m.createElement(qo,Qe({visible:y},_,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var C=S.className,E=S.style;return m.createElement(sq,{id:t,className:C,style:E},i)}))}var Oat=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Iat=["active"],Nat=m.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,h=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,_=e.onTitleMouseEnter,b=e.onTitleMouseLeave,S=It(e,Oat),C=Kxe(o),E=m.useContext(od),w=E.prefixCls,x=E.mode,T=E.openKeys,R=E.disabled,N=E.overflowDisabled,I=E.activeKey,P=E.selectedKeys,D=E.itemIcon,F=E.expandIcon,L=E.onItemClick,B=E.onOpenChange,U=E.onActive,G=m.useContext(iq),V=G._internalRenderSubMenuItem,W=m.useContext(Zxe),$=W.isSubPathKey,H=lS(),K="".concat(w,"-submenu"),re=R||a,Q=m.useRef(),A=m.useRef(),k=c??D,Z=u??F,ne=T.includes(o),oe=!N&&ne,ae=$(P,o),ue=eTe(o,re,_,b),fe=ue.active,se=It(ue,Iat),pe=m.useState(!1),_e=Oe(pe,2),Te=_e[0],xe=_e[1],ge=function(Fe){re||xe(Fe)},Ce=function(Fe){ge(!0),g==null||g({key:o,domEvent:Fe})},ye=function(Fe){ge(!1),v==null||v({key:o,domEvent:Fe})},be=m.useMemo(function(){return fe||(x!=="inline"?Te||$([I],o):!1)},[x,fe,I,Te,o,$]),Ee=tTe(H.length),Me=function(Fe){re||(y==null||y({key:o,domEvent:Fe}),x==="inline"&&B(o,!ne))},X=mC(function(me){h==null||h(vA(me)),L(me)}),Y=function(Fe){x!=="inline"&&B(o,Fe)},J=function(){U(o)},he=C&&"".concat(C,"-popup"),ve=m.createElement("div",Qe({role:"menuitem",style:Ee,className:"".concat(K,"-title"),tabIndex:re?null:-1,ref:Q,title:typeof i=="string"?i:null,"data-menu-id":N&&C?null:C,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":he,"aria-disabled":re,onClick:Me,onFocus:J},se),i,m.createElement(nTe,{icon:x!=="horizontal"?Z:void 0,props:q(q({},e),{},{isOpen:oe,isSubMenu:!0})},m.createElement("i",{className:"".concat(K,"-arrow")}))),ce=m.useRef(x);if(x!=="inline"&&H.length>1?ce.current="vertical":ce.current=x,!N){var $e=ce.current;ve=m.createElement(Tat,{mode:$e,prefixCls:K,visible:!s&&oe&&x!=="inline",popupClassName:d,popupOffset:f,popupStyle:p,popup:m.createElement(ow,{mode:$e==="horizontal"?"vertical":$e},m.createElement(sq,{id:he,ref:A},l)),disabled:re,onVisibleChange:Y},ve)}var Be=m.createElement(Wu.Item,Qe({ref:t,role:"none"},S,{component:"li",style:n,className:Re(K,"".concat(K,"-").concat(x),r,ie(ie(ie(ie({},"".concat(K,"-open"),oe),"".concat(K,"-active"),be),"".concat(K,"-selected"),ae),"".concat(K,"-disabled"),re)),onMouseEnter:Ce,onMouseLeave:ye}),ve,!N&&m.createElement(Rat,{id:he,open:oe,keyPath:H},l));return V&&(Be=V(Be,e,{selected:ae,active:be,open:oe,disabled:re})),m.createElement(ow,{onItemClick:X,mode:x==="horizontal"?"vertical":x,itemIcon:k,expandIcon:Z},Be)}),HD=m.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=lS(n),o=lq(r,i),a=jD();m.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=m.createElement(Nat,Qe({ref:t},e),o),m.createElement(Xxe.Provider,{value:i},s)});function cq(e){var t=e.className,n=e.style,r=m.useContext(od),i=r.prefixCls,o=jD();return o?null:m.createElement("li",{role:"separator",className:Re("".concat(i,"-item-divider"),t),style:n})}var Mat=["className","title","eventKey","children"],Aat=m.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=It(e,Mat),a=m.useContext(od),s=a.prefixCls,l="".concat(s,"-item-group");return m.createElement("li",Qe({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:Re(l,n)}),m.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),m.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),uq=m.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=lS(n),o=lq(r,i),a=jD();return a?o:m.createElement(Aat,Qe({ref:t},ur(e,["warnKey"])),o)}),Pat=["label","children","key","type","extra"];function C9(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&qt(s)==="object"){var c=s,u=c.label,d=c.children,f=c.key,p=c.type,h=c.extra,g=It(c,Pat),v=f??"tmp-".concat(l);return d||p==="group"?p==="group"?m.createElement(i,Qe({key:v},g,{title:u}),C9(d,t,n)):m.createElement(o,Qe({key:v},g,{title:u}),C9(d,t,n)):p==="divider"?m.createElement(a,Qe({key:v},g)):m.createElement(r,Qe({key:v},g,{extra:h}),u,(!!h||h===0)&&m.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function Oie(e,t,n,r,i){var o=e,a=q({divider:cq,item:Ax,group:uq,submenu:HD},r);return t&&(o=C9(t,a,i)),lq(o,n)}var Dat=["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"],xg=[],kat=m.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,d=r.items,f=r.children,p=r.direction,h=r.id,g=r.mode,v=g===void 0?"vertical":g,y=r.inlineCollapsed,_=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,C=S===void 0?.1:S,E=r.subMenuCloseDelay,w=E===void 0?.1:E,x=r.forceSubMenuRender,T=r.defaultOpenKeys,R=r.openKeys,N=r.activeKey,I=r.defaultActiveFirst,P=r.selectable,D=P===void 0?!0:P,F=r.multiple,L=F===void 0?!1:F,B=r.defaultSelectedKeys,U=r.selectedKeys,G=r.onSelect,V=r.onDeselect,W=r.inlineIndent,$=W===void 0?24:W,H=r.motion,K=r.defaultMotions,re=r.triggerSubMenuAction,Q=re===void 0?"hover":re,A=r.builtinPlacements,k=r.itemIcon,Z=r.expandIcon,ne=r.overflowedIndicator,oe=ne===void 0?"...":ne,ae=r.overflowedIndicatorPopupClassName,ue=r.getPopupContainer,fe=r.onClick,se=r.onOpenChange,pe=r.onKeyDown;r.openAnimation,r.openTransitionName;var _e=r._internalRenderMenuItem,Te=r._internalRenderSubMenuItem,xe=r._internalComponents,ge=It(r,Dat),Ce=m.useMemo(function(){return[Oie(f,d,xg,xe,o),Oie(f,d,xg,{},o)]},[f,d,xe]),ye=Oe(Ce,2),be=ye[0],Ee=ye[1],Me=m.useState(!1),X=Oe(Me,2),Y=X[0],J=X[1],he=m.useRef(),ve=pat(h),ce=p==="rtl",$e=Fn(T,{value:R,postState:function(cn){return cn||xg}}),Be=Oe($e,2),me=Be[0],Fe=Be[1],Xe=function(cn){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Rr(){Fe(cn),se==null||se(cn)}vn?Ha.flushSync(Rr):Rr()},ze=m.useState(me),qe=Oe(ze,2),Ge=qe[0],We=qe[1],Lt=m.useRef(!1),ut=m.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),ft=Oe(ut,2),bt=ft[0],St=ft[1],Ht=bt==="inline",xt=m.useState(bt),Nt=Oe(xt,2),Vt=Nt[0],Ue=Nt[1],Ve=m.useState(St),je=Oe(Ve,2),et=je[0],_t=je[1];m.useEffect(function(){Ue(bt),_t(St),Lt.current&&(Ht?Fe(Ge):Xe(xg))},[bt,St]);var vt=m.useState(0),Mt=Oe(vt,2),wt=Mt[0],jt=Mt[1],zt=wt>=be.length-1||Vt!=="horizontal"||b;m.useEffect(function(){Ht&&We(me)},[me]),m.useEffect(function(){return Lt.current=!0,function(){Lt.current=!1}},[]);var Gt=dat(),$t=Gt.registerPath,on=Gt.unregisterPath,pt=Gt.refreshOverflowKeys,Dt=Gt.isSubPathKey,Wt=Gt.getKeyPath,Et=Gt.getKeys,yt=Gt.getSubPathKeys,Ft=m.useMemo(function(){return{registerPath:$t,unregisterPath:on}},[$t,on]),Ae=m.useMemo(function(){return{isSubPathKey:Dt}},[Dt]);m.useEffect(function(){pt(zt?xg:be.slice(wt+1).map(function(Sr){return Sr.key}))},[wt,zt]);var kt=Fn(N||I&&((n=be[0])===null||n===void 0?void 0:n.key),{value:N}),nt=Oe(kt,2),Rt=nt[0],Tt=nt[1],xn=mC(function(Sr){Tt(Sr)}),Un=mC(function(){Tt(void 0)});m.useImperativeHandle(t,function(){return{list:he.current,focus:function(cn){var vn,Rr=Et(),tn=S9(Rr,ve),rn=tn.elements,jn=tn.key2element,vr=tn.element2key,ai=oq(he.current,rn),co=Rt??(ai[0]?vr.get(ai[0]):(vn=be.find(function(Do){return!Do.props.disabled}))===null||vn===void 0?void 0:vn.key),Xn=jn.get(co);if(co&&Xn){var Ni;Xn==null||(Ni=Xn.focus)===null||Ni===void 0||Ni.call(Xn,cn)}}}});var O=Fn(B||[],{value:U,postState:function(cn){return Array.isArray(cn)?cn:cn==null?xg:[cn]}}),j=Oe(O,2),te=j[0],we=j[1],Le=function(cn){if(D){var vn=cn.key,Rr=te.includes(vn),tn;L?Rr?tn=te.filter(function(jn){return jn!==vn}):tn=[].concat(at(te),[vn]):tn=[vn],we(tn);var rn=q(q({},cn),{},{selectedKeys:tn});Rr?V==null||V(rn):G==null||G(rn)}!L&&me.length&&Vt!=="inline"&&Xe(xg)},Je=mC(function(Sr){fe==null||fe(vA(Sr)),Le(Sr)}),At=mC(function(Sr,cn){var vn=me.filter(function(tn){return tn!==Sr});if(cn)vn.push(Sr);else if(Vt!=="inline"){var Rr=yt(Sr);vn=vn.filter(function(tn){return!Rr.has(tn)})}qv(me,vn,!0)||Xe(vn,!0)}),dn=function(cn,vn){var Rr=vn??!me.includes(cn);At(cn,Rr)},Mn=lat(Vt,Rt,ce,ve,he,Et,Wt,Tt,dn,pe);m.useEffect(function(){J(!0)},[]);var Kr=m.useMemo(function(){return{_internalRenderMenuItem:_e,_internalRenderSubMenuItem:Te}},[_e,Te]),Ur=Vt!=="horizontal"||b?be:be.map(function(Sr,cn){return m.createElement(ow,{key:Sr.key,overflowDisabled:cn>wt},Sr)}),di=m.createElement(Wu,Qe({id:h,ref:he,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Ax,className:Re(o,"".concat(o,"-root"),"".concat(o,"-").concat(Vt),l,ie(ie({},"".concat(o,"-inline-collapsed"),et),"".concat(o,"-rtl"),ce),a),dir:p,style:s,role:"menu",tabIndex:u,data:Ur,renderRawItem:function(cn){return cn},renderRawRest:function(cn){var vn=cn.length,Rr=vn?be.slice(-vn):null;return m.createElement(HD,{eventKey:E9,title:oe,disabled:zt,internalPopupClose:vn===0,popupClassName:ae},Rr)},maxCount:Vt!=="horizontal"||b?Wu.INVALIDATE:Wu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(cn){jt(cn)},onKeyDown:Mn},ge));return m.createElement(iq.Provider,{value:Kr},m.createElement(Yxe.Provider,{value:ve},m.createElement(ow,{prefixCls:o,rootClassName:a,mode:Vt,openKeys:me,rtl:ce,disabled:_,motion:Y?H:null,defaultMotions:Y?K:null,activeKey:Rt,onActive:xn,onInactive:Un,selectedKeys:te,inlineIndent:$,subMenuOpenDelay:C,subMenuCloseDelay:w,forceSubMenuRender:x,builtinPlacements:A,triggerSubMenuAction:Q,getPopupContainer:ue,itemIcon:k,expandIcon:Z,onItemClick:Je,onOpenChange:At},m.createElement(Zxe.Provider,{value:Ae},di),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(Qxe.Provider,{value:Ft},Ee)))))}),cS=kat;cS.Item=Ax;cS.SubMenu=HD;cS.ItemGroup=uq;cS.Divider=cq;var Lat={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"},$at=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Lat}))},Fat=m.forwardRef($at),Bat={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"},Uat=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Bat}))},aw=m.forwardRef(Uat);const iTe=m.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),jat=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:De(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},oTe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},aTe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],sTe=dr("Layout",e=>[jat(e)],oTe,{deprecatedTokens:aTe}),Hat=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:h,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:De(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${De(f)} ${De(f)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${De(f)} 0 0 ${De(f)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:h,background:g},[`${t}-zero-width-trigger`]:{color:h,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},zat=dr(["Layout","Sider"],e=>[Hat(e)],oTe,{deprecatedTokens:aTe});var Vat=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Iie={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Gat=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),zD=m.createContext({}),Wat=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),lTe=m.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:g,onBreakpoint:v}=e,y=Vat(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_}=m.useContext(iTe),[b,S]=m.useState("collapsed"in e?e.collapsed:a),[C,E]=m.useState(!1);m.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(k,Z)=>{"collapsed"in e||S(k),g==null||g(k,Z)},{getPrefixCls:x,direction:T}=m.useContext(nn),R=x("layout-sider",n),[N,I,P]=zat(R),D=m.useRef(null);D.current=k=>{E(k.matches),v==null||v(k.matches),b!==k.matches&&w(k.matches,"responsive")},m.useEffect(()=>{function k(ne){return D.current(ne)}let Z;if(typeof window<"u"){const{matchMedia:ne}=window;if(ne&&h&&h in Iie){Z=ne(`screen and (max-width: ${Iie[h]})`);try{Z.addEventListener("change",k)}catch{Z.addListener(k)}k(Z)}}return()=>{try{Z==null||Z.removeEventListener("change",k)}catch{Z==null||Z.removeListener(k)}}},[h]),m.useEffect(()=>{const k=Wat("ant-sider-");return _.addSider(k),()=>_.removeSider(k)},[]);const F=()=>{w(!b,"clickTrigger")},L=ur(y,["collapsed"]),B=b?f:d,U=Gat(B)?`${B}px`:String(B),G=parseFloat(String(f||0))===0?m.createElement("span",{onClick:F,className:Re(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${u?"right":"left"}`),style:p},i||m.createElement(Fat,null)):null,V=T==="rtl"==!u,H={expanded:V?m.createElement(Ch,null):m.createElement(aw,null),collapsed:V?m.createElement(aw,null):m.createElement(Ch,null)}[b?"collapsed":"expanded"],K=i!==null?G||m.createElement("div",{className:`${R}-trigger`,onClick:F,style:{width:U}},i||H):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${U}`,maxWidth:U,minWidth:U,width:U}),Q=Re(R,`${R}-${s}`,{[`${R}-collapsed`]:!!b,[`${R}-has-trigger`]:c&&i!==null&&!G,[`${R}-below`]:!!C,[`${R}-zero-width`]:parseFloat(U)===0},r,I,P),A=m.useMemo(()=>({siderCollapsed:b}),[b]);return N(m.createElement(zD.Provider,{value:A},m.createElement("aside",Object.assign({className:Q},L,{style:re,ref:t}),m.createElement("div",{className:`${R}-children`},o),c||C&&G?K:null)))});var Yat={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"},qat=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Yat}))},dq=m.forwardRef(qat);const _A=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Kat=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cTe=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=Kat(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=m.useContext(nn),a=o("menu",t),s=Re({[`${a}-item-divider-dashed`]:!!r},n);return m.createElement(cq,Object.assign({className:s},i))},uTe=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=m.useContext(_A),p=b=>{const S=r==null?void 0:r[0],C=m.createElement("span",{className:Re(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||m.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof S=="string"?m.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):C},{siderCollapsed:h}=m.useContext(zD);let g=o;typeof o>"u"?g=c?r:"":o===!1&&(g="");const v={title:g};!h&&!f&&(v.title=null,v.open=!1);const y=_a(r).length;let _=m.createElement(Ax,Object.assign({},ur(e,["title","icon","danger"]),{className:Re({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(i?y+1:y)===1},n),title:typeof o=="string"?o:void 0}),Ko(i,{className:Re(m.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(f));return d||(_=m.createElement(rc,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),_)),_};var Qat=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const yA=m.createContext(null),Xat=m.forwardRef((e,t)=>{const{children:n}=e,r=Qat(e,["children"]),i=m.useContext(yA),o=m.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=RYe(n),s=fd(t,a?Lh(n):null);return m.createElement(yA.Provider,{value:o},m.createElement(rd,{space:!0},a?m.cloneElement(n,{ref:s}):n))}),Zat=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${De(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
|
||
> ${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"}}}},Jat=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(${De(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${De(n)})`}}}}},Nie=e=>Object.assign({},kp(e)),Mie=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:_,lineType:b,colorSplit:S,itemDisabledColor:C,dangerItemColor:E,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:T,dangerItemSelectedBg:R,popupBg:N,itemHoverBg:I,itemActiveBg:P,menuSubMenuBg:D,horizontalItemSelectedColor:F,horizontalItemSelectedBg:L,horizontalItemBorderRadius:B,horizontalItemHoverBg:U}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Nie(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Nie(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:_}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:P}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:P}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${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:B,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${De(u)} solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:U,"&::after":{borderBottomWidth:u,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:F}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${De(f)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${De(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${h}`,`opacity ${y} ${h}`].join(",")}}}}}},Aie=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:De(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:De(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${t}-submenu-title`]:{paddingInlineEnd:u}}},est=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:v}=e,y={height:r,lineHeight:De(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Aie(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Aie(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${De(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${De(e.calc(v).div(2).equal())} - ${De(c)})`,textOverflow:"clip",[`
|
||
${t}-submenu-arrow,
|
||
${t}-submenu-expand-icon
|
||
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:De(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:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},nc),{paddingInline:p})}}]},Pie=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},O_()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Die=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${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:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${De(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${De(a)})`}}}}},tst=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:_}=e;return[{"":{[n]:Object.assign(Object.assign({},nf()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),nf()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${De(s)} ${De(l)}`,fontSize:_,lineHeight:y,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Pie(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${De(e.calc(r).mul(2).equal())} ${De(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,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:f},Pie(e)),Die(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\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}}}),Die(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${De(g)})`},"&::after":{transform:`rotate(45deg) translateX(${De(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${De(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${De(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${De(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},nst=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:_,colorBgElevated:b,marginXXS:S,padding:C,fontSize:E,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:T,colorErrorHover:R}=e,N=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,I=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,P=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new cr(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:_,collapsedWidth:y*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:C,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:w-E,collapsedIconSize:x,groupTitleFontSize:E,darkItemDisabledColor:new cr(T).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:T,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:o,itemWidth:N?`calc(100% + ${I}px)`:`calc(100% - ${P*2}px)`}},rst=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 dr("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:p,darkDangerItemSelectedBg:h,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:_,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:C,popupBg:E,darkPopupBg:w}=i,x=i.calc(s).div(7).mul(5).equal(),T=qn(i,{menuArrowSize:x,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(x).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:E}),R=qn(T,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:f,itemBg:u,popupBg:w,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:_,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:h,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:p});return[tst(T),Zat(T),est(T),Mie(T,"light"),Mie(R,"dark"),Jat(T),Cx(T),of(T,"slide-up"),of(T,"slide-down"),oS(T,"zoom-big")]},nst,{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)},dTe=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=m.useContext(_A),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=lS();let d;if(!r)d=l&&!u.length&&i&&typeof i=="string"?m.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):m.createElement("span",{className:`${s}-title-content`},i);else{const h=m.isValidElement(i)&&i.type==="span";d=m.createElement(m.Fragment,null,Ko(r,{className:Re(m.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?i:m.createElement("span",{className:`${s}-title-content`},i))}const f=m.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=au("Menu");return m.createElement(_A.Provider,{value:f},m.createElement(HD,Object.assign({},ur(e,["icon"]),{title:d,popupClassName:Re(s,n,`${s}-${o||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var ist=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function rF(e){return e===null||e===!1}const ost={item:uTe,submenu:dTe,divider:cTe},ast=m.forwardRef((e,t)=>{var n;const r=m.useContext(yA),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:s,menu:l}=m.useContext(nn),c=o(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:_,mode:b,selectable:S,onClick:C,overflowedIndicatorPopupClassName:E}=e,w=ist(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),x=ur(w,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const T=Wn(function(){var $;C==null||C.apply(void 0,arguments),($=i.onClick)===null||$===void 0||$.call(i)}),R=i.mode||b,N=S??i.selectable,I=v??y,P={horizontal:{motionName:`${c}-slide-up`},inline:nw(c),other:{motionName:`${c}-zoom-big`}},D=o("menu",u||i.prefixCls),F=oi(D),[L,B,U]=rst(D,F,!r),G=Re(`${D}-${p}`,l==null?void 0:l.className,d),V=m.useMemo(()=>{var $,H;if(typeof h=="function"||rF(h))return h||null;if(typeof i.expandIcon=="function"||rF(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||rF(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const K=($=h??(i==null?void 0:i.expandIcon))!==null&&$!==void 0?$:l==null?void 0:l.expandIcon;return Ko(K,{className:Re(`${D}-submenu-expand-icon`,m.isValidElement(K)?(H=K.props)===null||H===void 0?void 0:H.className:void 0)})},[h,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,D]),W=m.useMemo(()=>({prefixCls:D,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:p,mode:R,disableMenuItemTitleTooltip:g}),[D,I,s,g,p]);return L(m.createElement(yA.Provider,{value:null},m.createElement(_A.Provider,{value:W},m.createElement(cS,Object.assign({getPopupContainer:a,overflowedIndicator:m.createElement(dq,null),overflowedIndicatorPopupClassName:Re(D,`${D}-${p}`,E),mode:R,selectable:N,onClick:T},x,{inlineCollapsed:I,style:Object.assign(Object.assign({},l==null?void 0:l.style),f),className:G,prefixCls:D,direction:s,defaultMotions:P,expandIcon:V,ref:t,rootClassName:Re(_,B,i.rootClassName,U,F),_internalComponents:ost})))))}),hf=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m.useContext(zD);return m.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),m.createElement(ast,Object.assign({ref:n},e,r))});hf.Item=uTe;hf.SubMenu=dTe;hf.Divider=cTe;hf.ItemGroup=uq;const sst=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},lst=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:g}=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(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
||
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ED},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
||
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
||
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wD},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
||
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:CD},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
||
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
||
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:xD}}},nq(e,g,{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({},wr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Qc(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${De(c)} ${De(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${De(c)} ${De(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Qc(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${De(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:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${De(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[of(e,"slide-up"),of(e,"slide-down"),l0(e,"move-up"),l0(e,"move-down"),oS(e,"zoom-big")]]},cst=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},UD({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),BD(e)),ust=dr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=qn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[lst(o),sst(o)]},cst,{resetStyle:!1}),VD=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:b=!0,placement:S="",overlay:C,transitionName:E}=e,{getPopupContainer:w,getPrefixCls:x,direction:T,dropdown:R}=m.useContext(nn);R_();const N=m.useMemo(()=>{const ue=x();return E!==void 0?E:S.includes("top")?`${ue}-slide-down`:`${ue}-slide-up`},[x,S,E]),I=m.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:T==="rtl"?"bottomRight":"bottomLeft",[S,T]),P=x("dropdown",i),D=oi(P),[F,L,B]=ust(P,D),[,U]=Ea(),G=m.Children.only(eat(o)?m.createElement("span",null,o):o),V=Ko(G,{className:Re(`${P}-trigger`,{[`${P}-rtl`]:T==="rtl"},G.props.className),disabled:(t=G.props.disabled)!==null&&t!==void 0?t:s}),W=s?[]:a,$=!!(W!=null&&W.includes("contextMenu")),[H,K]=Fn(!1,{value:p??g}),re=Wn(ue=>{h==null||h(ue,{source:"trigger"}),v==null||v(ue),K(ue)}),Q=Re(u,d,L,B,D,R==null?void 0:R.className,{[`${P}-rtl`]:T==="rtl"}),A=Fxe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),k=m.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),K(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),Z=()=>{let ue;return n!=null&&n.items?ue=m.createElement(hf,Object.assign({},n)):typeof C=="function"?ue=C():ue=C,l&&(ue=l(ue)),ue=m.Children.only(typeof ue=="string"?m.createElement("span",null,ue):ue),m.createElement(Xat,{prefixCls:`${P}-menu`,rootClassName:Re(B,D),expandIcon:m.createElement("span",{className:`${P}-menu-submenu-arrow`},m.createElement(Ch,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:k,validator:fe=>{}},ue)},[ne,oe]=au("Dropdown",f==null?void 0:f.zIndex);let ae=m.createElement(Wxe,Object.assign({alignPoint:$},ur(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:_,visible:H,builtinPlacements:A,arrow:!!r,overlayClassName:Q,prefixCls:P,getPopupContainer:c||w,transitionName:N,trigger:W,overlay:Z,placement:I,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),f),{zIndex:ne})}),V);return ne&&(ae=m.createElement(bx.Provider,{value:oe},ae)),F(ae)},dst=Fh(VD,"align",void 0,"dropdown",e=>e),fst=e=>m.createElement(dst,Object.assign({},e),m.createElement("span",null));VD._InternalPanelDoNotUseOrYouWillBeFired=fst;var fTe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",h="date",g="Invalid Date",v=/^(\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,_={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(D){var F=["th","st","nd","rd"],L=D%100;return"["+D+(F[(L-20)%10]||F[L]||F[0])+"]"}},b=function(D,F,L){var B=String(D);return!B||B.length>=F?D:""+Array(F+1-B.length).join(L)+D},S={s:b,z:function(D){var F=-D.utcOffset(),L=Math.abs(F),B=Math.floor(L/60),U=L%60;return(F<=0?"+":"-")+b(B,2,"0")+":"+b(U,2,"0")},m:function D(F,L){if(F.date()<L.date())return-D(L,F);var B=12*(L.year()-F.year())+(L.month()-F.month()),U=F.clone().add(B,d),G=L-U<0,V=F.clone().add(B+(G?-1:1),d);return+(-(B+(L-U)/(G?U-V:V-U))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:p,w:u,d:c,D:h,h:l,m:s,s:a,ms:o,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},C="en",E={};E[C]=_;var w="$isDayjsObject",x=function(D){return D instanceof I||!(!D||!D[w])},T=function D(F,L,B){var U;if(!F)return C;if(typeof F=="string"){var G=F.toLowerCase();E[G]&&(U=G),L&&(E[G]=L,U=G);var V=F.split("-");if(!U&&V.length>1)return D(V[0])}else{var W=F.name;E[W]=F,U=W}return!B&&U&&(C=U),U||!B&&C},R=function(D,F){if(x(D))return D.clone();var L=typeof F=="object"?F:{};return L.date=D,L.args=arguments,new I(L)},N=S;N.l=T,N.i=x,N.w=function(D,F){return R(D,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var I=function(){function D(L){this.$L=T(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[w]=!0}var F=D.prototype;return F.parse=function(L){this.$d=function(B){var U=B.date,G=B.utc;if(U===null)return new Date(NaN);if(N.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var V=U.match(v);if(V){var W=V[2]-1||0,$=(V[7]||"0").substring(0,3);return G?new Date(Date.UTC(V[1],W,V[3]||1,V[4]||0,V[5]||0,V[6]||0,$)):new Date(V[1],W,V[3]||1,V[4]||0,V[5]||0,V[6]||0,$)}}return new Date(U)}(L),this.init()},F.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},F.$utils=function(){return N},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(L,B){var U=R(L);return this.startOf(B)<=U&&U<=this.endOf(B)},F.isAfter=function(L,B){return R(L)<this.startOf(B)},F.isBefore=function(L,B){return this.endOf(B)<R(L)},F.$g=function(L,B,U){return N.u(L)?this[B]:this.set(U,L)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(L,B){var U=this,G=!!N.u(B)||B,V=N.p(L),W=function(Z,ne){var oe=N.w(U.$u?Date.UTC(U.$y,ne,Z):new Date(U.$y,ne,Z),U);return G?oe:oe.endOf(c)},$=function(Z,ne){return N.w(U.toDate()[Z].apply(U.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ne)),U)},H=this.$W,K=this.$M,re=this.$D,Q="set"+(this.$u?"UTC":"");switch(V){case p:return G?W(1,0):W(31,11);case d:return G?W(1,K):W(0,K+1);case u:var A=this.$locale().weekStart||0,k=(H<A?H+7:H)-A;return W(G?re-k:re+(6-k),K);case c:case h:return $(Q+"Hours",0);case l:return $(Q+"Minutes",1);case s:return $(Q+"Seconds",2);case a:return $(Q+"Milliseconds",3);default:return this.clone()}},F.endOf=function(L){return this.startOf(L,!1)},F.$set=function(L,B){var U,G=N.p(L),V="set"+(this.$u?"UTC":""),W=(U={},U[c]=V+"Date",U[h]=V+"Date",U[d]=V+"Month",U[p]=V+"FullYear",U[l]=V+"Hours",U[s]=V+"Minutes",U[a]=V+"Seconds",U[o]=V+"Milliseconds",U)[G],$=G===c?this.$D+(B-this.$W):B;if(G===d||G===p){var H=this.clone().set(h,1);H.$d[W]($),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W]($);return this.init(),this},F.set=function(L,B){return this.clone().$set(L,B)},F.get=function(L){return this[N.p(L)]()},F.add=function(L,B){var U,G=this;L=Number(L);var V=N.p(B),W=function(K){var re=R(G);return N.w(re.date(re.date()+Math.round(K*L)),G)};if(V===d)return this.set(d,this.$M+L);if(V===p)return this.set(p,this.$y+L);if(V===c)return W(1);if(V===u)return W(7);var $=(U={},U[s]=r,U[l]=i,U[a]=n,U)[V]||1,H=this.$d.getTime()+L*$;return N.w(H,this)},F.subtract=function(L,B){return this.add(-1*L,B)},F.format=function(L){var B=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var G=L||"YYYY-MM-DDTHH:mm:ssZ",V=N.z(this),W=this.$H,$=this.$m,H=this.$M,K=U.weekdays,re=U.months,Q=U.meridiem,A=function(ne,oe,ae,ue){return ne&&(ne[oe]||ne(B,G))||ae[oe].slice(0,ue)},k=function(ne){return N.s(W%12||12,ne,"0")},Z=Q||function(ne,oe,ae){var ue=ne<12?"AM":"PM";return ae?ue.toLowerCase():ue};return G.replace(y,function(ne,oe){return oe||function(ae){switch(ae){case"YY":return String(B.$y).slice(-2);case"YYYY":return N.s(B.$y,4,"0");case"M":return H+1;case"MM":return N.s(H+1,2,"0");case"MMM":return A(U.monthsShort,H,re,3);case"MMMM":return A(re,H);case"D":return B.$D;case"DD":return N.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return A(U.weekdaysMin,B.$W,K,2);case"ddd":return A(U.weekdaysShort,B.$W,K,3);case"dddd":return K[B.$W];case"H":return String(W);case"HH":return N.s(W,2,"0");case"h":return k(1);case"hh":return k(2);case"a":return Z(W,$,!0);case"A":return Z(W,$,!1);case"m":return String($);case"mm":return N.s($,2,"0");case"s":return String(B.$s);case"ss":return N.s(B.$s,2,"0");case"SSS":return N.s(B.$ms,3,"0");case"Z":return V}return null}(ne)||V.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(L,B,U){var G,V=this,W=N.p(B),$=R(L),H=($.utcOffset()-this.utcOffset())*r,K=this-$,re=function(){return N.m(V,$)};switch(W){case p:G=re()/12;break;case d:G=re();break;case f:G=re()/3;break;case u:G=(K-H)/6048e5;break;case c:G=(K-H)/864e5;break;case l:G=K/i;break;case s:G=K/r;break;case a:G=K/n;break;default:G=K}return U?G:N.a(G)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return E[this.$L]},F.locale=function(L,B){if(!L)return this.$L;var U=this.clone(),G=T(L,B,!0);return G&&(U.$L=G),U},F.clone=function(){return N.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},D}(),P=I.prototype;return R.prototype=P,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",p],["$D",h]].forEach(function(D){P[D[1]]=function(F){return this.$g(F,D[0],D[1])}}),R.extend=function(D,F){return D.$i||(D(F,I,R),D.$i=!0),R},R.locale=T,R.isDayjs=x,R.unix=function(D){return R(1e3*D)},R.en=E[C],R.Ls=E,R.p={},R})})(fTe);var pTe=fTe.exports;const pr=yi(pTe);var mTe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){return function(n,r){r.prototype.weekday=function(i){var o=this.$locale().weekStart||0,a=this.$W,s=(a<o?a+7:a)-o;return this.$utils().u(i)?s:this.subtract(s,"day").add(i,"day")}}})})(mTe);var pst=mTe.exports;const hTe=yi(pst);var gTe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){return function(n,r,i){var o=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,f,p,h,g){var v=d.name?d:d.$locale(),y=a(v[f]),_=a(v[p]),b=y||_.map(function(C){return C.slice(0,h)});if(!g)return b;var S=v.weekStart;return b.map(function(C,E){return b[(E+(S||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(d,f){return d.formats[f]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,g,v){return g||v.slice(1)})}(d.formats[f.toUpperCase()])},u=function(){var d=this;return{months:function(f){return f?f.format("MMMM"):s(d,"months")},monthsShort:function(f){return f?f.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(d,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return c(d.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(f){return c(d,f)},meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(gTe);var mst=gTe.exports;const vTe=yi(mst);var _Te={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){var n="week",r="year";return function(i,o,a){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(_Te);var hst=_Te.exports;const fq=yi(hst);var yTe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),a=this.year();return o===1&&i===11?a+1:i===0&&o>=52?a-1:a}}})})(yTe);var gst=yTe.exports;const vst=yi(gst);var bTe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(a);var c=this.$utils(),u=(a||"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(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="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 d}});return o.bind(this)(u)}}})})(bTe);var _st=bTe.exports;const STe=yi(_st);var ETe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var _=y.match(/([+-]|\d\d)/g),b=60*_[1]+(+_[2]||0);return b===0?0:_[0]==="+"?-b:b}(v)}],f=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var _,b=l.meridiem;if(b){for(var S=1;S<=24;S+=1)if(v.indexOf(b(S,0,y))>-1){_=S>12;break}}else _=v===(y?"pm":"PM");return _},h={A:[s,function(v){this.afternoon=p(v,!1)}],a:[s,function(v){this.afternoon=p(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[s,function(v){var y=l.ordinal,_=v.match(/\d+/);if(this.day=_[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[a,u("week")],ww:[o,u("week")],M:[a,u("month")],MM:[o,u("month")],MMM:[s,function(v){var y=f("months"),_=(f("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[s,function(v){var y=f("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(v){var y,_;y=v,_=l&&l.formats;for(var b=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,N,I){var P=I&&I.toUpperCase();return N||_[I]||n[I]||_[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,F,L){return F||L.slice(1)})})).match(r),S=b.length,C=0;C<S;C+=1){var E=b[C],w=h[E],x=w&&w[0],T=w&&w[1];b[C]=T?{regex:x,parser:T}:E.replace(/^\[|\]$/g,"")}return function(R){for(var N={},I=0,P=0;I<S;I+=1){var D=b[I];if(typeof D=="string")P+=D.length;else{var F=D.regex,L=D.parser,B=R.slice(P),U=F.exec(B)[0];L.call(N,U),R=R.replace(U,"")}}return function(G){var V=G.afternoon;if(V!==void 0){var W=G.hours;V?W<12&&(G.hours+=12):W===12&&(G.hours=0),delete G.afternoon}}(N),N}}return function(v,y,_){_.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var b=y.prototype,S=b.parse;b.parse=function(C){var E=C.date,w=C.utc,x=C.args;this.$u=w;var T=x[1];if(typeof T=="string"){var R=x[2]===!0,N=x[3]===!0,I=R||N,P=x[2];N&&(P=x[2]),l=this.$locale(),!R&&P&&(l=_.Ls[P]),this.$d=function(B,U,G,V){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*B);var W=g(U)(B),$=W.year,H=W.month,K=W.day,re=W.hours,Q=W.minutes,A=W.seconds,k=W.milliseconds,Z=W.zone,ne=W.week,oe=new Date,ae=K||($||H?1:oe.getDate()),ue=$||oe.getFullYear(),fe=0;$&&!H||(fe=H>0?H-1:oe.getMonth());var se,pe=re||0,_e=Q||0,Te=A||0,xe=k||0;return Z?new Date(Date.UTC(ue,fe,ae,pe,_e,Te,xe+60*Z.offset*1e3)):G?new Date(Date.UTC(ue,fe,ae,pe,_e,Te,xe)):(se=new Date(ue,fe,ae,pe,_e,Te,xe),ne&&(se=V(se).week(ne).toDate()),se)}catch{return new Date("")}}(E,T,w,_),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),I&&E!=this.format(T)&&(this.$d=new Date("")),l={}}else if(T instanceof Array)for(var D=T.length,F=1;F<=D;F+=1){x[1]=T[F-1];var L=_.apply(this,x);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}F===D&&(this.$d=new Date(""))}else S.call(this,C)}}})})(ETe);var yst=ETe.exports;const CTe=yi(yst);pr.extend(CTe);pr.extend(STe);pr.extend(hTe);pr.extend(vTe);pr.extend(fq);pr.extend(vst);pr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var bst={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"},Tg=function(t){var n=bst[t];return n||t.split("_")[0]},Sst={getNow:function(){var t=pr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return pr(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 pr().locale(Tg(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Tg(t)).weekday(0)},getWeek:function(t,n){return n.locale(Tg(t)).week()},getShortWeekDays:function(t){return pr().locale(Tg(t)).localeData().weekdaysMin()},getShortMonths:function(t){return pr().locale(Tg(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Tg(t)).format(r)},parse:function(t,n,r){for(var i=Tg(t),o=0;o<r.length;o+=1){var a=r[o],s=n;if(a.includes("wo")||a.includes("Wo")){for(var l=s.split("-")[0],c=s.split("-")[1],u=pr(l,"YYYY").startOf("year").locale(i),d=0;d<=52;d+=1){var f=u.add(d,"week");if(f.format("Wo")===c)return f}return null}var p=pr(s,a,!0).locale(i);if(p.isValid())return p}return null}}};function GD(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}function wTe(e,t){var n=GD(e,t),r=n==null?void 0:n.toLowerCase().endsWith("right"),i=r?"insetInlineEnd":"insetInlineStart";return t&&(i=["insetInlineStart","insetInlineEnd"].find(function(o){return o!==i})),i}var hd=m.createContext(null),Est={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function xTe(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,o=e.transitionName,a=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,d=u===void 0?Est:u,f=e.direction,p=e.visible,h=e.onClose,g=m.useContext(hd),v=g.prefixCls,y="".concat(v,"-dropdown"),_=GD(c,f==="rtl");return m.createElement(Nx,{showAction:[],hideAction:["click"],popupPlacement:_,builtinPlacements:d,prefixCls:y,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:p,popupClassName:Re(r,ie(ie({},"".concat(y,"-range"),l),"".concat(y,"-rtl"),f==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(S){S||h()}},s)}function pq(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function M_(e){return e==null?[]:Array.isArray(e)?e:[e]}function qC(e,t,n){var r=at(e);return r[t]=n,r}function WD(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function TTe(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function RTe(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(o){return e[o]});return r!==i?e[i]:void 0}function OTe(e){return WD(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function mq(e,t,n,r){var i=m.useMemo(function(){return e||function(a,s){var l=a;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),o=m.useCallback(function(a,s){return i(a,q(q({},s),{},{range:r}))},[i,r]);return o}function ITe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=m.useState([!1,!1]),i=Oe(r,2),o=i[0],a=i[1],s=function(u,d){a(function(f){return qC(f,d,u)})},l=m.useMemo(function(){return o.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,o,t,n]);return[l,s]}function NTe(e,t,n,r,i){var o="",a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function Cst(e,t,n,r,i,o){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,_=NTe(t,n,r,i,o);return q(q({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(_),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||_,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function MTe(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return de.useMemo(function(){return Cst(e,n,r,i,o,a)},[e,n,r,i,o,a])}function OE(e,t,n){return n??t.some(function(r){return e.includes(r)})}var wst=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function xst(e){var t=WD(e,wst),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=qt(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function Tst(e){return e&&typeof e=="string"}function ATe(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function PTe(e,t,n,r,i){var o=t,a=n,s=r;if(!e&&!o&&!a&&!s&&!i)o=!0,a=!0,s=!0;else if(e){var l,c,u,d=[o,a,s].some(function(h){return h===!1}),f=[o,a,s].some(function(h){return h===!0}),p=d?!0:!f;o=(l=o)!==null&&l!==void 0?l:p,a=(c=a)!==null&&c!==void 0?c:p,s=(u=s)!==null&&u!==void 0?u:p}return[o,a,s,i]}function DTe(e){var t=e.showTime,n=xst(e),r=Oe(n,2),i=r[0],o=r[1],a=t&&qt(t)==="object"?t:{},s=q(q({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,f=ATe(c,u,d,l),p=PTe(f,c,u,d,l),h=Oe(p,3);return c=h[0],u=h[1],d=h[2],[s,q(q({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function kTe(e,t,n,r,i){var o=e==="time";if(e==="datetime"||o){for(var a=r,s=TTe(e,i,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=M_(c[u])[0];if(Tst(d)){l=d;break}}var f=a.showHour,p=a.showMinute,h=a.showSecond,g=a.showMillisecond,v=a.use12Hours,y=OE(l,["a","A","LT","LLL","LTS"],v),_=ATe(f,p,h,g);_||(f=OE(l,["H","h","k","LT","LLL"]),p=OE(l,["m","LT","LLL"]),h=OE(l,["s","LTS"]),g=OE(l,["SSS"]));var b=PTe(_,f,p,h,g),S=Oe(b,3);f=S[0],p=S[1],h=S[2];var C=t||NTe(f,p,h,g,y);return q(q({},a),{},{format:C,showHour:f,showMinute:p,showSecond:h,showMillisecond:g,use12Hours:y})}return null}function Rst(e,t,n){if(t===!1)return null;var r=t&&qt(t)==="object"?t:{};return r.clearIcon||n||m.createElement("span",{className:"".concat(e,"-clear-btn")})}var iF=7;function Uh(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function w9(e,t,n){return Uh(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function Xv(e,t,n){return Uh(t,n,function(){return e.getYear(t)===e.getYear(n)})}function kie(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function Ost(e,t,n){return Uh(t,n,function(){return Xv(e,t,n)&&kie(e,t)===kie(e,n)})}function hq(e,t,n){return Uh(t,n,function(){return Xv(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function gq(e,t,n){return Uh(t,n,function(){return Xv(e,t,n)&&hq(e,t,n)&&e.getDate(t)===e.getDate(n)})}function LTe(e,t,n){return Uh(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function $Te(e,t,n){return Uh(t,n,function(){return gq(e,t,n)&<e(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function hC(e,t,n,r){return Uh(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return Xv(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function ps(e,t,n,r,i){switch(i){case"date":return gq(e,n,r);case"week":return hC(e,t.locale,n,r);case"month":return hq(e,n,r);case"quarter":return Ost(e,n,r);case"year":return Xv(e,n,r);case"decade":return w9(e,n,r);case"time":return LTe(e,n,r);default:return $Te(e,n,r)}}function YD(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function rO(e,t,n,r,i){return ps(e,t,n,r,i)?!0:e.isAfter(n,r)}function Ist(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i),a=t.addDate(i,r-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function ga(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function bA(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(a,s){n?r=e[a](r,e[i[s]](n)):r=e[a](r,0)}),r}function Nst(e,t,n,r,i){var o=Wn(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!ps(e,t,r,a,s.type)||i&&e.isAfter(a,i)&&!ps(e,t,i,a,s.type))});return o}function Mst(e,t,n){return m.useMemo(function(){var r=TTe(e,t,n),i=M_(r),o=i[0],a=qt(o)==="object"&&o.type==="mask"?o.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function Ast(e,t,n){return typeof e[0]=="function"||n?!0:t}function Pst(e,t,n,r){var i=Wn(function(o,a){var s=q({type:t},a);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var l,c=a&&a.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,o,c,{from:s.from}))||{},d=u.disabledHours,f=u.disabledMinutes,p=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,_=d||g,b=f||v,S=p||y,C=e.getHour(o),E=e.getMinute(o),w=e.getSecond(o),x=e.getMillisecond(o);if(_&&_().includes(C)||b&&b(C).includes(E)||S&&S(C,E).includes(w)||h&&h(C,E,w).includes(x))return!0}return!1});return i}function iO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=m.useMemo(function(){var r=e&&M_(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function FTe(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,o=i===void 0?"date":i,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,f=e.order,p=f===void 0?!0:f,h=e.components,g=h===void 0?{}:h,v=e.inputRender,y=e.allowClear,_=e.clearIcon,b=e.needConfirm,S=e.multiple,C=e.format,E=e.inputReadOnly,w=e.disabledDate,x=e.minDate,T=e.maxDate,R=e.showTime,N=e.value,I=e.defaultValue,P=e.pickerValue,D=e.defaultPickerValue,F=iO(N),L=iO(I),B=iO(P),U=iO(D),G=o==="date"&&R?"datetime":o,V=G==="time"||G==="datetime",W=V||S,$=b??V,H=DTe(e),K=Oe(H,4),re=K[0],Q=K[1],A=K[2],k=K[3],Z=MTe(r,Q),ne=m.useMemo(function(){return kTe(G,A,k,re,Z)},[G,A,k,re,Z]),oe=m.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:Z,picker:o,styles:c,classNames:d,order:p,components:q({input:v},g),clearIcon:Rst(s,y,_),showTime:ne,value:F,defaultValue:L,pickerValue:B,defaultPickerValue:U},t==null?void 0:t())},[e]),ae=Mst(G,Z,C),ue=Oe(ae,2),fe=ue[0],se=ue[1],pe=Ast(fe,E,S),_e=Nst(n,r,w,x,T),Te=Pst(n,o,_e,ne),xe=m.useMemo(function(){return q(q({},oe),{},{needConfirm:$,inputReadOnly:pe,disabledDate:_e})},[oe,$,pe,_e]);return[xe,G,W,fe,se,Te]}function Dst(e,t,n){var r=Fn(t,{value:e}),i=Oe(r,2),o=i[0],a=i[1],s=de.useRef(e),l=de.useRef(),c=function(){rr.cancel(l.current)},u=Wn(function(){a(s.current),n&&o!==s.current&&n(s.current)}),d=Wn(function(f,p){c(),s.current=f,f||p?u():l.current=rr(u)});return de.useEffect(function(){return c},[]),[o,d]}function BTe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,o=Dst(i,t||!1,r),a=Oe(o,2),s=a[0],l=a[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function UTe(e){var t=m.useRef();return m.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var o;(o=t.current)===null||o===void 0||o.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function jTe(e,t){return m.useMemo(function(){return e||(t?(Wr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Oe(n,2),i=r[0],o=r[1];return{label:i,value:o}})):[])},[e,t])}function vq(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=m.useRef(t);r.current=t,xv(function(){if(e)r.current(e);else{var i=rr(function(){r.current(e)},n);return function(){rr.cancel(i)}}},[e])}function HTe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=m.useState(0),i=Oe(r,2),o=i[0],a=i[1],s=m.useState(!1),l=Oe(s,2),c=l[0],u=l[1],d=m.useRef([]),f=m.useRef(null),p=m.useRef(null),h=function(S){f.current=S},g=function(S){return f.current===S},v=function(S){u(S)},y=function(S){return S&&(p.current=S),p.current},_=function(S){var C=d.current,E=new Set(C.filter(function(x){return S[x]||t[x]})),w=C[C.length-1]===0?1:0;return E.size>=2||e[w]?null:w};return vq(c||n,function(){c||(d.current=[],h(null))}),m.useEffect(function(){c&&d.current.push(o)},[c,o]),[c,v,y,o,a,_,d.current,h,g]}function kst(e,t,n,r,i,o){var a=n[n.length-1],s=function(c,u){var d=Oe(e,2),f=d[0],p=d[1],h=q(q({},u),{},{from:RTe(e,n)});return a===1&&t[0]&&f&&!ps(r,i,f,c,h.type)&&r.isAfter(f,c)||a===0&&t[1]&&p&&!ps(r,i,p,c,h.type)&&r.isAfter(c,p)?!0:o==null?void 0:o(c,h)};return s}function gC(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 oF=[];function zTe(e,t,n,r,i,o,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:oF,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:oF,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:oF,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h=a==="time",g=o||0,v=function(B){var U=e.getNow();return h&&(U=bA(e,U)),l[B]||n[B]||U},y=Oe(c,2),_=y[0],b=y[1],S=Fn(function(){return v(0)},{value:_}),C=Oe(S,2),E=C[0],w=C[1],x=Fn(function(){return v(1)},{value:b}),T=Oe(x,2),R=T[0],N=T[1],I=m.useMemo(function(){var L=[E,R][g];return h?L:bA(e,L,u[g])},[h,E,R,g,e,u]),P=function(B){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",G=[w,N][g];G(B);var V=[E,R];V[g]=B,d&&(!ps(e,t,E,V[0],a)||!ps(e,t,R,V[1],a))&&d(V,{source:U,range:g===1?"end":"start",mode:r})},D=function(B,U){if(s){var G={date:"month",week:"month",month:"year",quarter:"year"},V=G[a];if(V&&!ps(e,t,B,U,V))return gC(e,a,U,-1);if(a==="year"&&B){var W=Math.floor(e.getYear(B)/10),$=Math.floor(e.getYear(U)/10);if(W!==$)return gC(e,a,U,-1)}}return U},F=m.useRef(null);return gr(function(){if(i&&!l[g]){var L=h?null:e.getNow();if(F.current!==null&&F.current!==g?L=[E,R][g^1]:n[g]?L=g===0?n[0]:D(n[0],n[1]):n[g^1]&&(L=n[g^1]),L){f&&e.isAfter(f,L)&&(L=f);var B=s?gC(e,a,L,1):L;p&&e.isAfter(B,p)&&(L=s?gC(e,a,p,-1):p),P(L,"reset")}}},[i,g,n[g]]),m.useEffect(function(){i?F.current=g:F.current=null},[i,g]),gr(function(){i&&l&&l[g]&&P(l[g],"reset")},[i,g]),[I,P]}function VTe(e,t){var n=m.useRef(e),r=m.useState({}),i=Oe(r,2),o=i[1],a=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,o({})};return[a,s,a(!0)]}var Lst=[];function GTe(e,t,n){var r=function(a){return a.map(function(s){return ga(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,u=0;u<l;u+=1){var d=a[u]||null,f=s[u]||null;if(d!==f&&!$Te(e,d,f)){c=u;break}}return[c<0,c!==0]};return[r,i]}function WTe(e,t){return at(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function $st(e){var t=VTe(e),n=Oe(t,2),r=n[0],i=n[1],o=Wn(function(){i(e)});return m.useEffect(function(){o()},[e]),[r,i]}function YTe(e,t,n,r,i,o,a,s,l){var c=Fn(o,{value:a}),u=Oe(c,2),d=u[0],f=u[1],p=d||Lst,h=$st(p),g=Oe(h,2),v=g[0],y=g[1],_=GTe(e,t,n),b=Oe(_,2),S=b[0],C=b[1],E=Wn(function(x){var T=at(x);if(r)for(var R=0;R<2;R+=1)T[R]=T[R]||null;else i&&(T=WTe(T.filter(function(L){return L}),e));var N=C(v(),T),I=Oe(N,2),P=I[0],D=I[1];if(!P&&(y(T),s)){var F=S(T);s(T,F,{range:D?"end":"start"})}}),w=function(){l&&l(v())};return[p,f,v,E,w]}function qTe(e,t,n,r,i,o,a,s,l,c){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,h=e.allowEmpty,g=e.order,v=o.some(function(P){return P})?!1:g,y=GTe(u,d,a),_=Oe(y,2),b=_[0],S=_[1],C=VTe(t),E=Oe(C,2),w=E[0],x=E[1],T=Wn(function(){x(t)});m.useEffect(function(){T()},[t]);var R=Wn(function(P){var D=P===null,F=at(P||w());if(D)for(var L=Math.max(o.length,F.length),B=0;B<L;B+=1)o[B]||(F[B]=null);v&&F[0]&&F[1]&&(F=WTe(F,u)),i(F);var U=F,G=Oe(U,2),V=G[0],W=G[1],$=!V,H=!W,K=h?(!$||h[0])&&(!H||h[1]):!0,re=!g||$||H||ps(u,d,V,W,f)||u.isAfter(W,V),Q=(o[0]||!V||!c(V,{activeIndex:0}))&&(o[1]||!W||!c(W,{from:V,activeIndex:1})),A=D||K&&re&&Q;if(A){n(F);var k=S(F,t),Z=Oe(k,1),ne=Z[0];p&&!ne&&p(D&&F.every(function(oe){return!oe})?null:F,b(F))}return A}),N=Wn(function(P,D){var F=qC(w(),P,r()[P]);x(F),D&&R()}),I=!s&&!l;return vq(!I,function(){I&&(R(),i(t),T())},2),[N,R]}function KTe(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function Fst(e,t,n,r,i,o){var a=e;function s(d,f,p){var h=o[d](a),g=p.find(function(b){return b.value===h});if(!g||g.disabled){var v=p.filter(function(b){return!b.disabled}),y=at(v).reverse(),_=y.find(function(b){return b.value<=h})||v[0];_&&(h=_.value,a=o[f](a,h))}return h}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",i(l,c,u)),a}function oO(){return[]}function aO(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&a.push({label:pq(l,o),value:l,disabled:c})}return a}function _q(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,o=r.hourStep,a=o===void 0?1:o,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,f=d===void 0?100:d,p=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,_=m.useMemo(function(){return n||e.getNow()},[n,e]),b=m.useCallback(function(U){var G=(h==null?void 0:h(U))||{};return[G.disabledHours||g||oO,G.disabledMinutes||v||oO,G.disabledSeconds||y||oO,G.disabledMilliseconds||oO]},[h,g,v,y]),S=m.useMemo(function(){return b(_)},[_,b]),C=Oe(S,4),E=C[0],w=C[1],x=C[2],T=C[3],R=m.useCallback(function(U,G,V,W){var $=aO(0,23,a,p,U()),H=i?$.map(function(A){return q(q({},A),{},{label:pq(A.value%12||12,2)})}):$,K=function(k){return aO(0,59,l,p,G(k))},re=function(k,Z){return aO(0,59,u,p,V(k,Z))},Q=function(k,Z,ne){return aO(0,999,f,p,W(k,Z,ne),3)};return[H,K,re,Q]},[p,a,i,f,l,u]),N=m.useMemo(function(){return R(E,w,x,T)},[R,E,w,x,T]),I=Oe(N,4),P=I[0],D=I[1],F=I[2],L=I[3],B=function(G,V){var W=function(){return P},$=D,H=F,K=L;if(V){var re=b(V),Q=Oe(re,4),A=Q[0],k=Q[1],Z=Q[2],ne=Q[3],oe=R(A,k,Z,ne),ae=Oe(oe,4),ue=ae[0],fe=ae[1],se=ae[2],pe=ae[3];W=function(){return ue},$=fe,H=se,K=pe}var _e=Fst(G,W,$,H,K,e);return _e};return[B,P,D,F,L]}function Bst(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,o=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=m.useContext(hd),p=f.prefixCls,h=f.locale,g=f.button,v=g===void 0?"button":g,y=u.getNow(),_=_q(u,o,y),b=Oe(_,1),S=b[0],C=r==null?void 0:r(t),E=d(y,{type:t}),w=function(){if(!E){var D=S(y);s(D)}},x="".concat(p,"-now"),T="".concat(x,"-btn"),R=i&&m.createElement("li",{className:x},m.createElement("a",{className:Re(T,E&&"".concat(T,"-disabled")),"aria-disabled":E,onClick:w},n==="date"?h.today:h.now)),N=c&&m.createElement("li",{className:"".concat(p,"-ok")},m.createElement(v,{disabled:l,onClick:a},h.ok)),I=(R||N)&&m.createElement("ul",{className:"".concat(p,"-ranges")},R,N);return!C&&!I?null:m.createElement("div",{className:"".concat(p,"-footer")},C&&m.createElement("div",{className:"".concat(p,"-footer-extra")},C),I)}function QTe(e,t,n){function r(i,o){var a=i.findIndex(function(l){return ps(e,t,l,o,n)});if(a===-1)return[].concat(at(i),[o]);var s=at(i);return s.splice(a,1),s}return r}var A_=m.createContext(null);function qD(){return m.useContext(A_)}function uS(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,_=e.superNextIcon,b=r.getNow(),S={now:b,values:f,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:_};return[S,b]}var hh=m.createContext({});function Px(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,o=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,p=e.disabledDate,h=qD(),g=h.prefixCls,v=h.panelType,y=h.now,_=h.disabledDate,b=h.cellRender,S=h.onHover,C=h.hoverValue,E=h.hoverRangeValue,w=h.generateConfig,x=h.values,T=h.locale,R=h.onSelect,N=p||_,I="".concat(g,"-cell"),P=m.useContext(hh),D=P.onCellDblClick,F=function(H){return x.some(function(K){return K&&ps(w,T,H,K,v)})},L=[],B=0;B<t;B+=1){for(var U=[],G=void 0,V=function(){var H=B*n+W,K=i(r,H),re=N==null?void 0:N(K,{type:v});W===0&&(G=K,o&&U.push(o(G)));var Q=!1,A=!1,k=!1;if(f&&E){var Z=Oe(E,2),ne=Z[0],oe=Z[1];Q=YD(w,ne,oe,K),A=ps(w,T,K,ne,v),k=ps(w,T,K,oe,v)}var ae=s?ga(K,{locale:T,format:s,generateConfig:w}):void 0,ue=m.createElement("div",{className:"".concat(I,"-inner")},l(K));U.push(m.createElement("td",{key:W,title:ae,className:Re(I,q(ie(ie(ie(ie(ie(ie({},"".concat(I,"-disabled"),re),"".concat(I,"-hover"),(C||[]).some(function(fe){return ps(w,T,K,fe,v)})),"".concat(I,"-in-range"),Q&&!A&&!k),"".concat(I,"-range-start"),A),"".concat(I,"-range-end"),k),"".concat(g,"-cell-selected"),!E&&v!=="week"&&F(K)),c(K))),onClick:function(){re||R(K)},onDoubleClick:function(){!re&&D&&D()},onMouseEnter:function(){re||S==null||S(K)},onMouseLeave:function(){re||S==null||S(null)}},b?b(K,{prefixCls:g,originNode:ue,today:y,type:v,locale:T}):ue))},W=0;W<n;W+=1)V();L.push(m.createElement("tr",{key:B,className:a==null?void 0:a(G)},U))}return m.createElement("div",{className:"".concat(g,"-body")},m.createElement("table",{className:"".concat(g,"-content")},u&&m.createElement("thead",null,m.createElement("tr",null,u)),m.createElement("tbody",null,L)))}var sO={visibility:"hidden"};function dS(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,s=qD(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"‹":c,d=s.nextIcon,f=d===void 0?"›":d,p=s.superPrevIcon,h=p===void 0?"«":p,g=s.superNextIcon,v=g===void 0?"»":g,y=s.minDate,_=s.maxDate,b=s.generateConfig,S=s.locale,C=s.pickerValue,E=s.panelType,w="".concat(l,"-header"),x=m.useContext(hh),T=x.hidePrev,R=x.hideNext,N=x.hideHeader,I=m.useMemo(function(){if(!y||!t||!o)return!1;var $=o(t(-1,C));return!rO(b,S,$,y,E)},[y,t,C,o,b,S,E]),P=m.useMemo(function(){if(!y||!n||!o)return!1;var $=o(n(-1,C));return!rO(b,S,$,y,E)},[y,n,C,o,b,S,E]),D=m.useMemo(function(){if(!_||!t||!i)return!1;var $=i(t(1,C));return!rO(b,S,_,$,E)},[_,t,C,i,b,S,E]),F=m.useMemo(function(){if(!_||!n||!i)return!1;var $=i(n(1,C));return!rO(b,S,_,$,E)},[_,n,C,i,b,S,E]),L=function(H){t&&r(t(H,C))},B=function(H){n&&r(n(H,C))};if(N)return null;var U="".concat(w,"-prev-btn"),G="".concat(w,"-next-btn"),V="".concat(w,"-super-prev-btn"),W="".concat(w,"-super-next-btn");return m.createElement("div",{className:w},n&&m.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return B(-1)},tabIndex:-1,className:Re(V,P&&"".concat(V,"-disabled")),disabled:P,style:T?sO:{}},h),t&&m.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return L(-1)},tabIndex:-1,className:Re(U,I&&"".concat(U,"-disabled")),disabled:I,style:T?sO:{}},u),m.createElement("div",{className:"".concat(w,"-view")},a),t&&m.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return L(1)},tabIndex:-1,className:Re(G,D&&"".concat(G,"-disabled")),disabled:D,style:R?sO:{}},f),n&&m.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return B(1)},tabIndex:-1,className:Re(W,F&&"".concat(W,"-disabled")),disabled:F,style:R?sO:{}},v))}function KD(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,o=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,d=e.disabledDate,f=e.onSelect,p=e.onHover,h=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),y=u==="week",_=uS(e,u),b=Oe(_,2),S=b[0],C=b[1],E=o.locale.getWeekFirstDay(i.locale),w=o.setDate(a,1),x=Ist(i.locale,o,w),T=o.getMonth(a),R=h===void 0?y:h,N=R?function($){var H=d==null?void 0:d($,{type:"week"});return m.createElement("td",{key:"week",className:Re(v,"".concat(v,"-week"),ie({},"".concat(v,"-disabled"),H)),onClick:function(){H||f($)},onMouseEnter:function(){H||p==null||p($)},onMouseLeave:function(){H||p==null||p(null)}},m.createElement("div",{className:"".concat(v,"-inner")},o.locale.getWeek(i.locale,$)))}:null,I=[],P=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);N&&I.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var D=0;D<iF;D+=1)I.push(m.createElement("th",{key:D},P[(D+E)%iF]));var F=function(H,K){return o.addDate(H,K)},L=function(H){return ga(H,{locale:i,format:i.cellDateFormat,generateConfig:o})},B=function(H){var K=ie(ie({},"".concat(t,"-cell-in-view"),hq(o,H,a)),"".concat(t,"-cell-today"),gq(o,H,C));return K},U=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),G=m.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},ga(a,{locale:i,format:i.yearFormat,generateConfig:o})),V=m.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?ga(a,{locale:i,format:i.monthFormat,generateConfig:o}):U[T]),W=i.monthBeforeYear?[V,G]:[G,V];return m.createElement(A_.Provider,{value:S},m.createElement("div",{className:Re(g,h&&"".concat(g,"-show-week"))},m.createElement(dS,{offset:function(H){return o.addMonth(a,H)},superOffset:function(H){return o.addYear(a,H)},onChange:s,getStart:function(H){return o.setDate(H,1)},getEnd:function(H){var K=o.setDate(H,1);return K=o.addMonth(K,1),o.addDate(K,-1)}},W),m.createElement(Px,Qe({titleFormat:i.fieldDateFormat},e,{colNum:iF,rowNum:6,baseDate:x,headerCells:I,getCellDate:F,getCellText:L,getCellClassName:B,prefixColumn:N,cellSelection:!y}))))}var Ust=1/3;function jst(e,t){var n=m.useRef(!1),r=m.useRef(null),i=m.useRef(null),o=function(){return n.current},a=function(){rr.cancel(r.current),n.current=!1},s=m.useRef(),l=function(){var d=e.current;if(i.current=null,s.current=0,d){var f=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),h=function g(){a(),n.current=!0,s.current+=1;var v=d.scrollTop,y=p.offsetTop,_=f.offsetTop,b=_-y;if(_===0&&f!==p||!Ex(d)){s.current<=5&&(r.current=rr(g));return}var S=v+(b-v)*Ust,C=Math.abs(b-S);if(i.current!==null&&i.current<C){a();return}if(i.current=C,C<=1){d.scrollTop=b,a();return}d.scrollTop=S,r.current=rr(g)};f&&p&&h()}},c=Wn(l);return[c,a,o]}var Hst=300;function zst(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function IE(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,o=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=qD(),u=c.prefixCls,d=c.cellRender,f=c.now,p=c.locale,h="".concat(u,"-time-panel"),g="".concat(u,"-time-panel-cell"),v=m.useRef(null),y=m.useRef(),_=function(){clearTimeout(y.current)},b=jst(v,n??r),S=Oe(b,3),C=S[0],E=S[1],w=S[2];gr(function(){return C(),_(),function(){E(),_()}},[n,r,zst(t)]);var x=function(N){_();var I=N.target;!w()&&l&&(y.current=setTimeout(function(){var P=v.current,D=P.querySelector("li").offsetTop,F=Array.from(P.querySelectorAll("li")),L=F.map(function(W){return W.offsetTop-D}),B=L.map(function(W,$){return t[$].disabled?Number.MAX_SAFE_INTEGER:Math.abs(W-I.scrollTop)}),U=Math.min.apply(Math,at(B)),G=B.findIndex(function(W){return W===U}),V=t[G];V&&!V.disabled&&o(V.value)},Hst))},T="".concat(h,"-column");return m.createElement("ul",{className:T,ref:v,"data-type":i,onScroll:x},t.map(function(R){var N=R.label,I=R.value,P=R.disabled,D=m.createElement("div",{className:"".concat(g,"-inner")},N);return m.createElement("li",{key:I,className:Re(g,ie(ie({},"".concat(g,"-selected"),n===I),"".concat(g,"-disabled"),P)),onClick:function(){P||o(I)},onDoubleClick:function(){!P&&s&&s()},onMouseEnter:function(){a(I)},onMouseLeave:function(){a(null)},"data-value":I},d?d(I,{prefixCls:u,originNode:D,today:f,type:"time",subType:i,locale:p}):D)}))}function cm(e){return e<12}function Vst(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,o=e.use12Hours,a=e.changeOnScroll,s=qD(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,f=s.onSelect,p=s.onHover,h=p===void 0?function(){}:p,g=s.pickerValue,v=(c==null?void 0:c[0])||null,y=m.useContext(hh),_=y.onCellDblClick,b=_q(u,e,v),S=Oe(b,5),C=S[0],E=S[1],w=S[2],x=S[3],T=S[4],R=function(qe){var Ge=v&&u[qe](v),We=g&&u[qe](g);return[Ge,We]},N=R("getHour"),I=Oe(N,2),P=I[0],D=I[1],F=R("getMinute"),L=Oe(F,2),B=L[0],U=L[1],G=R("getSecond"),V=Oe(G,2),W=V[0],$=V[1],H=R("getMillisecond"),K=Oe(H,2),re=K[0],Q=K[1],A=P===null?null:cm(P)?"am":"pm",k=m.useMemo(function(){return o?cm(P)?E.filter(function(ze){return cm(ze.value)}):E.filter(function(ze){return!cm(ze.value)}):E},[P,E,o]),Z=function(qe,Ge){var We,Lt=qe.filter(function(ut){return!ut.disabled});return Ge??(Lt==null||(We=Lt[0])===null||We===void 0?void 0:We.value)},ne=Z(E,P),oe=m.useMemo(function(){return w(ne)},[w,ne]),ae=Z(oe,B),ue=m.useMemo(function(){return x(ne,ae)},[x,ne,ae]),fe=Z(ue,W),se=m.useMemo(function(){return T(ne,ae,fe)},[T,ne,ae,fe]),pe=Z(se,re),_e=m.useMemo(function(){if(!o)return[];var ze=u.getNow(),qe=u.setHour(ze,6),Ge=u.setHour(ze,18),We=function(ut,ft){var bt=d.cellMeridiemFormat;return bt?ga(ut,{generateConfig:u,locale:d,format:bt}):ft};return[{label:We(qe,"AM"),value:"am",disabled:E.every(function(Lt){return Lt.disabled||!cm(Lt.value)})},{label:We(Ge,"PM"),value:"pm",disabled:E.every(function(Lt){return Lt.disabled||cm(Lt.value)})}]},[E,o,u,d]),Te=function(qe){var Ge=C(qe);f(Ge)},xe=m.useMemo(function(){var ze=v||g||u.getNow(),qe=function(We){return We!=null};return qe(P)?(ze=u.setHour(ze,P),ze=u.setMinute(ze,B),ze=u.setSecond(ze,W),ze=u.setMillisecond(ze,re)):qe(D)?(ze=u.setHour(ze,D),ze=u.setMinute(ze,U),ze=u.setSecond(ze,$),ze=u.setMillisecond(ze,Q)):qe(ne)&&(ze=u.setHour(ze,ne),ze=u.setMinute(ze,ae),ze=u.setSecond(ze,fe),ze=u.setMillisecond(ze,pe)),ze},[v,g,P,B,W,re,ne,ae,fe,pe,D,U,$,Q,u]),ge=function(qe,Ge){return qe===null?null:u[Ge](xe,qe)},Ce=function(qe){return ge(qe,"setHour")},ye=function(qe){return ge(qe,"setMinute")},be=function(qe){return ge(qe,"setSecond")},Ee=function(qe){return ge(qe,"setMillisecond")},Me=function(qe){return qe===null?null:qe==="am"&&!cm(P)?u.setHour(xe,P-12):qe==="pm"&&cm(P)?u.setHour(xe,P+12):xe},X=function(qe){Te(Ce(qe))},Y=function(qe){Te(ye(qe))},J=function(qe){Te(be(qe))},he=function(qe){Te(Ee(qe))},ve=function(qe){Te(Me(qe))},ce=function(qe){h(Ce(qe))},$e=function(qe){h(ye(qe))},Be=function(qe){h(be(qe))},me=function(qe){h(Ee(qe))},Fe=function(qe){h(Me(qe))},Xe={onDblClick:_,changeOnScroll:a};return m.createElement("div",{className:"".concat(l,"-content")},t&&m.createElement(IE,Qe({units:k,value:P,optionalValue:D,type:"hour",onChange:X,onHover:ce},Xe)),n&&m.createElement(IE,Qe({units:oe,value:B,optionalValue:U,type:"minute",onChange:Y,onHover:$e},Xe)),r&&m.createElement(IE,Qe({units:ue,value:W,optionalValue:$,type:"second",onChange:J,onHover:Be},Xe)),i&&m.createElement(IE,Qe({units:se,value:re,optionalValue:Q,type:"millisecond",onChange:he,onHover:me},Xe)),o&&m.createElement(IE,Qe({units:_e,value:A,type:"meridiem",onChange:ve,onHover:Fe},Xe)))}function XTe(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,o=e.showTime,a=o||{},s=a.format,l="".concat(t,"-time-panel"),c=uS(e,"time"),u=Oe(c,1),d=u[0];return m.createElement(A_.Provider,{value:d},m.createElement("div",{className:Re(l)},m.createElement(dS,null,n?ga(n,{locale:r,format:s,generateConfig:i}):" "),m.createElement(Vst,o)))}function Gst(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,o=e.value,a=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=_q(n,r),u=Oe(c,1),d=u[0],f=function(v){return o?bA(n,v,o):bA(n,v,a)},p=function(v){s==null||s(v&&f(v))},h=function(v){var y=f(v);i(d(y,y))};return m.createElement("div",{className:l},m.createElement(KD,Qe({},e,{onSelect:h,onHover:p})),m.createElement(XTe,e))}function Wst(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=uS(e,"decade"),c=Oe(l,1),u=c[0],d=function(E){var w=Math.floor(r.getYear(E)/100)*100;return r.setYear(E,w)},f=function(E){var w=d(E);return r.addYear(w,99)},p=d(i),h=f(i),g=r.addYear(p,-10),v=function(E,w){return r.addYear(E,w*10)},y=function(E){var w=n.cellYearFormat,x=ga(E,{locale:n,format:w,generateConfig:r}),T=ga(r.addYear(E,9),{locale:n,format:w,generateConfig:r});return"".concat(x,"-").concat(T)},_=function(E){return ie({},"".concat(t,"-cell-in-view"),w9(r,E,p)||w9(r,E,h)||YD(r,p,h,E))},b=o?function(C,E){var w=r.setDate(C,1),x=r.setMonth(w,0),T=r.setYear(x,Math.floor(r.getYear(x)/10)*10),R=r.addYear(T,10),N=r.addDate(R,-1);return o(T,E)&&o(N,E)}:null,S="".concat(ga(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(ga(h,{locale:n,format:n.yearFormat,generateConfig:r}));return m.createElement(A_.Provider,{value:u},m.createElement("div",{className:s},m.createElement(dS,{superOffset:function(E){return r.addYear(i,E*100)},onChange:a,getStart:d,getEnd:f},S),m.createElement(Px,Qe({},e,{disabledDate:b,colNum:3,rowNum:4,baseDate:g,getCellDate:v,getCellText:y,getCellClassName:_}))))}function Yst(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=uS(e,"month"),u=Oe(c,1),d=u[0],f=r.setMonth(i,0),p=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(S,C){return r.addMonth(S,C)},g=function(S){var C=r.getMonth(S);return n.monthFormat?ga(S,{locale:n,format:n.monthFormat,generateConfig:r}):p[C]},v=function(){return ie({},"".concat(t,"-cell-in-view"),!0)},y=o?function(b,S){var C=r.setDate(b,1),E=r.setMonth(C,r.getMonth(C)+1),w=r.addDate(E,-1);return o(C,S)&&o(w,S)}:null,_=m.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},ga(i,{locale:n,format:n.yearFormat,generateConfig:r}));return m.createElement(A_.Provider,{value:d},m.createElement("div",{className:l},m.createElement(dS,{superOffset:function(S){return r.addYear(i,S)},onChange:a,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},_),m.createElement(Px,Qe({},e,{disabledDate:y,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:h,getCellText:g,getCellClassName:v}))))}function qst(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.onPickerValueChange,a=e.onModeChange,s="".concat(t,"-quarter-panel"),l=uS(e,"quarter"),c=Oe(l,1),u=c[0],d=r.setMonth(i,0),f=function(y,_){return r.addMonth(y,_*3)},p=function(y){return ga(y,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return ie({},"".concat(t,"-cell-in-view"),!0)},g=m.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},ga(i,{locale:n,format:n.yearFormat,generateConfig:r}));return m.createElement(A_.Provider,{value:u},m.createElement("div",{className:s},m.createElement(dS,{superOffset:function(y){return r.addYear(i,y)},onChange:o,getStart:function(y){return r.setMonth(y,0)},getEnd:function(y){return r.setMonth(y,11)}},g),m.createElement(Px,Qe({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:f,getCellText:p,getCellClassName:h}))))}function Kst(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,o=e.hoverValue,a=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(d){var f={};if(a){var p=Oe(a,2),h=p[0],g=p[1],v=hC(n,s,h,d),y=hC(n,s,g,d);f["".concat(l,"-range-start")]=v,f["".concat(l,"-range-end")]=y,f["".concat(l,"-range-hover")]=!v&&!y&&YD(n,h,g,d)}return o&&(f["".concat(l,"-hover")]=o.some(function(_){return hC(n,s,d,_)})),Re(l,ie({},"".concat(l,"-selected"),!a&&hC(n,s,i,d)),f)};return m.createElement(KD,Qe({},e,{mode:"week",panelName:"week",rowClassName:c}))}function Qst(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=uS(e,"year"),u=Oe(c,1),d=u[0],f=function(w){var x=Math.floor(r.getYear(w)/10)*10;return r.setYear(w,x)},p=function(w){var x=f(w);return r.addYear(x,9)},h=f(i),g=p(i),v=r.addYear(h,-1),y=function(w,x){return r.addYear(w,x)},_=function(w){return ga(w,{locale:n,format:n.cellYearFormat,generateConfig:r})},b=function(w){return ie({},"".concat(t,"-cell-in-view"),Xv(r,w,h)||Xv(r,w,g)||YD(r,h,g,w))},S=o?function(E,w){var x=r.setMonth(E,0),T=r.setDate(x,1),R=r.addYear(T,1),N=r.addDate(R,-1);return o(T,w)&&o(N,w)}:null,C=m.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},ga(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",ga(g,{locale:n,format:n.yearFormat,generateConfig:r}));return m.createElement(A_.Provider,{value:d},m.createElement("div",{className:l},m.createElement(dS,{superOffset:function(w){return r.addYear(i,w*10)},onChange:a,getStart:f,getEnd:p},C),m.createElement(Px,Qe({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:_,getCellClassName:b}))))}var Xst={date:KD,datetime:Gst,week:Kst,month:Yst,quarter:qst,year:Qst,decade:Wst,time:XTe};function Zst(e,t){var n,r=e.locale,i=e.generateConfig,o=e.direction,a=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,d=e.value,f=e.onChange,p=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,v=e.onPickerValueChange,y=e.mode,_=e.onPanelChange,b=e.picker,S=b===void 0?"date":b,C=e.showTime,E=e.hoverValue,w=e.hoverRangeValue,x=e.cellRender,T=e.dateRender,R=e.monthCellRender,N=e.components,I=N===void 0?{}:N,P=e.hideHeader,D=((n=m.useContext(hd))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",F=m.useRef();m.useImperativeHandle(t,function(){return{nativeElement:F.current}});var L=DTe(e),B=Oe(L,4),U=B[0],G=B[1],V=B[2],W=B[3],$=MTe(r,G),H=S==="date"&&C?"datetime":S,K=m.useMemo(function(){return kTe(H,V,W,U,$)},[H,V,W,U,$]),re=i.getNow(),Q=Fn(S,{value:y,postState:function(Fe){return Fe||"date"}}),A=Oe(Q,2),k=A[0],Z=A[1],ne=k==="date"&&K?"datetime":k,oe=QTe(i,r,H),ae=Fn(u,{value:d}),ue=Oe(ae,2),fe=ue[0],se=ue[1],pe=m.useMemo(function(){var me=M_(fe).filter(function(Fe){return Fe});return c?me:me.slice(0,1)},[fe,c]),_e=Wn(function(me){se(me),f&&(me===null||pe.length!==me.length||pe.some(function(Fe,Xe){return!ps(i,r,Fe,me[Xe],H)}))&&(f==null||f(c?me:me[0]))}),Te=Wn(function(me){if(p==null||p(me),k===S){var Fe=c?oe(pe,me):[me];_e(Fe)}}),xe=Fn(h||pe[0]||re,{value:g}),ge=Oe(xe,2),Ce=ge[0],ye=ge[1];m.useEffect(function(){pe[0]&&!g&&ye(pe[0])},[pe[0]]);var be=function(Fe,Xe){_==null||_(Fe||g,Xe||k)},Ee=function(Fe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ye(Fe),v==null||v(Fe),Xe&&be(Fe)},Me=function(Fe,Xe){Z(Fe),Xe&&Ee(Xe),be(Xe,Fe)},X=function(Fe){if(Te(Fe),Ee(Fe),k!==S){var Xe=["decade","year"],ze=[].concat(Xe,["month"]),qe={quarter:[].concat(Xe,["quarter"]),week:[].concat(at(ze),["week"]),date:[].concat(at(ze),["date"])},Ge=qe[S]||ze,We=Ge.indexOf(k),Lt=Ge[We+1];Lt&&Me(Lt,Fe)}},Y=m.useMemo(function(){var me,Fe;if(Array.isArray(w)){var Xe=Oe(w,2);me=Xe[0],Fe=Xe[1]}else me=w;return!me&&!Fe?null:(me=me||Fe,Fe=Fe||me,i.isAfter(me,Fe)?[Fe,me]:[me,Fe])},[w,i]),J=mq(x,T,R),he=I[ne]||Xst[ne]||KD,ve=m.useContext(hh),ce=m.useMemo(function(){return q(q({},ve),{},{hideHeader:P})},[ve,P]),$e="".concat(D,"-panel"),Be=WD(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return m.createElement(hh.Provider,{value:ce},m.createElement("div",{ref:F,tabIndex:l,className:Re($e,ie({},"".concat($e,"-rtl"),o==="rtl"))},m.createElement(he,Qe({},Be,{showTime:K,prefixCls:D,locale:$,generateConfig:i,onModeChange:Me,pickerValue:Ce,onPickerValueChange:function(Fe){Ee(Fe,!0)},value:pe[0],onSelect:X,values:pe,cellRender:J,hoverRangeValue:Y,hoverValue:E}))))}var aF=m.memo(m.forwardRef(Zst));function Jst(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,o=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=m.useContext(hd),u=c.prefixCls,d=c.generateConfig,f=m.useCallback(function(_,b){return gC(d,t,_,b)},[d,t]),p=m.useMemo(function(){return f(r,1)},[r,f]),h=function(b){i(f(b,-1))},g={onCellDblClick:function(){o&&a()}},v=t==="time",y=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?m.createElement("div",{className:"".concat(u,"-panels")},m.createElement(hh.Provider,{value:q(q({},g),{},{hideNext:!0})},m.createElement(aF,y)),m.createElement(hh.Provider,{value:q(q({},g),{},{hidePrev:!0})},m.createElement(aF,Qe({},y,{pickerValue:p,onPickerValueChange:h})))):m.createElement(hh.Provider,{value:q({},g)},m.createElement(aF,y))}function Lie(e){return typeof e=="function"?e():e}function elt(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?m.createElement("div",{className:"".concat(t,"-presets")},m.createElement("ul",null,n.map(function(o,a){var s=o.label,l=o.value;return m.createElement("li",{key:a,onClick:function(){r(Lie(l))},onMouseEnter:function(){i(Lie(l))},onMouseLeave:function(){i(null)}},s)}))):null}function ZTe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,o=e.range,a=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,h=e.onBlur,g=e.onPanelMouseDown,v=e.direction,y=e.value,_=e.onSelect,b=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,E=e.onSubmit,w=m.useContext(hd),x=w.prefixCls,T="".concat(x,"-panel"),R=v==="rtl",N=m.useRef(null),I=m.useRef(null),P=m.useState(0),D=Oe(P,2),F=D[0],L=D[1],B=m.useState(0),U=Oe(B,2),G=U[0],V=U[1],W=function(_e){_e.offsetWidth&&L(_e.offsetWidth)};m.useEffect(function(){if(o){var pe,_e=((pe=N.current)===null||pe===void 0?void 0:pe.offsetWidth)||0,Te=F-_e;l<=Te?V(0):V(l+_e-F)}},[F,l,o]);function $(pe){return pe.filter(function(_e){return _e})}var H=m.useMemo(function(){return $(M_(y))},[y]),K=r==="time"&&!H.length,re=m.useMemo(function(){return K?$([S]):H},[K,H,S]),Q=K?S:H,A=m.useMemo(function(){return re.length?re.some(function(pe){return b(pe)}):!0},[re,b]),k=function(){K&&_(S),C(),E()},Z=m.createElement("div",{className:"".concat(x,"-panel-layout")},m.createElement(elt,{prefixCls:x,presets:u,onClick:f,onHover:d}),m.createElement("div",null,m.createElement(Jst,Qe({},e,{value:Q})),m.createElement(Bst,Qe({},e,{showNow:a?!1:i,invalid:A,onSubmit:k}))));t&&(Z=t(Z));var ne="".concat(T,"-container"),oe="marginLeft",ae="marginRight",ue=m.createElement("div",{onMouseDown:g,tabIndex:-1,className:Re(ne,"".concat(x,"-").concat(n,"-panel-container")),style:ie(ie({},R?ae:oe,G),R?oe:ae,"auto"),onFocus:p,onBlur:h},Z);if(o){var fe=GD(c,R),se=wTe(fe,R);ue=m.createElement("div",{onMouseDown:g,ref:I,className:Re("".concat(x,"-range-wrapper"),"".concat(x,"-").concat(r,"-range-wrapper"))},m.createElement("div",{ref:N,className:"".concat(x,"-range-arrow"),style:ie({},se,l)}),m.createElement(hs,{onResize:W},ue))}return ue}function JTe(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,o=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,h=e.onInvalid,g=e.open,v=e.onOpenChange,y=e.onKeyDown,_=e.onChange,b=e.activeHelp,S=e.name,C=e.autoComplete,E=e.id,w=e.value,x=e.invalid,T=e.placeholder,R=e.disabled,N=e.activeIndex,I=e.allHelp,P=e.picker,D=function($,H){var K=i.locale.parse(o.locale,$,[H]);return K&&i.isValidate(K)?K:null},F=n[0],L=m.useCallback(function(W){return ga(W,{locale:o,format:F,generateConfig:i})},[o,i,F]),B=m.useMemo(function(){return w.map(L)},[w,L]),U=m.useMemo(function(){var W=P==="time"?8:10,$=typeof F=="function"?F(i.getNow()).length:F.length;return Math.max(W,$)+2},[F,P,i]),G=function($){for(var H=0;H<n.length;H+=1){var K=n[H];if(typeof K=="string"){var re=D($,K);if(re)return re}}return!1},V=function($){function H(Q){return $!==void 0?Q[$]:Q}var K=ao(e,{aria:!0,data:!0}),re=q(q({},K),{},{format:r,validateFormat:function(A){return!!G(A)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:S,autoComplete:C,size:U,id:H(E),value:H(B)||"",invalid:H(x),placeholder:H(T),active:N===$,helped:I||b&&N===$,disabled:H(R),onFocus:function(A){d(A,$)},onBlur:function(A){f(A,$)},onSubmit:u,onChange:function(A){p();var k=G(A);if(k){h(!1,$),_(k,$);return}h(!!A,$)},onHelp:function(){v(!0,{index:$})},onKeyDown:function(A){var k=!1;if(y==null||y(A,function(){k=!0}),!A.defaultPrevented&&!k)switch(A.key){case"Escape":v(!1,{index:$});break;case"Enter":g||v(!0);break}}},t==null?void 0:t({valueTexts:B}));return Object.keys(re).forEach(function(Q){re[Q]===void 0&&delete re[Q]}),re};return[V,L]}var tlt=["onMouseEnter","onMouseLeave"];function eRe(e){return m.useMemo(function(){return WD(e,tlt)},[e])}var nlt=["icon","type"],rlt=["onClear"];function QD(e){var t=e.icon,n=e.type,r=It(e,nlt),i=m.useContext(hd),o=i.prefixCls;return t?m.createElement("span",Qe({className:"".concat(o,"-").concat(n)},r),t):null}function x9(e){var t=e.onClear,n=It(e,rlt);return m.createElement(QD,Qe({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var sF=["YYYY","MM","DD","HH","mm","ss","SSS"],$ie="顧",ilt=function(){function e(t){Yr(this,e),ie(this,"format",void 0),ie(this,"maskFormat",void 0),ie(this,"cells",void 0),ie(this,"maskCells",void 0),this.format=t;var n=sF.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return $ie.repeat(s.length)});var i=new RegExp("(".concat(sF.join("|"),")")),o=(t.split(i)||[]).filter(function(s){return s}),a=0;this.cells=o.map(function(s){var l=sF.includes(s),c=a,u=a+s.length;return a=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return qr(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,o=r.end;return[i||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],o=n[r];if(!o||i!==$ie&&i!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],s=a.start,l=a.end;if(n>=s&&n<=l)return o;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c<r&&(r=c,i=o)}return i}}]),e}();function olt(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var alt=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],T9=m.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,i=r===void 0?!0:r,o=e.suffixIcon,a=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,d=e.onSubmit,f=e.onKeyDown,p=e.preserveInvalidOnBlur,h=p===void 0?!1:p,g=e.invalid,v=e.clearIcon,y=It(e,alt),_=e.value,b=e.onFocus,S=e.onBlur,C=e.onMouseUp,E=m.useContext(hd),w=E.prefixCls,x=E.input,T=x===void 0?"input":x,R="".concat(w,"-input"),N=m.useState(!1),I=Oe(N,2),P=I[0],D=I[1],F=m.useState(_),L=Oe(F,2),B=L[0],U=L[1],G=m.useState(""),V=Oe(G,2),W=V[0],$=V[1],H=m.useState(null),K=Oe(H,2),re=K[0],Q=K[1],A=m.useState(null),k=Oe(A,2),Z=k[0],ne=k[1],oe=B||"";m.useEffect(function(){U(_)},[_]);var ae=m.useRef(),ue=m.useRef();m.useImperativeHandle(t,function(){return{nativeElement:ae.current,inputElement:ue.current,focus:function(me){ue.current.focus(me)},blur:function(){ue.current.blur()}}});var fe=m.useMemo(function(){return new ilt(a||"")},[a]),se=m.useMemo(function(){return c?[0,0]:fe.getSelection(re)},[fe,re,c]),pe=Oe(se,2),_e=pe[0],Te=pe[1],xe=function(me){me&&me!==a&&me!==_&&u()},ge=Wn(function(Be){s(Be)&&l(Be),U(Be),xe(Be)}),Ce=function(me){if(!a){var Fe=me.target.value;xe(Fe),U(Fe),l(Fe)}},ye=function(me){var Fe=me.clipboardData.getData("text");s(Fe)&&ge(Fe)},be=m.useRef(!1),Ee=function(){be.current=!0},Me=function(me){var Fe=me.target,Xe=Fe.selectionStart,ze=fe.getMaskCellIndex(Xe);Q(ze),ne({}),C==null||C(me),be.current=!1},X=function(me){D(!0),Q(0),$(""),b(me)},Y=function(me){S(me)},J=function(me){D(!1),Y(me)};vq(n,function(){!n&&!h&&U(_)});var he=function(me){me.key==="Enter"&&s(oe)&&d(),f==null||f(me)},ve=function(me){he(me);var Fe=me.key,Xe=null,ze=null,qe=Te-_e,Ge=a.slice(_e,Te),We=function(bt){Q(function(St){var Ht=St+bt;return Ht=Math.max(Ht,0),Ht=Math.min(Ht,fe.size()-1),Ht})},Lt=function(bt){var St=olt(Ge),Ht=Oe(St,3),xt=Ht[0],Nt=Ht[1],Vt=Ht[2],Ue=oe.slice(_e,Te),Ve=Number(Ue);if(isNaN(Ve))return String(Vt||(bt>0?xt:Nt));var je=Ve+bt,et=Nt-xt+1;return String(xt+(et+je-xt)%et)};switch(Fe){case"Backspace":case"Delete":Xe="",ze=Ge;break;case"ArrowLeft":Xe="",We(-1);break;case"ArrowRight":Xe="",We(1);break;case"ArrowUp":Xe="",ze=Lt(1);break;case"ArrowDown":Xe="",ze=Lt(-1);break;default:isNaN(Number(Fe))||(Xe=W+Fe,ze=Xe);break}if(Xe!==null&&($(Xe),Xe.length>=qe&&(We(1),$(""))),ze!==null){var ut=oe.slice(0,_e)+pq(ze,qe)+oe.slice(Te);ge(ut.slice(0,a.length))}ne({})},ce=m.useRef();gr(function(){if(!(!P||!a||be.current)){if(!fe.match(oe)){ge(a);return}return ue.current.setSelectionRange(_e,Te),ce.current=rr(function(){ue.current.setSelectionRange(_e,Te)}),function(){rr.cancel(ce.current)}}},[fe,a,P,oe,re,_e,Te,Z,ge]);var $e=a?{onFocus:X,onBlur:J,onKeyDown:ve,onMouseDown:Ee,onMouseUp:Me,onPaste:ye}:{};return m.createElement("div",{ref:ae,className:Re(R,ie(ie({},"".concat(R,"-active"),n&&i),"".concat(R,"-placeholder"),c))},m.createElement(T,Qe({ref:ue,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:he,onBlur:Y},$e,{value:oe,onChange:Ce})),m.createElement(QD,{type:"suffix",icon:o}),v)}),slt=["id","prefix","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","tabIndex"],llt=["index"],clt=["insetInlineStart","insetInlineEnd"];function ult(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,o=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=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,h=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var _=e.direction;e.onOpenChange;var b=e.onActiveOffset,S=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,w=e.tabIndex,x=It(e,slt),T=_==="rtl",R=m.useContext(hd),N=R.prefixCls,I=m.useMemo(function(){if(typeof n=="string")return[n];var ue=n||{};return[ue.start,ue.end]},[n]),P=m.useRef(),D=m.useRef(),F=m.useRef(),L=function(fe){var se;return(se=[D,F][fe])===null||se===void 0?void 0:se.current};m.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(fe){if(qt(fe)==="object"){var se,pe=fe||{},_e=pe.index,Te=_e===void 0?0:_e,xe=It(pe,llt);(se=L(Te))===null||se===void 0||se.focus(xe)}else{var ge;(ge=L(fe??0))===null||ge===void 0||ge.focus()}},blur:function(){var fe,se;(fe=L(0))===null||fe===void 0||fe.blur(),(se=L(1))===null||se===void 0||se.blur()}}});var B=eRe(x),U=m.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),G=JTe(q(q({},e),{},{id:I,placeholder:U})),V=Oe(G,1),W=V[0],$=GD(S,T),H=wTe($,T),K=$==null?void 0:$.toLowerCase().endsWith("right"),re=m.useState({position:"absolute",width:0}),Q=Oe(re,2),A=Q[0],k=Q[1],Z=Wn(function(){var ue=L(l);if(ue){var fe=ue.nativeElement,se=fe.offsetWidth,pe=fe.offsetLeft,_e=fe.offsetParent,Te=(_e==null?void 0:_e.offsetWidth)||0,xe=K?Te-se-pe:pe;k(function(ge){ge.insetInlineStart,ge.insetInlineEnd;var Ce=It(ge,clt);return q(q({},Ce),{},ie({width:se},H,xe))}),b(xe)}});m.useEffect(function(){Z()},[l]);var ne=i&&(g[0]&&!v[0]||g[1]&&!v[1]),oe=E&&!v[0],ae=E&&!oe&&!v[1];return m.createElement(hs,{onResize:Z},m.createElement("div",Qe({},B,{className:Re(N,"".concat(N,"-range"),ie(ie(ie(ie({},"".concat(N,"-focused"),c),"".concat(N,"-disabled"),v.every(function(ue){return ue})),"".concat(N,"-invalid"),y.some(function(ue){return ue})),"".concat(N,"-rtl"),T),d),style:f,ref:P,onClick:p,onMouseDown:function(fe){var se=fe.target;se!==D.current.inputElement&&se!==F.current.inputElement&&fe.preventDefault(),C==null||C(fe)}}),r&&m.createElement("div",{className:"".concat(N,"-prefix")},r),m.createElement(T9,Qe({ref:D},W(0),{autoFocus:oe,tabIndex:w,"date-range":"start"})),m.createElement("div",{className:"".concat(N,"-range-separator")},s),m.createElement(T9,Qe({ref:F},W(1),{autoFocus:ae,tabIndex:w,"date-range":"end"})),m.createElement("div",{className:"".concat(N,"-active-bar"),style:A}),m.createElement(QD,{type:"suffix",icon:o}),ne&&m.createElement(x9,{icon:i,onClear:h})))}var dlt=m.forwardRef(ult);function Fie(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function lO(e){return e===1?"end":"start"}function flt(e,t){var n=FTe(e,function(){var Kn=e.disabled,An=e.allowEmpty,Hn=Fie(Kn,!1),_r=Fie(An,!1);return{disabled:Hn,allowEmpty:_r}}),r=Oe(n,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,d=i.styles,f=i.classNames,p=i.placement,h=i.defaultValue,g=i.value,v=i.needConfirm,y=i.onKeyDown,_=i.disabled,b=i.allowEmpty,S=i.disabledDate,C=i.minDate,E=i.maxDate,w=i.defaultOpen,x=i.open,T=i.onOpenChange,R=i.locale,N=i.generateConfig,I=i.picker,P=i.showNow,D=i.showToday,F=i.showTime,L=i.mode,B=i.onPanelChange,U=i.onCalendarChange,G=i.onOk,V=i.defaultPickerValue,W=i.pickerValue,$=i.onPickerValueChange,H=i.inputReadOnly,K=i.suffixIcon,re=i.onFocus,Q=i.onBlur,A=i.presets,k=i.ranges,Z=i.components,ne=i.cellRender,oe=i.dateRender,ae=i.monthCellRender,ue=i.onClick,fe=UTe(t),se=BTe(x,w,_,T),pe=Oe(se,2),_e=pe[0],Te=pe[1],xe=function(An,Hn){(_.some(function(_r){return!_r})||!An)&&Te(An,Hn)},ge=YTe(N,R,s,!0,!1,h,g,U,G),Ce=Oe(ge,5),ye=Ce[0],be=Ce[1],Ee=Ce[2],Me=Ce[3],X=Ce[4],Y=Ee(),J=HTe(_,b,_e),he=Oe(J,9),ve=he[0],ce=he[1],$e=he[2],Be=he[3],me=he[4],Fe=he[5],Xe=he[6],ze=he[7],qe=he[8],Ge=function(An,Hn){ce(!0),re==null||re(An,{range:lO(Hn??Be)})},We=function(An,Hn){ce(!1),Q==null||Q(An,{range:lO(Hn??Be)})},Lt=m.useMemo(function(){if(!F)return null;var Kn=F.disabledTime,An=Kn?function(Hn){var _r=lO(Be),Qr=RTe(Y,Xe,Be);return Kn(Hn,_r,{from:Qr})}:void 0;return q(q({},F),{},{disabledTime:An})},[F,Be,Y,Xe]),ut=Fn([I,I],{value:L}),ft=Oe(ut,2),bt=ft[0],St=ft[1],Ht=bt[Be]||I,xt=Ht==="date"&&Lt?"datetime":Ht,Nt=xt===I&&xt!=="time",Vt=KTe(I,Ht,P,D,!0),Ue=qTe(i,ye,be,Ee,Me,_,s,ve,_e,c),Ve=Oe(Ue,2),je=Ve[0],et=Ve[1],_t=kst(Y,_,Xe,N,R,S),vt=ITe(Y,c,b),Mt=Oe(vt,2),wt=Mt[0],jt=Mt[1],zt=zTe(N,R,Y,bt,_e,Be,o,Nt,V,W,Lt==null?void 0:Lt.defaultOpenValue,$,C,E),Gt=Oe(zt,2),$t=Gt[0],on=Gt[1],pt=Wn(function(Kn,An,Hn){var _r=qC(bt,Be,An);if((_r[0]!==bt[0]||_r[1]!==bt[1])&&St(_r),B&&Hn!==!1){var Qr=at(Y);Kn&&(Qr[Be]=Kn),B(Qr,_r)}}),Dt=function(An,Hn){return qC(Y,Hn,An)},Wt=function(An,Hn){var _r=Y;An&&(_r=Dt(An,Be)),ze(Be);var Qr=Fe(_r);Me(_r),je(Be,Qr===null),Qr===null?xe(!1,{force:!0}):Hn||fe.current.focus({index:Qr})},Et=function(An){var Hn,_r=An.target.getRootNode();if(!fe.current.nativeElement.contains((Hn=_r.activeElement)!==null&&Hn!==void 0?Hn:document.activeElement)){var Qr=_.findIndex(function(es){return!es});Qr>=0&&fe.current.focus({index:Qr})}xe(!0),ue==null||ue(An)},yt=function(){et(null),xe(!1,{force:!0})},Ft=m.useState(null),Ae=Oe(Ft,2),kt=Ae[0],nt=Ae[1],Rt=m.useState(null),Tt=Oe(Rt,2),xn=Tt[0],Un=Tt[1],O=m.useMemo(function(){return xn||Y},[Y,xn]);m.useEffect(function(){_e||Un(null)},[_e]);var j=m.useState(0),te=Oe(j,2),we=te[0],Le=te[1],Je=jTe(A,k),At=function(An){Un(An),nt("preset")},dn=function(An){var Hn=et(An);Hn&&xe(!1,{force:!0})},Mn=function(An){Wt(An)},Kr=function(An){Un(An?Dt(An,Be):null),nt("cell")},Ur=function(An){xe(!0),Ge(An)},di=function(){$e("panel")},Sr=function(An){var Hn=qC(Y,Be,An);Me(Hn),!v&&!a&&o===xt&&Wt(An)},cn=function(){xe(!1)},vn=mq(ne,oe,ae,lO(Be)),Rr=Y[Be]||null,tn=Wn(function(Kn){return c(Kn,{activeIndex:Be})}),rn=m.useMemo(function(){var Kn=ao(i,!1),An=ur(i,[].concat(at(Object.keys(Kn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return An},[i]),jn=m.createElement(ZTe,Qe({},rn,{showNow:Vt,showTime:Lt,range:!0,multiplePanel:Nt,activeOffset:we,placement:p,disabledDate:_t,onFocus:Ur,onBlur:We,onPanelMouseDown:di,picker:I,mode:Ht,internalMode:xt,onPanelChange:pt,format:l,value:Rr,isInvalid:tn,onChange:null,onSelect:Sr,pickerValue:$t,defaultOpenValue:M_(F==null?void 0:F.defaultOpenValue)[Be],onPickerValueChange:on,hoverValue:O,onHover:Kr,needConfirm:v,onSubmit:Wt,onOk:X,presets:Je,onPresetHover:At,onPresetSubmit:dn,onNow:Mn,cellRender:vn})),vr=function(An,Hn){var _r=Dt(An,Hn);Me(_r)},ai=function(){$e("input")},co=function(An,Hn){var _r=Xe.length,Qr=Xe[_r-1];if(_r&&Qr!==Hn&&v&&!b[Qr]&&!qe(Qr)&&Y[Qr]){fe.current.focus({index:Qr});return}$e("input"),xe(!0,{inherit:!0}),Be!==Hn&&_e&&!v&&a&&Wt(null,!0),me(Hn),Ge(An,Hn)},Xn=function(An,Hn){if(xe(!1),!v&&$e()==="input"){var _r=Fe(Y);je(Be,_r===null)}We(An,Hn)},Ni=function(An,Hn){An.key==="Tab"&&Wt(null,!0),y==null||y(An,Hn)},Do=m.useMemo(function(){return{prefixCls:u,locale:R,generateConfig:N,button:Z.button,input:Z.input}},[u,R,N,Z.button,Z.input]);return gr(function(){_e&&Be!==void 0&&pt(null,I,!1)},[_e,Be,I]),gr(function(){var Kn=$e();!_e&&Kn==="input"&&(xe(!1),Wt(null,!0)),!_e&&a&&!v&&Kn==="panel"&&(xe(!0),Wt())},[_e]),m.createElement(hd.Provider,{value:Do},m.createElement(xTe,Qe({},OTe(i),{popupElement:jn,popupStyle:d.popup,popupClassName:f.popup,visible:_e,onClose:cn,range:!0}),m.createElement(dlt,Qe({},i,{ref:fe,suffixIcon:K,activeIndex:ve||_e?Be:null,activeHelp:!!xn,allHelp:!!xn&&kt==="preset",focused:ve,onFocus:co,onBlur:Xn,onKeyDown:Ni,onSubmit:Wt,value:O,maskFormat:l,onChange:vr,onInputChange:ai,format:s,inputReadOnly:H,disabled:_,open:_e,onOpenChange:xe,onClick:Et,onClear:yt,invalid:wt,onInvalid:jt,onActiveOffset:Le}))))}var plt=m.forwardRef(flt);function mlt(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,o=i===void 0?"×":i,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function p(v,y){return m.createElement("span",{className:Re("".concat(d,"-item")),title:typeof v=="string"?v:null},m.createElement("span",{className:"".concat(d,"-item-content")},v),!s&&y&&m.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:y,className:"".concat(d,"-item-remove")},o))}function h(v){var y=a(v),_=function(S){S&&S.stopPropagation(),r(v)};return p(y,_)}function g(v){var y="+ ".concat(v.length," ...");return p(y)}return m.createElement("div",{className:u},m.createElement(Wu,{prefixCls:f,data:n,renderItem:h,renderRest:g,itemKey:function(y){return a(y)},maxCount:l}),!n.length&&m.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var hlt=["id","open","prefix","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","tabIndex","removeIcon"];function glt(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,h=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var _=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,C=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var w=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,T=e.tabIndex,R=e.removeIcon,N=It(e,hlt),I=E==="rtl",P=m.useContext(hd),D=P.prefixCls,F=m.useRef(),L=m.useRef();m.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(A){var k;(k=L.current)===null||k===void 0||k.focus(A)},blur:function(){var A;(A=L.current)===null||A===void 0||A.blur()}}});var B=eRe(N),U=function(A){v([A])},G=function(A){var k=g.filter(function(Z){return Z&&!ps(l,s,Z,A,h)});v(k),n||y()},V=JTe(q(q({},e),{},{onChange:U}),function(Q){var A=Q.valueTexts;return{value:A[0]||"",active:a}}),W=Oe(V,2),$=W[0],H=W[1],K=!!(i&&g.length&&!S),re=_?m.createElement(m.Fragment,null,m.createElement(mlt,{prefixCls:D,value:g,onRemove:G,formatDate:H,maxTagCount:b,disabled:S,removeIcon:R,placeholder:c}),m.createElement("input",{className:"".concat(D,"-multiple-input"),value:g.map(H).join(","),ref:L,readOnly:!0,autoFocus:x,tabIndex:T}),m.createElement(QD,{type:"suffix",icon:o}),K&&m.createElement(x9,{icon:i,onClear:p})):m.createElement(T9,Qe({ref:L},$(),{autoFocus:x,tabIndex:T,suffixIcon:o,clearIcon:K&&m.createElement(x9,{icon:i,onClear:p}),showActiveCls:!1}));return m.createElement("div",Qe({},B,{className:Re(D,ie(ie(ie(ie(ie({},"".concat(D,"-multiple"),_),"".concat(D,"-focused"),a),"".concat(D,"-disabled"),S),"".concat(D,"-invalid"),C),"".concat(D,"-rtl"),I),u),style:d,ref:F,onClick:f,onMouseDown:function(A){var k,Z=A.target;Z!==((k=L.current)===null||k===void 0?void 0:k.inputElement)&&A.preventDefault(),w==null||w(A)}}),r&&m.createElement("div",{className:"".concat(D,"-prefix")},r),re)}var vlt=m.forwardRef(glt);function _lt(e,t){var n=FTe(e),r=Oe(n,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=i,d=u.prefixCls,f=u.styles,p=u.classNames,h=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,_=u.onChange,b=u.onKeyDown,S=u.disabled,C=u.disabledDate,E=u.minDate,w=u.maxDate,x=u.defaultOpen,T=u.open,R=u.onOpenChange,N=u.locale,I=u.generateConfig,P=u.picker,D=u.showNow,F=u.showToday,L=u.showTime,B=u.mode,U=u.onPanelChange,G=u.onCalendarChange,V=u.onOk,W=u.multiple,$=u.defaultPickerValue,H=u.pickerValue,K=u.onPickerValueChange,re=u.inputReadOnly,Q=u.suffixIcon,A=u.removeIcon,k=u.onFocus,Z=u.onBlur,ne=u.presets,oe=u.components,ae=u.cellRender,ue=u.dateRender,fe=u.monthCellRender,se=u.onClick,pe=UTe(t);function _e(tn){return tn===null?null:W?tn:tn[0]}var Te=QTe(I,N,o),xe=BTe(T,x,[S],R),ge=Oe(xe,2),Ce=ge[0],ye=ge[1],be=function(rn,jn,vr){if(G){var ai=q({},vr);delete ai.range,G(_e(rn),_e(jn),ai)}},Ee=function(rn){V==null||V(_e(rn))},Me=YTe(I,N,s,!1,h,g,v,be,Ee),X=Oe(Me,5),Y=X[0],J=X[1],he=X[2],ve=X[3],ce=X[4],$e=he(),Be=HTe([S]),me=Oe(Be,4),Fe=me[0],Xe=me[1],ze=me[2],qe=me[3],Ge=function(rn){Xe(!0),k==null||k(rn,{})},We=function(rn){Xe(!1),Z==null||Z(rn,{})},Lt=Fn(P,{value:B}),ut=Oe(Lt,2),ft=ut[0],bt=ut[1],St=ft==="date"&&L?"datetime":ft,Ht=KTe(P,ft,D,F),xt=_&&function(tn,rn){_(_e(tn),_e(rn))},Nt=qTe(q(q({},i),{},{onChange:xt}),Y,J,he,ve,[],s,Fe,Ce,c),Vt=Oe(Nt,2),Ue=Vt[1],Ve=ITe($e,c),je=Oe(Ve,2),et=je[0],_t=je[1],vt=m.useMemo(function(){return et.some(function(tn){return tn})},[et]),Mt=function(rn,jn){if(K){var vr=q(q({},jn),{},{mode:jn.mode[0]});delete vr.range,K(rn[0],vr)}},wt=zTe(I,N,$e,[ft],Ce,qe,o,!1,$,H,M_(L==null?void 0:L.defaultOpenValue),Mt,E,w),jt=Oe(wt,2),zt=jt[0],Gt=jt[1],$t=Wn(function(tn,rn,jn){if(bt(rn),U&&jn!==!1){var vr=tn||$e[$e.length-1];U(vr,rn)}}),on=function(){Ue(he()),ye(!1,{force:!0})},pt=function(rn){!S&&!pe.current.nativeElement.contains(document.activeElement)&&pe.current.focus(),ye(!0),se==null||se(rn)},Dt=function(){Ue(null),ye(!1,{force:!0})},Wt=m.useState(null),Et=Oe(Wt,2),yt=Et[0],Ft=Et[1],Ae=m.useState(null),kt=Oe(Ae,2),nt=kt[0],Rt=kt[1],Tt=m.useMemo(function(){var tn=[nt].concat(at($e)).filter(function(rn){return rn});return W?tn:tn.slice(0,1)},[$e,nt,W]),xn=m.useMemo(function(){return!W&&nt?[nt]:$e.filter(function(tn){return tn})},[$e,nt,W]);m.useEffect(function(){Ce||Rt(null)},[Ce]);var Un=jTe(ne),O=function(rn){Rt(rn),Ft("preset")},j=function(rn){var jn=W?Te(he(),rn):[rn],vr=Ue(jn);vr&&!W&&ye(!1,{force:!0})},te=function(rn){j(rn)},we=function(rn){Rt(rn),Ft("cell")},Le=function(rn){ye(!0),Ge(rn)},Je=function(rn){if(ze("panel"),!(W&&St!==P)){var jn=W?Te(he(),rn):[rn];ve(jn),!y&&!a&&o===St&&on()}},At=function(){ye(!1)},dn=mq(ae,ue,fe),Mn=m.useMemo(function(){var tn=ao(i,!1),rn=ur(i,[].concat(at(Object.keys(tn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},rn),{},{multiple:i.multiple})},[i]),Kr=m.createElement(ZTe,Qe({},Mn,{showNow:Ht,showTime:L,disabledDate:C,onFocus:Le,onBlur:We,picker:P,mode:ft,internalMode:St,onPanelChange:$t,format:l,value:$e,isInvalid:c,onChange:null,onSelect:Je,pickerValue:zt,defaultOpenValue:L==null?void 0:L.defaultOpenValue,onPickerValueChange:Gt,hoverValue:Tt,onHover:we,needConfirm:y,onSubmit:on,onOk:ce,presets:Un,onPresetHover:O,onPresetSubmit:j,onNow:te,cellRender:dn})),Ur=function(rn){ve(rn)},di=function(){ze("input")},Sr=function(rn){ze("input"),ye(!0,{inherit:!0}),Ge(rn)},cn=function(rn){ye(!1),We(rn)},vn=function(rn,jn){rn.key==="Tab"&&on(),b==null||b(rn,jn)},Rr=m.useMemo(function(){return{prefixCls:d,locale:N,generateConfig:I,button:oe.button,input:oe.input}},[d,N,I,oe.button,oe.input]);return gr(function(){Ce&&qe!==void 0&&$t(null,P,!1)},[Ce,qe,P]),gr(function(){var tn=ze();!Ce&&tn==="input"&&(ye(!1),on()),!Ce&&a&&!y&&tn==="panel"&&(ye(!0),on())},[Ce]),m.createElement(hd.Provider,{value:Rr},m.createElement(xTe,Qe({},OTe(i),{popupElement:Kr,popupStyle:f.popup,popupClassName:p.popup,visible:Ce,onClose:At}),m.createElement(vlt,Qe({},i,{ref:pe,suffixIcon:Q,removeIcon:A,activeHelp:!!nt,allHelp:!!nt&&yt==="preset",focused:Fe,onFocus:Sr,onBlur:cn,onKeyDown:vn,onSubmit:on,value:xn,maskFormat:l,onChange:Ur,onInputChange:di,internalPicker:o,format:s,inputReadOnly:re,disabled:S,open:Ce,onOpenChange:ye,onClick:pt,onClear:Dt,invalid:vt,onInvalid:function(rn){_t(rn,0)}}))))}var ylt=m.forwardRef(_lt);const tRe=m.createContext(null),blt=tRe.Provider,nRe=m.createContext(null),Slt=nRe.Provider;var Elt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],rRe=m.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,p=e.onChange,h=It(e,Elt),g=m.useRef(null),v=m.useRef(null),y=Fn(c,{value:a}),_=Oe(y,2),b=_[0],S=_[1];m.useImperativeHandle(t,function(){return{focus:function(x){var T;(T=g.current)===null||T===void 0||T.focus(x)},blur:function(){var x;(x=g.current)===null||x===void 0||x.blur()},input:g.current,nativeElement:v.current}});var C=Re(r,i,ie(ie({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),E=function(x){s||("checked"in e||S(x.target.checked),p==null||p({target:q(q({},e),{},{type:d,checked:x.target.checked}),stopPropagation:function(){x.stopPropagation()},preventDefault:function(){x.preventDefault()},nativeEvent:x.nativeEvent}))};return m.createElement("span",{className:C,title:f,style:o,ref:v},m.createElement("input",Qe({},h,{className:"".concat(r,"-input"),ref:g,onChange:E,disabled:s,checked:!!b,type:d})),m.createElement("span",{className:"".concat(r,"-inner")}))});function iRe(e){const t=de.useRef(null),n=()=>{rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=rr(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const Clt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},wr(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},wlt=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:g,radioColor:v,radioBgColor:y,calc:_}=e,b=`${t}-inner`,C=_(i).sub(_(4).mul(2)),E=_(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},wr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${De(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
||
&:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},kp(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:_(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:_(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,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:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${_(C).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},xlt=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:_,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:E,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:x,colorPrimary:T,colorPrimaryHover:R,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:D,calc:F}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:De(F(n).sub(F(i).mul(2)).equal()),background:d,border:`${De(i)} ${o} ${a}`,borderBlockStartWidth:F(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].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:F(i).mul(-1).equal(),insetInlineStart:F(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${De(i)} ${o} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:De(F(p).sub(F(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:h,paddingInline:F(g).sub(i).equal(),paddingBlock:0,lineHeight:De(F(h).sub(F(i).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({},kp(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:b,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:I,borderColor:I,"&:hover":{color:S,background:P,borderColor:P},"&:active":{color:S,background:D,borderColor:D}},"&-disabled":{color:C,backgroundColor:E,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:E,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:x,backgroundColor:w,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Tlt=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e,g=4,v=o,y=t?v-g*2:v-(g+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?s:d}},oRe=dr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${De(n)} ${t}`,o=qn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Clt(o),wlt(o),xlt(o)]},Tlt,{unitless:{radioSize:!0,dotSize:!0}});var Rlt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Olt=(e,t)=>{var n,r;const i=m.useContext(tRe),o=m.useContext(nRe),{getPrefixCls:a,direction:s,radio:l}=m.useContext(nn),c=m.useRef(null),u=Sa(t,c),{isFormItemInput:d}=m.useContext(Qo),f=L=>{var B,U;(B=e.onChange)===null||B===void 0||B.call(e,L),(U=i==null?void 0:i.onChange)===null||U===void 0||U.call(i,L)},{prefixCls:p,className:h,rootClassName:g,children:v,style:y,title:_}=e,b=Rlt(e,["prefixCls","className","rootClassName","children","style","title"]),S=a("radio",p),C=((i==null?void 0:i.optionType)||o)==="button",E=C?`${S}-button`:S,w=oi(S),[x,T,R]=oRe(S,w),N=Object.assign({},b),I=m.useContext(No);i&&(N.name=i.name,N.onChange=f,N.checked=e.value===i.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:i.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:I;const P=Re(`${E}-wrapper`,{[`${E}-wrapper-checked`]:N.checked,[`${E}-wrapper-disabled`]:N.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:d,[`${E}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,h,g,T,R,w),[D,F]=iRe(N.onClick);return x(m.createElement(yD,{component:"Radio",disabled:N.disabled},m.createElement("label",{className:P,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:_,onClick:D},m.createElement(rRe,Object.assign({},N,{className:Re(N.className,{[_D]:!C}),type:"radio",prefixCls:E,ref:u,onClick:F})),v!==void 0?m.createElement("span",null,v):null)))},SA=m.forwardRef(Olt),Ilt=m.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m.useContext(nn),i=MD(),{prefixCls:o,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:f,style:p,id:h,optionType:g,name:v=i,defaultValue:y,value:_,block:b=!1,onChange:S,onMouseEnter:C,onMouseLeave:E,onFocus:w,onBlur:x}=e,[T,R]=Fn(y,{value:_}),N=m.useCallback($=>{const H=T,K=$.target.value;"value"in e||R(K),K!==H&&(S==null||S($))},[T,R,S]),I=n("radio",o),P=`${I}-group`,D=oi(I),[F,L,B]=oRe(I,D);let U=d;l&&l.length>0&&(U=l.map($=>typeof $=="string"||typeof $=="number"?m.createElement(SA,{key:$.toString(),prefixCls:I,disabled:u,value:$,checked:T===$},$):m.createElement(SA,{key:`radio-group-value-options-${$.value}`,prefixCls:I,disabled:$.disabled||u,value:$.value,checked:T===$.value,title:$.title,style:$.style,id:$.id,required:$.required},$.label)));const G=Zo(f),V=Re(P,`${P}-${c}`,{[`${P}-${G}`]:G,[`${P}-rtl`]:r==="rtl",[`${P}-block`]:b},a,s,L,B,D),W=m.useMemo(()=>({onChange:N,value:T,disabled:u,name:v,optionType:g,block:b}),[N,T,u,v,g,b]);return F(m.createElement("div",Object.assign({},ao(e,{aria:!0,data:!0}),{className:V,style:p,onMouseEnter:C,onMouseLeave:E,onFocus:w,onBlur:x,id:h,ref:t}),m.createElement(blt,{value:W},U)))}),Nlt=m.memo(Ilt);var Mlt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Alt=(e,t)=>{const{getPrefixCls:n}=m.useContext(nn),{prefixCls:r}=e,i=Mlt(e,["prefixCls"]),o=n("radio",r);return m.createElement(Slt,{value:"button"},m.createElement(SA,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},Plt=m.forwardRef(Alt),ji=SA;ji.Button=Plt;ji.Group=Nlt;ji.__ANT_RADIO=!0;function XD(e){return qn(e,{inputAffixPadding:e.paddingXXS})}const ZD=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:_,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${_}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Dlt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yq=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({},Dlt(qn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),aRe=(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}}),Bie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aRe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),bq=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aRe(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yq(e))}),Bie(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Bie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Uie=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),sRe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Uie(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Uie(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yq(e))}})}),Sq=(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,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},lRe=(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}}),jie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lRe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Eq=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lRe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yq(e))}),jie(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),jie(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Hie=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),cRe=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:`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Hie(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Hie(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:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Cq=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),uRe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${De(t)} ${De(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},dRe=e=>({padding:`${De(e.paddingBlockSM)} ${De(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),JD=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${De(e.paddingBlock)} ${De(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Cq(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({},uRe(e)),"&-sm":Object.assign({},dRe(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fRe=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({},uRe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},dRe(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 ${De(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${De(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${De(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:`${De(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${De(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"},nf()),{[`${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
|
||
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
||
& > ${n}-select-auto-complete ${t},
|
||
& > ${n}-cascader-picker ${t},
|
||
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
||
& > ${n}-select:first-child > ${n}-select-selector,
|
||
& > ${n}-select-auto-complete:first-child ${t},
|
||
& > ${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}}}})}},klt=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),JD(e)),bq(e)),Eq(e)),Sq(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Llt=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${De(e.inputAffixPadding)}`}}}},$lt=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},JD(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}}}),Llt(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Flt=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},wr(e)),fRe(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}}},sRe(e)),cRe(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Blt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,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":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${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}}}}},Ult=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}}}}}},jlt=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},wq=dr("Input",e=>{const t=qn(e,XD(e));return[klt(t),Ult(t),$lt(t),Flt(t),Blt(t),jlt(t),N_(t)]},ZD,{resetFont:!1}),lF=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=Rxe(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:De(o.itemLineHeight)}}}]},Hlt=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=qn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=qn(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[lF(i,"small"),lF(e),lF(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"}}},Oxe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},zlt=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:De(r),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
||
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${De(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Vlt=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:_,textHeight:b,motionDurationMid:S,colorIconHover:C,fontWeightStrong:E,cellHeight:w,pickerCellPaddingVertical:x,colorTextDisabled:T,colorText:R,fontSize:N,motionDurationSlow:I,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:D,borderRadiusSM:F,colorTextLightSolid:L,cellHoverBg:B,timeColumnHeight:U,timeColumnWidth:G,timeCellHeight:V,controlItemBgActive:W,marginXXS:$,pickerDatePanelPaddingHorizontal:H,pickerControlIconMargin:K}=e,re=e.calc(a).mul(7).add(e.calc(H).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
|
||
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
||
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:re},"&-header":{display:"flex",padding:`0 ${De(l)}`,color:g,borderBottom:`${De(d)} ${f} ${v}`,"> *":{flex:"none"},button:{padding:0,color:_,lineHeight:De(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:De(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${De(y)} 0`,borderInlineWidth:`${De(y)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:K,insetInlineStart:K,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${De(y)} 0`,borderInlineWidth:`${De(y)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(x).mul(2)).equal(),color:R,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${De(x)} 0`,color:T,cursor:"pointer","&-in-view":{color:R}},zlt(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${De(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${De(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${De(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${De(l)} ${De(H)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
|
||
&-selected ${r},
|
||
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child:before":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td:before":{background:B},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new cr(L).setA(.5).toHexString()},[r]:{color:L}}},"&-range-hover td:before":{background:W}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${De(l)} ${De(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${De(d)} ${f} ${v}`},[`${t}-date-panel,
|
||
${t}-time-panel`]:{transition:`opacity ${I}`},"&-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:U},"&-column":{flex:"1 0 auto",width:G,margin:`${De(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,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:`calc(100% - ${De(V)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${De(d)} ${f} ${v}`},"&-active":{background:new cr(W).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:$,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(G).sub(e.calc($).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(G).sub(V).div(2).equal(),color:R,lineHeight:De(V),borderRadius:F,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:B}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:W}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},Glt=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${De(r)} ${c} ${u}`,"&-extra":{padding:`0 ${De(i)}`,lineHeight:De(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${De(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:De(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:De(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:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Wlt=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=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(i).add(e.calc(r).div(2)).equal()}},Ylt=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:a}=e,s=o*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new cr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new cr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},qlt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ZD(e)),Ylt(e)),BD(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Klt=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},bq(e)),Eq(e)),Sq(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${De(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${De(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},cF=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(i).div(2).equal(),0),a=e.max(e.calc(t).sub(i).sub(o).equal(),0);return{padding:`${De(o)} ${De(r)} ${De(a)}`}},Qlt=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}}}}},Xlt=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:g,paddingXS:v,marginXS:y,colorTextDescription:_,lineWidthBold:b,colorPrimary:S,motionDurationSlow:C,zIndexPopup:E,paddingXXS:w,sizePopupArrow:x,colorBgElevated:T,borderRadiusLG:R,boxShadowSecondary:N,borderRadiusSM:I,colorSplit:P,cellHoverBg:D,presetsWidth:F,presetsMaxWidth:L,boxShadowPopoverArrow:B,fontHeight:U,fontHeightLG:G,lineHeightLG:V}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},wr(e)),cF(e,r,U,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${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 ${c}`},Cq(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},cF(e,f,G,i)),{[`${t}-input > input`]:{fontSize:p,lineHeight:V}}),"&-small":Object.assign({},cF(e,h,U,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:_}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:_},[`${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:b,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${De(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},wr(e)),Vlt(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,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:wD},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
||
&${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:ED},[`&${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:xD},[`&${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:CD},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},Lxe(e,T,B)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:R,boxShadow:N,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:L,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${De(o)} ${a} ${P}`,li:Object.assign(Object.assign({},nc),{borderRadius:I,paddingInline:v,paddingBlock:e.calc(h).sub(U).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:D}})}},[`${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:`${De(e.calc(x).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},of(e,"slide-up"),of(e,"slide-down"),l0(e,"move-up"),l0(e,"move-down")]},pRe=dr("DatePicker",e=>{const t=qn(XD(e),Wlt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Glt(t),Xlt(t),Klt(t),Qlt(t),Hlt(t),N_(e,{focusElCls:`${e.componentCls}-focused`})]},qlt);var Zlt={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"},Jlt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Zlt}))},EA=m.forwardRef(Jlt);const ek=m.createContext(null);var ect=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,u=m.useState(),d=Oe(u,2),f=d[0],p=d[1],h=m.useRef(),g=de.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){rr.cancel(h.current)}return m.useEffect(function(){var y={};if(n)if(r){y.width=g(n.width);var _=i?"right":"left";c==="start"&&(y[_]=n[_]),c==="center"&&(y[_]=n[_]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[_]=n[_]+n.width,y.transform="translateX(-100%)")}else y.height=g(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),h.current=rr(function(){p(y)}),v},[n,r,i,c,g]),{style:f}},zie={width:0,height:0,left:0,top:0};function tct(e,t,n){return m.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||zie,a=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||zie}var d=i.get(l)||q({},c);d.right=a-d.left-d.width,i.set(l,d)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function Vie(e,t){var n=m.useRef(e),r=m.useState({}),i=Oe(r,2),o=i[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,o({})}return[n.current,a]}var nct=.1,Gie=.01,iN=20,Wie=Math.pow(.995,iN);function rct(e,t){var n=m.useState(),r=Oe(n,2),i=r[0],o=r[1],a=m.useState(0),s=Oe(a,2),l=s[0],c=s[1],u=m.useState(0),d=Oe(u,2),f=d[0],p=d[1],h=m.useState(),g=Oe(h,2),v=g[0],y=g[1],_=m.useRef();function b(T){var R=T.touches[0],N=R.screenX,I=R.screenY;o({x:N,y:I}),window.clearInterval(_.current)}function S(T){if(i){var R=T.touches[0],N=R.screenX,I=R.screenY;o({x:N,y:I});var P=N-i.x,D=I-i.y;t(P,D);var F=Date.now();c(F),p(F-l),y({x:P,y:D})}}function C(){if(i&&(o(null),y(null),v)){var T=v.x/f,R=v.y/f,N=Math.abs(T),I=Math.abs(R);if(Math.max(N,I)<nct)return;var P=T,D=R;_.current=window.setInterval(function(){if(Math.abs(P)<Gie&&Math.abs(D)<Gie){window.clearInterval(_.current);return}P*=Wie,D*=Wie,t(P*iN,D*iN)},iN)}}var E=m.useRef();function w(T){var R=T.deltaX,N=T.deltaY,I=0,P=Math.abs(R),D=Math.abs(N);P===D?I=E.current==="x"?R:N:P>D?(I=R,E.current="x"):(I=N,E.current="y"),t(-I,-I)&&T.preventDefault()}var x=m.useRef(null);x.current={onTouchStart:b,onTouchMove:S,onTouchEnd:C,onWheel:w},m.useEffect(function(){function T(P){x.current.onTouchStart(P)}function R(P){x.current.onTouchMove(P)}function N(P){x.current.onTouchEnd(P)}function I(P){x.current.onWheel(P)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",I,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",N)}},[])}function mRe(e){var t=m.useState(0),n=Oe(t,2),r=n[0],i=n[1],o=m.useRef(0),a=m.useRef();return a.current=e,xv(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function ict(e){var t=m.useRef([]),n=m.useState({}),r=Oe(n,2),i=r[1],o=m.useRef(typeof e=="function"?e():e),a=mRe(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var Yie={width:0,height:0,left:0,top:0,right:0};function oct(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),m.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,h=p,g=0;g<p;g+=1){var v=e.get(s[g].key)||Yie;if(Math.floor(v[d]+v[u])>Math.floor(f+t)){h=g-1;break}}for(var y=0,_=p-1;_>=0;_-=1){var b=e.get(s[_].key)||Yie;if(b[d]<f){y=_+1;break}}return y>=h?[0,0]:[y,h]},[e,t,r,i,o,f,l,s.map(function(p){return p.key}).join("_"),c])}function qie(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var act="TABS_DQ";function hRe(e){return String(e).replace(/"/g,act)}function xq(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var gRe=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:m.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Kie=m.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return qt(i)==="object"&&!m.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?m.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),sct=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,_=m.useState(!1),b=Oe(_,2),S=b[0],C=b[1],E=m.useState(null),w=Oe(E,2),x=w[0],T=w[1],R=l.icon,N=R===void 0?"More":R,I="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),D=x!==null?"".concat(I,"-").concat(x):null,F=o==null?void 0:o.dropdownAriaLabel;function L(H,K){H.preventDefault(),H.stopPropagation(),d.onEdit("remove",{key:K,event:H})}var B=m.createElement(cS,{onClick:function(K){var re=K.key,Q=K.domEvent;g(re,Q),C(!1)},prefixCls:"".concat(P,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[x],"aria-label":F!==void 0?F:"expanded dropdown"},i.map(function(H){var K=H.closable,re=H.disabled,Q=H.closeIcon,A=H.key,k=H.label,Z=xq(K,Q,d,re);return m.createElement(Ax,{key:A,id:"".concat(I,"-").concat(A),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(A),disabled:re},m.createElement("span",null,k),Z&&m.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),L(oe,A)}},Q||d.removeIcon||"×"))}));function U(H){for(var K=i.filter(function(Z){return!Z.disabled}),re=K.findIndex(function(Z){return Z.key===x})||0,Q=K.length,A=0;A<Q;A+=1){re=(re+H+Q)%Q;var k=K[re];if(!k.disabled){T(k.key);return}}}function G(H){var K=H.which;if(!S){[gt.DOWN,gt.SPACE,gt.ENTER].includes(K)&&(C(!0),H.preventDefault());return}switch(K){case gt.UP:U(-1),H.preventDefault();break;case gt.DOWN:U(1),H.preventDefault();break;case gt.ESC:C(!1);break;case gt.SPACE:case gt.ENTER:x!==null&&g(x,H);break}}m.useEffect(function(){var H=document.getElementById(D);H&&H.scrollIntoView&&H.scrollIntoView(!1)},[x]),m.useEffect(function(){S||T(null)},[S]);var V=ie({},p?"marginRight":"marginLeft",f);i.length||(V.visibility="hidden",V.order=1);var W=Re(ie({},"".concat(P,"-rtl"),p)),$=a?null:m.createElement(Wxe,Qe({prefixCls:P,overlay:B,visible:i.length?S:!1,onVisibleChange:C,overlayClassName:Re(W,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),m.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:G},N));return m.createElement("div",{className:Re("".concat(n,"-nav-operations"),u),style:c,ref:t},$,m.createElement(gRe,{prefixCls:n,locale:o,editable:d}))});const lct=m.memo(sct,function(e,t){return t.tabMoving});var cct=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.focus,a=t.tab,s=a.key,l=a.label,c=a.disabled,u=a.closeIcon,d=a.icon,f=t.closable,p=t.renderWrapper,h=t.removeAriaLabel,g=t.editable,v=t.onClick,y=t.onFocus,_=t.onBlur,b=t.onKeyDown,S=t.onMouseDown,C=t.onMouseUp,E=t.style,w=t.tabCount,x=t.currentPosition,T="".concat(n,"-tab"),R=xq(f,u,g,c);function N(L){c||v(L)}function I(L){L.preventDefault(),L.stopPropagation(),g.onEdit("remove",{key:s,event:L})}var P=m.useMemo(function(){return d&&typeof l=="string"?m.createElement("span",null,l):l},[l,d]),D=m.useRef(null);m.useEffect(function(){o&&D.current&&D.current.focus()},[o]);var F=m.createElement("div",{key:s,"data-node-key":hRe(s),className:Re(T,ie(ie(ie(ie({},"".concat(T,"-with-remove"),R),"".concat(T,"-active"),i),"".concat(T,"-disabled"),c),"".concat(T,"-focus"),o)),style:E,onClick:N},m.createElement("div",{ref:D,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(T,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(B){B.stopPropagation(),N(B)},onKeyDown:b,onMouseDown:S,onMouseUp:C,onFocus:y,onBlur:_},o&&m.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(x," of ").concat(w)),d&&m.createElement("span",{className:"".concat(T,"-icon")},d),l&&P),R&&m.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:i?0:-1,className:"".concat(T,"-remove"),onClick:function(B){B.stopPropagation(),I(B)}},u||g.removeIcon||"×"));return p?p(F):F},uct=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.left,d=s.top;return Math.abs(l-r)<1?[l,c,u-n.left,d-n.top]:[r,i,a,o]},by=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,o=n.offsetHeight,a=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-i)<1)return[l,c]}return[i,a]},cO=function(t,n){return t[n?0:1]},Qie=m.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,f=e.tabBarGutter,p=e.children,h=e.onTabClick,g=e.onTabScroll,v=e.indicator,y=m.useContext(ek),_=y.prefixCls,b=y.tabs,S=m.useRef(null),C=m.useRef(null),E=m.useRef(null),w=m.useRef(null),x=m.useRef(null),T=m.useRef(null),R=m.useRef(null),N=d==="top"||d==="bottom",I=Vie(0,function(kt,nt){N&&g&&g({direction:kt>nt?"left":"right"})}),P=Oe(I,2),D=P[0],F=P[1],L=Vie(0,function(kt,nt){!N&&g&&g({direction:kt>nt?"top":"bottom"})}),B=Oe(L,2),U=B[0],G=B[1],V=m.useState([0,0]),W=Oe(V,2),$=W[0],H=W[1],K=m.useState([0,0]),re=Oe(K,2),Q=re[0],A=re[1],k=m.useState([0,0]),Z=Oe(k,2),ne=Z[0],oe=Z[1],ae=m.useState([0,0]),ue=Oe(ae,2),fe=ue[0],se=ue[1],pe=ict(new Map),_e=Oe(pe,2),Te=_e[0],xe=_e[1],ge=tct(b,Te,Q[0]),Ce=cO($,N),ye=cO(Q,N),be=cO(ne,N),Ee=cO(fe,N),Me=Math.floor(Ce)<Math.floor(ye+be),X=Me?Ce-Ee:Ce-be,Y="".concat(_,"-nav-operations-hidden"),J=0,he=0;N&&s?(J=0,he=Math.max(0,ye-X)):(J=Math.min(0,X-ye),he=0);function ve(kt){return kt<J?J:kt>he?he:kt}var ce=m.useRef(null),$e=m.useState(),Be=Oe($e,2),me=Be[0],Fe=Be[1];function Xe(){Fe(Date.now())}function ze(){ce.current&&clearTimeout(ce.current)}rct(w,function(kt,nt){function Rt(Tt,xn){Tt(function(Un){var O=ve(Un+xn);return O})}return Me?(N?Rt(F,kt):Rt(G,nt),ze(),Xe(),!0):!1}),m.useEffect(function(){return ze(),me&&(ce.current=setTimeout(function(){Fe(0)},100)),ze},[me]);var qe=oct(ge,X,N?D:U,ye,be,Ee,q(q({},e),{},{tabs:b})),Ge=Oe(qe,2),We=Ge[0],Lt=Ge[1],ut=Wn(function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,nt=ge.get(kt)||{width:0,height:0,left:0,right:0,top:0};if(N){var Rt=D;s?nt.right<D?Rt=nt.right:nt.right+nt.width>D+X&&(Rt=nt.right+nt.width-X):nt.left<-D?Rt=-nt.left:nt.left+nt.width>-D+X&&(Rt=-(nt.left+nt.width-X)),G(0),F(ve(Rt))}else{var Tt=U;nt.top<-U?Tt=-nt.top:nt.top+nt.height>-U+X&&(Tt=-(nt.top+nt.height-X)),F(0),G(ve(Tt))}}),ft=m.useState(),bt=Oe(ft,2),St=bt[0],Ht=bt[1],xt=m.useState(!1),Nt=Oe(xt,2),Vt=Nt[0],Ue=Nt[1],Ve=b.filter(function(kt){return!kt.disabled}).map(function(kt){return kt.key}),je=function(nt){var Rt=Ve.indexOf(St||a),Tt=Ve.length,xn=(Rt+nt+Tt)%Tt,Un=Ve[xn];Ht(Un)},et=function(nt){var Rt=nt.code,Tt=s&&N,xn=Ve[0],Un=Ve[Ve.length-1];switch(Rt){case"ArrowLeft":{N&&je(Tt?1:-1);break}case"ArrowRight":{N&&je(Tt?-1:1);break}case"ArrowUp":{nt.preventDefault(),N||je(-1);break}case"ArrowDown":{nt.preventDefault(),N||je(1);break}case"Home":{nt.preventDefault(),Ht(xn);break}case"End":{nt.preventDefault(),Ht(Un);break}case"Enter":case"Space":{nt.preventDefault(),h(St,nt);break}case"Backspace":case"Delete":{var O=Ve.indexOf(St),j=b.find(function(we){return we.key===St}),te=xq(j==null?void 0:j.closable,j==null?void 0:j.closeIcon,c,j==null?void 0:j.disabled);te&&(nt.preventDefault(),nt.stopPropagation(),c.onEdit("remove",{key:St,event:nt}),O===Ve.length-1?je(-1):je(1));break}}},_t={};N?_t[s?"marginRight":"marginLeft"]=f:_t.marginTop=f;var vt=b.map(function(kt,nt){var Rt=kt.key;return m.createElement(cct,{id:i,prefixCls:_,key:Rt,tab:kt,style:nt===0?void 0:_t,closable:kt.closable,editable:c,active:Rt===a,focus:Rt===St,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:Ve.length,currentPosition:nt+1,onClick:function(xn){h(Rt,xn)},onKeyDown:et,onFocus:function(){Vt||Ht(Rt),ut(Rt),Xe(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:function(){Ht(void 0)},onMouseDown:function(){Ue(!0)},onMouseUp:function(){Ue(!1)}})}),Mt=function(){return xe(function(){var nt,Rt=new Map,Tt=(nt=x.current)===null||nt===void 0?void 0:nt.getBoundingClientRect();return b.forEach(function(xn){var Un,O=xn.key,j=(Un=x.current)===null||Un===void 0?void 0:Un.querySelector('[data-node-key="'.concat(hRe(O),'"]'));if(j){var te=uct(j,Tt),we=Oe(te,4),Le=we[0],Je=we[1],At=we[2],dn=we[3];Rt.set(O,{width:Le,height:Je,left:At,top:dn})}}),Rt})};m.useEffect(function(){Mt()},[b.map(function(kt){return kt.key}).join("_")]);var wt=mRe(function(){var kt=by(S),nt=by(C),Rt=by(E);H([kt[0]-nt[0]-Rt[0],kt[1]-nt[1]-Rt[1]]);var Tt=by(R);oe(Tt);var xn=by(T);se(xn);var Un=by(x);A([Un[0]-Tt[0],Un[1]-Tt[1]]),Mt()}),jt=b.slice(0,We),zt=b.slice(Lt+1),Gt=[].concat(at(jt),at(zt)),$t=ge.get(a),on=ect({activeTabOffset:$t,horizontal:N,indicator:v,rtl:s}),pt=on.style;m.useEffect(function(){ut()},[a,J,he,qie($t),qie(ge),N]),m.useEffect(function(){wt()},[s]);var Dt=!!Gt.length,Wt="".concat(_,"-nav-wrap"),Et,yt,Ft,Ae;return N?s?(yt=D>0,Et=D!==he):(Et=D<0,yt=D!==J):(Ft=U<0,Ae=U!==J),m.createElement(hs,{onResize:wt},m.createElement("div",{ref:fd(t,S),role:"tablist","aria-orientation":N?"horizontal":"vertical",className:Re("".concat(_,"-nav"),n),style:r,onKeyDown:function(){Xe()}},m.createElement(Kie,{ref:C,position:"left",extra:l,prefixCls:_}),m.createElement(hs,{onResize:wt},m.createElement("div",{className:Re(Wt,ie(ie(ie(ie({},"".concat(Wt,"-ping-left"),Et),"".concat(Wt,"-ping-right"),yt),"".concat(Wt,"-ping-top"),Ft),"".concat(Wt,"-ping-bottom"),Ae)),ref:w},m.createElement(hs,{onResize:wt},m.createElement("div",{ref:x,className:"".concat(_,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(U,"px)"),transition:me?"none":void 0}},vt,m.createElement(gRe,{ref:R,prefixCls:_,locale:u,editable:c,style:q(q({},vt.length===0?void 0:_t),{},{visibility:Dt?"hidden":null})}),m.createElement("div",{className:Re("".concat(_,"-ink-bar"),ie({},"".concat(_,"-ink-bar-animated"),o.inkBar)),style:pt}))))),m.createElement(lct,Qe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:T,prefixCls:_,tabs:Gt,className:!Dt&&Y,tabMoving:!!me})),m.createElement(Kie,{ref:E,position:"right",extra:l,prefixCls:_})))}),vRe=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return m.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:Re(n,a&&"".concat(n,"-active"),r),ref:t},l)}),dct=["renderTabBar"],fct=["label","key"],pct=function(t){var n=t.renderTabBar,r=It(t,dct),i=m.useContext(ek),o=i.tabs;if(n){var a=q(q({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=It(s,fct);return m.createElement(vRe,Qe({tab:l,key:c,tabKey:c},u))})});return n(a,Qie)}return m.createElement(Qie,r)},mct=["key","forceRender","style","className","destroyInactiveTabPane"],hct=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=m.useContext(ek),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return m.createElement("div",{className:Re("".concat(l,"-content-holder"))},m.createElement("div",{className:Re("".concat(l,"-content"),"".concat(l,"-content-").concat(o),ie({},"".concat(l,"-content-animated"),u))},c.map(function(f){var p=f.key,h=f.forceRender,g=f.style,v=f.className,y=f.destroyInactiveTabPane,_=It(f,mct),b=p===r;return m.createElement(qo,Qe({key:p,visible:b,forceRender:h,removeOnLeave:!!(a||y),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(S,C){var E=S.style,w=S.className;return m.createElement(vRe,Qe({},_,{prefixCls:d,id:n,tabKey:p,animated:u,active:b,style:q(q({},g),E),className:Re(v,w),ref:C}))})})))};function gct(){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=q({inkBar:!0},qt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var vct=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xie=0,_ct=m.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,p=f===void 0?"top":f,h=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,_=e.more,b=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,E=e.onTabClick,w=e.onTabScroll,x=e.getPopupContainer,T=e.popupClassName,R=e.indicator,N=It(e,vct),I=m.useMemo(function(){return(a||[]).filter(function(fe){return fe&&qt(fe)==="object"&&"key"in fe})},[a]),P=s==="rtl",D=gct(d),F=m.useState(!1),L=Oe(F,2),B=L[0],U=L[1];m.useEffect(function(){U(kD())},[]);var G=Fn(function(){var fe;return(fe=I[0])===null||fe===void 0?void 0:fe.key},{value:l,defaultValue:c}),V=Oe(G,2),W=V[0],$=V[1],H=m.useState(function(){return I.findIndex(function(fe){return fe.key===W})}),K=Oe(H,2),re=K[0],Q=K[1];m.useEffect(function(){var fe=I.findIndex(function(pe){return pe.key===W});if(fe===-1){var se;fe=Math.max(0,Math.min(re,I.length-1)),$((se=I[fe])===null||se===void 0?void 0:se.key)}Q(fe)},[I.map(function(fe){return fe.key}).join("_"),W,re]);var A=Fn(null,{value:n}),k=Oe(A,2),Z=k[0],ne=k[1];m.useEffect(function(){n||(ne("rc-tabs-".concat(Xie)),Xie+=1)},[]);function oe(fe,se){E==null||E(fe,se);var pe=fe!==W;$(fe),pe&&(C==null||C(fe))}var ae={id:Z,activeKey:W,animated:D,tabPosition:p,rtl:P,mobile:B},ue=q(q({},ae),{},{editable:u,locale:y,more:_,tabBarGutter:h,onTabClick:oe,onTabScroll:w,extra:v,style:g,panes:null,getPopupContainer:x,popupClassName:T,indicator:R});return m.createElement(ek.Provider,{value:{tabs:I,prefixCls:i}},m.createElement("div",Qe({ref:t,id:n,className:Re(i,"".concat(i,"-").concat(p),ie(ie(ie({},"".concat(i,"-mobile"),B),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),P),o)},N),m.createElement(pct,Qe({},ue,{renderTabBar:S})),m.createElement(hct,Qe({destroyInactiveTabPane:b},ae,{animated:D}))))});const yct={motionAppear:!1,motionEnter:!0,motionLeave:!0};function bct(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({},yct),{motionName:Pa(e,"switch")})),n}var Sct=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ect(e){return e.filter(t=>t)}function Cct(e,t){if(e)return e;const n=_a(t).map(r=>{if(m.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=Sct(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return Ect(n)}const wct=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}`}}}}},[of(e,"slide-up"),of(e,"slide-down")]]},xct=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${De(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},kp(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:De(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:De(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${De(e.borderRadiusLG)} 0 0 ${De(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 ${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Tct=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},wr(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:`${De(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({},nc),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${De(e.paddingXXS)} ${De(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"}}})}})}},Rct=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${De(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:a},[`${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:De(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${De(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:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Oct=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,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 ${De(e.borderRadius)} ${De(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${De(e.borderRadius)} ${De(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${De(e.borderRadius)} ${De(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${De(e.borderRadius)} 0 0 ${De(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ict=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({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}},Qc(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},kp(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},Nct=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,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:De(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:De(e.marginXS)},marginLeft:{_skip_check_:!0,value:De(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Mct=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(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,marginLeft:{_skip_check_:!0,value:i},padding:De(e.paddingXS),background:"transparent",border:`${De(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${De(e.borderRadiusLG)} ${De(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:a}},Qc(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ict(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Qc(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Act=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}},Pct=dr("Tabs",e=>{const t=qn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${De(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${De(e.horizontalItemGutter)}`});return[Oct(t),Nct(t),Rct(t),Tct(t),xct(t),Mct(t),wct(t)]},Act),Dct=()=>null;var kct=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Dx=e=>{var t,n,r,i,o,a,s,l,c,u,d;const{type:f,className:p,rootClassName:h,size:g,onEdit:v,hideAdd:y,centered:_,addIcon:b,removeIcon:S,moreIcon:C,more:E,popupClassName:w,children:x,items:T,animated:R,style:N,indicatorSize:I,indicator:P}=e,D=kct(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:F}=D,{direction:L,tabs:B,getPrefixCls:U,getPopupContainer:G}=m.useContext(nn),V=U("tabs",F),W=oi(V),[$,H,K]=Pct(V,W);let re;f==="editable-card"&&(re={onEdit:(ae,ue)=>{let{key:fe,event:se}=ue;v==null||v(ae==="add"?se:fe,ae)},removeIcon:(t=S??(B==null?void 0:B.removeIcon))!==null&&t!==void 0?t:m.createElement(ou,null),addIcon:(b??(B==null?void 0:B.addIcon))||m.createElement(EA,null),showAdd:y!==!0});const Q=U(),A=Zo(g),k=Cct(T,x),Z=bct(V,R),ne=Object.assign(Object.assign({},B==null?void 0:B.style),N),oe={align:(n=P==null?void 0:P.align)!==null&&n!==void 0?n:(r=B==null?void 0:B.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=P==null?void 0:P.size)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:(a=B==null?void 0:B.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:B==null?void 0:B.indicatorSize};return $(m.createElement(_ct,Object.assign({direction:L,getPopupContainer:G},D,{items:k,className:Re({[`${V}-${A}`]:A,[`${V}-card`]:["card","editable-card"].includes(f),[`${V}-editable-card`]:f==="editable-card",[`${V}-centered`]:_},B==null?void 0:B.className,p,h,H,K,W),popupClassName:Re(w,H,K,W),style:ne,editable:re,more:Object.assign({icon:(d=(u=(c=(l=B==null?void 0:B.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:B==null?void 0:B.moreIcon)!==null&&u!==void 0?u:C)!==null&&d!==void 0?d:m.createElement(dq,null),transitionName:`${Q}-slide-up`},E),prefixCls:V,animated:Z,indicator:oe})))};Dx.TabPane=Dct;var Lct=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _Re=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=Lct(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=m.useContext(nn),a=o("card",t),s=Re(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return m.createElement("div",Object.assign({},i,{className:s}))},$ct=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${De(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)} 0 0`},nf()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},nc),{[`
|
||
> ${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:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Fct=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
||
${De(i)} 0 0 0 ${n},
|
||
0 ${De(i)} 0 0 ${n},
|
||
${De(i)} ${De(i)} 0 0 ${n},
|
||
${De(i)} 0 0 0 ${n} inset,
|
||
0 ${De(i)} 0 0 ${n} inset;
|
||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Bct=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${De(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)}`},nf()),{"& > 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:De(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:De(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${De(e.lineWidth)} ${e.lineType} ${o}`}}})},Uct=e=>Object.assign(Object.assign({margin:`${De(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},nf()),{"&-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},nc),"&-description":{color:e.colorTextDescription}}),jct=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${De(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${De(e.padding)} ${De(i)}`}}},Hct=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},zct=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:$ct(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)}`},nf()),[`${t}-grid`]:Fct(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${De(e.borderRadiusLG)} ${De(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Bct(e),[`${t}-meta`]:Uct(e)}),[`${t}-bordered`]:{border:`${De(e.lineWidth)} ${e.lineType} ${i}`,[`${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:`${De(e.borderRadiusLG)} ${De(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`]:jct(e),[`${t}-loading`]:Hct(e),[`${t}-rtl`]:{direction:"rtl"}}},Vct=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${De(r)}`,fontSize:o,[`> ${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"}}}}},Gct=e=>{var t,n;return{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,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},Wct=dr("Card",e=>{const t=qn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[zct(t),Vct(t)]},Gct);var Zie=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Yct=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return m.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return m.createElement("li",{style:{width:`${100/n.length}%`},key:a},m.createElement("span",null,i))}))},qct=m.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d=!0,size:f,type:p,cover:h,actions:g,tabList:v,children:y,activeTabKey:_,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:C,tabProps:E={},classNames:w,styles:x}=e,T=Zie(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:R,direction:N,card:I}=m.useContext(nn),P=Te=>{var xe;(xe=e.onTabChange)===null||xe===void 0||xe.call(e,Te)},D=Te=>{var xe;return Re((xe=I==null?void 0:I.classNames)===null||xe===void 0?void 0:xe[Te],w==null?void 0:w[Te])},F=Te=>{var xe;return Object.assign(Object.assign({},(xe=I==null?void 0:I.styles)===null||xe===void 0?void 0:xe[Te]),x==null?void 0:x[Te])},L=m.useMemo(()=>{let Te=!1;return m.Children.forEach(y,xe=>{(xe==null?void 0:xe.type)===_Re&&(Te=!0)}),Te},[y]),B=R("card",n),[U,G,V]=Wct(B),W=m.createElement(Lp,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),$=_!==void 0,H=Object.assign(Object.assign({},E),{[$?"activeKey":"defaultActiveKey"]:$?_:b,tabBarExtraContent:S});let K;const re=Zo(f),Q=!re||re==="default"?"large":re,A=v?m.createElement(Dx,Object.assign({size:Q},H,{className:`${B}-head-tabs`,onChange:P,items:v.map(Te=>{var{tab:xe}=Te,ge=Zie(Te,["tab"]);return Object.assign({label:xe},ge)})})):null;if(c||a||A){const Te=Re(`${B}-head`,D("header")),xe=Re(`${B}-head-title`,D("title")),ge=Re(`${B}-extra`,D("extra")),Ce=Object.assign(Object.assign({},s),F("header"));K=m.createElement("div",{className:Te,style:Ce},m.createElement("div",{className:`${B}-head-wrapper`},c&&m.createElement("div",{className:xe,style:F("title")},c),a&&m.createElement("div",{className:ge,style:F("extra")},a)),A)}const k=Re(`${B}-cover`,D("cover")),Z=h?m.createElement("div",{className:k,style:F("cover")},h):null,ne=Re(`${B}-body`,D("body")),oe=Object.assign(Object.assign({},l),F("body")),ae=m.createElement("div",{className:ne,style:oe},u?W:y),ue=Re(`${B}-actions`,D("actions")),fe=g!=null&&g.length?m.createElement(Yct,{actionClasses:ue,actionStyle:F("actions"),actions:g}):null,se=ur(T,["onTabChange"]),pe=Re(B,I==null?void 0:I.className,{[`${B}-loading`]:u,[`${B}-bordered`]:d,[`${B}-hoverable`]:C,[`${B}-contain-grid`]:L,[`${B}-contain-tabs`]:v==null?void 0:v.length,[`${B}-${re}`]:re,[`${B}-type-${p}`]:!!p,[`${B}-rtl`]:N==="rtl"},r,i,G,V),_e=Object.assign(Object.assign({},I==null?void 0:I.style),o);return U(m.createElement("div",Object.assign({ref:t},se,{className:pe,style:_e}),K,Z,ae,fe))});var Kct=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Qct=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=Kct(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=m.useContext(nn),l=s("card",t),c=Re(`${l}-meta`,n),u=r?m.createElement("div",{className:`${l}-meta-avatar`},r):null,d=i?m.createElement("div",{className:`${l}-meta-title`},i):null,f=o?m.createElement("div",{className:`${l}-meta-description`},o):null,p=d||f?m.createElement("div",{className:`${l}-meta-detail`},d,f):null;return m.createElement("div",Object.assign({},a,{className:c}),u,p)},Fs=qct;Fs.Grid=_Re;Fs.Meta=Qct;function Xct(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,c=l===void 0?void 0:l,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function h(v){var y=v||{},_=y.upcomingOnly,b=_===void 0?!1:_;p(),d=!b}function g(){for(var v=arguments.length,y=new Array(v),_=0;_<v;_++)y[_]=arguments[_];var b=this,S=Date.now()-f;if(d)return;function C(){f=Date.now(),t.apply(b,y)}function E(){u=void 0}!s&&c&&!u&&C(),p(),c===void 0&&S>e?s?(f=Date.now(),o||(u=setTimeout(c?E:C,e))):C():o!==!0&&(u=setTimeout(c?E:C,c===void 0?e-S:e))}return g.cancel=h,g}function Zct(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return Xct(e,t,{debounceMode:o!==!1})}var fS=m.createContext({}),wb="__rc_cascader_search_mark__",Jct=function(t,n,r){var i=r.label,o=i===void 0?"":i;return n.some(function(a){return String(a[o]).toLowerCase().includes(t.toLowerCase())})},eut=function(t,n,r,i){return n.map(function(o){return o[i.label]}).join(" / ")},tut=function(t,n,r,i,o,a){var s=o.filter,l=s===void 0?Jct:s,c=o.render,u=c===void 0?eut:c,d=o.limit,f=d===void 0?50:d,p=o.sort;return m.useMemo(function(){var h=[];if(!t)return[];function g(v,y){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!p&&f!==!1&&f>0&&h.length>=f)){var S=[].concat(at(y),[b]),C=b[r.children],E=_||b.disabled;if((!C||C.length===0||a)&&l(t,S,{label:r.label})){var w;h.push(q(q({},b),{},(w={disabled:E},ie(w,r.label,u(t,S,i,r)),ie(w,wb,S),ie(w,r.children,void 0),w)))}C&&g(b[r.children],S,E)}})}return g(n,[]),p&&h.sort(function(v,y){return p(v[wb],y[wb],t,r)}),f!==!1&&f>0?h.slice(0,f):h},[t,n,r,i,u,a,l,p,f])},Tq="__RC_CASCADER_SPLIT__",yRe="SHOW_PARENT",bRe="SHOW_CHILD";function Yu(e){return e.join(Tq)}function d0(e){return e.map(Yu)}function nut(e){return e.split(Tq)}function SRe(e){var t=e||{},n=t.label,r=t.value,i=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:i||"children"}}function vC(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function rut(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function ERe(e,t){return e.map(function(n){var r;return(r=n[wb])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function iut(e){return Array.isArray(e)&&Array.isArray(e[0])}function CA(e){return e?iut(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function CRe(e,t,n){var r=new Set(e),i=t();return e.filter(function(o){var a=i[o],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===bRe?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function f0(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,o=[],a=function(){var c,u,d,f=e[s],p=(c=i)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(f):v===f}),h=p!==-1?(u=i)===null||u===void 0?void 0:u[p]:null;o.push({value:(d=h==null?void 0:h[n.value])!==null&&d!==void 0?d:f,index:p,option:h}),i=h==null?void 0:h[n.children]},s=0;s<e.length;s+=1)a();return o}const out=function(e,t,n,r,i){return m.useMemo(function(){var o=i||function(a){var s=r?a.slice(-1):a,l=" / ";return s.every(function(c){return["string","number"].includes(qt(c))})?s.join(l):s.reduce(function(c,u,d){var f=m.isValidElement(u)?m.cloneElement(u,{key:d}):u;return d===0?[f]:[].concat(at(c),[l,f])},[])};return e.map(function(a){var s,l=f0(a,t,n),c=o(l.map(function(d){var f,p=d.option,h=d.value;return(f=p==null?void 0:p[n.label])!==null&&f!==void 0?f:h}),l.map(function(d){var f=d.option;return f})),u=Yu(a);return{label:c,value:u,key:u,valueCells:a,disabled:(s=l[l.length-1])===null||s===void 0||(s=s.option)===null||s===void 0?void 0:s.disabled}})},[e,t,n,i,r])};function wRe(e,t){return m.useCallback(function(n){var r=[],i=[];return n.forEach(function(o){var a=f0(o,e,t);a.every(function(s){return s.option})?i.push(o):r.push(o)}),[i,r]},[e,t])}function sl(e,t){return e[t]}var aut=["children"];function xRe(e,t){return"".concat(e,"-").concat(t)}function sut(e){return e&&e.type&&e.type.isTreeNode}function kx(e,t){return e??t}function wA(e){var t=e||{},n=t.title,r=t._title,i=t.key,o=t.children,a=n||"title";return{title:a,_title:r||[a],key:i||"key",children:o||"children"}}function lut(e){function t(n){var r=_a(n);return r.map(function(i){if(!sut(i))return Wr(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,s=a.children,l=It(a,aut),c=q({key:o},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function uF(e,t,n){var r=wA(n),i=r._title,o=r.key,a=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,p){for(var h=xRe(d?d.pos:"0",p),g=kx(f[o],h),v,y=0;y<i.length;y+=1){var _=i[y];if(f[_]!==void 0){v=f[_];break}}var b=Object.assign(ur(f,[].concat(at(i),[o,a])),{title:v,key:g,parent:d,pos:h,children:null,data:f,isStart:[].concat(at(d?d.isStart:[]),[p===0]),isEnd:[].concat(at(d?d.isEnd:[]),[p===u.length-1])});return l.push(b),t===!0||s.has(g)?b.children=c(f[a]||[],b):b.children=[],b})}return c(e),l}function cut(e,t,n){var r={};qt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,s=i.fieldNames,l=wA(s),c=l.key,u=l.children,d=o||u,f;a?typeof a=="string"?f=function(g){return g[a]}:typeof a=="function"&&(f=function(g){return a(g)}):f=function(g,v){return kx(g[c],v)};function p(h,g,v,y){var _=h?h[d]:e,b=h?xRe(v.pos,g):"0",S=h?[].concat(at(y),[h]):[];if(h){var C=f(h,b),E={node:h,index:g,pos:b,key:C,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(E)}_&&_.forEach(function(w,x){p(w,x,{node:h,pos:b,level:v?v.level+1:-1},S)})}p(null)}function Rq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),cut(e,function(p){var h=p.node,g=p.index,v=p.pos,y=p.key,_=p.parentPos,b=p.level,S=p.nodes,C={node:h,nodes:S,index:g,key:y,pos:v,level:b},E=kx(y,v);u[v]=C,d[E]=C,C.parent=u[_],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,f)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),i&&i(f),f}function KC(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=sl(u,e),f={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return f}function ta(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=q(q({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Wr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}const uut=function(e,t){var n=m.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=m.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Rq(e,{fieldNames:t,initWrapper:function(o){return q(q({},o),{},{pathKeyEntities:{}})},processEntity:function(o,a){var s=o.nodes.map(function(l){return l[t.value]}).join(Tq);a.pathKeyEntities[s]=o,o.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function TRe(e,t){var n=m.useMemo(function(){return t||[]},[t]),r=uut(n,e),i=m.useCallback(function(o){var a=r();return o.map(function(s){var l=a[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function dut(e){return m.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&qt(e)==="object"&&(t=q(q({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function RRe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function fut(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function put(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(d){var f=d.key,p=d.node,h=d.children,g=h===void 0?[]:h;i.has(f)&&!r(p)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var f=d.parent,p=d.node;if(!(r(p)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var h=!0,g=!1;(f.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,_=i.has(y);h&&!_&&(h=!1),!g&&(_||o.has(y))&&(g=!0)}),h&&i.add(f.key),g&&o.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(RRe(o,i))}}function mut(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(f){var p=f.key,h=f.node,g=f.children,v=g===void 0?[]:g;!o.has(p)&&!a.has(p)&&!i(h)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){o.delete(y.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(f){var p=f.parent,h=f.node;if(!(i(h)||!f.parent||c.has(f.parent.key))){if(i(f.parent.node)){c.add(p.key);return}var g=!0,v=!1;(p.children||[]).filter(function(y){return!i(y.node)}).forEach(function(y){var _=y.key,b=o.has(_);g&&!b&&(g=!1),!v&&(b||a.has(_))&&(v=!0)}),g||o.delete(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(RRe(a,o))}}function ip(e,t,n,r){var i=[],o;o=fut;var a=new Set(e.filter(function(u){var d=!!sl(n,u);return d||i.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],f=d.level,p=s.get(f);p||(p=new Set,s.set(f,p)),p.add(d),l=Math.max(l,f)}),Wr(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=put(a,s,l,o):c=mut(a,t.halfCheckedKeys,s,l,o),c}function ORe(e,t,n,r,i,o,a,s){return function(l){if(!e)t(l);else{var c=Yu(l),u=d0(n),d=d0(r),f=u.includes(c),p=i.some(function(E){return Yu(E)===c}),h=n,g=i;if(p&&!f)g=i.filter(function(E){return Yu(E)!==c});else{var v=f?u.filter(function(E){return E!==c}):[].concat(at(u),[c]),y=o(),_;if(f){var b=ip(v,{checked:!1,halfCheckedKeys:d},y);_=b.checkedKeys}else{var S=ip(v,!0,y);_=S.checkedKeys}var C=CRe(_,o,s);h=a(C)}t([].concat(at(g),at(h)))}}}function IRe(e,t,n,r,i){return m.useMemo(function(){var o=i(t),a=Oe(o,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=d0(s),u=n(),d=ip(c,!0,u),f=d.checkedKeys,p=d.halfCheckedKeys;return[r(f),r(p),l]},[e,t,n,r,i])}var hut=m.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function gut(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,s=e.disableCheckbox,l=m.useContext(fS),c=l.checkable,u=typeof c!="boolean"?c:null;return m.createElement("span",{className:Re("".concat(n),(t={},ie(t,"".concat(n,"-checked"),r),ie(t,"".concat(n,"-indeterminate"),!r&&i),ie(t,"".concat(n,"-disabled"),o||s),t)),onClick:a},u)}var NRe="__cascader_fix_label__";function vut(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,o=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,d=e.loadingKeys,f=e.isSelectable,p=e.disabled,h="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=m.useContext(fS),y=v.fieldNames,_=v.changeOnSelect,b=v.expandTrigger,S=v.expandIcon,C=v.loadingIcon,E=v.dropdownMenuColumnStyle,w=v.optionRender,x=b==="hover",T=function(I){return p||I},R=m.useMemo(function(){return r.map(function(N){var I,P=N.disabled,D=N.disableCheckbox,F=N[wb],L=(I=N[NRe])!==null&&I!==void 0?I:N[y.label],B=N[y.value],U=vC(N,y),G=F?F.map(function(K){return K[y.value]}):[].concat(at(o),[B]),V=Yu(G),W=d.includes(V),$=c.has(V),H=u.has(V);return{disabled:P,label:L,value:B,isLeaf:U,isLoading:W,checked:$,halfChecked:H,option:N,disableCheckbox:D,fullPath:G,fullPathKey:V}})},[r,c,y,u,d,o]);return m.createElement("ul",{className:h,role:"menu"},R.map(function(N){var I,P=N.disabled,D=N.label,F=N.value,L=N.isLeaf,B=N.isLoading,U=N.checked,G=N.halfChecked,V=N.option,W=N.fullPath,$=N.fullPathKey,H=N.disableCheckbox,K=function(){if(!T(P)){var k=at(W);x&&L&&k.pop(),l(k)}},re=function(){f(V)&&!T(P)&&s(W,L)},Q;return typeof V.title=="string"?Q=V.title:typeof D=="string"&&(Q=D),m.createElement("li",{key:$,className:Re(g,(I={},ie(I,"".concat(g,"-expand"),!L),ie(I,"".concat(g,"-active"),i===F||i===$),ie(I,"".concat(g,"-disabled"),T(P)),ie(I,"".concat(g,"-loading"),B),I)),style:E,role:"menuitemcheckbox",title:Q,"aria-checked":U,"data-path-key":$,onClick:function(){K(),!H&&(!n||L)&&re()},onDoubleClick:function(){_&&a(!1)},onMouseEnter:function(){x&&K()},onMouseDown:function(k){k.preventDefault()}},n&&m.createElement(gut,{prefixCls:"".concat(t,"-checkbox"),checked:U,halfChecked:G,disabled:T(P)||H,disableCheckbox:H,onClick:function(k){H||(k.stopPropagation(),re())}}),m.createElement("div",{className:"".concat(g,"-content")},w?w(V):D),!B&&S&&!L&&m.createElement("div",{className:"".concat(g,"-expand-icon")},S),B&&C&&m.createElement("div",{className:"".concat(g,"-loading-icon")},C))}))}var _ut=function(t,n){var r=m.useContext(fS),i=r.values,o=i[0],a=m.useState([]),s=Oe(a,2),l=s[0],c=s[1];return m.useEffect(function(){t||c(o||[])},[n,o]),[l,c]};const yut=function(e,t,n,r,i,o,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,d=s==="rtl",f=m.useMemo(function(){for(var E=-1,w=t,x=[],T=[],R=r.length,N=ERe(t,n),I=function(B){var U=w.findIndex(function(G,V){return(N[V]?Yu(N[V]):G[n.value])===r[B]});if(U===-1)return 1;E=U,x.push(E),T.push(r[B]),w=w[E][n.children]},P=0;P<R&&w&&!I(P);P+=1);for(var D=t,F=0;F<x.length-1;F+=1)D=D[x[F]][n.children];return[T,E,D,N]},[r,n,t]),p=Oe(f,4),h=p[0],g=p[1],v=p[2],y=p[3],_=function(w){i(w)},b=function(w){var x=v.length,T=g;T===-1&&w<0&&(T=x);for(var R=0;R<x;R+=1){T=(T+w+x)%x;var N=v[T];if(N&&!N.disabled){var I=h.slice(0,-1).concat(y[T]?Yu(y[T]):N[n.value]);_(I);return}}},S=function(){if(h.length>1){var w=h.slice(0,-1);_(w)}else c(!1)},C=function(){var w,x=((w=v[g])===null||w===void 0?void 0:w[n.children])||[],T=x.find(function(N){return!N.disabled});if(T){var R=[].concat(at(h),[T[n.value]]);_(R)}};m.useImperativeHandle(e,function(){return{onKeyDown:function(w){var x=w.which;switch(x){case gt.UP:case gt.DOWN:{var T=0;x===gt.UP?T=-1:x===gt.DOWN&&(T=1),T!==0&&b(T);break}case gt.LEFT:{if(l)break;d?C():S();break}case gt.RIGHT:{if(l)break;d?S():C();break}case gt.BACKSPACE:{l||S();break}case gt.ENTER:{if(h.length){var R=v[g],N=(R==null?void 0:R[wb])||[];N.length?o(N.map(function(I){return I[n.value]}),N[N.length-1]):o(h,v[g])}break}case gt.ESC:c(!1),u&&w.stopPropagation()}},onKeyUp:function(){}}})};var MRe=m.forwardRef(function(e,t){var n,r,i,o=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,d=e.open,f=e.disabled,p=m.useRef(null),h=u==="rtl",g=m.useContext(fS),v=g.options,y=g.values,_=g.halfValues,b=g.fieldNames,S=g.changeOnSelect,C=g.onSelect,E=g.searchOptions,w=g.dropdownPrefixCls,x=g.loadData,T=g.expandTrigger,R=w||o,N=m.useState([]),I=Oe(N,2),P=I[0],D=I[1],F=function(fe){if(!(!x||s)){var se=f0(fe,v,b),pe=se.map(function(xe){var ge=xe.option;return ge}),_e=pe[pe.length-1];if(_e&&!vC(_e,b)){var Te=Yu(fe);D(function(xe){return[].concat(at(xe),[Te])}),x(pe)}}};m.useEffect(function(){P.length&&P.forEach(function(ue){var fe=nut(ue),se=f0(fe,v,b,!0).map(function(_e){var Te=_e.option;return Te}),pe=se[se.length-1];(!pe||pe[b.children]||vC(pe,b))&&D(function(_e){return _e.filter(function(Te){return Te!==ue})})})},[v,P,b]);var L=m.useMemo(function(){return new Set(d0(y))},[y]),B=m.useMemo(function(){return new Set(d0(_))},[_]),U=_ut(a,d),G=Oe(U,2),V=G[0],W=G[1],$=function(fe){W(fe),F(fe)},H=function(fe){if(f)return!1;var se=fe.disabled,pe=vC(fe,b);return!se&&(pe||S||a)},K=function(fe,se){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;C(fe),!a&&(se||S&&(T==="hover"||pe))&&l(!1)},re=m.useMemo(function(){return s?E:v},[s,E,v]),Q=m.useMemo(function(){for(var ue=[{options:re}],fe=re,se=ERe(fe,b),pe=function(){var xe=V[_e],ge=fe.find(function(ye,be){return(se[be]?Yu(se[be]):ye[b.value])===xe}),Ce=ge==null?void 0:ge[b.children];if(!(Ce!=null&&Ce.length))return 1;fe=Ce,ue.push({options:Ce})},_e=0;_e<V.length&&!pe();_e+=1);return ue},[re,V,b]),A=function(fe,se){H(se)&&K(fe,vC(se,b),!0)};yut(t,re,b,V,$,A,{direction:u,searchValue:s,toggleOpen:l,open:d}),m.useEffect(function(){if(!s)for(var ue=0;ue<V.length;ue+=1){var fe,se=V.slice(0,ue+1),pe=Yu(se),_e=(fe=p.current)===null||fe===void 0?void 0:fe.querySelector('li[data-path-key="'.concat(pe.replace(/\\{0,2}"/g,'\\"'),'"]'));_e&&rut(_e)}},[V,s]);var k=!((n=Q[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),Z=[(r={},ie(r,b.value,"__EMPTY__"),ie(r,NRe,c),ie(r,"disabled",!0),r)],ne=q(q({},e),{},{multiple:!k&&a,onSelect:K,onActive:$,onToggleOpen:l,checkedSet:L,halfCheckedSet:B,loadingKeys:P,isSelectable:H}),oe=k?[{options:Z}]:Q,ae=oe.map(function(ue,fe){var se=V.slice(0,fe),pe=V[fe];return m.createElement(vut,Qe({key:fe},ne,{prefixCls:R,options:ue.options,prevValuePath:se,activeValue:pe}))});return m.createElement(hut,{open:d},m.createElement("div",{className:Re("".concat(R,"-menus"),(i={},ie(i,"".concat(R,"-menu-empty"),k),ie(i,"".concat(R,"-rtl"),h),i)),ref:p},ae))}),but=m.forwardRef(function(e,t){var n=zY();return m.createElement(MRe,Qe({},e,n,{ref:t}))});function Sut(){}function ARe(e){var t,n=e,r=n.prefixCls,i=r===void 0?"rc-cascader":r,o=n.style,a=n.className,s=n.options,l=n.checkable,c=n.defaultValue,u=n.value,d=n.fieldNames,f=n.changeOnSelect,p=n.onChange,h=n.showCheckedStrategy,g=n.loadData,v=n.expandTrigger,y=n.expandIcon,_=y===void 0?">":y,b=n.loadingIcon,S=n.direction,C=n.notFoundContent,E=C===void 0?"Not Found":C,w=n.disabled,x=!!l,T=Fn(c,{value:u,postState:CA}),R=Oe(T,2),N=R[0],I=R[1],P=m.useMemo(function(){return SRe(d)},[JSON.stringify(d)]),D=TRe(P,s),F=Oe(D,3),L=F[0],B=F[1],U=F[2],G=wRe(L,P),V=IRe(x,N,B,U,G),W=Oe(V,3),$=W[0],H=W[1],K=W[2],re=Wn(function(oe){if(I(oe),p){var ae=CA(oe),ue=ae.map(function(pe){return f0(pe,L,P).map(function(_e){return _e.option})}),fe=x?ae:ae[0],se=x?ue:ue[0];p(fe,se)}}),Q=ORe(x,re,$,H,K,B,U,h),A=Wn(function(oe){Q(oe)}),k=m.useMemo(function(){return{options:L,fieldNames:P,values:$,halfValues:H,changeOnSelect:f,onSelect:A,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:_,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[L,P,$,H,f,A,l,g,v,_,b]),Z="".concat(i,"-panel"),ne=!L.length;return m.createElement(fS.Provider,{value:k},m.createElement("div",{className:Re(Z,(t={},ie(t,"".concat(Z,"-rtl"),S==="rtl"),ie(t,"".concat(Z,"-empty"),ne),t),a),style:o},ne?E:m.createElement(MRe,{prefixCls:i,searchValue:"",multiple:x,toggleOpen:Sut,open:!0,direction:S,disabled:w})))}var Eut=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Lx=m.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,o=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,d=e.checkable,f=e.autoClearSearchValue,p=f===void 0?!0:f,h=e.searchValue,g=e.onSearch,v=e.showSearch,y=e.expandTrigger,_=e.options,b=e.dropdownPrefixCls,S=e.loadData,C=e.popupVisible,E=e.open,w=e.popupClassName,x=e.dropdownClassName,T=e.dropdownMenuColumnStyle,R=e.dropdownStyle,N=e.popupPlacement,I=e.placement,P=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,F=e.expandIcon,L=F===void 0?">":F,B=e.loadingIcon,U=e.children,G=e.dropdownMatchSelectWidth,V=G===void 0?!1:G,W=e.showCheckedStrategy,$=W===void 0?yRe:W,H=e.optionRender,K=It(e,Eut),re=KY(n),Q=!!d,A=Fn(a,{value:s,postState:CA}),k=Oe(A,2),Z=k[0],ne=k[1],oe=m.useMemo(function(){return SRe(o)},[JSON.stringify(o)]),ae=TRe(oe,_),ue=Oe(ae,3),fe=ue[0],se=ue[1],pe=ue[2],_e=Fn("",{value:h,postState:function(xt){return xt||""}}),Te=Oe(_e,2),xe=Te[0],ge=Te[1],Ce=function(xt,Nt){ge(xt),Nt.source!=="blur"&&g&&g(xt)},ye=dut(v),be=Oe(ye,2),Ee=be[0],Me=be[1],X=tut(xe,fe,oe,b||i,Me,l||Q),Y=wRe(fe,oe),J=IRe(Q,Z,se,pe,Y),he=Oe(J,3),ve=he[0],ce=he[1],$e=he[2],Be=m.useMemo(function(){var Ht=d0(ve),xt=CRe(Ht,se,$);return[].concat(at($e),at(pe(xt)))},[ve,se,pe,$e,$]),me=out(Be,fe,oe,Q,u),Fe=Wn(function(Ht){if(ne(Ht),c){var xt=CA(Ht),Nt=xt.map(function(Ve){return f0(Ve,fe,oe).map(function(je){return je.option})}),Vt=Q?xt:xt[0],Ue=Q?Nt:Nt[0];c(Vt,Ue)}}),Xe=ORe(Q,Fe,ve,ce,$e,se,pe,$),ze=Wn(function(Ht){(!Q||p)&&ge(""),Xe(Ht)}),qe=function(xt,Nt){if(Nt.type==="clear"){Fe([]);return}var Vt=Nt.values[0],Ue=Vt.valueCells;ze(Ue)},Ge=E!==void 0?E:C,We=x||w,Lt=I||N,ut=function(xt){P==null||P(xt),D==null||D(xt)},ft=m.useMemo(function(){return{options:fe,fieldNames:oe,values:ve,halfValues:ce,changeOnSelect:l,onSelect:ze,checkable:d,searchOptions:X,dropdownPrefixCls:b,loadData:S,expandTrigger:y,expandIcon:L,loadingIcon:B,dropdownMenuColumnStyle:T,optionRender:H}},[fe,oe,ve,ce,l,ze,d,X,b,S,y,L,B,T,H]),bt=!(xe?X:fe).length,St=xe&&Me.matchInputWidth||bt?{}:{minWidth:"auto"};return m.createElement(fS.Provider,{value:ft},m.createElement(GY,Qe({},K,{ref:t,id:re,prefixCls:i,autoClearSearchValue:p,dropdownMatchSelectWidth:V,dropdownStyle:q(q({},St),R),displayValues:me,onDisplayValuesChange:qe,mode:Q?"multiple":void 0,searchValue:xe,onSearch:Ce,showSearch:Ee,OptionList:but,emptyOptions:bt,open:Ge,dropdownClassName:We,placement:Lt,onDropdownVisibleChange:ut,getRawInputElement:function(){return U}})))});Lx.SHOW_PARENT=yRe;Lx.SHOW_CHILD=bRe;Lx.Panel=ARe;function PRe(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=m.useContext(nn),o=t||r,a=n("select",e),s=n("cascader",e);return[a,s,o,i]}function DRe(e,t){return m.useMemo(()=>t?m.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const kRe=(e,t,n)=>{let r=n;n||(r=t?m.createElement(aw,null):m.createElement(Ch,null));const i=m.createElement("span",{className:`${e}-menu-item-loading-icon`},m.createElement(rf,{spin:!0}));return m.useMemo(()=>[r,i],[r])},Cut=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},wr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},wr(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({},wr(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({},kp(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${De(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:`${De(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 tk(e,t){const n=qn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cut(n)]}const LRe=dr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[tk(n,e)]}),$Re=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
|
||
&${r}-expand ${r}-expand-icon,
|
||
${r}-loading-icon
|
||
`;return[tk(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},nc),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},wut=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},$Re(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},N_(e)]},FRe=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},BRe=dr("Cascader",e=>[wut(e)],FRe),xut=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[$Re(e),{display:"inline-flex",border:`${De(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Tut=A1e(["Cascader","Panel"],e=>xut(e),FRe);function Rut(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:a,expandIcon:s,disabled:l}=e,c=m.useContext(No),u=l??c,[d,f,p,h]=PRe(t,a),g=oi(f),[v,y,_]=BRe(f,g);Tut(f);const b=p==="rtl",[S,C]=kRe(d,b,s),E=o||(h==null?void 0:h("Cascader"))||m.createElement($D,{componentName:"Cascader"}),w=DRe(f,r);return v(m.createElement(ARe,Object.assign({},e,{checkable:w,prefixCls:f,className:Re(n,y,i,_,g),notFoundContent:E,direction:p,expandIcon:S,loadingIcon:C,disabled:u})))}var Out=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const{SHOW_CHILD:Iut,SHOW_PARENT:Nut}=Lx;function Mut(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[].concat(at(a),[t,s]),[]),i=[];let o=0;return r.forEach((a,s)=>{const l=o+a.length;let c=e.slice(o,l);o=l,s%2===1&&(c=m.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const Aut=(e,t,n,r)=>{const i=[],o=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&i.push(" / ");let l=a[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=Mut(String(l),o,n)),i.push(l)}),i},pS=m.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,className:a,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:d="",popupClassName:f,dropdownClassName:p,expandIcon:h,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:_,direction:b,getPopupContainer:S,status:C,showArrow:E,builtinPlacements:w,style:x,variant:T}=e,R=Out(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),N=ur(R,["suffixIcon"]),{getPopupContainer:I,getPrefixCls:P,popupOverflow:D,cascader:F}=m.useContext(nn),{status:L,hasFeedback:B,isFormItemInput:U,feedbackIcon:G}=m.useContext(Qo),V=$p(L,C),[W,$,H,K]=PRe(r,b),re=H==="rtl",Q=P(),A=oi(W),[k,Z,ne]=ZY(W,A),oe=oi($),[ae]=BRe($,oe),{compactSize:ue,compactItemClassnames:fe}=pd(W,b),[se,pe]=Fp("cascader",T,c),_e=_||(K==null?void 0:K("Cascader"))||m.createElement($D,{componentName:"Cascader"}),Te=Re(f||p,`${$}-dropdown`,{[`${$}-dropdown-rtl`]:H==="rtl"},s,A,oe,Z,ne),xe=m.useMemo(()=>{if(!v)return v;let me={render:Aut};return typeof v=="object"&&(me=Object.assign(Object.assign({},me),v)),me},[v]),ge=Zo(me=>{var Fe;return(Fe=i??ue)!==null&&Fe!==void 0?Fe:me}),Ce=m.useContext(No),ye=o??Ce,[be,Ee]=kRe(W,re,h),Me=DRe($,l),X=eq(e.suffixIcon,E),{suffixIcon:Y,removeIcon:J,clearIcon:he}=FD(Object.assign(Object.assign({},e),{hasFeedback:B,feedbackIcon:G,showSuffixIcon:X,multiple:l,prefixCls:W,componentName:"Cascader"})),ve=m.useMemo(()=>g!==void 0?g:re?"bottomRight":"bottomLeft",[g,re]),ce=y===!0?{clearIcon:he}:y,[$e]=au("SelectLike",(n=N.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Be=m.createElement(Lx,Object.assign({prefixCls:W,className:Re(!r&&$,{[`${W}-lg`]:ge==="large",[`${W}-sm`]:ge==="small",[`${W}-rtl`]:re,[`${W}-${se}`]:pe,[`${W}-in-form-item`]:U},id(W,V,B),fe,F==null?void 0:F.className,a,s,A,oe,Z,ne),disabled:ye,style:Object.assign(Object.assign({},F==null?void 0:F.style),x)},N,{builtinPlacements:XY(w,D),direction:H,placement:ve,notFoundContent:_e,allowClear:ce,showSearch:xe,expandIcon:be,suffixIcon:Y,removeIcon:J,loadingIcon:Ee,checkable:Me,dropdownClassName:Te,dropdownPrefixCls:r||$,dropdownStyle:Object.assign(Object.assign({},N.dropdownStyle),{zIndex:$e}),choiceTransitionName:Pa(Q,"",d),transitionName:Pa(Q,"slide-up",u),getPopupContainer:S||I,ref:t}));return ae(k(Be))}),Put=Fh(pS,"dropdownAlign",e=>ur(e,["visible"]));pS.SHOW_PARENT=Nut;pS.SHOW_CHILD=Iut;pS.Panel=Rut;pS._InternalPanelDoNotUseOrYouWillBeFired=Put;const URe=de.createContext(null);var Dut=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kut=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,p=Dut(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:g,checkbox:v}=m.useContext(nn),y=m.useContext(URe),{isFormItemInput:_}=m.useContext(Qo),b=m.useContext(No),S=(n=(y==null?void 0:y.disabled)||f)!==null&&n!==void 0?n:b,C=m.useRef(p.value),E=m.useRef(null),w=Sa(t,E);m.useEffect(()=>{y==null||y.registerValue(p.value)},[]),m.useEffect(()=>{if(!d)return p.value!==C.current&&(y==null||y.cancelValue(C.current),y==null||y.registerValue(p.value),C.current=p.value),()=>y==null?void 0:y.cancelValue(p.value)},[p.value]),m.useEffect(()=>{var U;!((U=E.current)===null||U===void 0)&&U.input&&(E.current.input.indeterminate=s)},[s]);const x=h("checkbox",r),T=oi(x),[R,N,I]=LRe(x,T),P=Object.assign({},p);y&&!d&&(P.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),y.toggleOption&&y.toggleOption({label:a,value:p.value})},P.name=y.name,P.checked=y.value.includes(p.value));const D=Re(`${x}-wrapper`,{[`${x}-rtl`]:g==="rtl",[`${x}-wrapper-checked`]:P.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:_},v==null?void 0:v.className,i,o,I,T,N),F=Re({[`${x}-indeterminate`]:s},_D,N),[L,B]=iRe(P.onClick);return R(m.createElement(yD,{component:"Checkbox",disabled:S},m.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:L},m.createElement(rRe,Object.assign({},P,{onClick:B,prefixCls:x,className:F,disabled:S,ref:w})),a!==void 0&&m.createElement("span",null,a))))},jRe=m.forwardRef(kut);var Lut=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $ut=m.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=Lut(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m.useContext(nn),[p,h]=m.useState(u.value||n||[]),[g,v]=m.useState([]);m.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const y=m.useMemo(()=>i.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[i]),_=F=>{v(L=>L.filter(B=>B!==F))},b=F=>{v(L=>[].concat(at(L),[F]))},S=F=>{const L=p.indexOf(F.value),B=at(p);L===-1?B.push(F.value):B.splice(L,1),"value"in u||h(B),c==null||c(B.filter(U=>g.includes(U)).sort((U,G)=>{const V=y.findIndex($=>$.value===U),W=y.findIndex($=>$.value===G);return V-W}))},C=d("checkbox",o),E=`${C}-group`,w=oi(C),[x,T,R]=LRe(C,w),N=ur(u,["value","disabled"]),I=i.length?y.map(F=>m.createElement(jRe,{prefixCls:C,key:F.value.toString(),disabled:"disabled"in F?F.disabled:u.disabled,value:F.value,checked:p.includes(F.value),onChange:F.onChange,className:`${E}-item`,style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,P={toggleOption:S,value:p,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:_},D=Re(E,{[`${E}-rtl`]:f==="rtl"},a,s,R,w,T);return x(m.createElement("div",Object.assign({className:D,style:l},N,{ref:t}),m.createElement(URe.Provider,{value:P},I)))}),P_=jRe;P_.Group=$ut;P_.__ANT_CHECKBOX=!0;const HRe=m.createContext({});var Fut=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Jie(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const But=["xs","sm","md","lg","xl","xxl"],sw=m.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m.useContext(nn),{gutter:i,wrap:o}=m.useContext(HRe),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:g}=e,v=Fut(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[_,b,S]=unt(y),C={};let E={};But.forEach(T=>{let R={};const N=e[T];typeof N=="number"?R.span=N:typeof N=="object"&&(R=N||{}),delete v[T],E=Object.assign(Object.assign({},E),{[`${y}-${T}-${R.span}`]:R.span!==void 0,[`${y}-${T}-order-${R.order}`]:R.order||R.order===0,[`${y}-${T}-offset-${R.offset}`]:R.offset||R.offset===0,[`${y}-${T}-push-${R.push}`]:R.push||R.push===0,[`${y}-${T}-pull-${R.pull}`]:R.pull||R.pull===0,[`${y}-rtl`]:r==="rtl"}),R.flex&&(E[`${y}-${T}-flex`]=!0,C[`--${y}-${T}-flex`]=Jie(R.flex))});const w=Re(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,E,b,S),x={};if(i&&i[0]>0){const T=i[0]/2;x.paddingLeft=T,x.paddingRight=T}return h&&(x.flex=Jie(h),o===!1&&!x.minWidth&&(x.minWidth=0)),_(m.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},x),g),C),className:w,ref:t}),p))});var Uut=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function eoe(e,t){const[n,r]=m.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<c0.length;o++){const a=c0[o];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return m.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const Oq=m.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=Uut(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=m.useContext(nn),[p,h]=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=eoe(i,g),_=eoe(r,g),b=m.useRef(l),S=Axe();m.useEffect(()=>{const B=S.subscribe(U=>{v(U);const G=b.current||0;(!Array.isArray(G)&&typeof G=="object"||Array.isArray(G)&&(typeof G[0]=="object"||typeof G[1]=="object"))&&h(U)});return()=>S.unsubscribe(B)},[]);const C=()=>{const B=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((G,V)=>{if(typeof G=="object")for(let W=0;W<c0.length;W++){const $=c0[W];if(p[$]&&G[$]!==void 0){B[V]=G[$];break}}else B[V]=G}),B},E=d("row",n),[w,x,T]=cnt(E),R=C(),N=Re(E,{[`${E}-no-wrap`]:c===!1,[`${E}-${_}`]:_,[`${E}-${y}`]:y,[`${E}-rtl`]:f==="rtl"},o,x,T),I={},P=R[0]!=null&&R[0]>0?R[0]/-2:void 0;P&&(I.marginLeft=P,I.marginRight=P);const[D,F]=R;I.rowGap=F;const L=m.useMemo(()=>({gutter:[D,F],wrap:c}),[D,F,c]);return w(m.createElement(HRe.Provider,{value:L},m.createElement("div",Object.assign({},u,{className:N,style:Object.assign(Object.assign({},I),a),ref:t}),s)))}),jut=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{borderBlockStart:`${De(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${De(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${De(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${De(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:`${De(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${De(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${De(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-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}}})}},Hut=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),zut=dr("Divider",e=>{const t=qn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[jut(t)]},Hut,{unitless:{orientationMargin:!0}});var Vut=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Gut=e=>{const{getPrefixCls:t,direction:n,divider:r}=m.useContext(nn),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,variant:f="solid",plain:p,style:h}=e,g=Vut(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[y,_,b]=zut(v),S=!!u,C=a==="left"&&s!=null,E=a==="right"&&s!=null,w=Re(v,r==null?void 0:r.className,_,b,`${v}-${o}`,{[`${v}-with-text`]:S,[`${v}-with-text-${a}`]:S,[`${v}-dashed`]:!!d,[`${v}-${f}`]:f!=="solid",[`${v}-plain`]:!!p,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:C,[`${v}-no-default-orientation-margin-right`]:E},l,c),x=m.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),T=Object.assign(Object.assign({},C&&{marginLeft:x}),E&&{marginRight:x});return y(m.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),u&&o!=="vertical"&&m.createElement("span",{className:`${v}-inner-text`,style:T},u)))};var toe=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Td=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Wut(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,o=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,d=m.useRef(null),f=m.useState(r),p=Oe(f,2),h=p[0],g=p[1],v=function(F){var L,B=i(F),U=(L=n.current)===null||L===void 0?void 0:L.querySelectorAll(".".concat(t,"-item"))[B];return(U==null?void 0:U.offsetParent)&&U},y=m.useState(null),_=Oe(y,2),b=_[0],S=_[1],C=m.useState(null),E=Oe(C,2),w=E[0],x=E[1];gr(function(){if(h!==r){var D=v(h),F=v(r),L=toe(D,u),B=toe(F,u);g(r),S(L),x(B),D&&F?a():s()}},[r]);var T=m.useMemo(function(){if(u){var D;return Td((D=b==null?void 0:b.top)!==null&&D!==void 0?D:0)}return Td(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[u,l,b]),R=m.useMemo(function(){if(u){var D;return Td((D=w==null?void 0:w.top)!==null&&D!==void 0?D:0)}return Td(l==="rtl"?-(w==null?void 0:w.right):w==null?void 0:w.left)},[u,l,w]),N=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},I=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},P=function(){S(null),x(null),s()};return!b||!w?null:m.createElement(qo,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:N,onAppearActive:I,onVisibleChanged:P},function(D,F){var L=D.className,B=D.style,U=q(q({},B),{},{"--thumb-start-left":T,"--thumb-start-width":Td(b==null?void 0:b.width),"--thumb-active-left":R,"--thumb-active-width":Td(w==null?void 0:w.width),"--thumb-start-top":T,"--thumb-start-height":Td(b==null?void 0:b.height),"--thumb-active-top":R,"--thumb-active-height":Td(w==null?void 0:w.height)}),G={ref:Sa(d,F),style:U,className:Re("".concat(t,"-thumb"),L)};return m.createElement("div",G)})}var Yut=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function qut(e){if(typeof e.title<"u")return e.title;if(qt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Kut(e){return e.map(function(t){if(qt(t)==="object"&&t!==null){var n=qut(t);return q(q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Qut=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,o=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,d=t.onFocus,f=t.onBlur,p=t.onKeyDown,h=t.onKeyUp,g=t.onMouseDown,v=function(_){i||u(_,l)};return m.createElement("label",{className:Re(r,ie({},"".concat(n,"-item-disabled"),i)),onMouseDown:g},m.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:o,onChange:v,onFocus:d,onBlur:f,onKeyDown:p,onKeyUp:h}),m.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":o},a))},Xut=m.forwardRef(function(e,t){var n,r,i=e.prefixCls,o=i===void 0?"rc-segmented":i,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,p=e.name,h=e.onChange,g=e.className,v=g===void 0?"":g,y=e.motionName,_=y===void 0?"thumb-motion":y,b=It(e,Yut),S=m.useRef(null),C=m.useMemo(function(){return Sa(S,t)},[S,t]),E=m.useMemo(function(){return Kut(c)},[c]),w=Fn((n=E[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),x=Oe(w,2),T=x[0],R=x[1],N=m.useState(!1),I=Oe(N,2),P=I[0],D=I[1],F=function(ae,ue){R(ue),h==null||h(ue)},L=ur(b,["children"]),B=m.useState(!1),U=Oe(B,2),G=U[0],V=U[1],W=m.useState(!1),$=Oe(W,2),H=$[0],K=$[1],re=function(){K(!0)},Q=function(){K(!1)},A=function(){V(!1)},k=function(ae){ae.key==="Tab"&&V(!0)},Z=function(ae){var ue=E.findIndex(function(_e){return _e.value===T}),fe=E.length,se=(ue+ae+fe)%fe,pe=E[se];pe&&(R(pe.value),h==null||h(pe.value))},ne=function(ae){switch(ae.key){case"ArrowLeft":case"ArrowUp":Z(-1);break;case"ArrowRight":case"ArrowDown":Z(1);break}};return m.createElement("div",Qe({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},L,{className:Re(o,(r={},ie(r,"".concat(o,"-rtl"),a==="rtl"),ie(r,"".concat(o,"-disabled"),u),ie(r,"".concat(o,"-vertical"),s),r),v),ref:C}),m.createElement("div",{className:"".concat(o,"-group")},m.createElement(Wut,{vertical:s,prefixCls:o,value:T,containerRef:S,motionName:"".concat(o,"-").concat(_),direction:a,getValueIndex:function(ae){return E.findIndex(function(ue){return ue.value===ae})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),E.map(function(oe){var ae;return m.createElement(Qut,Qe({},oe,{name:p,key:oe.value,prefixCls:o,className:Re(oe.className,"".concat(o,"-item"),(ae={},ie(ae,"".concat(o,"-item-selected"),oe.value===T&&!P),ie(ae,"".concat(o,"-item-focused"),H&&G&&oe.value===T),ae)),checked:oe.value===T,onChange:F,onFocus:re,onBlur:Q,onKeyDown:ne,onKeyUp:k,onMouseDown:A,disabled:!!u||!!oe.disabled}))})))}),Zut=Xut;function noe(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function roe(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Jut=Object.assign({overflow:"hidden"},nc),edt=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Qc(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${De(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},roe(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},kp(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:De(n),padding:`0 ${De(e.segmentedPaddingHorizontal)}`},Jut),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},roe(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${De(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:De(r),padding:`0 ${De(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:De(i),padding:`0 ${De(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),noe(`&-disabled ${t}-item`,e)),noe(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},tdt=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:o,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:o,itemSelectedColor:n}},ndt=dr("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=qn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[edt(r)]},tdt);var ioe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function rdt(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const idt=m.forwardRef((e,t)=>{const n=MD(),{prefixCls:r,className:i,rootClassName:o,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:d=n}=e,f=ioe(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:h,segmented:g}=m.useContext(nn),v=p("segmented",r),[y,_,b]=ndt(v),S=Zo(l),C=m.useMemo(()=>s.map(x=>{if(rdt(x)){const{icon:T,label:R}=x,N=ioe(x,["icon","label"]);return Object.assign(Object.assign({},N),{label:m.createElement(m.Fragment,null,m.createElement("span",{className:`${v}-item-icon`},T),R&&m.createElement("span",null,R))})}return x}),[s,v]),E=Re(i,o,g==null?void 0:g.className,{[`${v}-block`]:a,[`${v}-sm`]:S==="small",[`${v}-lg`]:S==="large",[`${v}-vertical`]:u},_,b),w=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(m.createElement(Zut,Object.assign({},f,{name:d,className:E,style:w,options:C,ref:t,prefixCls:v,direction:h,vertical:u})))}),zRe=idt,VRe=de.createContext({}),GRe=de.createContext({}),WRe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const o=n.toHsb();o.a=0;const a=_s(o);a.cleared=!0,r(a)}};return de.createElement("div",{className:`${t}-clear`,onClick:i})};var gh;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(gh||(gh={}));var odt={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"},adt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:odt}))},YRe=m.forwardRef(adt);function R9(){return typeof BigInt=="function"}function qRe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Tv(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",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function Iq(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function iv(e){var t=String(e);if(Iq(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(".")&&Nq(t)?t.length-t.indexOf(".")-1:0}function nk(e){var t=String(e);if(Iq(e)){if(e>Number.MAX_SAFE_INTEGER)return String(R9()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(R9()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(iv(t))}return Tv(t).fullStr}function Nq(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var sdt=function(){function e(t){if(Yr(this,e),ie(this,"origin",""),ie(this,"negative",void 0),ie(this,"integer",void 0),ie(this,"decimal",void 0),ie(this,"decimalLen",void 0),ie(this,"empty",void 0),ie(this,"nan",void 0),qRe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Iq(n)&&(n=Number(n)),n=typeof n=="string"?n:nk(n),Nq(n)){var r=Tv(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return qr(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,i){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(o),s=n.alignDecimal(o),l=r(a,s).toString(),c=i(o),u=Tv(l),d=u.negativeStr,f=u.trimStr,p="".concat(d).concat(f.padStart(c+1,"0"));return new e("".concat(p.slice(0,-c),".").concat(p.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Tv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ldt=function(){function e(t){if(Yr(this,e),ie(this,"origin",""),ie(this,"number",void 0),ie(this,"empty",void 0),qRe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return qr(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 i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(iv(this.number),iv(r));return new e(i.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var i=this.number*r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(iv(this.number),iv(r));return new e(i.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":nk(this.number):this.origin}}]),e}();function Cu(e){return R9()?new sdt(e):new ldt(e)}function oN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Tv(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Cu(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return oN(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function cdt(e){return!!(e.addonBefore||e.addonAfter)}function udt(e){return!!(e.prefix||e.suffix||e.allowClear)}function ooe(e,t,n){var r=t.cloneNode(!0),i=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)},i}function xA(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=ooe(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=ooe(t,e,r),n(i);return}n(i)}}function Mq(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var Aq=de.forwardRef(function(e,t){var n,r,i,o=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,h=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,_=e.allowClear,b=e.value,S=e.handleReset,C=e.hidden,E=e.classes,w=e.classNames,x=e.dataAttrs,T=e.styles,R=e.components,N=e.onClear,I=a??o,P=(R==null?void 0:R.affixWrapper)||"span",D=(R==null?void 0:R.groupWrapper)||"span",F=(R==null?void 0:R.wrapper)||"span",L=(R==null?void 0:R.groupAddon)||"span",B=m.useRef(null),U=function(se){var pe;(pe=B.current)!==null&&pe!==void 0&&pe.contains(se.target)&&(y==null||y())},G=udt(e),V=m.cloneElement(I,{value:b,className:Re((n=I.props)===null||n===void 0?void 0:n.className,!G&&(w==null?void 0:w.variant))||null}),W=m.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:W.current||B.current}}),G){var $=null;if(_){var H=!h&&!g&&b,K="".concat(s,"-clear-icon"),re=qt(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"✖";$=de.createElement("button",{type:"button",onClick:function(se){S==null||S(se),N==null||N()},onMouseDown:function(se){return se.preventDefault()},className:Re(K,ie(ie({},"".concat(K,"-hidden"),!H),"".concat(K,"-has-suffix"),!!c))},re)}var Q="".concat(s,"-affix-wrapper"),A=Re(Q,ie(ie(ie(ie(ie({},"".concat(s,"-disabled"),h),"".concat(Q,"-disabled"),h),"".concat(Q,"-focused"),v),"".concat(Q,"-readonly"),g),"".concat(Q,"-input-with-clear-btn"),c&&_&&b),E==null?void 0:E.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),k=(c||_)&&de.createElement("span",{className:Re("".concat(s,"-suffix"),w==null?void 0:w.suffix),style:T==null?void 0:T.suffix},$,c);V=de.createElement(P,Qe({className:A,style:T==null?void 0:T.affixWrapper,onClick:U},x==null?void 0:x.affixWrapper,{ref:B}),l&&de.createElement("span",{className:Re("".concat(s,"-prefix"),w==null?void 0:w.prefix),style:T==null?void 0:T.prefix},l),V,k)}if(cdt(e)){var Z="".concat(s,"-group"),ne="".concat(Z,"-addon"),oe="".concat(Z,"-wrapper"),ae=Re("".concat(s,"-wrapper"),Z,E==null?void 0:E.wrapper,w==null?void 0:w.wrapper),ue=Re(oe,ie({},"".concat(oe,"-disabled"),h),E==null?void 0:E.group,w==null?void 0:w.groupWrapper);V=de.createElement(D,{className:ue,ref:W},de.createElement(F,{className:ae},u&&de.createElement(L,{className:ne},u),V,d&&de.createElement(L,{className:ne},d)))}return de.cloneElement(V,{className:Re((r=V.props)===null||r===void 0?void 0:r.className,f)||null,style:q(q({},(i=V.props)===null||i===void 0?void 0:i.style),p),hidden:C})}),ddt=["show"];function KRe(e,t){return m.useMemo(function(){var n={};t&&(n.show=qt(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,i=r.show,o=It(r,ddt);return q(q({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var fdt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],pdt=m.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,p=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,_=e.type,b=_===void 0?"text":_,S=e.classes,C=e.classNames,E=e.styles,w=e.onCompositionStart,x=e.onCompositionEnd,T=It(e,fdt),R=m.useState(!1),N=Oe(R,2),I=N[0],P=N[1],D=m.useRef(!1),F=m.useRef(!1),L=m.useRef(null),B=m.useRef(null),U=function(Ee){L.current&&Mq(L.current,Ee)},G=Fn(e.defaultValue,{value:e.value}),V=Oe(G,2),W=V[0],$=V[1],H=W==null?"":String(W),K=m.useState(null),re=Oe(K,2),Q=re[0],A=re[1],k=KRe(y,v),Z=k.max||h,ne=k.strategy(H),oe=!!Z&&ne>Z;m.useImperativeHandle(t,function(){var be;return{focus:U,blur:function(){var Me;(Me=L.current)===null||Me===void 0||Me.blur()},setSelectionRange:function(Me,X,Y){var J;(J=L.current)===null||J===void 0||J.setSelectionRange(Me,X,Y)},select:function(){var Me;(Me=L.current)===null||Me===void 0||Me.select()},input:L.current,nativeElement:((be=B.current)===null||be===void 0?void 0:be.nativeElement)||L.current}}),m.useEffect(function(){F.current&&(F.current=!1),P(function(be){return be&&d?!1:be})},[d]);var ae=function(Ee,Me,X){var Y=Me;if(!D.current&&k.exceedFormatter&&k.max&&k.strategy(Me)>k.max){if(Y=k.exceedFormatter(Me,{max:k.max}),Me!==Y){var J,he;A([((J=L.current)===null||J===void 0?void 0:J.selectionStart)||0,((he=L.current)===null||he===void 0?void 0:he.selectionEnd)||0])}}else if(X.source==="compositionEnd")return;$(Y),L.current&&xA(L.current,Ee,r,Y)};m.useEffect(function(){if(Q){var be;(be=L.current)===null||be===void 0||be.setSelectionRange.apply(be,at(Q))}},[Q]);var ue=function(Ee){ae(Ee,Ee.target.value,{source:"change"})},fe=function(Ee){D.current=!1,ae(Ee,Ee.currentTarget.value,{source:"compositionEnd"}),x==null||x(Ee)},se=function(Ee){a&&Ee.key==="Enter"&&!F.current&&(F.current=!0,a(Ee)),s==null||s(Ee)},pe=function(Ee){Ee.key==="Enter"&&(F.current=!1),l==null||l(Ee)},_e=function(Ee){P(!0),i==null||i(Ee)},Te=function(Ee){F.current&&(F.current=!1),P(!1),o==null||o(Ee)},xe=function(Ee){$(""),U(),L.current&&xA(L.current,Ee,r)},ge=oe&&"".concat(u,"-out-of-range"),Ce=function(){var Ee=ur(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",Qe({autoComplete:n},Ee,{onChange:ue,onFocus:_e,onBlur:Te,onKeyDown:se,onKeyUp:pe,className:Re(u,ie({},"".concat(u,"-disabled"),d),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:L,size:f,type:b,onCompositionStart:function(X){D.current=!0,w==null||w(X)},onCompositionEnd:fe}))},ye=function(){var Ee=Number(Z)>0;if(g||k.show){var Me=k.showFormatter?k.showFormatter({value:H,count:ne,maxLength:Z}):"".concat(ne).concat(Ee?" / ".concat(Z):"");return de.createElement(de.Fragment,null,k.show&&de.createElement("span",{className:Re("".concat(u,"-show-count-suffix"),ie({},"".concat(u,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:q({},E==null?void 0:E.count)},Me),g)}return null};return de.createElement(Aq,Qe({},T,{prefixCls:u,className:Re(p,ge),handleReset:xe,value:H,focused:I,triggerFocus:U,suffix:ye(),disabled:d,classes:S,classNames:C,styles:E}),Ce())});function mdt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function hdt(e,t){var n=m.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var d=s[c-1],f=o.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(p){Wr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var gdt=function(){var t=m.useState(!1),n=Oe(t,2),r=n[0],i=n[1];return gr(function(){i(kD())},[]),r},vdt=200,_dt=600;function ydt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=m.useRef(),l=m.useRef([]),c=m.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(b,S){b.preventDefault(),u(),c.current(S);function C(){c.current(S),s.current=setTimeout(C,vdt)}s.current=setTimeout(C,_dt)};m.useEffect(function(){return function(){u(),l.current.forEach(function(_){return rr.cancel(_)})}},[]);var f=gdt();if(f)return null;var p="".concat(t,"-handler"),h=Re(p,"".concat(p,"-up"),ie({},"".concat(p,"-up-disabled"),i)),g=Re(p,"".concat(p,"-down"),ie({},"".concat(p,"-down-disabled"),o)),v=function(){return l.current.push(rr(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return m.createElement("div",{className:"".concat(p,"-wrap")},m.createElement("span",Qe({},y,{onMouseDown:function(b){d(b,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),n||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m.createElement("span",Qe({},y,{onMouseDown:function(b){d(b,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:g}),r||m.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function aoe(e){var t=typeof e=="number"?nk(e):Tv(e).fullStr,n=t.includes(".");return n?Tv(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const bdt=function(){var e=m.useRef(0),t=function(){rr.cancel(e.current)};return m.useEffect(function(){return t},[]),function(n){t(),e.current=rr(function(){n()})}};var Sdt=["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"],Edt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],soe=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},loe=function(t){var n=Cu(t);return n.isInvalidate()?null:n},Cdt=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,p=e.upHandler,h=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,_=e.controls,b=_===void 0?!0:_;e.classNames;var S=e.stringMode,C=e.parser,E=e.formatter,w=e.precision,x=e.decimalSeparator,T=e.onChange,R=e.onInput,N=e.onPressEnter,I=e.onStep,P=e.changeOnBlur,D=P===void 0?!0:P,F=e.domRef,L=It(e,Sdt),B="".concat(n,"-input"),U=m.useRef(null),G=m.useState(!1),V=Oe(G,2),W=V[0],$=V[1],H=m.useRef(!1),K=m.useRef(!1),re=m.useRef(!1),Q=m.useState(function(){return Cu(u??c)}),A=Oe(Q,2),k=A[0],Z=A[1];function ne(ut){u===void 0&&Z(ut)}var oe=m.useCallback(function(ut,ft){if(!ft)return w>=0?w:Math.max(iv(ut),iv(l))},[w,l]),ae=m.useCallback(function(ut){var ft=String(ut);if(C)return C(ft);var bt=ft;return x&&(bt=bt.replace(x,".")),bt.replace(/[^\w.-]+/g,"")},[C,x]),ue=m.useRef(""),fe=m.useCallback(function(ut,ft){if(E)return E(ut,{userTyping:ft,input:String(ue.current)});var bt=typeof ut=="number"?nk(ut):ut;if(!ft){var St=oe(bt,ft);if(Nq(bt)&&(x||St>=0)){var Ht=x||".";bt=oN(bt,Ht,St)}}return bt},[E,oe,x]),se=m.useState(function(){var ut=c??u;return k.isInvalidate()&&["string","number"].includes(qt(ut))?Number.isNaN(ut)?"":ut:fe(k.toString(),!1)}),pe=Oe(se,2),_e=pe[0],Te=pe[1];ue.current=_e;function xe(ut,ft){Te(fe(ut.isInvalidate()?ut.toString(!1):ut.toString(!ft),ft))}var ge=m.useMemo(function(){return loe(a)},[a,w]),Ce=m.useMemo(function(){return loe(o)},[o,w]),ye=m.useMemo(function(){return!ge||!k||k.isInvalidate()?!1:ge.lessEquals(k)},[ge,k]),be=m.useMemo(function(){return!Ce||!k||k.isInvalidate()?!1:k.lessEquals(Ce)},[Ce,k]),Ee=hdt(U.current,W),Me=Oe(Ee,2),X=Me[0],Y=Me[1],J=function(ft){return ge&&!ft.lessEquals(ge)?ge:Ce&&!Ce.lessEquals(ft)?Ce:null},he=function(ft){return!J(ft)},ve=function(ft,bt){var St=ft,Ht=he(St)||St.isEmpty();if(!St.isEmpty()&&!bt&&(St=J(St)||St,Ht=!0),!f&&!d&&Ht){var xt=St.toString(),Nt=oe(xt,bt);return Nt>=0&&(St=Cu(oN(xt,".",Nt)),he(St)||(St=Cu(oN(xt,".",Nt,!0)))),St.equals(k)||(ne(St),T==null||T(St.isEmpty()?null:soe(S,St)),u===void 0&&xe(St,bt)),St}return k},ce=bdt(),$e=function ut(ft){if(X(),ue.current=ft,Te(ft),!K.current){var bt=ae(ft),St=Cu(bt);St.isNaN()||ve(St,!0)}R==null||R(ft),ce(function(){var Ht=ft;C||(Ht=ft.replace(/。/g,".")),Ht!==ft&&ut(Ht)})},Be=function(){K.current=!0},me=function(){K.current=!1,$e(U.current.value)},Fe=function(ft){$e(ft.target.value)},Xe=function(ft){var bt;if(!(ft&&ye||!ft&&be)){H.current=!1;var St=Cu(re.current?aoe(l):l);ft||(St=St.negate());var Ht=(k||Cu(0)).add(St.toString()),xt=ve(Ht,!1);I==null||I(soe(S,xt),{offset:re.current?aoe(l):l,type:ft?"up":"down"}),(bt=U.current)===null||bt===void 0||bt.focus()}},ze=function(ft){var bt=Cu(ae(_e)),St;bt.isNaN()?St=ve(k,ft):St=ve(bt,ft),u!==void 0?xe(k,!1):St.isNaN()||xe(St,!1)},qe=function(){H.current=!0},Ge=function(ft){var bt=ft.key,St=ft.shiftKey;H.current=!0,re.current=St,bt==="Enter"&&(K.current||(H.current=!1),ze(!1),N==null||N(ft)),g!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(bt)&&(Xe(bt==="Up"||bt==="ArrowUp"),ft.preventDefault())},We=function(){H.current=!1,re.current=!1};m.useEffect(function(){if(y&&W){var ut=function(St){Xe(St.deltaY<0),St.preventDefault()},ft=U.current;if(ft)return ft.addEventListener("wheel",ut,{passive:!1}),function(){return ft.removeEventListener("wheel",ut)}}});var Lt=function(){D&&ze(!1),$(!1),H.current=!1};return xv(function(){k.isInvalidate()||xe(k,!1)},[w,E]),xv(function(){var ut=Cu(u);Z(ut);var ft=Cu(ae(_e));(!ut.equals(ft)||!H.current||E)&&xe(ut,H.current)},[u]),xv(function(){E&&Y()},[_e]),m.createElement("div",{ref:F,className:Re(n,r,ie(ie(ie(ie(ie({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),k.isNaN()),"".concat(n,"-out-of-range"),!k.isInvalidate()&&!he(k))),style:i,onFocus:function(){$(!0)},onBlur:Lt,onKeyDown:Ge,onKeyUp:We,onCompositionStart:Be,onCompositionEnd:me,onBeforeInput:qe},b&&m.createElement(ydt,{prefixCls:n,upNode:p,downNode:h,upDisabled:ye,downDisabled:be,onStep:Xe}),m.createElement("div",{className:"".concat(B,"-wrap")},m.createElement("input",Qe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":k.isInvalidate()?null:k.toString(),step:l},L,{ref:Sa(U,t),className:B,value:_e,onChange:Fe,disabled:d,readOnly:f}))))}),wdt=m.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,p=It(e,Edt),h=m.useRef(null),g=m.useRef(null),v=m.useRef(null),y=function(b){v.current&&Mq(v.current,b)};return m.useImperativeHandle(t,function(){return mdt(v.current,{focus:y,nativeElement:h.current.nativeElement||g.current})}),m.createElement(Aq,{className:d,triggerFocus:y,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},m.createElement(Cdt,Qe({prefixCls:o,disabled:n,ref:v,domRef:g,className:f==null?void 0:f.input},p)))});const xdt=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ZD(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},coe=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},Tdt=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:h,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:_,paddingBlock:b,handleBg:S,handleActiveBg:C,colorTextDisabled:E,borderRadiusSM:w,borderRadiusLG:x,controlWidth:T,handleBorderColor:R,filledHandleBg:N,lineHeightLG:I,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),JD(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:i}),bq(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${De(n)} ${r} ${R}`}}})),Eq(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${De(n)} ${r} ${R}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),Sq(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:x,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${De(f)} ${De(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:w,[`input${t}-input`]:{height:P(l).sub(P(n).mul(2)).equal(),padding:`${De(d)} ${De(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},wr(e)),fRe(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:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},sRe(e)),cRe(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({},wr(e)),{width:"100%",padding:`${De(b)} ${De(_)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Cq(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:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
||
${t}-handler-up-inner,
|
||
${t}-handler-down-inner
|
||
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${De(n)} ${r} ${R}`,transition:`all ${g} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
|
||
${t}-handler-up-inner,
|
||
${t}-handler-down-inner
|
||
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},O_()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},coe(e,"lg")),coe(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
||
${t}-handler-up-disabled,
|
||
${t}-handler-down-disabled
|
||
`]:{cursor:"not-allowed"},[`
|
||
${t}-handler-up-disabled:hover &-handler-up-inner,
|
||
${t}-handler-down-disabled:hover &-handler-down-inner
|
||
`]:{color:E}})}]},Rdt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${De(n)} 0`}},JD(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${De(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${De(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},Odt=dr("InputNumber",e=>{const t=qn(e,XD(e));return[Tdt(t),Rdt(t),N_(t)]},xdt,{unitless:{handleOpacity:!0}});var Idt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const QRe=m.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m.useContext(nn),i=m.useRef(null);m.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:p,bordered:h,readOnly:g,status:v,controls:y,variant:_}=e,b=Idt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),C=oi(S),[E,w,x]=Odt(S,C),{compactSize:T,compactItemClassnames:R}=pd(S,r);let N=m.createElement(YRe,{className:`${S}-handler-up-inner`}),I=m.createElement(Mx,{className:`${S}-handler-down-inner`});const P=typeof y=="boolean"?y:void 0;typeof y=="object"&&(N=typeof y.upIcon>"u"?N:m.createElement("span",{className:`${S}-handler-up-inner`},y.upIcon),I=typeof y.downIcon>"u"?I:m.createElement("span",{className:`${S}-handler-down-inner`},y.downIcon));const{hasFeedback:D,status:F,isFormItemInput:L,feedbackIcon:B}=m.useContext(Qo),U=$p(F,v),G=Zo(k=>{var Z;return(Z=s??T)!==null&&Z!==void 0?Z:k}),V=m.useContext(No),W=l??V,[$,H]=Fp("inputNumber",_,h),K=D&&m.createElement(m.Fragment,null,B),re=Re({[`${S}-lg`]:G==="large",[`${S}-sm`]:G==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:L},w),Q=`${S}-group`,A=m.createElement(wdt,Object.assign({ref:i,disabled:W,className:Re(x,C,o,a,R),upHandler:N,downHandler:I,prefixCls:S,readOnly:g,controls:P,prefix:f,suffix:K||p,addonBefore:u&&m.createElement(rd,{form:!0,space:!0},u),addonAfter:d&&m.createElement(rd,{form:!0,space:!0},d),classNames:{input:re,variant:Re({[`${S}-${$}`]:H},id(S,U,D)),affixWrapper:Re({[`${S}-affix-wrapper-sm`]:G==="small",[`${S}-affix-wrapper-lg`]:G==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:y===!1},w),wrapper:Re({[`${Q}-rtl`]:r==="rtl"},w),groupWrapper:Re({[`${S}-group-wrapper-sm`]:G==="small",[`${S}-group-wrapper-lg`]:G==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${$}`]:H},id(`${S}-group-wrapper`,U,D),w)}},b));return E(A)}),Ep=QRe,Ndt=e=>m.createElement(Pn,{theme:{components:{InputNumber:{handleVisible:!0}}}},m.createElement(QRe,Object.assign({},e)));Ep._InternalPanelDoNotUseOrYouWillBeFired=Ndt;const Rv=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:o,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=m.useState(i);return m.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),de.createElement(Ep,{className:Re(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{i||u(d||0),o==null||o(d)}})},Mdt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[o,a]=m.useState(_s(n||"#000"));m.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=o.toHsb();c.a=(l||0)/100;const u=_s(c);n||a(u),r==null||r(u)};return de.createElement(Rv,{value:DY(o),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},Adt=e=>{const{getPrefixCls:t,direction:n}=m.useContext(nn),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l]=wq(a),c=Re(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),u=m.useContext(Qo),d=m.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(m.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(Qo.Provider,{value:d},e.children)))},XRe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(mf,null)}),t};function ZRe(e,t){const n=m.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,s;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return m.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function Pdt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ddt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rk=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:g,styles:v,rootClassName:y,onChange:_,classNames:b,variant:S}=e,C=Ddt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:w,input:x}=de.useContext(nn),T=E("input",r),R=m.useRef(null),N=oi(T),[I,P,D]=wq(T,N),{compactSize:F,compactItemClassnames:L}=pd(T,w),B=Zo(ue=>{var fe;return(fe=a??F)!==null&&fe!==void 0?fe:ue}),U=de.useContext(No),G=s??U,{status:V,hasFeedback:W,feedbackIcon:$}=m.useContext(Qo),H=$p(V,o),K=Pdt(e)||!!W;m.useRef(K);const re=ZRe(R,!0),Q=ue=>{re(),l==null||l(ue)},A=ue=>{re(),c==null||c(ue)},k=ue=>{re(),_==null||_(ue)},Z=(W||u)&&de.createElement(de.Fragment,null,u,W&&$),ne=XRe(d??(x==null?void 0:x.allowClear)),[oe,ae]=Fp("input",S,i);return I(de.createElement(pdt,Object.assign({ref:Sa(t,R),prefixCls:T,autoComplete:x==null?void 0:x.autoComplete},C,{disabled:G,onBlur:Q,onFocus:A,style:Object.assign(Object.assign({},x==null?void 0:x.style),g),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),v),suffix:Z,allowClear:ne,className:Re(h,y,D,N,L,x==null?void 0:x.className),onChange:k,addonBefore:p&&de.createElement(rd,{form:!0,space:!0},p),addonAfter:f&&de.createElement(rd,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},b),x==null?void 0:x.classNames),{input:Re({[`${T}-sm`]:B==="small",[`${T}-lg`]:B==="large",[`${T}-rtl`]:w==="rtl"},b==null?void 0:b.input,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.input,P),variant:Re({[`${T}-${oe}`]:ae},id(T,H)),affixWrapper:Re({[`${T}-affix-wrapper-sm`]:B==="small",[`${T}-affix-wrapper-lg`]:B==="large",[`${T}-affix-wrapper-rtl`]:w==="rtl"},P),wrapper:Re({[`${T}-group-rtl`]:w==="rtl"},P),groupWrapper:Re({[`${T}-group-wrapper-sm`]:B==="small",[`${T}-group-wrapper-lg`]:B==="large",[`${T}-group-wrapper-rtl`]:w==="rtl",[`${T}-group-wrapper-${oe}`]:ae},id(`${T}-group-wrapper`,H,W),P)})})))}),kdt=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}}}},Ldt=dr(["Input","OTP"],e=>{const t=qn(e,XD(e));return[kdt(t)]},ZD);var $dt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Fdt=m.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,s=$dt(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=h=>{r(o,h.target.value)},u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=()=>{rr(()=>{var h;const g=(h=u.current)===null||h===void 0?void 0:h.input;document.activeElement===g&&g&&g.select()})},f=h=>{const{key:g,ctrlKey:v,metaKey:y}=h;g==="ArrowLeft"?i(o-1):g==="ArrowRight"?i(o+1):g==="z"&&(v||y)&&h.preventDefault(),d()},p=h=>{h.key==="Backspace"&&!n&&i(o-1),d()};return m.createElement(rk,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:d,onKeyDown:f,onKeyUp:p,onMouseDown:d,onMouseUp:d}))});var Bdt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function uO(e){return(e||"").split("")}const Udt=m.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:d,autoFocus:f,mask:p,type:h,onInput:g,inputMode:v}=e,y=Bdt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:_,direction:b}=m.useContext(nn),S=_("otp",n),C=ao(y,{aria:!0,data:!0,attr:!0}),E=oi(S),[w,x,T]=Ldt(S,E),R=Zo(K=>i??K),N=m.useContext(Qo),I=$p(N.status,d),P=m.useMemo(()=>Object.assign(Object.assign({},N),{status:I,hasFeedback:!1,feedbackIcon:null}),[N,I]),D=m.useRef(null),F=m.useRef({});m.useImperativeHandle(t,()=>({focus:()=>{var K;(K=F.current[0])===null||K===void 0||K.focus()},blur:()=>{var K;for(let re=0;re<r;re+=1)(K=F.current[re])===null||K===void 0||K.blur()},nativeElement:D.current}));const L=K=>l?l(K):K,[B,U]=m.useState(uO(L(o||"")));m.useEffect(()=>{a!==void 0&&U(uO(a))},[a]);const G=Wn(K=>{U(K),g&&g(K),s&&K.length===r&&K.every(re=>re)&&K.some((re,Q)=>B[Q]!==re)&&s(K.join(""))}),V=Wn((K,re)=>{let Q=at(B);for(let k=0;k<K;k+=1)Q[k]||(Q[k]="");re.length<=1?Q[K]=re:Q=Q.slice(0,K).concat(uO(re)),Q=Q.slice(0,r);for(let k=Q.length-1;k>=0&&!Q[k];k-=1)Q.pop();const A=L(Q.map(k=>k||" ").join(""));return Q=uO(A).map((k,Z)=>k===" "&&!Q[Z]?Q[Z]:k),Q}),W=(K,re)=>{var Q;const A=V(K,re),k=Math.min(K+re.length,r-1);k!==K&&A[K]!==void 0&&((Q=F.current[k])===null||Q===void 0||Q.focus()),G(A)},$=K=>{var re;(re=F.current[K])===null||re===void 0||re.focus()},H={variant:c,disabled:u,status:I,mask:p,type:h,inputMode:v};return w(m.createElement("div",Object.assign({},C,{ref:D,className:Re(S,{[`${S}-sm`]:R==="small",[`${S}-lg`]:R==="large",[`${S}-rtl`]:b==="rtl"},T,x)}),m.createElement(Qo.Provider,{value:P},Array.from({length:r}).map((K,re)=>{const Q=`otp-${re}`,A=B[re]||"";return m.createElement(Fdt,Object.assign({ref:k=>{F.current[re]=k},key:Q,index:re,size:R,htmlSize:1,className:`${S}-input`,onChange:W,value:A,onActiveChange:$,autoFocus:re===0&&f},H))}))))});var jdt={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"},Hdt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:jdt}))},JRe=m.forwardRef(Hdt),zdt={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"},Vdt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:zdt}))},$x=m.forwardRef(Vdt),Gdt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Wdt=e=>e?m.createElement($x,null):m.createElement(JRe,null),Ydt={click:"onClick",hover:"onMouseOver"},qdt=m.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=Wdt}=e,a=m.useContext(No),s=n??a,l=typeof i=="object"&&i.visible!==void 0,[c,u]=m.useState(()=>l?i.visible:!1),d=m.useRef(null);m.useEffect(()=>{l&&u(i.visible)},[l,i]);const f=ZRe(d),p=()=>{var R;if(s)return;c&&f();const N=!c;u(N),typeof i=="object"&&((R=i.onVisibleChange)===null||R===void 0||R.call(i,N))},h=R=>{const N=Ydt[r]||"",I=o(c),P={[N]:p,className:`${R}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return m.cloneElement(m.isValidElement(I)?I:m.createElement("span",null,I),P)},{className:g,prefixCls:v,inputPrefixCls:y,size:_}=e,b=Gdt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=m.useContext(nn),C=S("input",y),E=S("input-password",v),w=i&&h(E),x=Re(E,g,{[`${E}-${_}`]:!!_}),T=Object.assign(Object.assign({},ur(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:x,prefixCls:C,suffix:w});return _&&(T.size=_),m.createElement(rk,Object.assign({ref:Sa(t,d)},T))});var Kdt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Qdt=m.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,g=Kdt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=m.useContext(nn),_=m.useRef(!1),b=v("input-search",n),S=v("input",r),{compactSize:C}=pd(b,y),E=Zo(W=>{var $;return($=o??C)!==null&&$!==void 0?$:W}),w=m.useRef(null),x=W=>{W!=null&&W.target&&W.type==="click"&&d&&d(W.target.value,W,{source:"clear"}),f==null||f(W)},T=W=>{var $;document.activeElement===(($=w.current)===null||$===void 0?void 0:$.input)&&W.preventDefault()},R=W=>{var $,H;d&&d((H=($=w.current)===null||$===void 0?void 0:$.input)===null||H===void 0?void 0:H.value,W,{source:"input"})},N=W=>{_.current||c||R(W)},I=typeof s=="boolean"?m.createElement(JY,null):null,P=`${b}-button`;let D;const F=s||{},L=F.type&&F.type.__ANT_BUTTON===!0;L||F.type==="button"?D=Ko(F,Object.assign({onMouseDown:T,onClick:W=>{var $,H;(H=($=F==null?void 0:F.props)===null||$===void 0?void 0:$.onClick)===null||H===void 0||H.call($,W),R(W)},key:"enterButton"},L?{className:P,size:E}:{})):D=m.createElement(On,{className:P,type:s?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:T,onClick:R,loading:c,icon:I},s),l&&(D=[D,Ko(l,{key:"addonAfter"})]);const B=Re(b,{[`${b}-rtl`]:y==="rtl",[`${b}-${E}`]:!!E,[`${b}-with-button`]:!!s},i),U=Object.assign(Object.assign({},g),{className:B,prefixCls:S,type:"search"}),G=W=>{_.current=!0,p==null||p(W)},V=W=>{_.current=!1,h==null||h(W)};return m.createElement(rk,Object.assign({ref:Sa(w,t),onPressEnter:N},U,{size:E,onCompositionStart:G,onCompositionEnd:V,addonAfter:D,suffix:a,onChange:x,disabled:u}))});var Xdt=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
pointer-events: none !important;
|
||
`,Zdt=["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"],dF={},Ml;function Jdt(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&&dF[n])return dF[n];var r=window.getComputedStyle(e),i=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")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Zdt.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(dF[n]=l),l}function eft(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;Ml||(Ml=document.createElement("textarea"),Ml.setAttribute("tab-index","-1"),Ml.setAttribute("aria-hidden","true"),Ml.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ml)),e.getAttribute("wrap")?Ml.setAttribute("wrap",e.getAttribute("wrap")):Ml.removeAttribute("wrap");var i=Jdt(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Ml.setAttribute("style","".concat(l,";").concat(Xdt)),Ml.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Ml.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=o),n!==null||r!==null){Ml.value=" ";var p=Ml.scrollHeight-o;n!==null&&(c=p*n,s==="border-box"&&(c=c+o+a),f=Math.max(c,f)),r!==null&&(u=p*r,s==="border-box"&&(u=u+o+a),d=f>u?"":"hidden",f=Math.min(u,f))}var h={height:f,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var tft=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],fF=0,pF=1,mF=2,nft=m.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=It(n,tft),p=Fn(i,{value:o,postState:function(K){return K??""}}),h=Oe(p,2),g=h[0],v=h[1],y=function(K){v(K.target.value),d==null||d(K)},_=m.useRef();m.useImperativeHandle(t,function(){return{textArea:_.current}});var b=m.useMemo(function(){return a&&qt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=Oe(b,2),C=S[0],E=S[1],w=!!a,x=function(){try{if(document.activeElement===_.current){var K=_.current,re=K.selectionStart,Q=K.selectionEnd,A=K.scrollTop;_.current.setSelectionRange(re,Q),_.current.scrollTop=A}}catch{}},T=m.useState(mF),R=Oe(T,2),N=R[0],I=R[1],P=m.useState(),D=Oe(P,2),F=D[0],L=D[1],B=function(){I(fF)};gr(function(){w&&B()},[o,C,E,w]),gr(function(){if(N===fF)I(pF);else if(N===pF){var H=eft(_.current,!1,C,E);I(mF),L(H)}else x()},[N]);var U=m.useRef(),G=function(){rr.cancel(U.current)},V=function(K){N===mF&&(s==null||s(K),a&&(G(),U.current=rr(function(){B()})))};m.useEffect(function(){return G},[]);var W=w?F:null,$=q(q({},c),W);return(N===fF||N===pF)&&($.overflowY="hidden",$.overflowX="hidden"),m.createElement(hs,{onResize:V,disabled:!(a||s)},m.createElement("textarea",Qe({},f,{ref:_,style:$,className:Re(r,l,ie({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),rft=["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"],ift=de.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,p=e.prefixCls,h=p===void 0?"rc-textarea":p,g=e.showCount,v=e.count,y=e.className,_=e.style,b=e.disabled,S=e.hidden,C=e.classNames,E=e.styles,w=e.onResize,x=e.onClear,T=e.onPressEnter,R=e.readOnly,N=e.autoSize,I=e.onKeyDown,P=It(e,rft),D=Fn(r,{value:i,defaultValue:r}),F=Oe(D,2),L=F[0],B=F[1],U=L==null?"":String(L),G=de.useState(!1),V=Oe(G,2),W=V[0],$=V[1],H=de.useRef(!1),K=de.useState(null),re=Oe(K,2),Q=re[0],A=re[1],k=m.useRef(null),Z=m.useRef(null),ne=function(){var me;return(me=Z.current)===null||me===void 0?void 0:me.textArea},oe=function(){ne().focus()};m.useImperativeHandle(t,function(){var Be;return{resizableTextArea:Z.current,focus:oe,blur:function(){ne().blur()},nativeElement:((Be=k.current)===null||Be===void 0?void 0:Be.nativeElement)||ne()}}),m.useEffect(function(){$(function(Be){return!b&&Be})},[b]);var ae=de.useState(null),ue=Oe(ae,2),fe=ue[0],se=ue[1];de.useEffect(function(){if(fe){var Be;(Be=ne()).setSelectionRange.apply(Be,at(fe))}},[fe]);var pe=KRe(v,g),_e=(n=pe.max)!==null&&n!==void 0?n:c,Te=Number(_e)>0,xe=pe.strategy(U),ge=!!_e&&xe>_e,Ce=function(me,Fe){var Xe=Fe;!H.current&&pe.exceedFormatter&&pe.max&&pe.strategy(Fe)>pe.max&&(Xe=pe.exceedFormatter(Fe,{max:pe.max}),Fe!==Xe&&se([ne().selectionStart||0,ne().selectionEnd||0])),B(Xe),xA(me.currentTarget,me,s,Xe)},ye=function(me){H.current=!0,u==null||u(me)},be=function(me){H.current=!1,Ce(me,me.currentTarget.value),d==null||d(me)},Ee=function(me){Ce(me,me.target.value)},Me=function(me){me.key==="Enter"&&T&&T(me),I==null||I(me)},X=function(me){$(!0),o==null||o(me)},Y=function(me){$(!1),a==null||a(me)},J=function(me){B(""),oe(),xA(ne(),me,s)},he=f,ve;pe.show&&(pe.showFormatter?ve=pe.showFormatter({value:U,count:xe,maxLength:_e}):ve="".concat(xe).concat(Te?" / ".concat(_e):""),he=de.createElement(de.Fragment,null,he,de.createElement("span",{className:Re("".concat(h,"-data-count"),C==null?void 0:C.count),style:E==null?void 0:E.count},ve)));var ce=function(me){var Fe;w==null||w(me),(Fe=ne())!==null&&Fe!==void 0&&Fe.style.height&&A(!0)},$e=!N&&!g&&!l;return de.createElement(Aq,{ref:k,value:U,allowClear:l,handleReset:J,suffix:he,prefixCls:h,classNames:q(q({},C),{},{affixWrapper:Re(C==null?void 0:C.affixWrapper,ie(ie({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:b,focused:W,className:Re(y,ge&&"".concat(h,"-out-of-range")),style:q(q({},_),Q&&!$e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ve=="string"?ve:void 0}},hidden:S,readOnly:R,onClear:x},de.createElement(nft,Qe({},P,{autoSize:N,maxLength:c,onKeyDown:Me,onChange:Ee,onFocus:X,onBlur:Y,onCompositionStart:ye,onCompositionEnd:be,className:Re(C==null?void 0:C.textarea),style:q(q({},E==null?void 0:E.textarea),{},{resize:_==null?void 0:_.resize}),disabled:b,prefixCls:h,onResize:ce,ref:Z,readOnly:R})))}),oft=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aft=m.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:h,variant:g}=e,v=oft(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:_,textArea:b}=m.useContext(nn),S=Zo(a),C=m.useContext(No),E=s??C,{status:w,hasFeedback:x,feedbackIcon:T}=m.useContext(Qo),R=$p(w,l),N=m.useRef(null);m.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=N.current)===null||V===void 0?void 0:V.resizableTextArea,focus:W=>{var $,H;Mq((H=($=N.current)===null||$===void 0?void 0:$.resizableTextArea)===null||H===void 0?void 0:H.textArea,W)},blur:()=>{var W;return(W=N.current)===null||W===void 0?void 0:W.blur()}}});const I=y("input",i),P=oi(I),[D,F,L]=wq(I,P),[B,U]=Fp("textArea",g,o),G=XRe(c??(b==null?void 0:b.allowClear));return D(m.createElement(ift,Object.assign({autoComplete:b==null?void 0:b.autoComplete},v,{style:Object.assign(Object.assign({},b==null?void 0:b.style),p),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),h),disabled:E,allowClear:G,className:Re(L,P,f,d,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},u),b==null?void 0:b.classNames),{textarea:Re({[`${I}-sm`]:S==="small",[`${I}-lg`]:S==="large"},F,u==null?void 0:u.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:Re({[`${I}-${B}`]:U},id(I,R)),affixWrapper:Re(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:_==="rtl",[`${I}-affix-wrapper-sm`]:S==="small",[`${I}-affix-wrapper-lg`]:S==="large",[`${I}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:I,suffix:x&&m.createElement("span",{className:`${I}-textarea-suffix`},T),ref:N})))}),Hr=rk;Hr.Group=Adt;Hr.Search=Qdt;Hr.TextArea=aft;Hr.Password=qdt;Hr.OTP=Udt;const sft=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,lft=e=>sft.test(`#${e}`),cft=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[o,a]=m.useState(()=>n?fC(n.toHexString()):void 0);m.useEffect(()=>{n&&a(fC(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(fC(c)),lft(fC(c,!0))&&(r==null||r(_s(c)))};return de.createElement(Hr,{className:i,value:o,prefix:"#",onChange:s,size:"small"})},uft=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[o,a]=m.useState(_s(n||"#000"));m.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=_s(u);n||a(d),r==null||r(d)};return de.createElement("div",{className:i},de.createElement(Rv,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:t,className:i,formatter:l=>eN(l||0).toString(),onChange:l=>s(Number(l),"h")}),de.createElement(Rv,{max:100,min:0,value:Number(o.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${eN(l||0)}%`,onChange:l=>s(Number(l),"s")}),de.createElement(Rv,{max:100,min:0,value:Number(o.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${eN(l||0)}%`,onChange:l=>s(Number(l),"b")}))},dft=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[o,a]=m.useState(_s(n||"#000"));m.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toRgb();u[c]=l||0;const d=_s(u);n||a(d),r==null||r(d)};return de.createElement("div",{className:i},de.createElement(Rv,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),de.createElement(Rv,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),de.createElement(Rv,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},fft=[gh.hex,gh.hsb,gh.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),pft=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:o,onChange:a,disabledFormat:s}=e,[l,c]=Fn(gh.hex,{value:n,onChange:o}),u=`${t}-input`,d=p=>{c(p)},f=m.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case gh.hsb:return de.createElement(uft,Object.assign({},p));case gh.rgb:return de.createElement(dft,Object.assign({},p));default:return de.createElement(cft,Object.assign({},p))}},[l,t,r,a]);return de.createElement("div",{className:`${u}-container`},!s&&de.createElement(md,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:fft}),de.createElement("div",{className:u},f),!i&&de.createElement(Mdt,{prefixCls:t,value:r,onChange:a}))};function O9(e,t,n){return(e-t)/(n-t)}function Pq(e,t,n,r){var i=O9(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function zg(e,t){return Array.isArray(e)?e[t]:e}var D_=m.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),eOe=m.createContext({}),mft=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],uoe=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,f=e.onChangeComplete,p=e.onFocus,h=e.onMouseEnter,g=It(e,mft),v=m.useContext(D_),y=v.min,_=v.max,b=v.direction,S=v.disabled,C=v.keyboard,E=v.range,w=v.tabIndex,x=v.ariaLabelForHandle,T=v.ariaLabelledByForHandle,R=v.ariaRequired,N=v.ariaValueTextFormatterForHandle,I=v.styles,P=v.classNames,D="".concat(n,"-handle"),F=function(re){S||o(re,i)},L=function(re){p==null||p(re,i)},B=function(re){h(re,i)},U=function(re){if(!S&&C){var Q=null;switch(re.which||re.keyCode){case gt.LEFT:Q=b==="ltr"||b==="btt"?-1:1;break;case gt.RIGHT:Q=b==="ltr"||b==="btt"?1:-1;break;case gt.UP:Q=b!=="ttb"?1:-1;break;case gt.DOWN:Q=b!=="ttb"?-1:1;break;case gt.HOME:Q="min";break;case gt.END:Q="max";break;case gt.PAGE_UP:Q=2;break;case gt.PAGE_DOWN:Q=-2;break;case gt.BACKSPACE:case gt.DELETE:a(i);break}Q!==null&&(re.preventDefault(),d(Q,i))}},G=function(re){switch(re.which||re.keyCode){case gt.LEFT:case gt.RIGHT:case gt.UP:case gt.DOWN:case gt.HOME:case gt.END:case gt.PAGE_UP:case gt.PAGE_DOWN:f==null||f();break}},V=Pq(b,r,y,_),W={};if(i!==null){var $;W={tabIndex:S?null:zg(w,i),role:"slider","aria-valuemin":y,"aria-valuemax":_,"aria-valuenow":r,"aria-disabled":S,"aria-label":zg(x,i),"aria-labelledby":zg(T,i),"aria-required":zg(R,i),"aria-valuetext":($=zg(N,i))===null||$===void 0?void 0:$(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:F,onTouchStart:F,onFocus:L,onMouseEnter:B,onKeyDown:U,onKeyUp:G}}var H=m.createElement("div",Qe({ref:t,className:Re(D,ie(ie(ie({},"".concat(D,"-").concat(i+1),i!==null&&E),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),P.handle),style:q(q(q({},V),s),I.handle)},W,g));return l&&(H=l(H,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),H}),hft=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],gft=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,f=It(e,hft),p=m.useRef({}),h=m.useState(!1),g=Oe(h,2),v=g[0],y=g[1],_=m.useState(-1),b=Oe(_,2),S=b[0],C=b[1],E=function(N){C(N),y(!0)},w=function(N,I){E(I),d==null||d(N)},x=function(N,I){E(I)};m.useImperativeHandle(t,function(){return{focus:function(N){var I;(I=p.current[N])===null||I===void 0||I.focus()},hideHelp:function(){Ha.flushSync(function(){y(!1)})}}});var T=q({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:w,onMouseEnter:x},f);return m.createElement(m.Fragment,null,a.map(function(R,N){var I=c===N;return m.createElement(uoe,Qe({ref:function(D){D?p.current[N]=D:delete p.current[N]},dragging:I,draggingDelete:I&&u,style:zg(r,N),key:N,value:R,valueIndex:N},T))}),l&&v&&m.createElement(uoe,Qe({key:"a11y"},T,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),vft=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=m.useContext(D_),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,p=s.included,h="".concat(n,"-text"),g=Pq(u,o,l,c);return m.createElement("span",{className:Re(h,ie({},"".concat(h,"-active"),p&&d<=o&&o<=f)),style:q(q({},g),r),onMouseDown:function(y){y.stopPropagation()},onClick:function(){a(o)}},i)},_ft=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?m.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return m.createElement(vft,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},yft=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=m.useContext(D_),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(n,"-dot"),h=u&&d<=r&&r<=f,g=q(q({},Pq(c,r,s,l)),typeof i=="function"?i(r):i);return h&&(g=q(q({},g),typeof o=="function"?o(r):o)),m.createElement("span",{className:Re(p,ie({},"".concat(p,"-active"),h)),style:g})},bft=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=m.useContext(D_),l=s.min,c=s.max,u=s.step,d=m.useMemo(function(){var f=new Set;if(r.forEach(function(h){f.add(h.value)}),i&&u!==null)for(var p=l;p<=c;)f.add(p),p+=u;return Array.from(f)},[l,c,u,i,r]);return m.createElement("div",{className:"".concat(n,"-step")},d.map(function(f){return m.createElement(yft,{prefixCls:n,key:f,value:f,style:o,activeStyle:a})}))},doe=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=m.useContext(D_),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,g=c.classNames,v="".concat(n,"-track"),y=O9(i,d,f),_=O9(o,d,f),b=function(w){!p&&s&&s(w,-1)},S={};switch(u){case"rtl":S.right="".concat(y*100,"%"),S.width="".concat(_*100-y*100,"%");break;case"btt":S.bottom="".concat(y*100,"%"),S.height="".concat(_*100-y*100,"%");break;case"ttb":S.top="".concat(y*100,"%"),S.height="".concat(_*100-y*100,"%");break;default:S.left="".concat(y*100,"%"),S.width="".concat(_*100-y*100,"%")}var C=l||Re(v,ie(ie({},"".concat(v,"-").concat(a+1),a!==null&&h),"".concat(n,"-track-draggable"),s),g.track);return m.createElement("div",{className:C,style:q(q({},S),r),onMouseDown:b,onTouchStart:b})},Sft=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=m.useContext(D_),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,p=m.useMemo(function(){if(!c){if(i.length===0)return[];var g=o??u,v=i[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var y=[],_=0;_<i.length-1;_+=1)y.push({start:i[_],end:i[_+1]});return y},[i,c,o,u]);if(!l)return null;var h=p!=null&&p.length&&(f.tracks||d.tracks)?m.createElement(doe,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:Re(f.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return m.createElement(m.Fragment,null,h,p.map(function(g,v){var y=g.start,_=g.end;return m.createElement(doe,{index:v,prefixCls:n,style:q(q({},zg(r,v)),d.track),start:y,end:_,key:v,onStartMove:a})}))},Eft=130;function foe(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Cft(e,t,n,r,i,o,a,s,l,c,u){var d=m.useState(null),f=Oe(d,2),p=f[0],h=f[1],g=m.useState(-1),v=Oe(g,2),y=v[0],_=v[1],b=m.useState(!1),S=Oe(b,2),C=S[0],E=S[1],w=m.useState(n),x=Oe(w,2),T=x[0],R=x[1],N=m.useState(n),I=Oe(N,2),P=I[0],D=I[1],F=m.useRef(null),L=m.useRef(null),B=m.useRef(null),U=m.useContext(eOe),G=U.onDragStart,V=U.onDragChange;gr(function(){y===-1&&R(n)},[n,y]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",F.current),document.removeEventListener("mouseup",L.current),B.current&&(B.current.removeEventListener("touchmove",F.current),B.current.removeEventListener("touchend",L.current))}},[]);var W=function(Q,A,k){A!==void 0&&h(A),R(Q);var Z=Q;k&&(Z=Q.filter(function(ne,oe){return oe!==y})),a(Z),V&&V({rawValues:Q,deleteIndex:k?y:-1,draggingIndex:y,draggingValue:A})},$=Wn(function(re,Q,A){if(re===-1){var k=P[0],Z=P[P.length-1],ne=r-k,oe=i-Z,ae=Q*(i-r);ae=Math.max(ae,ne),ae=Math.min(ae,oe);var ue=o(k+ae);ae=ue-k;var fe=P.map(function(Te){return Te+ae});W(fe)}else{var se=(i-r)*Q,pe=at(T);pe[re]=P[re];var _e=l(pe,se,re,"dist");W(_e.values,_e.value,A)}}),H=function(Q,A,k){Q.stopPropagation();var Z=k||n,ne=Z[A];_(A),h(ne),D(Z),R(Z),E(!1);var oe=foe(Q),ae=oe.pageX,ue=oe.pageY,fe=!1;G&&G({rawValues:Z,draggingIndex:A,draggingValue:ne});var se=function(Te){Te.preventDefault();var xe=foe(Te),ge=xe.pageX,Ce=xe.pageY,ye=ge-ae,be=Ce-ue,Ee=e.current.getBoundingClientRect(),Me=Ee.width,X=Ee.height,Y,J;switch(t){case"btt":Y=-be/X,J=ye;break;case"ttb":Y=be/X,J=ye;break;case"rtl":Y=-ye/Me,J=be;break;default:Y=ye/Me,J=be}fe=c?Math.abs(J)>Eft&&u<T.length:!1,E(fe),$(A,Y,fe)},pe=function _e(Te){Te.preventDefault(),document.removeEventListener("mouseup",_e),document.removeEventListener("mousemove",se),B.current&&(B.current.removeEventListener("touchmove",F.current),B.current.removeEventListener("touchend",L.current)),F.current=null,L.current=null,B.current=null,s(fe),_(-1),E(!1)};document.addEventListener("mouseup",pe),document.addEventListener("mousemove",se),Q.currentTarget.addEventListener("touchend",pe),Q.currentTarget.addEventListener("touchmove",se),F.current=se,L.current=pe,B.current=Q.currentTarget},K=m.useMemo(function(){var re=at(n).sort(function(ne,oe){return ne-oe}),Q=at(T).sort(function(ne,oe){return ne-oe}),A={};Q.forEach(function(ne){A[ne]=(A[ne]||0)+1}),re.forEach(function(ne){A[ne]=(A[ne]||0)-1});var k=c?1:0,Z=Object.values(A).reduce(function(ne,oe){return ne+Math.abs(oe)},0);return Z<=k?T:n},[n,T,c]);return[y,p,C,K,H]}function wft(e,t,n,r,i,o){var a=m.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=m.useCallback(function(p){if(n!==null){var h=e+Math.round((a(p)-e)/n)*n,g=function(b){return(String(b).split(".")[1]||"").length},v=Math.max(g(n),g(t),g(e)),y=Number(h.toFixed(v));return e<=y&&y<=t?y:null}return null},[n,e,t,a]),l=m.useCallback(function(p){var h=a(p),g=r.map(function(_){return _.value});n!==null&&g.push(s(p)),g.push(e,t);var v=g[0],y=t-e;return g.forEach(function(_){var b=Math.abs(h-_);b<=y&&(v=_,y=b)}),v},[e,t,r,n,a,s]),c=function p(h,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var _,b=h[v],S=b+g,C=[];r.forEach(function(R){C.push(R.value)}),C.push(e,t),C.push(s(b));var E=g>0?1:-1;y==="unit"?C.push(s(b+E*n)):C.push(s(S)),C=C.filter(function(R){return R!==null}).filter(function(R){return g<0?R<=b:R>=b}),y==="unit"&&(C=C.filter(function(R){return R!==b}));var w=y==="unit"?b:S;_=C[0];var x=Math.abs(_-w);if(C.forEach(function(R){var N=Math.abs(R-w);N<x&&(_=R,x=N)}),_===void 0)return g<0?e:t;if(y==="dist")return _;if(Math.abs(g)>1){var T=at(h);return T[v]=_,p(T,g-E,v,y)}return _}else{if(g==="min")return e;if(g==="max")return t}},u=function(h,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",_=h[v],b=c(h,g,v,y);return{value:b,changed:b!==_}},d=function(h){return o===null&&h===0||typeof o=="number"&&h<o},f=function(h,g,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",_=h.map(l),b=_[v],S=c(_,g,v,y);if(_[v]=S,i===!1){var C=o||0;v>0&&_[v-1]!==b&&(_[v]=Math.max(_[v],_[v-1]+C)),v<_.length-1&&_[v+1]!==b&&(_[v]=Math.min(_[v],_[v+1]-C))}else if(typeof o=="number"||o===null){for(var E=v+1;E<_.length;E+=1)for(var w=!0;d(_[E]-_[E-1])&&w;){var x=u(_,1,E);_[E]=x.value,w=x.changed}for(var T=v;T>0;T-=1)for(var R=!0;d(_[T]-_[T-1])&&R;){var N=u(_,-1,T-1);_[T-1]=N.value,R=N.changed}for(var I=_.length-1;I>0;I-=1)for(var P=!0;d(_[I]-_[I-1])&&P;){var D=u(_,-1,I-1);_[I-1]=D.value,P=D.changed}for(var F=0;F<_.length-1;F+=1)for(var L=!0;d(_[F+1]-_[F])&&L;){var B=u(_,1,F+1);_[F+1]=B.value,L=B.changed}}return{value:_[v],values:_}};return[l,f]}function xft(e){return m.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,i=e.maxCount;return[!0,t,!t&&n,r||0,i]},[e])}var Tft=m.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,i=e.className,o=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,f=d===void 0?!0:d,p=e.autoFocus,h=e.onFocus,g=e.onBlur,v=e.min,y=v===void 0?0:v,_=e.max,b=_===void 0?100:_,S=e.step,C=S===void 0?1:S,E=e.value,w=e.defaultValue,x=e.range,T=e.count,R=e.onChange,N=e.onBeforeChange,I=e.onAfterChange,P=e.onChangeComplete,D=e.allowCross,F=D===void 0?!0:D,L=e.pushable,B=L===void 0?!1:L,U=e.reverse,G=e.vertical,V=e.included,W=V===void 0?!0:V,$=e.startPoint,H=e.trackStyle,K=e.handleStyle,re=e.railStyle,Q=e.dotStyle,A=e.activeDotStyle,k=e.marks,Z=e.dots,ne=e.handleRender,oe=e.activeHandleRender,ae=e.track,ue=e.tabIndex,fe=ue===void 0?0:ue,se=e.ariaLabelForHandle,pe=e.ariaLabelledByForHandle,_e=e.ariaRequired,Te=e.ariaValueTextFormatterForHandle,xe=m.useRef(null),ge=m.useRef(null),Ce=m.useMemo(function(){return G?U?"ttb":"btt":U?"rtl":"ltr"},[U,G]),ye=xft(x),be=Oe(ye,5),Ee=be[0],Me=be[1],X=be[2],Y=be[3],J=be[4],he=m.useMemo(function(){return isFinite(y)?y:0},[y]),ve=m.useMemo(function(){return isFinite(b)?b:100},[b]),ce=m.useMemo(function(){return C!==null&&C<=0?1:C},[C]),$e=m.useMemo(function(){return typeof B=="boolean"?B?ce:!1:B>=0?B:!1},[B,ce]),Be=m.useMemo(function(){return Object.keys(k||{}).map(function(kt){var nt=k[kt],Rt={value:Number(kt)};return nt&&qt(nt)==="object"&&!m.isValidElement(nt)&&("label"in nt||"style"in nt)?(Rt.style=nt.style,Rt.label=nt.label):Rt.label=nt,Rt}).filter(function(kt){var nt=kt.label;return nt||typeof nt=="number"}).sort(function(kt,nt){return kt.value-nt.value})},[k]),me=wft(he,ve,ce,Be,F,$e),Fe=Oe(me,2),Xe=Fe[0],ze=Fe[1],qe=Fn(w,{value:E}),Ge=Oe(qe,2),We=Ge[0],Lt=Ge[1],ut=m.useMemo(function(){var kt=We==null?[]:Array.isArray(We)?We:[We],nt=Oe(kt,1),Rt=nt[0],Tt=Rt===void 0?he:Rt,xn=We===null?[]:[Tt];if(Ee){if(xn=at(kt),T||We===void 0){var Un=T>=0?T+1:2;for(xn=xn.slice(0,Un);xn.length<Un;){var O;xn.push((O=xn[xn.length-1])!==null&&O!==void 0?O:he)}}xn.sort(function(j,te){return j-te})}return xn.forEach(function(j,te){xn[te]=Xe(j)}),xn},[We,Ee,he,T,Xe]),ft=function(nt){return Ee?nt:nt[0]},bt=Wn(function(kt){var nt=at(kt).sort(function(Rt,Tt){return Rt-Tt});R&&!qv(nt,ut,!0)&&R(ft(nt)),Lt(nt)}),St=Wn(function(kt){kt&&xe.current.hideHelp();var nt=ft(ut);I==null||I(nt),Wr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),P==null||P(nt)}),Ht=function(nt){if(!(u||!Me||ut.length<=Y)){var Rt=at(ut);Rt.splice(nt,1),N==null||N(ft(Rt)),bt(Rt);var Tt=Math.max(0,nt-1);xe.current.hideHelp(),xe.current.focus(Tt)}},xt=Cft(ge,Ce,ut,he,ve,Xe,bt,St,ze,Me,Y),Nt=Oe(xt,5),Vt=Nt[0],Ue=Nt[1],Ve=Nt[2],je=Nt[3],et=Nt[4],_t=function(nt,Rt){if(!u){var Tt=at(ut),xn=0,Un=0,O=ve-he;ut.forEach(function(Je,At){var dn=Math.abs(nt-Je);dn<=O&&(O=dn,xn=At),Je<nt&&(Un=At)});var j=xn;Me&&O!==0&&(!J||ut.length<J)?(Tt.splice(Un+1,0,nt),j=Un+1):Tt[xn]=nt,Ee&&!ut.length&&T===void 0&&Tt.push(nt);var te=ft(Tt);if(N==null||N(te),bt(Tt),Rt){var we,Le;(we=document.activeElement)===null||we===void 0||(Le=we.blur)===null||Le===void 0||Le.call(we),xe.current.focus(j),et(Rt,j,Tt)}else I==null||I(te),Wr(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),P==null||P(te)}},vt=function(nt){nt.preventDefault();var Rt=ge.current.getBoundingClientRect(),Tt=Rt.width,xn=Rt.height,Un=Rt.left,O=Rt.top,j=Rt.bottom,te=Rt.right,we=nt.clientX,Le=nt.clientY,Je;switch(Ce){case"btt":Je=(j-Le)/xn;break;case"ttb":Je=(Le-O)/xn;break;case"rtl":Je=(te-we)/Tt;break;default:Je=(we-Un)/Tt}var At=he+Je*(ve-he);_t(Xe(At),nt)},Mt=m.useState(null),wt=Oe(Mt,2),jt=wt[0],zt=wt[1],Gt=function(nt,Rt){if(!u){var Tt=ze(ut,nt,Rt);N==null||N(ft(ut)),bt(Tt.values),zt(Tt.value)}};m.useEffect(function(){if(jt!==null){var kt=ut.indexOf(jt);kt>=0&&xe.current.focus(kt)}zt(null)},[jt]);var $t=m.useMemo(function(){return X&&ce===null?!1:X},[X,ce]),on=Wn(function(kt,nt){et(kt,nt),N==null||N(ft(ut))}),pt=Vt!==-1;m.useEffect(function(){if(!pt){var kt=ut.lastIndexOf(Ue);xe.current.focus(kt)}},[pt]);var Dt=m.useMemo(function(){return at(je).sort(function(kt,nt){return kt-nt})},[je]),Wt=m.useMemo(function(){return Ee?[Dt[0],Dt[Dt.length-1]]:[he,Dt[0]]},[Dt,Ee,he]),Et=Oe(Wt,2),yt=Et[0],Ft=Et[1];m.useImperativeHandle(t,function(){return{focus:function(){xe.current.focus(0)},blur:function(){var nt,Rt=document,Tt=Rt.activeElement;(nt=ge.current)!==null&&nt!==void 0&&nt.contains(Tt)&&(Tt==null||Tt.blur())}}}),m.useEffect(function(){p&&xe.current.focus(0)},[]);var Ae=m.useMemo(function(){return{min:he,max:ve,direction:Ce,disabled:u,keyboard:f,step:ce,included:W,includedStart:yt,includedEnd:Ft,range:Ee,tabIndex:fe,ariaLabelForHandle:se,ariaLabelledByForHandle:pe,ariaRequired:_e,ariaValueTextFormatterForHandle:Te,styles:s||{},classNames:a||{}}},[he,ve,Ce,u,f,ce,W,yt,Ft,Ee,fe,se,pe,_e,Te,s,a]);return m.createElement(D_.Provider,{value:Ae},m.createElement("div",{ref:ge,className:Re(r,i,ie(ie(ie(ie({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),G),"".concat(r,"-horizontal"),!G),"".concat(r,"-with-marks"),Be.length)),style:o,onMouseDown:vt,id:l},m.createElement("div",{className:Re("".concat(r,"-rail"),a==null?void 0:a.rail),style:q(q({},re),s==null?void 0:s.rail)}),ae!==!1&&m.createElement(Sft,{prefixCls:r,style:H,values:ut,startPoint:$,onStartMove:$t?on:void 0}),m.createElement(bft,{prefixCls:r,marks:Be,dots:Z,style:Q,activeStyle:A}),m.createElement(gft,{ref:xe,prefixCls:r,style:K,values:je,draggingIndex:Vt,draggingDelete:Ve,onStartMove:on,onOffsetChange:Gt,onFocus:h,onBlur:g,handleRender:ne,activeHandleRender:oe,onChangeComplete:St,onDelete:Me?Ht:void 0}),m.createElement(_ft,{prefixCls:r,marks:Be,onClick:_t})))});const tOe=m.createContext({}),poe=m.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=m.useRef(null),o=n&&!r,a=m.useRef(null);function s(){rr.cancel(a.current),a.current=null}function l(){a.current=rr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return m.useEffect(()=>(o?l():s(),s),[o,e.title]),m.createElement(rc,Object.assign({ref:Sa(i,t)},e,{open:o}))}),Rft=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{position:"relative",height:r,margin:`${De(a)} ${De(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${De(o)} ${De(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${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 ${De(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${De(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
||
inset-inline-start ${v},
|
||
inset-block-start ${v},
|
||
width ${v},
|
||
height ${v},
|
||
box-shadow ${v},
|
||
outline ${v}
|
||
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(g).mul(-1).equal(),width:c(d).add(c(g).mul(2)).equal(),height:c(d).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${De(g)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${De(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${t}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${De(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
||
${t}-mark-text,
|
||
${t}-dot
|
||
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},nOe=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),h=s(i).sub(r).div(2).equal(),g=t?{borderWidth:`${De(h)} 0`,transform:`translateY(${De(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${De(h)}`,transform:`translateX(${De(e.calc(h).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},Oft=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},nOe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Ift=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},nOe(e,!1)),{height:"100%"})}},Nft=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new cr(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new cr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Mft=dr("Slider",e=>{const t=qn(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[Rft(t),Oft(t),Ift(t)]},Nft);function hF(){const[e,t]=m.useState(!1),n=m.useRef(null),r=()=>{rr.cancel(n.current)},i=o=>{r(),o?t(o):n.current=rr(()=>{t(o)})};return m.useEffect(()=>r,[]),[e,i]}var Aft=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Pft(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const rOe=de.forwardRef((e,t)=>{var n,r,i,o,a,s,l,c,u,d;const{prefixCls:f,range:p,className:h,rootClassName:g,style:v,disabled:y,tooltipPrefixCls:_,tipFormatter:b,tooltipVisible:S,getTooltipPopupContainer:C,tooltipPlacement:E,tooltip:w={},onChangeComplete:x,classNames:T,styles:R}=e,N=Aft(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:I}=e,{direction:P,slider:D,getPrefixCls:F,getPopupContainer:L}=de.useContext(nn),B=de.useContext(No),U=y??B,{handleRender:G,direction:V}=de.useContext(tOe),$=(V||P)==="rtl",[H,K]=hF(),[re,Q]=hF(),A=Object.assign({},w),{open:k,placement:Z,getPopupContainer:ne,prefixCls:oe,formatter:ae}=A,ue=k??S,fe=(H||re)&&ue!==!1,se=Pft(ae,b),[pe,_e]=hF(),Te=ce=>{x==null||x(ce),_e(!1)},xe=(ce,$e)=>ce||($e?$?"left":"right":"top"),ge=F("slider",f),[Ce,ye,be]=Mft(ge),Ee=Re(h,D==null?void 0:D.className,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.root,T==null?void 0:T.root,g,{[`${ge}-rtl`]:$,[`${ge}-lock`]:pe},ye,be);$&&!N.vertical&&(N.reverse=!N.reverse),de.useEffect(()=>{const ce=()=>{rr(()=>{Q(!1)},1)};return document.addEventListener("mouseup",ce),()=>{document.removeEventListener("mouseup",ce)}},[]);const Me=p&&!ue,X=G||((ce,$e)=>{const{index:Be}=$e,me=ce.props;function Fe(Ge,We,Lt){var ut,ft,bt,St;Lt&&((ft=(ut=N)[Ge])===null||ft===void 0||ft.call(ut,We)),(St=(bt=me)[Ge])===null||St===void 0||St.call(bt,We)}const Xe=Object.assign(Object.assign({},me),{onMouseEnter:Ge=>{K(!0),Fe("onMouseEnter",Ge)},onMouseLeave:Ge=>{K(!1),Fe("onMouseLeave",Ge)},onMouseDown:Ge=>{Q(!0),_e(!0),Fe("onMouseDown",Ge)},onFocus:Ge=>{var We;Q(!0),(We=N.onFocus)===null||We===void 0||We.call(N,Ge),Fe("onFocus",Ge,!0)},onBlur:Ge=>{var We;Q(!1),(We=N.onBlur)===null||We===void 0||We.call(N,Ge),Fe("onBlur",Ge,!0)}}),ze=de.cloneElement(ce,Xe),qe=(!!ue||fe)&&se!==null;return Me?ze:de.createElement(poe,Object.assign({},A,{prefixCls:F("tooltip",oe??_),title:se?se($e.value):"",open:qe,placement:xe(Z??E,I),key:Be,classNames:{root:`${ge}-tooltip`},getPopupContainer:ne||C||L}),ze)}),Y=Me?(ce,$e)=>{const Be=de.cloneElement(ce,{style:Object.assign(Object.assign({},ce.props.style),{visibility:"hidden"})});return de.createElement(poe,Object.assign({},A,{prefixCls:F("tooltip",oe??_),title:se?se($e.value):"",open:se!==null&&fe,placement:xe(Z??E,I),key:"tooltip",classNames:{root:`${ge}-tooltip`},getPopupContainer:ne||C||L,draggingDelete:$e.draggingDelete}),Be)}:void 0,J=Object.assign(Object.assign(Object.assign(Object.assign({},(r=D==null?void 0:D.styles)===null||r===void 0?void 0:r.root),D==null?void 0:D.style),R==null?void 0:R.root),v),he=Object.assign(Object.assign({},(i=D==null?void 0:D.styles)===null||i===void 0?void 0:i.tracks),R==null?void 0:R.tracks),ve=Re((o=D==null?void 0:D.classNames)===null||o===void 0?void 0:o.tracks,T==null?void 0:T.tracks);return Ce(de.createElement(Tft,Object.assign({},N,{classNames:Object.assign({handle:Re((a=D==null?void 0:D.classNames)===null||a===void 0?void 0:a.handle,T==null?void 0:T.handle),rail:Re((s=D==null?void 0:D.classNames)===null||s===void 0?void 0:s.rail,T==null?void 0:T.rail),track:Re((l=D==null?void 0:D.classNames)===null||l===void 0?void 0:l.track,T==null?void 0:T.track)},ve?{tracks:ve}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=D==null?void 0:D.styles)===null||c===void 0?void 0:c.handle),R==null?void 0:R.handle),rail:Object.assign(Object.assign({},(u=D==null?void 0:D.styles)===null||u===void 0?void 0:u.rail),R==null?void 0:R.rail),track:Object.assign(Object.assign({},(d=D==null?void 0:D.styles)===null||d===void 0?void 0:d.track),R==null?void 0:R.track)},Object.keys(he).length?{tracks:he}:{}),step:N.step,range:p,className:Ee,style:J,disabled:U,ref:t,prefixCls:ge,handleRender:X,activeHandleRender:Y,onChangeComplete:Te})))});var Dft=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iOe=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:o=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:d}=e,f=Dft(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},f),{track:!1}),h=m.useMemo(()=>`linear-gradient(90deg, ${n.map(E=>`${E.color} ${E.percent}%`).join(", ")})`,[n]),g=m.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=Wn(c),y=Wn(u),_=m.useMemo(()=>({onDragStart:v,onDragChange:y}),[]),b=Wn((C,E)=>{const{onFocus:w,style:x,className:T,onKeyDown:R}=C.props,N=Object.assign({},x);return r==="gradient"&&(N.background=wwe(n,E.value)),m.cloneElement(C,{onFocus:I=>{l==null||l(E.index),w==null||w(I)},style:N,className:Re(T,{[`${t}-slider-handle-active`]:s===E.index}),onKeyDown:I=>{(I.key==="Delete"||I.key==="Backspace")&&d&&d(E.index),R==null||R(I)}})}),S=m.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return m.createElement(tOe.Provider,{value:S},m.createElement(eOe.Provider,{value:_},m.createElement(rOe,Object.assign({},p,{className:Re(a,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:h},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},kft=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=a=>n(a[0]),o=a=>r(a[0]);return m.createElement(iOe,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:o}))};function moe(e){return at(e).sort((t,n)=>t.percent-n.percent)}const Lft=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:o,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=m.useMemo(()=>l.map(y=>({percent:y.percent,color:y.color.toRgbString()})),[l]),d=m.useMemo(()=>u.map(y=>y.percent),[u]),f=m.useRef(u),p=y=>{let{rawValues:_,draggingIndex:b,draggingValue:S}=y;if(_.length>u.length){const C=wwe(u,S),E=at(u);E.splice(b,0,{percent:S,color:C}),f.current=E}else f.current=u;s(!0),r(new Yl(moe(f.current)),!0)},h=y=>{let{deleteIndex:_,draggingIndex:b,draggingValue:S}=y,C=at(f.current);_!==-1?C.splice(_,1):(C[b]=Object.assign(Object.assign({},C[b]),{percent:S}),C=moe(C)),r(new Yl(C),!0)},g=y=>{const _=at(u);_.splice(y,1);const b=new Yl(_);r(b),i(b)},v=y=>{i(new Yl(u)),a>=y.length&&o(y.length-1),s(!1)};return c?m.createElement(iOe,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:a,onActive:o,onDragStart:p,onDragChange:h,onKeyDelete:g}):null},$ft=m.memo(Lft);var Fft=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bft={slider:kft},hoe=()=>{const e=m.useContext(VRe),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:o,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:f}=e,p=Fft(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),h=de.useMemo(()=>a.cleared?[{percent:0,color:new Yl("")},{percent:100,color:new Yl("")}]:a.getColors(),[a]),g=!a.isGradient(),[v,y]=de.useState(a);gr(()=>{var D;g||y((D=h[d])===null||D===void 0?void 0:D.color)},[f,d]);const _=de.useMemo(()=>{var D;return g?a:f?v:(D=h[d])===null||D===void 0?void 0:D.color},[a,d,g,v,f]),[b,S]=de.useState(_),[C,E]=de.useState(0),w=b!=null&&b.equals(_)?_:b;gr(()=>{S(_)},[C,_==null?void 0:_.toHexString()]);const x=(D,F)=>{let L=_s(D);if(a.cleared){const U=L.toRgb();if(!U.r&&!U.g&&!U.b&&F){const{type:G,value:V=0}=F;L=new Yl({h:G==="hue"?V:0,s:1,b:1,a:G==="alpha"?V/100:1})}else L=tN(L)}if(t==="single")return L;const B=at(h);return B[d]=Object.assign(Object.assign({},B[d]),{color:L}),new Yl(B)},T=(D,F,L)=>{const B=x(D,L);S(B.isGradient()?B.getColors()[d].color:B),l(B,F)},R=(D,F)=>{u(x(D,F)),E(L=>L+1)},N=D=>{l(x(D))};let I=null;const P=r.length>1;return(o||P)&&(I=de.createElement("div",{className:`${i}-operation`},P&&de.createElement(zRe,{size:"small",options:r,value:t,onChange:n}),de.createElement(WRe,Object.assign({prefixCls:i,value:a,onChange:D=>{l(D),c==null||c()}},p)))),de.createElement(de.Fragment,null,I,de.createElement($ft,Object.assign({},e,{colors:h})),de.createElement(rJe,{prefixCls:i,value:w==null?void 0:w.toHsb(),disabledAlpha:s,onChange:(D,F)=>{T(D,!0,F)},onChangeComplete:(D,F)=>{R(D,F)},components:Bft}),de.createElement(pft,Object.assign({value:_,onChange:N,prefixCls:i,disabledAlpha:s},p)))},goe=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(GRe);return Array.isArray(n)?de.createElement(QJe,{value:t,presets:n,prefixCls:e,onChange:r}):null},Uft=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:h,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:_,disabledFormat:b}=e,S=`${t}-inner`,C=de.useMemo(()=>({prefixCls:t,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:f,activeIndex:p,onActive:h,format:g,onFormatChange:v,gradientDragging:y,onGradientDragging:_,disabledFormat:b}),[t,i,o,a,s,l,c,u,d,f,p,h,g,v,y,_,b]),E=de.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:o}),[t,i,n,o]),w=de.createElement("div",{className:`${S}-content`},de.createElement(hoe,null),Array.isArray(n)&&de.createElement(Gut,null),de.createElement(goe,null));return de.createElement(VRe.Provider,{value:C},de.createElement(GRe.Provider,{value:E},de.createElement("div",{className:S},typeof r=="function"?r(w,{components:{Picker:hoe,Presets:goe}}):w)))};var jft=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Hft=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:o,format:a,className:s,showText:l,activeIndex:c}=e,u=jft(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${r}-trigger`,f=`${d}-text`,p=`${f}-cell`,[h]=Gs("ColorPicker"),g=de.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((b,S)=>{const C=c!==-1&&c!==S;return de.createElement("span",{key:S,className:Re(p,C&&`${p}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const y=n.toHexString().toUpperCase(),_=DY(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return _<100?`${y.slice(0,7)},${_}%`:y}},[n,a,l,c]),v=m.useMemo(()=>n.cleared?de.createElement(WRe,{prefixCls:r}):de.createElement(NY,{prefixCls:r,color:n.toCssString()}),[n,r]);return de.createElement("div",Object.assign({ref:t,className:Re(d,s,{[`${d}-active`]:i,[`${d}-disabled`]:o})},ao(u)),v,l&&de.createElement("div",{className:f},g))});function zft(e,t,n){const[r]=Gs("ColorPicker"),[i,o]=Fn(e,{value:t}),[a,s]=m.useState("single"),[l,c]=m.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(b=>b);g.length||g.push("single");const v=new Set(g),y=[],_=(b,S)=>{v.has(b)&&y.push({label:S,value:b})};return _("single",r.singleColor),_("gradient",r.gradientColor),[y,v]},[n]),[u,d]=m.useState(null),f=Wn(g=>{d(g),o(g)}),p=m.useMemo(()=>{const g=_s(i||"");return g.equals(u)?u:g},[i,u]),h=m.useMemo(()=>{var g;return c.has(a)?a:(g=l[0])===null||g===void 0?void 0:g.value},[c,a,l]);return m.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,f,h,s,l]}const oOe=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),voe=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:o,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},oOe("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${De(o)} ${a}`,borderRadius:"inherit"}})}},Vft=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:o,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${De(o)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:De(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${De(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:De(e.calc(l).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},Gft=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:o,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:o},[`${t}-handler`]:{width:c,height:c,border:`${De(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},Wft=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:o,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:h,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${De(h)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(c).mul(4)).equal(),height:e.calc(o).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${De(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${De(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}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},Yft=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:o,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(o).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(o).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[oOe(De(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${De(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},I9=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${De(e.controlOutlineWidth)} ${n}`,outline:0}),qft=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},_oe=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:o,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${De(o)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},Kft=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:o,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},I9(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},I9(e,r,s))}}},Qft=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:o,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:De(o)}}}},Xft=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:y,lineWidth:_,colorBorder:b,paddingXXS:S,fontSize:C,colorPrimaryHover:E,controlOutline:w}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${De(f)} 0 ${De(d)}`}},[`${n}-panel`]:Object.assign({},Gft(e))},Yft(e)),voe(e,y)),Vft(e)),Wft(e)),_oe(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${De(_)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:a,padding:e.calc(S).sub(_).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(S).sub(_)).equal(),fontSize:C,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:E},[`&${n}-trigger-active`]:Object.assign({},I9(e,i,w)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},_oe(e,h)),voe(e,h)),Kft(e)),Qft(e))},qft(e))},N_(e,{focusElCls:`${n}-trigger-active`})]},Zft=dr("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=qn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[Xft(i)]});var Jft=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Dq=e=>{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:o,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:d,placement:f="bottomLeft",arrow:p=!0,panelRender:h,showText:g,style:v,className:y,size:_,rootClassName:b,prefixCls:S,styles:C,disabledAlpha:E=!1,onFormatChange:w,onChange:x,onClear:T,onOpenChange:R,onChangeComplete:N,getPopupContainer:I,autoAdjustOverflow:P=!0,destroyTooltipOnHide:D,disabledFormat:F}=e,L=Jft(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:B,direction:U,colorPicker:G}=m.useContext(nn),V=m.useContext(No),W=d??V,[$,H]=Fn(!1,{value:u,postState:Xe=>!W&&Xe,onChange:R}),[K,re]=Fn(i,{value:i,defaultValue:o,onChange:w}),Q=B("color-picker",S),[A,k,Z,ne,oe]=zft(r,n,t),ae=m.useMemo(()=>DY(A)<100,[A]),[ue,fe]=de.useState(null),se=Xe=>{if(N){let ze=_s(Xe);E&&ae&&(ze=tN(Xe)),N(ze)}},pe=(Xe,ze)=>{let qe=_s(Xe);E&&ae&&(qe=tN(qe)),k(qe),fe(null),x&&x(qe,qe.toCssString()),ze||se(qe)},[_e,Te]=de.useState(0),[xe,ge]=de.useState(!1),Ce=Xe=>{if(ne(Xe),Xe==="single"&&A.isGradient())Te(0),pe(new Yl(A.getColors()[0].color)),fe(A);else if(Xe==="gradient"&&!A.isGradient()){const ze=ae?tN(A):A;pe(new Yl(ue||[{percent:0,color:ze},{percent:100,color:ze}]))}},{status:ye}=de.useContext(Qo),{compactSize:be,compactItemClassnames:Ee}=pd(Q,U),Me=Zo(Xe=>{var ze;return(ze=_??be)!==null&&ze!==void 0?ze:Xe}),X=oi(Q),[Y,J,he]=Zft(Q,X),ve={[`${Q}-rtl`]:U},ce=Re(b,he,X,ve),$e=Re(id(Q,ye),{[`${Q}-sm`]:Me==="small",[`${Q}-lg`]:Me==="large"},Ee,G==null?void 0:G.className,ce,y,J),Be=Re(Q,ce),me={open:$,trigger:c,placement:f,arrow:p,rootClassName:b,getPopupContainer:I,autoAdjustOverflow:P,destroyTooltipOnHide:D},Fe=Object.assign(Object.assign({},G==null?void 0:G.style),v);return Y(de.createElement(Xc,Object.assign({style:C==null?void 0:C.popup,styles:{body:C==null?void 0:C.popupOverlayInner},onOpenChange:Xe=>{(!Xe||!W)&&H(Xe)},content:de.createElement(rd,{form:!0},de.createElement(Uft,{mode:Z,onModeChange:Ce,modeOptions:oe,prefixCls:Q,value:A,allowClear:a,disabled:W,disabledAlpha:E,presets:s,panelRender:h,format:K,onFormatChange:re,onChange:pe,onChangeComplete:se,onClear:T,activeIndex:_e,onActive:Te,gradientDragging:xe,onGradientDragging:ge,disabledFormat:F})),classNames:{root:Be}},me),l||de.createElement(Hft,Object.assign({activeIndex:$?_e:-1,open:$,className:$e,style:Fe,prefixCls:Q,disabled:W,showText:g,format:K},L,{color:A}))))},ept=Fh(Dq,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Dq._InternalPanelDoNotUseOrYouWillBeFired=ept;var tpt={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"},npt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:tpt}))},ik=m.forwardRef(npt),rpt={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"},ipt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:rpt}))},kq=m.forwardRef(ipt),opt={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"},apt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:opt}))},spt=m.forwardRef(apt);function lpt(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 cpt(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 aOe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=FD(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[m.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[upt,dpt]=["week","WeekPicker"],[fpt,ppt]=["month","MonthPicker"],[mpt,hpt]=["year","YearPicker"],[gpt,vpt]=["quarter","QuarterPicker"],[sOe,yoe]=["time","TimePicker"],_pt=e=>m.createElement(On,Object.assign({size:"small",type:"primary"},e));function lOe(e){return m.useMemo(()=>Object.assign({button:_pt},e),[e])}var ypt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bpt=e=>m.forwardRef((n,r)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:h,popupClassName:g,dropdownClassName:v,status:y,rootClassName:_,variant:b,picker:S}=n,C=ypt(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=m.useRef(null),{getPrefixCls:w,direction:x,getPopupContainer:T,rangePicker:R}=m.useContext(nn),N=w("picker",o),{compactSize:I,compactItemClassnames:P}=pd(N,x),D=w(),[F,L]=Fp("rangePicker",b,p),B=oi(N),[U,G,V]=pRe(N,B),[W]=aOe(n,N),$=lOe(s),H=Zo(fe=>{var se;return(se=d??I)!==null&&se!==void 0?se:fe}),K=m.useContext(No),re=f??K,Q=m.useContext(Qo),{hasFeedback:A,status:k,feedbackIcon:Z}=Q,ne=m.createElement(m.Fragment,null,S===sOe?m.createElement(kq,null):m.createElement(ik,null),A&&Z);m.useImperativeHandle(r,()=>E.current);const[oe]=Gs("Calendar",jM),ae=Object.assign(Object.assign({},oe),n.locale),[ue]=au("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return U(m.createElement(rd,{space:!0},m.createElement(plt,Object.assign({separator:m.createElement("span",{"aria-label":"to",className:`${N}-separator`},m.createElement(spt,null)),disabled:re,ref:E,placement:u,placeholder:cpt(ae,S,h),suffixIcon:ne,prevIcon:m.createElement("span",{className:`${N}-prev-icon`}),nextIcon:m.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:S},C,{className:Re({[`${N}-${H}`]:H,[`${N}-${F}`]:L},id(N,$p(k,y),A),G,P,l,R==null?void 0:R.className,V,B,_),style:Object.assign(Object.assign({},R==null?void 0:R.style),c),locale:ae.lang,prefixCls:N,getPopupContainer:a||T,generateConfig:e,components:$,direction:x,classNames:{popup:Re(G,g||v,V,B,_)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ue})},allowClear:W}))))});var Spt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ept=e=>{const t=(l,c)=>{const u=c===yoe?"timePicker":"datePicker";return m.forwardRef((f,p)=>{var h;const{prefixCls:g,getPopupContainer:v,components:y,style:_,className:b,rootClassName:S,size:C,bordered:E,placement:w,placeholder:x,popupClassName:T,dropdownClassName:R,disabled:N,status:I,variant:P,onCalendarChange:D}=f,F=Spt(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:L,direction:B,getPopupContainer:U,[u]:G}=m.useContext(nn),V=L("picker",g),{compactSize:W,compactItemClassnames:$}=pd(V,B),H=m.useRef(null),[K,re]=Fp("datePicker",P,E),Q=oi(V),[A,k,Z]=pRe(V,Q);m.useImperativeHandle(p,()=>H.current);const ne={showToday:!0},oe=l||f.picker,ae=L(),{onSelect:ue,multiple:fe}=F,se=ue&&l==="time"&&!fe,pe=(ce,$e,Be)=>{D==null||D(ce,$e,Be),se&&ue(ce)},[_e,Te]=aOe(f,V),xe=lOe(y),ge=Zo(ce=>{var $e;return($e=C??W)!==null&&$e!==void 0?$e:ce}),Ce=m.useContext(No),ye=N??Ce,be=m.useContext(Qo),{hasFeedback:Ee,status:Me,feedbackIcon:X}=be,Y=m.createElement(m.Fragment,null,oe==="time"?m.createElement(kq,null):m.createElement(ik,null),Ee&&X),[J]=Gs("DatePicker",jM),he=Object.assign(Object.assign({},J),f.locale),[ve]=au("DatePicker",(h=f.popupStyle)===null||h===void 0?void 0:h.zIndex);return A(m.createElement(rd,{space:!0},m.createElement(ylt,Object.assign({ref:H,placeholder:lpt(he,oe,x),suffixIcon:Y,placement:w,prevIcon:m.createElement("span",{className:`${V}-prev-icon`}),nextIcon:m.createElement("span",{className:`${V}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${V}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${V}-super-next-icon`}),transitionName:`${ae}-slide-up`,picker:l,onCalendarChange:pe},ne,F,{locale:he.lang,className:Re({[`${V}-${ge}`]:ge,[`${V}-${K}`]:re},id(V,$p(Me,I),Ee),k,$,G==null?void 0:G.className,b,Z,Q,S),style:Object.assign(Object.assign({},G==null?void 0:G.style),_),prefixCls:V,getPopupContainer:v||U,generateConfig:e,components:xe,direction:B,disabled:ye,classNames:{popup:Re(k,Z,Q,S,T||R)},styles:{popup:Object.assign(Object.assign({},f.popupStyle),{zIndex:ve})},allowClear:_e,removeIcon:Te}))))})},n=t(),r=t(upt,dpt),i=t(fpt,ppt),o=t(mpt,hpt),a=t(gpt,vpt),s=t(sOe,yoe);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},cOe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=Ept(e),s=bpt(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},hl=cOe(Sst),Cpt=Fh(hl,"popupAlign",void 0,"picker");hl._InternalPanelDoNotUseOrYouWillBeFired=Cpt;const wpt=Fh(hl.RangePicker,"popupAlign",void 0,"picker");hl._InternalRangePanelDoNotUseOrYouWillBeFired=wpt;hl.generatePicker=cOe;var boe=m.createContext(null),uOe=m.createContext({}),xpt=["prefixCls","className","containerRef"],Tpt=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=It(t,xpt),a=m.useContext(uOe),s=a.panel,l=fd(s,i);return m.createElement("div",Qe({className:Re("".concat(n,"-content"),r),role:"dialog",ref:l},ao(t,{aria:!0}),{"aria-modal":"true"},o))};function Soe(e){return typeof e=="string"&&String(Number(e))===e?(Wr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Eoe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Rpt(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,p=e.classNames,h=e.rootClassName,g=e.rootStyle,v=e.zIndex,y=e.className,_=e.id,b=e.style,S=e.motion,C=e.width,E=e.height,w=e.children,x=e.mask,T=e.maskClosable,R=e.maskMotion,N=e.maskClassName,I=e.maskStyle,P=e.afterOpenChange,D=e.onClose,F=e.onMouseEnter,L=e.onMouseOver,B=e.onMouseLeave,U=e.onClick,G=e.onKeyDown,V=e.onKeyUp,W=e.styles,$=e.drawerRender,H=m.useRef(),K=m.useRef(),re=m.useRef();m.useImperativeHandle(t,function(){return H.current});var Q=function(ye){var be=ye.keyCode,Ee=ye.shiftKey;switch(be){case gt.TAB:{if(be===gt.TAB){if(!Ee&&document.activeElement===re.current){var Me;(Me=K.current)===null||Me===void 0||Me.focus({preventScroll:!0})}else if(Ee&&document.activeElement===K.current){var X;(X=re.current)===null||X===void 0||X.focus({preventScroll:!0})}}break}case gt.ESC:{D&&f&&(ye.stopPropagation(),D(ye));break}}};m.useEffect(function(){if(a&&d){var Ce;(Ce=H.current)===null||Ce===void 0||Ce.focus({preventScroll:!0})}},[a]);var A=m.useState(!1),k=Oe(A,2),Z=k[0],ne=k[1],oe=m.useContext(boe),ae;typeof c=="boolean"?ae=c?{}:{distance:0}:ae=c||{};var ue=(n=(r=(i=ae)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:oe==null?void 0:oe.pushDistance)!==null&&n!==void 0?n:180,fe=m.useMemo(function(){return{pushDistance:ue,push:function(){ne(!0)},pull:function(){ne(!1)}}},[ue]);m.useEffect(function(){if(a){var Ce;oe==null||(Ce=oe.push)===null||Ce===void 0||Ce.call(oe)}else{var ye;oe==null||(ye=oe.pull)===null||ye===void 0||ye.call(oe)}},[a]),m.useEffect(function(){return function(){var Ce;oe==null||(Ce=oe.pull)===null||Ce===void 0||Ce.call(oe)}},[]);var se=x&&m.createElement(qo,Qe({key:"mask"},R,{visible:a}),function(Ce,ye){var be=Ce.className,Ee=Ce.style;return m.createElement("div",{className:Re("".concat(o,"-mask"),be,p==null?void 0:p.mask,N),style:q(q(q({},Ee),I),W==null?void 0:W.mask),onClick:T&&a?D:void 0,ref:ye})}),pe=typeof S=="function"?S(s):S,_e={};if(Z&&ue)switch(s){case"top":_e.transform="translateY(".concat(ue,"px)");break;case"bottom":_e.transform="translateY(".concat(-ue,"px)");break;case"left":_e.transform="translateX(".concat(ue,"px)");break;default:_e.transform="translateX(".concat(-ue,"px)");break}s==="left"||s==="right"?_e.width=Soe(C):_e.height=Soe(E);var Te={onMouseEnter:F,onMouseOver:L,onMouseLeave:B,onClick:U,onKeyDown:G,onKeyUp:V},xe=m.createElement(qo,Qe({key:"panel"},pe,{visible:a,forceRender:u,onVisibleChanged:function(ye){P==null||P(ye)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(Ce,ye){var be=Ce.className,Ee=Ce.style,Me=m.createElement(Tpt,Qe({id:_,containerRef:ye,prefixCls:o,className:Re(y,p==null?void 0:p.content),style:q(q({},b),W==null?void 0:W.content)},ao(e,{aria:!0}),Te),w);return m.createElement("div",Qe({className:Re("".concat(o,"-content-wrapper"),p==null?void 0:p.wrapper,be),style:q(q(q({},_e),Ee),W==null?void 0:W.wrapper)},ao(e,{data:!0})),$?$(Me):Me)}),ge=q({},g);return v&&(ge.zIndex=v),m.createElement(boe.Provider,{value:fe},m.createElement("div",{className:Re(o,"".concat(o,"-").concat(s),h,ie(ie({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:ge,tabIndex:-1,ref:H,onKeyDown:Q},se,m.createElement("div",{tabIndex:0,ref:K,style:Eoe,"aria-hidden":"true","data-sentinel":"start"}),xe,m.createElement("div",{tabIndex:0,ref:re,style:Eoe,"aria-hidden":"true","data-sentinel":"end"})))}var Opt=m.forwardRef(Rpt),Ipt=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,d=u===void 0?!0:u,f=t.width,p=f===void 0?378:f,h=t.mask,g=h===void 0?!0:h,v=t.maskClosable,y=v===void 0?!0:v,_=t.getContainer,b=t.forceRender,S=t.afterOpenChange,C=t.destroyOnClose,E=t.onMouseEnter,w=t.onMouseOver,x=t.onMouseLeave,T=t.onClick,R=t.onKeyDown,N=t.onKeyUp,I=t.panelRef,P=m.useState(!1),D=Oe(P,2),F=D[0],L=D[1],B=m.useState(!1),U=Oe(B,2),G=U[0],V=U[1];gr(function(){V(!0)},[]);var W=G?r:!1,$=m.useRef(),H=m.useRef();gr(function(){W&&(H.current=document.activeElement)},[W]);var K=function(Z){var ne;if(L(Z),S==null||S(Z),!Z&&H.current&&!((ne=$.current)!==null&&ne!==void 0&&ne.contains(H.current))){var oe;(oe=H.current)===null||oe===void 0||oe.focus({preventScroll:!0})}},re=m.useMemo(function(){return{panel:I}},[I]);if(!b&&!F&&!W&&C)return null;var Q={onMouseEnter:E,onMouseOver:w,onMouseLeave:x,onClick:T,onKeyDown:R,onKeyUp:N},A=q(q({},t),{},{open:W,prefixCls:o,placement:s,autoFocus:c,keyboard:d,width:p,mask:g,maskClosable:y,inline:_===!1,afterOpenChange:K,ref:$},Q);return m.createElement(uOe.Provider,{value:re},m.createElement(Tx,{open:W||b||F,autoDestroy:!1,getContainer:_,autoLock:g&&(W||F)},m.createElement(Opt,A)))};const dOe=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:d,children:f,classNames:p,styles:h}=e,{drawer:g}=m.useContext(nn),v=m.useCallback(C=>m.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},C),[l]),[y,_]=Vwe(hA(e),hA(g),{closable:!0,closeIconRender:v}),b=m.useMemo(()=>{var C,E;return!i&&!y?null:m.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=g==null?void 0:g.styles)===null||C===void 0?void 0:C.header),c),h==null?void 0:h.header),className:Re(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!a},(E=g==null?void 0:g.classNames)===null||E===void 0?void 0:E.header,p==null?void 0:p.header)},m.createElement("div",{className:`${r}-header-title`},_,i&&m.createElement("div",{className:`${r}-title`},i)),a&&m.createElement("div",{className:`${r}-extra`},a))},[y,_,a,c,r,i]),S=m.useMemo(()=>{var C,E;if(!o)return null;const w=`${r}-footer`;return m.createElement("div",{className:Re(w,(C=g==null?void 0:g.classNames)===null||C===void 0?void 0:C.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(E=g==null?void 0:g.styles)===null||E===void 0?void 0:E.footer),d),h==null?void 0:h.footer)},o)},[o,d,r]);return m.createElement(m.Fragment,null,b,m.createElement("div",{className:Re(`${r}-body`,p==null?void 0:p.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),h==null?void 0:h.body)},s?m.createElement(Lp,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):f),S)},Npt=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},fOe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),pOe=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},fOe({opacity:e},{opacity:1})),Mpt=(e,t)=>[pOe(.7,t),fOe({transform:Npt(e)},{transform:"none"})],Apt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:pOe(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:Mpt(i,n)}),{})}}},Ppt=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:h,colorSplit:g,marginXS:v,colorIcon:y,colorIconHover:_,colorBgTextHover:b,colorBgTextActive:S,colorText:C,fontWeightStrong:E,footerPaddingBlock:w,footerPaddingInline:x,calc:T}=e,R=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-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:i,pointerEvents:"auto"},[R]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${R}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${R}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${R}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${R}`]:{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:`${De(c)} ${De(u)}`,fontSize:d,lineHeight:f,borderBottom:`${De(p)} ${h} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:T(d).add(l).equal(),height:T(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:E,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:_,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:S}},Qc(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${De(w)} ${De(x)}`,borderTop:`${De(p)} ${h} ${g}`},"&-rtl":{direction:"rtl"}}}},Dpt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),mOe=dr("Drawer",e=>{const t=qn(e,{});return[Ppt(t),Apt(t)]},Dpt);var hOe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kpt={distance:180},Lq=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=kpt,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:f,className:p,visible:h,afterVisibleChange:g,maskStyle:v,drawerStyle:y,contentWrapperStyle:_}=e,b=hOe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:C,direction:E,drawer:w}=m.useContext(nn),x=C("drawer",u),[T,R,N]=mOe(x),I=d===void 0&&S?()=>S(document.body):d,P=Re({"no-mask":!o,[`${x}-rtl`]:E==="rtl"},t,R,N),D=m.useMemo(()=>n??(i==="large"?736:378),[n,i]),F=m.useMemo(()=>r??(i==="large"?736:378),[r,i]),L={motionName:Pa(x,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},B=re=>({motionName:Pa(x,`panel-motion-${re}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),U=Gwe(),[G,V]=au("Drawer",b.zIndex),{classNames:W={},styles:$={}}=b,{classNames:H={},styles:K={}}=w||{};return T(m.createElement(rd,{form:!0,space:!0},m.createElement(bx.Provider,{value:V},m.createElement(Ipt,Object.assign({prefixCls:x,onClose:c,maskMotion:L,motion:B},b,{classNames:{mask:Re(W.mask,H.mask),content:Re(W.content,H.content),wrapper:Re(W.wrapper,H.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},$.mask),v),K.mask),content:Object.assign(Object.assign(Object.assign({},$.content),y),K.content),wrapper:Object.assign(Object.assign(Object.assign({},$.wrapper),_),K.wrapper)},open:s??h,mask:o,push:a,width:D,height:F,style:Object.assign(Object.assign({},w==null?void 0:w.style),f),className:Re(w==null?void 0:w.className,p),rootClassName:P,getContainer:I,afterOpenChange:l??g,panelRef:U,zIndex:G}),m.createElement(dOe,Object.assign({prefixCls:x},b,{onClose:c}))))))},Lpt=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=hOe(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=m.useContext(nn),s=a("drawer",t),[l,c,u]=mOe(s),d=Re(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(m.createElement("div",{className:d,style:n},m.createElement(dOe,Object.assign({prefixCls:s},o))))};Lq._InternalPanelDoNotUseOrYouWillBeFired=Lpt;function Coe(e){return["small","middle","large"].includes(e)}function woe(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const gOe=de.createContext({latestIndex:0}),$pt=gOe.Provider,Fpt=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=m.useContext(gOe);return r==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:t,style:o},r),n<a&&i&&m.createElement("span",{className:`${t}-split`},i))};var Bpt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Upt=m.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:s}=m.useContext(nn),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:h,split:g,style:v,wrap:y=!1,classNames:_,styles:b}=e,S=Bpt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,E]=Array.isArray(l)?l:[l,l],w=Coe(E),x=Coe(C),T=woe(E),R=woe(C),N=_a(f,{keepEmpty:!0}),I=c===void 0&&p==="horizontal"?"center":c,P=o("space",h),[D,F,L]=fwe(P),B=Re(P,a==null?void 0:a.className,F,`${P}-${p}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${I}`]:I,[`${P}-gap-row-${E}`]:w,[`${P}-gap-col-${C}`]:x},u,d,L),U=Re(`${P}-item`,(r=_==null?void 0:_.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let G=0;const V=N.map((H,K)=>{var re,Q;H!=null&&(G=K);const A=(H==null?void 0:H.key)||`${U}-${K}`;return m.createElement(Fpt,{className:U,key:A,index:K,split:g,style:(re=b==null?void 0:b.item)!==null&&re!==void 0?re:(Q=a==null?void 0:a.styles)===null||Q===void 0?void 0:Q.item},H)}),W=m.useMemo(()=>({latestIndex:G}),[G]);if(N.length===0)return null;const $={};return y&&($.flexWrap="wrap"),!x&&R&&($.columnGap=C),!w&&T&&($.rowGap=E),D(m.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},$),a==null?void 0:a.style),v)},S),m.createElement($pt,{value:W},V)))}),Zc=Upt;Zc.Compact=FZe;var jpt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const vOe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m.useContext(nn),{prefixCls:i,type:o="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:p,arrow:h,autoFocus:g,overlay:v,trigger:y,align:_,open:b,onOpenChange:S,placement:C,getPopupContainer:E,href:w,icon:x=m.createElement(dq,null),title:T,buttonsRender:R=k=>k,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:F,dropdownRender:L}=e,B=jpt(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"]),U=n("dropdown",i),G=`${U}-button`,V={menu:p,arrow:h,autoFocus:g,align:_,disabled:s,trigger:s?[]:y,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:F,dropdownRender:L},{compactSize:W,compactItemClassnames:$}=pd(U,r),H=Re(G,$,f);"overlay"in e&&(V.overlay=v),"open"in e&&(V.open=b),"placement"in e?V.placement=C:V.placement=r==="rtl"?"bottomLeft":"bottomRight";const K=m.createElement(On,{type:o,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:w,title:T},d),re=m.createElement(On,{type:o,danger:a,icon:x}),[Q,A]=R([K,re]);return m.createElement(Zc.Compact,Object.assign({className:H,size:W,block:!0},B),Q,m.createElement(VD,Object.assign({},V),A))};vOe.__ANT_BUTTON=!0;const _Oe=VD;_Oe.Button=vOe;var Hpt={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"},zpt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Hpt}))},Vpt=m.forwardRef(zpt);function TA(e){const[t,n]=m.useState(e);return m.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Gpt=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Wpt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${De(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 ${De(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xoe=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Ypt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},wr(e)),Wpt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xoe(e,e.controlHeightSM)),"&-large":Object.assign({},xoe(e,e.controlHeightLG))})}},qpt=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{marginBottom:f,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:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:PY,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Toe=(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"}}}}},Kpt=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"}}}}},Du=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),yOe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Du(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qpt=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`]:Du(e)}},[`@media (max-width: ${De(e.screenXSMax)})`]:[yOe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Du(e)}}}],[`@media (max-width: ${De(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Du(e)}}},[`@media (max-width: ${De(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Du(e)}}},[`@media (max-width: ${De(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Du(e)}}}}},Xpt=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`]:Du(e),[`@media (max-width: ${De(e.screenXSMax)})`]:[yOe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Du(e)}}],[`@media (max-width: ${De(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Du(e)}},[`@media (max-width: ${De(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Du(e)}},[`@media (max-width: ${De(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Du(e)}}}},Zpt=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}),bOe=(e,t)=>qn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$q=dr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=bOe(e,n);return[Ypt(r),qpt(r),Gpt(r),Toe(r,r.componentCls),Toe(r,r.formItemCls),Kpt(r),Qpt(r),Xpt(r),Cx(r),PY]},Zpt,{order:-1e3}),Roe=[];function gF(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 SOe=e=>{let{help:t,helpStatus:n,errors:r=Roe,warnings:i=Roe,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=m.useContext(HY),c=`${l}-item-explain`,u=oi(l),[d,f,p]=$q(l,u),h=m.useMemo(()=>nw(l),[l]),g=TA(r),v=TA(i),y=m.useMemo(()=>t!=null?[gF(t,"help",n)]:[].concat(at(g.map((S,C)=>gF(S,"error","error",C))),at(v.map((S,C)=>gF(S,"warning","warning",C)))),[t,n,g,v]),_=m.useMemo(()=>{const S={};return y.forEach(C=>{let{key:E}=C;S[E]=(S[E]||0)+1}),y.map((C,E)=>Object.assign(Object.assign({},C),{key:S[C.key]>1?`${C.key}-fallback-${E}`:C.key}))},[y]),b={};return a&&(b.id=`${a}_help`),d(m.createElement(qo,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!_.length,onVisibleChanged:s},S=>{const{className:C,style:E}=S;return m.createElement("div",Object.assign({},b,{className:Re(c,C,p,u,o,f),style:E,role:"alert"}),m.createElement(hD,Object.assign({keys:_},nw(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:x,error:T,errorStatus:R,className:N,style:I}=w;return m.createElement("div",{key:x,className:Re(N,{[`${c}-${R}`]:R}),style:I},T)}))}))},Jpt=["parentNode"],emt="form_item";function QC(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function EOe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Jpt.includes(n)?`${emt}_${n}`:n}function COe(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function Ooe(e){return QC(e).join("_")}function Ioe(e,t){const n=t.getFieldInstance(e),r=ECe(n);if(r)return r;const i=EOe(QC(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function wOe(e){const[t]=jY(),n=m.useRef({}),r=m.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=Ooe(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=Ioe(i,r);a&&zXe(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=Ioe(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=Ooe(i);return n.current[o]}}),[e,t]);return[r]}var tmt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nmt=(e,t)=>{const n=m.useContext(No),{getPrefixCls:r,direction:i,form:o}=m.useContext(nn),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:g,wrapperCol:v,hideRequiredMark:y,layout:_="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:C,name:E,style:w,feedbackIcons:x,variant:T}=e,R=tmt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=Zo(c),I=m.useContext(u1e),P=m.useMemo(()=>S!==void 0?S:y?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[y,S,o]),D=f??(o==null?void 0:o.colon),F=r("form",a),L=oi(F),[B,U,G]=$q(F,L),V=Re(F,`${F}-${_}`,{[`${F}-hide-required-mark`]:P===!1,[`${F}-rtl`]:i==="rtl",[`${F}-${N}`]:N},G,L,U,o==null?void 0:o.className,s,l),[W]=wOe(d),{__INTERNAL__:$}=W;$.name=E;const H=m.useMemo(()=>({name:E,labelAlign:p,labelCol:g,labelWrap:h,wrapperCol:v,vertical:_==="vertical",colon:D,requiredMark:P,itemRef:$.itemRef,form:W,feedbackIcons:x}),[E,p,g,v,_,D,P,W,x]),K=m.useRef(null);m.useImperativeHandle(t,()=>{var A;return Object.assign(Object.assign({},W),{nativeElement:(A=K.current)===null||A===void 0?void 0:A.nativeElement})});const re=(A,k)=>{if(A){let Z={block:"nearest"};typeof A=="object"&&(Z=Object.assign(Object.assign({},Z),A)),W.scrollToField(k,Z),Z.focus&&W.focusField(k)}},Q=A=>{if(C==null||C(A),A.errorFields.length){const k=A.errorFields[0].name;if(b!==void 0){re(b,k);return}o&&o.scrollToFirstError!==void 0&&re(o.scrollToFirstError,k)}};return B(m.createElement(zwe.Provider,{value:T},m.createElement(SY,{disabled:u},m.createElement(Yv.Provider,{value:N},m.createElement(Hwe,{validateMessages:I},m.createElement(Sp.Provider,{value:H},m.createElement(aS,Object.assign({id:E},R,{name:E,onFinishFailed:Q,form:W,ref:K,style:Object.assign(Object.assign({},o==null?void 0:o.style),w),className:V}))))))))},rmt=m.forwardRef(nmt);function imt(e){if(typeof e=="function")return e;const t=_a(e);return t.length<=1?t[0]:t}const xOe=()=>{const{status:e,errors:t=[],warnings:n=[]}=m.useContext(Qo);return{status:e,errors:t,warnings:n}};xOe.Context=Qo;function omt(e){const[t,n]=m.useState(e),r=m.useRef(null),i=m.useRef([]),o=m.useRef(!1);m.useEffect(()=>(o.current=!1,()=>{o.current=!0,rr.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=rr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function amt(){const{itemRef:e}=m.useContext(Sp),t=m.useRef({});function n(r,i){const o=i&&typeof i=="object"&&Lh(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=Sa(e(r),o)),t.current.ref}return n}const smt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},lmt=CY(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=bOe(e,n);return[smt(r)]});var cmt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const umt=24,dmt=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:h}=e,g=`${t}-item`,v=m.useContext(Sp),y=m.useMemo(()=>{let D=Object.assign({},i||v.wrapperCol||{});return h===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(L=>{const B=L?[L]:[],U=ia(v.labelCol,B),G=typeof U=="object"?U:{},V=ia(D,B),W=typeof V=="object"?V:{};"span"in G&&!("offset"in W)&&G.span<umt&&(D=jo(D,[].concat(B,["offset"]),G.span))}),D},[i,v]),_=Re(`${g}-control`,y.className),b=m.useMemo(()=>cmt(v,["labelCol","wrapperCol"]),[v]),S=m.useRef(null),[C,E]=m.useState(0);gr(()=>{c&&S.current?E(S.current.clientHeight):E(0)},[c]);const w=m.createElement("div",{className:`${g}-control-input`},m.createElement("div",{className:`${g}-control-input-content`},o)),x=m.useMemo(()=>({prefixCls:t,status:n}),[t,n]),T=f!==null||a.length||s.length?m.createElement(HY.Provider,{value:x},m.createElement(SOe,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,R={};d&&(R.id=`${d}_extra`);const N=c?m.createElement("div",Object.assign({},R,{className:`${g}-extra`,ref:S}),c):null,I=T||N?m.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+C}:{}},T,N):null,P=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:w,errorList:T,extra:N}):m.createElement(m.Fragment,null,w,I);return m.createElement(Sp.Provider,{value:b},m.createElement(sw,Object.assign({},y,{className:_}),P),m.createElement(lmt,{prefixCls:t}))};var fmt={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"},pmt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:fmt}))},mmt=m.forwardRef(pmt),hmt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function gmt(e){return e?typeof e=="object"&&!m.isValidElement(e)?e:{title:e}:null}const vmt=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[f]=Gs("Form"),{labelAlign:p,labelCol:h,labelWrap:g,colon:v}=m.useContext(Sp);if(!n)return null;const y=i||h||{},_=o||p,b=`${t}-item-label`,S=Re(b,_==="left"&&`${b}-left`,y.className,{[`${b}-wrap`]:!!g});let C=n;const E=a===!0||v!==!1&&a!==!1;E&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const x=gmt(c);if(x){const{icon:I=m.createElement(mmt,null)}=x,P=hmt(x,["icon"]),D=m.createElement(rc,Object.assign({},P),m.cloneElement(I,{className:`${t}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));C=m.createElement(m.Fragment,null,C,D)}const T=l==="optional",R=typeof l=="function";R?C=l(C,{required:!!s}):T&&!s&&(C=m.createElement(m.Fragment,null,C,m.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Kc.Form)===null||d===void 0?void 0:d.optional))));const N=Re({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:T||R,[`${t}-item-no-colon`]:!E});return m.createElement(sw,Object.assign({},y,{className:S}),m.createElement("label",{htmlFor:r,className:N,title:typeof n=="string"?n:""},C))},_mt={success:I_,warning:$h,error:mf,validating:rf};function TOe(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=m.useContext(Sp),d=COe(n,r,s,null,!!i,o),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:g}=m.useContext(Qo),v=m.useMemo(()=>{var y;let _;if(i){const S=i!==!0&&i.icons||u,C=d&&((y=S==null?void 0:S({status:d,errors:n,warnings:r}))===null||y===void 0?void 0:y[d]),E=d&&_mt[d];_=C!==!1&&E?m.createElement("span",{className:Re(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},C||m.createElement(E,null)):null}const b={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:_,isFormItemInput:!0};return l&&(b.status=(d??p)||"",b.isFormItemInput=f,b.hasFeedback=!!(i??h),b.feedbackIcon=i!==void 0?b.feedbackIcon:g),b},[d,i,l,f,p]);return m.createElement(Qo.Provider,{value:v},t)}var ymt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function bmt(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:h,isRequired:g,onSubItemMetaChange:v,layout:y}=e,_=ymt(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),b=`${t}-item`,{requiredMark:S,vertical:C}=m.useContext(Sp),E=C||y==="vertical",w=m.useRef(null),x=TA(a),T=TA(s),R=o!=null,N=!!(R||a.length||s.length),I=!!w.current&&Ex(w.current),[P,D]=m.useState(null);gr(()=>{if(N&&w.current){const G=getComputedStyle(w.current);D(parseInt(G.marginBottom,10))}},[N,I]);const F=G=>{G||D(null)},B=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const V=G?x:c.errors,W=G?T:c.warnings;return COe(V,W,c,"",!!u,l)}(),U=Re(b,n,r,{[`${b}-with-help`]:R||x.length||T.length,[`${b}-has-feedback`]:B&&u,[`${b}-has-success`]:B==="success",[`${b}-has-warning`]:B==="warning",[`${b}-has-error`]:B==="error",[`${b}-is-validating`]:B==="validating",[`${b}-hidden`]:d,[`${b}-${y}`]:y});return m.createElement("div",{className:U,style:i,ref:w},m.createElement(Oq,Object.assign({className:`${b}-row`},ur(_,["_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"])),m.createElement(vmt,Object.assign({htmlFor:p},e,{requiredMark:S,required:h??g,prefixCls:t,vertical:E})),m.createElement(dmt,Object.assign({},e,c,{errors:x,warnings:T,prefixCls:t,status:B,help:o,marginBottom:P,onErrorVisibleChanged:F}),m.createElement(jwe.Provider,{value:v},m.createElement(TOe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:B},f)))),!!P&&m.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-P}}))}const Smt="__SPLIT__";function Emt(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const Cmt=m.memo(e=>{let{children:t}=e;return t},(e,t)=>Emt(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Noe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function wmt(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:g,layout:v}=e,{getPrefixCls:y}=m.useContext(nn),{name:_}=m.useContext(Sp),b=imt(l),S=typeof b=="function",C=m.useContext(jwe),{validateTrigger:E}=m.useContext(xh),w=p!==void 0?p:E,x=t!=null,T=y("form",o),R=oi(T),[N,I,P]=$q(T,R);R_();const D=m.useContext(rw),F=m.useRef(null),[L,B]=omt({}),[U,G]=Kv(()=>Noe()),V=A=>{const k=D==null?void 0:D.getKey(A.name);if(G(A.destroy?Noe():A,!0),n&&g!==!1&&C){let Z=A.name;if(A.destroy)Z=F.current||Z;else if(k!==void 0){const[ne,oe]=k;Z=[ne].concat(at(oe)),F.current=Z}C(A,Z)}},W=(A,k)=>{B(Z=>{const ne=Object.assign({},Z),ae=[].concat(at(A.name.slice(0,-1)),at(k)).join(Smt);return A.destroy?delete ne[ae]:ne[ae]=A,ne})},[$,H]=m.useMemo(()=>{const A=at(U.errors),k=at(U.warnings);return Object.values(L).forEach(Z=>{A.push.apply(A,at(Z.errors||[])),k.push.apply(k,at(Z.warnings||[]))}),[A,k]},[L,U.errors,U.warnings]),K=amt();function re(A,k,Z){return n&&!h?m.createElement(TOe,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:U,errors:$,warnings:H,noStyle:!0},A):m.createElement(bmt,Object.assign({key:"row"},e,{className:Re(r,P,R,I),prefixCls:T,fieldId:k,isRequired:Z,errors:$,warnings:H,meta:U,onSubItemMetaChange:W,layout:v}),A)}if(!x&&!S&&!i)return N(re(b));let Q={};return typeof u=="string"?Q.label=u:t&&(Q.label=String(t)),d&&(Q=Object.assign(Object.assign({},Q),d)),N(m.createElement(UY,Object.assign({},e,{messageVariables:Q,trigger:f,validateTrigger:w,onMetaChange:V}),(A,k,Z)=>{const ne=QC(t).length&&k?k.name:[],oe=EOe(ne,_),ae=c!==void 0?c:!!(s!=null&&s.some(se=>{if(se&&typeof se=="object"&&se.required&&!se.warningOnly)return!0;if(typeof se=="function"){const pe=se(Z);return(pe==null?void 0:pe.required)&&!(pe!=null&&pe.warningOnly)}return!1})),ue=Object.assign({},A);let fe=null;if(Array.isArray(b)&&x)fe=b;else if(!(S&&(!(a||i)||x))){if(!(i&&!S&&!x))if(m.isValidElement(b)){const se=Object.assign(Object.assign({},b.props),ue);if(se.id||(se.id=oe),g||$.length>0||H.length>0||e.extra){const Te=[];(g||$.length>0)&&Te.push(`${oe}_help`),e.extra&&Te.push(`${oe}_extra`),se["aria-describedby"]=Te.join(" ")}$.length>0&&(se["aria-invalid"]="true"),ae&&(se["aria-required"]="true"),Dp(b)&&(se.ref=K(ne,b)),new Set([].concat(at(QC(f)),at(QC(w)))).forEach(Te=>{se[Te]=function(){for(var xe,ge,Ce,ye,be,Ee=arguments.length,Me=new Array(Ee),X=0;X<Ee;X++)Me[X]=arguments[X];(Ce=ue[Te])===null||Ce===void 0||(xe=Ce).call.apply(xe,[ue].concat(Me)),(be=(ye=b.props)[Te])===null||be===void 0||(ge=be).call.apply(ge,[ye].concat(Me))}});const _e=[se["aria-required"],se["aria-invalid"],se["aria-describedby"]];fe=m.createElement(Cmt,{control:ue,update:b,childProps:_e},Ko(b,se))}else S&&(a||i)&&!x?fe=b(Z):fe=b}return re(fe,oe,ae)}))}const ROe=wmt;ROe.useStatus=xOe;var xmt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Tmt=e=>{var{prefixCls:t,children:n}=e,r=xmt(e,["prefixCls","children"]);const{getPrefixCls:i}=m.useContext(nn),o=i("form",t),a=m.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return m.createElement($we,Object.assign({},r),(s,l,c)=>m.createElement(HY.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function Rmt(){const{form:e}=m.useContext(Sp);return e}const hr=rmt;hr.Item=ROe;hr.List=Tmt;hr.ErrorList=SOe;hr.useForm=wOe;hr.useFormInstance=Rmt;hr.useWatch=Uwe;hr.Provider=Hwe;hr.create=()=>{};function OOe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Omt(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 ob(e,t,n,r){var i=P1.unstable_batchedUpdates?function(a){P1.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var Fx=m.createContext(null),Imt=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,f=t.transform,p=t.count,h=t.scale,g=t.minScale,v=t.maxScale,y=t.closeIcon,_=t.onActive,b=t.onClose,S=t.onZoomIn,C=t.onZoomOut,E=t.onRotateRight,w=t.onRotateLeft,x=t.onFlipX,T=t.onFlipY,R=t.onReset,N=t.toolbarRender,I=t.zIndex,P=t.image,D=m.useContext(Fx),F=s.rotateLeft,L=s.rotateRight,B=s.zoomIn,U=s.zoomOut,G=s.close,V=s.left,W=s.right,$=s.flipX,H=s.flipY,K="".concat(o,"-operations-operation");m.useEffect(function(){var pe=function(Te){Te.keyCode===gt.ESC&&b()};return n&&window.addEventListener("keydown",pe),function(){window.removeEventListener("keydown",pe)}},[n]);var re=function(_e,Te){_e.preventDefault(),_e.stopPropagation(),_(Te)},Q=m.useCallback(function(pe){var _e=pe.type,Te=pe.disabled,xe=pe.onClick,ge=pe.icon;return m.createElement("div",{key:_e,className:Re(K,"".concat(o,"-operations-operation-").concat(_e),ie({},"".concat(o,"-operations-operation-disabled"),!!Te)),onClick:xe},ge)},[K,o]),A=c?Q({icon:V,onClick:function(_e){return re(_e,-1)},type:"prev",disabled:d===0}):void 0,k=c?Q({icon:W,onClick:function(_e){return re(_e,1)},type:"next",disabled:d===p-1}):void 0,Z=Q({icon:H,onClick:T,type:"flipY"}),ne=Q({icon:$,onClick:x,type:"flipX"}),oe=Q({icon:F,onClick:w,type:"rotateLeft"}),ae=Q({icon:L,onClick:E,type:"rotateRight"}),ue=Q({icon:U,onClick:C,type:"zoomOut",disabled:h<=g}),fe=Q({icon:B,onClick:S,type:"zoomIn",disabled:h===v}),se=m.createElement("div",{className:"".concat(o,"-operations")},Z,ne,oe,ae,ue,fe);return m.createElement(qo,{visible:n,motionName:r},function(pe){var _e=pe.className,Te=pe.style;return m.createElement(Tx,{open:!0,getContainer:i??document.body},m.createElement("div",{className:Re("".concat(o,"-operations-wrapper"),_e,a),style:q(q({},Te),{},{zIndex:I})},y===null?null:m.createElement("button",{className:"".concat(o,"-close"),onClick:b},y||G),c&&m.createElement(m.Fragment,null,m.createElement("div",{className:Re("".concat(o,"-switch-left"),ie({},"".concat(o,"-switch-left-disabled"),d===0)),onClick:function(ge){return re(ge,-1)}},V),m.createElement("div",{className:Re("".concat(o,"-switch-right"),ie({},"".concat(o,"-switch-right-disabled"),d===p-1)),onClick:function(ge){return re(ge,1)}},W)),m.createElement("div",{className:"".concat(o,"-footer")},u&&m.createElement("div",{className:"".concat(o,"-progress")},l?l(d+1,p):"".concat(d+1," / ").concat(p)),N?N(se,q(q({icons:{prevIcon:A,nextIcon:k,flipYIcon:Z,flipXIcon:ne,rotateLeftIcon:oe,rotateRightIcon:ae,zoomOutIcon:ue,zoomInIcon:fe},actions:{onActive:_,onFlipY:T,onFlipX:x,onRotateLeft:w,onRotateRight:E,onZoomOut:C,onZoomIn:S,onReset:R,onClose:b},transform:f},D?{current:d,total:p}:{}),{},{image:P})):se)))})},dO={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Nmt(e,t,n,r){var i=m.useRef(null),o=m.useRef([]),a=m.useState(dO),s=Oe(a,2),l=s[0],c=s[1],u=function(h){c(dO),qv(dO,l)||r==null||r({transform:dO,action:h})},d=function(h,g){i.current===null&&(o.current=[],i.current=rr(function(){c(function(v){var y=v;return o.current.forEach(function(_){y=q(q({},y),_)}),i.current=null,r==null||r({transform:y,action:g}),y})})),o.current.push(q(q({},l),h))},f=function(h,g,v,y,_){var b=e.current,S=b.width,C=b.height,E=b.offsetWidth,w=b.offsetHeight,x=b.offsetLeft,T=b.offsetTop,R=h,N=l.scale*h;N>n?(N=n,R=n/l.scale):N<t&&(N=_?N:t,R=N/l.scale);var I=v??innerWidth/2,P=y??innerHeight/2,D=R-1,F=D*S*.5,L=D*C*.5,B=D*(I-l.x-x),U=D*(P-l.y-T),G=l.x-(B-F),V=l.y-(U-L);if(h<1&&N===1){var W=E*N,$=w*N,H=OOe(),K=H.width,re=H.height;W<=K&&$<=re&&(G=0,V=0)}d({x:G,y:V,scale:N},g)};return{transform:l,resetTransform:u,updateTransform:d,dispatchZoomChange:f}}function Moe(e,t,n,r){var i=t+n,o=(n-r)/2;if(n>r){if(t>0)return ie({},e,o);if(t<0&&i<r)return ie({},e,-o)}else if(t<0||i>r)return ie({},e,t<0?o:-o);return{}}function IOe(e,t,n,r){var i=OOe(),o=i.width,a=i.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=q(q({},Moe("x",n,e,o)),Moe("y",r,t,a))),s}var ab=1,Mmt=1;function Amt(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=m.useState(!1),f=Oe(d,2),p=f[0],h=f[1],g=m.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),g.current={diffX:C.pageX-c,diffY:C.pageY-u,transformX:c,transformY:u},h(!0))},y=function(C){n&&p&&o({x:C.pageX-g.current.diffX,y:C.pageY-g.current.diffY},"move")},_=function(){if(n&&p){h(!1);var C=g.current,E=C.transformX,w=C.transformY,x=c!==E&&u!==w;if(!x)return;var T=e.current.offsetWidth*l,R=e.current.offsetHeight*l,N=e.current.getBoundingClientRect(),I=N.left,P=N.top,D=s%180!==0,F=IOe(D?R:T,D?T:R,I,P);F&&o(q({},F),"dragRebound")}},b=function(C){if(!(!n||C.deltaY==0)){var E=Math.abs(C.deltaY/100),w=Math.min(E,Mmt),x=ab+w*r;C.deltaY>0&&(x=ab/x),a(x,"wheel",C.clientX,C.clientY)}};return m.useEffect(function(){var S,C,E,w;if(t){E=ob(window,"mouseup",_,!1),w=ob(window,"mousemove",y,!1);try{window.top!==window.self&&(S=ob(window.top,"mouseup",_,!1),C=ob(window.top,"mousemove",y,!1))}catch{}}return function(){var x,T,R,N;(x=E)===null||x===void 0||x.remove(),(T=w)===null||T===void 0||T.remove(),(R=S)===null||R===void 0||R.remove(),(N=C)===null||N===void 0||N.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:v,onMouseMove:y,onMouseUp:_,onWheel:b}}function Pmt(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function NOe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=m.useState(n?"loading":"normal"),o=Oe(i,2),a=o[0],s=o[1],l=m.useRef(!1),c=a==="error";m.useEffect(function(){var p=!0;return Pmt(t).then(function(h){!h&&p&&s("error")}),function(){p=!1}},[t]),m.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},d=function(h){l.current=!1,a==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,u())},f=c&&r?{src:r}:{onLoad:u,src:t};return[d,f,a]}function RA(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Dmt(e,t,n,r){var i=RA(e,n),o=RA(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function kmt(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=m.useState(!1),f=Oe(d,2),p=f[0],h=f[1],g=m.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(C){g.current=q(q({},g.current),C)},y=function(C){if(t){C.stopPropagation(),h(!0);var E=C.touches,w=E===void 0?[]:E;w.length>1?v({point1:{x:w[0].clientX,y:w[0].clientY},point2:{x:w[1].clientX,y:w[1].clientY},eventType:"touchZoom"}):v({point1:{x:w[0].clientX-c,y:w[0].clientY-u},eventType:"move"})}},_=function(C){var E=C.touches,w=E===void 0?[]:E,x=g.current,T=x.point1,R=x.point2,N=x.eventType;if(w.length>1&&N==="touchZoom"){var I={x:w[0].clientX,y:w[0].clientY},P={x:w[1].clientX,y:w[1].clientY},D=Dmt(T,R,I,P),F=Oe(D,2),L=F[0],B=F[1],U=RA(I,P)/RA(T,R);a(U,"touchZoom",L,B,!0),v({point1:I,point2:P,eventType:"touchZoom"})}else N==="move"&&(o({x:w[0].clientX-T.x,y:w[0].clientY-T.y},"move"),v({eventType:"move"}))},b=function(){if(n){if(p&&h(!1),v({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*l,E=e.current.offsetHeight*l,w=e.current.getBoundingClientRect(),x=w.left,T=w.top,R=s%180!==0,N=IOe(R?E:C,R?C:E,x,T);N&&o(q({},N),"dragRebound")}};return m.useEffect(function(){var S;return n&&t&&(S=ob(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=S)===null||C===void 0||C.remove()}},[n,t]),{isTouching:p,onTouchStart:y,onTouchMove:_,onTouchEnd:b}}var Lmt=["fallback","src","imgRef"],$mt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Fmt=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=It(t,Lmt),a=NOe({src:r,fallback:n}),s=Oe(a,2),l=s[0],c=s[1];return de.createElement("img",Qe({ref:function(d){i.current=d,l(d)}},o,c))},MOe=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,p=t.rootClassName,h=t.closeIcon,g=t.getContainer,v=t.current,y=v===void 0?0:v,_=t.count,b=_===void 0?1:_,S=t.countRender,C=t.scaleStep,E=C===void 0?.5:C,w=t.minScale,x=w===void 0?1:w,T=t.maxScale,R=T===void 0?50:T,N=t.transitionName,I=N===void 0?"zoom":N,P=t.maskTransitionName,D=P===void 0?"fade":P,F=t.imageRender,L=t.imgCommonProps,B=t.toolbarRender,U=t.onTransform,G=t.onChange,V=It(t,$mt),W=m.useRef(),$=m.useContext(Fx),H=$&&b>1,K=$&&b>=1,re=m.useState(!0),Q=Oe(re,2),A=Q[0],k=Q[1],Z=Nmt(W,x,R,U),ne=Z.transform,oe=Z.resetTransform,ae=Z.updateTransform,ue=Z.dispatchZoomChange,fe=Amt(W,l,u,E,ne,ae,ue),se=fe.isMoving,pe=fe.onMouseDown,_e=fe.onWheel,Te=kmt(W,l,u,x,ne,ae,ue),xe=Te.isTouching,ge=Te.onTouchStart,Ce=Te.onTouchMove,ye=Te.onTouchEnd,be=ne.rotate,Ee=ne.scale,Me=Re(ie({},"".concat(n,"-moving"),se));m.useEffect(function(){A||k(!0)},[A]);var X=function(){oe("close")},Y=function(){ue(ab+E,"zoomIn")},J=function(){ue(ab/(ab+E),"zoomOut")},he=function(){ae({rotate:be+90},"rotateRight")},ve=function(){ae({rotate:be-90},"rotateLeft")},ce=function(){ae({flipX:!ne.flipX},"flipX")},$e=function(){ae({flipY:!ne.flipY},"flipY")},Be=function(){oe("reset")},me=function(We){var Lt=y+We;!Number.isInteger(Lt)||Lt<0||Lt>b-1||(k(!1),oe(We<0?"prev":"next"),G==null||G(Lt,y))},Fe=function(We){!u||!H||(We.keyCode===gt.LEFT?me(-1):We.keyCode===gt.RIGHT&&me(1))},Xe=function(We){u&&(Ee!==1?ae({x:0,y:0,scale:1},"doubleClick"):ue(ab+E,"doubleClick",We.clientX,We.clientY))};m.useEffect(function(){var Ge=ob(window,"keydown",Fe,!1);return function(){Ge.remove()}},[u,H,y]);var ze=de.createElement(Fmt,Qe({},L,{width:t.width,height:t.height,imgRef:W,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ne.x,"px, ").concat(ne.y,"px, 0) scale3d(").concat(ne.flipX?"-":"").concat(Ee,", ").concat(ne.flipY?"-":"").concat(Ee,", 1) rotate(").concat(be,"deg)"),transitionDuration:(!A||xe)&&"0s"},fallback:a,src:r,onWheel:_e,onMouseDown:pe,onDoubleClick:Xe,onTouchStart:ge,onTouchMove:Ce,onTouchEnd:ye,onTouchCancel:ye})),qe=q({url:r,alt:i},o);return de.createElement(de.Fragment,null,de.createElement(FY,Qe({transitionName:I,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Me},rootClassName:p,getContainer:g},V,{afterClose:X}),de.createElement("div",{className:"".concat(n,"-img-wrapper")},F?F(ze,q({transform:ne,image:qe},$?{current:y}:{})):ze)),de.createElement(Imt,{visible:u,transform:ne,maskTransitionName:D,closeIcon:h,getContainer:g,prefixCls:n,rootClassName:p,icons:f,countRender:S,showSwitch:H,showProgress:K,current:y,count:b,scale:Ee,minScale:x,maxScale:R,toolbarRender:B,onActive:me,onZoomIn:Y,onZoomOut:J,onRotateRight:he,onRotateLeft:ve,onFlipX:ce,onFlipY:$e,onClose:c,onReset:Be,zIndex:V.zIndex!==void 0?V.zIndex+1:void 0,image:qe}))},N9=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Bmt(e){var t=m.useState({}),n=Oe(t,2),r=n[0],i=n[1],o=m.useCallback(function(s,l){return i(function(c){return q(q({},c),{},ie({},s,l))}),function(){i(function(c){var u=q({},c);return delete u[s],u})}},[]),a=m.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(at(N9)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,d=c.data;return u&&s.push({data:d,id:l}),s},[])},[e,r]);return[a,o,!!e]}var Umt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],jmt=["src"],Hmt=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,o=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,d=qt(c)==="object"?c:{},f=d.visible,p=d.onVisibleChange,h=d.getContainer,g=d.current,v=d.movable,y=d.minScale,_=d.maxScale,b=d.countRender,S=d.closeIcon,C=d.onChange,E=d.onTransform,w=d.toolbarRender,x=d.imageRender,T=It(d,Umt),R=Bmt(l),N=Oe(R,3),I=N[0],P=N[1],D=N[2],F=Fn(0,{value:g}),L=Oe(F,2),B=L[0],U=L[1],G=m.useState(!1),V=Oe(G,2),W=V[0],$=V[1],H=((n=I[B])===null||n===void 0?void 0:n.data)||{},K=H.src,re=It(H,jmt),Q=Fn(!!f,{value:f,onChange:function(xe,ge){p==null||p(xe,ge,B)}}),A=Oe(Q,2),k=A[0],Z=A[1],ne=m.useState(null),oe=Oe(ne,2),ae=oe[0],ue=oe[1],fe=m.useCallback(function(Te,xe,ge,Ce){var ye=D?I.findIndex(function(be){return be.data.src===xe}):I.findIndex(function(be){return be.id===Te});U(ye<0?0:ye),Z(!0),ue({x:ge,y:Ce}),$(!0)},[I,D]);m.useEffect(function(){k?W||U(0):$(!1)},[k]);var se=function(xe,ge){U(xe),C==null||C(xe,ge)},pe=function(){Z(!1),ue(null)},_e=m.useMemo(function(){return{register:P,onPreview:fe}},[P,fe]);return m.createElement(Fx.Provider,{value:_e},o,m.createElement(MOe,Qe({"aria-hidden":!k,movable:v,visible:k,prefixCls:i,closeIcon:S,onClose:pe,mousePosition:ae,imgCommonProps:re,src:K,fallback:u,icons:s,minScale:y,maxScale:_,getContainer:h,current:B,count:I.length,countRender:b,onTransform:E,toolbarRender:w,imageRender:x,onChange:se},T)))},Aoe=0;function zmt(e,t){var n=m.useState(function(){return Aoe+=1,String(Aoe)}),r=Oe(n,1),i=r[0],o=m.useContext(Fx),a={data:t,canPreview:e};return m.useEffect(function(){if(o)return o.register(i,a)},[]),m.useEffect(function(){o&&o.register(i,a)},[e,t]),i}var Vmt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Gmt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Fq=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,o=t.prefixCls,a=o===void 0?"rc-image":o,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,d=t.width,f=t.height,p=t.style,h=t.preview,g=h===void 0?!0:h,v=t.className,y=t.onClick,_=t.onError,b=t.wrapperClassName,S=t.wrapperStyle,C=t.rootClassName,E=It(t,Vmt),w=c&&c!==!0,x=qt(g)==="object"?g:{},T=x.src,R=x.visible,N=R===void 0?void 0:R,I=x.onVisibleChange,P=I===void 0?i:I,D=x.getContainer,F=D===void 0?void 0:D,L=x.mask,B=x.maskClassName,U=x.movable,G=x.icons,V=x.scaleStep,W=x.minScale,$=x.maxScale,H=x.imageRender,K=x.toolbarRender,re=It(x,Gmt),Q=T??n,A=Fn(!!N,{value:N,onChange:P}),k=Oe(A,2),Z=k[0],ne=k[1],oe=NOe({src:n,isCustomPlaceholder:w,fallback:u}),ae=Oe(oe,3),ue=ae[0],fe=ae[1],se=ae[2],pe=m.useState(null),_e=Oe(pe,2),Te=_e[0],xe=_e[1],ge=m.useContext(Fx),Ce=!!g,ye=function(){ne(!1),xe(null)},be=Re(a,b,C,ie({},"".concat(a,"-error"),se==="error")),Ee=m.useMemo(function(){var J={};return N9.forEach(function(he){t[he]!==void 0&&(J[he]=t[he])}),J},N9.map(function(J){return t[J]})),Me=m.useMemo(function(){return q(q({},Ee),{},{src:Q})},[Q,Ee]),X=zmt(Ce,Me),Y=function(he){var ve=Omt(he.target),ce=ve.left,$e=ve.top;ge?ge.onPreview(X,Q,ce,$e):(xe({x:ce,y:$e}),ne(!0)),y==null||y(he)};return m.createElement(m.Fragment,null,m.createElement("div",Qe({},E,{className:be,onClick:Ce?Y:y,style:q({width:d,height:f},S)}),m.createElement("img",Qe({},Ee,{className:Re("".concat(a,"-img"),ie({},"".concat(a,"-img-placeholder"),c===!0),v),style:q({height:f},p),ref:ue},fe,{width:d,height:f,onError:_})),se==="loading"&&m.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),L&&Ce&&m.createElement("div",{className:Re("".concat(a,"-mask"),B),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},L)),!ge&&Ce&&m.createElement(MOe,Qe({"aria-hidden":!Z,visible:Z,prefixCls:l,onClose:ye,mousePosition:Te,src:Q,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:F,icons:G,movable:U,scaleStep:V,minScale:W,maxScale:$,rootClassName:C,imageRender:H,imgCommonProps:Ee,toolbarRender:K},re)))};Fq.PreviewGroup=Hmt;var Wmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Ymt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Wmt}))},qmt=m.forwardRef(Ymt),Kmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Qmt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Kmt}))},Xmt=m.forwardRef(Qmt),Zmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Jmt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Zmt}))},Poe=m.forwardRef(Jmt),eht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},tht=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:eht}))},nht=m.forwardRef(tht),rht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},iht=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:rht}))},oht=m.forwardRef(iht);const M9=e=>({position:e||"absolute",inset:0}),aht=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new cr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},nc),{padding:`0 ${De(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},sht=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new cr(n).setA(.1),p=f.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${De(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},lht=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new cr(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},cht=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},M9()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},M9()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[sht(e),lht(e)]}]},uht=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},aht(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},M9())}}},dht=e=>{const{previewCls:t}=e;return{[`${t}-root`]:oS(e,"zoom"),"&":AY(e,!0)}},fht=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new cr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new cr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new cr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),AOe=dr("Image",e=>{const t=`${e.componentCls}-preview`,n=qn(e,{previewCls:t,modalMaskBg:new cr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[uht(n),cht(n),Kwe(qn(n,{componentCls:t})),dht(n)]},fht);var pht=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const POe={rotateLeft:m.createElement(qmt,null),rotateRight:m.createElement(Xmt,null),zoomIn:m.createElement(nht,null),zoomOut:m.createElement(oht,null),close:m.createElement(ou,null),left:m.createElement(aw,null),right:m.createElement(Ch,null),flipX:m.createElement(Poe,null),flipY:m.createElement(Poe,{rotate:90})},mht=e=>{var{previewPrefixCls:t,preview:n}=e,r=pht(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=m.useContext(nn),o=i("image",t),a=`${o}-preview`,s=i(),l=oi(o),[c,u,d]=AOe(o,l),[f]=au("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=m.useMemo(()=>{var h;if(n===!1)return n;const g=typeof n=="object"?n:{},v=Re(u,d,l,(h=g.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},g),{transitionName:Pa(s,"zoom",g.transitionName),maskTransitionName:Pa(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:f})},[n]);return c(m.createElement(Fq.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:POe},r)))};var Doe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const DOe=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,s=Doe(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Kc,getPopupContainer:u,image:d}=m.useContext(nn),f=l("image",n),p=l(),h=c.Image||Kc.Image,g=oi(f),[v,y,_]=AOe(f,g),b=Re(o,y,_,g),S=Re(i,y,d==null?void 0:d.className),[C]=au("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=m.useMemo(()=>{var x;if(r===!1)return r;const T=typeof r=="object"?r:{},{getContainer:R,closeIcon:N,rootClassName:I}=T,P=Doe(T,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:m.createElement("div",{className:`${f}-mask-info`},m.createElement($x,null),h==null?void 0:h.preview),icons:POe},P),{rootClassName:Re(b,I),getContainer:R??u,transitionName:Pa(p,"zoom",T.transitionName),maskTransitionName:Pa(p,"fade",T.maskTransitionName),zIndex:C,closeIcon:N??((x=d==null?void 0:d.preview)===null||x===void 0?void 0:x.closeIcon)})},[r,h,(t=d==null?void 0:d.preview)===null||t===void 0?void 0:t.closeIcon]),w=Object.assign(Object.assign({},d==null?void 0:d.style),a);return v(m.createElement(Fq,Object.assign({prefixCls:f,preview:E,rootClassName:b,className:S,style:w},s)))};DOe.PreviewGroup=mht;function hht(e,t,n){return typeof n=="boolean"?n:e.length?!0:_a(t).some(i=>i.type===lTe)}var kOe=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ok(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>m.forwardRef((a,s)=>m.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const Bq=m.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=kOe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=m.useContext(nn),l=s("layout",n),[c,u,d]=sTe(l),f=r?`${l}-${r}`:l;return c(m.createElement(o,Object.assign({className:Re(n||f,i,u,d),ref:t},a)))}),ght=m.forwardRef((e,t)=>{const{direction:n}=m.useContext(nn),[r,i]=m.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=kOe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=ur(f,["suffixCls"]),{getPrefixCls:h,layout:g}=m.useContext(nn),v=h("layout",o),y=hht(r,l,c),[_,b,S]=sTe(v),C=Re(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,b,S),E=m.useMemo(()=>({siderHook:{addSider:w=>{i(x=>[].concat(at(x),[w]))},removeSider:w=>{i(x=>x.filter(T=>T!==w))}}}),[]);return _(m.createElement(iTe.Provider,{value:E},m.createElement(u,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},p),l)))}),vht=ok({tagName:"div",displayName:"Layout"})(ght),OA=ok({suffixCls:"header",tagName:"header",displayName:"Header"})(Bq),_ht=ok({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Bq),yht=ok({suffixCls:"content",tagName:"main",displayName:"Content"})(Bq),_i=vht;_i.Header=OA;_i.Footer=_ht;_i.Content=yht;_i.Sider=lTe;_i._InternalSiderContext=zD;var bht={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:"页码"};const IA=100,LOe=IA/5,$Oe=IA/2-LOe/2,vF=$Oe*2*Math.PI,koe=50,Loe=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return m.createElement("circle",{className:Re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:$Oe,cx:koe,cy:koe,strokeWidth:LOe,style:n})},Sht=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,s]=m.useState(!1);gr(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${vF/4}`,strokeDasharray:`${vF*l/100} ${vF*(100-l)/100}`};return m.createElement("span",{className:Re(i,`${r}-progress`,l<=0&&o)},m.createElement("svg",{viewBox:`0 0 ${IA} ${IA}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},m.createElement(Loe,{dotClassName:r,hasCircleCls:!0}),m.createElement(Loe,{dotClassName:r,style:c})))};function Eht(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return m.createElement(m.Fragment,null,m.createElement("span",{className:Re(i,n>0&&o)},m.createElement("span",{className:Re(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>m.createElement("i",{className:`${t}-dot-item`,key:a})))),m.createElement(Sht,{prefixCls:t,percent:n}))}function Cht(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&m.isValidElement(n)?Ko(n,{className:Re(n.props.className,i),percent:r}):m.createElement(Eht,{prefixCls:t,percent:r})}const wht=new ir("antSpinMove",{to:{opacity:1}}),xht=new ir("antRotate",{to:{transform:"rotate(405deg)"}}),Tht=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},wr(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:wht,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:xht,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"}})}},Rht=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Oht=dr("Spin",e=>{const t=qn(e,{spinDotDefault:e.colorTextDescription});return[Tht(t)]},Rht),Iht=200,$oe=[[30,.05],[70,.03],[96,.01]];function Nht(e,t){const[n,r]=m.useState(0),i=m.useRef(null),o=t==="auto";return m.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<$oe.length;l+=1){const[c,u]=$oe[l];if(a<=c)return a+s*u}return a})},Iht)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var Mht=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let FOe;function Aht(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Bp=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1,indicator:p,percent:h}=e,g=Mht(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,spin:_}=m.useContext(nn),b=v("spin",n),[S,C,E]=Oht(b),[w,x]=m.useState(()=>r&&!Aht(r,i)),T=Nht(w,h);m.useEffect(()=>{if(r){const L=Zct(i,()=>{x(!0)});return L(),()=>{var B;(B=L==null?void 0:L.cancel)===null||B===void 0||B.call(L)}}x(!1)},[i,r]);const R=m.useMemo(()=>typeof d<"u"&&!f,[d,f]),N=Re(b,_==null?void 0:_.className,{[`${b}-sm`]:s==="small",[`${b}-lg`]:s==="large",[`${b}-spinning`]:w,[`${b}-show-text`]:!!l,[`${b}-rtl`]:y==="rtl"},o,!f&&a,C,E),I=Re(`${b}-container`,{[`${b}-blur`]:w}),P=(t=p??(_==null?void 0:_.indicator))!==null&&t!==void 0?t:FOe,D=Object.assign(Object.assign({},_==null?void 0:_.style),u),F=m.createElement("div",Object.assign({},g,{style:D,className:N,"aria-live":"polite","aria-busy":w}),m.createElement(Cht,{prefixCls:b,indicator:P,percent:T}),l&&(R||f)?m.createElement("div",{className:`${b}-text`},l):null);return S(R?m.createElement("div",Object.assign({},g,{className:Re(`${b}-nested-loading`,c,C,E)}),w&&m.createElement("div",{key:"loading"},F),m.createElement("div",{className:I,key:"container"},d)):f?m.createElement("div",{className:Re(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:w},a,C,E)},F):F)};Bp.setDefaultIndicator=e=>{FOe=e};let Ic=null,ov=e=>e(),lw=[],cw={};function Foe(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=cw,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const Pht=de.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=m.useContext(nn),o=cw.prefixCls||i("message"),a=m.useContext(f9),[s,l]=uwe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return de.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),Dht=de.forwardRef((e,t)=>{const[n,r]=de.useState(Foe),i=()=>{r(Foe)};de.useEffect(i,[]);const o=Y1e(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=de.createElement(Pht,{ref:t,sync:i,messageConfig:n});return de.createElement(Pn,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)});function ak(){if(!Ic){const e=document.createDocumentFragment(),t={fragment:e};Ic=t,ov(()=>{OY()(de.createElement(Dht,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,ak())})}}),e)});return}Ic.instance&&(lw.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ov(()=>{const r=Ic.instance.open(Object.assign(Object.assign({},cw),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ov(()=>{Ic==null||Ic.instance.destroy(e.key)});break;default:ov(()=>{var r;const i=(r=Ic.instance)[t].apply(r,at(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),lw=[])}function kht(e){cw=Object.assign(Object.assign({},cw),e),ov(()=>{var t;(t=Ic==null?void 0:Ic.sync)===null||t===void 0||t.call(Ic)})}function Lht(e){const t=RY(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return lw.push(i),()=>{r?ov(()=>{r()}):i.skipped=!0}});return ak(),t}function $ht(e,t){const n=RY(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return lw.push(o),()=>{i?ov(()=>{i()}):o.skipped=!0}});return ak(),n}const Fht=e=>{lw.push({type:"destroy",key:e}),ak()},Bht=["success","info","warning","error","loading"],Uht={open:Lht,destroy:Fht,config:kht,useMessage:dwe,_InternalPanelDoNotUseOrYouWillBeFired:aZe},XC=Uht;Bht.forEach(e=>{XC[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $ht(e,n)}});var jht=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Hht=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:s,footer:l}=e,c=jht(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=m.useContext(nn),d=u(),f=t||u("modal"),p=oi(d),[h,g,v]=Zwe(f,p),y=`${f}-confirm`;let _={};return o?_={closable:i??!1,title:"",footer:"",children:m.createElement(exe,Object.assign({},e,{prefixCls:f,confirmPrefixCls:y,rootPrefixCls:d,content:s}))}:_={closable:i??!0,title:a,footer:l!==null&&m.createElement(Ywe,Object.assign({},e)),children:s},h(m.createElement(Awe,Object.assign({prefixCls:f,className:Re(g,`${f}-pure-panel`,o&&y,o&&`${y}-${o}`,n,v,p)},c,{closeIcon:Wwe(f,r),closable:i},_)))},zht=fxe(Hht);function BOe(e){return Ox(ixe(e))}const _o=Jwe;_o.useModal=cxe;_o.info=function(t){return Ox(oxe(t))};_o.success=function(t){return Ox(axe(t))};_o.error=function(t){return Ox(sxe(t))};_o.warning=BOe;_o.warn=BOe;_o.confirm=function(t){return Ox(lxe(t))};_o.destroyAll=function(){for(;rv.length;){const t=rv.pop();t&&t()}};_o.config=Snt;_o._InternalPanelDoNotUseOrYouWillBeFired=zht;const Vht=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:o,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},Ght=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},UOe=dr("Popconfirm",e=>Vht(e),Ght,{resetStyle:!1});var Wht=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const jOe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:a,okText:s,okType:l="primary",icon:c=m.createElement($h,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:h}=e,{getPrefixCls:g}=m.useContext(nn),[v]=Gs("Popconfirm",Kc.Popconfirm),y=u0(i),_=u0(o);return m.createElement("div",{className:`${t}-inner-content`,onClick:h},m.createElement("div",{className:`${t}-message`},c&&m.createElement("span",{className:`${t}-message-icon`},c),m.createElement("div",{className:`${t}-message-text`},y&&m.createElement("div",{className:`${t}-title`},y),_&&m.createElement("div",{className:`${t}-description`},_))),m.createElement("div",{className:`${t}-buttons`},u&&m.createElement(On,Object.assign({onClick:p,size:"small"},r),a||(v==null?void 0:v.cancelText)),m.createElement($Y,{buttonProps:Object.assign(Object.assign({size:"small"},IY(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},Yht=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,o=Wht(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=m.useContext(nn),s=a("popconfirm",t),[l]=UOe(s);return l(m.createElement(zxe,{placement:n,className:Re(s,r),style:i,content:m.createElement(jOe,Object.assign({prefixCls:s},o))}))};var qht=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Kht=m.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:d="primary",icon:f=m.createElement($h,null),children:p,overlayClassName:h,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:_,classNames:b}=e,S=qht(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,popconfirm:E}=m.useContext(nn),[w,x]=Fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=(U,G)=>{x(U,!0),v==null||v(U),g==null||g(U,G)},R=U=>{T(!1,U)},N=U=>{var G;return(G=e.onConfirm)===null||G===void 0?void 0:G.call(void 0,U)},I=U=>{var G;T(!1,U),(G=e.onCancel)===null||G===void 0||G.call(void 0,U)},P=(U,G)=>{const{disabled:V=!1}=e;V||T(U,G)},D=C("popconfirm",l),F=Re(D,h,(i=E==null?void 0:E.classNames)===null||i===void 0?void 0:i.root,b==null?void 0:b.root),L=Re((o=E==null?void 0:E.classNames)===null||o===void 0?void 0:o.body,b==null?void 0:b.body),[B]=UOe(D);return B(m.createElement(Xc,Object.assign({},ur(S,["title"]),{trigger:u,placement:c,onOpenChange:P,open:w,ref:t,classNames:{root:F,body:L},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=E==null?void 0:E.styles)===null||a===void 0?void 0:a.root),E==null?void 0:E.style),y),_==null?void 0:_.root),body:Object.assign(Object.assign({},(s=E==null?void 0:E.styles)===null||s===void 0?void 0:s.body),_==null?void 0:_.body)},content:m.createElement(jOe,Object.assign({okType:d,icon:f},e,{prefixCls:D,close:R,onConfirm:N,onCancel:I})),"data-popover-inject":!0}),p))}),HOe=Kht;HOe._InternalPanelDoNotUseOrYouWillBeFired=Yht;var Qht={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Xht=function(){var t=m.useRef([]),n=m.useRef(null);return m.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},Boe=0,Zht=tc();function Jht(){var e;return Zht?(e=Boe,Boe+=1):e="TEST_OR_SSR",e}const egt=function(e){var t=m.useState(),n=Oe(t,2),r=n[0],i=n[1];return m.useEffect(function(){i("rc_progress_".concat(Jht()))},[]),e||r};var Uoe=function(t){var n=t.bg,r=t.children;return m.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function joe(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var tgt=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=r&&qt(r)==="object",p=f?"#FFF":void 0,h=u/2,g=m.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return g;var v="".concat(i,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",_=joe(r,(360-d)/360),b=joe(r,1),S="conic-gradient(from ".concat(y,", ").concat(_.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(b.join(", "),")");return m.createElement(m.Fragment,null,m.createElement("mask",{id:v},g),m.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},m.createElement(Uoe,{bg:C},m.createElement(Uoe,{bg:S}))))}),_C=100,_F=function(t,n,r,i,o,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-i)/100*n;c==="round"&&i!==100&&(h+=u/2,h>=n&&(h=n-.01));var g=_C/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(o+f+p,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"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}},ngt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Hoe(e){var t=e??[];return Array.isArray(t)?t:[t]}var rgt=function(t){var n=q(q({},Qht),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,f=n.strokeLinecap,p=n.style,h=n.className,g=n.strokeColor,v=n.percent,y=It(n,ngt),_=_C/2,b=egt(r),S="".concat(b,"-gradient"),C=_-a/2,E=Math.PI*2*C,w=c>0?90+c/2:-90,x=E*((360-c)/360),T=qt(o)==="object"?o:{count:o,gap:2},R=T.count,N=T.gap,I=Hoe(v),P=Hoe(g),D=P.find(function(W){return W&&qt(W)==="object"}),F=D&&qt(D)==="object",L=F?"butt":f,B=_F(E,x,0,100,w,c,u,d,L,a),U=Xht(),G=function(){var $=0;return I.map(function(H,K){var re=P[K]||P[P.length-1],Q=_F(E,x,$,H,w,c,u,re,L,a);return $+=H,m.createElement(tgt,{key:K,color:re,ptg:H,radius:C,prefixCls:i,gradientId:S,style:Q,strokeLinecap:L,strokeWidth:a,gapDegree:c,ref:function(k){U[K]=k},size:_C})}).reverse()},V=function(){var $=Math.round(R*(I[0]/100)),H=100/R,K=0;return new Array(R).fill(null).map(function(re,Q){var A=Q<=$-1?P[0]:d,k=A&&qt(A)==="object"?"url(#".concat(S,")"):void 0,Z=_F(E,x,K,H,w,c,u,A,"butt",a,N);return K+=(x-Z.strokeDashoffset+N)*100/x,m.createElement("circle",{key:Q,className:"".concat(i,"-circle-path"),r:C,cx:_,cy:_,stroke:k,strokeWidth:a,opacity:1,style:Z,ref:function(oe){U[Q]=oe}})})};return m.createElement("svg",Qe({className:Re("".concat(i,"-circle"),h),viewBox:"0 0 ".concat(_C," ").concat(_C),style:p,id:r,role:"presentation"},y),!R&&m.createElement("circle",{className:"".concat(i,"-circle-trail"),r:C,cx:_,cy:_,stroke:d,strokeLinecap:L,strokeWidth:s||a,style:B}),R?V():G())};function vh(e){return!e||e<0?0:e>100?100:e}function NA(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 igt=e=>{let{percent:t,success:n,successPercent:r}=e;const i=vh(NA({success:n,successPercent:r}));return[i,vh(vh(t)-i)]},ogt=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||wv.green,n||null]},sk=(e,t,n)=>{var r,i,o,a;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[s,l]},agt=3,sgt=e=>agt/e*100,lgt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,p]=sk(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(sgt(f),6));const g={width:f,height:p,fontSize:f*.15+6},v=m.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),y=igt(e),_=i||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=ogt({success:c,strokeColor:e.strokeColor}),C=Re(`${t}-inner`,{[`${t}-circle-gradient`]:b}),E=m.createElement(rgt,{steps:d,percent:d?y[1]:y,strokeWidth:h,trailWidth:h,strokeColor:d?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:_}),w=f<=20,x=m.createElement("div",{className:C,style:g},E,!w&&l);return w?m.createElement(rc,{title:l},x):x},MA="--progress-line-stroke-color",zOe="--progress-percent",zoe=e=>{const t=e?"100%":"-100%";return new ir(`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}})},cgt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},wr(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(${MA})`]},height:"100%",width:`calc(1 / var(${zOe}) * 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 ${De(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:zoe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:zoe(!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}}})}},ugt=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"}}}},dgt=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}}}}}},fgt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},pgt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),mgt=dr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=qn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[cgt(n),ugt(n),dgt(n),fgt(n)]},pgt);var hgt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ggt=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.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:i}=n;return`${i} ${r}%`}).join(", ")},vgt=(e,t)=>{const{from:n=wv.blue,to:r=wv.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=hgt(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=ggt(o),l=`linear-gradient(${i}, ${s})`;return{background:l,[MA]:l}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[MA]:a}},_gt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:p}=u,h=a&&typeof a!="string"?vgt(a,n):{[MA]:a,background:a},g=s==="square"||s==="butt"?0:void 0,v=i??[-1,o||(i==="small"?6:8)],[y,_]=sk(v,"line",{strokeWidth:o}),b={backgroundColor:c||void 0,borderRadius:g},S=Object.assign(Object.assign({width:`${vh(r)}%`,height:_,borderRadius:g},h),{[zOe]:vh(r)/100}),C=NA(e),E={width:`${vh(C)}%`,height:_,borderRadius:g,backgroundColor:d==null?void 0:d.strokeColor},w={width:y<0?"100%":y},x=m.createElement("div",{className:`${t}-inner`,style:b},m.createElement("div",{className:Re(`${t}-bg`,`${t}-bg-${p}`),style:S},p==="inner"&&l),C!==void 0&&m.createElement("div",{className:`${t}-success-bg`,style:E})),T=p==="outer"&&f==="start",R=p==="outer"&&f==="end";return p==="outer"&&f==="center"?m.createElement("div",{className:`${t}-layout-bottom`},x,l):m.createElement("div",{className:`${t}-outer`,style:w},T&&l,x,R&&l)},ygt=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),d=t??[t==="small"?2:14,i],[f,p]=sk(d,"step",{steps:n,strokeWidth:i}),h=f/n,g=new Array(n);for(let v=0;v<n;v++){const y=Array.isArray(o)?o[v]:o;g[v]=m.createElement("div",{key:v,className:Re(`${s}-steps-item`,{[`${s}-steps-item-active`]:v<=c-1}),style:{backgroundColor:v<=c-1?y:a,width:h,height:p}})}return m.createElement("div",{className:`${s}-steps-outer`},g,l)};var bgt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Sgt=["normal","exception","active","success"],VOe=m.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:p,percentPosition:h={}}=e,g=bgt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=h,_=Array.isArray(a)?a[0]:a,b=typeof a=="string"||Array.isArray(a)?a:void 0,S=m.useMemo(()=>{if(_){const G=typeof _=="string"?_:Object.values(_)[0];return new cr(G).isLight()}return!1},[a]),C=m.useMemo(()=>{var G,V;const W=NA(e);return parseInt(W!==void 0?(G=W??0)===null||G===void 0?void 0:G.toString():(V=s??0)===null||V===void 0?void 0:V.toString(),10)},[s,e.success,e.successPercent]),E=m.useMemo(()=>!Sgt.includes(d)&&C>=100?"success":d||"normal",[d,C]),{getPrefixCls:w,direction:x,progress:T}=m.useContext(nn),R=w("progress",n),[N,I,P]=mgt(R),D=u==="line",F=D&&!o,L=m.useMemo(()=>{if(!c)return null;const G=NA(e);let V;const W=f||(H=>`${H}%`),$=D&&S&&y==="inner";return y==="inner"||f||E!=="exception"&&E!=="success"?V=W(vh(s),vh(G)):E==="exception"?V=D?m.createElement(mf,null):m.createElement(ou,null):E==="success"&&(V=D?m.createElement(I_,null):m.createElement(mh,null)),m.createElement("span",{className:Re(`${R}-text`,{[`${R}-text-bright`]:$,[`${R}-text-${v}`]:F,[`${R}-text-${y}`]:F}),title:typeof V=="string"?V:void 0},V)},[c,s,C,E,u,R,f]);let B;u==="line"?B=o?m.createElement(ygt,Object.assign({},e,{strokeColor:b,prefixCls:R,steps:typeof o=="object"?o.count:o}),L):m.createElement(_gt,Object.assign({},e,{strokeColor:_,prefixCls:R,direction:x,percentPosition:{align:v,type:y}}),L):(u==="circle"||u==="dashboard")&&(B=m.createElement(lgt,Object.assign({},e,{strokeColor:_,prefixCls:R,progressStatus:E}),L));const U=Re(R,`${R}-status-${E}`,{[`${R}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${R}-inline-circle`]:u==="circle"&&sk(l,"circle")[0]<=20,[`${R}-line`]:F,[`${R}-line-align-${v}`]:F,[`${R}-line-position-${y}`]:F,[`${R}-steps`]:o,[`${R}-show-info`]:c,[`${R}-${l}`]:typeof l=="string",[`${R}-rtl`]:x==="rtl"},T==null?void 0:T.className,r,i,I,P);return N(m.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T==null?void 0:T.style),p),className:U,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},ur(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),B))});function zd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=sD(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}var mS,Bx;function ol(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Of(e,t){return(e>>>t&1)!=0}function Al(e){if(!e)throw new Error("Assertion error")}var Vd=function(){function e(t,n){Yr(this,e),ie(this,"modeBits",void 0),ie(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return qr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();mS=Vd;ie(Vd,"NUMERIC",new mS(1,[10,12,14]));ie(Vd,"ALPHANUMERIC",new mS(2,[9,11,13]));ie(Vd,"BYTE",new mS(4,[8,16,16]));ie(Vd,"KANJI",new mS(8,[8,10,12]));ie(Vd,"ECI",new mS(7,[0,0,0]));var Uc=qr(function e(t,n){Yr(this,e),ie(this,"ordinal",void 0),ie(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});Bx=Uc;ie(Uc,"LOW",new Bx(0,1));ie(Uc,"MEDIUM",new Bx(1,0));ie(Uc,"QUARTILE",new Bx(2,3));ie(Uc,"HIGH",new Bx(3,2));var Ov=function(){function e(t,n,r){if(Yr(this,e),ie(this,"mode",void 0),ie(this,"numChars",void 0),ie(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return qr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=zd(n),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;ol(a,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(Vd.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<n.length;){var o=Math.min(n.length-i,3);ol(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(Vd.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],i;for(i=0;i+2<=n.length;i+=2){var o=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i))*45;o+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i+1)),ol(o,11,r)}return i<n.length&&ol(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(Vd.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)ol(n,8,r);else if(n<16384)ol(2,2,r),ol(n,14,r);else if(n<1e6)ol(6,3,r),ol(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Vd.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var i=0,o=zd(n),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l=s.mode.numCharCountBits(r);if(s.numChars>=1<<l)return 1/0;i+=4+l+s.bitData.length}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),i=[],o=0;o<r.length;o++)r.charAt(o)!="%"?i.push(r.charCodeAt(o)):(i.push(parseInt(r.substring(o+1,o+3),16)),o+=2);return i}}]),e}();ie(Ov,"NUMERIC_REGEX",/^[0-9]*$/);ie(Ov,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);ie(Ov,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Up=function(){function e(t,n,r,i){Yr(this,e),ie(this,"size",void 0),ie(this,"mask",void 0),ie(this,"modules",[]),ie(this,"isFunction",[]),ie(this,"version",void 0),ie(this,"errorCorrectionLevel",void 0);var o=i;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s<this.size;s++)a.push(!1);for(var l=0;l<this.size;l++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(r);if(this.drawCodewords(c),o==-1)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var f=this.getPenaltyScore();f<u&&(o=d,u=f),this.applyMask(d)}Al(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return qr(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),i=r.length,o=0;o<i;o++)for(var a=0;a<i;a++)o==0&&a==0||o==0&&a==i-1||o==i-1&&a==0||this.drawAlignmentPattern(r[o],r[a]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,i=r,o=0;o<10;o++)i=i<<1^(i>>>9)*1335;var a=(r<<10|i)^21522;Al(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,Of(a,s));this.setFunctionModule(8,7,Of(a,6)),this.setFunctionModule(8,8,Of(a,7)),this.setFunctionModule(7,8,Of(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,Of(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,Of(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,Of(a,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;Al(i>>>18==0);for(var o=0;o<18;o++){var a=Of(i,o),s=this.size-11+o%3,l=Math.floor(o/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var o=-4;o<=4;o++){var a=Math.max(Math.abs(o),Math.abs(i)),s=n+o,l=r+i;0<=s&&s<this.size&&0<=l&&l<this.size&&this.setFunctionModule(s,l,a!=2&&a!=4)}}},{key:"drawAlignmentPattern",value:function(n,r){for(var i=-2;i<=2;i++)for(var o=-2;o<=2;o++)this.setFunctionModule(n+o,r+i,Math.max(Math.abs(o),Math.abs(i))!=1)}},{key:"setFunctionModule",value:function(n,r,i){this.modules[r][n]=i,this.isFunction[r][n]=!0}},{key:"addEccAndInterleave",value:function(n){var r=this.version,i=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,i))throw new RangeError("Invalid argument");for(var o=e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r],a=e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r],s=Math.floor(e.getNumRawDataModules(r)/8),l=o-s%o,c=Math.floor(s/o),u=[],d=e.reedSolomonComputeDivisor(a),f=0,p=0;f<o;f++){var h=n.slice(p,p+c-a+(f<l?0:1));p+=h.length;var g=e.reedSolomonComputeRemainder(h,d);f<l&&h.push(0),u.push(h.concat(g))}for(var v=[],y=function(S){u.forEach(function(C,E){(S!=c-a||E>=l)&&v.push(C[S])})},_=0;_<u[0].length;_++)y(_);return Al(v.length==s),v}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,i=this.size-1;i>=1;i-=2){i==6&&(i=5);for(var o=0;o<this.size;o++)for(var a=0;a<2;a++){var s=i-a,l=(i+1&2)==0,c=l?this.size-1-o:o;!this.isFunction[c][s]&&r<n.length*8&&(this.modules[c][s]=Of(n[r>>>3],7-(r&7)),r++)}}Al(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var i=0;i<this.size;i++){var o=void 0;switch(n){case 0:o=(i+r)%2==0;break;case 1:o=r%2==0;break;case 2:o=i%3==0;break;case 3:o=(i+r)%3==0;break;case 4:o=(Math.floor(i/3)+Math.floor(r/2))%2==0;break;case 5:o=i*r%2+i*r%3==0;break;case 6:o=(i*r%2+i*r%3)%2==0;break;case 7:o=((i+r)%2+i*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][i]&&o&&(this.modules[r][i]=!this.modules[r][i])}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var i=!1,o=0,a=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[r][s]==i?(o++,o==5?n+=e.PENALTY_N1:o>5&&n++):(this.finderPenaltyAddHistory(o,a),i||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),i=this.modules[r][s],o=1);n+=this.finderPenaltyTerminateAndCount(i,o,a)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,u=0,d=[0,0,0,0,0,0,0],f=0;f<this.size;f++)this.modules[f][l]==c?(u++,u==5?n+=e.PENALTY_N1:u>5&&n++):(this.finderPenaltyAddHistory(u,d),c||(n+=this.finderPenaltyCountPatterns(d)*e.PENALTY_N3),c=this.modules[f][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,d)*e.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var g=this.modules[p][h];g==this.modules[p][h+1]&&g==this.modules[p+1][h]&&g==this.modules[p+1][h+1]&&(n+=e.PENALTY_N2)}var v=0,y=zd(this.modules),_;try{for(y.s();!(_=y.n()).done;){var b=_.value;v=b.reduce(function(E,w){return E+(w?1:0)},v)}}catch(E){y.e(E)}finally{y.f()}var S=this.size*this.size,C=Math.ceil(Math.abs(v*20-S*10)/S)-1;return Al(0<=C&&C<=9),n+=C*e.PENALTY_N4,Al(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,i=[6],o=this.size-7;i.length<n;o-=r)i.splice(1,0,o);return i}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];Al(r<=this.size*3);var i=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var o=r;return n&&(this.finderPenaltyAddHistory(o,i),o=0),o+=this.size,this.finderPenaltyAddHistory(o,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=Ov.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=Ov.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=o&&o<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,d=Ov.getTotalBits(n,l);if(d<=u){c=d;break}if(l>=o)throw new RangeError("Data too long")}for(var f=r,p=0,h=[Uc.MEDIUM,Uc.QUARTILE,Uc.HIGH];p<h.length;p++){var g=h[p];s&&c<=e.getNumDataCodewords(l,g)*8&&(f=g)}var v=[],y=zd(n),_;try{for(y.s();!(_=y.n()).done;){var b=_.value;ol(b.mode.modeBits,4,v),ol(b.numChars,b.mode.numCharCountBits(l),v);var S=zd(b.getData()),C;try{for(S.s();!(C=S.n()).done;){var E=C.value;v.push(E)}}catch(R){S.e(R)}finally{S.f()}}}catch(R){y.e(R)}finally{y.f()}Al(v.length==c);var w=e.getNumDataCodewords(l,f)*8;Al(v.length<=w),ol(0,Math.min(4,w-v.length),v),ol(0,(8-v.length%8)%8,v),Al(v.length%8==0);for(var x=236;v.length<w;x^=253)ol(x,8,v);for(var T=[];T.length*8<v.length;)T.push(0);return v.forEach(function(R,N){return T[N>>>3]|=R<<7-(N&7)}),new e(l,f,T,a)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return Al(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i<n-1;i++)r.push(0);r.push(1);for(var o=1,a=0;a<n;a++){for(var s=0;s<r.length;s++)r[s]=e.reedSolomonMultiply(r[s],o),s+1<r.length&&(r[s]^=r[s+1]);o=e.reedSolomonMultiply(o,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var i=r.map(function(){return 0}),o=zd(n),a;try{var s=function(){var c=a.value,u=c^i.shift();i.push(0),r.forEach(function(d,f){return i[f]^=e.reedSolomonMultiply(d,u)})};for(o.s();!(a=o.n()).done;)s()}catch(l){o.e(l)}finally{o.f()}return i}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,o=7;o>=0;o--)i=i<<1^(i>>>7)*285,i^=(r>>>o&1)*n;return Al(i>>>8==0),i}}]),e}();ie(Up,"MIN_VERSION",1);ie(Up,"MAX_VERSION",40);ie(Up,"PENALTY_N1",3);ie(Up,"PENALTY_N2",3);ie(Up,"PENALTY_N3",40);ie(Up,"PENALTY_N4",10);ie(Up,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ie(Up,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Egt={L:Uc.LOW,M:Uc.MEDIUM,Q:Uc.QUARTILE,H:Uc.HIGH},GOe=128,WOe="L",YOe="#FFFFFF",qOe="#000000",KOe=!1,QOe=1,Cgt=4,wgt=0,xgt=.1;function XOe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var o=null;r.forEach(function(a,s){if(!a&&o!==null){n.push("M".concat(o+t," ").concat(i+t,"h").concat(s-o,"v1H").concat(o+t,"z")),o=null;return}if(s===r.length-1){if(!a)return;o===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(o+t,",").concat(i+t," h").concat(s+1-o,"v1H").concat(o+t,"z"));return}a&&o===null&&(o=s)})}),n.join("")}function ZOe(e,t){return e.slice().map(function(n,r){return r<t.y||r>=t.y+t.h?n:n.map(function(i,o){return o<t.x||o>=t.x+t.w?i:!1})})}function Tgt(e,t,n,r){if(r==null)return null;var i=e.length+n*2,o=Math.floor(t*xgt),a=i/t,s=(r.width||o)*a,l=(r.height||o)*a,c=r.x==null?e.length/2-s/2:r.x*a,u=r.y==null?e.length/2-l/2:r.y*a,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(u),g=Math.ceil(s+c-p),v=Math.ceil(l+u-h);f={x:p,y:h,w:g,h:v}}var y=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:f,opacity:d,crossOrigin:y}}function Rgt(e,t){return t!=null?Math.floor(t):e?Cgt:wgt}var Ogt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function JOe(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,o=e.marginSize,a=e.imageSettings,s=e.size,l=m.useMemo(function(){var h=Ov.makeSegments(t);return Up.encodeSegments(h,Egt[n],r)},[t,n,r]),c=m.useMemo(function(){var h=l.getModules(),g=Rgt(i,o),v=h.length+g*2,y=Tgt(h,s,g,a);return{cells:h,margin:g,numCells:v,calculatedImageSettings:y}},[l,s,a,i,o]),u=c.cells,d=c.margin,f=c.numCells,p=c.calculatedImageSettings;return{qrcode:l,margin:d,cells:u,numCells:f,calculatedImageSettings:p}}var Igt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],eIe=de.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?GOe:i,a=t.level,s=a===void 0?WOe:a,l=t.bgColor,c=l===void 0?YOe:l,u=t.fgColor,d=u===void 0?qOe:u,f=t.includeMargin,p=f===void 0?KOe:f,h=t.minVersion,g=h===void 0?QOe:h,v=t.marginSize,y=t.style,_=t.imageSettings,b=It(t,Igt),S=_==null?void 0:_.src,C=m.useRef(null),E=m.useRef(null),w=m.useCallback(function(U){C.current=U,typeof n=="function"?n(U):n&&(n.current=U)},[n]),x=m.useState(!1),T=Oe(x,2),R=T[1],N=JOe({value:r,level:s,minVersion:g,includeMargin:p,marginSize:v,imageSettings:_,size:o}),I=N.margin,P=N.cells,D=N.numCells,F=N.calculatedImageSettings;m.useEffect(function(){if(C.current!=null){var U=C.current,G=U.getContext("2d");if(!G)return;var V=P,W=E.current,$=F!=null&&W!==null&&W.complete&&W.naturalHeight!==0&&W.naturalWidth!==0;$&&F.excavation!=null&&(V=ZOe(P,F.excavation));var H=window.devicePixelRatio||1;U.height=U.width=o*H;var K=o/D*H;G.scale(K,K),G.fillStyle=c,G.fillRect(0,0,D,D),G.fillStyle=d,Ogt?G.fill(new Path2D(XOe(V,I))):P.forEach(function(re,Q){re.forEach(function(A,k){A&&G.fillRect(k+I,Q+I,1,1)})}),F&&(G.globalAlpha=F.opacity),$&&G.drawImage(W,F.x+I,F.y+I,F.w,F.h)}}),m.useEffect(function(){R(!1)},[S]);var L=q({height:o,width:o},y),B=null;return S!=null&&(B=de.createElement("img",{src:S,key:S,style:{display:"none"},onLoad:function(){R(!0)},ref:E,crossOrigin:F==null?void 0:F.crossOrigin})),de.createElement(de.Fragment,null,de.createElement("canvas",Qe({style:L,height:o,width:o,ref:w,role:"img"},b)),B)});eIe.displayName="QRCodeCanvas";var Ngt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],tIe=de.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?GOe:i,a=t.level,s=a===void 0?WOe:a,l=t.bgColor,c=l===void 0?YOe:l,u=t.fgColor,d=u===void 0?qOe:u,f=t.includeMargin,p=f===void 0?KOe:f,h=t.minVersion,g=h===void 0?QOe:h,v=t.title,y=t.marginSize,_=t.imageSettings,b=It(t,Ngt),S=JOe({value:r,level:s,minVersion:g,includeMargin:p,marginSize:y,imageSettings:_,size:o}),C=S.margin,E=S.cells,w=S.numCells,x=S.calculatedImageSettings,T=E,R=null;_!=null&&x!=null&&(x.excavation!=null&&(T=ZOe(E,x.excavation)),R=de.createElement("image",{href:_.src,height:x.h,width:x.w,x:x.x+C,y:x.y+C,preserveAspectRatio:"none",opacity:x.opacity,crossOrigin:x.crossOrigin}));var N=XOe(T,C);return de.createElement("svg",Qe({height:o,width:o,viewBox:"0 0 ".concat(w," ").concat(w),ref:n,role:"img"},b),!!v&&de.createElement("title",null,v),de.createElement("path",{fill:c,d:"M0,0 h".concat(w,"v").concat(w,"H0z"),shapeRendering:"crispEdges"}),de.createElement("path",{fill:d,d:N,shapeRendering:"crispEdges"}),R)});tIe.displayName="QRCodeSVG";var Mgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Agt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Mgt}))},Pgt=m.forwardRef(Agt),Dgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},kgt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Dgt}))},nIe=m.forwardRef(kgt),Lgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},$gt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Lgt}))},Fgt=m.forwardRef($gt),Bgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Ugt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Bgt}))},rIe=m.forwardRef(Ugt),jgt={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"},Hgt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:jgt}))},zgt=m.forwardRef(Hgt),Vgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.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:"check-square",theme:"outlined"},Ggt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Vgt}))},A9=m.forwardRef(Ggt),Wgt={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"},Ygt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Wgt}))},qgt=m.forwardRef(Ygt),Kgt={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},Qgt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Kgt}))},Xgt=m.forwardRef(Qgt),Zgt={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"},Jgt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Zgt}))},k_=m.forwardRef(Jgt),evt={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"},tvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:evt}))},lk=m.forwardRef(tvt),nvt={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"},rvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:nvt}))},ivt=m.forwardRef(rvt),ovt={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"},avt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:ovt}))},svt=m.forwardRef(avt),lvt={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"},cvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:lvt}))},iIe=m.forwardRef(cvt),uvt={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"},dvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:uvt}))},fvt=m.forwardRef(dvt),pvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z"}}]},name:"highlight",theme:"outlined"},mvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:pvt}))},hvt=m.forwardRef(mvt),gvt={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"},vvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:gvt}))},_vt=m.forwardRef(vvt),yvt={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"},bvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:yvt}))},Svt=m.forwardRef(bvt),Evt={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"},Cvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Evt}))},L_=m.forwardRef(Cvt),wvt={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"},xvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:wvt}))},oIe=m.forwardRef(xvt),Tvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},Rvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Tvt}))},ZC=m.forwardRef(Rvt),Ovt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Ivt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Ovt}))},Nvt=m.forwardRef(Ivt),Mvt={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"},Avt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Mvt}))},Pvt=m.forwardRef(Avt),Dvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},kvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Dvt}))},Ux=m.forwardRef(kvt),Lvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z"}}]},name:"number",theme:"outlined"},$vt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Lvt}))},Fvt=m.forwardRef($vt),Bvt={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"},Uvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Bvt}))},jvt=m.forwardRef(Uvt),Hvt={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"},zvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Hvt}))},Vvt=m.forwardRef(zvt),Gvt={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"},Wvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Gvt}))},Uq=m.forwardRef(Wvt),Yvt={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"},qvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Yvt}))},Kvt=m.forwardRef(qvt),Qvt={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"},Xvt=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Qvt}))},Zvt=m.forwardRef(Xvt),Jvt={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 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},e_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:Jvt}))},t_t=m.forwardRef(e_t),n_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z"}}]},name:"radius-setting",theme:"outlined"},r_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:n_t}))},i_t=m.forwardRef(r_t),o_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},a_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:o_t}))},s_t=m.forwardRef(a_t),l_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},c_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:l_t}))},u_t=m.forwardRef(c_t),d_t={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"},f_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:d_t}))},aIe=m.forwardRef(f_t),p_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},m_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:p_t}))},sIe=m.forwardRef(m_t),h_t={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"},g_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:h_t}))},jq=m.forwardRef(g_t),v_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},__t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:v_t}))},y_t=m.forwardRef(__t),b_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},S_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:b_t}))},E_t=m.forwardRef(S_t),C_t={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"},w_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:C_t}))},$_=m.forwardRef(w_t),x_t={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"},T_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:x_t}))},lIe=m.forwardRef(T_t),R_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-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-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},O_t=function(t,n){return m.createElement(In,Qe({},t,{ref:n,icon:R_t}))},I_t=m.forwardRef(O_t),N_t=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],cIe=m.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=It(e,N_t),d=m.useRef(),f=fd(d,t);q7(!!(r||c),"Should have `component` prop or `children`."),X1e(d);var p=m.useContext(dD),h=p.prefixCls,g=h===void 0?"anticon":h,v=p.rootClassName,y=Re(v,g,ie({},"".concat(g,"-spin"),!!o&&!!r),n),_=Re(ie({},"".concat(g,"-spin"),!!o)),b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=q(q({},uXe),{},{className:_,style:b,viewBox:i});i||delete S.viewBox;var C=function(){return r?m.createElement(r,S,c):c?(q7(!!i||m.Children.count(c)===1&&m.isValidElement(c)&&m.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",Qe({},S,{viewBox:i}),c)):null},E=s;return E===void 0&&l&&(E=-1),m.createElement("span",Qe({role:"img"},u,{ref:f,tabIndex:E,onClick:l,className:y}),C())});cIe.displayName="AntdIcon";var M_t=["type","children"],uIe=new Set;function A_t(e){return!!(typeof e=="string"&&e.length&&!uIe.has(e))}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(A_t(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){AA(e,t+1)},r.onerror=function(){AA(e,t+1)}),uIe.add(n),document.body.appendChild(r)}}function dIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?AA(t.reverse()):AA([t]));var i=m.forwardRef(function(o,a){var s=o.type,l=o.children,c=It(o,M_t),u=null;return o.type&&(u=m.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),m.createElement(cIe,Qe({},r,c,{ref:a}),u)});return i.displayName="Iconfont",i}const P_t=de.createElement(Bp,null);function D_t(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:o}=e;const a=de.createElement(de.Fragment,null,de.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&de.createElement(On,{type:"link",icon:de.createElement(s_t,null),onClick:r},n==null?void 0:n.refresh)),s=de.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:P_t,scanned:s};return(i??(d=>l[d.status]))({status:o,locale:n,onRefresh:r})}const k_t=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${De(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},L_t=e=>({QRCodeMaskBackgroundColor:new cr(e.colorBgContainer).setA(.96).toRgbString()}),$_t=dr("QRCode",e=>{const t=qn(e,{QRCodeTextColor:e.colorText});return k_t(t)},L_t);var F_t=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fIe=e=>{var t,n,r,i;const[,o]=Ea(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:d=o.colorText,errorLevel:f="M",status:p="active",bordered:h=!0,onRefresh:g,style:v,className:y,rootClassName:_,prefixCls:b,bgColor:S="transparent",statusRender:C}=e,E=F_t(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:w}=m.useContext(nn),x=w("qrcode",b),[T,R,N]=$_t(x),I={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},P=ao(E,!0),D=ur(E,Object.keys(P)),F=Object.assign({value:a,size:c,level:f,bgColor:S,fgColor:d,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?I:void 0},P),[L]=Gs("QRCode");if(!a)return null;const B=Re(x,y,_,R,N,{[`${x}-borderless`]:!h}),U=Object.assign(Object.assign({backgroundColor:S},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return T(de.createElement("div",Object.assign({},D,{className:B,style:U}),p!=="active"&&de.createElement("div",{className:`${x}-mask`},de.createElement(D_t,{prefixCls:x,locale:L,status:p,onRefresh:g,statusRender:C})),s==="canvas"?de.createElement(eIe,Object.assign({},F)):de.createElement(tIe,Object.assign({},F))))};function B_t(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,o=e.characterRender,a=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,d=e.onHover,f=e.onClick,p=function(C){d(C,a)},h=function(C){f(C,a)},g=function(C){C.keyCode===gt.ENTER&&f(C,a)},v=a+1,y=new Set([r]);l===0&&a===0&&u?y.add("".concat(r,"-focused")):c&&l+.5>=v&&l<v?(y.add("".concat(r,"-half")),y.add("".concat(r,"-active")),u&&y.add("".concat(r,"-focused"))):(v<=l?y.add("".concat(r,"-full")):y.add("".concat(r,"-zero")),v===l&&u&&y.add("".concat(r,"-focused")));var _=typeof i=="function"?i(e):i,b=de.createElement("li",{className:Re(Array.from(y)),ref:t},de.createElement("div",{onClick:n?null:h,onKeyDown:n?null:g,onMouseMove:n?null:p,role:"radio","aria-checked":l>a?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},de.createElement("div",{className:"".concat(r,"-first")},_),de.createElement("div",{className:"".concat(r,"-second")},_)));return o&&(b=o(b,e)),b}const U_t=de.forwardRef(B_t);function j_t(){var e=m.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function H_t(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function z_t(e){var t,n,r=e.ownerDocument,i=r.body,o=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=o.clientLeft||i.clientLeft||0,n-=o.clientTop||i.clientTop||0,{left:t,top:n}}function V_t(e){var t=z_t(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=H_t(r),t.left}var G_t=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function W_t(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,o=e.defaultValue,a=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,d=e.allowClear,f=d===void 0?!0:d,p=e.keyboard,h=p===void 0?!0:p,g=e.character,v=g===void 0?"★":g,y=e.characterRender,_=e.disabled,b=e.direction,S=b===void 0?"ltr":b,C=e.tabIndex,E=C===void 0?0:C,w=e.autoFocus,x=e.onHoverChange,T=e.onChange,R=e.onFocus,N=e.onBlur,I=e.onKeyDown,P=e.onMouseLeave,D=It(e,G_t),F=j_t(),L=Oe(F,2),B=L[0],U=L[1],G=de.useRef(null),V=function(){if(!_){var J;(J=G.current)===null||J===void 0||J.focus()}};de.useImperativeHandle(t,function(){return{focus:V,blur:function(){if(!_){var J;(J=G.current)===null||J===void 0||J.blur()}}}});var W=Fn(o||0,{value:a}),$=Oe(W,2),H=$[0],K=$[1],re=Fn(null),Q=Oe(re,2),A=Q[0],k=Q[1],Z=function(J,he){var ve=S==="rtl",ce=J+1;if(u){var $e=B(J),Be=V_t($e),me=$e.clientWidth;(ve&&he-Be>me/2||!ve&&he-Be<me/2)&&(ce-=.5)}return ce},ne=function(J){K(J),T==null||T(J)},oe=de.useState(!1),ae=Oe(oe,2),ue=ae[0],fe=ae[1],se=function(){fe(!0),R==null||R()},pe=function(){fe(!1),N==null||N()},_e=de.useState(null),Te=Oe(_e,2),xe=Te[0],ge=Te[1],Ce=function(J,he){var ve=Z(he,J.pageX);ve!==A&&(ge(ve),k(null)),x==null||x(ve)},ye=function(J){_||(ge(null),k(null),x==null||x(void 0)),J&&(P==null||P(J))},be=function(J,he){var ve=Z(he,J.pageX),ce=!1;f&&(ce=ve===H),ye(),ne(ce?0:ve),k(ce?ve:null)},Ee=function(J){var he=J.keyCode,ve=S==="rtl",ce=u?.5:1;h&&(he===gt.RIGHT&&H<l&&!ve?(ne(H+ce),J.preventDefault()):he===gt.LEFT&&H>0&&!ve||he===gt.RIGHT&&H>0&&ve?(ne(H-ce),J.preventDefault()):he===gt.LEFT&&H<l&&ve&&(ne(H+ce),J.preventDefault())),I==null||I(J)};de.useEffect(function(){w&&!_&&V()},[]);var Me=new Array(l).fill(0).map(function(Y,J){return de.createElement(U_t,{ref:U(J),index:J,count:l,disabled:_,prefixCls:"".concat(r,"-star"),allowHalf:u,value:xe===null?H:xe,onClick:be,onHover:Ce,key:Y||J,character:v,characterRender:y,focused:ue})}),X=Re(r,i,ie(ie({},"".concat(r,"-disabled"),_),"".concat(r,"-rtl"),S==="rtl"));return de.createElement("ul",Qe({className:X,onMouseLeave:ye,tabIndex:_?-1:E,onFocus:_?null:se,onBlur:_?null:pe,onKeyDown:_?null:Ee,ref:G,role:"radiogroup"},ao(D,{aria:!0,data:!0,attr:!0})),Me)}const Y_t=de.forwardRef(W_t),q_t=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${De(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},K_t=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Q_t=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),q_t(e)),K_t(e))}},X_t=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Z_t=dr("Rate",e=>{const t=qn(e,{});return[Q_t(t)]},X_t);var J_t=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Voe=m.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,tooltips:a,character:s=m.createElement(y_t,null),disabled:l}=e,c=J_t(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(C,E)=>{let{index:w}=E;return a?m.createElement(rc,{title:a[w]},C):C},{getPrefixCls:d,direction:f,rate:p}=m.useContext(nn),h=d("rate",n),[g,v,y]=Z_t(h),_=Object.assign(Object.assign({},p==null?void 0:p.style),o),b=m.useContext(No),S=l??b;return g(m.createElement(Y_t,Object.assign({ref:t,character:s,characterRender:u,disabled:S},c,{className:Re(r,i,v,y,p==null?void 0:p.className),style:_,prefixCls:h,direction:f})))}),eyt=()=>m.createElement("svg",{width:"252",height:"294"},m.createElement("title",null,"No Found"),m.createElement("defs",null,m.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(0 .012)"},m.createElement("mask",{fill:"#fff"}),m.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),m.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),m.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),m.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),m.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),m.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),m.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),m.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),m.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),m.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),m.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),m.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),m.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),m.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),m.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),m.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),m.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),m.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),m.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),m.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),m.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),m.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),m.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),m.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),m.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),m.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),m.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),m.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),m.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),m.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),m.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),m.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),m.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),m.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),m.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),m.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),m.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),m.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),tyt=()=>m.createElement("svg",{width:"254",height:"294"},m.createElement("title",null,"Server Error"),m.createElement("defs",null,m.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),m.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(0 .067)"},m.createElement("mask",{fill:"#fff"}),m.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),m.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),m.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),m.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),m.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),m.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),m.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),m.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),m.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),m.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),m.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),m.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),m.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),m.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),m.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),m.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),m.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),m.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),m.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),m.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),m.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),m.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),m.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),m.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),m.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),m.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),m.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),m.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),m.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),m.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),m.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),m.createElement("mask",{fill:"#fff"}),m.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),m.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),m.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),m.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),m.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),m.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),m.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),m.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),m.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),nyt=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${De(e.calc(s).mul(2).equal())} ${De(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${De(s)} ${De(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},ryt=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},iyt=e=>[nyt(e),ryt(e)],oyt=e=>iyt(e),ayt=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),syt=dr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=qn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[oyt(o)]},ayt),lyt=()=>m.createElement("svg",{width:"251",height:"294"},m.createElement("title",null,"Unauthorized"),m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),m.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),m.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),m.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),m.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),m.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),m.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),m.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),m.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),m.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),m.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),m.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),m.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),m.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),m.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),m.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),m.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),m.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),m.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),m.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),m.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),m.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),m.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),m.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),m.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),m.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),m.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),m.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),m.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),m.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),m.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),m.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),m.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),m.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),m.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),m.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),m.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),cyt={success:I_,error:mf,info:$h,warning:I_t},jx={404:eyt,500:tyt,403:lyt},uyt=Object.keys(jx),dyt=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Re(`${t}-icon`);if(uyt.includes(`${r}`)){const a=jx[r];return m.createElement("div",{className:`${i} ${t}-image`},m.createElement(a,null))}const o=m.createElement(cyt[r]);return n===null||n===!1?null:m.createElement("div",{className:i},n||o)},fyt=e=>{let{prefixCls:t,extra:n}=e;return n?m.createElement("div",{className:`${t}-extra`},n):null},Hx=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:d,direction:f,result:p}=m.useContext(nn),h=d("result",t),[g,v,y]=syt(h),_=Re(h,`${h}-${l}`,n,p==null?void 0:p.className,r,{[`${h}-rtl`]:f==="rtl"},v,y),b=Object.assign(Object.assign({},p==null?void 0:p.style),a);return g(m.createElement("div",{className:_,style:b},m.createElement(dyt,{prefixCls:h,status:l,icon:c}),m.createElement("div",{className:`${h}-title`},o),i&&m.createElement("div",{className:`${h}-subtitle`},i),m.createElement(fyt,{prefixCls:h,extra:u}),s&&m.createElement("div",{className:`${h}-content`},s)))};Hx.PRESENTED_IMAGE_403=jx[403];Hx.PRESENTED_IMAGE_404=jx[404];Hx.PRESENTED_IMAGE_500=jx[500];var pyt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],pIe=m.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,g=It(e,pyt),v=Fn(!1,{value:a,defaultValue:s}),y=Oe(v,2),_=y[0],b=y[1];function S(x,T){var R=_;return l||(R=x,b(R),p==null||p(R,T)),R}function C(x){x.which===gt.LEFT?S(!1,x):x.which===gt.RIGHT&&S(!0,x),h==null||h(x)}function E(x){var T=S(!_,x);f==null||f(T,x)}var w=Re(i,o,(n={},ie(n,"".concat(i,"-checked"),_),ie(n,"".concat(i,"-disabled"),l),n));return m.createElement("button",Qe({},g,{type:"button",role:"switch","aria-checked":_,disabled:l,className:w,ref:t,onKeyDown:C,onClick:E}),c,m.createElement("span",{className:"".concat(i,"-inner")},m.createElement("span",{className:"".concat(i,"-inner-checked")},u),m.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))});pIe.displayName="Switch";const myt=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=De(l(s).add(l(r).mul(2)).equal()),d=De(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:De(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${De(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},hyt=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}}}},gyt=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=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:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${De(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},vyt=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=De(s(a).add(s(r).mul(2)).equal()),u=De(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},_yt=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:De(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}}),Qc(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"}})}},yyt=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,s=2,l=o-s*2,c=a-s*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new cr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},byt=dr("Switch",e=>{const t=qn(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[_yt(t),vyt(t),gyt(t),hyt(t),myt(t)]},yyt);var Syt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Eyt=m.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:p}=e,h=Syt(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=Fn(!1,{value:c??u,defaultValue:d??f}),{getPrefixCls:y,direction:_,switch:b}=m.useContext(nn),S=m.useContext(No),C=(i??S)||o,E=y("switch",n),w=m.createElement("div",{className:`${E}-handle`},o&&m.createElement(rf,{className:`${E}-loading-icon`})),[x,T,R]=byt(E),N=Zo(r),I=Re(b==null?void 0:b.className,{[`${E}-small`]:N==="small",[`${E}-loading`]:o,[`${E}-rtl`]:_==="rtl"},a,s,T,R),P=Object.assign(Object.assign({},b==null?void 0:b.style),l),D=function(){v(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return x(m.createElement(yD,{component:"Switch"},m.createElement(pIe,Object.assign({},h,{checked:g,onChange:D,prefixCls:E,className:I,style:P,disabled:C,ref:t,loadingIcon:w}))))}),Zv=Eyt;Zv.__ANT_SWITCH=!0;var Hq=m.createContext(null),mIe=m.createContext({}),Cyt=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,o=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(m.createElement("span",{key:l,className:Re(a,ie(ie({},"".concat(a,"-start"),i[l]),"".concat(a,"-end"),o[l]))}));return m.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const wyt=m.memo(Cyt);var xyt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Goe="open",Woe="close",Tyt="---",PA=function(t){var n,r,i=t.eventKey,o=t.className,a=t.style,s=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,d=t.isStart,f=t.isEnd,p=t.expanded,h=t.selected,g=t.checked,v=t.halfChecked,y=t.loading,_=t.domRef,b=t.active,S=t.data,C=t.onMouseMove,E=t.selectable,w=It(t,xyt),x=de.useContext(Hq),T=de.useContext(mIe),R=de.useRef(null),N=de.useState(!1),I=Oe(N,2),P=I[0],D=I[1],F=de.useMemo(function(){var ve;return!!(x.disabled||t.disabled||(ve=T.nodeDisabled)!==null&&ve!==void 0&&ve.call(T,S))},[x.disabled,t.disabled,T.nodeDisabled,S]),L=de.useMemo(function(){return!x.checkable||t.checkable===!1?!1:x.checkable},[x.checkable,t.checkable]),B=function(ce){F||x.onNodeSelect(ce,ta(t))},U=function(ce){F||!L||t.disableCheckbox||x.onNodeCheck(ce,ta(t),!g)},G=de.useMemo(function(){return typeof E=="boolean"?E:x.selectable},[E,x.selectable]),V=function(ce){x.onNodeClick(ce,ta(t)),G?B(ce):U(ce)},W=function(ce){x.onNodeDoubleClick(ce,ta(t))},$=function(ce){x.onNodeMouseEnter(ce,ta(t))},H=function(ce){x.onNodeMouseLeave(ce,ta(t))},K=function(ce){x.onNodeContextMenu(ce,ta(t))},re=de.useMemo(function(){return!!(x.draggable&&(!x.draggable.nodeDraggable||x.draggable.nodeDraggable(S)))},[x.draggable,S]),Q=function(ce){ce.stopPropagation(),D(!0),x.onNodeDragStart(ce,t);try{ce.dataTransfer.setData("text/plain","")}catch{}},A=function(ce){ce.preventDefault(),ce.stopPropagation(),x.onNodeDragEnter(ce,t)},k=function(ce){ce.preventDefault(),ce.stopPropagation(),x.onNodeDragOver(ce,t)},Z=function(ce){ce.stopPropagation(),x.onNodeDragLeave(ce,t)},ne=function(ce){ce.stopPropagation(),D(!1),x.onNodeDragEnd(ce,t)},oe=function(ce){ce.preventDefault(),ce.stopPropagation(),D(!1),x.onNodeDrop(ce,t)},ae=function(ce){y||x.onNodeExpand(ce,ta(t))},ue=de.useMemo(function(){var ve=sl(x.keyEntities,i)||{},ce=ve.children;return!!(ce||[]).length},[x.keyEntities,i]),fe=de.useMemo(function(){return u===!1?!1:u||!x.loadData&&!ue||x.loadData&&t.loaded&&!ue},[u,x.loadData,ue,t.loaded]);de.useEffect(function(){y||typeof x.loadData=="function"&&p&&!fe&&!t.loaded&&x.onNodeLoad(ta(t))},[y,x.loadData,x.onNodeLoad,p,fe,t]);var se=de.useMemo(function(){var ve;return(ve=x.draggable)!==null&&ve!==void 0&&ve.icon?de.createElement("span",{className:"".concat(x.prefixCls,"-draggable-icon")},x.draggable.icon):null},[x.draggable]),pe=function(ce){var $e=t.switcherIcon||x.switcherIcon;return typeof $e=="function"?$e(q(q({},t),{},{isLeaf:ce})):$e},_e=function(){if(fe){var ce=pe(!0);return ce!==!1?de.createElement("span",{className:Re("".concat(x.prefixCls,"-switcher"),"".concat(x.prefixCls,"-switcher-noop"))},ce):null}var $e=pe(!1);return $e!==!1?de.createElement("span",{onClick:ae,className:Re("".concat(x.prefixCls,"-switcher"),"".concat(x.prefixCls,"-switcher_").concat(p?Goe:Woe))},$e):null},Te=de.useMemo(function(){if(!L)return null;var ve=typeof L!="boolean"?L:null;return de.createElement("span",{className:Re("".concat(x.prefixCls,"-checkbox"),ie(ie(ie({},"".concat(x.prefixCls,"-checkbox-checked"),g),"".concat(x.prefixCls,"-checkbox-indeterminate"),!g&&v),"".concat(x.prefixCls,"-checkbox-disabled"),F||t.disableCheckbox)),onClick:U,role:"checkbox","aria-checked":v?"mixed":g,"aria-disabled":F||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},ve)},[L,g,v,F,t.disableCheckbox,t.title]),xe=de.useMemo(function(){return fe?null:p?Goe:Woe},[fe,p]),ge=de.useMemo(function(){return de.createElement("span",{className:Re("".concat(x.prefixCls,"-iconEle"),"".concat(x.prefixCls,"-icon__").concat(xe||"docu"),ie({},"".concat(x.prefixCls,"-icon_loading"),y))})},[x.prefixCls,xe,y]),Ce=de.useMemo(function(){var ve=!!x.draggable,ce=!t.disabled&&ve&&x.dragOverNodeKey===i;return ce?x.dropIndicatorRender({dropPosition:x.dropPosition,dropLevelOffset:x.dropLevelOffset,indent:x.indent,prefixCls:x.prefixCls,direction:x.direction}):null},[x.dropPosition,x.dropLevelOffset,x.indent,x.prefixCls,x.direction,x.draggable,x.dragOverNodeKey,x.dropIndicatorRender]),ye=de.useMemo(function(){var ve=t.title,ce=ve===void 0?Tyt:ve,$e="".concat(x.prefixCls,"-node-content-wrapper"),Be;if(x.showIcon){var me=t.icon||x.icon;Be=me?de.createElement("span",{className:Re("".concat(x.prefixCls,"-iconEle"),"".concat(x.prefixCls,"-icon__customize"))},typeof me=="function"?me(t):me):ge}else x.loadData&&y&&(Be=ge);var Fe;return typeof ce=="function"?Fe=ce(S):x.titleRender?Fe=x.titleRender(S):Fe=ce,de.createElement("span",{ref:R,title:typeof ce=="string"?ce:"",className:Re($e,"".concat($e,"-").concat(xe||"normal"),ie({},"".concat(x.prefixCls,"-node-selected"),!F&&(h||P))),onMouseEnter:$,onMouseLeave:H,onContextMenu:K,onClick:V,onDoubleClick:W},Be,de.createElement("span",{className:"".concat(x.prefixCls,"-title")},Fe),Ce)},[x.prefixCls,x.showIcon,t,x.icon,ge,x.titleRender,S,xe,$,H,K,V,W]),be=ao(w,{aria:!0,data:!0}),Ee=sl(x.keyEntities,i)||{},Me=Ee.level,X=f[f.length-1],Y=!F&&re,J=x.draggingNodeKey===i,he=E!==void 0?{"aria-selected":!!E}:void 0;return de.createElement("div",Qe({ref:_,role:"treeitem","aria-expanded":u?void 0:p,className:Re(o,"".concat(x.prefixCls,"-treenode"),(r={},ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(r,"".concat(x.prefixCls,"-treenode-disabled"),F),"".concat(x.prefixCls,"-treenode-switcher-").concat(p?"open":"close"),!u),"".concat(x.prefixCls,"-treenode-checkbox-checked"),g),"".concat(x.prefixCls,"-treenode-checkbox-indeterminate"),v),"".concat(x.prefixCls,"-treenode-selected"),h),"".concat(x.prefixCls,"-treenode-loading"),y),"".concat(x.prefixCls,"-treenode-active"),b),"".concat(x.prefixCls,"-treenode-leaf-last"),X),"".concat(x.prefixCls,"-treenode-draggable"),re),"dragging",J),ie(ie(ie(ie(ie(ie(ie(r,"drop-target",x.dropTargetKey===i),"drop-container",x.dropContainerKey===i),"drag-over",!F&&s),"drag-over-gap-top",!F&&l),"drag-over-gap-bottom",!F&&c),"filter-node",(n=x.filterTreeNode)===null||n===void 0?void 0:n.call(x,ta(t))),"".concat(x.prefixCls,"-treenode-leaf"),fe))),style:a,draggable:Y,onDragStart:Y?Q:void 0,onDragEnter:re?A:void 0,onDragOver:re?k:void 0,onDragLeave:re?Z:void 0,onDrop:re?oe:void 0,onDragEnd:re?ne:void 0,onMouseMove:C},he,be),de.createElement(wyt,{prefixCls:x.prefixCls,level:Me,isStart:d,isEnd:f}),se,_e(),Te,ye)};PA.isTreeNode=1;function If(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function um(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function zq(e){return e.split("-")}function Ryt(e,t){var n=[],r=sl(t,e);function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var s=a.key,l=a.children;n.push(s),i(l)})}return i(r.children),n}function Oyt(e){if(e.parent){var t=zq(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Iyt(e){var t=zq(e.pos);return Number(t[t.length-1])===0}function Yoe(e,t,n,r,i,o,a,s,l,c){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,g=p.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),y=(v-12)/r,_=l.filter(function(L){var B;return(B=s[L])===null||B===void 0||(B=B.children)===null||B===void 0?void 0:B.length}),b=sl(s,n.eventKey);if(f<h+g/2){var S=a.findIndex(function(L){return L.key===b.key}),C=S<=0?0:S-1,E=a[C].key;b=sl(s,E)}var w=b.key,x=b,T=b.key,R=0,N=0;if(!_.includes(w))for(var I=0;I<y&&Oyt(b);I+=1)b=b.parent,N+=1;var P=t.data,D=b.node,F=!0;return Iyt(b)&&b.level===0&&f<h+g/2&&o({dragNode:P,dropNode:D,dropPosition:-1})&&b.key===n.eventKey?R=-1:(x.children||[]).length&&_.includes(T)?o({dragNode:P,dropNode:D,dropPosition:0})?R=0:F=!1:N===0?y>-1.5?o({dragNode:P,dropNode:D,dropPosition:1})?R=1:F=!1:o({dragNode:P,dropNode:D,dropPosition:0})?R=0:o({dragNode:P,dropNode:D,dropPosition:1})?R=1:F=!1:o({dragNode:P,dropNode:D,dropPosition:1})?R=1:F=!1,{dropPosition:R,dropLevelOffset:N,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:T,dropContainerKey:R===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:F}}function qoe(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function yF(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(qt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Wr(!1,"`checkedKeys` is not an array or an object"),null;return t}function Koe(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=sl(t,i);if(o){n.add(i);var a=o.parent,s=o.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(i){r(i)}),at(n)}var Nyt=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*i;break;case 1:o.bottom=0,o.left=-r*i;break;case 0:o.bottom=0,o.left=i;break}return de.createElement("div",{style:o})};function hIe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Myt(e,t){var n=m.useState(!1),r=Oe(n,2),i=r[0],o=r[1];gr(function(){if(i)return e(),function(){t()}},[i]),gr(function(){return o(!0),function(){o(!1)}},[])}var Ayt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pyt=m.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,o=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=It(e,Ayt),f=m.useState(!0),p=Oe(f,2),h=p[0],g=p[1],v=m.useContext(Hq),y=v.prefixCls,_=o&&a!=="hide";gr(function(){o&&_!==h&&g(_)},[o]);var b=function(){o&&s()},S=m.useRef(!1),C=function(){o&&!S.current&&(S.current=!0,l())};Myt(b,C);var E=function(x){_===x&&C()};return o?m.createElement(qo,Qe({ref:t,visible:h},i,{motionAppear:a==="show",onVisibleChanged:E}),function(w,x){var T=w.className,R=w.style;return m.createElement("div",{ref:x,className:Re("".concat(y,"-treenode-motion"),T),style:R},o.map(function(N){var I=Object.assign({},(hIe(N.data),N.data)),P=N.title,D=N.key,F=N.isStart,L=N.isEnd;delete I.children;var B=KC(D,u);return m.createElement(PA,Qe({},I,B,{title:P,active:c,data:N.data,key:D,isStart:F,isEnd:L}))}))}):m.createElement(PA,Qe({domRef:t,className:n,style:r},d,{active:c}))});function Dyt(){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 i(o,a){var s=new Map;o.forEach(function(c){s.set(c,!0)});var l=a.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function Qoe(e,t,n){var r=e.findIndex(function(s){return s.key===n}),i=e[r+1],o=t.findIndex(function(s){return s.key===n});if(i){var a=t.findIndex(function(s){return s.key===i.key});return t.slice(o+1,a)}return t.slice(o+1)}var kyt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Xoe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Lyt=function(){},Jv="RC_TREE_MOTION_".concat(Math.random()),P9={key:Jv},gIe={key:Jv,level:0,index:0,pos:"0",node:P9,nodes:[P9]},Zoe={parent:null,children:[],pos:gIe.pos,data:P9,title:null,key:Jv,isStart:[],isEnd:[]};function Joe(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function eae(e){var t=e.key,n=e.pos;return kx(t,n)}function $yt(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var Fyt=m.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,o=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,f=e.dragging,p=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,_=e.virtual,b=e.scrollWidth,S=e.focusable,C=e.activeItem,E=e.focused,w=e.tabIndex,x=e.onKeyDown,T=e.onFocus,R=e.onBlur,N=e.onActiveChange,I=e.onListChangeStart,P=e.onListChangeEnd,D=It(e,kyt),F=m.useRef(null),L=m.useRef(null);m.useImperativeHandle(t,function(){return{scrollTo:function(ye){F.current.scrollTo(ye)},getIndentWidth:function(){return L.current.offsetWidth}}});var B=m.useState(i),U=Oe(B,2),G=U[0],V=U[1],W=m.useState(r),$=Oe(W,2),H=$[0],K=$[1],re=m.useState(r),Q=Oe(re,2),A=Q[0],k=Q[1],Z=m.useState([]),ne=Oe(Z,2),oe=ne[0],ae=ne[1],ue=m.useState(null),fe=Oe(ue,2),se=fe[0],pe=fe[1],_e=m.useRef(r);_e.current=r;function Te(){var Ce=_e.current;K(Ce),k(Ce),ae([]),pe(null),P()}gr(function(){V(i);var Ce=Dyt(G,i);if(Ce.key!==null)if(Ce.add){var ye=H.findIndex(function(J){var he=J.key;return he===Ce.key}),be=Joe(Qoe(H,r,Ce.key),_,v,y),Ee=H.slice();Ee.splice(ye+1,0,Zoe),k(Ee),ae(be),pe("show")}else{var Me=r.findIndex(function(J){var he=J.key;return he===Ce.key}),X=Joe(Qoe(r,H,Ce.key),_,v,y),Y=r.slice();Y.splice(Me+1,0,Zoe),k(Y),ae(X),pe("hide")}else H!==r&&(K(r),k(r))},[i,r]),m.useEffect(function(){f||Te()},[f]);var xe=g?A:r,ge={expandedKeys:i,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:h,keyEntities:u};return m.createElement(m.Fragment,null,E&&C&&m.createElement("span",{style:Xoe,"aria-live":"assertive"},$yt(C)),m.createElement("div",null,m.createElement("input",{style:Xoe,disabled:S===!1||d,tabIndex:S!==!1?w:null,onKeyDown:x,onFocus:T,onBlur:R,value:"",onChange:Lyt,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(n,"-indent")},m.createElement("div",{ref:L,className:"".concat(n,"-indent-unit")}))),m.createElement(qY,Qe({},D,{data:xe,itemKey:eae,height:v,fullHeight:!1,virtual:_,itemHeight:y,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:F,role:"tree",onVisibleChange:function(ye){ye.every(function(be){return eae(be)!==Jv})&&Te()}}),function(Ce){var ye=Ce.pos,be=Object.assign({},(hIe(Ce.data),Ce.data)),Ee=Ce.title,Me=Ce.key,X=Ce.isStart,Y=Ce.isEnd,J=kx(Me,ye);delete be.key,delete be.children;var he=KC(J,ge);return m.createElement(Pyt,Qe({},be,he,{title:Ee,active:!!C&&Me===C.key,pos:ye,data:Ce.data,isStart:X,isEnd:Y,motion:g,motionNodes:Me===Jv?oe:null,motionType:se,onMotionStart:I,onMotionEnd:Te,treeNodeRequiredProps:ge,onMouseMove:function(){N(null)}}))}))}),Byt=10,Vq=function(e){Es(n,e);var t=Vs(n);function n(){var r;Yr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ie(ln(r),"destroyed",!1),ie(ln(r),"delayedDragEnterLogic",void 0),ie(ln(r),"loadingRetryTimes",{}),ie(ln(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:wA()}),ie(ln(r),"dragStartMousePosition",null),ie(ln(r),"dragNodeProps",null),ie(ln(r),"currentMouseOverDroppableNodeKey",null),ie(ln(r),"listRef",m.createRef()),ie(ln(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=r.props.onDragStart,p=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=If(u,p);r.setState({draggingNodeKey:p,dragChildrenKeys:Ryt(p,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),f==null||f({event:s,node:ta(l)})}),ie(ln(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,f=c.dragChildrenKeys,p=c.flattenNodes,h=c.indent,g=r.props,v=g.onDragEnter,y=g.onExpand,_=g.allowDrop,b=g.direction,S=l.pos,C=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==C&&(r.currentMouseOverDroppableNodeKey=C),!r.dragNodeProps){r.resetDragState();return}var E=Yoe(s,r.dragNodeProps,l,h,r.dragStartMousePosition,_,p,d,u,b),w=E.dropPosition,x=E.dropLevelOffset,T=E.dropTargetKey,R=E.dropContainerKey,N=E.dropTargetPos,I=E.dropAllowed,P=E.dragOverNodeKey;if(f.includes(T)||!I){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=at(u),F=sl(d,l.eventKey);F&&(F.children||[]).length&&(D=um(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),y==null||y(D,{node:ta(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===T&&x===0){r.resetDragState();return}r.setState({dragOverNodeKey:P,dropPosition:w,dropLevelOffset:x,dropTargetKey:T,dropContainerKey:R,dropTargetPos:N,dropAllowed:I}),v==null||v({event:s,node:ta(l),expandedKeys:u})}),ie(ln(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,f=c.keyEntities,p=c.expandedKeys,h=c.indent,g=r.props,v=g.onDragOver,y=g.allowDrop,_=g.direction;if(r.dragNodeProps){var b=Yoe(s,r.dragNodeProps,l,h,r.dragStartMousePosition,y,d,f,p,_),S=b.dropPosition,C=b.dropLevelOffset,E=b.dropTargetKey,w=b.dropContainerKey,x=b.dropTargetPos,T=b.dropAllowed,R=b.dragOverNodeKey;u.includes(E)||!T||(r.dragNodeProps.eventKey===E&&C===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():S===r.state.dropPosition&&C===r.state.dropLevelOffset&&E===r.state.dropTargetKey&&w===r.state.dropContainerKey&&x===r.state.dropTargetPos&&T===r.state.dropAllowed&&R===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:C,dropTargetKey:E,dropContainerKey:w,dropTargetPos:x,dropAllowed:T,dragOverNodeKey:R}),v==null||v({event:s,node:ta(l)}))}}),ie(ln(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:s,node:ta(l)})}),ie(ln(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ie(ln(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:ta(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ie(ln(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,p=d.dropPosition,h=d.dropTargetKey,g=d.dropTargetPos,v=d.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var _=q(q({},KC(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:sl(r.state.keyEntities,h).node}),b=f.includes(h);Wr(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=zq(g),C={event:s,node:ta(_),dragNode:r.dragNodeProps?ta(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(f),dropToGap:p!==0,dropPosition:p+Number(S[S.length-1])};u||y==null||y(C),r.dragNodeProps=null}}}),ie(ln(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}),ie(ln(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,f=l.expanded,p=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var g=d.filter(function(y){return y.key===p})[0],v=ta(q(q({},KC(p,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(f?If(u,p):um(u,p)),r.onNodeExpand(s,v)}}),ie(ln(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ie(ln(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ie(ln(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,f=u.fieldNames,p=r.props,h=p.onSelect,g=p.multiple,v=l.selected,y=l[f.key],_=!v;_?g?c=um(c,y):c=[y]:c=If(c,y);var b=c.map(function(S){var C=sl(d,S);return C?C.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),h==null||h(c,{event:"select",selected:_,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),ie(ln(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,f=u.checkedKeys,p=u.halfCheckedKeys,h=r.props,g=h.checkStrictly,v=h.onCheck,y=l.key,_,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var S=c?um(f,y):If(f,y),C=If(p,y);_={checked:S,halfChecked:C},b.checkedNodes=S.map(function(N){return sl(d,N)}).filter(Boolean).map(function(N){return N.node}),r.setUncontrolledState({checkedKeys:S})}else{var E=ip([].concat(at(f),[y]),!0,d),w=E.checkedKeys,x=E.halfCheckedKeys;if(!c){var T=new Set(w);T.delete(y);var R=ip(Array.from(T),{checked:!1,halfCheckedKeys:x},d);w=R.checkedKeys,x=R.halfCheckedKeys}_=w,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=x,w.forEach(function(N){var I=sl(d,N);if(I){var P=I.node,D=I.pos;b.checkedNodes.push(P),b.checkedNodesPositions.push({node:P,pos:D})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:x})}v==null||v(_,b)}),ie(ln(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=sl(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var f=new Promise(function(p,h){r.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,_=g.loadingKeys,b=_===void 0?[]:_,S=r.props,C=S.loadData,E=S.onLoad;if(!C||y.includes(c)||b.includes(c))return null;var w=C(s);return w.then(function(){var x=r.state.loadedKeys,T=um(x,c);E==null||E(T,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:T}),r.setState(function(R){return{loadingKeys:If(R.loadingKeys,c)}}),p()}).catch(function(x){if(r.setState(function(R){return{loadingKeys:If(R.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Byt){var T=r.state.loadedKeys;Wr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:um(T,c)}),p()}h(x)}),{loadingKeys:um(b,c)}})});return f.catch(function(){}),f}}),ie(ln(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ie(ln(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ie(ln(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ie(ln(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),ie(ln(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),ie(ln(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,f=s.checkedKeys,p=s.halfCheckedKeys,h=s.dragOverNodeKey,g=s.dropPosition,v=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:f||[],halfCheckedKeys:p||[],dragOverNodeKey:h,dropPosition:g,keyEntities:v}}),ie(ln(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,d=uF(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:d},!0)}),ie(ln(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,f=u.fieldNames,p=r.props,h=p.onExpand,g=p.loadData,v=l.expanded,y=l[f.key];if(!d){var _=c.includes(y),b=!v;if(Wr(v&&_||!v&&!_,"Expand state not sync with index check"),c=b?um(c,y):If(c,y),r.setExpandedKeys(c),h==null||h(c,{node:l,expanded:b,nativeEvent:s.nativeEvent}),b&&g){var S=r.onNodeLoad(l);S&&S.then(function(){var C=uF(r.state.treeData,c,f);r.setUncontrolledState({flattenNodes:C})}).catch(function(){var C=r.state.expandedKeys,E=If(C,y);r.setExpandedKeys(E)})}}}),ie(ln(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ie(ln(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ie(ln(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,d=c.itemScrollOffset,f=d===void 0?0:d;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:f}),u==null||u(s))}),ie(ln(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(u){var d=u.key;return d===l})||null}),ie(ln(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,d=c.findIndex(function(h){var g=h.key;return g===u});d===-1&&s<0&&(d=c.length),d=(d+s+c.length)%c.length;var f=c[d];if(f){var p=f.key;r.onActiveChange(p)}else r.onActiveChange(null)}),ie(ln(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,f=l.fieldNames,p=r.props,h=p.onKeyDown,g=p.checkable,v=p.selectable;switch(s.which){case gt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case gt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var y=r.getActiveItem();if(y&&y.data){var _=r.getTreeNodeRequiredProps(),b=y.data.isLeaf===!1||!!(y.data[f.children]||[]).length,S=ta(q(q({},KC(c,_)),{},{data:y.data,active:!0}));switch(s.which){case gt.LEFT:{b&&u.includes(c)?r.onNodeExpand({},S):y.parent&&r.onActiveChange(y.parent.key),s.preventDefault();break}case gt.RIGHT:{b&&!u.includes(c)?r.onNodeExpand({},S):y.children&&y.children.length&&r.onActiveChange(y.children[0].key),s.preventDefault();break}case gt.ENTER:case gt.SPACE:{g&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!d.includes(c)):!g&&v&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}h==null||h(s)}),ie(ln(r),"setUncontrolledState",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,f={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){d=!1;return}u=!0,f[p]=s[p]}),u&&(!l||d)&&r.setState(q(q({},f),c))}}),ie(ln(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return qr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,o=i.activeKey,a=i.itemScrollOffset,s=a===void 0?0:a;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 i=this.state,o=i.focused,a=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,d=i.dropContainerKey,f=i.dropTargetKey,p=i.dropPosition,h=i.dragOverNodeKey,g=i.indent,v=this.props,y=v.prefixCls,_=v.className,b=v.style,S=v.showLine,C=v.focusable,E=v.tabIndex,w=E===void 0?0:E,x=v.selectable,T=v.showIcon,R=v.icon,N=v.switcherIcon,I=v.draggable,P=v.checkable,D=v.checkStrictly,F=v.disabled,L=v.motion,B=v.loadData,U=v.filterTreeNode,G=v.height,V=v.itemHeight,W=v.scrollWidth,$=v.virtual,H=v.titleRender,K=v.dropIndicatorRender,re=v.onContextMenu,Q=v.onScroll,A=v.direction,k=v.rootClassName,Z=v.rootStyle,ne=ao(this.props,{aria:!0,data:!0}),oe;I&&(qt(I)==="object"?oe=I:typeof I=="function"?oe={nodeDraggable:I}:oe={});var ae={prefixCls:y,selectable:x,showIcon:T,icon:R,switcherIcon:N,draggable:oe,draggingNodeKey:l,checkable:P,checkStrictly:D,disabled:F,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:h,indent:g,direction:A,dropIndicatorRender:K,loadData:B,filterTreeNode:U,titleRender:H,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};return m.createElement(Hq.Provider,{value:ae},m.createElement("div",{className:Re(y,_,k,ie(ie(ie({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),o),"".concat(y,"-active-focused"),c!==null)),style:Z},m.createElement(Fyt,Qe({ref:this.listRef,prefixCls:y,style:b,data:a,disabled:F,selectable:x,checkable:!!P,motion:L,dragging:l!==null,height:G,itemHeight:V,virtual:$,focusable:C,focused:o,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:re,onScroll:Q,scrollWidth:W},this.getTreeNodeRequiredProps(),ne))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s={prevProps:i};function l(w){return!a&&i.hasOwnProperty(w)||a&&a[w]!==i[w]}var c,u=o.fieldNames;if(l("fieldNames")&&(u=wA(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(Wr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=lut(i.children)),c){s.treeData=c;var d=Rq(c,{fieldNames:u});s.keyEntities=q(ie({},Jv,gIe),d.keyEntities)}var f=s.keyEntities||o.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?Koe(i.expandedKeys,f):i.expandedKeys;else if(!a&&i.defaultExpandAll){var p=q({},f);delete p[Jv];var h=[];Object.keys(p).forEach(function(w){var x=p[w];x.children&&x.children.length&&h.push(x.key)}),s.expandedKeys=h}else!a&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?Koe(i.defaultExpandedKeys,f):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=uF(c||o.treeData,s.expandedKeys||o.expandedKeys,u);s.flattenNodes=g}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=qoe(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(s.selectedKeys=qoe(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=yF(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?v=yF(i.defaultCheckedKeys)||{}:c&&(v=yF(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),v){var y=v,_=y.checkedKeys,b=_===void 0?[]:_,S=y.halfCheckedKeys,C=S===void 0?[]:S;if(!i.checkStrictly){var E=ip(b,!0,f);b=E.checkedKeys,C=E.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=C}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(m.Component);ie(Vq,"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:Nyt,allowDrop:function(){return!0},expandAction:!1});ie(Vq,"TreeNode",PA);const Uyt=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:a,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},jyt=new ir("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Hyt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),zyt=(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:`${De(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Vyt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},wr(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},kp(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:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:jyt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:De(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-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,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Hyt(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width: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(i).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}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},zyt(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${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(i).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:`${De(t.calc(o).div(2).equal())} !important`}})}},vIe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=qn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Vyt(e,o),Uyt(o)]},_Ie=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Gyt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},_Ie(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})};dr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:tk(`${n}-checkbox`,e)},vIe(n,e),Cx(e)]},Gyt);const Wyt=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return m.isValidElement(o)?o:m.createElement(rf,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),a){if(!i)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return m.isValidElement(f)?Ko(f,{className:Re(f.props.className||"",p)}):f}return c?m.createElement(ivt,{className:`${t}-switcher-line-icon`}):m.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return m.isValidElement(d)?Ko(d,{className:Re(d.props.className||"",u)}):d!==void 0?d:i?s?m.createElement(Pvt,{className:`${t}-switcher-line-icon`}):m.createElement(Kvt,{className:`${t}-switcher-line-icon`}):m.createElement(zgt,{className:u})},Yyt=e=>{const t=e!=null&&e.algorithm?Gv(e.algorithm):Gv(yx),n=Object.assign(Object.assign({},s0),e==null?void 0:e.token);return pY(n,{override:e==null?void 0:e.token},t,EY)};function qyt(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 Kyt=(e,t)=>{const n=t??yx(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),qyt(t??e)),_1e(r)),{controlHeight:i}),v1e(Object.assign(Object.assign({},n),{controlHeight:i})))},Ec=(e,t)=>new cr(e).setA(t).toRgbString(),Sy=(e,t)=>new cr(e).lighten(t).toHexString(),Qyt=e=>{const t=Eh(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]}},Xyt=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ec(r,.85),colorTextSecondary:Ec(r,.65),colorTextTertiary:Ec(r,.45),colorTextQuaternary:Ec(r,.25),colorFill:Ec(r,.18),colorFillSecondary:Ec(r,.12),colorFillTertiary:Ec(r,.08),colorFillQuaternary:Ec(r,.04),colorBgSolid:Ec(r,.95),colorBgSolidHover:Ec(r,1),colorBgSolidActive:Ec(r,.9),colorBgElevated:Sy(n,12),colorBgContainer:Sy(n,8),colorBgLayout:Sy(n,0),colorBgSpotlight:Sy(n,26),colorBgBlur:Ec(r,.04),colorBorder:Sy(n,26),colorBorderSecondary:Sy(n,19)}},Zyt=(e,t)=>{const n=Object.keys(_Y).map(i=>{const o=Eh(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${i}-${l+1}`]=o[l],a[`${i}${l+1}`]=o[l],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??yx(e);return Object.assign(Object.assign(Object.assign({},r),n),g1e(e,{generateColorPalettes:Qyt,generateNeutralColorPalettes:Xyt}))};function Jyt(){const[e,t,n]=Ea();return{theme:e,token:t,hashId:n}}const Ns={defaultSeed:ew.token,useToken:Jyt,defaultAlgorithm:yx,darkAlgorithm:Zyt,compactAlgorithm:Kyt,getDesignToken:Yyt,defaultConfig:ew,_internalContext:yY};var ebt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const{TimePicker:tbt,RangePicker:nbt}=hl,rbt=m.forwardRef((e,t)=>m.createElement(nbt,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Cp=m.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:o}=e,a=ebt(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Fp("timePicker",i,o),l=m.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return m.createElement(tbt,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),yIe=Fh(Cp,"popupAlign",void 0,"picker");Cp._InternalPanelDoNotUseOrYouWillBeFired=yIe;Cp.RangePicker=rbt;Cp._InternalPanelDoNotUseOrYouWillBeFired=yIe;const ibt=function(e){var t=m.useRef({valueLabels:new Map});return m.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(o){var a=o.value,s=o.label,l=s??n.get(a);return r.set(a,l),q(q({},o),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var obt=function(t,n,r,i){return m.useMemo(function(){var o=function(p){return p.map(function(h){var g=h.value;return g})},a=o(t),s=o(n),l=a.filter(function(f){return!i[f]}),c=a,u=s;if(r){var d=ip(a,!0,i);c=d.checkedKeys,u=d.halfCheckedKeys}return[Array.from(new Set([].concat(at(l),at(c)))),u]},[t,n,r,i])},abt=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},sbt=function(t){var n=t||{},r=n.label,i=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:o||"children"}},D9=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},lbt=function(t,n){var r=[],i=function o(a){a.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),o(l))})};return i(t),r},tae=function(t){return t==null};const cbt=function(e,t){return m.useMemo(function(){var n=Rq(e,{fieldNames:t,initWrapper:function(i){return q(q({},i),{},{valueEntities:new Map})},processEntity:function(i,o){var a=i.node[t.value];o.valueEntities.set(a,i)}});return n},[e,t])};var Gq=function(){return null},ubt=["children","value"];function bIe(e){return _a(e).map(function(t){if(!m.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,o=i.children,a=i.value,s=It(i,ubt),l=q({key:r,value:a},s),c=bIe(o);return c.length&&(l.children=c),l}).filter(function(t){return t})}function k9(e){if(!e)return e;var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Wr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function dbt(e,t,n,r,i,o){var a=null,s=null;function l(){function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(p,h){var g="".concat(d,"-").concat(h),v=p[o.value],y=n.includes(v),_=c(p[o.children]||[],g,y),b=m.createElement(Gq,p,_.map(function(C){return C.node}));if(t===v&&(a=b),y){var S={pos:g,node:b,children:_};return f||s.push(S),S}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,d){var f=u.node.props.value,p=d.node.props.value,h=n.indexOf(f),g=n.indexOf(p);return h-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Wr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Wr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var d=u.node;return d})}})}var fbt=function(t,n,r){var i=r.fieldNames,o=r.treeNodeFilterProp,a=r.filterTreeNode,s=i.children;return m.useMemo(function(){if(!n||a===!1)return t;var l=typeof a=="function"?a:function(u,d){return String(d[o]).toUpperCase().includes(n.toUpperCase())},c=function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,h){var g=h[s],v=f||l(n,k9(h)),y=u(g||[],v);return(v||y.length)&&p.push(q(q({},h),{},ie({isLeaf:void 0},s,y))),p},[])};return c(t)},[t,n,s,o,a])};function nae(e){var t=m.useRef();t.current=e;var n=m.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function pbt(e,t){var n=t.id,r=t.pId,i=t.rootPId,o=new Map,a=[];return e.forEach(function(s){var l=s[n],c=q(q({},s),{},{key:s.key||l});o.set(l,c)}),o.forEach(function(s){var l=s[r],c=o.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&a.push(s)}),a}function mbt(e,t,n){return m.useMemo(function(){if(e){if(n){var r=q({id:"id",pId:"pId",rootPId:null},qt(n)==="object"?n:{});return pbt(e,r)}return e}return bIe(t)},[t,n,e])}var SIe=m.createContext(null),EIe=m.createContext(null),hbt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gbt=function(t,n){var r=zY(),i=r.prefixCls,o=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=m.useContext(EIe),d=u.virtual,f=u.listHeight,p=u.listItemHeight,h=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,y=u.onSelect,_=u.dropdownMatchSelectWidth,b=u.treeExpandAction,S=u.treeTitleRender,C=u.onPopupScroll,E=u.leftMaxCount,w=u.leafCountOnly,x=u.valueEntities,T=m.useContext(SIe),R=T.checkable,N=T.checkedKeys,I=T.halfCheckedKeys,P=T.treeExpandedKeys,D=T.treeDefaultExpandAll,F=T.treeDefaultExpandedKeys,L=T.onTreeExpand,B=T.treeIcon,U=T.showTreeIcon,G=T.switcherIcon,V=T.treeLine,W=T.treeNodeFilterProp,$=T.loadData,H=T.treeLoadedKeys,K=T.treeMotion,re=T.onTreeLoad,Q=T.keyEntities,A=m.useRef(),k=zv(function(){return g},[l,g],function(Ge,We){return We[0]&&Ge[1]!==We[1]}),Z=m.useMemo(function(){return R?{checked:N,halfChecked:I}:null},[R,N,I]);m.useEffect(function(){if(l&&!o&&N.length){var Ge;(Ge=A.current)===null||Ge===void 0||Ge.scrollTo({key:N[0]})}},[l]);var ne=function(We){We.preventDefault()},oe=function(We,Lt){var ut=Lt.node;R&&D9(ut)||(y(ut.key,{selected:!N.includes(ut.key)}),o||s(!1))},ae=m.useState(F),ue=Oe(ae,2),fe=ue[0],se=ue[1],pe=m.useState(null),_e=Oe(pe,2),Te=_e[0],xe=_e[1],ge=m.useMemo(function(){return P?at(P):a?Te:fe},[fe,Te,P,a]),Ce=function(We){se(We),xe(We),L&&L(We)},ye=String(a).toLowerCase(),be=function(We){return ye?String(We[W]).toLowerCase().includes(ye):!1};m.useEffect(function(){a&&xe(lbt(g,v))},[a]);var Ee=m.useState(function(){return new Map}),Me=Oe(Ee,2),X=Me[0],Y=Me[1];m.useEffect(function(){E&&Y(new Map)},[E]);function J(Ge){var We=Ge[v.value];if(!X.has(We)){var Lt=x.get(We),ut=(Lt.children||[]).length===0;if(ut)X.set(We,!1);else{var ft=Lt.children.filter(function(St){return!St.node.disabled&&!St.node.disableCheckbox&&!N.includes(St.node[v.value])}),bt=ft.length;X.set(We,bt>E)}}return X.get(We)}var he=Wn(function(Ge){var We=Ge[v.value];return N.includes(We)||E===null?!1:E<=0?!0:w&&E?J(Ge):!1}),ve=function Ge(We){var Lt=zd(We),ut;try{for(Lt.s();!(ut=Lt.n()).done;){var ft=ut.value;if(!(ft.disabled||ft.selectable===!1)){if(a){if(be(ft))return ft}else return ft;if(ft[v.children]){var bt=Ge(ft[v.children]);if(bt)return bt}}}}catch(St){Lt.e(St)}finally{Lt.f()}return null},ce=m.useState(null),$e=Oe(ce,2),Be=$e[0],me=$e[1],Fe=Q[Be];m.useEffect(function(){if(l){var Ge=null,We=function(){var ut=ve(k);return ut?ut[v.value]:null};!o&&N.length&&!a?Ge=N[0]:Ge=We(),me(Ge)}},[l,a]),m.useImperativeHandle(n,function(){var Ge;return{scrollTo:(Ge=A.current)===null||Ge===void 0?void 0:Ge.scrollTo,onKeyDown:function(Lt){var ut,ft=Lt.which;switch(ft){case gt.UP:case gt.DOWN:case gt.LEFT:case gt.RIGHT:(ut=A.current)===null||ut===void 0||ut.onKeyDown(Lt);break;case gt.ENTER:{if(Fe){var bt=he(Fe.node),St=(Fe==null?void 0:Fe.node)||{},Ht=St.selectable,xt=St.value,Nt=St.disabled;Ht!==!1&&!Nt&&!bt&&oe(null,{node:{key:Be},selected:!N.includes(xt)})}break}case gt.ESC:s(!1)}},onKeyUp:function(){}}});var Xe=zv(function(){return!a},[a,P||fe],function(Ge,We){var Lt=Oe(Ge,1),ut=Lt[0],ft=Oe(We,2),bt=ft[0],St=ft[1];return ut!==bt&&!!(bt||St)}),ze=Xe?$:null;if(k.length===0)return m.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:ne},c);var qe={fieldNames:v};return H&&(qe.loadedKeys=H),ge&&(qe.expandedKeys=ge),m.createElement("div",{onMouseDown:ne},Fe&&l&&m.createElement("span",{style:hbt,"aria-live":"assertive"},Fe.node.value),m.createElement(mIe.Provider,{value:{nodeDisabled:he}},m.createElement(Vq,Qe({ref:A,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:k,height:f,itemHeight:p,itemScrollOffset:h,virtual:d!==!1&&_!==!1,multiple:o,icon:B,showIcon:U,switcherIcon:G,showLine:V,loadData:ze,motion:K,activeKey:Be,checkable:R,checkStrictly:!0,checkedKeys:Z,selectedKeys:R?[]:N,defaultExpandAll:D,titleRender:S},qe,{onActiveChange:me,onSelect:oe,onCheck:oe,onExpand:Ce,onLoad:re,filterTreeNode:be,expandAction:b,onScroll:C}))))},vbt=m.forwardRef(gbt),Wq="SHOW_ALL",Yq="SHOW_PARENT",ck="SHOW_CHILD";function rae(e,t,n,r){var i=new Set(e);return t===ck?e.filter(function(o){var a=n[o];return!a||!a.children||!a.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!a.children.every(function(s){var l=s.node;return D9(l)||i.has(l[r.value])})}):t===Yq?e.filter(function(o){var a=n[o],s=a?a.parent:null;return!s||D9(s.node)||!i.has(s.key)}):e}var _bt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","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 ybt(e){return!e||qt(e)!=="object"}var bbt=m.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,o=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,d=e.inputValue,f=e.onSearch,p=e.autoClearSearchValue,h=p===void 0?!0:p,g=e.filterTreeNode,v=e.treeNodeFilterProp,y=v===void 0?"value":v,_=e.showCheckedStrategy,b=e.treeNodeLabelProp,S=e.multiple,C=e.treeCheckable,E=e.treeCheckStrictly,w=e.labelInValue,x=e.maxCount,T=e.fieldNames,R=e.treeDataSimpleMode,N=e.treeData,I=e.children,P=e.loadData,D=e.treeLoadedKeys,F=e.onTreeLoad,L=e.treeDefaultExpandAll,B=e.treeExpandedKeys,U=e.treeDefaultExpandedKeys,G=e.onTreeExpand,V=e.treeExpandAction,W=e.virtual,$=e.listHeight,H=$===void 0?200:$,K=e.listItemHeight,re=K===void 0?20:K,Q=e.listItemScrollOffset,A=Q===void 0?0:Q,k=e.onDropdownVisibleChange,Z=e.dropdownMatchSelectWidth,ne=Z===void 0?!0:Z,oe=e.treeLine,ae=e.treeIcon,ue=e.showTreeIcon,fe=e.switcherIcon,se=e.treeMotion,pe=e.treeTitleRender,_e=e.onPopupScroll,Te=It(e,_bt),xe=KY(n),ge=C&&!E,Ce=C||E,ye=E||w,be=Ce||S,Ee=Fn(a,{value:o}),Me=Oe(Ee,2),X=Me[0],Y=Me[1],J=m.useMemo(function(){return C?_||ck:Wq},[_,C]),he=m.useMemo(function(){return sbt(T)},[JSON.stringify(T)]),ve=Fn("",{value:u!==void 0?u:d,postState:function(Et){return Et||""}}),ce=Oe(ve,2),$e=ce[0],Be=ce[1],me=function(Et){Be(Et),f==null||f(Et)},Fe=mbt(N,I,R),Xe=cbt(Fe,he),ze=Xe.keyEntities,qe=Xe.valueEntities,Ge=m.useCallback(function(Wt){var Et=[],yt=[];return Wt.forEach(function(Ft){qe.has(Ft)?yt.push(Ft):Et.push(Ft)}),{missingRawValues:Et,existRawValues:yt}},[qe]),We=fbt(Fe,$e,{fieldNames:he,treeNodeFilterProp:y,filterTreeNode:g}),Lt=m.useCallback(function(Wt){if(Wt){if(b)return Wt[b];for(var Et=he._title,yt=0;yt<Et.length;yt+=1){var Ft=Wt[Et[yt]];if(Ft!==void 0)return Ft}}},[he,b]),ut=m.useCallback(function(Wt){var Et=abt(Wt);return Et.map(function(yt){return ybt(yt)?{value:yt}:yt})},[]),ft=m.useCallback(function(Wt){var Et=ut(Wt);return Et.map(function(yt){var Ft=yt.label,Ae=yt.value,kt=yt.halfChecked,nt,Rt=qe.get(Ae);if(Rt){var Tt;Ft=pe?pe(Rt.node):(Tt=Ft)!==null&&Tt!==void 0?Tt:Lt(Rt.node),nt=Rt.node.disabled}else if(Ft===void 0){var xn=ut(X).find(function(Un){return Un.value===Ae});Ft=xn.label}return{label:Ft,value:Ae,halfChecked:kt,disabled:nt}})},[qe,Lt,ut,X]),bt=m.useMemo(function(){return ut(X===null?[]:X)},[ut,X]),St=m.useMemo(function(){var Wt=[],Et=[];return bt.forEach(function(yt){yt.halfChecked?Et.push(yt):Wt.push(yt)}),[Wt,Et]},[bt]),Ht=Oe(St,2),xt=Ht[0],Nt=Ht[1],Vt=m.useMemo(function(){return xt.map(function(Wt){return Wt.value})},[xt]),Ue=obt(xt,Nt,ge,ze),Ve=Oe(Ue,2),je=Ve[0],et=Ve[1],_t=m.useMemo(function(){var Wt=rae(je,J,ze,he),Et=Wt.map(function(kt){var nt,Rt;return(nt=(Rt=ze[kt])===null||Rt===void 0||(Rt=Rt.node)===null||Rt===void 0?void 0:Rt[he.value])!==null&&nt!==void 0?nt:kt}),yt=Et.map(function(kt){var nt=xt.find(function(Tt){return Tt.value===kt}),Rt=w?nt==null?void 0:nt.label:pe==null?void 0:pe(nt);return{value:kt,label:Rt}}),Ft=ft(yt),Ae=Ft[0];return!be&&Ae&&tae(Ae.value)&&tae(Ae.label)?[]:Ft.map(function(kt){var nt;return q(q({},kt),{},{label:(nt=kt.label)!==null&&nt!==void 0?nt:kt.value})})},[he,be,je,xt,ft,J,ze]),vt=ibt(_t),Mt=Oe(vt,1),wt=Mt[0],jt=m.useMemo(function(){return be&&(J==="SHOW_CHILD"||E||!C)?x:null},[x,be,E,J,C]),zt=nae(function(Wt,Et,yt){var Ft=rae(Wt,J,ze,he);if(!(jt&&Ft.length>jt)){var Ae=ft(Wt);if(Y(Ae),h&&Be(""),s){var kt=Wt;ge&&(kt=Ft.map(function(Le){var Je=qe.get(Le);return Je?Je.node[he.value]:Le}));var nt=Et||{triggerValue:void 0,selected:void 0},Rt=nt.triggerValue,Tt=nt.selected,xn=kt;if(E){var Un=Nt.filter(function(Le){return!kt.includes(Le.value)});xn=[].concat(at(xn),at(Un))}var O=ft(xn),j={preValue:xt,triggerValue:Rt},te=!0;(E||yt==="selection"&&!Tt)&&(te=!1),dbt(j,Rt,Wt,Fe,te,he),Ce?j.checked=Tt:j.selected=Tt;var we=ye?O:O.map(function(Le){return Le.value});s(be?we:we[0],ye?null:O.map(function(Le){return Le.label}),j)}}}),Gt=m.useCallback(function(Wt,Et){var yt,Ft=Et.selected,Ae=Et.source,kt=ze[Wt],nt=kt==null?void 0:kt.node,Rt=(yt=nt==null?void 0:nt[he.value])!==null&&yt!==void 0?yt:Wt;if(!be)zt([Rt],{selected:!0,triggerValue:Rt},"option");else{var Tt=Ft?[].concat(at(Vt),[Rt]):je.filter(function(Je){return Je!==Rt});if(ge){var xn=Ge(Tt),Un=xn.missingRawValues,O=xn.existRawValues,j=O.map(function(Je){return qe.get(Je).key}),te;if(Ft){var we=ip(j,!0,ze);te=we.checkedKeys}else{var Le=ip(j,{checked:!1,halfCheckedKeys:et},ze);te=Le.checkedKeys}Tt=[].concat(at(Un),at(te.map(function(Je){return ze[Je].node[he.value]})))}zt(Tt,{selected:Ft,triggerValue:Rt},Ae||"option")}Ft||!be?l==null||l(Rt,k9(nt)):c==null||c(Rt,k9(nt))},[Ge,qe,ze,he,be,Vt,zt,ge,l,c,je,et,x]),$t=m.useCallback(function(Wt){if(k){var Et={};Object.defineProperty(Et,"documentClickClose",{get:function(){return Wr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),k(Wt,Et)}},[k]),on=nae(function(Wt,Et){var yt=Wt.map(function(Ft){return Ft.value});if(Et.type==="clear"){zt(yt,{},"selection");return}Et.values.length&&Gt(Et.values[0].value,{selected:!1,source:"selection"})}),pt=m.useMemo(function(){return{virtual:W,dropdownMatchSelectWidth:ne,listHeight:H,listItemHeight:re,listItemScrollOffset:A,treeData:We,fieldNames:he,onSelect:Gt,treeExpandAction:V,treeTitleRender:pe,onPopupScroll:_e,leftMaxCount:x===void 0?null:x-wt.length,leafCountOnly:J==="SHOW_CHILD"&&!E&&!!C,valueEntities:qe}},[W,ne,H,re,A,We,he,Gt,V,pe,_e,x,wt.length,J,E,C,qe]),Dt=m.useMemo(function(){return{checkable:Ce,loadData:P,treeLoadedKeys:D,onTreeLoad:F,checkedKeys:je,halfCheckedKeys:et,treeDefaultExpandAll:L,treeExpandedKeys:B,treeDefaultExpandedKeys:U,onTreeExpand:G,treeIcon:ae,treeMotion:se,showTreeIcon:ue,switcherIcon:fe,treeLine:oe,treeNodeFilterProp:y,keyEntities:ze}},[Ce,P,D,F,je,et,L,B,U,G,ae,se,ue,fe,oe,y,ze]);return m.createElement(EIe.Provider,{value:pt},m.createElement(SIe.Provider,{value:Dt},m.createElement(GY,Qe({ref:t},Te,{id:xe,prefixCls:i,mode:be?"multiple":void 0,displayValues:wt,onDisplayValuesChange:on,searchValue:$e,onSearch:me,OptionList:vbt,emptyOptions:!Fe.length,onDropdownVisibleChange:$t,dropdownMatchSelectWidth:ne}))))}),zx=bbt;zx.TreeNode=Gq;zx.SHOW_ALL=Wq;zx.SHOW_PARENT=Yq;zx.SHOW_CHILD=ck;const Sbt=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${De(e.paddingXS)} ${De(e.calc(e.paddingXS).div(2).equal())}`},vIe(n,qn(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},tk(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Ebt(e,t,n){return dr("TreeSelect",r=>{const i=qn(r,{treePrefixCls:t});return[Sbt(i)]},_Ie)(e,n)}var Cbt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wbt=(e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,bordered:a=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:d=256,listItemHeight:f,placement:p,notFoundContent:h,switcherIcon:g,treeLine:v,getPopupContainer:y,popupClassName:_,dropdownClassName:b,treeIcon:S=!1,transitionName:C,choiceTransitionName:E="",status:w,treeExpandAction:x,builtinPlacements:T,dropdownMatchSelectWidth:R,popupMatchSelectWidth:N,allowClear:I,variant:P,dropdownStyle:D,tagRender:F,maxCount:L,showCheckedStrategy:B,treeCheckStrictly:U}=e,G=Cbt(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","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:V,getPrefixCls:W,renderEmpty:$,direction:H,virtual:K,popupMatchSelectWidth:re,popupOverflow:Q}=m.useContext(nn),[,A]=Ea(),k=f??(A==null?void 0:A.controlHeightSM)+(A==null?void 0:A.paddingXXS),Z=W(),ne=W("select",r),oe=W("select-tree",r),ae=W("tree-select",r),{compactSize:ue,compactItemClassnames:fe}=pd(ne,H),se=oi(ne),pe=oi(ae),[_e,Te,xe]=ZY(ne,se),[ge]=Ebt(ae,oe,pe),[Ce,ye]=Fp("treeSelect",P,a),be=Re(_||b,`${ae}-dropdown`,{[`${ae}-dropdown-rtl`]:H==="rtl"},l,xe,se,pe,Te),Ee=!!(c||u),Me=m.useMemo(()=>{if(!(L&&(B==="SHOW_ALL"&&!U||B==="SHOW_PARENT")))return L},[L,B,U]),X=eq(e.suffixIcon,e.showArrow),Y=(n=N??R)!==null&&n!==void 0?n:re,{status:J,hasFeedback:he,isFormItemInput:ve,feedbackIcon:ce}=m.useContext(Qo),$e=$p(J,w),{suffixIcon:Be,removeIcon:me,clearIcon:Fe}=FD(Object.assign(Object.assign({},G),{multiple:Ee,showSuffixIcon:X,hasFeedback:he,feedbackIcon:ce,prefixCls:ne,componentName:"TreeSelect"})),Xe=I===!0?{clearIcon:Fe}:I;let ze;h!==void 0?ze=h:ze=($==null?void 0:$("Select"))||m.createElement($D,{componentName:"Select"});const qe=ur(G,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ge=m.useMemo(()=>p!==void 0?p:H==="rtl"?"bottomRight":"bottomLeft",[p,H]),We=Zo(xt=>{var Nt;return(Nt=i??ue)!==null&&Nt!==void 0?Nt:xt}),Lt=m.useContext(No),ut=o??Lt,ft=Re(!r&&ae,{[`${ne}-lg`]:We==="large",[`${ne}-sm`]:We==="small",[`${ne}-rtl`]:H==="rtl",[`${ne}-${Ce}`]:ye,[`${ne}-in-form-item`]:ve},id(ne,$e,he),fe,s,l,xe,se,pe,Te),bt=xt=>m.createElement(Wyt,{prefixCls:oe,switcherIcon:g,treeNodeProps:xt,showLine:v}),[St]=au("SelectLike",D==null?void 0:D.zIndex),Ht=m.createElement(zx,Object.assign({virtual:K,disabled:ut},qe,{dropdownMatchSelectWidth:Y,builtinPlacements:XY(T,Q),ref:t,prefixCls:ne,className:ft,listHeight:d,listItemHeight:k,treeCheckable:c&&m.createElement("span",{className:`${ne}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:Be,multiple:Ee,placement:Ge,removeIcon:me,allowClear:Xe,switcherIcon:bt,showTreeIcon:S,notFoundContent:ze,getPopupContainer:y||V,treeMotion:null,dropdownClassName:be,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:St}),choiceTransitionName:Pa(Z,"",E),transitionName:Pa(Z,"slide-up",C),treeExpandAction:x,tagRender:Ee?F:void 0,maxCount:Me,showCheckedStrategy:B,treeCheckStrictly:U}));return _e(ge(Ht))},xbt=m.forwardRef(wbt),F_=xbt,Tbt=Fh(F_,"dropdownAlign",e=>ur(e,["visible"]));F_.TreeNode=Gq;F_.SHOW_ALL=Wq;F_.SHOW_PARENT=Yq;F_.SHOW_CHILD=ck;F_._InternalPanelDoNotUseOrYouWillBeFired=Tbt;const bF=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Wr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Rbt(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 iae(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Obt(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(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(a){n.append("".concat(i,"[]"),a)});return}n.append(i,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(Rbt(e,t),iae(t)):e.onSuccess(iae(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(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var Ibt=function(){var e=Oo(yr().mark(function t(n,r){var i,o,a,s,l,c,u,d;return yr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Oo(yr().mark(function g(v){return yr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",new Promise(function(b){v.file(function(S){r(S)?(v.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),b(S)):b(null)})}));case 1:case"end":return _.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=Oo(yr().mark(function g(v){var y,_,b,S,C;return yr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:y=v.createReader(),_=[];case 2:return w.next=5,new Promise(function(x){y.readEntries(x,function(){return x([])})});case 5:if(b=w.sent,S=b.length,S){w.next=9;break}return w.abrupt("break",12);case 9:for(C=0;C<S;C++)_.push(b[C]);w.next=2;break;case 12:return w.abrupt("return",_);case 13:case"end":return w.stop()}},g)})),s.apply(this,arguments)},a=function(g){return s.apply(this,arguments)},i=[],o=[],n.forEach(function(h){return o.push(h.webkitGetAsEntry())}),u=function(){var h=Oo(yr().mark(function g(v,y){var _,b;return yr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(v){C.next=2;break}return C.abrupt("return");case 2:if(v.path=y||"",!v.isFile){C.next=10;break}return C.next=6,l(v);case 6:_=C.sent,_&&i.push(_),C.next=15;break;case 10:if(!v.isDirectory){C.next=15;break}return C.next=13,a(v);case 13:b=C.sent,o.push.apply(o,at(b));case 15:case"end":return C.stop()}},g)}));return function(v,y){return h.apply(this,arguments)}}(),d=0;case 9:if(!(d<o.length)){p.next=15;break}return p.next=12,u(o[d]);case 12:d++,p.next=9;break;case 15:return p.abrupt("return",i);case 16:case"end":return p.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),Nbt=+new Date,Mbt=0;function SF(){return"rc-upload-".concat(Nbt,"-").concat(++Mbt)}var Abt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Pbt=function(e){Es(n,e);var t=Vs(n);function n(){var r;Yr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ie(ln(r),"state",{uid:SF()}),ie(ln(r),"reqs",{}),ie(ln(r),"fileInput",void 0),ie(ln(r),"_isMounted",void 0),ie(ln(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,f=at(d).filter(function(p){return!u||bF(p,c)});r.uploadFiles(f),r.reset()}),ie(ln(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),ie(ln(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),ie(ln(r),"onFileDrop",function(){var s=Oo(yr().mark(function l(c){var u,d,f;return yr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=r.props.multiple,c.preventDefault(),c.type!=="dragover"){h.next=4;break}return h.abrupt("return");case 4:if(!r.props.directory){h.next=11;break}return h.next=7,Ibt(Array.prototype.slice.call(c.dataTransfer.items),function(g){return bF(g,r.props.accept)});case 7:d=h.sent,r.uploadFiles(d),h.next=14;break;case 11:f=at(c.dataTransfer.files).filter(function(g){return bF(g,r.props.accept)}),u===!1&&(f=f.slice(0,1)),r.uploadFiles(f);case 14:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),ie(ln(r),"uploadFiles",function(s){var l=at(s),c=l.map(function(u){return u.uid=SF(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(f){var p=f.origin,h=f.parsedFile;return{file:p,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),ie(ln(r),"processFile",function(){var s=Oo(yr().mark(function l(c,u){var d,f,p,h,g,v,y,_,b;return yr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(d=r.props.beforeUpload,f=c,!d){C.next=14;break}return C.prev=3,C.next=6,d(c,u);case 6:f=C.sent,C.next=12;break;case 9:C.prev=9,C.t0=C.catch(3),f=!1;case 12:if(f!==!1){C.next=14;break}return C.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){C.next=21;break}return C.next=18,p(c);case 18:h=C.sent,C.next=22;break;case 21:h=p;case 22:if(g=r.props.data,typeof g!="function"){C.next=29;break}return C.next=26,g(c);case 26:v=C.sent,C.next=30;break;case 29:v=g;case 30:return y=(qt(f)==="object"||typeof f=="string")&&f?f:c,y instanceof File?_=y:_=new File([y],c.name,{type:c.type}),b=_,b.uid=c.uid,C.abrupt("return",{origin:c,data:v,parsedFile:b,action:h});case 35:case"end":return C.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),ie(ln(r),"saveFileInput",function(s){r.fileInput=s}),r}return qr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(i){var o=this,a=i.data,s=i.origin,l=i.action,c=i.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,p=u.name,h=u.headers,g=u.withCredentials,v=u.method,y=s.uid,_=f||Obt,b={action:l,filename:p,data:a,file:c,headers:h,withCredentials:g,method:v||"post",onProgress:function(C){var E=o.props.onProgress;E==null||E(C,c)},onSuccess:function(C,E){var w=o.props.onSuccess;w==null||w(C,c,E),delete o.reqs[y]},onError:function(C,E){var w=o.props.onError;w==null||w(C,E,c),delete o.reqs[y]}};d(s),this.reqs[y]=_(b)}}},{key:"reset",value:function(){this.setState({uid:SF()})}},{key:"abort",value:function(i){var o=this.reqs;if(i){var a=i.uid?i.uid:i;o[a]&&o[a].abort&&o[a].abort(),delete o[a]}else Object.keys(o).forEach(function(s){o[s]&&o[s].abort&&o[s].abort(),delete o[s]})}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.prefixCls,s=i.className,l=i.classNames,c=l===void 0?{}:l,u=i.disabled,d=i.id,f=i.name,p=i.style,h=i.styles,g=h===void 0?{}:h,v=i.multiple,y=i.accept,_=i.capture,b=i.children,S=i.directory,C=i.openFileDialogOnClick,E=i.onMouseEnter,w=i.onMouseLeave,x=i.hasControlInside,T=It(i,Abt),R=Re(ie(ie(ie({},a,!0),"".concat(a,"-disabled"),u),s,s)),N=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},I=u?{}:{onClick:C?this.onClick:function(){},onKeyDown:C?this.onKeyDown:function(){},onMouseEnter:E,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:x?void 0:"0"};return de.createElement(o,Qe({},I,{className:R,role:x?void 0:"button",style:p}),de.createElement("input",Qe({},ao(T,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(D){return D.stopPropagation()},key:this.state.uid,style:q({display:"none"},g.input),className:c.input,accept:y},N,{multiple:v,onChange:this.onChange},_!=null?{capture:_}:{})),b)}}]),n}(m.Component);function EF(){}var L9=function(e){Es(n,e);var t=Vs(n);function n(){var r;Yr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ie(ln(r),"uploader",void 0),ie(ln(r),"saveUploader",function(s){r.uploader=s}),r}return qr(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return de.createElement(Pbt,Qe({},this.props,{ref:this.saveUploader}))}}]),n}(m.Component);ie(L9,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:EF,onError:EF,onSuccess:EF,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Dbt=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${De(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:`${De(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 ${De(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
||
p${t}-text,
|
||
p${t}-hint
|
||
`]:{color:e.colorTextDisabled}}}}}},kbt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},nf()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},nc),{padding:`0 ${De(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
||
${l}:focus-visible,
|
||
&.picture ${l}
|
||
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Lbt=e=>{const{componentCls:t}=e,n=new ir("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new ir("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:AY(e)},n,r]},$bt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
|
||
${a}${a}-picture,
|
||
${a}${a}-picture-card,
|
||
${a}${a}-picture-circle
|
||
`]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${De(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},nc),{width:r,height:r,lineHeight:De(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${De(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Wv[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Wv.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Fbt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
|
||
${t}-wrapper${t}-picture-card-wrapper,
|
||
${t}-wrapper${t}-picture-circle-wrapper
|
||
`]:Object.assign(Object.assign({},nf()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${De(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${De(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${De(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
||
${n}-eye,
|
||
${n}-download,
|
||
${n}-delete
|
||
`]:{zIndex:10,width:r,margin:`0 ${De(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},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% - ${De(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% - ${De(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Bbt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Ubt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},wr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},jbt=e=>({actionsColor:e.colorTextDescription}),Hbt=dr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=qn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[Ubt(a),Dbt(a),$bt(a),Fbt(a),kbt(a),Lbt(a),Bbt(a),Cx(a)]},jbt);function fO(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 pO(e,t){const n=at(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function CF(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function zbt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const Vbt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},CIe=e=>e.indexOf("image/")===0,Gbt=e=>{if(e.type&&!e.thumbUrl)return CIe(e.type);const t=e.thumbUrl||e.url||"",n=Vbt(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)},dm=200;function Wbt(e){return new Promise(t=>{if(!e.type||!CIe(e.type)){t("");return}const n=document.createElement("canvas");n.width=dm,n.height=dm,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${dm}px; height: ${dm}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let s=dm,l=dm,c=0,u=0;o>a?(l=a*(dm/o),u=-(l-s)/2):(s=o*(dm/a),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.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 i.src=window.URL.createObjectURL(e)})}const Ybt=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:v,previewIcon:y,removeIcon:_,downloadIcon:b,extra:S,onPreview:C,onDownload:E,onClose:w}=e;var x,T;const{status:R}=s,[N,I]=m.useState(R);m.useEffect(()=>{R!=="removed"&&I(R)},[R]);const[P,D]=m.useState(!1);m.useEffect(()=>{const ue=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(ue)}},[]);const F=u(s);let L=m.createElement("div",{className:`${n}-icon`},F);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(N==="uploading"||!s.thumbUrl&&!s.url){const ue=Re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:N!=="uploading"});L=m.createElement("div",{className:ue},F)}else{const ue=p!=null&&p(s)?m.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):F,fe=Re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});L=m.createElement("a",{className:fe,onClick:se=>C(s,se),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ue)}const B=Re(`${n}-list-item`,`${n}-list-item-${N}`),U=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,G=(typeof g=="function"?g(s):g)?d((typeof _=="function"?_(s):_)||m.createElement(k_,null),()=>w(s),n,o.removeFile,!0):null,V=(typeof v=="function"?v(s):v)&&N==="done"?d((typeof b=="function"?b(s):b)||m.createElement(lk,null),()=>E(s),n,o.downloadFile):null,W=a!=="picture-card"&&a!=="picture-circle"&&m.createElement("span",{key:"download-delete",className:Re(`${n}-list-item-actions`,{picture:a==="picture"})},V,G),$=typeof S=="function"?S(s):S,H=$&&m.createElement("span",{className:`${n}-list-item-extra`},$),K=Re(`${n}-list-item-name`),re=s.url?m.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:s.name},U,{href:s.url,onClick:ue=>C(s,ue)}),s.name,H):m.createElement("span",{key:"view",className:K,onClick:ue=>C(s,ue),title:s.name},s.name,H),Q=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?m.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ue=>C(s,ue),title:o.previewFile},typeof y=="function"?y(s):y||m.createElement($x,null)):null,A=(a==="picture-card"||a==="picture-circle")&&N!=="uploading"&&m.createElement("span",{className:`${n}-list-item-actions`},Q,N==="done"&&V,G),{getPrefixCls:k}=m.useContext(nn),Z=k(),ne=m.createElement("div",{className:B},L,re,W,A,P&&m.createElement(qo,{motionName:`${Z}-fade`,visible:N==="uploading",motionDeadline:2e3},ue=>{let{className:fe}=ue;const se="percent"in s?m.createElement(VOe,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return m.createElement("div",{className:Re(`${n}-list-item-progress`,fe)},se)})),oe=s.response&&typeof s.response=="string"?s.response:((x=s.error)===null||x===void 0?void 0:x.statusText)||((T=s.error)===null||T===void 0?void 0:T.message)||o.uploadError,ae=N==="error"?m.createElement(rc,{title:oe,getPopupContainer:ue=>ue.parentNode},ne):ne;return m.createElement("div",{className:Re(`${n}-list-item-container`,r),style:i,ref:t},f?f(ae,s,l,{download:E.bind(null,s),preview:C.bind(null,s),remove:w.bind(null,s)}):ae)}),qbt=(e,t)=>{const{listType:n="text",previewFile:r=Wbt,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=Gbt,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:h=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:_,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:E,disabled:w}=e,x=Pxe(),[T,R]=m.useState(!1),N=["picture-card","picture-circle"].includes(n);m.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(H=>{!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r==null||r(H.originFileObj).then(K=>{H.thumbUrl=K||"",x()}))})},[n,d,r]),m.useEffect(()=>{R(!0)},[]);const I=(H,K)=>{if(i)return K==null||K.preventDefault(),i(H)},P=H=>{typeof o=="function"?o(H):H.url&&window.open(H.url)},D=H=>{a==null||a(H)},F=H=>{if(l)return l(H,n);const K=H.status==="uploading";if(n.startsWith("picture")){const re=n==="picture"?m.createElement(rf,null):s.uploading,Q=c!=null&&c(H)?m.createElement(Vvt,null):m.createElement(svt,null);return K?re:Q}return K?m.createElement(rf,null):m.createElement(jvt,null)},L=(H,K,re,Q,A)=>{const k={type:"text",size:"small",title:Q,onClick:Z=>{var ne,oe;K(),m.isValidElement(H)&&((oe=(ne=H.props).onClick)===null||oe===void 0||oe.call(ne,Z))},className:`${re}-list-item-action`};return A&&(k.disabled=w),m.isValidElement(H)?m.createElement(On,Object.assign({},k,{icon:Ko(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}))})):m.createElement(On,Object.assign({},k),m.createElement("span",null,H))};m.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:P}));const{getPrefixCls:B}=m.useContext(nn),U=B("upload",u),G=B(),V=Re(`${U}-list`,`${U}-list-${n}`),W=m.useMemo(()=>ur(nw(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),$=Object.assign(Object.assign({},N?{}:W),{motionDeadline:2e3,motionName:`${U}-${N?"animate-inline":"animate"}`,keys:at(d.map(H=>({key:H.uid,file:H}))),motionAppear:T});return m.createElement("div",{className:V},m.createElement(hD,Object.assign({},$,{component:!1}),H=>{let{key:K,file:re,className:Q,style:A}=H;return m.createElement(Ybt,{key:K,locale:s,prefixCls:U,className:Q,style:A,file:re,items:d,progress:b,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:h,removeIcon:g,previewIcon:v,downloadIcon:y,extra:_,iconRender:F,actionIconRender:L,itemRender:E,onPreview:I,onDownload:P,onClose:D})}),S&&m.createElement(qo,Object.assign({},$,{visible:C,forceRender:!0}),H=>{let{className:K,style:re}=H;return Ko(S,Q=>({className:Re(Q.className,K),style:Object.assign(Object.assign(Object.assign({},re),{pointerEvents:K?"none":void 0}),Q.style)}))}))},Kbt=m.forwardRef(qbt);var Qbt=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const yC=`__LIST_IGNORE_${Date.now()}__`,Xbt=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:h,isImageUrl:g,progress:v,prefixCls:y,className:_,type:b="select",children:S,style:C,itemRender:E,maxCount:w,data:x={},multiple:T=!1,hasControlInside:R=!0,action:N="",accept:I="",supportServerRender:P=!0,rootClassName:D}=e,F=m.useContext(No),L=f??F,[B,U]=Fn(r||[],{value:n,postState:me=>me??[]}),[G,V]=m.useState("drop"),W=m.useRef(null),$=m.useRef(null);m.useMemo(()=>{const me=Date.now();(n||[]).forEach((Fe,Xe)=>{!Fe.uid&&!Object.isFrozen(Fe)&&(Fe.uid=`__AUTO__${me}_${Xe}__`)})},[n]);const H=(me,Fe,Xe)=>{let ze=at(Fe),qe=!1;w===1?ze=ze.slice(-1):w&&(qe=ze.length>w,ze=ze.slice(0,w)),Ha.flushSync(()=>{U(ze)});const Ge={file:me,fileList:ze};Xe&&(Ge.event=Xe),(!qe||me.status==="removed"||ze.some(We=>We.uid===me.uid))&&Ha.flushSync(()=>{c==null||c(Ge)})},K=(me,Fe)=>Qbt(void 0,void 0,void 0,function*(){const{beforeUpload:Xe,transformFile:ze}=e;let qe=me;if(Xe){const Ge=yield Xe(me,Fe);if(Ge===!1)return!1;if(delete me[yC],Ge===yC)return Object.defineProperty(me,yC,{value:!0,configurable:!0}),!1;typeof Ge=="object"&&Ge&&(qe=Ge)}return ze&&(qe=yield ze(qe)),qe}),re=me=>{const Fe=me.filter(qe=>!qe.file[yC]);if(!Fe.length)return;const Xe=Fe.map(qe=>fO(qe.file));let ze=at(B);Xe.forEach(qe=>{ze=pO(qe,ze)}),Xe.forEach((qe,Ge)=>{let We=qe;if(Fe[Ge].parsedFile)qe.status="uploading";else{const{originFileObj:Lt}=qe;let ut;try{ut=new File([Lt],Lt.name,{type:Lt.type})}catch{ut=new Blob([Lt],{type:Lt.type}),ut.name=Lt.name,ut.lastModifiedDate=new Date,ut.lastModified=new Date().getTime()}ut.uid=qe.uid,We=ut}H(We,ze)})},Q=(me,Fe,Xe)=>{try{typeof me=="string"&&(me=JSON.parse(me))}catch{}if(!CF(Fe,B))return;const ze=fO(Fe);ze.status="done",ze.percent=100,ze.response=me,ze.xhr=Xe;const qe=pO(ze,B);H(ze,qe)},A=(me,Fe)=>{if(!CF(Fe,B))return;const Xe=fO(Fe);Xe.status="uploading",Xe.percent=me.percent;const ze=pO(Xe,B);H(Xe,ze,me)},k=(me,Fe,Xe)=>{if(!CF(Xe,B))return;const ze=fO(Xe);ze.error=me,ze.response=Fe,ze.status="error";const qe=pO(ze,B);H(ze,qe)},Z=me=>{let Fe;Promise.resolve(typeof i=="function"?i(me):i).then(Xe=>{var ze;if(Xe===!1)return;const qe=zbt(me,B);qe&&(Fe=Object.assign(Object.assign({},me),{status:"removed"}),B==null||B.forEach(Ge=>{const We=Fe.uid!==void 0?"uid":"name";Ge[We]===Fe[We]&&!Object.isFrozen(Ge)&&(Ge.status="removed")}),(ze=W.current)===null||ze===void 0||ze.abort(Fe),H(Fe,qe))})},ne=me=>{V(me.type),me.type==="drop"&&(u==null||u(me))};m.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:Q,onProgress:A,onError:k,fileList:B,upload:W.current,nativeElement:$.current}));const{getPrefixCls:oe,direction:ae,upload:ue}=m.useContext(nn),fe=oe("upload",y),se=Object.assign(Object.assign({onBatchStart:re,onError:k,onProgress:A,onSuccess:Q},e),{data:x,multiple:T,action:N,accept:I,supportServerRender:P,prefixCls:fe,disabled:L,beforeUpload:K,onChange:void 0,hasControlInside:R});delete se.className,delete se.style,(!S||L)&&delete se.id;const pe=`${fe}-wrapper`,[_e,Te,xe]=Hbt(fe,pe),[ge]=Gs("Upload",Kc.Upload),{showRemoveIcon:Ce,showPreviewIcon:ye,showDownloadIcon:be,removeIcon:Ee,previewIcon:Me,downloadIcon:X,extra:Y}=typeof o=="boolean"?{}:o,J=typeof Ce>"u"?!L:Ce,he=(me,Fe)=>o?m.createElement(Kbt,{prefixCls:fe,listType:a,items:B,previewFile:d,onPreview:s,onDownload:l,onRemove:Z,showRemoveIcon:J,showPreviewIcon:ye,showDownloadIcon:be,removeIcon:Ee,previewIcon:Me,downloadIcon:X,iconRender:h,extra:Y,locale:Object.assign(Object.assign({},ge),p),isImageUrl:g,progress:v,appendAction:me,appendActionVisible:Fe,itemRender:E,disabled:L}):me,ve=Re(pe,_,D,Te,xe,ue==null?void 0:ue.className,{[`${fe}-rtl`]:ae==="rtl",[`${fe}-picture-card-wrapper`]:a==="picture-card",[`${fe}-picture-circle-wrapper`]:a==="picture-circle"}),ce=Object.assign(Object.assign({},ue==null?void 0:ue.style),C);if(b==="drag"){const me=Re(Te,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:B.some(Fe=>Fe.status==="uploading"),[`${fe}-drag-hover`]:G==="dragover",[`${fe}-disabled`]:L,[`${fe}-rtl`]:ae==="rtl"});return _e(m.createElement("span",{className:ve,ref:$},m.createElement("div",{className:me,style:ce,onDrop:ne,onDragOver:ne,onDragLeave:ne},m.createElement(L9,Object.assign({},se,{ref:W,className:`${fe}-btn`}),m.createElement("div",{className:`${fe}-drag-container`},S))),he()))}const $e=Re(fe,`${fe}-select`,{[`${fe}-disabled`]:L,[`${fe}-hidden`]:!S}),Be=m.createElement("div",{className:$e},m.createElement(L9,Object.assign({},se,{ref:W})));return _e(a==="picture-card"||a==="picture-circle"?m.createElement("span",{className:ve,ref:$},he(Be,!!S)):m.createElement("span",{className:ve,ref:$},Be,he()))},wIe=m.forwardRef(Xbt);var Zbt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jbt=m.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=Zbt(e,["style","height","hasControlInside"]);return m.createElement(wIe,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),jp=wIe;jp.Dragger=Jbt;jp.LIST_IGNORE=yC;const e0t=m.forwardRef((e,t)=>{const{prefixCls:n,className:r,children:i,size:o,style:a={}}=e,s=Re(`${n}-panel`,{[`${n}-panel-hidden`]:o===0},r),l=o!==void 0;return de.createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},a),{flexBasis:l?o:"auto",flexGrow:l?0:1})},i)}),t0t=()=>null;var n0t=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function r0t(e){if(e&&typeof e=="object")return e;const t=!!e;return{start:t,end:t}}function i0t(e){return m.useMemo(()=>_a(e).filter(m.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,o=n0t(r,["collapsible"]);return Object.assign(Object.assign({},o),{collapsible:r0t(i)})}),[e])}function o0t(e,t){return m.useMemo(()=>{const n=[];for(let r=0;r<e.length-1;r+=1){const i=e[r],o=e[r+1],a=t[r],s=t[r+1],{resizable:l=!0,min:c,collapsible:u}=i,{resizable:d=!0,min:f,collapsible:p}=o,h=l&&d&&(a!==0||!c)&&(s!==0||!f),g=u.end&&a>0||p.start&&s===0&&a>0,v=p.start&&s>0||u.end&&a===0&&s>0;n[r]={resizable:h,startCollapsible:!!g,endCollapsible:!!v}}return n},[t,e])}function aN(e){return Number(e.slice(0,-1))/100}function wF(e){return typeof e=="string"&&e.endsWith("%")}function a0t(e,t){const n=e.map(h=>h.size),r=e.length,i=t||0,o=h=>h*i,[a,s]=de.useState(()=>e.map(h=>h.defaultSize)),l=de.useMemo(()=>{var h;const g=[];for(let v=0;v<r;v+=1)g[v]=(h=n[v])!==null&&h!==void 0?h:a[v];return g},[r,a,n]),c=de.useMemo(()=>{let h=[],g=0;for(let y=0;y<r;y+=1){const _=l[y];if(wF(_))h[y]=aN(_);else if(_||_===0){const b=Number(_);Number.isNaN(b)||(h[y]=b/i)}else g+=1,h[y]=void 0}const v=h.reduce((y,_)=>y+(_||0),0);if(v>1||!g){const y=1/v;h=h.map(_=>_===void 0?0:_*y)}else{const y=(1-v)/g;h=h.map(_=>_===void 0?y:_)}return h},[l,i]),u=de.useMemo(()=>c.map(o),[c,i]),d=de.useMemo(()=>e.map(h=>wF(h.min)?aN(h.min):(h.min||0)/i),[e,i]),f=de.useMemo(()=>e.map(h=>wF(h.max)?aN(h.max):(h.max||i)/i),[e,i]);return[de.useMemo(()=>t?u:l,[u,t]),u,c,d,f,s]}function s0t(e,t,n,r,i){const o=e.map(b=>[b.min,b.max]),a=r||0,s=b=>b*a;function l(b,S){return typeof b=="string"?s(aN(b)):b??S}const[c,u]=m.useState([]),d=m.useRef([]),[f,p]=m.useState(null),h=()=>n.map(s);return[b=>{u(h()),p({index:b,confirmed:!1})},(b,S)=>{var C;let E=null;if((!f||!f.confirmed)&&S!==0){if(S>0)E=b,p({index:b,confirmed:!0});else for(let F=b;F>=0;F-=1)if(c[F]>0&&t[F].resizable){E=F,p({index:F,confirmed:!0});break}}const w=(C=E??(f==null?void 0:f.index))!==null&&C!==void 0?C:b,x=at(c),T=w+1,R=l(o[w][0],0),N=l(o[T][0],0),I=l(o[w][1],a),P=l(o[T][1],a);let D=S;return x[w]+D<R&&(D=R-x[w]),x[T]-D<N&&(D=x[T]-N),x[w]+D>I&&(D=I-x[w]),x[T]-D>P&&(D=x[T]-P),x[w]+=D,x[T]-=D,i(x),x},()=>{p(null)},(b,S)=>{const C=h(),E=S==="start"?b:b+1,w=S==="start"?b+1:b,x=C[E],T=C[w];if(x!==0&&T!==0)C[E]=0,C[w]+=x,d.current[b]=x;else{const R=x+T,N=l(o[E][0],0),I=l(o[E][1],a),P=l(o[w][0],0),D=l(o[w][1],a),F=Math.max(N,R-D),B=(Math.min(I,R-P)-F)/2,U=d.current[b],G=R-U;U&&U<=D&&U>=P&&G<=I&&G>=N?(C[w]=U,C[E]=G):(C[E]-=B,C[w]+=B)}return i(C),C},f==null?void 0:f.index]}function xF(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const l0t=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:o,ariaMin:a,ariaMax:s,resizable:l,startCollapsible:c,endCollapsible:u,onOffsetStart:d,onOffsetUpdate:f,onOffsetEnd:p,onCollapse:h,lazy:g,containerSize:v}=e,y=`${t}-bar`,[_,b]=m.useState(null),[S,C]=m.useState(0),E=n?0:S,w=n?S:0,x=L=>{l&&L.currentTarget&&(b([L.pageX,L.pageY]),d(r))},T=L=>{if(l&&L.touches.length===1){const B=L.touches[0];b([B.pageX,B.pageY]),d(r)}},R=L=>{const B=v*o/100,U=B+L,G=Math.max(0,v*a/100),V=Math.min(v,v*s/100);return Math.max(G,Math.min(V,U))-B},N=Wn((L,B)=>{const U=R(n?B:L);C(U)}),I=Wn(()=>{f(r,E,w),C(0)});de.useEffect(()=>{if(_){const L=V=>{const{pageX:W,pageY:$}=V,H=W-_[0],K=$-_[1];g?N(H,K):f(r,H,K)},B=()=>{g&&I(),b(null),p()},U=V=>{if(V.touches.length===1){const W=V.touches[0],$=W.pageX-_[0],H=W.pageY-_[1];g?N($,H):f(r,$,H)}},G=()=>{g&&I(),b(null),p()};return window.addEventListener("touchmove",U),window.addEventListener("touchend",G),window.addEventListener("mousemove",L),window.addEventListener("mouseup",B),()=>{window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",B),window.removeEventListener("touchmove",U),window.removeEventListener("touchend",G)}}},[_,g,n,r,v,o,a,s]);const P={[`--${y}-preview-offset`]:`${S}px`},D=n?YRe:aw,F=n?Mx:Ch;return de.createElement("div",{className:y,role:"separator","aria-valuenow":xF(o),"aria-valuemin":xF(a),"aria-valuemax":xF(s)},g&&de.createElement("div",{className:Re(`${y}-preview`,{[`${y}-preview-active`]:!!S}),style:P}),de.createElement("div",{className:Re(`${y}-dragger`,{[`${y}-dragger-disabled`]:!l,[`${y}-dragger-active`]:i}),onMouseDown:x,onTouchStart:T}),c&&de.createElement("div",{className:Re(`${y}-collapse-bar`,`${y}-collapse-bar-start`),onClick:()=>h(r,"start")},de.createElement(D,{className:Re(`${y}-collapse-icon`,`${y}-collapse-start`)})),u&&de.createElement("div",{className:Re(`${y}-collapse-bar`,`${y}-collapse-bar-end`),onClick:()=>h(r,"end")},de.createElement(F,{className:Re(`${y}-collapse-icon`,`${y}-collapse-end`)})))},c0t=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},mO={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},u0t=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:o,controlItemBgHover:a,controlItemBgActive:s,controlItemBgActiveHover:l,prefixCls:c}=e,u=`${t}-bar`,d=`${t}-mask`,f=`${t}-panel`,p=e.calc(o).div(2).equal(),h=`${c}-bar-preview-offset`,g={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},wr(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},mO),{zIndex:1,"&::before":Object.assign({content:'""',background:a},mO),"&::after":Object.assign({content:'""',background:n},mO),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:s}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},mO),{zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:s},"&:active":{background:l}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[d]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:i},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${h}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:o,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:p},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:p},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${h}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:o,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:p,transform:"translateX(-50%)"},"&-end":{top:p,bottom:"auto",transform:"translateX(-50%)"}}}},[f]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),c0t(e))}},d0t=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,o=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:o,resizeSpinnerSize:i}},f0t=dr("Splitter",e=>[u0t(e)],d0t),p0t=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:o,rootClassName:a,onResizeStart:s,onResize:l,onResizeEnd:c,lazy:u}=e,{getPrefixCls:d,direction:f,splitter:p}=de.useContext(nn),h=d("splitter",t),g=oi(h),[v,y,_]=f0t(h,g),b=i==="vertical",S=f==="rtl",C=!b&&S,E=i0t(o),[w,x]=m.useState(),T=ne=>{const{offsetWidth:oe,offsetHeight:ae}=ne,ue=b?ae:oe;ue!==0&&x(ue)},[R,N,I,P,D,F]=a0t(E,w),L=o0t(E,N),[B,U,G,V,W]=s0t(E,L,I,w,F),$=Wn(ne=>{B(ne),s==null||s(N)}),H=Wn((ne,oe)=>{const ae=U(ne,oe);l==null||l(ae)}),K=Wn(()=>{G(),c==null||c(N)}),re=Wn((ne,oe)=>{const ae=V(ne,oe);l==null||l(ae),c==null||c(ae)}),Q=Re(h,n,`${h}-${i}`,{[`${h}-rtl`]:S},a,p==null?void 0:p.className,_,g,y),A=`${h}-mask`,k=de.useMemo(()=>{const ne=[];let oe=0;for(let ae=0;ae<E.length;ae+=1)oe+=I[ae],ne.push(oe);return ne},[I]),Z=Object.assign(Object.assign({},p==null?void 0:p.style),r);return v(de.createElement(hs,{onResize:T},de.createElement("div",{style:Z,className:Q},E.map((ne,oe)=>{const ae=de.createElement(e0t,Object.assign({},ne,{prefixCls:h,size:R[oe]}));let ue=null;const fe=L[oe];if(fe){const se=(k[oe-1]||0)+P[oe],pe=(k[oe+1]||100)-D[oe+1],_e=(k[oe-1]||0)+D[oe],Te=(k[oe+1]||100)-P[oe+1];ue=de.createElement(l0t,{lazy:u,index:oe,active:W===oe,prefixCls:h,vertical:b,resizable:fe.resizable,ariaNow:k[oe]*100,ariaMin:Math.max(se,pe)*100,ariaMax:Math.min(_e,Te)*100,startCollapsible:fe.startCollapsible,endCollapsible:fe.endCollapsible,onOffsetStart:$,onOffsetUpdate:(xe,ge,Ce)=>{let ye=b?Ce:ge;C&&(ye=-ye),H(xe,ye)},onOffsetEnd:K,onCollapse:re,containerSize:w||0})}return de.createElement(de.Fragment,{key:`split-panel-${oe}`},ae,ue)}),typeof W=="number"&&de.createElement("div",{"aria-hidden":!0,className:Re(A,`${A}-${i}`)}))))},sN=p0t;sN.Panel=t0t;let Bt;const m0t=()=>{const e=DD.useApp();return Bt=e.message,e.modal,e.notification,null};var xIe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){var n=function(z,ee){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,Se){le.__proto__=Se}||function(le,Se){for(var Ie in Se)Object.prototype.hasOwnProperty.call(Se,Ie)&&(le[Ie]=Se[Ie])})(z,ee)},r=function(){return(r=Object.assign||function(z){for(var ee,le=1,Se=arguments.length;le<Se;le++)for(var Ie in ee=arguments[le])Object.prototype.hasOwnProperty.call(ee,Ie)&&(z[Ie]=ee[Ie]);return z}).apply(this,arguments)};function i(z,ee,le){for(var Se,Ie=0,Pe=ee.length;Ie<Pe;Ie++)!Se&&Ie in ee||((Se=Se||Array.prototype.slice.call(ee,0,Ie))[Ie]=ee[Ie]);return z.concat(Se||Array.prototype.slice.call(ee))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Gi,a=Object.keys,s=Array.isArray;function l(z,ee){return typeof ee!="object"||a(ee).forEach(function(le){z[le]=ee[le]}),z}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function d(z,ee){return u.call(z,ee)}function f(z,ee){typeof ee=="function"&&(ee=ee(c(z))),(typeof Reflect>"u"?a:Reflect.ownKeys)(ee).forEach(function(le){h(z,le,ee[le])})}var p=Object.defineProperty;function h(z,ee,le,Se){p(z,ee,l(le&&d(le,"get")&&typeof le.get=="function"?{get:le.get,set:le.set,configurable:!0}:{value:le,configurable:!0,writable:!0},Se))}function g(z){return{from:function(ee){return z.prototype=Object.create(ee.prototype),h(z.prototype,"constructor",z),{extend:f.bind(null,z.prototype)}}}}var v=Object.getOwnPropertyDescriptor,y=[].slice;function _(z,ee,le){return y.call(z,ee,le)}function b(z,ee){return ee(z)}function S(z){if(!z)throw new Error("Assertion Failed")}function C(z){o.setImmediate?setImmediate(z):setTimeout(z,0)}function E(z,ee){if(typeof ee=="string"&&d(z,ee))return z[ee];if(!ee)return z;if(typeof ee!="string"){for(var le=[],Se=0,Ie=ee.length;Se<Ie;++Se){var Pe=E(z,ee[Se]);le.push(Pe)}return le}var He=ee.indexOf(".");if(He!==-1){var Ye=z[ee.substr(0,He)];return Ye==null?void 0:E(Ye,ee.substr(He+1))}}function w(z,ee,le){if(z&&ee!==void 0&&!("isFrozen"in Object&&Object.isFrozen(z)))if(typeof ee!="string"&&"length"in ee){S(typeof le!="string"&&"length"in le);for(var Se=0,Ie=ee.length;Se<Ie;++Se)w(z,ee[Se],le[Se])}else{var Pe,He,Ye=ee.indexOf(".");Ye!==-1?(Pe=ee.substr(0,Ye),(He=ee.substr(Ye+1))===""?le===void 0?s(z)&&!isNaN(parseInt(Pe))?z.splice(Pe,1):delete z[Pe]:z[Pe]=le:w(Ye=!(Ye=z[Pe])||!d(z,Pe)?z[Pe]={}:Ye,He,le)):le===void 0?s(z)&&!isNaN(parseInt(ee))?z.splice(ee,1):delete z[ee]:z[ee]=le}}function x(z){var ee,le={};for(ee in z)d(z,ee)&&(le[ee]=z[ee]);return le}var T=[].concat;function R(z){return T.apply([],z)}var jn="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(R([8,16,32,64].map(function(z){return["Int","Uint","Float"].map(function(ee){return ee+z+"Array"})}))).filter(function(z){return o[z]}),N=new Set(jn.map(function(z){return o[z]})),I=null;function P(z){return I=new WeakMap,z=function ee(le){if(!le||typeof le!="object")return le;var Se=I.get(le);if(Se)return Se;if(s(le)){Se=[],I.set(le,Se);for(var Ie=0,Pe=le.length;Ie<Pe;++Ie)Se.push(ee(le[Ie]))}else if(N.has(le.constructor))Se=le;else{var He,Ye=c(le);for(He in Se=Ye===Object.prototype?{}:Object.create(Ye),I.set(le,Se),le)d(le,He)&&(Se[He]=ee(le[He]))}return Se}(z),I=null,z}var D={}.toString;function F(z){return D.call(z).slice(8,-1)}var L=typeof Symbol<"u"?Symbol.iterator:"@@iterator",B=typeof L=="symbol"?function(z){var ee;return z!=null&&(ee=z[L])&&ee.apply(z)}:function(){return null};function U(z,ee){return ee=z.indexOf(ee),0<=ee&&z.splice(ee,1),0<=ee}var G={};function V(z){var ee,le,Se,Ie;if(arguments.length===1){if(s(z))return z.slice();if(this===G&&typeof z=="string")return[z];if(Ie=B(z)){for(le=[];!(Se=Ie.next()).done;)le.push(Se.value);return le}if(z==null)return[z];if(typeof(ee=z.length)!="number")return[z];for(le=new Array(ee);ee--;)le[ee]=z[ee];return le}for(ee=arguments.length,le=new Array(ee);ee--;)le[ee]=arguments[ee];return le}var W=typeof Symbol<"u"?function(z){return z[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Me=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],_c=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Me),$={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function H(z,ee){this.name=z,this.message=ee}function K(z,ee){return z+". Errors: "+Object.keys(ee).map(function(le){return ee[le].toString()}).filter(function(le,Se,Ie){return Ie.indexOf(le)===Se}).join(`
|
||
`)}function re(z,ee,le,Se){this.failures=ee,this.failedKeys=Se,this.successCount=le,this.message=K(z,ee)}function Q(z,ee){this.name="BulkError",this.failures=Object.keys(ee).map(function(le){return ee[le]}),this.failuresByPos=ee,this.message=K(z,this.failures)}g(H).from(Error).extend({toString:function(){return this.name+": "+this.message}}),g(re).from(H),g(Q).from(H);var A=_c.reduce(function(z,ee){return z[ee]=ee+"Error",z},{}),k=H,Z=_c.reduce(function(z,ee){var le=ee+"Error";function Se(Ie,Pe){this.name=le,Ie?typeof Ie=="string"?(this.message="".concat(Ie).concat(Pe?`
|
||
`+Pe:""),this.inner=Pe||null):typeof Ie=="object"&&(this.message="".concat(Ie.name," ").concat(Ie.message),this.inner=Ie):(this.message=$[ee]||le,this.inner=null)}return g(Se).from(k),z[ee]=Se,z},{});Z.Syntax=SyntaxError,Z.Type=TypeError,Z.Range=RangeError;var ne=Me.reduce(function(z,ee){return z[ee+"Error"]=Z[ee],z},{}),oe=_c.reduce(function(z,ee){return["Syntax","Type","Range"].indexOf(ee)===-1&&(z[ee+"Error"]=Z[ee]),z},{});function ae(){}function ue(z){return z}function fe(z,ee){return z==null||z===ue?ee:function(le){return ee(z(le))}}function se(z,ee){return function(){z.apply(this,arguments),ee.apply(this,arguments)}}function pe(z,ee){return z===ae?ee:function(){var le=z.apply(this,arguments);le!==void 0&&(arguments[0]=le);var Se=this.onsuccess,Ie=this.onerror;this.onsuccess=null,this.onerror=null;var Pe=ee.apply(this,arguments);return Se&&(this.onsuccess=this.onsuccess?se(Se,this.onsuccess):Se),Ie&&(this.onerror=this.onerror?se(Ie,this.onerror):Ie),Pe!==void 0?Pe:le}}function _e(z,ee){return z===ae?ee:function(){z.apply(this,arguments);var le=this.onsuccess,Se=this.onerror;this.onsuccess=this.onerror=null,ee.apply(this,arguments),le&&(this.onsuccess=this.onsuccess?se(le,this.onsuccess):le),Se&&(this.onerror=this.onerror?se(Se,this.onerror):Se)}}function Te(z,ee){return z===ae?ee:function(le){var Se=z.apply(this,arguments);l(le,Se);var Ie=this.onsuccess,Pe=this.onerror;return this.onsuccess=null,this.onerror=null,le=ee.apply(this,arguments),Ie&&(this.onsuccess=this.onsuccess?se(Ie,this.onsuccess):Ie),Pe&&(this.onerror=this.onerror?se(Pe,this.onerror):Pe),Se===void 0?le===void 0?void 0:le:l(Se,le)}}function xe(z,ee){return z===ae?ee:function(){return ee.apply(this,arguments)!==!1&&z.apply(this,arguments)}}function ge(z,ee){return z===ae?ee:function(){var le=z.apply(this,arguments);if(le&&typeof le.then=="function"){for(var Se=this,Ie=arguments.length,Pe=new Array(Ie);Ie--;)Pe[Ie]=arguments[Ie];return le.then(function(){return ee.apply(Se,Pe)})}return ee.apply(this,arguments)}}oe.ModifyError=re,oe.DexieError=H,oe.BulkError=Q;var Ce=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ye(z){Ce=z}var be={},Ee=100,jn=typeof Promise>"u"?[]:function(){var z=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[z,c(z),z];var ee=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[ee,c(ee),z]}(),Me=jn[0],_c=jn[1],jn=jn[2],_c=_c&&_c.then,X=Me&&Me.constructor,Y=!!jn,J=function(z,ee){Xe.push([z,ee]),ve&&(queueMicrotask(Ht),ve=!1)},he=!0,ve=!0,ce=[],$e=[],Be=ue,me={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ae,pgp:!1,env:{},finalize:ae},Fe=me,Xe=[],ze=0,qe=[];function Ge(z){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var ee=this._PSD=Fe;if(typeof z!="function"){if(z!==be)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&ut(this,this._value))}this._state=null,this._value=null,++ee.ref,function le(Se,Ie){try{Ie(function(Pe){if(Se._state===null){if(Pe===Se)throw new TypeError("A promise cannot be resolved with itself.");var He=Se._lib&&xt();Pe&&typeof Pe.then=="function"?le(Se,function(Ye,tt){Pe instanceof Ge?Pe._then(Ye,tt):Pe.then(Ye,tt)}):(Se._state=!0,Se._value=Pe,ft(Se)),He&&Nt()}},ut.bind(null,Se))}catch(Pe){ut(Se,Pe)}}(this,z)}var We={get:function(){var z=Fe,ee=Mt;function le(Se,Ie){var Pe=this,He=!z.global&&(z!==Fe||ee!==Mt),Ye=He&&!Gt(),tt=new Ge(function(ot,dt){bt(Pe,new Lt(Et(Se,z,He,Ye),Et(Ie,z,He,Ye),ot,dt,z))});return this._consoleTask&&(tt._consoleTask=this._consoleTask),tt}return le.prototype=be,le},set:function(z){h(this,"then",z&&z.prototype===be?We:{get:function(){return z},set:We.set})}};function Lt(z,ee,le,Se,Ie){this.onFulfilled=typeof z=="function"?z:null,this.onRejected=typeof ee=="function"?ee:null,this.resolve=le,this.reject=Se,this.psd=Ie}function ut(z,ee){var le,Se;$e.push(ee),z._state===null&&(le=z._lib&&xt(),ee=Be(ee),z._state=!1,z._value=ee,Se=z,ce.some(function(Ie){return Ie._value===Se._value})||ce.push(Se),ft(z),le&&Nt())}function ft(z){var ee=z._listeners;z._listeners=[];for(var le=0,Se=ee.length;le<Se;++le)bt(z,ee[le]);var Ie=z._PSD;--Ie.ref||Ie.finalize(),ze===0&&(++ze,J(function(){--ze==0&&Vt()},[]))}function bt(z,ee){if(z._state!==null){var le=z._state?ee.onFulfilled:ee.onRejected;if(le===null)return(z._state?ee.resolve:ee.reject)(z._value);++ee.psd.ref,++ze,J(St,[le,z,ee])}else z._listeners.push(ee)}function St(z,ee,le){try{var Se,Ie=ee._value;!ee._state&&$e.length&&($e=[]),Se=Ce&&ee._consoleTask?ee._consoleTask.run(function(){return z(Ie)}):z(Ie),ee._state||$e.indexOf(Ie)!==-1||function(Pe){for(var He=ce.length;He;)if(ce[--He]._value===Pe._value)return ce.splice(He,1)}(ee),le.resolve(Se)}catch(Pe){le.reject(Pe)}finally{--ze==0&&Vt(),--le.psd.ref||le.psd.finalize()}}function Ht(){Wt(me,function(){xt()&&Nt()})}function xt(){var z=he;return ve=he=!1,z}function Nt(){var z,ee,le;do for(;0<Xe.length;)for(z=Xe,Xe=[],le=z.length,ee=0;ee<le;++ee){var Se=z[ee];Se[0].apply(null,Se[1])}while(0<Xe.length);ve=he=!0}function Vt(){var z=ce;ce=[],z.forEach(function(Se){Se._PSD.onunhandled.call(null,Se._value,Se)});for(var ee=qe.slice(0),le=ee.length;le;)ee[--le]()}function Ue(z){return new Ge(be,!1,z)}function Ve(z,ee){var le=Fe;return function(){var Se=xt(),Ie=Fe;try{return pt(le,!0),z.apply(this,arguments)}catch(Pe){ee&&ee(Pe)}finally{pt(Ie,!1),Se&&Nt()}}}f(Ge.prototype,{then:We,_then:function(z,ee){bt(this,new Lt(null,null,z,ee,Fe))},catch:function(z){if(arguments.length===1)return this.then(null,z);var ee=z,le=arguments[1];return typeof ee=="function"?this.then(null,function(Se){return(Se instanceof ee?le:Ue)(Se)}):this.then(null,function(Se){return(Se&&Se.name===ee?le:Ue)(Se)})},finally:function(z){return this.then(function(ee){return Ge.resolve(z()).then(function(){return ee})},function(ee){return Ge.resolve(z()).then(function(){return Ue(ee)})})},timeout:function(z,ee){var le=this;return z<1/0?new Ge(function(Se,Ie){var Pe=setTimeout(function(){return Ie(new Z.Timeout(ee))},z);le.then(Se,Ie).finally(clearTimeout.bind(null,Pe))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&h(Ge.prototype,Symbol.toStringTag,"Dexie.Promise"),me.env=Dt(),f(Ge,{all:function(){var z=V.apply(null,arguments).map($t);return new Ge(function(ee,le){z.length===0&&ee([]);var Se=z.length;z.forEach(function(Ie,Pe){return Ge.resolve(Ie).then(function(He){z[Pe]=He,--Se||ee(z)},le)})})},resolve:function(z){return z instanceof Ge?z:z&&typeof z.then=="function"?new Ge(function(ee,le){z.then(ee,le)}):new Ge(be,!0,z)},reject:Ue,race:function(){var z=V.apply(null,arguments).map($t);return new Ge(function(ee,le){z.map(function(Se){return Ge.resolve(Se).then(ee,le)})})},PSD:{get:function(){return Fe},set:function(z){return Fe=z}},totalEchoes:{get:function(){return Mt}},newPSD:jt,usePSD:Wt,scheduler:{get:function(){return J},set:function(z){J=z}},rejectionMapper:{get:function(){return Be},set:function(z){Be=z}},follow:function(z,ee){return new Ge(function(le,Se){return jt(function(Ie,Pe){var He=Fe;He.unhandleds=[],He.onunhandled=Pe,He.finalize=se(function(){var Ye,tt=this;Ye=function(){tt.unhandleds.length===0?Ie():Pe(tt.unhandleds[0])},qe.push(function ot(){Ye(),qe.splice(qe.indexOf(ot),1)}),++ze,J(function(){--ze==0&&Vt()},[])},He.finalize),z()},ee,le,Se)})}}),X&&(X.allSettled&&h(Ge,"allSettled",function(){var z=V.apply(null,arguments).map($t);return new Ge(function(ee){z.length===0&&ee([]);var le=z.length,Se=new Array(le);z.forEach(function(Ie,Pe){return Ge.resolve(Ie).then(function(He){return Se[Pe]={status:"fulfilled",value:He}},function(He){return Se[Pe]={status:"rejected",reason:He}}).then(function(){return--le||ee(Se)})})})}),X.any&&typeof AggregateError<"u"&&h(Ge,"any",function(){var z=V.apply(null,arguments).map($t);return new Ge(function(ee,le){z.length===0&&le(new AggregateError([]));var Se=z.length,Ie=new Array(Se);z.forEach(function(Pe,He){return Ge.resolve(Pe).then(function(Ye){return ee(Ye)},function(Ye){Ie[He]=Ye,--Se||le(new AggregateError(Ie))})})})}),X.withResolvers&&(Ge.withResolvers=X.withResolvers));var je={awaits:0,echoes:0,id:0},et=0,_t=[],vt=0,Mt=0,wt=0;function jt(z,ee,le,Se){var Ie=Fe,Pe=Object.create(Ie);return Pe.parent=Ie,Pe.ref=0,Pe.global=!1,Pe.id=++wt,me.env,Pe.env=Y?{Promise:Ge,PromiseProp:{value:Ge,configurable:!0,writable:!0},all:Ge.all,race:Ge.race,allSettled:Ge.allSettled,any:Ge.any,resolve:Ge.resolve,reject:Ge.reject}:{},ee&&l(Pe,ee),++Ie.ref,Pe.finalize=function(){--this.parent.ref||this.parent.finalize()},Se=Wt(Pe,z,le,Se),Pe.ref===0&&Pe.finalize(),Se}function zt(){return je.id||(je.id=++et),++je.awaits,je.echoes+=Ee,je.id}function Gt(){return!!je.awaits&&(--je.awaits==0&&(je.id=0),je.echoes=je.awaits*Ee,!0)}function $t(z){return je.echoes&&z&&z.constructor===X?(zt(),z.then(function(ee){return Gt(),ee},function(ee){return Gt(),Ft(ee)})):z}function on(){var z=_t[_t.length-1];_t.pop(),pt(z,!1)}function pt(z,ee){var le,Se=Fe;(ee?!je.echoes||vt++&&z===Fe:!vt||--vt&&z===Fe)||queueMicrotask(ee?(function(Ie){++Mt,je.echoes&&--je.echoes!=0||(je.echoes=je.awaits=je.id=0),_t.push(Fe),pt(Ie,!0)}).bind(null,z):on),z!==Fe&&(Fe=z,Se===me&&(me.env=Dt()),Y&&(le=me.env.Promise,ee=z.env,(Se.global||z.global)&&(Object.defineProperty(o,"Promise",ee.PromiseProp),le.all=ee.all,le.race=ee.race,le.resolve=ee.resolve,le.reject=ee.reject,ee.allSettled&&(le.allSettled=ee.allSettled),ee.any&&(le.any=ee.any))))}function Dt(){var z=o.Promise;return Y?{Promise:z,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:z.all,race:z.race,allSettled:z.allSettled,any:z.any,resolve:z.resolve,reject:z.reject}:{}}function Wt(z,ee,le,Se,Ie){var Pe=Fe;try{return pt(z,!0),ee(le,Se,Ie)}finally{pt(Pe,!1)}}function Et(z,ee,le,Se){return typeof z!="function"?z:function(){var Ie=Fe;le&&zt(),pt(ee,!0);try{return z.apply(this,arguments)}finally{pt(Ie,!1),Se&&queueMicrotask(Gt)}}}function yt(z){Promise===X&&je.echoes===0?vt===0?z():enqueueNativeMicroTask(z):setTimeout(z,0)}(""+_c).indexOf("[native code]")===-1&&(zt=Gt=ae);var Ft=Ge.reject,Ae="",kt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",nt="String expected.",Rt=[],Tt="__dbnames",xn="readonly",Un="readwrite";function O(z,ee){return z?ee?function(){return z.apply(this,arguments)&&ee.apply(this,arguments)}:z:ee}var j={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function te(z){return typeof z!="string"||/\./.test(z)?function(ee){return ee}:function(ee){return ee[z]===void 0&&z in ee&&delete(ee=P(ee))[z],ee}}function we(){throw Z.Type()}function Le(z,ee){try{var le=Je(z),Se=Je(ee);if(le!==Se)return le==="Array"?1:Se==="Array"?-1:le==="binary"?1:Se==="binary"?-1:le==="string"?1:Se==="string"?-1:le==="Date"?1:Se!=="Date"?NaN:-1;switch(le){case"number":case"Date":case"string":return ee<z?1:z<ee?-1:0;case"binary":return function(Ie,Pe){for(var He=Ie.length,Ye=Pe.length,tt=He<Ye?He:Ye,ot=0;ot<tt;++ot)if(Ie[ot]!==Pe[ot])return Ie[ot]<Pe[ot]?-1:1;return He===Ye?0:He<Ye?-1:1}(At(z),At(ee));case"Array":return function(Ie,Pe){for(var He=Ie.length,Ye=Pe.length,tt=He<Ye?He:Ye,ot=0;ot<tt;++ot){var dt=Le(Ie[ot],Pe[ot]);if(dt!==0)return dt}return He===Ye?0:He<Ye?-1:1}(z,ee)}}catch{}return NaN}function Je(z){var ee=typeof z;return ee!="object"?ee:ArrayBuffer.isView(z)?"binary":(z=F(z),z==="ArrayBuffer"?"binary":z)}function At(z){return z instanceof Uint8Array?z:ArrayBuffer.isView(z)?new Uint8Array(z.buffer,z.byteOffset,z.byteLength):new Uint8Array(z)}var dn=(Mn.prototype._trans=function(z,ee,le){var Se=this._tx||Fe.trans,Ie=this.name,Pe=Ce&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(z==="readonly"?"read":"write"," ").concat(this.name));function He(ot,dt,Ke){if(!Ke.schema[Ie])throw new Z.NotFound("Table "+Ie+" not part of transaction");return ee(Ke.idbtrans,Ke)}var Ye=xt();try{var tt=Se&&Se.db._novip===this.db._novip?Se===Fe.trans?Se._promise(z,He,le):jt(function(){return Se._promise(z,He,le)},{trans:Se,transless:Fe.transless||Fe}):function ot(dt,Ke,ht,rt){if(dt.idbdb&&(dt._state.openComplete||Fe.letThrough||dt._vip)){var ct=dt._createTransaction(Ke,ht,dt._dbSchema);try{ct.create(),dt._state.PR1398_maxLoop=3}catch(mt){return mt.name===A.InvalidState&&dt.isOpen()&&0<--dt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),dt.close({disableAutoOpen:!1}),dt.open().then(function(){return ot(dt,Ke,ht,rt)})):Ft(mt)}return ct._promise(Ke,function(mt,st){return jt(function(){return Fe.trans=ct,rt(mt,st,ct)})}).then(function(mt){if(Ke==="readwrite")try{ct.idbtrans.commit()}catch{}return Ke==="readonly"?mt:ct._completion.then(function(){return mt})})}if(dt._state.openComplete)return Ft(new Z.DatabaseClosed(dt._state.dbOpenError));if(!dt._state.isBeingOpened){if(!dt._state.autoOpen)return Ft(new Z.DatabaseClosed);dt.open().catch(ae)}return dt._state.dbReadyPromise.then(function(){return ot(dt,Ke,ht,rt)})}(this.db,z,[this.name],He);return Pe&&(tt._consoleTask=Pe,tt=tt.catch(function(ot){return console.trace(ot),Ft(ot)})),tt}finally{Ye&&Nt()}},Mn.prototype.get=function(z,ee){var le=this;return z&&z.constructor===Object?this.where(z).first(ee):z==null?Ft(new Z.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Se){return le.core.get({trans:Se,key:z}).then(function(Ie){return le.hook.reading.fire(Ie)})}).then(ee)},Mn.prototype.where=function(z){if(typeof z=="string")return new this.db.WhereClause(this,z);if(s(z))return new this.db.WhereClause(this,"[".concat(z.join("+"),"]"));var ee=a(z);if(ee.length===1)return this.where(ee[0]).equals(z[ee[0]]);var le=this.schema.indexes.concat(this.schema.primKey).filter(function(Ye){if(Ye.compound&&ee.every(function(ot){return 0<=Ye.keyPath.indexOf(ot)})){for(var tt=0;tt<ee.length;++tt)if(ee.indexOf(Ye.keyPath[tt])===-1)return!1;return!0}return!1}).sort(function(Ye,tt){return Ye.keyPath.length-tt.keyPath.length})[0];if(le&&this.db._maxKey!==Ae){var Pe=le.keyPath.slice(0,ee.length);return this.where(Pe).equals(Pe.map(function(tt){return z[tt]}))}!le&&Ce&&console.warn("The query ".concat(JSON.stringify(z)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(ee.join("+"),"]"));var Se=this.schema.idxByName;function Ie(Ye,tt){return Le(Ye,tt)===0}var He=ee.reduce(function(Ke,tt){var ot=Ke[0],dt=Ke[1],Ke=Se[tt],ht=z[tt];return[ot||Ke,ot||!Ke?O(dt,Ke&&Ke.multi?function(rt){return rt=E(rt,tt),s(rt)&&rt.some(function(ct){return Ie(ht,ct)})}:function(rt){return Ie(ht,E(rt,tt))}):dt]},[null,null]),Pe=He[0],He=He[1];return Pe?this.where(Pe.name).equals(z[Pe.keyPath]).filter(He):le?this.filter(He):this.where(ee).equals("")},Mn.prototype.filter=function(z){return this.toCollection().and(z)},Mn.prototype.count=function(z){return this.toCollection().count(z)},Mn.prototype.offset=function(z){return this.toCollection().offset(z)},Mn.prototype.limit=function(z){return this.toCollection().limit(z)},Mn.prototype.each=function(z){return this.toCollection().each(z)},Mn.prototype.toArray=function(z){return this.toCollection().toArray(z)},Mn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Mn.prototype.orderBy=function(z){return new this.db.Collection(new this.db.WhereClause(this,s(z)?"[".concat(z.join("+"),"]"):z))},Mn.prototype.reverse=function(){return this.toCollection().reverse()},Mn.prototype.mapToClass=function(z){var ee,le=this.db,Se=this.name;function Ie(){return ee!==null&&ee.apply(this,arguments)||this}(this.schema.mappedClass=z).prototype instanceof we&&(function(tt,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Class extends value "+String(ot)+" is not a constructor or null");function dt(){this.constructor=tt}n(tt,ot),tt.prototype=ot===null?Object.create(ot):(dt.prototype=ot.prototype,new dt)}(Ie,ee=z),Object.defineProperty(Ie.prototype,"db",{get:function(){return le},enumerable:!1,configurable:!0}),Ie.prototype.table=function(){return Se},z=Ie);for(var Pe=new Set,He=z.prototype;He;He=c(He))Object.getOwnPropertyNames(He).forEach(function(tt){return Pe.add(tt)});function Ye(tt){if(!tt)return tt;var ot,dt=Object.create(z.prototype);for(ot in tt)if(!Pe.has(ot))try{dt[ot]=tt[ot]}catch{}return dt}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=Ye,this.hook("reading",Ye),z},Mn.prototype.defineClass=function(){return this.mapToClass(function(z){l(this,z)})},Mn.prototype.add=function(z,ee){var le=this,Se=this.schema.primKey,Ie=Se.auto,Pe=Se.keyPath,He=z;return Pe&&Ie&&(He=te(Pe)(z)),this._trans("readwrite",function(Ye){return le.core.mutate({trans:Ye,type:"add",keys:ee!=null?[ee]:null,values:[He]})}).then(function(Ye){return Ye.numFailures?Ge.reject(Ye.failures[0]):Ye.lastResult}).then(function(Ye){if(Pe)try{w(z,Pe,Ye)}catch{}return Ye})},Mn.prototype.update=function(z,ee){return typeof z!="object"||s(z)?this.where(":id").equals(z).modify(ee):(z=E(z,this.schema.primKey.keyPath),z===void 0?Ft(new Z.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(z).modify(ee))},Mn.prototype.put=function(z,ee){var le=this,Se=this.schema.primKey,Ie=Se.auto,Pe=Se.keyPath,He=z;return Pe&&Ie&&(He=te(Pe)(z)),this._trans("readwrite",function(Ye){return le.core.mutate({trans:Ye,type:"put",values:[He],keys:ee!=null?[ee]:null})}).then(function(Ye){return Ye.numFailures?Ge.reject(Ye.failures[0]):Ye.lastResult}).then(function(Ye){if(Pe)try{w(z,Pe,Ye)}catch{}return Ye})},Mn.prototype.delete=function(z){var ee=this;return this._trans("readwrite",function(le){return ee.core.mutate({trans:le,type:"delete",keys:[z]})}).then(function(le){return le.numFailures?Ge.reject(le.failures[0]):void 0})},Mn.prototype.clear=function(){var z=this;return this._trans("readwrite",function(ee){return z.core.mutate({trans:ee,type:"deleteRange",range:j})}).then(function(ee){return ee.numFailures?Ge.reject(ee.failures[0]):void 0})},Mn.prototype.bulkGet=function(z){var ee=this;return this._trans("readonly",function(le){return ee.core.getMany({keys:z,trans:le}).then(function(Se){return Se.map(function(Ie){return ee.hook.reading.fire(Ie)})})})},Mn.prototype.bulkAdd=function(z,ee,le){var Se=this,Ie=Array.isArray(ee)?ee:void 0,Pe=(le=le||(Ie?void 0:ee))?le.allKeys:void 0;return this._trans("readwrite",function(He){var ot=Se.schema.primKey,Ye=ot.auto,ot=ot.keyPath;if(ot&&Ie)throw new Z.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(Ie&&Ie.length!==z.length)throw new Z.InvalidArgument("Arguments objects and keys must have the same length");var tt=z.length,ot=ot&&Ye?z.map(te(ot)):z;return Se.core.mutate({trans:He,type:"add",keys:Ie,values:ot,wantResults:Pe}).then(function(ct){var Ke=ct.numFailures,ht=ct.results,rt=ct.lastResult,ct=ct.failures;if(Ke===0)return Pe?ht:rt;throw new Q("".concat(Se.name,".bulkAdd(): ").concat(Ke," of ").concat(tt," operations failed"),ct)})})},Mn.prototype.bulkPut=function(z,ee,le){var Se=this,Ie=Array.isArray(ee)?ee:void 0,Pe=(le=le||(Ie?void 0:ee))?le.allKeys:void 0;return this._trans("readwrite",function(He){var ot=Se.schema.primKey,Ye=ot.auto,ot=ot.keyPath;if(ot&&Ie)throw new Z.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(Ie&&Ie.length!==z.length)throw new Z.InvalidArgument("Arguments objects and keys must have the same length");var tt=z.length,ot=ot&&Ye?z.map(te(ot)):z;return Se.core.mutate({trans:He,type:"put",keys:Ie,values:ot,wantResults:Pe}).then(function(ct){var Ke=ct.numFailures,ht=ct.results,rt=ct.lastResult,ct=ct.failures;if(Ke===0)return Pe?ht:rt;throw new Q("".concat(Se.name,".bulkPut(): ").concat(Ke," of ").concat(tt," operations failed"),ct)})})},Mn.prototype.bulkUpdate=function(z){var ee=this,le=this.core,Se=z.map(function(He){return He.key}),Ie=z.map(function(He){return He.changes}),Pe=[];return this._trans("readwrite",function(He){return le.getMany({trans:He,keys:Se,cache:"clone"}).then(function(Ye){var tt=[],ot=[];z.forEach(function(Ke,ht){var rt=Ke.key,ct=Ke.changes,mt=Ye[ht];if(mt){for(var st=0,Ct=Object.keys(ct);st<Ct.length;st++){var Ot=Ct[st],Pt=ct[Ot];if(Ot===ee.schema.primKey.keyPath){if(Le(Pt,rt)!==0)throw new Z.Constraint("Cannot update primary key in bulkUpdate()")}else w(mt,Ot,Pt)}Pe.push(ht),tt.push(rt),ot.push(mt)}});var dt=tt.length;return le.mutate({trans:He,type:"put",keys:tt,values:ot,updates:{keys:Se,changeSpecs:Ie}}).then(function(Ke){var ht=Ke.numFailures,rt=Ke.failures;if(ht===0)return dt;for(var ct=0,mt=Object.keys(rt);ct<mt.length;ct++){var st,Ct=mt[ct],Ot=Pe[Number(Ct)];Ot!=null&&(st=rt[Ct],delete rt[Ct],rt[Ot]=st)}throw new Q("".concat(ee.name,".bulkUpdate(): ").concat(ht," of ").concat(dt," operations failed"),rt)})})})},Mn.prototype.bulkDelete=function(z){var ee=this,le=z.length;return this._trans("readwrite",function(Se){return ee.core.mutate({trans:Se,type:"delete",keys:z})}).then(function(He){var Ie=He.numFailures,Pe=He.lastResult,He=He.failures;if(Ie===0)return Pe;throw new Q("".concat(ee.name,".bulkDelete(): ").concat(Ie," of ").concat(le," operations failed"),He)})},Mn);function Mn(){}function Kr(z){function ee(He,Ye){if(Ye){for(var tt=arguments.length,ot=new Array(tt-1);--tt;)ot[tt-1]=arguments[tt];return le[He].subscribe.apply(null,ot),z}if(typeof He=="string")return le[He]}var le={};ee.addEventType=Pe;for(var Se=1,Ie=arguments.length;Se<Ie;++Se)Pe(arguments[Se]);return ee;function Pe(He,Ye,tt){if(typeof He!="object"){var ot;Ye=Ye||xe;var dt={subscribers:[],fire:tt=tt||ae,subscribe:function(Ke){dt.subscribers.indexOf(Ke)===-1&&(dt.subscribers.push(Ke),dt.fire=Ye(dt.fire,Ke))},unsubscribe:function(Ke){dt.subscribers=dt.subscribers.filter(function(ht){return ht!==Ke}),dt.fire=dt.subscribers.reduce(Ye,tt)}};return le[He]=ee[He]=dt}a(ot=He).forEach(function(Ke){var ht=ot[Ke];if(s(ht))Pe(Ke,ot[Ke][0],ot[Ke][1]);else{if(ht!=="asap")throw new Z.InvalidArgument("Invalid event config");var rt=Pe(Ke,ue,function(){for(var ct=arguments.length,mt=new Array(ct);ct--;)mt[ct]=arguments[ct];rt.subscribers.forEach(function(st){C(function(){st.apply(null,mt)})})})}})}}function Ur(z,ee){return g(ee).from({prototype:z}),ee}function di(z,ee){return!(z.filter||z.algorithm||z.or)&&(ee?z.justLimit:!z.replayFilter)}function Sr(z,ee){z.filter=O(z.filter,ee)}function cn(z,ee,le){var Se=z.replayFilter;z.replayFilter=Se?function(){return O(Se(),ee())}:ee,z.justLimit=le&&!Se}function vn(z,ee){if(z.isPrimKey)return ee.primaryKey;var le=ee.getIndexByKeyPath(z.index);if(!le)throw new Z.Schema("KeyPath "+z.index+" on object store "+ee.name+" is not indexed");return le}function Rr(z,ee,le){var Se=vn(z,ee.schema);return ee.openCursor({trans:le,values:!z.keysOnly,reverse:z.dir==="prev",unique:!!z.unique,query:{index:Se,range:z.range}})}function tn(z,ee,le,Se){var Ie=z.replayFilter?O(z.filter,z.replayFilter()):z.filter;if(z.or){var Pe={},He=function(Ye,tt,ot){var dt,Ke;Ie&&!Ie(tt,ot,function(ht){return tt.stop(ht)},function(ht){return tt.fail(ht)})||((Ke=""+(dt=tt.primaryKey))=="[object ArrayBuffer]"&&(Ke=""+new Uint8Array(dt)),d(Pe,Ke)||(Pe[Ke]=!0,ee(Ye,tt,ot)))};return Promise.all([z.or._iterate(He,le),rn(Rr(z,Se,le),z.algorithm,He,!z.keysOnly&&z.valueMapper)])}return rn(Rr(z,Se,le),O(z.algorithm,Ie),ee,!z.keysOnly&&z.valueMapper)}function rn(z,ee,le,Se){var Ie=Ve(Se?function(Pe,He,Ye){return le(Se(Pe),He,Ye)}:le);return z.then(function(Pe){if(Pe)return Pe.start(function(){var He=function(){return Pe.continue()};ee&&!ee(Pe,function(Ye){return He=Ye},function(Ye){Pe.stop(Ye),He=ae},function(Ye){Pe.fail(Ye),He=ae})||Ie(Pe.value,Pe,function(Ye){return He=Ye}),He()})})}var jn=Symbol(),vr=(ai.prototype.execute=function(z){if(this.add!==void 0){var ee=this.add;if(s(ee))return i(i([],s(z)?z:[],!0),ee).sort();if(typeof ee=="number")return(Number(z)||0)+ee;if(typeof ee=="bigint")try{return BigInt(z)+ee}catch{return BigInt(0)+ee}throw new TypeError("Invalid term ".concat(ee))}if(this.remove!==void 0){var le=this.remove;if(s(le))return s(z)?z.filter(function(Se){return!le.includes(Se)}).sort():[];if(typeof le=="number")return Number(z)-le;if(typeof le=="bigint")try{return BigInt(z)-le}catch{return BigInt(0)-le}throw new TypeError("Invalid subtrahend ".concat(le))}return ee=(ee=this.replacePrefix)===null||ee===void 0?void 0:ee[0],ee&&typeof z=="string"&&z.startsWith(ee)?this.replacePrefix[1]+z.substring(ee.length):z},ai);function ai(z){Object.assign(this,z)}var co=(Xn.prototype._read=function(z,ee){var le=this._ctx;return le.error?le.table._trans(null,Ft.bind(null,le.error)):le.table._trans("readonly",z).then(ee)},Xn.prototype._write=function(z){var ee=this._ctx;return ee.error?ee.table._trans(null,Ft.bind(null,ee.error)):ee.table._trans("readwrite",z,"locked")},Xn.prototype._addAlgorithm=function(z){var ee=this._ctx;ee.algorithm=O(ee.algorithm,z)},Xn.prototype._iterate=function(z,ee){return tn(this._ctx,z,ee,this._ctx.table.core)},Xn.prototype.clone=function(z){var ee=Object.create(this.constructor.prototype),le=Object.create(this._ctx);return z&&l(le,z),ee._ctx=le,ee},Xn.prototype.raw=function(){return this._ctx.valueMapper=null,this},Xn.prototype.each=function(z){var ee=this._ctx;return this._read(function(le){return tn(ee,z,le,ee.table.core)})},Xn.prototype.count=function(z){var ee=this;return this._read(function(le){var Se=ee._ctx,Ie=Se.table.core;if(di(Se,!0))return Ie.count({trans:le,query:{index:vn(Se,Ie.schema),range:Se.range}}).then(function(He){return Math.min(He,Se.limit)});var Pe=0;return tn(Se,function(){return++Pe,!1},le,Ie).then(function(){return Pe})}).then(z)},Xn.prototype.sortBy=function(z,ee){var le=z.split(".").reverse(),Se=le[0],Ie=le.length-1;function Pe(tt,ot){return ot?Pe(tt[le[ot]],ot-1):tt[Se]}var He=this._ctx.dir==="next"?1:-1;function Ye(tt,ot){return Le(Pe(tt,Ie),Pe(ot,Ie))*He}return this.toArray(function(tt){return tt.sort(Ye)}).then(ee)},Xn.prototype.toArray=function(z){var ee=this;return this._read(function(le){var Se=ee._ctx;if(Se.dir==="next"&&di(Se,!0)&&0<Se.limit){var Ie=Se.valueMapper,Pe=vn(Se,Se.table.core.schema);return Se.table.core.query({trans:le,limit:Se.limit,values:!0,query:{index:Pe,range:Se.range}}).then(function(Ye){return Ye=Ye.result,Ie?Ye.map(Ie):Ye})}var He=[];return tn(Se,function(Ye){return He.push(Ye)},le,Se.table.core).then(function(){return He})},z)},Xn.prototype.offset=function(z){var ee=this._ctx;return z<=0||(ee.offset+=z,di(ee)?cn(ee,function(){var le=z;return function(Se,Ie){return le===0||(le===1?--le:Ie(function(){Se.advance(le),le=0}),!1)}}):cn(ee,function(){var le=z;return function(){return--le<0}})),this},Xn.prototype.limit=function(z){return this._ctx.limit=Math.min(this._ctx.limit,z),cn(this._ctx,function(){var ee=z;return function(le,Se,Ie){return--ee<=0&&Se(Ie),0<=ee}},!0),this},Xn.prototype.until=function(z,ee){return Sr(this._ctx,function(le,Se,Ie){return!z(le.value)||(Se(Ie),ee)}),this},Xn.prototype.first=function(z){return this.limit(1).toArray(function(ee){return ee[0]}).then(z)},Xn.prototype.last=function(z){return this.reverse().first(z)},Xn.prototype.filter=function(z){var ee;return Sr(this._ctx,function(le){return z(le.value)}),(ee=this._ctx).isMatch=O(ee.isMatch,z),this},Xn.prototype.and=function(z){return this.filter(z)},Xn.prototype.or=function(z){return new this.db.WhereClause(this._ctx.table,z,this)},Xn.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Xn.prototype.desc=function(){return this.reverse()},Xn.prototype.eachKey=function(z){var ee=this._ctx;return ee.keysOnly=!ee.isMatch,this.each(function(le,Se){z(Se.key,Se)})},Xn.prototype.eachUniqueKey=function(z){return this._ctx.unique="unique",this.eachKey(z)},Xn.prototype.eachPrimaryKey=function(z){var ee=this._ctx;return ee.keysOnly=!ee.isMatch,this.each(function(le,Se){z(Se.primaryKey,Se)})},Xn.prototype.keys=function(z){var ee=this._ctx;ee.keysOnly=!ee.isMatch;var le=[];return this.each(function(Se,Ie){le.push(Ie.key)}).then(function(){return le}).then(z)},Xn.prototype.primaryKeys=function(z){var ee=this._ctx;if(ee.dir==="next"&&di(ee,!0)&&0<ee.limit)return this._read(function(Se){var Ie=vn(ee,ee.table.core.schema);return ee.table.core.query({trans:Se,values:!1,limit:ee.limit,query:{index:Ie,range:ee.range}})}).then(function(Se){return Se.result}).then(z);ee.keysOnly=!ee.isMatch;var le=[];return this.each(function(Se,Ie){le.push(Ie.primaryKey)}).then(function(){return le}).then(z)},Xn.prototype.uniqueKeys=function(z){return this._ctx.unique="unique",this.keys(z)},Xn.prototype.firstKey=function(z){return this.limit(1).keys(function(ee){return ee[0]}).then(z)},Xn.prototype.lastKey=function(z){return this.reverse().firstKey(z)},Xn.prototype.distinct=function(){var z=this._ctx,z=z.index&&z.table.schema.idxByName[z.index];if(!z||!z.multi)return this;var ee={};return Sr(this._ctx,function(Ie){var Se=Ie.primaryKey.toString(),Ie=d(ee,Se);return ee[Se]=!0,!Ie}),this},Xn.prototype.modify=function(z){var ee=this,le=this._ctx;return this._write(function(Se){var Ie,Pe,He;He=typeof z=="function"?z:(Ie=a(z),Pe=Ie.length,function(st){for(var Ct=!1,Ot=0;Ot<Pe;++Ot){var Pt=Ie[Ot],Yt=z[Pt],pn=E(st,Pt);Yt instanceof vr?(w(st,Pt,Yt.execute(pn)),Ct=!0):pn!==Yt&&(w(st,Pt,Yt),Ct=!0)}return Ct});var Ye=le.table.core,Ke=Ye.schema.primaryKey,tt=Ke.outbound,ot=Ke.extractKey,dt=200,Ke=ee.db._options.modifyChunkSize;Ke&&(dt=typeof Ke=="object"?Ke[Ye.name]||Ke["*"]||200:Ke);function ht(st,Pt){var Ot=Pt.failures,Pt=Pt.numFailures;ct+=st-Pt;for(var Yt=0,pn=a(Ot);Yt<pn.length;Yt++){var yn=pn[Yt];rt.push(Ot[yn])}}var rt=[],ct=0,mt=[];return ee.clone().primaryKeys().then(function(st){function Ct(Pt){var Yt=Math.min(dt,st.length-Pt);return Ye.getMany({trans:Se,keys:st.slice(Pt,Pt+Yt),cache:"immutable"}).then(function(pn){for(var yn=[],mn=[],gn=tt?[]:null,En=[],_n=0;_n<Yt;++_n){var Dn=pn[_n],Or={value:P(Dn),primKey:st[Pt+_n]};He.call(Or,Or.value,Or)!==!1&&(Or.value==null?En.push(st[Pt+_n]):tt||Le(ot(Dn),ot(Or.value))===0?(mn.push(Or.value),tt&&gn.push(st[Pt+_n])):(En.push(st[Pt+_n]),yn.push(Or.value)))}return Promise.resolve(0<yn.length&&Ye.mutate({trans:Se,type:"add",values:yn}).then(function($r){for(var Fr in $r.failures)En.splice(parseInt(Fr),1);ht(yn.length,$r)})).then(function(){return(0<mn.length||Ot&&typeof z=="object")&&Ye.mutate({trans:Se,type:"put",keys:gn,values:mn,criteria:Ot,changeSpec:typeof z!="function"&&z,isAdditionalChunk:0<Pt}).then(function($r){return ht(mn.length,$r)})}).then(function(){return(0<En.length||Ot&&z===Ni)&&Ye.mutate({trans:Se,type:"delete",keys:En,criteria:Ot,isAdditionalChunk:0<Pt}).then(function($r){return ht(En.length,$r)})}).then(function(){return st.length>Pt+Yt&&Ct(Pt+dt)})})}var Ot=di(le)&&le.limit===1/0&&(typeof z!="function"||z===Ni)&&{index:le.index,range:le.range};return Ct(0).then(function(){if(0<rt.length)throw new re("Error modifying one or more objects",rt,ct,mt);return st.length})})})},Xn.prototype.delete=function(){var z=this._ctx,ee=z.range;return di(z)&&(z.isPrimKey||ee.type===3)?this._write(function(le){var Se=z.table.core.schema.primaryKey,Ie=ee;return z.table.core.count({trans:le,query:{index:Se,range:Ie}}).then(function(Pe){return z.table.core.mutate({trans:le,type:"deleteRange",range:Ie}).then(function(He){var Ye=He.failures;if(He.lastResult,He.results,He=He.numFailures,He)throw new re("Could not delete some values",Object.keys(Ye).map(function(tt){return Ye[tt]}),Pe-He);return Pe-He})})}):this.modify(Ni)},Xn);function Xn(){}var Ni=function(z,ee){return ee.value=null};function Do(z,ee){return z<ee?-1:z===ee?0:1}function Kn(z,ee){return ee<z?-1:z===ee?0:1}function An(z,ee,le){return z=z instanceof ts?new z.Collection(z):z,z._ctx.error=new(le||TypeError)(ee),z}function Hn(z){return new z.Collection(z,function(){return es("")}).limit(0)}function _r(z,ee,le,Se){var Ie,Pe,He,Ye,tt,ot,dt,Ke=le.length;if(!le.every(function(ct){return typeof ct=="string"}))return An(z,nt);function ht(ct){Ie=ct==="next"?function(st){return st.toUpperCase()}:function(st){return st.toLowerCase()},Pe=ct==="next"?function(st){return st.toLowerCase()}:function(st){return st.toUpperCase()},He=ct==="next"?Do:Kn;var mt=le.map(function(st){return{lower:Pe(st),upper:Ie(st)}}).sort(function(st,Ct){return He(st.lower,Ct.lower)});Ye=mt.map(function(st){return st.upper}),tt=mt.map(function(st){return st.lower}),dt=(ot=ct)==="next"?"":Se}ht("next"),z=new z.Collection(z,function(){return Qr(Ye[0],tt[Ke-1]+Se)}),z._ondirectionchange=function(ct){ht(ct)};var rt=0;return z._addAlgorithm(function(ct,mt,st){var Ct=ct.key;if(typeof Ct!="string")return!1;var Ot=Pe(Ct);if(ee(Ot,tt,rt))return!0;for(var Pt=null,Yt=rt;Yt<Ke;++Yt){var pn=function(yn,mn,gn,En,_n,Dn){for(var Or=Math.min(yn.length,En.length),$r=-1,Fr=0;Fr<Or;++Fr){var wl=mn[Fr];if(wl!==En[Fr])return _n(yn[Fr],gn[Fr])<0?yn.substr(0,Fr)+gn[Fr]+gn.substr(Fr+1):_n(yn[Fr],En[Fr])<0?yn.substr(0,Fr)+En[Fr]+gn.substr(Fr+1):0<=$r?yn.substr(0,$r)+mn[$r]+gn.substr($r+1):null;_n(yn[Fr],wl)<0&&($r=Fr)}return Or<En.length&&Dn==="next"?yn+gn.substr(yn.length):Or<yn.length&&Dn==="prev"?yn.substr(0,gn.length):$r<0?null:yn.substr(0,$r)+En[$r]+gn.substr($r+1)}(Ct,Ot,Ye[Yt],tt[Yt],He,ot);pn===null&&Pt===null?rt=Yt+1:(Pt===null||0<He(Pt,pn))&&(Pt=pn)}return mt(Pt!==null?function(){ct.continue(Pt+dt)}:st),!1}),z}function Qr(z,ee,le,Se){return{type:2,lower:z,upper:ee,lowerOpen:le,upperOpen:Se}}function es(z){return{type:1,lower:z,upper:z}}var ts=(Object.defineProperty(Ci.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Ci.prototype.between=function(z,ee,le,Se){le=le!==!1,Se=Se===!0;try{return 0<this._cmp(z,ee)||this._cmp(z,ee)===0&&(le||Se)&&(!le||!Se)?Hn(this):new this.Collection(this,function(){return Qr(z,ee,!le,!Se)})}catch{return An(this,kt)}},Ci.prototype.equals=function(z){return z==null?An(this,kt):new this.Collection(this,function(){return es(z)})},Ci.prototype.above=function(z){return z==null?An(this,kt):new this.Collection(this,function(){return Qr(z,void 0,!0)})},Ci.prototype.aboveOrEqual=function(z){return z==null?An(this,kt):new this.Collection(this,function(){return Qr(z,void 0,!1)})},Ci.prototype.below=function(z){return z==null?An(this,kt):new this.Collection(this,function(){return Qr(void 0,z,!1,!0)})},Ci.prototype.belowOrEqual=function(z){return z==null?An(this,kt):new this.Collection(this,function(){return Qr(void 0,z)})},Ci.prototype.startsWith=function(z){return typeof z!="string"?An(this,nt):this.between(z,z+Ae,!0,!0)},Ci.prototype.startsWithIgnoreCase=function(z){return z===""?this.startsWith(z):_r(this,function(ee,le){return ee.indexOf(le[0])===0},[z],Ae)},Ci.prototype.equalsIgnoreCase=function(z){return _r(this,function(ee,le){return ee===le[0]},[z],"")},Ci.prototype.anyOfIgnoreCase=function(){var z=V.apply(G,arguments);return z.length===0?Hn(this):_r(this,function(ee,le){return le.indexOf(ee)!==-1},z,"")},Ci.prototype.startsWithAnyOfIgnoreCase=function(){var z=V.apply(G,arguments);return z.length===0?Hn(this):_r(this,function(ee,le){return le.some(function(Se){return ee.indexOf(Se)===0})},z,Ae)},Ci.prototype.anyOf=function(){var z=this,ee=V.apply(G,arguments),le=this._cmp;try{ee.sort(le)}catch{return An(this,kt)}if(ee.length===0)return Hn(this);var Se=new this.Collection(this,function(){return Qr(ee[0],ee[ee.length-1])});Se._ondirectionchange=function(Pe){le=Pe==="next"?z._ascending:z._descending,ee.sort(le)};var Ie=0;return Se._addAlgorithm(function(Pe,He,Ye){for(var tt=Pe.key;0<le(tt,ee[Ie]);)if(++Ie===ee.length)return He(Ye),!1;return le(tt,ee[Ie])===0||(He(function(){Pe.continue(ee[Ie])}),!1)}),Se},Ci.prototype.notEqual=function(z){return this.inAnyRange([[-1/0,z],[z,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Ci.prototype.noneOf=function(){var z=V.apply(G,arguments);if(z.length===0)return new this.Collection(this);try{z.sort(this._ascending)}catch{return An(this,kt)}var ee=z.reduce(function(le,Se){return le?le.concat([[le[le.length-1][1],Se]]):[[-1/0,Se]]},null);return ee.push([z[z.length-1],this.db._maxKey]),this.inAnyRange(ee,{includeLowers:!1,includeUppers:!1})},Ci.prototype.inAnyRange=function(Ct,ee){var le=this,Se=this._cmp,Ie=this._ascending,Pe=this._descending,He=this._min,Ye=this._max;if(Ct.length===0)return Hn(this);if(!Ct.every(function(Ot){return Ot[0]!==void 0&&Ot[1]!==void 0&&Ie(Ot[0],Ot[1])<=0}))return An(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Z.InvalidArgument);var tt=!ee||ee.includeLowers!==!1,ot=ee&&ee.includeUppers===!0,dt,Ke=Ie;function ht(Ot,Pt){return Ke(Ot[0],Pt[0])}try{(dt=Ct.reduce(function(Ot,Pt){for(var Yt=0,pn=Ot.length;Yt<pn;++Yt){var yn=Ot[Yt];if(Se(Pt[0],yn[1])<0&&0<Se(Pt[1],yn[0])){yn[0]=He(yn[0],Pt[0]),yn[1]=Ye(yn[1],Pt[1]);break}}return Yt===pn&&Ot.push(Pt),Ot},[])).sort(ht)}catch{return An(this,kt)}var rt=0,ct=ot?function(Ot){return 0<Ie(Ot,dt[rt][1])}:function(Ot){return 0<=Ie(Ot,dt[rt][1])},mt=tt?function(Ot){return 0<Pe(Ot,dt[rt][0])}:function(Ot){return 0<=Pe(Ot,dt[rt][0])},st=ct,Ct=new this.Collection(this,function(){return Qr(dt[0][0],dt[dt.length-1][1],!tt,!ot)});return Ct._ondirectionchange=function(Ot){Ke=Ot==="next"?(st=ct,Ie):(st=mt,Pe),dt.sort(ht)},Ct._addAlgorithm(function(Ot,Pt,Yt){for(var pn,yn=Ot.key;st(yn);)if(++rt===dt.length)return Pt(Yt),!1;return!ct(pn=yn)&&!mt(pn)||(le._cmp(yn,dt[rt][1])===0||le._cmp(yn,dt[rt][0])===0||Pt(function(){Ke===Ie?Ot.continue(dt[rt][0]):Ot.continue(dt[rt][1])}),!1)}),Ct},Ci.prototype.startsWithAnyOf=function(){var z=V.apply(G,arguments);return z.every(function(ee){return typeof ee=="string"})?z.length===0?Hn(this):this.inAnyRange(z.map(function(ee){return[ee,ee+Ae]})):An(this,"startsWithAnyOf() only works with strings")},Ci);function Ci(){}function wa(z){return Ve(function(ee){return gc(ee),z(ee.target.error),!1})}function gc(z){z.stopPropagation&&z.stopPropagation(),z.preventDefault&&z.preventDefault()}var vc="storagemutated",im="x-storagemutated-1",Tn=Kr(null,vc),ar=(Xr.prototype._lock=function(){return S(!Fe.global),++this._reculock,this._reculock!==1||Fe.global||(Fe.lockOwnerFor=this),this},Xr.prototype._unlock=function(){if(S(!Fe.global),--this._reculock==0)for(Fe.global||(Fe.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var z=this._blockedFuncs.shift();try{Wt(z[1],z[0])}catch{}}return this},Xr.prototype._locked=function(){return this._reculock&&Fe.lockOwnerFor!==this},Xr.prototype.create=function(z){var ee=this;if(!this.mode)return this;var le=this.db.idbdb,Se=this.db._state.dbOpenError;if(S(!this.idbtrans),!z&&!le)switch(Se&&Se.name){case"DatabaseClosedError":throw new Z.DatabaseClosed(Se);case"MissingAPIError":throw new Z.MissingAPI(Se.message,Se);default:throw new Z.OpenFailed(Se)}if(!this.active)throw new Z.TransactionInactive;return S(this._completion._state===null),(z=this.idbtrans=z||(this.db.core||le).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Ve(function(Ie){gc(Ie),ee._reject(z.error)}),z.onabort=Ve(function(Ie){gc(Ie),ee.active&&ee._reject(new Z.Abort(z.error)),ee.active=!1,ee.on("abort").fire(Ie)}),z.oncomplete=Ve(function(){ee.active=!1,ee._resolve(),"mutatedParts"in z&&Tn.storagemutated.fire(z.mutatedParts)}),this},Xr.prototype._promise=function(z,ee,le){var Se=this;if(z==="readwrite"&&this.mode!=="readwrite")return Ft(new Z.ReadOnly("Transaction is readonly"));if(!this.active)return Ft(new Z.TransactionInactive);if(this._locked())return new Ge(function(Pe,He){Se._blockedFuncs.push([function(){Se._promise(z,ee,le).then(Pe,He)},Fe])});if(le)return jt(function(){var Pe=new Ge(function(He,Ye){Se._lock();var tt=ee(He,Ye,Se);tt&&tt.then&&tt.then(He,Ye)});return Pe.finally(function(){return Se._unlock()}),Pe._lib=!0,Pe});var Ie=new Ge(function(Pe,He){var Ye=ee(Pe,He,Se);Ye&&Ye.then&&Ye.then(Pe,He)});return Ie._lib=!0,Ie},Xr.prototype._root=function(){return this.parent?this.parent._root():this},Xr.prototype.waitFor=function(z){var ee,le=this._root(),Se=Ge.resolve(z);le._waitingFor?le._waitingFor=le._waitingFor.then(function(){return Se}):(le._waitingFor=Se,le._waitingQueue=[],ee=le.idbtrans.objectStore(le.storeNames[0]),function Pe(){for(++le._spinCount;le._waitingQueue.length;)le._waitingQueue.shift()();le._waitingFor&&(ee.get(-1/0).onsuccess=Pe)}());var Ie=le._waitingFor;return new Ge(function(Pe,He){Se.then(function(Ye){return le._waitingQueue.push(Ve(Pe.bind(null,Ye)))},function(Ye){return le._waitingQueue.push(Ve(He.bind(null,Ye)))}).finally(function(){le._waitingFor===Ie&&(le._waitingFor=null)})})},Xr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Z.Abort))},Xr.prototype.table=function(z){var ee=this._memoizedTables||(this._memoizedTables={});if(d(ee,z))return ee[z];var le=this.schema[z];if(!le)throw new Z.NotFound("Table "+z+" not part of transaction");return le=new this.db.Table(z,le,this),le.core=this.db.core.table(z),ee[z]=le},Xr);function Xr(){}function uo(z,ee,le,Se,Ie,Pe,He){return{name:z,keyPath:ee,unique:le,multi:Se,auto:Ie,compound:Pe,src:(le&&!He?"&":"")+(Se?"*":"")+(Ie?"++":"")+Bi(ee)}}function Bi(z){return typeof z=="string"?z:z?"["+[].join.call(z,"+")+"]":""}function om(z,ee,le){return{name:z,primKey:ee,indexes:le,mappedClass:null,idxByName:(Se=function(Ie){return[Ie.name,Ie]},le.reduce(function(Ie,Pe,He){return He=Se(Pe,He),He&&(Ie[He[0]]=He[1]),Ie},{}))};var Se}var wf=function(z){try{return z.only([[]]),wf=function(){return[[]]},[[]]}catch{return wf=function(){return Ae},Ae}};function oy(z){return z==null?function(){}:typeof z=="string"?(ee=z).split(".").length===1?function(le){return le[ee]}:function(le){return E(le,ee)}:function(le){return E(le,z)};var ee}function pg(z){return[].slice.call(z)}var WFe=0;function rE(z){return z==null?":id":typeof z=="string"?z:"[".concat(z.join("+"),"]")}function YFe(z,ee,tt){function Se(st){if(st.type===3)return null;if(st.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var rt=st.lower,ct=st.upper,mt=st.lowerOpen,st=st.upperOpen;return rt===void 0?ct===void 0?null:ee.upperBound(ct,!!st):ct===void 0?ee.lowerBound(rt,!!mt):ee.bound(rt,ct,!!mt,!!st)}function Ie(ht){var rt,ct=ht.name;return{name:ct,schema:ht,mutate:function(mt){var st=mt.trans,Ct=mt.type,Ot=mt.keys,Pt=mt.values,Yt=mt.range;return new Promise(function(pn,yn){pn=Ve(pn);var mn=st.objectStore(ct),gn=mn.keyPath==null,En=Ct==="put"||Ct==="add";if(!En&&Ct!=="delete"&&Ct!=="deleteRange")throw new Error("Invalid operation type: "+Ct);var _n,Dn=(Ot||Pt||{length:1}).length;if(Ot&&Pt&&Ot.length!==Pt.length)throw new Error("Given keys array must have same length as given values array.");if(Dn===0)return pn({numFailures:0,failures:{},results:[],lastResult:void 0});function Or(ws){++wl,gc(ws)}var $r=[],Fr=[],wl=0;if(Ct==="deleteRange"){if(Yt.type===4)return pn({numFailures:wl,failures:Fr,results:[],lastResult:void 0});Yt.type===3?$r.push(_n=mn.clear()):$r.push(_n=mn.delete(Se(Yt)))}else{var gn=En?gn?[Pt,Ot]:[Pt,null]:[Ot,null],xr=gn[0],rs=gn[1];if(En)for(var is=0;is<Dn;++is)$r.push(_n=rs&&rs[is]!==void 0?mn[Ct](xr[is],rs[is]):mn[Ct](xr[is])),_n.onerror=Or;else for(is=0;is<Dn;++is)$r.push(_n=mn[Ct](xr[is])),_n.onerror=Or}function gR(ws){ws=ws.target.result,$r.forEach(function(gg,_3){return gg.error!=null&&(Fr[_3]=gg.error)}),pn({numFailures:wl,failures:Fr,results:Ct==="delete"?Ot:$r.map(function(gg){return gg.result}),lastResult:ws})}_n.onerror=function(ws){Or(ws),gR(ws)},_n.onsuccess=gR})},getMany:function(mt){var st=mt.trans,Ct=mt.keys;return new Promise(function(Ot,Pt){Ot=Ve(Ot);for(var Yt,pn=st.objectStore(ct),yn=Ct.length,mn=new Array(yn),gn=0,En=0,_n=function($r){$r=$r.target,mn[$r._pos]=$r.result,++En===gn&&Ot(mn)},Dn=wa(Pt),Or=0;Or<yn;++Or)Ct[Or]!=null&&((Yt=pn.get(Ct[Or]))._pos=Or,Yt.onsuccess=_n,Yt.onerror=Dn,++gn);gn===0&&Ot(mn)})},get:function(mt){var st=mt.trans,Ct=mt.key;return new Promise(function(Ot,Pt){Ot=Ve(Ot);var Yt=st.objectStore(ct).get(Ct);Yt.onsuccess=function(pn){return Ot(pn.target.result)},Yt.onerror=wa(Pt)})},query:(rt=ot,function(mt){return new Promise(function(st,Ct){st=Ve(st);var Ot,Pt,Yt,gn=mt.trans,pn=mt.values,yn=mt.limit,_n=mt.query,mn=yn===1/0?void 0:yn,En=_n.index,_n=_n.range,gn=gn.objectStore(ct),En=En.isPrimaryKey?gn:gn.index(En.name),_n=Se(_n);if(yn===0)return st({result:[]});rt?((mn=pn?En.getAll(_n,mn):En.getAllKeys(_n,mn)).onsuccess=function(Dn){return st({result:Dn.target.result})},mn.onerror=wa(Ct)):(Ot=0,Pt=!pn&&"openKeyCursor"in En?En.openKeyCursor(_n):En.openCursor(_n),Yt=[],Pt.onsuccess=function(Dn){var Or=Pt.result;return Or?(Yt.push(pn?Or.value:Or.primaryKey),++Ot===yn?st({result:Yt}):void Or.continue()):st({result:Yt})},Pt.onerror=wa(Ct))})}),openCursor:function(mt){var st=mt.trans,Ct=mt.values,Ot=mt.query,Pt=mt.reverse,Yt=mt.unique;return new Promise(function(pn,yn){pn=Ve(pn);var En=Ot.index,mn=Ot.range,gn=st.objectStore(ct),gn=En.isPrimaryKey?gn:gn.index(En.name),En=Pt?Yt?"prevunique":"prev":Yt?"nextunique":"next",_n=!Ct&&"openKeyCursor"in gn?gn.openKeyCursor(Se(mn),En):gn.openCursor(Se(mn),En);_n.onerror=wa(yn),_n.onsuccess=Ve(function(Dn){var Or,$r,Fr,wl,xr=_n.result;xr?(xr.___id=++WFe,xr.done=!1,Or=xr.continue.bind(xr),$r=($r=xr.continuePrimaryKey)&&$r.bind(xr),Fr=xr.advance.bind(xr),wl=function(){throw new Error("Cursor not stopped")},xr.trans=st,xr.stop=xr.continue=xr.continuePrimaryKey=xr.advance=function(){throw new Error("Cursor not started")},xr.fail=Ve(yn),xr.next=function(){var rs=this,is=1;return this.start(function(){return is--?rs.continue():rs.stop()}).then(function(){return rs})},xr.start=function(rs){function is(){if(_n.result)try{rs()}catch(ws){xr.fail(ws)}else xr.done=!0,xr.start=function(){throw new Error("Cursor behind last entry")},xr.stop()}var gR=new Promise(function(ws,gg){ws=Ve(ws),_n.onerror=wa(gg),xr.fail=gg,xr.stop=function(_3){xr.stop=xr.continue=xr.continuePrimaryKey=xr.advance=wl,ws(_3)}});return _n.onsuccess=Ve(function(ws){_n.onsuccess=is,is()}),xr.continue=Or,xr.continuePrimaryKey=$r,xr.advance=Fr,is(),gR},pn(xr)):pn(null)},yn)})},count:function(mt){var st=mt.query,Ct=mt.trans,Ot=st.index,Pt=st.range;return new Promise(function(Yt,pn){var yn=Ct.objectStore(ct),mn=Ot.isPrimaryKey?yn:yn.index(Ot.name),yn=Se(Pt),mn=yn?mn.count(yn):mn.count();mn.onsuccess=Ve(function(gn){return Yt(gn.target.result)}),mn.onerror=wa(pn)})}}}var Pe,He,Ye,dt=(He=tt,Ye=pg((Pe=z).objectStoreNames),{schema:{name:Pe.name,tables:Ye.map(function(ht){return He.objectStore(ht)}).map(function(ht){var rt=ht.keyPath,st=ht.autoIncrement,ct=s(rt),mt={},st={name:ht.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:rt==null,compound:ct,keyPath:rt,autoIncrement:st,unique:!0,extractKey:oy(rt)},indexes:pg(ht.indexNames).map(function(Ct){return ht.index(Ct)}).map(function(Yt){var Ot=Yt.name,Pt=Yt.unique,pn=Yt.multiEntry,Yt=Yt.keyPath,pn={name:Ot,compound:s(Yt),keyPath:Yt,unique:Pt,multiEntry:pn,extractKey:oy(Yt)};return mt[rE(Yt)]=pn}),getIndexByKeyPath:function(Ct){return mt[rE(Ct)]}};return mt[":id"]=st.primaryKey,rt!=null&&(mt[rE(rt)]=st.primaryKey),st})},hasGetAll:0<Ye.length&&"getAll"in He.objectStore(Ye[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),tt=dt.schema,ot=dt.hasGetAll,dt=tt.tables.map(Ie),Ke={};return dt.forEach(function(ht){return Ke[ht.name]=ht}),{stack:"dbcore",transaction:z.transaction.bind(z),table:function(ht){if(!Ke[ht])throw new Error("Table '".concat(ht,"' not found"));return Ke[ht]},MIN_KEY:-1/0,MAX_KEY:wf(ee),schema:tt}}function qFe(z,ee,le,Se){var Ie=le.IDBKeyRange;return le.indexedDB,{dbcore:(Se=YFe(ee,Ie,Se),z.dbcore.reduce(function(Pe,He){return He=He.create,r(r({},Pe),He(Pe))},Se))}}function iR(z,Se){var le=Se.db,Se=qFe(z._middlewares,le,z._deps,Se);z.core=Se.dbcore,z.tables.forEach(function(Ie){var Pe=Ie.name;z.core.schema.tables.some(function(He){return He.name===Pe})&&(Ie.core=z.core.table(Pe),z[Pe]instanceof z.Table&&(z[Pe].core=Ie.core))})}function oR(z,ee,le,Se){le.forEach(function(Ie){var Pe=Se[Ie];ee.forEach(function(He){var Ye=function tt(ot,dt){return v(ot,dt)||(ot=c(ot))&&tt(ot,dt)}(He,Ie);(!Ye||"value"in Ye&&Ye.value===void 0)&&(He===z.Transaction.prototype||He instanceof z.Transaction?h(He,Ie,{get:function(){return this.table(Ie)},set:function(tt){p(this,Ie,{value:tt,writable:!0,configurable:!0,enumerable:!0})}}):He[Ie]=new z.Table(Ie,Pe))})})}function t3(z,ee){ee.forEach(function(le){for(var Se in le)le[Se]instanceof z.Table&&delete le[Se]})}function KFe(z,ee){return z._cfg.version-ee._cfg.version}function QFe(z,ee,le,Se){var Ie=z._dbSchema;le.objectStoreNames.contains("$meta")&&!Ie.$meta&&(Ie.$meta=om("$meta",lJ("")[0],[]),z._storeNames.push("$meta"));var Pe=z._createTransaction("readwrite",z._storeNames,Ie);Pe.create(le),Pe._completion.catch(Se);var He=Pe._reject.bind(Pe),Ye=Fe.transless||Fe;jt(function(){return Fe.trans=Pe,Fe.transless=Ye,ee!==0?(iR(z,le),ot=ee,((tt=Pe).storeNames.includes("$meta")?tt.table("$meta").get("version").then(function(dt){return dt??ot}):Ge.resolve(ot)).then(function(dt){return ht=dt,rt=Pe,ct=le,mt=[],dt=(Ke=z)._versions,st=Ke._dbSchema=sR(0,Ke.idbdb,ct),(dt=dt.filter(function(Ct){return Ct._cfg.version>=ht})).length!==0?(dt.forEach(function(Ct){mt.push(function(){var Ot=st,Pt=Ct._cfg.dbschema;lR(Ke,Ot,ct),lR(Ke,Pt,ct),st=Ke._dbSchema=Pt;var Yt=n3(Ot,Pt);Yt.add.forEach(function(En){r3(ct,En[0],En[1].primKey,En[1].indexes)}),Yt.change.forEach(function(En){if(En.recreate)throw new Z.Upgrade("Not yet support for changing primary key");var _n=ct.objectStore(En.name);En.add.forEach(function(Dn){return aR(_n,Dn)}),En.change.forEach(function(Dn){_n.deleteIndex(Dn.name),aR(_n,Dn)}),En.del.forEach(function(Dn){return _n.deleteIndex(Dn)})});var pn=Ct._cfg.contentUpgrade;if(pn&&Ct._cfg.version>ht){iR(Ke,ct),rt._memoizedTables={};var yn=x(Pt);Yt.del.forEach(function(En){yn[En]=Ot[En]}),t3(Ke,[Ke.Transaction.prototype]),oR(Ke,[Ke.Transaction.prototype],a(yn),yn),rt.schema=yn;var mn,gn=W(pn);return gn&&zt(),Yt=Ge.follow(function(){var En;(mn=pn(rt))&&gn&&(En=Gt.bind(null,null),mn.then(En,En))}),mn&&typeof mn.then=="function"?Ge.resolve(mn):Yt.then(function(){return mn})}}),mt.push(function(Ot){var Pt,Yt,pn=Ct._cfg.dbschema;Pt=pn,Yt=Ot,[].slice.call(Yt.db.objectStoreNames).forEach(function(yn){return Pt[yn]==null&&Yt.db.deleteObjectStore(yn)}),t3(Ke,[Ke.Transaction.prototype]),oR(Ke,[Ke.Transaction.prototype],Ke._storeNames,Ke._dbSchema),rt.schema=Ke._dbSchema}),mt.push(function(Ot){Ke.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Ke.idbdb.version/10)===Ct._cfg.version?(Ke.idbdb.deleteObjectStore("$meta"),delete Ke._dbSchema.$meta,Ke._storeNames=Ke._storeNames.filter(function(Pt){return Pt!=="$meta"})):Ot.objectStore("$meta").put(Ct._cfg.version,"version"))})}),function Ct(){return mt.length?Ge.resolve(mt.shift()(rt.idbtrans)).then(Ct):Ge.resolve()}().then(function(){sJ(st,ct)})):Ge.resolve();var Ke,ht,rt,ct,mt,st}).catch(He)):(a(Ie).forEach(function(dt){r3(le,dt,Ie[dt].primKey,Ie[dt].indexes)}),iR(z,le),void Ge.follow(function(){return z.on.populate.fire(Pe)}).catch(He));var tt,ot})}function XFe(z,ee){sJ(z._dbSchema,ee),ee.db.version%10!=0||ee.objectStoreNames.contains("$meta")||ee.db.createObjectStore("$meta").add(Math.ceil(ee.db.version/10-1),"version");var le=sR(0,z.idbdb,ee);lR(z,z._dbSchema,ee);for(var Se=0,Ie=n3(le,z._dbSchema).change;Se<Ie.length;Se++){var Pe=function(He){if(He.change.length||He.recreate)return console.warn("Unable to patch indexes of table ".concat(He.name," because it has changes on the type of index or primary key.")),{value:void 0};var Ye=ee.objectStore(He.name);He.add.forEach(function(tt){Ce&&console.debug("Dexie upgrade patch: Creating missing index ".concat(He.name,".").concat(tt.src)),aR(Ye,tt)})}(Ie[Se]);if(typeof Pe=="object")return Pe.value}}function n3(z,ee){var le,Se={del:[],add:[],change:[]};for(le in z)ee[le]||Se.del.push(le);for(le in ee){var Ie=z[le],Pe=ee[le];if(Ie){var He={name:le,def:Pe,recreate:!1,del:[],add:[],change:[]};if(""+(Ie.primKey.keyPath||"")!=""+(Pe.primKey.keyPath||"")||Ie.primKey.auto!==Pe.primKey.auto)He.recreate=!0,Se.change.push(He);else{var Ye=Ie.idxByName,tt=Pe.idxByName,ot=void 0;for(ot in Ye)tt[ot]||He.del.push(ot);for(ot in tt){var dt=Ye[ot],Ke=tt[ot];dt?dt.src!==Ke.src&&He.change.push(Ke):He.add.push(Ke)}(0<He.del.length||0<He.add.length||0<He.change.length)&&Se.change.push(He)}}else Se.add.push([le,Pe])}return Se}function r3(z,ee,le,Se){var Ie=z.db.createObjectStore(ee,le.keyPath?{keyPath:le.keyPath,autoIncrement:le.auto}:{autoIncrement:le.auto});return Se.forEach(function(Pe){return aR(Ie,Pe)}),Ie}function sJ(z,ee){a(z).forEach(function(le){ee.db.objectStoreNames.contains(le)||(Ce&&console.debug("Dexie: Creating missing table",le),r3(ee,le,z[le].primKey,z[le].indexes))})}function aR(z,ee){z.createIndex(ee.name,ee.keyPath,{unique:ee.unique,multiEntry:ee.multi})}function sR(z,ee,le){var Se={};return _(ee.objectStoreNames,0).forEach(function(Ie){for(var Pe=le.objectStore(Ie),He=uo(Bi(ot=Pe.keyPath),ot||"",!0,!1,!!Pe.autoIncrement,ot&&typeof ot!="string",!0),Ye=[],tt=0;tt<Pe.indexNames.length;++tt){var dt=Pe.index(Pe.indexNames[tt]),ot=dt.keyPath,dt=uo(dt.name,ot,!!dt.unique,!!dt.multiEntry,!1,ot&&typeof ot!="string",!1);Ye.push(dt)}Se[Ie]=om(Ie,He,Ye)}),Se}function lR(z,ee,le){for(var Se=le.db.objectStoreNames,Ie=0;Ie<Se.length;++Ie){var Pe=Se[Ie],He=le.objectStore(Pe);z._hasGetAll="getAll"in He;for(var Ye=0;Ye<He.indexNames.length;++Ye){var tt=He.indexNames[Ye],ot=He.index(tt).keyPath,dt=typeof ot=="string"?ot:"["+_(ot).join("+")+"]";!ee[Pe]||(ot=ee[Pe].idxByName[dt])&&(ot.name=tt,delete ee[Pe].idxByName[dt],ee[Pe].idxByName[tt]=ot)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(z._hasGetAll=!1)}function lJ(z){return z.split(",").map(function(ee,le){var Se=(ee=ee.trim()).replace(/([&*]|\+\+)/g,""),Ie=/^\[/.test(Se)?Se.match(/^\[(.*)\]$/)[1].split("+"):Se;return uo(Se,Ie||null,/\&/.test(ee),/\*/.test(ee),/\+\+/.test(ee),s(Ie),le===0)})}var ZFe=(cR.prototype._parseStoresSpec=function(z,ee){a(z).forEach(function(le){if(z[le]!==null){var Se=lJ(z[le]),Ie=Se.shift();if(Ie.unique=!0,Ie.multi)throw new Z.Schema("Primary key cannot be multi-valued");Se.forEach(function(Pe){if(Pe.auto)throw new Z.Schema("Only primary key can be marked as autoIncrement (++)");if(!Pe.keyPath)throw new Z.Schema("Index must have a name and cannot be an empty string")}),ee[le]=om(le,Ie,Se)}})},cR.prototype.stores=function(le){var ee=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,le):le;var le=ee._versions,Se={},Ie={};return le.forEach(function(Pe){l(Se,Pe._cfg.storesSource),Ie=Pe._cfg.dbschema={},Pe._parseStoresSpec(Se,Ie)}),ee._dbSchema=Ie,t3(ee,[ee._allTables,ee,ee.Transaction.prototype]),oR(ee,[ee._allTables,ee,ee.Transaction.prototype,this._cfg.tables],a(Ie),Ie),ee._storeNames=a(Ie),this},cR.prototype.upgrade=function(z){return this._cfg.contentUpgrade=ge(this._cfg.contentUpgrade||ae,z),this},cR);function cR(){}function i3(z,ee){var le=z._dbNamesDB;return le||(le=z._dbNamesDB=new xf(Tt,{addons:[],indexedDB:z,IDBKeyRange:ee})).version(1).stores({dbnames:"name"}),le.table("dbnames")}function o3(z){return z&&typeof z.databases=="function"}function a3(z){return jt(function(){return Fe.letThrough=!0,z()})}function s3(z){return!("from"in z)}var ns=function(z,ee){if(!this){var le=new ns;return z&&"d"in z&&l(le,z),le}l(this,arguments.length?{d:1,from:z,to:1<arguments.length?ee:z}:{d:0})};function iE(z,ee,le){var Se=Le(ee,le);if(!isNaN(Se)){if(0<Se)throw RangeError();if(s3(z))return l(z,{from:ee,to:le,d:1});var Ie=z.l,Se=z.r;if(Le(le,z.from)<0)return Ie?iE(Ie,ee,le):z.l={from:ee,to:le,d:1,l:null,r:null},uJ(z);if(0<Le(ee,z.to))return Se?iE(Se,ee,le):z.r={from:ee,to:le,d:1,l:null,r:null},uJ(z);Le(ee,z.from)<0&&(z.from=ee,z.l=null,z.d=Se?Se.d+1:1),0<Le(le,z.to)&&(z.to=le,z.r=null,z.d=z.l?z.l.d+1:1),le=!z.r,Ie&&!z.l&&oE(z,Ie),Se&&le&&oE(z,Se)}}function oE(z,ee){s3(ee)||function le(Se,tt){var Pe=tt.from,He=tt.to,Ye=tt.l,tt=tt.r;iE(Se,Pe,He),Ye&&le(Se,Ye),tt&&le(Se,tt)}(z,ee)}function cJ(z,ee){var le=uR(ee),Se=le.next();if(Se.done)return!1;for(var Ie=Se.value,Pe=uR(z),He=Pe.next(Ie.from),Ye=He.value;!Se.done&&!He.done;){if(Le(Ye.from,Ie.to)<=0&&0<=Le(Ye.to,Ie.from))return!0;Le(Ie.from,Ye.from)<0?Ie=(Se=le.next(Ye.from)).value:Ye=(He=Pe.next(Ie.from)).value}return!1}function uR(z){var ee=s3(z)?null:{s:0,n:z};return{next:function(le){for(var Se=0<arguments.length;ee;)switch(ee.s){case 0:if(ee.s=1,Se)for(;ee.n.l&&Le(le,ee.n.from)<0;)ee={up:ee,n:ee.n.l,s:1};else for(;ee.n.l;)ee={up:ee,n:ee.n.l,s:1};case 1:if(ee.s=2,!Se||Le(le,ee.n.to)<=0)return{value:ee.n,done:!1};case 2:if(ee.n.r){ee.s=3,ee={up:ee,n:ee.n.r,s:0};continue}case 3:ee=ee.up}return{done:!0}}}}function uJ(z){var ee,le,Se=(((ee=z.r)===null||ee===void 0?void 0:ee.d)||0)-(((le=z.l)===null||le===void 0?void 0:le.d)||0),Ie=1<Se?"r":Se<-1?"l":"";Ie&&(ee=Ie=="r"?"l":"r",le=r({},z),Se=z[Ie],z.from=Se.from,z.to=Se.to,z[Ie]=Se[Ie],le[Ie]=Se[ee],(z[ee]=le).d=dJ(le)),z.d=dJ(z)}function dJ(le){var ee=le.r,le=le.l;return(ee?le?Math.max(ee.d,le.d):ee.d:le?le.d:0)+1}function dR(z,ee){return a(ee).forEach(function(le){z[le]?oE(z[le],ee[le]):z[le]=function Se(Ie){var Pe,He,Ye={};for(Pe in Ie)d(Ie,Pe)&&(He=Ie[Pe],Ye[Pe]=!He||typeof He!="object"||N.has(He.constructor)?He:Se(He));return Ye}(ee[le])}),z}function l3(z,ee){return z.all||ee.all||Object.keys(z).some(function(le){return ee[le]&&cJ(ee[le],z[le])})}f(ns.prototype,((_c={add:function(z){return oE(this,z),this},addKey:function(z){return iE(this,z,z),this},addKeys:function(z){var ee=this;return z.forEach(function(le){return iE(ee,le,le)}),this},hasKey:function(z){var ee=uR(this).next(z).value;return ee&&Le(ee.from,z)<=0&&0<=Le(ee.to,z)}})[L]=function(){return uR(this)},_c));var mg={},c3={},u3=!1;function fR(z){dR(c3,z),u3||(u3=!0,setTimeout(function(){u3=!1,d3(c3,!(c3={}))},0))}function d3(z,ee){ee===void 0&&(ee=!1);var le=new Set;if(z.all)for(var Se=0,Ie=Object.values(mg);Se<Ie.length;Se++)fJ(He=Ie[Se],z,le,ee);else for(var Pe in z){var He,Ye=/^idb\:\/\/(.*)\/(.*)\//.exec(Pe);Ye&&(Pe=Ye[1],Ye=Ye[2],(He=mg["idb://".concat(Pe,"/").concat(Ye)])&&fJ(He,z,le,ee))}le.forEach(function(tt){return tt()})}function fJ(z,ee,le,Se){for(var Ie=[],Pe=0,He=Object.entries(z.queries.query);Pe<He.length;Pe++){for(var Ye=He[Pe],tt=Ye[0],ot=[],dt=0,Ke=Ye[1];dt<Ke.length;dt++){var ht=Ke[dt];l3(ee,ht.obsSet)?ht.subscribers.forEach(function(st){return le.add(st)}):Se&&ot.push(ht)}Se&&Ie.push([tt,ot])}if(Se)for(var rt=0,ct=Ie;rt<ct.length;rt++){var mt=ct[rt],tt=mt[0],ot=mt[1];z.queries.query[tt]=ot}}function JFe(z){var ee=z._state,le=z._deps.indexedDB;if(ee.isBeingOpened||z.idbdb)return ee.dbReadyPromise.then(function(){return ee.dbOpenError?Ft(ee.dbOpenError):z});ee.isBeingOpened=!0,ee.dbOpenError=null,ee.openComplete=!1;var Se=ee.openCanceller,Ie=Math.round(10*z.verno),Pe=!1;function He(){if(ee.openCanceller!==Se)throw new Z.DatabaseClosed("db.open() was cancelled")}function Ye(){return new Ge(function(ht,rt){if(He(),!le)throw new Z.MissingAPI;var ct=z.name,mt=ee.autoSchema||!Ie?le.open(ct):le.open(ct,Ie);if(!mt)throw new Z.MissingAPI;mt.onerror=wa(rt),mt.onblocked=Ve(z._fireOnBlocked),mt.onupgradeneeded=Ve(function(st){var Ct;dt=mt.transaction,ee.autoSchema&&!z._options.allowEmptyDB?(mt.onerror=gc,dt.abort(),mt.result.close(),(Ct=le.deleteDatabase(ct)).onsuccess=Ct.onerror=Ve(function(){rt(new Z.NoSuchDatabase("Database ".concat(ct," doesnt exist")))})):(dt.onerror=wa(rt),st=st.oldVersion>Math.pow(2,62)?0:st.oldVersion,Ke=st<1,z.idbdb=mt.result,Pe&&XFe(z,dt),QFe(z,st/10,dt,rt))},rt),mt.onsuccess=Ve(function(){dt=null;var st,Ct,Ot,Pt,Yt,pn=z.idbdb=mt.result,yn=_(pn.objectStoreNames);if(0<yn.length)try{var mn=pn.transaction((Pt=yn).length===1?Pt[0]:Pt,"readonly");if(ee.autoSchema)Ct=pn,Ot=mn,(st=z).verno=Ct.version/10,Ot=st._dbSchema=sR(0,Ct,Ot),st._storeNames=_(Ct.objectStoreNames,0),oR(st,[st._allTables],a(Ot),Ot);else if(lR(z,z._dbSchema,mn),((Yt=n3(sR(0,(Yt=z).idbdb,mn),Yt._dbSchema)).add.length||Yt.change.some(function(gn){return gn.add.length||gn.change.length}))&&!Pe)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),pn.close(),Ie=pn.version+1,Pe=!0,ht(Ye());iR(z,mn)}catch{}Rt.push(z),pn.onversionchange=Ve(function(gn){ee.vcFired=!0,z.on("versionchange").fire(gn)}),pn.onclose=Ve(function(gn){z.on("close").fire(gn)}),Ke&&(Yt=z._deps,mn=ct,pn=Yt.indexedDB,Yt=Yt.IDBKeyRange,o3(pn)||mn===Tt||i3(pn,Yt).put({name:mn}).catch(ae)),ht()},rt)}).catch(function(ht){switch(ht==null?void 0:ht.name){case"UnknownError":if(0<ee.PR1398_maxLoop)return ee.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Ye();break;case"VersionError":if(0<Ie)return Ie=0,Ye()}return Ge.reject(ht)})}var tt,ot=ee.dbReadyResolve,dt=null,Ke=!1;return Ge.race([Se,(typeof navigator>"u"?Ge.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(ht){function rt(){return indexedDB.databases().finally(ht)}tt=setInterval(rt,100),rt()}).finally(function(){return clearInterval(tt)}):Promise.resolve()).then(Ye)]).then(function(){return He(),ee.onReadyBeingFired=[],Ge.resolve(a3(function(){return z.on.ready.fire(z.vip)})).then(function ht(){if(0<ee.onReadyBeingFired.length){var rt=ee.onReadyBeingFired.reduce(ge,ae);return ee.onReadyBeingFired=[],Ge.resolve(a3(function(){return rt(z.vip)})).then(ht)}})}).finally(function(){ee.openCanceller===Se&&(ee.onReadyBeingFired=null,ee.isBeingOpened=!1)}).catch(function(ht){ee.dbOpenError=ht;try{dt&&dt.abort()}catch{}return Se===ee.openCanceller&&z._close(),Ft(ht)}).finally(function(){ee.openComplete=!0,ot()}).then(function(){var ht;return Ke&&(ht={},z.tables.forEach(function(rt){rt.schema.indexes.forEach(function(ct){ct.name&&(ht["idb://".concat(z.name,"/").concat(rt.name,"/").concat(ct.name)]=new ns(-1/0,[[[]]]))}),ht["idb://".concat(z.name,"/").concat(rt.name,"/")]=ht["idb://".concat(z.name,"/").concat(rt.name,"/:dels")]=new ns(-1/0,[[[]]])}),Tn(vc).fire(ht),d3(ht,!0)),z})}function f3(z){function ee(Pe){return z.next(Pe)}var le=Ie(ee),Se=Ie(function(Pe){return z.throw(Pe)});function Ie(Pe){return function(tt){var Ye=Pe(tt),tt=Ye.value;return Ye.done?tt:tt&&typeof tt.then=="function"?tt.then(le,Se):s(tt)?Promise.all(tt).then(le,Se):le(tt)}}return Ie(ee)()}function pR(z,ee,le){for(var Se=s(z)?z.slice():[z],Ie=0;Ie<le;++Ie)Se.push(ee);return Se}var eBe={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(z){return r(r({},z),{table:function(ee){var le=z.table(ee),Se=le.schema,Ie={},Pe=[];function He(Ke,ht,rt){var ct=rE(Ke),mt=Ie[ct]=Ie[ct]||[],st=Ke==null?0:typeof Ke=="string"?1:Ke.length,Ct=0<ht,Ct=r(r({},rt),{name:Ct?"".concat(ct,"(virtual-from:").concat(rt.name,")"):rt.name,lowLevelIndex:rt,isVirtual:Ct,keyTail:ht,keyLength:st,extractKey:oy(Ke),unique:!Ct&&rt.unique});return mt.push(Ct),Ct.isPrimaryKey||Pe.push(Ct),1<st&&He(st===2?Ke[0]:Ke.slice(0,st-1),ht+1,rt),mt.sort(function(Ot,Pt){return Ot.keyTail-Pt.keyTail}),Ct}ee=He(Se.primaryKey.keyPath,0,Se.primaryKey),Ie[":id"]=[ee];for(var Ye=0,tt=Se.indexes;Ye<tt.length;Ye++){var ot=tt[Ye];He(ot.keyPath,0,ot)}function dt(Ke){var ht,rt=Ke.query.index;return rt.isVirtual?r(r({},Ke),{query:{index:rt.lowLevelIndex,range:(ht=Ke.query.range,rt=rt.keyTail,{type:ht.type===1?2:ht.type,lower:pR(ht.lower,ht.lowerOpen?z.MAX_KEY:z.MIN_KEY,rt),lowerOpen:!0,upper:pR(ht.upper,ht.upperOpen?z.MIN_KEY:z.MAX_KEY,rt),upperOpen:!0})}}):Ke}return r(r({},le),{schema:r(r({},Se),{primaryKey:ee,indexes:Pe,getIndexByKeyPath:function(Ke){return(Ke=Ie[rE(Ke)])&&Ke[0]}}),count:function(Ke){return le.count(dt(Ke))},query:function(Ke){return le.query(dt(Ke))},openCursor:function(Ke){var ht=Ke.query.index,rt=ht.keyTail,ct=ht.isVirtual,mt=ht.keyLength;return ct?le.openCursor(dt(Ke)).then(function(Ct){return Ct&&st(Ct)}):le.openCursor(Ke);function st(Ct){return Object.create(Ct,{continue:{value:function(Ot){Ot!=null?Ct.continue(pR(Ot,Ke.reverse?z.MAX_KEY:z.MIN_KEY,rt)):Ke.unique?Ct.continue(Ct.key.slice(0,mt).concat(Ke.reverse?z.MIN_KEY:z.MAX_KEY,rt)):Ct.continue()}},continuePrimaryKey:{value:function(Ot,Pt){Ct.continuePrimaryKey(pR(Ot,z.MAX_KEY,rt),Pt)}},primaryKey:{get:function(){return Ct.primaryKey}},key:{get:function(){var Ot=Ct.key;return mt===1?Ot[0]:Ot.slice(0,mt)}},value:{get:function(){return Ct.value}}})}}})}})}};function p3(z,ee,le,Se){return le=le||{},Se=Se||"",a(z).forEach(function(Ie){var Pe,He,Ye;d(ee,Ie)?(Pe=z[Ie],He=ee[Ie],typeof Pe=="object"&&typeof He=="object"&&Pe&&He?(Ye=F(Pe))!==F(He)?le[Se+Ie]=ee[Ie]:Ye==="Object"?p3(Pe,He,le,Se+Ie+"."):Pe!==He&&(le[Se+Ie]=ee[Ie]):Pe!==He&&(le[Se+Ie]=ee[Ie])):le[Se+Ie]=void 0}),a(ee).forEach(function(Ie){d(z,Ie)||(le[Se+Ie]=ee[Ie])}),le}function m3(z,ee){return ee.type==="delete"?ee.keys:ee.keys||ee.values.map(z.extractKey)}var tBe={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(z){return r(r({},z),{table:function(ee){var le=z.table(ee),Se=le.schema.primaryKey;return r(r({},le),{mutate:function(Ie){var Pe=Fe.trans,He=Pe.table(ee).hook,Ye=He.deleting,tt=He.creating,ot=He.updating;switch(Ie.type){case"add":if(tt.fire===ae)break;return Pe._promise("readwrite",function(){return dt(Ie)},!0);case"put":if(tt.fire===ae&&ot.fire===ae)break;return Pe._promise("readwrite",function(){return dt(Ie)},!0);case"delete":if(Ye.fire===ae)break;return Pe._promise("readwrite",function(){return dt(Ie)},!0);case"deleteRange":if(Ye.fire===ae)break;return Pe._promise("readwrite",function(){return function Ke(ht,rt,ct){return le.query({trans:ht,values:!1,query:{index:Se,range:rt},limit:ct}).then(function(mt){var st=mt.result;return dt({type:"delete",keys:st,trans:ht}).then(function(Ct){return 0<Ct.numFailures?Promise.reject(Ct.failures[0]):st.length<ct?{failures:[],numFailures:0,lastResult:void 0}:Ke(ht,r(r({},rt),{lower:st[st.length-1],lowerOpen:!0}),ct)})})}(Ie.trans,Ie.range,1e4)},!0)}return le.mutate(Ie);function dt(Ke){var ht,rt,ct,mt=Fe.trans,st=Ke.keys||m3(Se,Ke);if(!st)throw new Error("Keys missing");return(Ke=Ke.type==="add"||Ke.type==="put"?r(r({},Ke),{keys:st}):r({},Ke)).type!=="delete"&&(Ke.values=i([],Ke.values)),Ke.keys&&(Ke.keys=i([],Ke.keys)),ht=le,ct=st,((rt=Ke).type==="add"?Promise.resolve([]):ht.getMany({trans:rt.trans,keys:ct,cache:"immutable"})).then(function(Ct){var Ot=st.map(function(Pt,Yt){var pn,yn,mn,gn=Ct[Yt],En={onerror:null,onsuccess:null};return Ke.type==="delete"?Ye.fire.call(En,Pt,gn,mt):Ke.type==="add"||gn===void 0?(pn=tt.fire.call(En,Pt,Ke.values[Yt],mt),Pt==null&&pn!=null&&(Ke.keys[Yt]=Pt=pn,Se.outbound||w(Ke.values[Yt],Se.keyPath,Pt))):(pn=p3(gn,Ke.values[Yt]),(yn=ot.fire.call(En,pn,Pt,gn,mt))&&(mn=Ke.values[Yt],Object.keys(yn).forEach(function(_n){d(mn,_n)?mn[_n]=yn[_n]:w(mn,_n,yn[_n])}))),En});return le.mutate(Ke).then(function(Pt){for(var Yt=Pt.failures,pn=Pt.results,yn=Pt.numFailures,Pt=Pt.lastResult,mn=0;mn<st.length;++mn){var gn=(pn||st)[mn],En=Ot[mn];gn==null?En.onerror&&En.onerror(Yt[mn]):En.onsuccess&&En.onsuccess(Ke.type==="put"&&Ct[mn]?Ke.values[mn]:gn)}return{failures:Yt,results:pn,numFailures:yn,lastResult:Pt}}).catch(function(Pt){return Ot.forEach(function(Yt){return Yt.onerror&&Yt.onerror(Pt)}),Promise.reject(Pt)})})}}})}})}};function pJ(z,ee,le){try{if(!ee||ee.keys.length<z.length)return null;for(var Se=[],Ie=0,Pe=0;Ie<ee.keys.length&&Pe<z.length;++Ie)Le(ee.keys[Ie],z[Pe])===0&&(Se.push(le?P(ee.values[Ie]):ee.values[Ie]),++Pe);return Se.length===z.length?Se:null}catch{return null}}var nBe={stack:"dbcore",level:-1,create:function(z){return{table:function(ee){var le=z.table(ee);return r(r({},le),{getMany:function(Se){if(!Se.cache)return le.getMany(Se);var Ie=pJ(Se.keys,Se.trans._cache,Se.cache==="clone");return Ie?Ge.resolve(Ie):le.getMany(Se).then(function(Pe){return Se.trans._cache={keys:Se.keys,values:Se.cache==="clone"?P(Pe):Pe},Pe})},mutate:function(Se){return Se.type!=="add"&&(Se.trans._cache=null),le.mutate(Se)}})}}}};function mJ(z,ee){return z.trans.mode==="readonly"&&!!z.subscr&&!z.trans.explicit&&z.trans.db._options.cache!=="disabled"&&!ee.schema.primaryKey.outbound}function hJ(z,ee){switch(z){case"query":return ee.values&&!ee.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var rBe={stack:"dbcore",level:0,name:"Observability",create:function(z){var ee=z.schema.name,le=new ns(z.MIN_KEY,z.MAX_KEY);return r(r({},z),{transaction:function(Se,Ie,Pe){if(Fe.subscr&&Ie!=="readonly")throw new Z.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Fe.querier));return z.transaction(Se,Ie,Pe)},table:function(Se){var Ie=z.table(Se),Pe=Ie.schema,He=Pe.primaryKey,Ke=Pe.indexes,Ye=He.extractKey,tt=He.outbound,ot=He.autoIncrement&&Ke.filter(function(rt){return rt.compound&&rt.keyPath.includes(He.keyPath)}),dt=r(r({},Ie),{mutate:function(rt){function ct(_n){return _n="idb://".concat(ee,"/").concat(Se,"/").concat(_n),Pt[_n]||(Pt[_n]=new ns)}var mt,st,Ct,Ot=rt.trans,Pt=rt.mutatedParts||(rt.mutatedParts={}),Yt=ct(""),pn=ct(":dels"),yn=rt.type,En=rt.type==="deleteRange"?[rt.range]:rt.type==="delete"?[rt.keys]:rt.values.length<50?[m3(He,rt).filter(function(_n){return _n}),rt.values]:[],mn=En[0],gn=En[1],En=rt.trans._cache;return s(mn)?(Yt.addKeys(mn),(En=yn==="delete"||mn.length===gn.length?pJ(mn,En):null)||pn.addKeys(mn),(En||gn)&&(mt=ct,st=En,Ct=gn,Pe.indexes.forEach(function(_n){var Dn=mt(_n.name||"");function Or(Fr){return Fr!=null?_n.extractKey(Fr):null}function $r(Fr){return _n.multiEntry&&s(Fr)?Fr.forEach(function(wl){return Dn.addKey(wl)}):Dn.addKey(Fr)}(st||Ct).forEach(function(Fr,rs){var xr=st&&Or(st[rs]),rs=Ct&&Or(Ct[rs]);Le(xr,rs)!==0&&(xr!=null&&$r(xr),rs!=null&&$r(rs))})}))):mn?(gn={from:(gn=mn.lower)!==null&&gn!==void 0?gn:z.MIN_KEY,to:(gn=mn.upper)!==null&&gn!==void 0?gn:z.MAX_KEY},pn.add(gn),Yt.add(gn)):(Yt.add(le),pn.add(le),Pe.indexes.forEach(function(_n){return ct(_n.name).add(le)})),Ie.mutate(rt).then(function(_n){return!mn||rt.type!=="add"&&rt.type!=="put"||(Yt.addKeys(_n.results),ot&&ot.forEach(function(Dn){for(var Or=rt.values.map(function(xr){return Dn.extractKey(xr)}),$r=Dn.keyPath.findIndex(function(xr){return xr===He.keyPath}),Fr=0,wl=_n.results.length;Fr<wl;++Fr)Or[Fr][$r]=_n.results[Fr];ct(Dn.name).addKeys(Or)})),Ot.mutatedParts=dR(Ot.mutatedParts||{},Pt),_n})}}),Ke=function(ct){var mt=ct.query,ct=mt.index,mt=mt.range;return[ct,new ns((ct=mt.lower)!==null&&ct!==void 0?ct:z.MIN_KEY,(mt=mt.upper)!==null&&mt!==void 0?mt:z.MAX_KEY)]},ht={get:function(rt){return[He,new ns(rt.key)]},getMany:function(rt){return[He,new ns().addKeys(rt.keys)]},count:Ke,query:Ke,openCursor:Ke};return a(ht).forEach(function(rt){dt[rt]=function(ct){var mt=Fe.subscr,st=!!mt,Ct=mJ(Fe,Ie)&&hJ(rt,ct)?ct.obsSet={}:mt;if(st){var Ot=function(gn){return gn="idb://".concat(ee,"/").concat(Se,"/").concat(gn),Ct[gn]||(Ct[gn]=new ns)},Pt=Ot(""),Yt=Ot(":dels"),mt=ht[rt](ct),st=mt[0],mt=mt[1];if((rt==="query"&&st.isPrimaryKey&&!ct.values?Yt:Ot(st.name||"")).add(mt),!st.isPrimaryKey){if(rt!=="count"){var pn=rt==="query"&&tt&&ct.values&&Ie.query(r(r({},ct),{values:!1}));return Ie[rt].apply(this,arguments).then(function(gn){if(rt==="query"){if(tt&&ct.values)return pn.then(function(Or){return Or=Or.result,Pt.addKeys(Or),gn});var En=ct.values?gn.result.map(Ye):gn.result;(ct.values?Pt:Yt).addKeys(En)}else if(rt==="openCursor"){var _n=gn,Dn=ct.values;return _n&&Object.create(_n,{key:{get:function(){return Yt.addKey(_n.primaryKey),_n.key}},primaryKey:{get:function(){var Or=_n.primaryKey;return Yt.addKey(Or),Or}},value:{get:function(){return Dn&&Pt.addKey(_n.primaryKey),_n.value}}})}return gn})}Yt.add(le)}}return Ie[rt].apply(this,arguments)}}),dt}})}};function gJ(z,ee,le){if(le.numFailures===0)return ee;if(ee.type==="deleteRange")return null;var Se=ee.keys?ee.keys.length:"values"in ee&&ee.values?ee.values.length:1;return le.numFailures===Se?null:(ee=r({},ee),s(ee.keys)&&(ee.keys=ee.keys.filter(function(Ie,Pe){return!(Pe in le.failures)})),"values"in ee&&s(ee.values)&&(ee.values=ee.values.filter(function(Ie,Pe){return!(Pe in le.failures)})),ee)}function h3(z,ee){return le=z,((Se=ee).lower===void 0||(Se.lowerOpen?0<Le(le,Se.lower):0<=Le(le,Se.lower)))&&(z=z,(ee=ee).upper===void 0||(ee.upperOpen?Le(z,ee.upper)<0:Le(z,ee.upper)<=0));var le,Se}function vJ(z,ee,ht,Se,Ie,Pe){if(!ht||ht.length===0)return z;var He=ee.query.index,Ye=He.multiEntry,tt=ee.query.range,ot=Se.schema.primaryKey.extractKey,dt=He.extractKey,Ke=(He.lowLevelIndex||He).extractKey,ht=ht.reduce(function(rt,ct){var mt=rt,st=[];if(ct.type==="add"||ct.type==="put")for(var Ct=new ns,Ot=ct.values.length-1;0<=Ot;--Ot){var Pt,Yt=ct.values[Ot],pn=ot(Yt);Ct.hasKey(pn)||(Pt=dt(Yt),(Ye&&s(Pt)?Pt.some(function(_n){return h3(_n,tt)}):h3(Pt,tt))&&(Ct.addKey(pn),st.push(Yt)))}switch(ct.type){case"add":var yn=new ns().addKeys(ee.values?rt.map(function(Dn){return ot(Dn)}):rt),mt=rt.concat(ee.values?st.filter(function(Dn){return Dn=ot(Dn),!yn.hasKey(Dn)&&(yn.addKey(Dn),!0)}):st.map(function(Dn){return ot(Dn)}).filter(function(Dn){return!yn.hasKey(Dn)&&(yn.addKey(Dn),!0)}));break;case"put":var mn=new ns().addKeys(ct.values.map(function(Dn){return ot(Dn)}));mt=rt.filter(function(Dn){return!mn.hasKey(ee.values?ot(Dn):Dn)}).concat(ee.values?st:st.map(function(Dn){return ot(Dn)}));break;case"delete":var gn=new ns().addKeys(ct.keys);mt=rt.filter(function(Dn){return!gn.hasKey(ee.values?ot(Dn):Dn)});break;case"deleteRange":var En=ct.range;mt=rt.filter(function(Dn){return!h3(ot(Dn),En)})}return mt},z);return ht===z?z:(ht.sort(function(rt,ct){return Le(Ke(rt),Ke(ct))||Le(ot(rt),ot(ct))}),ee.limit&&ee.limit<1/0&&(ht.length>ee.limit?ht.length=ee.limit:z.length===ee.limit&&ht.length<ee.limit&&(Ie.dirty=!0)),Pe?Object.freeze(ht):ht)}function _J(z,ee){return Le(z.lower,ee.lower)===0&&Le(z.upper,ee.upper)===0&&!!z.lowerOpen==!!ee.lowerOpen&&!!z.upperOpen==!!ee.upperOpen}function iBe(z,ee){return function(le,Se,Ie,Pe){if(le===void 0)return Se!==void 0?-1:0;if(Se===void 0)return 1;if((Se=Le(le,Se))===0){if(Ie&&Pe)return 0;if(Ie)return 1;if(Pe)return-1}return Se}(z.lower,ee.lower,z.lowerOpen,ee.lowerOpen)<=0&&0<=function(le,Se,Ie,Pe){if(le===void 0)return Se!==void 0?1:0;if(Se===void 0)return-1;if((Se=Le(le,Se))===0){if(Ie&&Pe)return 0;if(Ie)return-1;if(Pe)return 1}return Se}(z.upper,ee.upper,z.upperOpen,ee.upperOpen)}function oBe(z,ee,le,Se){z.subscribers.add(le),Se.addEventListener("abort",function(){var Ie,Pe;z.subscribers.delete(le),z.subscribers.size===0&&(Ie=z,Pe=ee,setTimeout(function(){Ie.subscribers.size===0&&U(Pe,Ie)},3e3))})}var aBe={stack:"dbcore",level:0,name:"Cache",create:function(z){var ee=z.schema.name;return r(r({},z),{transaction:function(le,Se,Ie){var Pe,He,Ye=z.transaction(le,Se,Ie);return Se==="readwrite"&&(He=(Pe=new AbortController).signal,Ie=function(tt){return function(){if(Pe.abort(),Se==="readwrite"){for(var ot=new Set,dt=0,Ke=le;dt<Ke.length;dt++){var ht=Ke[dt],rt=mg["idb://".concat(ee,"/").concat(ht)];if(rt){var ct=z.table(ht),mt=rt.optimisticOps.filter(function(Dn){return Dn.trans===Ye});if(Ye._explicit&&tt&&Ye.mutatedParts)for(var st=0,Ct=Object.values(rt.queries.query);st<Ct.length;st++)for(var Ot=0,Pt=(yn=Ct[st]).slice();Ot<Pt.length;Ot++)l3((mn=Pt[Ot]).obsSet,Ye.mutatedParts)&&(U(yn,mn),mn.subscribers.forEach(function(Dn){return ot.add(Dn)}));else if(0<mt.length){rt.optimisticOps=rt.optimisticOps.filter(function(Dn){return Dn.trans!==Ye});for(var Yt=0,pn=Object.values(rt.queries.query);Yt<pn.length;Yt++)for(var yn,mn,gn,En=0,_n=(yn=pn[Yt]).slice();En<_n.length;En++)(mn=_n[En]).res!=null&&Ye.mutatedParts&&(tt&&!mn.dirty?(gn=Object.isFrozen(mn.res),gn=vJ(mn.res,mn.req,mt,ct,mn,gn),mn.dirty?(U(yn,mn),mn.subscribers.forEach(function(Dn){return ot.add(Dn)})):gn!==mn.res&&(mn.res=gn,mn.promise=Ge.resolve({result:gn}))):(mn.dirty&&U(yn,mn),mn.subscribers.forEach(function(Dn){return ot.add(Dn)})))}}}ot.forEach(function(Dn){return Dn()})}}},Ye.addEventListener("abort",Ie(!1),{signal:He}),Ye.addEventListener("error",Ie(!1),{signal:He}),Ye.addEventListener("complete",Ie(!0),{signal:He})),Ye},table:function(le){var Se=z.table(le),Ie=Se.schema.primaryKey;return r(r({},Se),{mutate:function(Pe){var He=Fe.trans;if(Ie.outbound||He.db._options.cache==="disabled"||He.explicit||He.idbtrans.mode!=="readwrite")return Se.mutate(Pe);var Ye=mg["idb://".concat(ee,"/").concat(le)];return Ye?(He=Se.mutate(Pe),Pe.type!=="add"&&Pe.type!=="put"||!(50<=Pe.values.length||m3(Ie,Pe).some(function(tt){return tt==null}))?(Ye.optimisticOps.push(Pe),Pe.mutatedParts&&fR(Pe.mutatedParts),He.then(function(tt){0<tt.numFailures&&(U(Ye.optimisticOps,Pe),(tt=gJ(0,Pe,tt))&&Ye.optimisticOps.push(tt),Pe.mutatedParts&&fR(Pe.mutatedParts))}),He.catch(function(){U(Ye.optimisticOps,Pe),Pe.mutatedParts&&fR(Pe.mutatedParts)})):He.then(function(tt){var ot=gJ(0,r(r({},Pe),{values:Pe.values.map(function(dt,Ke){var ht;return tt.failures[Ke]?dt:(dt=(ht=Ie.keyPath)!==null&&ht!==void 0&&ht.includes(".")?P(dt):r({},dt),w(dt,Ie.keyPath,tt.results[Ke]),dt)})}),tt);Ye.optimisticOps.push(ot),queueMicrotask(function(){return Pe.mutatedParts&&fR(Pe.mutatedParts)})}),He):Se.mutate(Pe)},query:function(Pe){if(!mJ(Fe,Se)||!hJ("query",Pe))return Se.query(Pe);var He=((ot=Fe.trans)===null||ot===void 0?void 0:ot.db._options.cache)==="immutable",Ke=Fe,Ye=Ke.requery,tt=Ke.signal,ot=function(ct,mt,st,Ct){var Ot=mg["idb://".concat(ct,"/").concat(mt)];if(!Ot)return[];if(!(mt=Ot.queries[st]))return[null,!1,Ot,null];var Pt=mt[(Ct.query?Ct.query.index.name:null)||""];if(!Pt)return[null,!1,Ot,null];switch(st){case"query":var Yt=Pt.find(function(pn){return pn.req.limit===Ct.limit&&pn.req.values===Ct.values&&_J(pn.req.query.range,Ct.query.range)});return Yt?[Yt,!0,Ot,Pt]:[Pt.find(function(pn){return("limit"in pn.req?pn.req.limit:1/0)>=Ct.limit&&(!Ct.values||pn.req.values)&&iBe(pn.req.query.range,Ct.query.range)}),!1,Ot,Pt];case"count":return Yt=Pt.find(function(pn){return _J(pn.req.query.range,Ct.query.range)}),[Yt,!!Yt,Ot,Pt]}}(ee,le,"query",Pe),dt=ot[0],Ke=ot[1],ht=ot[2],rt=ot[3];return dt&&Ke?dt.obsSet=Pe.obsSet:(Ke=Se.query(Pe).then(function(ct){var mt=ct.result;if(dt&&(dt.res=mt),He){for(var st=0,Ct=mt.length;st<Ct;++st)Object.freeze(mt[st]);Object.freeze(mt)}else ct.result=P(mt);return ct}).catch(function(ct){return rt&&dt&&U(rt,dt),Promise.reject(ct)}),dt={obsSet:Pe.obsSet,promise:Ke,subscribers:new Set,type:"query",req:Pe,dirty:!1},rt?rt.push(dt):(rt=[dt],(ht=ht||(mg["idb://".concat(ee,"/").concat(le)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Pe.query.index.name||""]=rt)),oBe(dt,rt,Ye,tt),dt.promise.then(function(ct){return{result:vJ(ct.result,Pe,ht==null?void 0:ht.optimisticOps,Se,dt,He)}})}})}})}};function mR(z,ee){return new Proxy(z,{get:function(le,Se,Ie){return Se==="db"?ee:Reflect.get(le,Se,Ie)}})}var xf=(ko.prototype.version=function(z){if(isNaN(z)||z<.1)throw new Z.Type("Given version is not a positive number");if(z=Math.round(10*z)/10,this.idbdb||this._state.isBeingOpened)throw new Z.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,z);var ee=this._versions,le=ee.filter(function(Se){return Se._cfg.version===z})[0];return le||(le=new this.Version(z),ee.push(le),ee.sort(KFe),le.stores({}),this._state.autoSchema=!1,le)},ko.prototype._whenReady=function(z){var ee=this;return this.idbdb&&(this._state.openComplete||Fe.letThrough||this._vip)?z():new Ge(function(le,Se){if(ee._state.openComplete)return Se(new Z.DatabaseClosed(ee._state.dbOpenError));if(!ee._state.isBeingOpened){if(!ee._state.autoOpen)return void Se(new Z.DatabaseClosed);ee.open().catch(ae)}ee._state.dbReadyPromise.then(le,Se)}).then(z)},ko.prototype.use=function(z){var ee=z.stack,le=z.create,Se=z.level,Ie=z.name;return Ie&&this.unuse({stack:ee,name:Ie}),z=this._middlewares[ee]||(this._middlewares[ee]=[]),z.push({stack:ee,create:le,level:Se??10,name:Ie}),z.sort(function(Pe,He){return Pe.level-He.level}),this},ko.prototype.unuse=function(z){var ee=z.stack,le=z.name,Se=z.create;return ee&&this._middlewares[ee]&&(this._middlewares[ee]=this._middlewares[ee].filter(function(Ie){return Se?Ie.create!==Se:!!le&&Ie.name!==le})),this},ko.prototype.open=function(){var z=this;return Wt(me,function(){return JFe(z)})},ko.prototype._close=function(){var z=this._state,ee=Rt.indexOf(this);if(0<=ee&&Rt.splice(ee,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}z.isBeingOpened||(z.dbReadyPromise=new Ge(function(le){z.dbReadyResolve=le}),z.openCanceller=new Ge(function(le,Se){z.cancelOpen=Se}))},ko.prototype.close=function(le){var ee=(le===void 0?{disableAutoOpen:!0}:le).disableAutoOpen,le=this._state;ee?(le.isBeingOpened&&le.cancelOpen(new Z.DatabaseClosed),this._close(),le.autoOpen=!1,le.dbOpenError=new Z.DatabaseClosed):(this._close(),le.autoOpen=this._options.autoOpen||le.isBeingOpened,le.openComplete=!1,le.dbOpenError=null)},ko.prototype.delete=function(z){var ee=this;z===void 0&&(z={disableAutoOpen:!0});var le=0<arguments.length&&typeof arguments[0]!="object",Se=this._state;return new Ge(function(Ie,Pe){function He(){ee.close(z);var Ye=ee._deps.indexedDB.deleteDatabase(ee.name);Ye.onsuccess=Ve(function(){var tt,ot,dt;tt=ee._deps,ot=ee.name,dt=tt.indexedDB,tt=tt.IDBKeyRange,o3(dt)||ot===Tt||i3(dt,tt).delete(ot).catch(ae),Ie()}),Ye.onerror=wa(Pe),Ye.onblocked=ee._fireOnBlocked}if(le)throw new Z.InvalidArgument("Invalid closeOptions argument to db.delete()");Se.isBeingOpened?Se.dbReadyPromise.then(He):He()})},ko.prototype.backendDB=function(){return this.idbdb},ko.prototype.isOpen=function(){return this.idbdb!==null},ko.prototype.hasBeenClosed=function(){var z=this._state.dbOpenError;return z&&z.name==="DatabaseClosed"},ko.prototype.hasFailed=function(){return this._state.dbOpenError!==null},ko.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(ko.prototype,"tables",{get:function(){var z=this;return a(this._allTables).map(function(ee){return z._allTables[ee]})},enumerable:!1,configurable:!0}),ko.prototype.transaction=function(){var z=(function(ee,le,Se){var Ie=arguments.length;if(Ie<2)throw new Z.InvalidArgument("Too few arguments");for(var Pe=new Array(Ie-1);--Ie;)Pe[Ie-1]=arguments[Ie];return Se=Pe.pop(),[ee,R(Pe),Se]}).apply(this,arguments);return this._transaction.apply(this,z)},ko.prototype._transaction=function(z,ee,le){var Se=this,Ie=Fe.trans;Ie&&Ie.db===this&&z.indexOf("!")===-1||(Ie=null);var Pe,He,Ye=z.indexOf("?")!==-1;z=z.replace("!","").replace("?","");try{if(He=ee.map(function(ot){if(ot=ot instanceof Se.Table?ot.name:ot,typeof ot!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return ot}),z=="r"||z===xn)Pe=xn;else{if(z!="rw"&&z!=Un)throw new Z.InvalidArgument("Invalid transaction mode: "+z);Pe=Un}if(Ie){if(Ie.mode===xn&&Pe===Un){if(!Ye)throw new Z.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Ie=null}Ie&&He.forEach(function(ot){if(Ie&&Ie.storeNames.indexOf(ot)===-1){if(!Ye)throw new Z.SubTransaction("Table "+ot+" not included in parent transaction.");Ie=null}}),Ye&&Ie&&!Ie.active&&(Ie=null)}}catch(ot){return Ie?Ie._promise(null,function(dt,Ke){Ke(ot)}):Ft(ot)}var tt=(function ot(dt,Ke,ht,rt,ct){return Ge.resolve().then(function(){var mt=Fe.transless||Fe,st=dt._createTransaction(Ke,ht,dt._dbSchema,rt);if(st.explicit=!0,mt={trans:st,transless:mt},rt)st.idbtrans=rt.idbtrans;else try{st.create(),st.idbtrans._explicit=!0,dt._state.PR1398_maxLoop=3}catch(Pt){return Pt.name===A.InvalidState&&dt.isOpen()&&0<--dt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),dt.close({disableAutoOpen:!1}),dt.open().then(function(){return ot(dt,Ke,ht,null,ct)})):Ft(Pt)}var Ct,Ot=W(ct);return Ot&&zt(),mt=Ge.follow(function(){var Pt;(Ct=ct.call(st,st))&&(Ot?(Pt=Gt.bind(null,null),Ct.then(Pt,Pt)):typeof Ct.next=="function"&&typeof Ct.throw=="function"&&(Ct=f3(Ct)))},mt),(Ct&&typeof Ct.then=="function"?Ge.resolve(Ct).then(function(Pt){return st.active?Pt:Ft(new Z.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):mt.then(function(){return Ct})).then(function(Pt){return rt&&st._resolve(),st._completion.then(function(){return Pt})}).catch(function(Pt){return st._reject(Pt),Ft(Pt)})})}).bind(null,this,Pe,He,Ie,le);return Ie?Ie._promise(Pe,tt,"lock"):Fe.trans?Wt(Fe.transless,function(){return Se._whenReady(tt)}):this._whenReady(tt)},ko.prototype.table=function(z){if(!d(this._allTables,z))throw new Z.InvalidTable("Table ".concat(z," does not exist"));return this._allTables[z]},ko);function ko(z,ee){var le=this;this._middlewares={},this.verno=0;var Se=ko.dependencies;this._options=ee=r({addons:ko.addons,autoOpen:!0,indexedDB:Se.indexedDB,IDBKeyRange:Se.IDBKeyRange,cache:"cloned"},ee),this._deps={indexedDB:ee.indexedDB,IDBKeyRange:ee.IDBKeyRange},Se=ee.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var Ie,Pe,He,Ye,tt,ot={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ae,dbReadyPromise:null,cancelOpen:ae,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:ee.autoOpen};ot.dbReadyPromise=new Ge(function(Ke){ot.dbReadyResolve=Ke}),ot.openCanceller=new Ge(function(Ke,ht){ot.cancelOpen=ht}),this._state=ot,this.name=z,this.on=Kr(this,"populate","blocked","versionchange","close",{ready:[ge,ae]}),this.on.ready.subscribe=b(this.on.ready.subscribe,function(Ke){return function(ht,rt){ko.vip(function(){var ct,mt=le._state;mt.openComplete?(mt.dbOpenError||Ge.resolve().then(ht),rt&&Ke(ht)):mt.onReadyBeingFired?(mt.onReadyBeingFired.push(ht),rt&&Ke(ht)):(Ke(ht),ct=le,rt||Ke(function st(){ct.on.ready.unsubscribe(ht),ct.on.ready.unsubscribe(st)}))})}}),this.Collection=(Ie=this,Ur(co.prototype,function(Ct,st){this.db=Ie;var rt=j,ct=null;if(st)try{rt=st()}catch(Ot){ct=Ot}var mt=Ct._ctx,st=mt.table,Ct=st.hook.reading.fire;this._ctx={table:st,index:mt.index,isPrimKey:!mt.index||st.schema.primKey.keyPath&&mt.index===st.schema.primKey.name,range:rt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:ct,or:mt.or,valueMapper:Ct!==ue?Ct:null}})),this.Table=(Pe=this,Ur(dn.prototype,function(Ke,ht,rt){this.db=Pe,this._tx=rt,this.name=Ke,this.schema=ht,this.hook=Pe._allTables[Ke]?Pe._allTables[Ke].hook:Kr(null,{creating:[pe,ae],reading:[fe,ue],updating:[Te,ae],deleting:[_e,ae]})})),this.Transaction=(He=this,Ur(ar.prototype,function(Ke,ht,rt,ct,mt){var st=this;this.db=He,this.mode=Ke,this.storeNames=ht,this.schema=rt,this.chromeTransactionDurability=ct,this.idbtrans=null,this.on=Kr(this,"complete","error","abort"),this.parent=mt||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ge(function(Ct,Ot){st._resolve=Ct,st._reject=Ot}),this._completion.then(function(){st.active=!1,st.on.complete.fire()},function(Ct){var Ot=st.active;return st.active=!1,st.on.error.fire(Ct),st.parent?st.parent._reject(Ct):Ot&&st.idbtrans&&st.idbtrans.abort(),Ft(Ct)})})),this.Version=(Ye=this,Ur(ZFe.prototype,function(Ke){this.db=Ye,this._cfg={version:Ke,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(tt=this,Ur(ts.prototype,function(Ke,ht,rt){if(this.db=tt,this._ctx={table:Ke,index:ht===":id"?null:ht,or:rt},this._cmp=this._ascending=Le,this._descending=function(ct,mt){return Le(mt,ct)},this._max=function(ct,mt){return 0<Le(ct,mt)?ct:mt},this._min=function(ct,mt){return Le(ct,mt)<0?ct:mt},this._IDBKeyRange=tt._deps.IDBKeyRange,!this._IDBKeyRange)throw new Z.MissingAPI})),this.on("versionchange",function(Ke){0<Ke.newVersion?console.warn("Another connection wants to upgrade database '".concat(le.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(le.name,"'. Closing db now to resume the delete request.")),le.close({disableAutoOpen:!1})}),this.on("blocked",function(Ke){!Ke.newVersion||Ke.newVersion<Ke.oldVersion?console.warn("Dexie.delete('".concat(le.name,"') was blocked")):console.warn("Upgrade '".concat(le.name,"' blocked by other connection holding version ").concat(Ke.oldVersion/10))}),this._maxKey=wf(ee.IDBKeyRange),this._createTransaction=function(Ke,ht,rt,ct){return new le.Transaction(Ke,ht,rt,le._options.chromeTransactionDurability,ct)},this._fireOnBlocked=function(Ke){le.on("blocked").fire(Ke),Rt.filter(function(ht){return ht.name===le.name&&ht!==le&&!ht._state.vcFired}).map(function(ht){return ht.on("versionchange").fire(Ke)})},this.use(nBe),this.use(aBe),this.use(rBe),this.use(eBe),this.use(tBe);var dt=new Proxy(this,{get:function(Ke,ht,rt){if(ht==="_vip")return!0;if(ht==="table")return function(mt){return mR(le.table(mt),dt)};var ct=Reflect.get(Ke,ht,rt);return ct instanceof dn?mR(ct,dt):ht==="tables"?ct.map(function(mt){return mR(mt,dt)}):ht==="_createTransaction"?function(){return mR(ct.apply(this,arguments),dt)}:ct}});this.vip=dt,Se.forEach(function(Ke){return Ke(le)})}var hR,_c=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",sBe=(g3.prototype.subscribe=function(z,ee,le){return this._subscribe(z&&typeof z!="function"?z:{next:z,error:ee,complete:le})},g3.prototype[_c]=function(){return this},g3);function g3(z){this._subscribe=z}try{hR={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{hR={indexedDB:null,IDBKeyRange:null}}function yJ(z){var ee,le=!1,Se=new sBe(function(Ie){var Pe=W(z),He,Ye=!1,tt={},ot={},dt={get closed(){return Ye},unsubscribe:function(){Ye||(Ye=!0,He&&He.abort(),Ke&&Tn.storagemutated.unsubscribe(rt))}};Ie.start&&Ie.start(dt);var Ke=!1,ht=function(){return yt(ct)},rt=function(mt){dR(tt,mt),l3(ot,tt)&&ht()},ct=function(){var mt,st,Ct;!Ye&&hR.indexedDB&&(tt={},mt={},He&&He.abort(),He=new AbortController,Ct=function(Ot){var Pt=xt();try{Pe&&zt();var Yt=jt(z,Ot);return Yt=Pe?Yt.finally(Gt):Yt}finally{Pt&&Nt()}}(st={subscr:mt,signal:He.signal,requery:ht,querier:z,trans:null}),Promise.resolve(Ct).then(function(Ot){le=!0,ee=Ot,Ye||st.signal.aborted||(tt={},function(Pt){for(var Yt in Pt)if(d(Pt,Yt))return;return 1}(ot=mt)||Ke||(Tn(vc,rt),Ke=!0),yt(function(){return!Ye&&Ie.next&&Ie.next(Ot)}))},function(Ot){le=!1,["DatabaseClosedError","AbortError"].includes(Ot==null?void 0:Ot.name)||Ye||yt(function(){Ye||Ie.error&&Ie.error(Ot)})}))};return setTimeout(ht,0),dt});return Se.hasValue=function(){return le},Se.getValue=function(){return ee},Se}var hg=xf;function v3(z){var ee=am;try{am=!0,Tn.storagemutated.fire(z),d3(z,!0)}finally{am=ee}}f(hg,r(r({},oe),{delete:function(z){return new hg(z,{addons:[]}).delete()},exists:function(z){return new hg(z,{addons:[]}).open().then(function(ee){return ee.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(z){try{return ee=hg.dependencies,le=ee.indexedDB,ee=ee.IDBKeyRange,(o3(le)?Promise.resolve(le.databases()).then(function(Se){return Se.map(function(Ie){return Ie.name}).filter(function(Ie){return Ie!==Tt})}):i3(le,ee).toCollection().primaryKeys()).then(z)}catch{return Ft(new Z.MissingAPI)}var ee,le},defineClass:function(){return function(z){l(this,z)}},ignoreTransaction:function(z){return Fe.trans?Wt(Fe.transless,z):z()},vip:a3,async:function(z){return function(){try{var ee=f3(z.apply(this,arguments));return ee&&typeof ee.then=="function"?ee:Ge.resolve(ee)}catch(le){return Ft(le)}}},spawn:function(z,ee,le){try{var Se=f3(z.apply(le,ee||[]));return Se&&typeof Se.then=="function"?Se:Ge.resolve(Se)}catch(Ie){return Ft(Ie)}},currentTransaction:{get:function(){return Fe.trans||null}},waitFor:function(z,ee){return ee=Ge.resolve(typeof z=="function"?hg.ignoreTransaction(z):z).timeout(ee||6e4),Fe.trans?Fe.trans.waitFor(ee):ee},Promise:Ge,debug:{get:function(){return Ce},set:function(z){ye(z)}},derive:g,extend:l,props:f,override:b,Events:Kr,on:Tn,liveQuery:yJ,extendObservabilitySet:dR,getByKeyPath:E,setByKeyPath:w,delByKeyPath:function(z,ee){typeof ee=="string"?w(z,ee,void 0):"length"in ee&&[].map.call(ee,function(le){w(z,le,void 0)})},shallowClone:x,deepClone:P,getObjectDiff:p3,cmp:Le,asap:C,minKey:-1/0,addons:[],connections:Rt,errnames:A,dependencies:hR,cache:mg,semVer:"4.0.10",version:"4.0.10".split(".").map(function(z){return parseInt(z)}).reduce(function(z,ee,le){return z+ee/Math.pow(10,2*le)})})),hg.maxKey=wf(hg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Tn(vc,function(z){am||(z=new CustomEvent(im,{detail:z}),am=!0,dispatchEvent(z),am=!1)}),addEventListener(im,function(z){z=z.detail,am||v3(z)}));var ay,am=!1,bJ=function(){};return typeof BroadcastChannel<"u"&&((bJ=function(){(ay=new BroadcastChannel(im)).onmessage=function(z){return z.data&&v3(z.data)}})(),typeof ay.unref=="function"&&ay.unref(),Tn(vc,function(z){am||ay.postMessage(z)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(z){if(!xf.disableBfCache&&z.persisted){Ce&&console.debug("Dexie: handling persisted pagehide"),ay!=null&&ay.close();for(var ee=0,le=Rt;ee<le.length;ee++)le[ee].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(z){!xf.disableBfCache&&z.persisted&&(Ce&&console.debug("Dexie: handling persisted pageshow"),bJ(),v3({all:new ns(-1/0,[[]])}))})),Ge.rejectionMapper=function(z,ee){return!z||z instanceof H||z instanceof TypeError||z instanceof SyntaxError||!z.name||!ne[z.name]?z:(ee=new ne[z.name](ee||z.message,z),"stack"in z&&h(ee,"stack",{get:function(){return this.inner.stack}}),ee)},ye(Ce),r(xf,Object.freeze({__proto__:null,Dexie:xf,liveQuery:yJ,Entity:we,cmp:Le,PropModSymbol:jn,PropModification:vr,replacePrefix:function(z,ee){return new vr({replacePrefix:[z,ee]})},add:function(z){return new vr({add:z})},remove:function(z){return new vr({remove:z})},default:xf,RangeSet:ns,mergeRanges:oE,rangesOverlap:cJ}),{default:xf}),xf})})(xIe);var h0t=xIe.exports;const $9=yi(h0t),oae=Symbol.for("Dexie"),DA=globalThis[oae]||(globalThis[oae]=$9);if($9.semVer!==DA.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${$9.semVer} and ${DA.semVer}`);const{liveQuery:g0t,mergeRanges:YCn,rangesOverlap:qCn,RangeSet:KCn,cmp:QCn,Entity:XCn,PropModSymbol:ZCn,PropModification:JCn,replacePrefix:e1n,add:t1n,remove:n1n}=DA;class TIe extends DA{constructor(){super("bytedesk");ni(this,"threads");ni(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(n){return console.log("useIndexedDB createMessage",n.content),await Tc.messages.put({uid:n.uid,type:n.type,content:n.content,client:n.client,createdAt:n.createdAt,status:"unread",threadTopic:n.threadTopic})}async getAllMessages(){return(await Tc.messages.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",threadTopic:r.threadTopic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await Tc.messages.get(n)}async updateMessage(n,r){return await Tc.messages.update(n,{content:r})}async deleteMessage(n){return await Tc.messages.delete(n)}subscribeMessages(){g0t(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(o=>o.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,o;return console.log("useIndexedDB createThread",n.topic),await Tc.threads.put({uid:n.uid,type:n.type,topic:n.topic,status:n.status,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(o=n.user)==null?void 0:o.avatar})}async getAllThreads(){return(await Tc.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.status||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Tc.threads.get(n)}async updateThread(n,r){return await Tc.threads.update(n,r)}async deleteThread(n){return await Tc.threads.delete(n)}}const Tc=new TIe;let Eo,Zs,Js,Ey=!1;const v0t=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Zs=Yo.getState().userInfo,Js=T_.getState().agentInfo,Ey){console.log("mqtt is connecting");return}if(Eo&&Eo.connected){console.log("mqtt already connected");return}if(Eo&&Eo.reconnecting){console.log("mqtt already reconnecting");return}Ey=!0;const r=Yo.getState().deviceUid,o={keepalive:30,clientId:e+"/"+Pi+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",o),Eo=J9e.connect(i7e(),o),Eo.on("connect",()=>{console.log("mqtt event connected"),Ey=!1,fr.emit(Ij)}),Eo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=wEe.Message.deserializeBinary(s),u=$u.getState().currentThread,d={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},f={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),threadTopic:c.getThread().getTopic()};if(S0t(c,Zs,Js))switch(c.getType()){case zj:case Hj:RF(c);return;case Uj:case jj:return;case Zee:return;case ete:console.log("self transfer message"),cae(f,d);break;case tte:console.log("self transfer accept message"),uae(f,d);return;case nte:console.log("self transfer reject message"),dae(f,d);return;case Jee:console.log("self recall message"),fae(f);return;case U1:console.log("thread closed message"),$u.getState().closeThread(d.topic);break;default:c.setStatus(Fj)}else switch(c.getType()){case zj:case Hj:RF(c);return;case Uj:case jj:lae(u,d,c.getType());return;case F1:lae(u,d,c.getType());break;case Zee:E0t(c,u,d);return;case _Ue:case yUe:case bUe:case SUe:case EUe:case CUe:RF(c);return;case ete:console.log("transfer message"),cae(f,d);break;case tte:console.log("transfer accept message"),uae(f,d);return;case nte:console.log("transfer reject message"),dae(f,d);return;case Jee:console.log("recall message"),fae(f);return;case B1:case U1:console.log("thread closed message"),$u.getState().closeThread(d.topic);break;default:console.log("send receive message type",c.getType()),C0t(c,u,d)}console.log("mqtt message received",a,f,d),Pp.getState().addMessage(f),fr.emit($1,f);const p=$u.getState().addThreadWithMessage(d,f);console.log("unreadCount",p);try{await Tc.createMessage(f),console.log("Sent message stored in IndexedDB:",f)}catch(h){console.error("Error storing sent message in IndexedDB:",h)}}),Eo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),Eo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),Eo.on("reconnect",()=>{console.log("mqtt event reconnect")}),Eo.on("close",()=>{console.log("mqtt event close"),Ey=!1,fr.emit(Mj)}),Eo.on("disconnect",()=>{console.error("mqtt event disconnected"),Ey=!1,fr.emit(Aj)}),Eo.on("offline",()=>{console.log("mqtt event offline"),Ey=!1,fr.emit(Nj)}),Eo.on("error",()=>{console.log("mqtt event error"),fr.emit(Pj)}),Eo.on("end",()=>{console.log("mqtt event end"),fr.emit(Dj)})},aae=new Set,RIe=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),aae.has(e)||(aae.add(e),OIe(Y2(),Hj,e,t))},sae=new Set,_0t=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),sae.has(e)||(sae.add(e),OIe(Y2(),zj,e,t))},OIe=async(e,t,n,r)=>{var o,a,s,l,c,u,d,f;console.log("mqtt mqttSendMessage",n);const i=fYe();if(Eo&&Eo.connected){const p=new tze.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const h=new une.User;h.setUid((o=r.user)==null?void 0:o.uid),h.setNickname((a=r.user)==null?void 0:a.nickname),h.setAvatar((s=r.user)==null?void 0:s.avatar),p.setUser(h);const g=new une.User;(Js==null?void 0:Js.uid)!=""&&((r==null?void 0:r.type)===Yee||(r==null?void 0:r.type)===qee)?(g.setUid(Js.uid),g.setNickname(Js.nickname),g.setAvatar(Js.avatar),g.setType(Gee)):(g.setUid(Zs.uid),g.setNickname(Zs.nickname),g.setAvatar(Zs.avatar),g.setType(Wee));const v={orgUid:(l=Zs==null?void 0:Zs.currentOrganization)==null?void 0:l.uid},y=new wEe.Message;y.setUid(e),y.setType(t),y.setStatus(Xee),y.setCreatedat(i),y.setClient(Pi),y.setContent(n),y.setUser(g),y.setThread(p),y.setExtra(JSON.stringify(v));const _=y.serializeBinary();Eo.publish(r.topic,_);try{const b={uid:y.getUid(),type:y.getType(),content:y.getContent(),client:y.getClient(),createdAt:y.getCreatedat(),status:y.getStatus(),threadTopic:y.getThread().getTopic(),user:{uid:y.getUser().getUid(),nickname:y.getUser().getNickname(),avatar:y.getUser().getAvatar()}};await Tc.createMessage(b),console.log("Sent message stored in IndexedDB:",b)}catch(b){console.error("Error storing sent message in IndexedDB:",b)}}else{console.log("mqttClient is disconnect, use http rest api");const p={uid:r.uid,type:r.type,topic:r.topic,user:{uid:(c=r.user)==null?void 0:c.uid,nickname:(u=r.user)==null?void 0:u.nickname,avatar:(d=r.user)==null?void 0:d.avatar}};let h;(Js==null?void 0:Js.uid)!=""&&((r==null?void 0:r.type)===Yee||(r==null?void 0:r.type)===qee)?h={uid:Js.uid,nickname:Js.nickname,avatar:Js.avatar,type:Gee}:h={uid:Zs.uid,nickname:Zs.nickname,avatar:Zs.avatar,type:Wee};const g={orgUid:(f=Zs==null?void 0:Zs.currentOrganization)==null?void 0:f.uid},v={uid:e,type:t,status:Xee,createdAt:i,client:Pi,content:n,extra:JSON.stringify(g),user:h,thread:p};b0t(v)}},TF=()=>{Eo?Eo.end():console.log("mqttClient is null")},y0t=()=>Eo&&Eo.connected,b0t=async e=>{const t=JSON.stringify(e),n=await u7e(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Pp.getState().updateMessageStatus(e==null?void 0:e.uid,Fj);const r={uid:e==null?void 0:e.uid,type:Fj};fr.emit(Ybe,JSON.stringify(r))}else Bt.error(n.data.message)},S0t=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function RF(e){console.log("update message status:",e.getContent(),e.getType()),Pp.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};fr.emit(Ybe,JSON.stringify(t))}function lae(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===Uj?fr.emit(D5e):n===jj?fr.emit(k5e):n===F1&&fr.emit(L5e))}function E0t(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&fr.emit($5e,e.getContent())}function cae(e,t){const n={message:e,thread:t};fr.emit(kj,JSON.stringify(n))}function uae(e,t){const n=JSON.parse(e==null?void 0:e.content);Pp.getState().updateMessageStatus(n.uid,uUe);const r={message:e,thread:t};fr.emit(Lj,JSON.stringify(r))}function dae(e,t){const n=JSON.parse(e==null?void 0:e.content);Pp.getState().updateMessageStatus(n.uid,dUe);const r={message:e,thread:t};fr.emit($j,JSON.stringify(r))}function fae(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Pp.getState().recallMessage(e==null?void 0:e.content)}function C0t(e,t,n){if(!gYe(n==null?void 0:n.topic)&&pYe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();RIe(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&_0t(r,n)}}const w0t=_l()(eu(yl(tu(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:Y5e}))),x0t=()=>{uw("https://www.weiyuai.cn/docs/zh-CN/")},uw=e=>{Aa?window.electronAPI.openUrl(e):window.open(e,"_blank")},T0t=async()=>{if(Aa){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},IIe=async()=>Aa?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),R0t=async()=>{if(Aa){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},O0t=(e,t)=>{Aa&&window.electronAPI.showElectronNotification(e,t)},I0t=e=>{Aa?window.electronAPI.setThemeMode(e):console.log("not electron")},F9=()=>{Aa&&window.electronAPI.loginSuccess()},N0t=()=>{Aa&&window.electronAPI.logoutSuccess()};function qq(){const[e,t]=m.useState(""),{myDevice:n,setMyDevice:r}=w0t(x=>({myDevice:x.myDevice,setMyDevice:x.setMyDevice})),{userInfo:i,deviceUid:o,setUserInfo:a,setDeviceUid:s}=Yo(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid,setUserInfo:x.setUserInfo,setDeviceUid:x.setDeviceUid})),{agentInfo:l}=T_(x=>({agentInfo:x.agentInfo})),c=Pp(x=>x.addMessage),u=$u(x=>x.updateThreadContent),d=m.useRef(!1),[f,p]=m.useState(!1);m.useEffect(()=>{p(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(x=>{x.roles.forEach(T=>{T.name===RUe&&p(!0)})})},[i.userOrganizationRoles]);const[h,g]=m.useState(!1);m.useEffect(()=>{g(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(x=>{x.roles.forEach(T=>{T.name===OUe&&g(!0)})})},[i.userOrganizationRoles]);const[v,y]=m.useState(!1);m.useEffect(()=>{y(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(x=>{x.roles.forEach(T=>{T.name===IUe&&y(!0)})})},[i.userOrganizationRoles]);const[_,b]=m.useState(!1);m.useEffect(()=>{b(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(x=>{x.roles.forEach(T=>{T.name===NUe&&b(!0)})})},[i.userOrganizationRoles]);const S="",C=async()=>{const x=await IIe();console.log("ipAddress",e,x),x.length>0&&(t(x[0]),n.ip=x[0],r(n))},E=async()=>{var T,R;if(d.current)return;d.current=!0;const x=await c7e(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",x==null?void 0:x.data),(R=(T=x==null?void 0:x.data)==null?void 0:T.data)==null||R.forEach(N=>{console.log("getAgentMessageUnread item:",N),c(N);const I=u(N.threadTopic,N.content);I&&RIe(N==null?void 0:N.uid,I)}),d.current=!1};return m.useEffect(()=>{_&&E()},[_]),m.useEffect(()=>{console.log("useUserInfo useEffect"),(o===void 0||o==="")&&s(Y2()),C()},[]),{userInfo:i,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async x=>{const T={...l,status:x};Bt.loading("正在更新状态");const R=await l7e(T);console.log("updateAgentStatus:",x,R.data),R.data.code===200?(Bt.destroy(),Bt.success("状态更新成功")):(Bt.destroy(),Bt.error("状态更新失败"))},avatar:S,hasRoleAgent:_,hasRoleSuper:f,hasRoleAdmin:h,hasRoleMember:v}}const Da=m.createContext({}),M0t=({children:e})=>{const[t,n]=m.useState(!1),[r,i]=m.useState(!1),o=ox(T=>T.accessToken),a=MUe(T=>T.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:f,hasRoleAdmin:p,hasRoleMember:h}=qq(),g=m.useMemo(()=>!!o&&o.trim().length>0,[o]),{themeMode:v,setThemeMode:y,isDarkMode:_}=l0e(),[b,S]=m.useState(Jy),C=T=>{let R;T==="en"?R=ate:T==="zh-cn"?R=Jy:T==="zh-tw"?R=Tje:R=Jy,console.log("changeLocale localeValue:",R),S(R),localStorage.setItem(Uee,R.locale)},[E,w]=m.useState(gb),x=T=>{w(T),localStorage.setItem(jee,T)};return m.useEffect(()=>{const T=localStorage.getItem(Uee);S(T==="en"?ate:Jy);const R=localStorage.getItem(jee);w(R===gb?gb:R===jv?jv:wM)},[]),M.jsx(Da.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:a,isDarkMode:_,themeMode:v,setThemeMode:y,locale:b,changeLocale:C,mode:E,changeMode:x,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:f,hasRoleAdmin:p,hasRoleMember:h},children:e})},cc=()=>{const e=m.useContext(Da);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var uk=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dk=typeof window>"u"||"Deno"in globalThis;function xu(){}function A0t(e,t){return typeof e=="function"?e(t):e}function P0t(e){return typeof e=="number"&&e>=0&&e!==1/0}function D0t(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pae(e,t){return typeof e=="function"?e(t):e}function k0t(e,t){return typeof e=="function"?e(t):e}function mae(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Kq(a,t.options))return!1}else if(!fw(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function hae(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(dw(t.options.mutationKey)!==dw(o))return!1}else if(!fw(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Kq(e,t){return((t==null?void 0:t.queryKeyHashFn)||dw)(e)}function dw(e){return JSON.stringify(e,(t,n)=>B9(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!fw(e[n],t[n])):!1}function NIe(e,t){if(e===t)return e;const n=gae(e)&&gae(t);if(n||B9(e)&&B9(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:o[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=NIe(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return i===a&&l===i?e:s}return t}function gae(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function B9(e){if(!vae(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vae(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vae(e){return Object.prototype.toString.call(e)==="[object Object]"}function L0t(e){return new Promise(t=>{setTimeout(t,e)})}function $0t(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NIe(e,t):t}function F0t(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function B0t(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qq=Symbol();function MIe(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qq?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dv,Bm,Db,c_e,U0t=(c_e=class extends uk{constructor(){super();$n(this,dv);$n(this,Bm);$n(this,Db);hn(this,Db,t=>{if(!dk&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ke(this,Bm)||this.setEventListener(ke(this,Db))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,Bm))==null||t.call(this),hn(this,Bm,void 0))}setEventListener(t){var n;hn(this,Db,t),(n=ke(this,Bm))==null||n.call(this),hn(this,Bm,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ke(this,dv)!==t&&(hn(this,dv,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ke(this,dv)=="boolean"?ke(this,dv):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},dv=new WeakMap,Bm=new WeakMap,Db=new WeakMap,c_e),AIe=new U0t,kb,Um,Lb,u_e,j0t=(u_e=class extends uk{constructor(){super();$n(this,kb,!0);$n(this,Um);$n(this,Lb);hn(this,Lb,t=>{if(!dk&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ke(this,Um)||this.setEventListener(ke(this,Lb))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,Um))==null||t.call(this),hn(this,Um,void 0))}setEventListener(t){var n;hn(this,Lb,t),(n=ke(this,Um))==null||n.call(this),hn(this,Um,t(this.setOnline.bind(this)))}setOnline(t){ke(this,kb)!==t&&(hn(this,kb,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ke(this,kb)}},kb=new WeakMap,Um=new WeakMap,Lb=new WeakMap,u_e),kA=new j0t;function H0t(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function z0t(e){return Math.min(1e3*2**e,3e4)}function PIe(e){return(e??"online")==="online"?kA.isOnline():!0}var DIe=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function OF(e){return e instanceof DIe}function kIe(e){let t=!1,n=0,r=!1,i;const o=H0t(),a=g=>{var v;r||(f(new DIe(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>AIe.isFocused()&&(e.networkMode==="always"||kA.isOnline())&&e.canRun(),u=()=>PIe(e.networkMode)&&e.canRun(),d=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var v;i=y=>{(r||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),h=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{var E;if(r)return;const _=e.retry??(dk?0:3),b=e.retryDelay??z0t,S=typeof b=="function"?b(n,y):b,C=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,y);if(t||!C){f(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),L0t(S).then(()=>c()?void 0:p()).then(()=>{t?f(y):h()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?h():p().then(h),o)}}function V0t(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Ds=V0t(),fv,d_e,LIe=(d_e=class{constructor(){$n(this,fv)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P0t(this.gcTime)&&hn(this,fv,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dk?1/0:5*60*1e3))}clearGcTimeout(){ke(this,fv)&&(clearTimeout(ke(this,fv)),hn(this,fv,void 0))}},fv=new WeakMap,d_e),$b,Fb,Oc,ls,Qw,pv,Tu,kf,f_e,G0t=(f_e=class extends LIe{constructor(t){super();$n(this,Tu);$n(this,$b);$n(this,Fb);$n(this,Oc);$n(this,ls);$n(this,Qw);$n(this,pv);hn(this,pv,!1),hn(this,Qw,t.defaultOptions),this.setOptions(t.options),this.observers=[],hn(this,Oc,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,hn(this,$b,Y0t(this.options)),this.state=t.state??ke(this,$b),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ke(this,ls))==null?void 0:t.promise}setOptions(t){this.options={...ke(this,Qw),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ke(this,Oc).remove(this)}setData(t,n){const r=$0t(this.state.data,t,this.options);return Nn(this,Tu,kf).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Nn(this,Tu,kf).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=ke(this,ls))==null?void 0:r.promise;return(i=ke(this,ls))==null||i.cancel(t),n?n.then(xu).catch(xu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ke(this,$b))}isActive(){return this.observers.some(t=>k0t(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qq||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!D0t(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,ls))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,ls))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ke(this,Oc).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ke(this,ls)&&(ke(this,pv)?ke(this,ls).cancel({revert:!0}):ke(this,ls).cancelRetry()),this.scheduleGc()),ke(this,Oc).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Nn(this,Tu,kf).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ke(this,ls))return ke(this,ls).continueRetry(),ke(this,ls).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(hn(this,pv,!0),r.signal)})},o=()=>{const d=MIe(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),hn(this,pv,!1),this.options.persister?this.options.persister(d,f,this):d(f)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),hn(this,Fb,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Nn(this,Tu,kf).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=d=>{var f,p,h,g;OF(d)&&d.silent||Nn(this,Tu,kf).call(this,{type:"error",error:d}),OF(d)||((p=(f=ke(this,Oc).config).onError)==null||p.call(f,d,this),(g=(h=ke(this,Oc).config).onSettled)==null||g.call(h,this.state.data,d,this)),this.scheduleGc()};return hn(this,ls,kIe({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,h,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(v){s(v);return}(p=(f=ke(this,Oc).config).onSuccess)==null||p.call(f,d,this),(g=(h=ke(this,Oc).config).onSettled)==null||g.call(h,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{Nn(this,Tu,kf).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Nn(this,Tu,kf).call(this,{type:"pause"})},onContinue:()=>{Nn(this,Tu,kf).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ke(this,ls).start()}},$b=new WeakMap,Fb=new WeakMap,Oc=new WeakMap,ls=new WeakMap,Qw=new WeakMap,pv=new WeakMap,Tu=new WeakSet,kf=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...W0t(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return OF(i)&&i.revert&&ke(this,Fb)?{...ke(this,Fb),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ds.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ke(this,Oc).notify({query:this,type:"updated",action:t})})},f_e);function W0t(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:PIe(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Y0t(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Dd,p_e,q0t=(p_e=class extends uk{constructor(t={}){super();$n(this,Dd);this.config=t,hn(this,Dd,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Kq(i,n);let a=this.get(o);return a||(a=new G0t({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){ke(this,Dd).has(t.queryHash)||(ke(this,Dd).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ke(this,Dd).get(t.queryHash);n&&(t.destroy(),n===t&&ke(this,Dd).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ds.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ke(this,Dd).get(t)}getAll(){return[...ke(this,Dd).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mae(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mae(t,r)):n}notify(t){Ds.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ds.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ds.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dd=new WeakMap,p_e),kd,Rs,mv,Ld,Tm,m_e,K0t=(m_e=class extends LIe{constructor(t){super();$n(this,Ld);$n(this,kd);$n(this,Rs);$n(this,mv);this.mutationId=t.mutationId,hn(this,Rs,t.mutationCache),hn(this,kd,[]),this.state=t.state||Q0t(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ke(this,kd).includes(t)||(ke(this,kd).push(t),this.clearGcTimeout(),ke(this,Rs).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){hn(this,kd,ke(this,kd).filter(n=>n!==t)),this.scheduleGc(),ke(this,Rs).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ke(this,kd).length||(this.state.status==="pending"?this.scheduleGc():ke(this,Rs).remove(this))}continue(){var t;return((t=ke(this,mv))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,c,u,d,f,p,h,g,v,y,_,b,S,C,E,w;hn(this,mv,kIe({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(x,T)=>{Nn(this,Ld,Tm).call(this,{type:"failed",failureCount:x,error:T})},onPause:()=>{Nn(this,Ld,Tm).call(this,{type:"pause"})},onContinue:()=>{Nn(this,Ld,Tm).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ke(this,Rs).canRun(this)}));const n=this.state.status==="pending",r=!ke(this,mv).canStart();try{if(!n){Nn(this,Ld,Tm).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=ke(this,Rs).config).onMutate)==null?void 0:o.call(i,t,this));const T=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));T!==this.state.context&&Nn(this,Ld,Tm).call(this,{type:"pending",context:T,variables:t,isPaused:r})}const x=await ke(this,mv).start();return await((c=(l=ke(this,Rs).config).onSuccess)==null?void 0:c.call(l,x,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,x,t,this.state.context)),await((p=(f=ke(this,Rs).config).onSettled)==null?void 0:p.call(f,x,null,this.state.variables,this.state.context,this)),await((g=(h=this.options).onSettled)==null?void 0:g.call(h,x,null,t,this.state.context)),Nn(this,Ld,Tm).call(this,{type:"success",data:x}),x}catch(x){try{throw await((y=(v=ke(this,Rs).config).onError)==null?void 0:y.call(v,x,t,this.state.context,this)),await((b=(_=this.options).onError)==null?void 0:b.call(_,x,t,this.state.context)),await((C=(S=ke(this,Rs).config).onSettled)==null?void 0:C.call(S,void 0,x,this.state.variables,this.state.context,this)),await((w=(E=this.options).onSettled)==null?void 0:w.call(E,void 0,x,t,this.state.context)),x}finally{Nn(this,Ld,Tm).call(this,{type:"error",error:x})}}finally{ke(this,Rs).runNext(this)}}},kd=new WeakMap,Rs=new WeakMap,mv=new WeakMap,Ld=new WeakSet,Tm=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ds.batch(()=>{ke(this,kd).forEach(r=>{r.onMutationUpdate(t)}),ke(this,Rs).notify({mutation:this,type:"updated",action:t})})},m_e);function Q0t(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fl,Xw,h_e,X0t=(h_e=class extends uk{constructor(t={}){super();$n(this,Fl);$n(this,Xw);this.config=t,hn(this,Fl,new Map),hn(this,Xw,Date.now())}build(t,n,r){const i=new K0t({mutationCache:this,mutationId:++vg(this,Xw)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=hO(t),r=ke(this,Fl).get(n)??[];r.push(t),ke(this,Fl).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=hO(t);if(ke(this,Fl).has(n)){const i=(r=ke(this,Fl).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?ke(this,Fl).delete(n):ke(this,Fl).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=ke(this,Fl).get(hO(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=ke(this,Fl).get(hO(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ds.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...ke(this,Fl).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hae(n,r))}findAll(t={}){return this.getAll().filter(n=>hae(t,n))}notify(t){Ds.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ds.batch(()=>Promise.all(t.map(n=>n.continue().catch(xu))))}},Fl=new WeakMap,Xw=new WeakMap,h_e);function hO(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function _ae(e){return{onFetch:(t,n)=>{var u,d,f,p,h;const r=t.options,i=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=MIe(t.options,t.fetchOptions),_=async(b,S,C)=>{if(g)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const E={queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};v(E);const w=await y(E),{maxPages:x}=t.options,T=C?B0t:F0t;return{pages:T(b.pages,w,x),pageParams:T(b.pageParams,S,x)}};if(i&&o.length){const b=i==="backward",S=b?Z0t:yae,C={pages:o,pageParams:a},E=S(r,C);s=await _(C,E,b)}else{const b=e??o.length;do{const S=l===0?a[0]??r.initialPageParam:yae(r,s);if(l>0&&S==null)break;s=await _(s,S),l++}while(l<b)}return s};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function yae(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Z0t(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var So,jm,Hm,Bb,Ub,zm,jb,Hb,g_e,J0t=(g_e=class{constructor(e={}){$n(this,So);$n(this,jm);$n(this,Hm);$n(this,Bb);$n(this,Ub);$n(this,zm);$n(this,jb);$n(this,Hb);hn(this,So,e.queryCache||new q0t),hn(this,jm,e.mutationCache||new X0t),hn(this,Hm,e.defaultOptions||{}),hn(this,Bb,new Map),hn(this,Ub,new Map),hn(this,zm,0)}mount(){vg(this,zm)._++,ke(this,zm)===1&&(hn(this,jb,AIe.subscribe(async e=>{e&&(await this.resumePausedMutations(),ke(this,So).onFocus())})),hn(this,Hb,kA.subscribe(async e=>{e&&(await this.resumePausedMutations(),ke(this,So).onOnline())})))}unmount(){var e,t;vg(this,zm)._--,ke(this,zm)===0&&((e=ke(this,jb))==null||e.call(this),hn(this,jb,void 0),(t=ke(this,Hb))==null||t.call(this),hn(this,Hb,void 0))}isFetching(e){return ke(this,So).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,jm).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ke(this,So).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=ke(this,So).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(pae(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return ke(this,So).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=ke(this,So).get(r.queryHash),o=i==null?void 0:i.state.data,a=A0t(t,o);if(a!==void 0)return ke(this,So).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ds.batch(()=>ke(this,So).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ke(this,So).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ke(this,So);Ds.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ke(this,So),r={type:"active",...e};return Ds.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ds.batch(()=>ke(this,So).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(xu).catch(xu)}invalidateQueries(e={},t={}){return Ds.batch(()=>{if(ke(this,So).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ds.batch(()=>ke(this,So).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(xu)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(xu)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ke(this,So).build(this,t);return n.isStaleByTime(pae(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xu).catch(xu)}fetchInfiniteQuery(e){return e.behavior=_ae(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xu).catch(xu)}ensureInfiniteQueryData(e){return e.behavior=_ae(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kA.isOnline()?ke(this,jm).resumePausedMutations():Promise.resolve()}getQueryCache(){return ke(this,So)}getMutationCache(){return ke(this,jm)}getDefaultOptions(){return ke(this,Hm)}setDefaultOptions(e){hn(this,Hm,e)}setQueryDefaults(e,t){ke(this,Bb).set(dw(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,Bb).values()];let n={};return t.forEach(r=>{fw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ke(this,Ub).set(dw(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Ub).values()];let n={};return t.forEach(r=>{fw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ke(this,Hm).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Kq(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Qq&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ke(this,Hm).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ke(this,So).clear(),ke(this,jm).clear()}},So=new WeakMap,jm=new WeakMap,Hm=new WeakMap,Bb=new WeakMap,Ub=new WeakMap,zm=new WeakMap,jb=new WeakMap,Hb=new WeakMap,g_e),eSt=m.createContext(void 0),tSt=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),M.jsx(eSt.Provider,{value:e,children:t}));/**
|
||
* @remix-run/router v1.21.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ro.apply(this,arguments)}var ea;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ea||(ea={}));const bae="popstate";function nSt(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return p0("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Th(i)}return $Ie(t,n,null,e)}function rSt(e){e===void 0&&(e={});function t(i,o){let{pathname:a="/",search:s="",hash:l=""}=Hp(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),p0("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=i.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof o=="string"?o:Th(o))}function r(i,o){e_(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return $Ie(t,n,r,e)}function jr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function e_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iSt(){return Math.random().toString(36).substr(2,8)}function Sae(e,t){return{usr:e.state,key:e.key,idx:t}}function p0(e,t,n,r){return n===void 0&&(n=null),ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hp(t):t,{state:n,key:t&&t.key||r||iSt()})}function Th(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hp(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $Ie(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ea.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(ro({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=ea.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function f(v,y){s=ea.Push;let _=p0(g.location,v,y);n&&n(_,v),c=u()+1;let b=Sae(_,c),S=g.createHref(_);try{a.pushState(b,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}o&&l&&l({action:s,location:g.location,delta:1})}function p(v,y){s=ea.Replace;let _=p0(g.location,v,y);n&&n(_,v),c=u();let b=Sae(_,c),S=g.createHref(_);a.replaceState(b,"",S),o&&l&&l({action:s,location:g.location,delta:0})}function h(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof v=="string"?v:Th(v);return _=_.replace(/ $/,"%20"),jr(y,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,y)}let g={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(bae,d),l=v,()=>{i.removeEventListener(bae,d),l=null}},createHref(v){return t(i,v)},createURL:h,encodeLocation(v){let y=h(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(v){return a.go(v)}};return g}var Ri;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ri||(Ri={}));const oSt=new Set(["lazy","caseSensitive","path","id","index","children"]);function aSt(e){return e.index===!0}function LA(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(jr(i.index!==!0||!i.children,"Cannot specify children on an index route"),jr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),aSt(i)){let l=ro({},i,t(i),{id:s});return r[s]=l,l}else{let l=ro({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=LA(i.children,t,a,r)),l}})}function Vg(e,t,n){return n===void 0&&(n="/"),lN(e,t,n,!1)}function lN(e,t,n,r){let i=typeof t=="string"?Hp(t):t,o=hS(i.pathname||"/",n);if(o==null)return null;let a=FIe(e);lSt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=ySt(o);s=vSt(a[l],c,r)}return s}function sSt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function FIe(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(jr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=op([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(jr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),FIe(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:hSt(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of BIe(o.path))i(o,a,l)}),t}function BIe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=BIe(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function lSt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gSt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cSt=/^:[\w-]+$/,uSt=3,dSt=2,fSt=1,pSt=10,mSt=-2,Eae=e=>e==="*";function hSt(e,t){let n=e.split("/"),r=n.length;return n.some(Eae)&&(r+=mSt),t&&(r+=dSt),n.filter(i=>!Eae(i)).reduce((i,o)=>i+(cSt.test(o)?uSt:o===""?fSt:pSt),r)}function gSt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function vSt(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=Cae({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Cae({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:op([o,d.pathname]),pathnameBase:ESt(op([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=op([o,d.pathnameBase]))}return a}function Cae(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_St(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const h=s[d];return p&&!h?c[f]=void 0:c[f]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function _St(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),e_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ySt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return e_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function bSt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Hp(e):e;return{pathname:n?n.startsWith("/")?n:SSt(n,t):t,search:CSt(r),hash:wSt(i)}}function SSt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function IF(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function UIe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fk(e,t){let n=UIe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function pk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Hp(e):(i=ro({},e),jr(!i.pathname||!i.pathname.includes("?"),IF("?","pathname","search",i)),jr(!i.pathname||!i.pathname.includes("#"),IF("#","pathname","hash",i)),jr(!i.search||!i.search.includes("#"),IF("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=bSt(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const op=e=>e.join("/").replace(/\/\/+/g,"/"),ESt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CSt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wSt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class $A{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function mk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jIe=["post","put","patch","delete"],xSt=new Set(jIe),TSt=["get",...jIe],RSt=new Set(TSt),OSt=new Set([301,302,303,307,308]),ISt=new Set([307,308]),NF={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NSt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Xq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,MSt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),HIe="remix-router-transitions";function zIe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;jr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Ue=e.detectErrorBoundary;i=Ve=>({hasErrorBoundary:Ue(Ve)})}else i=MSt;let o={},a=LA(e.routes,i,void 0,o),s,l=e.basename||"/",c=e.dataStrategy||kSt,u=e.patchRoutesOnNavigation,d=ro({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,p=new Set,h=null,g=null,v=null,y=e.hydrationData!=null,_=Vg(a,e.history.location,l),b=null;if(_==null&&!u){let Ue=rl(404,{pathname:e.history.location.pathname}),{matches:Ve,route:je}=Dae(a);_=Ve,b={[je.id]:Ue}}_&&!e.hydrationData&&Ht(_,a,e.history.location.pathname).active&&(_=null);let S;if(_)if(_.some(Ue=>Ue.route.lazy))S=!1;else if(!_.some(Ue=>Ue.route.loader))S=!0;else if(d.v7_partialHydration){let Ue=e.hydrationData?e.hydrationData.loaderData:null,Ve=e.hydrationData?e.hydrationData.errors:null;if(Ve){let je=_.findIndex(et=>Ve[et.route.id]!==void 0);S=_.slice(0,je+1).every(et=>!j9(et.route,Ue,Ve))}else S=_.every(je=>!j9(je.route,Ue,Ve))}else S=e.hydrationData!=null;else if(S=!1,_=[],d.v7_partialHydration){let Ue=Ht(null,a,e.history.location.pathname);Ue.active&&Ue.matches&&(_=Ue.matches)}let C,E={historyAction:e.history.action,location:e.history.location,matches:_,initialized:S,navigation:NF,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},w=ea.Pop,x=!1,T,R=!1,N=new Map,I=null,P=!1,D=!1,F=[],L=new Set,B=new Map,U=0,G=-1,V=new Map,W=new Set,$=new Map,H=new Map,K=new Set,re=new Map,Q=new Map,A;function k(){if(f=e.history.listen(Ue=>{let{action:Ve,location:je,delta:et}=Ue;if(A){A(),A=void 0;return}e_(Q.size===0||et!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let _t=Ge({currentLocation:E.location,nextLocation:je,historyAction:Ve});if(_t&&et!=null){let vt=new Promise(Mt=>{A=Mt});e.history.go(et*-1),qe(_t,{state:"blocked",location:je,proceed(){qe(_t,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),vt.then(()=>e.history.go(et))},reset(){let Mt=new Map(E.blockers);Mt.set(_t,NE),oe({blockers:Mt})}});return}return se(Ve,je)}),n){KSt(t,N);let Ue=()=>QSt(t,N);t.addEventListener("pagehide",Ue),I=()=>t.removeEventListener("pagehide",Ue)}return E.initialized||se(ea.Pop,E.location,{initialHydration:!0}),C}function Z(){f&&f(),I&&I(),p.clear(),T&&T.abort(),E.fetchers.forEach((Ue,Ve)=>ve(Ve)),E.blockers.forEach((Ue,Ve)=>ze(Ve))}function ne(Ue){return p.add(Ue),()=>p.delete(Ue)}function oe(Ue,Ve){Ve===void 0&&(Ve={}),E=ro({},E,Ue);let je=[],et=[];d.v7_fetcherPersist&&E.fetchers.forEach((_t,vt)=>{_t.state==="idle"&&(K.has(vt)?et.push(vt):je.push(vt))}),[...p].forEach(_t=>_t(E,{deletedFetchers:et,viewTransitionOpts:Ve.viewTransitionOpts,flushSync:Ve.flushSync===!0})),d.v7_fetcherPersist&&(je.forEach(_t=>E.fetchers.delete(_t)),et.forEach(_t=>ve(_t)))}function ae(Ue,Ve,je){var et,_t;let{flushSync:vt}=je===void 0?{}:je,Mt=E.actionData!=null&&E.navigation.formMethod!=null&&Nu(E.navigation.formMethod)&&E.navigation.state==="loading"&&((et=Ue.state)==null?void 0:et._isRedirect)!==!0,wt;Ve.actionData?Object.keys(Ve.actionData).length>0?wt=Ve.actionData:wt=null:Mt?wt=E.actionData:wt=null;let jt=Ve.loaderData?Aae(E.loaderData,Ve.loaderData,Ve.matches||[],Ve.errors):E.loaderData,zt=E.blockers;zt.size>0&&(zt=new Map(zt),zt.forEach((on,pt)=>zt.set(pt,NE)));let Gt=x===!0||E.navigation.formMethod!=null&&Nu(E.navigation.formMethod)&&((_t=Ue.state)==null?void 0:_t._isRedirect)!==!0;s&&(a=s,s=void 0),P||w===ea.Pop||(w===ea.Push?e.history.push(Ue,Ue.state):w===ea.Replace&&e.history.replace(Ue,Ue.state));let $t;if(w===ea.Pop){let on=N.get(E.location.pathname);on&&on.has(Ue.pathname)?$t={currentLocation:E.location,nextLocation:Ue}:N.has(Ue.pathname)&&($t={currentLocation:Ue,nextLocation:E.location})}else if(R){let on=N.get(E.location.pathname);on?on.add(Ue.pathname):(on=new Set([Ue.pathname]),N.set(E.location.pathname,on)),$t={currentLocation:E.location,nextLocation:Ue}}oe(ro({},Ve,{actionData:wt,loaderData:jt,historyAction:w,location:Ue,initialized:!0,navigation:NF,revalidation:"idle",restoreScrollPosition:St(Ue,Ve.matches||E.matches),preventScrollReset:Gt,blockers:zt}),{viewTransitionOpts:$t,flushSync:vt===!0}),w=ea.Pop,x=!1,R=!1,P=!1,D=!1,F=[]}async function ue(Ue,Ve){if(typeof Ue=="number"){e.history.go(Ue);return}let je=U9(E.location,E.matches,l,d.v7_prependBasename,Ue,d.v7_relativeSplatPath,Ve==null?void 0:Ve.fromRouteId,Ve==null?void 0:Ve.relative),{path:et,submission:_t,error:vt}=wae(d.v7_normalizeFormMethod,!1,je,Ve),Mt=E.location,wt=p0(E.location,et,Ve&&Ve.state);wt=ro({},wt,e.history.encodeLocation(wt));let jt=Ve&&Ve.replace!=null?Ve.replace:void 0,zt=ea.Push;jt===!0?zt=ea.Replace:jt===!1||_t!=null&&Nu(_t.formMethod)&&_t.formAction===E.location.pathname+E.location.search&&(zt=ea.Replace);let Gt=Ve&&"preventScrollReset"in Ve?Ve.preventScrollReset===!0:void 0,$t=(Ve&&Ve.flushSync)===!0,on=Ge({currentLocation:Mt,nextLocation:wt,historyAction:zt});if(on){qe(on,{state:"blocked",location:wt,proceed(){qe(on,{state:"proceeding",proceed:void 0,reset:void 0,location:wt}),ue(Ue,Ve)},reset(){let pt=new Map(E.blockers);pt.set(on,NE),oe({blockers:pt})}});return}return await se(zt,wt,{submission:_t,pendingError:vt,preventScrollReset:Gt,replace:Ve&&Ve.replace,enableViewTransition:Ve&&Ve.viewTransition,flushSync:$t})}function fe(){if(X(),oe({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){se(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}se(w||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:R===!0})}}async function se(Ue,Ve,je){T&&T.abort(),T=null,w=Ue,P=(je&&je.startUninterruptedRevalidation)===!0,bt(E.location,E.matches),x=(je&&je.preventScrollReset)===!0,R=(je&&je.enableViewTransition)===!0;let et=s||a,_t=je&&je.overrideNavigation,vt=Vg(et,Ve,l),Mt=(je&&je.flushSync)===!0,wt=Ht(vt,et,Ve.pathname);if(wt.active&&wt.matches&&(vt=wt.matches),!vt){let{error:Dt,notFoundMatches:Wt,route:Et}=We(Ve.pathname);ae(Ve,{matches:Wt,loaderData:{},errors:{[Et.id]:Dt}},{flushSync:Mt});return}if(E.initialized&&!D&&jSt(E.location,Ve)&&!(je&&je.submission&&Nu(je.submission.formMethod))){ae(Ve,{matches:vt},{flushSync:Mt});return}T=new AbortController;let jt=Cy(e.history,Ve,T.signal,je&&je.submission),zt;if(je&&je.pendingError)zt=[Gg(vt).route.id,{type:Ri.error,error:je.pendingError}];else if(je&&je.submission&&Nu(je.submission.formMethod)){let Dt=await pe(jt,Ve,je.submission,vt,wt.active,{replace:je.replace,flushSync:Mt});if(Dt.shortCircuited)return;if(Dt.pendingActionResult){let[Wt,Et]=Dt.pendingActionResult;if(Hl(Et)&&mk(Et.error)&&Et.error.status===404){T=null,ae(Ve,{matches:Dt.matches,loaderData:{},errors:{[Wt]:Et.error}});return}}vt=Dt.matches||vt,zt=Dt.pendingActionResult,_t=MF(Ve,je.submission),Mt=!1,wt.active=!1,jt=Cy(e.history,jt.url,jt.signal)}let{shortCircuited:Gt,matches:$t,loaderData:on,errors:pt}=await _e(jt,Ve,vt,wt.active,_t,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,Mt,zt);Gt||(T=null,ae(Ve,ro({matches:$t||vt},Pae(zt),{loaderData:on,errors:pt})))}async function pe(Ue,Ve,je,et,_t,vt){vt===void 0&&(vt={}),X();let Mt=YSt(Ve,je);if(oe({navigation:Mt},{flushSync:vt.flushSync===!0}),_t){let zt=await xt(et,Ve.pathname,Ue.signal);if(zt.type==="aborted")return{shortCircuited:!0};if(zt.type==="error"){let Gt=Gg(zt.partialMatches).route.id;return{matches:zt.partialMatches,pendingActionResult:[Gt,{type:Ri.error,error:zt.error}]}}else if(zt.matches)et=zt.matches;else{let{notFoundMatches:Gt,error:$t,route:on}=We(Ve.pathname);return{matches:Gt,pendingActionResult:[on.id,{type:Ri.error,error:$t}]}}}let wt,jt=bC(et,Ve);if(!jt.route.action&&!jt.route.lazy)wt={type:Ri.error,error:rl(405,{method:Ue.method,pathname:Ve.pathname,routeId:jt.route.id})};else if(wt=(await Ee("action",E,Ue,[jt],et,null))[jt.route.id],Ue.signal.aborted)return{shortCircuited:!0};if(av(wt)){let zt;return vt&&vt.replace!=null?zt=vt.replace:zt=Iae(wt.response.headers.get("Location"),new URL(Ue.url),l)===E.location.pathname+E.location.search,await be(Ue,wt,!0,{submission:je,replace:zt}),{shortCircuited:!0}}if(Xm(wt))throw rl(400,{type:"defer-action"});if(Hl(wt)){let zt=Gg(et,jt.route.id);return(vt&&vt.replace)!==!0&&(w=ea.Push),{matches:et,pendingActionResult:[zt.route.id,wt]}}return{matches:et,pendingActionResult:[jt.route.id,wt]}}async function _e(Ue,Ve,je,et,_t,vt,Mt,wt,jt,zt,Gt){let $t=_t||MF(Ve,vt),on=vt||Mt||Lae($t),pt=!P&&(!d.v7_partialHydration||!jt);if(et){if(pt){let j=Te(Gt);oe(ro({navigation:$t},j!==void 0?{actionData:j}:{}),{flushSync:zt})}let O=await xt(je,Ve.pathname,Ue.signal);if(O.type==="aborted")return{shortCircuited:!0};if(O.type==="error"){let j=Gg(O.partialMatches).route.id;return{matches:O.partialMatches,loaderData:{},errors:{[j]:O.error}}}else if(O.matches)je=O.matches;else{let{error:j,notFoundMatches:te,route:we}=We(Ve.pathname);return{matches:te,loaderData:{},errors:{[we.id]:j}}}}let Dt=s||a,[Wt,Et]=Tae(e.history,E,je,on,Ve,d.v7_partialHydration&&jt===!0,d.v7_skipActionErrorRevalidation,D,F,L,K,$,W,Dt,l,Gt);if(Lt(O=>!(je&&je.some(j=>j.route.id===O))||Wt&&Wt.some(j=>j.route.id===O)),G=++U,Wt.length===0&&Et.length===0){let O=me();return ae(Ve,ro({matches:je,loaderData:{},errors:Gt&&Hl(Gt[1])?{[Gt[0]]:Gt[1].error}:null},Pae(Gt),O?{fetchers:new Map(E.fetchers)}:{}),{flushSync:zt}),{shortCircuited:!0}}if(pt){let O={};if(!et){O.navigation=$t;let j=Te(Gt);j!==void 0&&(O.actionData=j)}Et.length>0&&(O.fetchers=xe(Et)),oe(O,{flushSync:zt})}Et.forEach(O=>{$e(O.key),O.controller&&B.set(O.key,O.controller)});let yt=()=>Et.forEach(O=>$e(O.key));T&&T.signal.addEventListener("abort",yt);let{loaderResults:Ft,fetcherResults:Ae}=await Me(E,je,Wt,Et,Ue);if(Ue.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",yt),Et.forEach(O=>B.delete(O.key));let kt=gO(Ft);if(kt)return await be(Ue,kt.result,!0,{replace:wt}),{shortCircuited:!0};if(kt=gO(Ae),kt)return W.add(kt.key),await be(Ue,kt.result,!0,{replace:wt}),{shortCircuited:!0};let{loaderData:nt,errors:Rt}=Mae(E,je,Ft,Gt,Et,Ae,re);re.forEach((O,j)=>{O.subscribe(te=>{(te||O.done)&&re.delete(j)})}),d.v7_partialHydration&&jt&&E.errors&&(Rt=ro({},E.errors,Rt));let Tt=me(),xn=Fe(G),Un=Tt||xn||Et.length>0;return ro({matches:je,loaderData:nt,errors:Rt},Un?{fetchers:new Map(E.fetchers)}:{})}function Te(Ue){if(Ue&&!Hl(Ue[1]))return{[Ue[0]]:Ue[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function xe(Ue){return Ue.forEach(Ve=>{let je=E.fetchers.get(Ve.key),et=ME(void 0,je?je.data:void 0);E.fetchers.set(Ve.key,et)}),new Map(E.fetchers)}function ge(Ue,Ve,je,et){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$e(Ue);let _t=(et&&et.flushSync)===!0,vt=s||a,Mt=U9(E.location,E.matches,l,d.v7_prependBasename,je,d.v7_relativeSplatPath,Ve,et==null?void 0:et.relative),wt=Vg(vt,Mt,l),jt=Ht(wt,vt,Mt);if(jt.active&&jt.matches&&(wt=jt.matches),!wt){J(Ue,Ve,rl(404,{pathname:Mt}),{flushSync:_t});return}let{path:zt,submission:Gt,error:$t}=wae(d.v7_normalizeFormMethod,!0,Mt,et);if($t){J(Ue,Ve,$t,{flushSync:_t});return}let on=bC(wt,zt),pt=(et&&et.preventScrollReset)===!0;if(Gt&&Nu(Gt.formMethod)){Ce(Ue,Ve,zt,on,wt,jt.active,_t,pt,Gt);return}$.set(Ue,{routeId:Ve,path:zt}),ye(Ue,Ve,zt,on,wt,jt.active,_t,pt,Gt)}async function Ce(Ue,Ve,je,et,_t,vt,Mt,wt,jt){X(),$.delete(Ue);function zt(Le){if(!Le.route.action&&!Le.route.lazy){let Je=rl(405,{method:jt.formMethod,pathname:je,routeId:Ve});return J(Ue,Ve,Je,{flushSync:Mt}),!0}return!1}if(!vt&&zt(et))return;let Gt=E.fetchers.get(Ue);Y(Ue,qSt(jt,Gt),{flushSync:Mt});let $t=new AbortController,on=Cy(e.history,je,$t.signal,jt);if(vt){let Le=await xt(_t,je,on.signal);if(Le.type==="aborted")return;if(Le.type==="error"){J(Ue,Ve,Le.error,{flushSync:Mt});return}else if(Le.matches){if(_t=Le.matches,et=bC(_t,je),zt(et))return}else{J(Ue,Ve,rl(404,{pathname:je}),{flushSync:Mt});return}}B.set(Ue,$t);let pt=U,Wt=(await Ee("action",E,on,[et],_t,Ue))[et.route.id];if(on.signal.aborted){B.get(Ue)===$t&&B.delete(Ue);return}if(d.v7_fetcherPersist&&K.has(Ue)){if(av(Wt)||Hl(Wt)){Y(Ue,Rm(void 0));return}}else{if(av(Wt))if(B.delete(Ue),G>pt){Y(Ue,Rm(void 0));return}else return W.add(Ue),Y(Ue,ME(jt)),be(on,Wt,!1,{fetcherSubmission:jt,preventScrollReset:wt});if(Hl(Wt)){J(Ue,Ve,Wt.error);return}}if(Xm(Wt))throw rl(400,{type:"defer-action"});let Et=E.navigation.location||E.location,yt=Cy(e.history,Et,$t.signal),Ft=s||a,Ae=E.navigation.state!=="idle"?Vg(Ft,E.navigation.location,l):E.matches;jr(Ae,"Didn't find any matches after fetcher action");let kt=++U;V.set(Ue,kt);let nt=ME(jt,Wt.data);E.fetchers.set(Ue,nt);let[Rt,Tt]=Tae(e.history,E,Ae,jt,Et,!1,d.v7_skipActionErrorRevalidation,D,F,L,K,$,W,Ft,l,[et.route.id,Wt]);Tt.filter(Le=>Le.key!==Ue).forEach(Le=>{let Je=Le.key,At=E.fetchers.get(Je),dn=ME(void 0,At?At.data:void 0);E.fetchers.set(Je,dn),$e(Je),Le.controller&&B.set(Je,Le.controller)}),oe({fetchers:new Map(E.fetchers)});let xn=()=>Tt.forEach(Le=>$e(Le.key));$t.signal.addEventListener("abort",xn);let{loaderResults:Un,fetcherResults:O}=await Me(E,Ae,Rt,Tt,yt);if($t.signal.aborted)return;$t.signal.removeEventListener("abort",xn),V.delete(Ue),B.delete(Ue),Tt.forEach(Le=>B.delete(Le.key));let j=gO(Un);if(j)return be(yt,j.result,!1,{preventScrollReset:wt});if(j=gO(O),j)return W.add(j.key),be(yt,j.result,!1,{preventScrollReset:wt});let{loaderData:te,errors:we}=Mae(E,Ae,Un,void 0,Tt,O,re);if(E.fetchers.has(Ue)){let Le=Rm(Wt.data);E.fetchers.set(Ue,Le)}Fe(kt),E.navigation.state==="loading"&&kt>G?(jr(w,"Expected pending action"),T&&T.abort(),ae(E.navigation.location,{matches:Ae,loaderData:te,errors:we,fetchers:new Map(E.fetchers)})):(oe({errors:we,loaderData:Aae(E.loaderData,te,Ae,we),fetchers:new Map(E.fetchers)}),D=!1)}async function ye(Ue,Ve,je,et,_t,vt,Mt,wt,jt){let zt=E.fetchers.get(Ue);Y(Ue,ME(jt,zt?zt.data:void 0),{flushSync:Mt});let Gt=new AbortController,$t=Cy(e.history,je,Gt.signal);if(vt){let Wt=await xt(_t,je,$t.signal);if(Wt.type==="aborted")return;if(Wt.type==="error"){J(Ue,Ve,Wt.error,{flushSync:Mt});return}else if(Wt.matches)_t=Wt.matches,et=bC(_t,je);else{J(Ue,Ve,rl(404,{pathname:je}),{flushSync:Mt});return}}B.set(Ue,Gt);let on=U,Dt=(await Ee("loader",E,$t,[et],_t,Ue))[et.route.id];if(Xm(Dt)&&(Dt=await Zq(Dt,$t.signal,!0)||Dt),B.get(Ue)===Gt&&B.delete(Ue),!$t.signal.aborted){if(K.has(Ue)){Y(Ue,Rm(void 0));return}if(av(Dt))if(G>on){Y(Ue,Rm(void 0));return}else{W.add(Ue),await be($t,Dt,!1,{preventScrollReset:wt});return}if(Hl(Dt)){J(Ue,Ve,Dt.error);return}jr(!Xm(Dt),"Unhandled fetcher deferred data"),Y(Ue,Rm(Dt.data))}}async function be(Ue,Ve,je,et){let{submission:_t,fetcherSubmission:vt,preventScrollReset:Mt,replace:wt}=et===void 0?{}:et;Ve.response.headers.has("X-Remix-Revalidate")&&(D=!0);let jt=Ve.response.headers.get("Location");jr(jt,"Expected a Location header on the redirect Response"),jt=Iae(jt,new URL(Ue.url),l);let zt=p0(E.location,jt,{_isRedirect:!0});if(n){let Wt=!1;if(Ve.response.headers.has("X-Remix-Reload-Document"))Wt=!0;else if(Xq.test(jt)){const Et=e.history.createURL(jt);Wt=Et.origin!==t.location.origin||hS(Et.pathname,l)==null}if(Wt){wt?t.location.replace(jt):t.location.assign(jt);return}}T=null;let Gt=wt===!0||Ve.response.headers.has("X-Remix-Replace")?ea.Replace:ea.Push,{formMethod:$t,formAction:on,formEncType:pt}=E.navigation;!_t&&!vt&&$t&&on&&pt&&(_t=Lae(E.navigation));let Dt=_t||vt;if(ISt.has(Ve.response.status)&&Dt&&Nu(Dt.formMethod))await se(Gt,zt,{submission:ro({},Dt,{formAction:jt}),preventScrollReset:Mt||x,enableViewTransition:je?R:void 0});else{let Wt=MF(zt,_t);await se(Gt,zt,{overrideNavigation:Wt,fetcherSubmission:vt,preventScrollReset:Mt||x,enableViewTransition:je?R:void 0})}}async function Ee(Ue,Ve,je,et,_t,vt){let Mt,wt={};try{Mt=await LSt(c,Ue,Ve,je,et,_t,vt,o,i)}catch(jt){return et.forEach(zt=>{wt[zt.route.id]={type:Ri.error,error:jt}}),wt}for(let[jt,zt]of Object.entries(Mt))if(HSt(zt)){let Gt=zt.result;wt[jt]={type:Ri.redirect,response:BSt(Gt,je,jt,_t,l,d.v7_relativeSplatPath)}}else wt[jt]=await FSt(zt);return wt}async function Me(Ue,Ve,je,et,_t){let vt=Ue.matches,Mt=Ee("loader",Ue,_t,je,Ve,null),wt=Promise.all(et.map(async Gt=>{if(Gt.matches&&Gt.match&&Gt.controller){let on=(await Ee("loader",Ue,Cy(e.history,Gt.path,Gt.controller.signal),[Gt.match],Gt.matches,Gt.key))[Gt.match.route.id];return{[Gt.key]:on}}else return Promise.resolve({[Gt.key]:{type:Ri.error,error:rl(404,{pathname:Gt.path})}})})),jt=await Mt,zt=(await wt).reduce((Gt,$t)=>Object.assign(Gt,$t),{});return await Promise.all([GSt(Ve,jt,_t.signal,vt,Ue.loaderData),WSt(Ve,zt,et)]),{loaderResults:jt,fetcherResults:zt}}function X(){D=!0,F.push(...Lt()),$.forEach((Ue,Ve)=>{B.has(Ve)&&L.add(Ve),$e(Ve)})}function Y(Ue,Ve,je){je===void 0&&(je={}),E.fetchers.set(Ue,Ve),oe({fetchers:new Map(E.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function J(Ue,Ve,je,et){et===void 0&&(et={});let _t=Gg(E.matches,Ve);ve(Ue),oe({errors:{[_t.route.id]:je},fetchers:new Map(E.fetchers)},{flushSync:(et&&et.flushSync)===!0})}function he(Ue){return d.v7_fetcherPersist&&(H.set(Ue,(H.get(Ue)||0)+1),K.has(Ue)&&K.delete(Ue)),E.fetchers.get(Ue)||NSt}function ve(Ue){let Ve=E.fetchers.get(Ue);B.has(Ue)&&!(Ve&&Ve.state==="loading"&&V.has(Ue))&&$e(Ue),$.delete(Ue),V.delete(Ue),W.delete(Ue),K.delete(Ue),L.delete(Ue),E.fetchers.delete(Ue)}function ce(Ue){if(d.v7_fetcherPersist){let Ve=(H.get(Ue)||0)-1;Ve<=0?(H.delete(Ue),K.add(Ue)):H.set(Ue,Ve)}else ve(Ue);oe({fetchers:new Map(E.fetchers)})}function $e(Ue){let Ve=B.get(Ue);Ve&&(Ve.abort(),B.delete(Ue))}function Be(Ue){for(let Ve of Ue){let je=he(Ve),et=Rm(je.data);E.fetchers.set(Ve,et)}}function me(){let Ue=[],Ve=!1;for(let je of W){let et=E.fetchers.get(je);jr(et,"Expected fetcher: "+je),et.state==="loading"&&(W.delete(je),Ue.push(je),Ve=!0)}return Be(Ue),Ve}function Fe(Ue){let Ve=[];for(let[je,et]of V)if(et<Ue){let _t=E.fetchers.get(je);jr(_t,"Expected fetcher: "+je),_t.state==="loading"&&($e(je),V.delete(je),Ve.push(je))}return Be(Ve),Ve.length>0}function Xe(Ue,Ve){let je=E.blockers.get(Ue)||NE;return Q.get(Ue)!==Ve&&Q.set(Ue,Ve),je}function ze(Ue){E.blockers.delete(Ue),Q.delete(Ue)}function qe(Ue,Ve){let je=E.blockers.get(Ue)||NE;jr(je.state==="unblocked"&&Ve.state==="blocked"||je.state==="blocked"&&Ve.state==="blocked"||je.state==="blocked"&&Ve.state==="proceeding"||je.state==="blocked"&&Ve.state==="unblocked"||je.state==="proceeding"&&Ve.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+Ve.state);let et=new Map(E.blockers);et.set(Ue,Ve),oe({blockers:et})}function Ge(Ue){let{currentLocation:Ve,nextLocation:je,historyAction:et}=Ue;if(Q.size===0)return;Q.size>1&&e_(!1,"A router only supports one blocker at a time");let _t=Array.from(Q.entries()),[vt,Mt]=_t[_t.length-1],wt=E.blockers.get(vt);if(!(wt&&wt.state==="proceeding")&&Mt({currentLocation:Ve,nextLocation:je,historyAction:et}))return vt}function We(Ue){let Ve=rl(404,{pathname:Ue}),je=s||a,{matches:et,route:_t}=Dae(je);return Lt(),{notFoundMatches:et,route:_t,error:Ve}}function Lt(Ue){let Ve=[];return re.forEach((je,et)=>{(!Ue||Ue(et))&&(je.cancel(),Ve.push(et),re.delete(et))}),Ve}function ut(Ue,Ve,je){if(h=Ue,v=Ve,g=je||null,!y&&E.navigation===NF){y=!0;let et=St(E.location,E.matches);et!=null&&oe({restoreScrollPosition:et})}return()=>{h=null,v=null,g=null}}function ft(Ue,Ve){return g&&g(Ue,Ve.map(et=>sSt(et,E.loaderData)))||Ue.key}function bt(Ue,Ve){if(h&&v){let je=ft(Ue,Ve);h[je]=v()}}function St(Ue,Ve){if(h){let je=ft(Ue,Ve),et=h[je];if(typeof et=="number")return et}return null}function Ht(Ue,Ve,je){if(u)if(Ue){if(Object.keys(Ue[0].params).length>0)return{active:!0,matches:lN(Ve,je,l,!0)}}else return{active:!0,matches:lN(Ve,je,l,!0)||[]};return{active:!1,matches:null}}async function xt(Ue,Ve,je){if(!u)return{type:"success",matches:Ue};let et=Ue;for(;;){let _t=s==null,vt=s||a,Mt=o;try{await u({path:Ve,matches:et,patch:(zt,Gt)=>{je.aborted||Oae(zt,Gt,vt,Mt,i)}})}catch(zt){return{type:"error",error:zt,partialMatches:et}}finally{_t&&!je.aborted&&(a=[...a])}if(je.aborted)return{type:"aborted"};let wt=Vg(vt,Ve,l);if(wt)return{type:"success",matches:wt};let jt=lN(vt,Ve,l,!0);if(!jt||et.length===jt.length&&et.every((zt,Gt)=>zt.route.id===jt[Gt].route.id))return{type:"success",matches:null};et=jt}}function Nt(Ue){o={},s=LA(Ue,i,void 0,o)}function Vt(Ue,Ve){let je=s==null;Oae(Ue,Ve,s||a,o,i),je&&(a=[...a],oe({}))}return C={get basename(){return l},get future(){return d},get state(){return E},get routes(){return a},get window(){return t},initialize:k,subscribe:ne,enableScrollRestoration:ut,navigate:ue,fetch:ge,revalidate:fe,createHref:Ue=>e.history.createHref(Ue),encodeLocation:Ue=>e.history.encodeLocation(Ue),getFetcher:he,deleteFetcher:ce,dispose:Z,getBlocker:Xe,deleteBlocker:ze,patchRoutes:Vt,_internalFetchControllers:B,_internalActiveDeferreds:re,_internalSetRoutes:Nt},C}function ASt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function U9(e,t,n,r,i,o,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=pk(i||".",fk(l,o),hS(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let d=Jq(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),p=f.getAll("index");f.delete("index"),p.filter(g=>g).forEach(g=>f.append("index",g));let h=f.toString();u.search=h?"?"+h:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:op([n,u.pathname])),Th(u)}function wae(e,t,n,r){if(!r||!ASt(r))return{path:n};if(r.formMethod&&!VSt(r.formMethod))return{path:n,error:rl(405,{method:r.formMethod})};let i=()=>({path:n,error:rl(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=WIe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Nu(a))return i();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,h)=>{let[g,v]=h;return""+p+g+"="+v+`
|
||
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Nu(a))return i();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return i()}}}jr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=H9(r.formData),c=r.formData;else if(r.body instanceof FormData)l=H9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Nae(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Nae(l)}catch{return i()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Nu(u.formMethod))return{path:n,submission:u};let d=Hp(n);return t&&d.search&&Jq(d.search)&&l.append("index",""),d.search="?"+l,{path:Th(d),submission:u}}function xae(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Tae(e,t,n,r,i,o,a,s,l,c,u,d,f,p,h,g){let v=g?Hl(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),_=e.createURL(i),b=n;o&&t.errors?b=xae(n,Object.keys(t.errors)[0],!0):g&&Hl(g[1])&&(b=xae(n,g[0]));let S=g?g[1].statusCode:void 0,C=a&&S&&S>=400,E=b.filter((x,T)=>{let{route:R}=x;if(R.lazy)return!0;if(R.loader==null)return!1;if(o)return j9(R,t.loaderData,t.errors);if(PSt(t.loaderData,t.matches[T],x)||l.some(P=>P===x.route.id))return!0;let N=t.matches[T],I=x;return Rae(x,ro({currentUrl:y,currentParams:N.params,nextUrl:_,nextParams:I.params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:C?!1:s||y.pathname+y.search===_.pathname+_.search||y.search!==_.search||VIe(N,I)}))}),w=[];return d.forEach((x,T)=>{if(o||!n.some(D=>D.route.id===x.routeId)||u.has(T))return;let R=Vg(p,x.path,h);if(!R){w.push({key:T,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(T),I=bC(R,x.path),P=!1;f.has(T)?P=!1:c.has(T)?(c.delete(T),P=!0):N&&N.state!=="idle"&&N.data===void 0?P=s:P=Rae(I,ro({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:C?!1:s})),P&&w.push({key:T,routeId:x.routeId,path:x.path,matches:R,match:I,controller:new AbortController})}),[E,w]}function j9(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function PSt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function VIe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Rae(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Oae(e,t,n,r,i){var o;let a;if(e){let c=r[e];jr(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>GIe(c,u))),l=LA(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function GIe(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>GIe(n,o))}):!1}async function DSt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];jr(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";e_(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!oSt.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,ro({},t(i),{lazy:void 0}))}async function kSt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[n[a].route.id]:o}),{})}async function LSt(e,t,n,r,i,o,a,s,l,c){let u=o.map(p=>p.route.lazy?DSt(p.route,l,s):void 0),d=o.map((p,h)=>{let g=u[h],v=i.some(_=>_.route.id===p.route.id);return ro({},p,{shouldLoad:v,resolve:async _=>(_&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(v=!0),v?$St(t,r,p,g,_,c):Promise.resolve({type:Ri.data,result:void 0}))})}),f=await e({matches:d,request:r,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return f}async function $St(e,t,n,r,i,o){let a,s,l=c=>{let u,d=new Promise((h,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let f=h=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...h!==void 0?[h]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(g=>f(g)):f())}}catch(h){return{type:"error",result:h}}})();return Promise.race([p,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw rl(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Ri.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw rl(404,{pathname:d})}jr(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Ri.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function FSt(e){let{result:t,type:n}=e;if(YIe(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:Ri.error,error:u}}return n===Ri.error?{type:Ri.error,error:new $A(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Ri.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Ri.error){if(kae(t)){var r;if(t.data instanceof Error){var i;return{type:Ri.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new $A(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Ri.error,error:t,statusCode:mk(t)?t.status:void 0}}if(zSt(t)){var o,a;return{type:Ri.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(kae(t)){var s,l;return{type:Ri.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Ri.data,data:t}}function BSt(e,t,n,r,i,o){let a=e.headers.get("Location");if(jr(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Xq.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=U9(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function Iae(e,t,n){if(Xq.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=hS(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Cy(e,t,n,r){let i=e.createURL(WIe(t)).toString(),o={signal:n};if(r&&Nu(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=H9(r.formData):o.body=r.formData}return new Request(i,o)}function H9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Nae(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function USt(e,t,n,r,i){let o={},a=null,s,l=!1,c={},u=n&&Hl(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,p=t[f];if(jr(!av(p),"Cannot handle redirect results in processLoaderData"),Hl(p)){let h=p.error;u!==void 0&&(h=u,u=void 0),a=a||{};{let g=Gg(e,f);a[g.route.id]==null&&(a[g.route.id]=h)}o[f]=void 0,l||(l=!0,s=mk(p.error)?p.error.status:500),p.headers&&(c[f]=p.headers)}else Xm(p)?(r.set(f,p.deferredData),o[f]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[f]=p.headers)):(o[f]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[f]=p.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function Mae(e,t,n,r,i,o,a){let{loaderData:s,errors:l}=USt(t,n,r,a);return i.forEach(c=>{let{key:u,match:d,controller:f}=c,p=o[u];if(jr(p,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(Hl(p)){let h=Gg(e.matches,d==null?void 0:d.route.id);l&&l[h.route.id]||(l=ro({},l,{[h.route.id]:p.error})),e.fetchers.delete(u)}else if(av(p))jr(!1,"Unhandled fetcher revalidation redirect");else if(Xm(p))jr(!1,"Unhandled fetcher deferred data");else{let h=Rm(p.data);e.fetchers.set(u,h)}}),{loaderData:s,errors:l}}function Aae(e,t,n,r){let i=ro({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function Pae(e){return e?Hl(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gg(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Dae(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function rl(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new $A(e||500,s,new Error(l),!0)}function gO(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(av(i))return{key:r,result:i}}}function WIe(e){let t=typeof e=="string"?Hp(e):e;return Th(ro({},t,{hash:""}))}function jSt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function HSt(e){return YIe(e.result)&&OSt.has(e.result.status)}function Xm(e){return e.type===Ri.deferred}function Hl(e){return e.type===Ri.error}function av(e){return(e&&e.type)===Ri.redirect}function kae(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function zSt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function YIe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function VSt(e){return RSt.has(e.toLowerCase())}function Nu(e){return xSt.has(e.toLowerCase())}async function GSt(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],c=e.find(f=>(f==null?void 0:f.route.id)===s);if(!c)continue;let u=r.find(f=>f.route.id===c.route.id),d=u!=null&&!VIe(u,c)&&(i&&i[c.route.id])!==void 0;Xm(l)&&d&&await Zq(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function WSt(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:a}=n[r],s=t[i];e.find(c=>(c==null?void 0:c.route.id)===o)&&Xm(s)&&(jr(a,"Expected an AbortController for revalidating fetcher deferred result"),await Zq(s,a.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function Zq(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ri.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ri.error,error:i}}return{type:Ri.data,data:e.deferredData.data}}}function Jq(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function bC(e,t){let n=typeof t=="string"?Hp(t).search:t.search;if(e[e.length-1].route.index&&Jq(n||""))return e[e.length-1];let r=UIe(e);return r[r.length-1]}function Lae(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function MF(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function YSt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ME(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function qSt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Rm(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function KSt(e,t){try{let n=e.sessionStorage.getItem(HIe);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function QSt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(HIe,JSON.stringify(n))}catch(r){e_(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
||
* React Router v6.28.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function FA(){return FA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FA.apply(this,arguments)}const hk=m.createContext(null),qIe=m.createContext(null),jh=m.createContext(null),eK=m.createContext(null),gf=m.createContext({outlet:null,matches:[],isDataRoute:!1}),KIe=m.createContext(null);function XSt(e,t){let{relative:n}=t===void 0?{}:t;gS()||jr(!1);let{basename:r,navigator:i}=m.useContext(jh),{hash:o,pathname:a,search:s}=XIe(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:op([r,a])),i.createHref({pathname:l,search:s,hash:o})}function gS(){return m.useContext(eK)!=null}function vS(){return gS()||jr(!1),m.useContext(eK).location}function QIe(e){m.useContext(jh).static||m.useLayoutEffect(e)}function uc(){let{isDataRoute:e}=m.useContext(gf);return e?fEt():ZSt()}function ZSt(){gS()||jr(!1);let e=m.useContext(hk),{basename:t,future:n,navigator:r}=m.useContext(jh),{matches:i}=m.useContext(gf),{pathname:o}=vS(),a=JSON.stringify(fk(i,n.v7_relativeSplatPath)),s=m.useRef(!1);return QIe(()=>{s.current=!0}),m.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=pk(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:op([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const JSt=m.createContext(null);function eEt(e){let t=m.useContext(gf).outlet;return t&&m.createElement(JSt.Provider,{value:e},t)}function tEt(){let{matches:e}=m.useContext(gf),t=e[e.length-1];return t?t.params:{}}function XIe(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(jh),{matches:i}=m.useContext(gf),{pathname:o}=vS(),a=JSON.stringify(fk(i,r.v7_relativeSplatPath));return m.useMemo(()=>pk(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function nEt(e,t,n,r){gS()||jr(!1);let{navigator:i}=m.useContext(jh),{matches:o}=m.useContext(gf),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=vS(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=Vg(e,{pathname:f});return sEt(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:op([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:op([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function rEt(){let e=dEt(),t=mk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,null)}const iEt=m.createElement(rEt,null);class oEt extends m.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?m.createElement(gf.Provider,{value:this.props.routeContext},m.createElement(KIe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aEt(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(hk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(gf.Provider,{value:t},r)}function sEt(e,t,n,r){var i;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 a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||jr(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:p}=n,h=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||h){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let p,h=!1,g=null,v=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||iEt,l&&(c<0&&f===0?(h=!0,v=null):c===f&&(h=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,f+1)),_=()=>{let b;return p?b=g:h?b=v:d.route.Component?b=m.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,m.createElement(aEt,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?m.createElement(oEt,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:_(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):_()},null)}var ZIe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ZIe||{}),BA=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}(BA||{});function lEt(e){let t=m.useContext(hk);return t||jr(!1),t}function cEt(e){let t=m.useContext(qIe);return t||jr(!1),t}function uEt(e){let t=m.useContext(gf);return t||jr(!1),t}function JIe(e){let t=uEt(),n=t.matches[t.matches.length-1];return n.route.id||jr(!1),n.route.id}function dEt(){var e;let t=m.useContext(KIe),n=cEt(BA.UseRouteError),r=JIe(BA.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fEt(){let{router:e}=lEt(ZIe.UseNavigateStable),t=JIe(BA.UseNavigateStable),n=m.useRef(!1);return QIe(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,FA({fromRouteId:t},o)))},[e,t])}const $ae={};function pEt(e,t){$ae[t]||($ae[t]=!0,console.warn(t))}const wy=(e,t,n)=>pEt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function mEt(e,t){e!=null&&e.v7_startTransition||wy("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&wy("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||wy("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||wy("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||wy("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||wy("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function hEt(e){let{to:t,replace:n,state:r,relative:i}=e;gS()||jr(!1);let{future:o,static:a}=m.useContext(jh),{matches:s}=m.useContext(gf),{pathname:l}=vS(),c=uc(),u=pk(t,fk(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return m.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function gk(e){return eEt(e.context)}function gEt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ea.Pop,navigator:o,static:a=!1,future:s}=e;gS()&&jr(!1);let l=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:l,navigator:o,static:a,future:FA({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Hp(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,g=m.useMemo(()=>{let v=hS(u,l);return v==null?null:{location:{pathname:v,search:d,hash:f,state:p,key:h},navigationType:i}},[l,u,d,f,p,h,i]);return g==null?null:m.createElement(jh.Provider,{value:c},m.createElement(eK.Provider,{children:n,value:g}))}new Promise(()=>{});function eNe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
||
* React Router DOM v6.28.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(this,arguments)}function vEt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _Et(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yEt(e,t){return e.button===0&&(!t||t==="_self")&&!_Et(e)}const bEt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],SEt="6";try{window.__reactRouterVersion=SEt}catch{}function EEt(e,t){return zIe({basename:t==null?void 0:t.basename,future:m0({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:nSt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||tNe(),routes:e,mapRouteProperties:eNe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function CEt(e,t){return zIe({basename:t==null?void 0:t.basename,future:m0({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:rSt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||tNe(),routes:e,mapRouteProperties:eNe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function tNe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=m0({},t,{errors:wEt(t.errors)})),t}function wEt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new $A(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const xEt=m.createContext({isTransitioning:!1}),TEt=m.createContext(new Map),REt="startTransition",Fae=ex[REt],OEt="flushSync",Bae=Ibe[OEt];function IEt(e){Fae?Fae(e):e()}function AE(e){Bae?Bae(e):e()}class NEt{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function MEt(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=m.useState(n.state),[a,s]=m.useState(),[l,c]=m.useState({isTransitioning:!1}),[u,d]=m.useState(),[f,p]=m.useState(),[h,g]=m.useState(),v=m.useRef(new Map),{v7_startTransition:y}=r||{},_=m.useCallback(x=>{y?IEt(x):x()},[y]),b=m.useCallback((x,T)=>{let{deletedFetchers:R,flushSync:N,viewTransitionOpts:I}=T;R.forEach(D=>v.current.delete(D)),x.fetchers.forEach((D,F)=>{D.data!==void 0&&v.current.set(F,D.data)});let P=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!I||P){N?AE(()=>o(x)):_(()=>o(x));return}if(N){AE(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let D=n.window.document.startViewTransition(()=>{AE(()=>o(x))});D.finished.finally(()=>{AE(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),AE(()=>p(D));return}f?(u&&u.resolve(),f.skipTransition(),g({state:x,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(s(x),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[n.window,f,u,v,_]);m.useLayoutEffect(()=>n.subscribe(b),[n,b]),m.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new NEt)},[l]),m.useEffect(()=>{if(u&&a&&n.window){let x=a,T=u.promise,R=n.window.document.startViewTransition(async()=>{_(()=>o(x)),await T});R.finished.finally(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(R)}},[_,a,u,n.window]),m.useEffect(()=>{u&&a&&i.location.key===a.location.key&&u.resolve()},[u,f,i.location,a]),m.useEffect(()=>{!l.isTransitioning&&h&&(s(h.state),c({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),g(void 0))},[l.isTransitioning,h]),m.useEffect(()=>{},[]);let S=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:x=>n.navigate(x),push:(x,T,R)=>n.navigate(x,{state:T,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(x,T,R)=>n.navigate(x,{replace:!0,state:T,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[n]),C=n.basename||"/",E=m.useMemo(()=>({router:n,navigator:S,static:!1,basename:C}),[n,S,C]),w=m.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return m.useEffect(()=>mEt(r,n.future),[r,n.future]),m.createElement(m.Fragment,null,m.createElement(hk.Provider,{value:E},m.createElement(qIe.Provider,{value:i},m.createElement(TEt.Provider,{value:v.current},m.createElement(xEt.Provider,{value:l},m.createElement(gEt,{basename:C,location:i.location,navigationType:i.historyAction,navigator:S,future:w},i.initialized||n.future.v7_partialHydration?m.createElement(AEt,{routes:n.routes,future:n.future,state:i}):t))))),null)}const AEt=m.memo(PEt);function PEt(e){let{routes:t,future:n,state:r}=e;return nEt(t,void 0,r,n)}const DEt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kEt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LEt=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=vEt(t,bEt),{basename:p}=m.useContext(jh),h,g=!1;if(typeof c=="string"&&kEt.test(c)&&(h=c,DEt))try{let b=new URL(window.location.href),S=c.startsWith("//")?new URL(b.protocol+c):new URL(c),C=hS(S.pathname,p);S.origin===b.origin&&C!=null?c=C+S.search+S.hash:g=!0}catch{}let v=XSt(c,{relative:i}),y=$Et(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function _(b){r&&r(b),b.defaultPrevented||y(b)}return m.createElement("a",m0({},f,{href:h||v,onClick:g||o?r:_,ref:n,target:l}))});var Uae;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Uae||(Uae={}));var jae;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jae||(jae={}));function $Et(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=uc(),c=vS(),u=XIe(e,{relative:a});return m.useCallback(d=>{if(yEt(d,n)){d.preventDefault();let f=r!==void 0?r:Th(c)===Th(u);l(e,{replace:f,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}var FEt=q(q({},d1e),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const nNe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},z9={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},FEt),timePickerLocale:Object.assign({},nNe)};z9.lang.ok="确定";const Pl="${label}不是一个有效的${type}",BEt={locale:"zh-cn",Pagination:bht,DatePicker:z9,TimePicker:nNe,Calendar:z9,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Pl,method:Pl,array:Pl,object:Pl,number:Pl,date:Pl,boolean:Pl,integer:Pl,float:Pl,regexp:Pl,email:Pl,url:Pl,hex:Pl},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Zm=()=>{},zl=Zm(),cN=Object,si=e=>e===zl,Gd=e=>typeof e=="function",wp=(e,t)=>({...e,...t}),UEt=e=>Gd(e.then),vO=new WeakMap;let jEt=0;const pw=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(cN(e)===e&&!r&&n!=RegExp){if(i=vO.get(e),i)return i;if(i=++jEt+"~",vO.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=pw(e[o])+",";vO.set(e,i)}if(n==cN){i="#";const a=cN.keys(e).sort();for(;!si(o=a.pop());)si(e[o])||(i+=o+":"+pw(e[o])+",");vO.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},Vf=new WeakMap,AF={},_O={},tK="undefined",vk=typeof window!=tK,V9=typeof document!=tK,HEt=()=>vk&&typeof window.requestAnimationFrame!=tK,rNe=(e,t)=>{const n=Vf.get(e);return[()=>!si(t)&&e.get(t)||AF,r=>{if(!si(t)){const i=e.get(t);t in _O||(_O[t]=i),n[5](t,wp(i,r),i||AF)}},n[6],()=>!si(t)&&t in _O?_O[t]:!si(t)&&e.get(t)||AF]};let G9=!0;const zEt=()=>G9,[W9,Y9]=vk&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Zm,Zm],VEt=()=>{const e=V9&&document.visibilityState;return si(e)||e!=="hidden"},GEt=e=>(V9&&document.addEventListener("visibilitychange",e),W9("focus",e),()=>{V9&&document.removeEventListener("visibilitychange",e),Y9("focus",e)}),WEt=e=>{const t=()=>{G9=!0,e()},n=()=>{G9=!1};return W9("online",t),W9("offline",n),()=>{Y9("online",t),Y9("offline",n)}},YEt={isOnline:zEt,isVisible:VEt},qEt={initFocus:GEt,initReconnect:WEt},Hae=!de.useId,mw=!vk||"Deno"in window,KEt=e=>HEt()?window.requestAnimationFrame(e):setTimeout(e,1),uN=mw?m.useEffect:m.useLayoutEffect,PF=typeof navigator<"u"&&navigator.connection,zae=!mw&&PF&&(["slow-2g","2g"].includes(PF.effectiveType)||PF.saveData),nK=e=>{if(Gd(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?pw(e):"",[e,t]};let QEt=0;const q9=()=>++QEt,iNe=0,oNe=1,aNe=2,XEt=3;var PE={__proto__:null,ERROR_REVALIDATE_EVENT:XEt,FOCUS_EVENT:iNe,MUTATE_EVENT:aNe,RECONNECT_EVENT:oNe};async function sNe(...e){const[t,n,r,i]=e,o=wp({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const c=o.revalidate!==!1,u=p=>typeof s=="function"?s(p):s!==!1,d=o.throwOnError;if(Gd(n)){const p=n,h=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&p(t.get(v)._k)&&h.push(v);return Promise.all(h.map(f))}return f(n);async function f(p){const[h]=nK(p);if(!h)return;const[g,v]=rNe(t,h),[y,_,b,S]=Vf.get(t),C=y[h],E=()=>c&&(delete b[h],delete S[h],C&&C[0])?C[0](aNe).then(()=>g().data):g().data;if(e.length<3)return E();let w=r,x;const T=q9();_[h]=[T,0];const R=!si(l),N=g(),I=N.data,P=N._c,D=si(P)?I:P;if(R&&(l=Gd(l)?l(D,I):l,v({data:l,_c:D})),Gd(w))try{w=w(D)}catch(L){x=L}if(w&&UEt(w))if(w=await w.catch(L=>{x=L}),T!==_[h][0]){if(x)throw x;return w}else x&&R&&u(x)&&(a=!0,w=D,v({data:w,_c:zl}));a&&(x||(Gd(a)&&(w=a(w,D)),v({data:w,error:zl,_c:zl}))),_[h][1]=q9();const F=await E();if(v({_c:zl}),x){if(d)throw x;return}return a?F:w}}const Vae=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},lNe=(e,t)=>{if(!Vf.has(e)){const n=wp(qEt,t),r={},i=sNe.bind(zl,e);let o=Zm;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const p=a[u];if(p)for(const h of p)h(d,f)},c=()=>{if(!Vf.has(e)&&(Vf.set(e,[r,{},{},{},i,l,s]),!mw)){const u=n.initFocus(setTimeout.bind(zl,Vae.bind(zl,r,iNe))),d=n.initReconnect(setTimeout.bind(zl,Vae.bind(zl,r,oNe)));o=()=>{u&&u(),d&&d(),Vf.delete(e)}}};return c(),[e,i,c,o]}return[e,Vf.get(e)[4]]},ZEt=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!si(o)&&a>o||setTimeout(r,s,i)},JEt=(e,t)=>pw(e)==pw(t),[rK,eCt]=lNe(new Map),cNe=wp({onLoadingSlow:Zm,onSuccess:Zm,onError:Zm,onErrorRetry:ZEt,onDiscarded:Zm,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zae?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:zae?5e3:3e3,compare:JEt,isPaused:()=>!1,cache:rK,mutate:eCt,fallback:{}},YEt),uNe=(e,t)=>{const n=wp(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=wp(i,a))}return n},K9=m.createContext({}),tCt=e=>{const{value:t}=e,n=m.useContext(K9),r=Gd(t),i=m.useMemo(()=>r?t(n):t,[r,n,t]),o=m.useMemo(()=>r?i:uNe(n,i),[r,n,i]),a=i&&i.provider,s=m.useRef(zl);a&&!s.current&&(s.current=lNe(a(o.cache||rK),i));const l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),uN(()=>{if(l)return l[2]&&l[2](),l[3]},[]),m.createElement(K9.Provider,wp(e,{value:o}))},dNe=vk&&window.__SWR_DEVTOOLS_USE__,nCt=dNe?window.__SWR_DEVTOOLS_USE__:[],rCt=()=>{dNe&&(window.__SWR_DEVTOOLS_REACT__=de)},iCt=e=>Gd(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],iK=()=>wp(cNe,m.useContext(K9)),oCt=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=nK(t),[,,,s]=Vf.get(rK),l=s[a];return si(l)?n(...o):(delete s[a],l)}),r),aCt=nCt.concat(oCt),sCt=e=>function(...n){const r=iK(),[i,o,a]=iCt(n),s=uNe(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(aCt);for(let d=u.length;d--;)l=u[d](l);return l(i,o||s.fetcher||null,s)},lCt=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};rCt();const Gae=de.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),DF={dedupe:!0},cCt=(e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[p,h,g,v]=Vf.get(r),[y,_]=nK(e),b=m.useRef(!1),S=m.useRef(!1),C=m.useRef(y),E=m.useRef(t),w=m.useRef(n),x=()=>w.current,T=()=>x().isVisible()&&x().isOnline(),[R,N,I,P]=rNe(r,y),D=m.useRef({}).current,F=si(a)?n.fallback[y]:a,L=(ae,ue)=>{for(const fe in D){const se=fe;if(se==="data"){if(!i(ae[se],ue[se])&&(!si(ae[se])||!i(re,ue[se])))return!1}else if(ue[se]!==ae[se])return!1}return!0},B=m.useMemo(()=>{const ae=!y||!t?!1:si(s)?x().isPaused()||o?!1:si(l)?!0:l:s,ue=xe=>{const ge=wp(xe);return delete ge._k,ae?{isValidating:!0,isLoading:!0,...ge}:ge},fe=R(),se=P(),pe=ue(fe),_e=fe===se?pe:ue(se);let Te=pe;return[()=>{const xe=ue(R());return L(xe,Te)?(Te.data=xe.data,Te.isLoading=xe.isLoading,Te.isValidating=xe.isValidating,Te.error=xe.error,Te):(Te=xe,xe)},()=>_e]},[r,y]),U=kbe.useSyncExternalStore(m.useCallback(ae=>I(y,(ue,fe)=>{L(fe,ue)||ae()}),[r,y]),B[0],B[1]),G=!b.current,V=p[y]&&p[y].length>0,W=U.data,$=si(W)?F:W,H=U.error,K=m.useRef($),re=f?si(W)?K.current:W:$,Q=V&&!si(H)?!1:G&&!si(s)?s:x().isPaused()?!1:o?si($)?!1:l:si($)||l,A=!!(y&&t&&G&&Q),k=si(U.isValidating)?A:U.isValidating,Z=si(U.isLoading)?A:U.isLoading,ne=m.useCallback(async ae=>{const ue=E.current;if(!y||!ue||S.current||x().isPaused())return!1;let fe,se,pe=!0;const _e=ae||{},Te=!g[y]||!_e.dedupe,xe=()=>Hae?!S.current&&y===C.current&&b.current:y===C.current,ge={isValidating:!1,isLoading:!1},Ce=()=>{N(ge)},ye=()=>{const Ee=g[y];Ee&&Ee[1]===se&&delete g[y]},be={isValidating:!0};si(R().data)&&(be.isLoading=!0);try{if(Te&&(N(be),n.loadingTimeout&&si(R().data)&&setTimeout(()=>{pe&&xe()&&x().onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[ue(_),q9()]),[fe,se]=g[y],fe=await fe,Te&&setTimeout(ye,n.dedupingInterval),!g[y]||g[y][1]!==se)return Te&&xe()&&x().onDiscarded(y),!1;ge.error=zl;const Ee=h[y];if(!si(Ee)&&(se<=Ee[0]||se<=Ee[1]||Ee[1]===0))return Ce(),Te&&xe()&&x().onDiscarded(y),!1;const Me=R().data;ge.data=i(Me,fe)?Me:fe,Te&&xe()&&x().onSuccess(fe,y,n)}catch(Ee){ye();const Me=x(),{shouldRetryOnError:X}=Me;Me.isPaused()||(ge.error=Ee,Te&&xe()&&(Me.onError(Ee,y,Me),(X===!0||Gd(X)&&X(Ee))&&T()&&Me.onErrorRetry(Ee,y,Me,Y=>{const J=p[y];J&&J[0]&&J[0](PE.ERROR_REVALIDATE_EVENT,Y)},{retryCount:(_e.retryCount||0)+1,dedupe:!0})))}return pe=!1,Ce(),!0},[y,r]),oe=m.useCallback((...ae)=>sNe(r,C.current,...ae),[]);if(uN(()=>{E.current=t,w.current=n,si(W)||(K.current=W)}),uN(()=>{if(!y)return;const ae=ne.bind(zl,DF);let ue=0;const se=lCt(y,p,(pe,_e={})=>{if(pe==PE.FOCUS_EVENT){const Te=Date.now();x().revalidateOnFocus&&Te>ue&&T()&&(ue=Te+x().focusThrottleInterval,ae())}else if(pe==PE.RECONNECT_EVENT)x().revalidateOnReconnect&&T()&&ae();else{if(pe==PE.MUTATE_EVENT)return ne();if(pe==PE.ERROR_REVALIDATE_EVENT)return ne(_e)}});return S.current=!1,C.current=y,b.current=!0,N({_k:_}),Q&&(si($)||mw?ae():KEt(ae)),()=>{S.current=!0,se()}},[y]),uN(()=>{let ae;function ue(){const se=Gd(c)?c(R().data):c;se&&ae!==-1&&(ae=setTimeout(fe,se))}function fe(){!R().error&&(u||x().isVisible())&&(d||x().isOnline())?ne(DF).then(ue):ue()}return ue(),()=>{ae&&(clearTimeout(ae),ae=-1)}},[c,u,d,y]),m.useDebugValue(re),o&&si($)&&y){if(!Hae&&mw)throw new Error("Fallback data is required when using suspense in SSR.");E.current=t,w.current=n,S.current=!1;const ae=v[y];if(!si(ae)){const ue=oe(ae);Gae(ue)}if(si(H)){const ue=ne(DF);si(re)||(ue.status="fulfilled",ue.value=!0),Gae(ue)}else throw H}return{mutate:oe,get data(){return D.data=!0,re},get error(){return D.error=!0,H},get isValidating(){return D.isValidating=!0,k},get isLoading(){return D.isLoading=!0,Z}}},uCt=cN.defineProperty(tCt,"defaultValue",{value:cNe}),oK=sCt(cCt),dCt={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},fCt={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},pCt={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},mCt={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},hCt={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},gCt={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},vCt={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},_Ct={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},yCt={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},bCt={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},SCt={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},ECt={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},CCt={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},wCt={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},xCt={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},TCt={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},RCt={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},OCt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},ICt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},NCt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},MCt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},ACt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},PCt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},DCt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},kCt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},LCt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},$Ct={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},FCt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},BCt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},UCt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},jCt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},HCt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var ui=function(t,n){return{getMessage:function(i,o){var a=ia(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return o;var l=t_["zh-CN"];return l?l.getMessage(i,o):o},locale:t}},zCt=ui("mn_MN",TCt),VCt=ui("ar_EG",dCt),xb=ui("zh_CN",jCt),GCt=ui("en_US",gCt),WCt=ui("en_GB",hCt),YCt=ui("vi_VN",UCt),qCt=ui("it_IT",CCt),KCt=ui("ja_JP",wCt),QCt=ui("es_ES",vCt),XCt=ui("ca_ES",fCt),ZCt=ui("ru_RU",ACt),JCt=ui("sr_RS",DCt),e1t=ui("ms_MY",RCt),t1t=ui("zh_TW",HCt),n1t=ui("fr_FR",yCt),r1t=ui("pt_BR",NCt),i1t=ui("ko_KR",xCt),o1t=ui("id_ID",ECt),a1t=ui("de_DE",mCt),s1t=ui("fa_IR",_Ct),l1t=ui("tr_TR",$Ct),c1t=ui("pl_PL",ICt),u1t=ui("hr_",SCt),d1t=ui("th_TH",LCt),f1t=ui("cs_cz",pCt),p1t=ui("sk_SK",PCt),m1t=ui("he_IL",bCt),h1t=ui("uk_UA",FCt),g1t=ui("uz_UZ",BCt),v1t=ui("nl_NL",OCt),_1t=ui("ro_RO",MCt),y1t=ui("sv_SE",kCt),t_={"mn-MN":zCt,"ar-EG":VCt,"zh-CN":xb,"en-US":GCt,"en-GB":WCt,"vi-VN":YCt,"it-IT":qCt,"ja-JP":KCt,"es-ES":QCt,"ca-ES":XCt,"ru-RU":ZCt,"sr-RS":JCt,"ms-MY":e1t,"zh-TW":t1t,"fr-FR":n1t,"pt-BR":r1t,"ko-KR":i1t,"id-ID":o1t,"de-DE":a1t,"fa-IR":s1t,"tr-TR":l1t,"pl-PL":c1t,"hr-HR":u1t,"th-TH":d1t,"cs-CZ":f1t,"sk-SK":p1t,"he-IL":m1t,"uk-UA":h1t,"uz-UZ":g1t,"nl-NL":v1t,"ro-RO":_1t,"sv-SE":y1t},b1t=Object.keys(t_),fNe=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return b1t.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function Wa(e,t){S1t(e)&&(e="100%");var n=E1t(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 yO(e){return Math.min(1,Math.max(0,e))}function S1t(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function E1t(e){return typeof e=="string"&&e.indexOf("%")!==-1}function pNe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function bO(e){return e<=1?"".concat(Number(e)*100,"%"):e}function sv(e){return e.length===1?"0"+e:String(e)}function C1t(e,t,n){return{r:Wa(e,255)*255,g:Wa(t,255)*255,b:Wa(n,255)*255}}function Wae(e,t,n){e=Wa(e,255),t=Wa(t,255),n=Wa(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:s}}function kF(e,t,n){return n<0&&(n+=1),n>1&&(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 w1t(e,t,n){var r,i,o;if(e=Wa(e,360),t=Wa(t,100),n=Wa(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=kF(s,a,e+1/3),i=kF(s,a,e),o=kF(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Yae(e,t,n){e=Wa(e,255),t=Wa(t,255),n=Wa(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:a}}function x1t(e,t,n){e=Wa(e,360)*6,t=Wa(t,100),n=Wa(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function qae(e,t,n,r){var i=[sv(Math.round(e).toString(16)),sv(Math.round(t).toString(16)),sv(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function T1t(e,t,n,r,i){var o=[sv(Math.round(e).toString(16)),sv(Math.round(t).toString(16)),sv(Math.round(n).toString(16)),sv(R1t(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function R1t(e){return Math.round(parseFloat(e)*255).toString(16)}function Kae(e){return Dl(e)/255}function Dl(e){return parseInt(e,16)}function O1t(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Q9={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 I1t(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=A1t(e)),typeof e=="object"&&(Nf(e.r)&&Nf(e.g)&&Nf(e.b)?(t=C1t(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nf(e.h)&&Nf(e.s)&&Nf(e.v)?(r=bO(e.s),i=bO(e.v),t=x1t(e.h,r,i),a=!0,s="hsv"):Nf(e.h)&&Nf(e.s)&&Nf(e.l)&&(r=bO(e.s),o=bO(e.l),t=w1t(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=pNe(n),{ok:a,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 N1t="[-\\+]?\\d+%?",M1t="[-\\+]?\\d*\\.\\d+%?",Jm="(?:".concat(M1t,")|(?:").concat(N1t,")"),LF="[\\s|\\(]+(".concat(Jm,")[,|\\s]+(").concat(Jm,")[,|\\s]+(").concat(Jm,")\\s*\\)?"),$F="[\\s|\\(]+(".concat(Jm,")[,|\\s]+(").concat(Jm,")[,|\\s]+(").concat(Jm,")[,|\\s]+(").concat(Jm,")\\s*\\)?"),Su={CSS_UNIT:new RegExp(Jm),rgb:new RegExp("rgb"+LF),rgba:new RegExp("rgba"+$F),hsl:new RegExp("hsl"+LF),hsla:new RegExp("hsla"+$F),hsv:new RegExp("hsv"+LF),hsva:new RegExp("hsva"+$F),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 A1t(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Q9[e])e=Q9[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Su.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Su.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Su.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Su.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Su.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Su.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Su.hex8.exec(e),n?{r:Dl(n[1]),g:Dl(n[2]),b:Dl(n[3]),a:Kae(n[4]),format:t?"name":"hex8"}:(n=Su.hex6.exec(e),n?{r:Dl(n[1]),g:Dl(n[2]),b:Dl(n[3]),format:t?"name":"hex"}:(n=Su.hex4.exec(e),n?{r:Dl(n[1]+n[1]),g:Dl(n[2]+n[2]),b:Dl(n[3]+n[3]),a:Kae(n[4]+n[4]),format:t?"name":"hex8"}:(n=Su.hex3.exec(e),n?{r:Dl(n[1]+n[1]),g:Dl(n[2]+n[2]),b:Dl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Nf(e){return!!Su.CSS_UNIT.exec(String(e))}var P1t=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=O1t(t)),this.originalInput=t;var i=I1t(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=pNe(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=Yae(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=Yae(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Wae(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=Wae(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),qae(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),T1t(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(Wa(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(Wa(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="#"+qae(this.r,this.g,this.b,!1),n=0,r=Object.entries(Q9);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(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=yO(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=yO(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=yO(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=yO(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(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%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,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},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(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),FF,hw={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",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'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"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)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"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)",boxShadowDrawerDown:"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)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},mNe=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,o=0,a;o<t.length;o++)a=t.charCodeAt(o),r=Math.imul(r^a,2654435761),i=Math.imul(i^a,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},aK=Gv(function(e){return e}),hNe={theme:aK,token:q(q({},hw),Ns==null||(FF=Ns.defaultAlgorithm)===null||FF===void 0?void 0:FF.call(Ns,Ns==null?void 0:Ns.defaultSeed)),hashId:"pro-".concat(mNe(JSON.stringify(hw)))},D1t=function(){return hNe};const k1t=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:hw,emptyTheme:aK,hashCode:mNe,token:hNe,useToken:D1t},Symbol.toStringTag,{value:"Module"}));var kl=function(t,n){return new P1t(t).setAlpha(n).toRgbString()},L1t=function(){return typeof Ns>"u"||!Ns?k1t:Ns},af=L1t(),dN=af.useToken,BF=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Di(e,t){var n,r=m.useContext(qu),i=r.token,o=i===void 0?{}:i,a=m.useContext(qu),s=a.hashed,l=dN(),c=l.token,u=l.hashId,d=m.useContext(qu),f=d.theme,p=m.useContext(Pn.ConfigContext),h=p.getPrefixCls,g=p.csp;return o.layout||(o=q({},c)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(h("pro")),o.antCls=".".concat(h()),{wrapSSR:Z1({theme:f,token:o,path:[e],nonce:g==null?void 0:g.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(o)}),hashId:s?u:""}}var $1t=function(t,n){var r,i,o,a,s,l=q({},t);return q(q({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:kl(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:q({colorBgHeader:kl(n.colorBgElevated,.6),colorBgScrollHeader:kl(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:kl(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(o=l.header)===null||o===void 0?void 0:o.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:kl(n.colorTextBase,.95),colorBgRightActionsItemHover:kl(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:q({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:kl(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:kl(n.colorTextBase,.06),colorBgMenuItemHover:kl(n.colorTextBase,.03),colorBgMenuItemSelected:kl(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:kl(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:kl(n.colorTextBase,.95)},l.sider),pageContainer:q({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((a=l.pageContainer)===null||a===void 0?void 0:a.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},F1t=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.length,a,s=0;s<o;s+=1)for(a in r[s])r[s].hasOwnProperty(a)&&(qt(t[a])==="object"&&qt(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=q(q({},t[a]),r[s][a]):t[a]=r[s][a]);return t},B1t={exports:{}};(function(e,t){(function(n,r){e.exports=r(pTe)})(Gi,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(B1t);var U1t=["locale","getPrefixCls"],j1t=["locale","theme"],H1t=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},Tb=function(){var t,n;return!(typeof process<"u"&&(((t="production")===null||t===void 0?void 0:t.toUpperCase())==="TEST"||((n="production")===null||n===void 0?void 0:n.toUpperCase())==="DEV"))},Rh=de.createContext({intl:q(q({},xb),{},{locale:"default"}),valueTypeMap:{},theme:aK,hashed:!0,dark:!1,token:hw});Rh.Consumer;var z1t=function(){var t=iK(),n=t.cache;return m.useEffect(function(){return function(){n.clear()}},[]),null},V1t=function(t){var n,r=t.children,i=t.dark,o=t.valueTypeMap,a=t.autoClearCache,s=a===void 0?!1:a,l=t.token,c=t.prefixCls,u=t.intl,d=m.useContext(Pn.ConfigContext),f=d.locale,p=d.getPrefixCls,h=It(d,U1t),g=(n=af.useToken)===null||n===void 0?void 0:n.call(af),v=m.useContext(Rh),y=c?".".concat(c):".".concat(p(),"-pro"),_="."+p(),b="".concat(y),S=m.useMemo(function(){return $1t(l||{},g.token||hw)},[l,g.token]),C=m.useMemo(function(){var L,B=f==null?void 0:f.locale,U=fNe(B),G=u??(B&&((L=v.intl)===null||L===void 0?void 0:L.locale)==="default"?t_[U]:v.intl||t_[U]);return q(q({},v),{},{dark:i??v.dark,token:F1t(v.token,g.token,{proComponentsCls:y,antCls:_,themeId:g.theme.id,layout:S}),intl:G||xb})},[f==null?void 0:f.locale,v,i,g.token,g.theme.id,y,_,S,u]),E=q(q({},C.token||{}),{},{proComponentsCls:y}),w=mY(g.theme,[g.token,E??{}],{salt:b,override:E}),x=Oe(w,2),T=x[0],R=x[1],N=m.useMemo(function(){return!(t.hashed===!1||v.hashed===!1)},[v.hashed,t.hashed]),I=m.useMemo(function(){return t.hashed===!1||v.hashed===!1||Tb()===!1?"":g.hashId?g.hashId:R},[R,v.hashed,t.hashed]);m.useEffect(function(){pr.locale((f==null?void 0:f.locale)||"zh-cn")},[f==null?void 0:f.locale]);var P=m.useMemo(function(){return q(q({},h.theme),{},{hashId:I,hashed:N&&Tb()})},[h.theme,I,N,Tb()]),D=m.useMemo(function(){return q(q({},C),{},{valueTypeMap:o||(C==null?void 0:C.valueTypeMap),token:T,theme:g.theme,hashed:N,hashId:I})},[C,o,T,g.theme,N,I]),F=m.useMemo(function(){return M.jsx(Pn,q(q({},h),{},{theme:P,children:M.jsx(Rh.Provider,{value:D,children:M.jsxs(M.Fragment,{children:[s&&M.jsx(z1t,{}),r]})})}))},[h,P,D,s,r]);return s?M.jsx(uCt,{value:{provider:function(){return new Map}},children:F}):F},_k=function(t){var n=t.needDeps,r=t.dark,i=t.token,o=m.useContext(Rh),a=m.useContext(Pn.ConfigContext),s=a.locale,l=a.theme,c=It(a,j1t),u=n&&o.hashId!==void 0&&Object.keys(t).sort().join("-")==="children-needDeps";if(u)return M.jsx(M.Fragment,{children:t.children});var d=function(){var h=r??o.dark;return h&&!Array.isArray(l==null?void 0:l.algorithm)?[af.darkAlgorithm,l==null?void 0:l.algorithm].filter(Boolean):h&&Array.isArray(l==null?void 0:l.algorithm)?[af.darkAlgorithm].concat(at((l==null?void 0:l.algorithm)||[])).filter(Boolean):l==null?void 0:l.algorithm},f=q(q({},c),{},{locale:s||BEt,theme:H1t(q(q({},l),{},{algorithm:d()}))});return M.jsx(Pn,q(q({},f),{},{children:M.jsx(V1t,q(q({},t),{},{token:i}))}))};function yo(){var e=m.useContext(Pn.ConfigContext),t=e.locale,n=m.useContext(Rh),r=n.intl;return r&&r.locale!=="default"?r||xb:t!=null&&t.locale&&t_[fNe(t.locale)]||xb}Rh.displayName="ProProvider";var qu=Rh,G1t=function(t){return ie({},t.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(t.colorSplit)})};function W1t(e){return Di("DropdownFooter",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[G1t(n)]})}var Y1t=function(t){var n=yo(),r=t.onClear,i=t.onConfirm,o=t.disabled,a=t.footerRender,s=m.useContext(Pn.ConfigContext),l=s.getPrefixCls,c=l("pro-core-dropdown-footer"),u=W1t(c),d=u.wrapSSR,f=u.hashId,p=[M.jsx(On,{style:{visibility:r?"visible":"hidden"},type:"link",size:"small",disabled:o,onClick:function(v){r&&r(v),v.stopPropagation()},children:n.getMessage("form.lightFilter.clear","清除")},"clear"),M.jsx(On,{"data-type":"confirm",type:"primary",size:"small",onClick:i,disabled:o,children:n.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(a===!1||(a==null?void 0:a(i,r))===!1)return null;var h=(a==null?void 0:a(i,r))||p;return d(M.jsx("div",{className:Re(c,f),onClick:function(v){return v.target.getAttribute("data-type")!=="confirm"&&v.stopPropagation()},children:h}))},q1t=function(e){Es(n,e);var t=Vs(n);function n(){var r;Yr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ie(ln(r),"state",{hasError:!1,errorInfo:""}),r}return qr(n,[{key:"componentDidCatch",value:function(i,o){console.log(i,o)}},{key:"render",value:function(){return this.state.hasError?M.jsx(Hx,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(i){return{hasError:!0,errorInfo:i.message}}}]),n}(de.Component),K1t=function(t){return ie({},t.componentCls,ie(ie(ie(ie(ie(ie(ie(ie({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":ie({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),ie(ie({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),ie({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),ie({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",ie(ie({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",ie({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",ie(ie(ie({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function Q1t(e){return Di("FieldLabel",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[K1t(n)]})}var X1t=function(t,n){var r,i,o,a=t.label,s=t.onClear,l=t.value,c=t.disabled,u=t.onLabelClick,d=t.ellipsis,f=t.placeholder,p=t.className,h=t.formatter,g=t.bordered,v=t.style,y=t.downIcon,_=t.allowClear,b=_===void 0?!0:_,S=t.valueMaxLength,C=S===void 0?41:S,E=(Pn==null||(r=Pn.useConfig)===null||r===void 0?void 0:r.call(Pn))||{componentSize:"middle"},w=E.componentSize,x=w,T=m.useContext(Pn.ConfigContext),R=T.getPrefixCls,N=R("pro-core-field-label"),I=Q1t(N),P=I.wrapSSR,D=I.hashId,F=yo(),L=m.useRef(null),B=m.useRef(null);m.useImperativeHandle(n,function(){return{labelRef:B,clearRef:L}});var U=function($){return $.every(function(H){return typeof H=="string"})?$.join(","):$.map(function(H,K){var re=K===$.length-1?"":",";return typeof H=="string"?M.jsxs("span",{children:[H,re]},K):M.jsxs("span",{style:{display:"flex"},children:[H,re]},K)})},G=function($){return h?h($):Array.isArray($)?U($):$},V=function($,H){if(H!=null&&H!==""&&(!Array.isArray(H)||H.length)){var K,re,Q=$?M.jsxs("span",{onClick:function(){u==null||u()},className:"".concat(N,"-text"),children:[$,": "]}):"",A=G(H);if(!d)return M.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Q,G(H)]});var k=function(){var oe=Array.isArray(H)&&H.length>1,ae=F.getMessage("form.lightFilter.itemUnit","项");return typeof A=="string"&&A.length>C&&oe?"...".concat(H.length).concat(ae):""},Z=k();return M.jsxs("span",{title:typeof A=="string"?A:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Q,M.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof A=="string"?A==null||(K=A.toString())===null||K===void 0||(re=K.slice)===null||re===void 0?void 0:re.call(K,0,C):A}),Z]})}return $||f};return P(M.jsxs("span",{className:Re(N,D,"".concat(N,"-").concat((i=(o=t.size)!==null&&o!==void 0?o:x)!==null&&i!==void 0?i:"middle"),ie(ie(ie(ie({},"".concat(N,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(N,"-disabled"),c),"".concat(N,"-bordered"),g),"".concat(N,"-allow-clear"),b),p),style:v,ref:B,onClick:function(){var $;t==null||($=t.onClick)===null||$===void 0||$.call(t)},children:[V(a,l),(l||l===0)&&b&&M.jsx(mf,{role:"button",title:F.getMessage("form.lightFilter.clear","清除"),className:Re("".concat(N,"-icon"),D,"".concat(N,"-close")),onClick:function($){c||s==null||s(),$.stopPropagation()},ref:L}),y!==!1?y??M.jsx(Mx,{className:Re("".concat(N,"-icon"),D,"".concat(N,"-arrow"))}):null]}))},zp=de.forwardRef(X1t),$c=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},Z1t=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Qae=function(t){return t==="*"||t==="x"||t==="X"},Xae=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},J1t=function(t,n){return qt(t)!==qt(n)?[String(t),String(n)]:[t,n]},ewt=function(t,n){if(Qae(t)||Qae(n))return 0;var r=J1t(Xae(t),Xae(n)),i=Oe(r,2),o=i[0],a=i[1];return o>a?1:o<a?-1:0},twt=function(t,n){for(var r=0;r<Math.max(t.length,n.length);r++){var i=ewt(t[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Zae=function(t){var n,r=t.match(Z1t);return r==null||(n=r.shift)===null||n===void 0||n.call(r),r},Vx=function(t,n){var r=Zae(t),i=Zae(n),o=r.pop(),a=i.pop(),s=twt(r,i);return s!==0?s:o||a?o?-1:1:0},gNe=function(){var t;return typeof process>"u"?bp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||bp},yk=function(t,n){var r=Vx(gNe(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return $c(r)},nwt=function(t){return ie(ie(ie({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function rwt(e){return Di("FilterDropdown",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[nwt(n)]})}var iwt=function(t){var n=t.children,r=t.label,i=t.footer,o=t.open,a=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,d=t.placement,f=m.useContext(Pn.ConfigContext),p=f.getPrefixCls,h=p("pro-core-field-dropdown"),g=rwt(h),v=g.wrapSSR,y=g.hashId,_=yk(o||c||!1,a||l),b=m.useRef(null);return v(M.jsx(Xc,q(q({placement:d,trigger:["click"]},_),{},{overlayInnerStyle:{padding:0},content:M.jsxs("div",{ref:b,className:Re("".concat(h,"-overlay"),ie(ie({},"".concat(h,"-overlay-").concat(d),d),"hashId",y)),children:[M.jsx(Pn,{getPopupContainer:function(){return b.current||document.body},children:M.jsx("div",{className:"".concat(h,"-content ").concat(y).trim(),children:n})}),i&&M.jsx(Y1t,q({disabled:s,footerRender:u},i))]}),children:M.jsx("span",{className:"".concat(h,"-label ").concat(y).trim(),children:r})})))},owt=function(t){return ie({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function awt(e){return Di("LabelIconTip",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[owt(n)]})}var swt=de.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,o=m.useContext(Pn.ConfigContext),a=o.getPrefixCls,s=a("pro-core-label-tip"),l=awt(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return M.jsx(M.Fragment,{children:t});var d=typeof n=="string"||de.isValidElement(n)?{title:n}:n,f=(d==null?void 0:d.icon)||M.jsx(Svt,{});return c(M.jsxs("div",{className:Re(s,u),onMouseDown:function(h){return h.stopPropagation()},onMouseLeave:function(h){return h.stopPropagation()},onMouseMove:function(h){return h.stopPropagation()},children:[M.jsx("div",{className:Re("".concat(s,"-title"),u,ie({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&M.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&M.jsx(rc,q(q({},d),{},{children:M.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:f})}))]}))}),vNe=de.createContext({}),_Ne={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){var n="month",r="quarter";return function(i,o){var a=o.prototype;a.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=a.add;a.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=a.startOf;a.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;if(d.p(c)===r){var p=this.quarter()-1;return f?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(_Ne);var lwt=_Ne.exports;const cwt=yi(lwt);var n_=function(t){return t==null};pr.extend(cwt);var yNe={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function Jae(e){return Object.prototype.toString.call(e)==="[object Object]"}function uwt(e){if(Jae(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(Jae(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var X9=function(t){return!!(t!=null&&t._isAMomentObject)},ese=function(t,n,r){if(!n)return t;if(pr.isDayjs(t)||X9(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(yNe[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},dwt=function e(t,n,r,i,o){var a={};return typeof window>"u"||qt(t)!=="object"||n_(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=o?[o,s].flat(1):[s],c=ia(r,l)||"text",u="text",d;typeof c=="string"?u=c:c&&(u=c.valueType,d=c.dateFormat);var f=t[s];if(!(n_(f)&&i)){if(uwt(f)&&!Array.isArray(f)&&!pr.isDayjs(f)&&!X9(f)){a[s]=e(f,n,r,i,l);return}if(Array.isArray(f)){a[s]=f.map(function(p,h){return pr.isDayjs(p)||X9(p)?ese(p,d||n,u):e(p,n,r,i,[s,"".concat(h)].flat(1))});return}a[s]=ese(f,d||n,u)}}),a)},tse=function(t,n){return typeof n=="function"?n(pr(t)):pr(t).format(n)},fwt=function(t,n){var r=Array.isArray(t)?t:[],i=Oe(r,2),o=i[0],a=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):qt(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=o?tse(o,s):"",u=a?tse(a,l):"",d=c&&u?"".concat(c," ~ ").concat(u):"";return d};function r_(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function bNe(e){if(Vx(gNe(),"5.6.0")<0)return e;var t={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",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=q({},e);return Object.keys(t).forEach(function(r){n[r]!==void 0&&(n[t[r]]=n[r],delete n[r])}),n}var Ku=function(t){var n=m.useRef(null);return n.current=t,m.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=n.current)===null||r===void 0?void 0:r.call.apply(r,[n].concat(at(o)))},[])};function pwt(e,t){var n=Ku(e),r=m.useRef(),i=m.useCallback(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),o=m.useCallback(Oo(yr().mark(function a(){var s,l,c,u=arguments;return yr().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:for(s=u.length,l=new Array(s),c=0;c<s;c++)l[c]=u[c];{f.next=3;break}case 3:return i(),f.abrupt("return",new Promise(function(p){r.current=setTimeout(Oo(yr().mark(function h(){return yr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.t0=p,v.next=3,n.apply(void 0,l);case 3:return v.t1=v.sent,(0,v.t0)(v.t1),v.abrupt("return");case 6:case"end":return v.stop()}},h)})),t)}));case 5:case"end":return f.stop()}},a)})),[n,i,t]);return m.useEffect(function(){return i},[i]),{run:o,cancel:i}}var mwt=function(t){var n=m.useRef(t);return n.current=t,n};function hwt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=m.useState(e),i=Oe(r,2),o=i[0],a=i[1],s=mwt(e);return m.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(at(n)):void 0),o}function Iv(e,t,n,r){if(e===t)return!0;if(e&&t&&qt(e)==="object"&&qt(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,o,a;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!Iv(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=zd(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(o=l.value,!t.has(o[0]))return!1}catch(h){s.e(h)}finally{s.f()}var c=zd(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(o=u.value,!Iv(o[1],t.get(o[0]),n,r))return!1}catch(h){c.e(h)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var d=zd(e.entries()),f;try{for(d.s();!(f=d.n()).done;)if(o=f.value,!t.has(o[0]))return!1}catch(h){d.e(h)}finally{d.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return!1;for(o=i;o--!==0;){var p=a[o];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!Iv(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var gwt=function(t,n,r){return Iv(t,n,r)};function SNe(e,t){var n=m.useRef();return gwt(e,n.current,t)||(n.current=e),n.current}function vwt(e,t,n){m.useEffect(e,SNe(t||[],n))}function tl(e,t){return de.useMemo(e,SNe(t))}var _wt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,sK=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!_wt};function ywt(e,t){var n=typeof e.pageName=="string"?e.title:t;m.useEffect(function(){sK()&&n&&(document.title=n)},[e.title,n])}var UF=0;function bwt(e){var t=m.useRef(null),n=m.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(UF+=1,UF.toString())}),r=Oe(n,1),i=r[0],o=m.useRef(i),a=function(){var u=Oo(yr().mark(function d(){var f,p,h,g;return yr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(f=t.current)===null||f===void 0||f.abort(),h=new AbortController,t.current=h,y.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(_,b){var S;(S=t.current)===null||S===void 0||(S=S.signal)===null||S===void 0||S.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return g=y.sent,y.abrupt("return",g);case 7:case"end":return y.stop()}},d)}));return function(){return u.apply(this,arguments)}}();m.useEffect(function(){return function(){UF+=1}},[]);var s=oK([o.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var Swt=function(t){var n=m.useRef();return m.useEffect(function(){n.current=t}),n.current},Ewt=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function Cwt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var lK=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},ENe=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.length,a,s=0;s<o;s+=1)for(a in r[s])r[s].hasOwnProperty(a)&&(qt(t[a])==="object"&&qt(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=q(q({},t[a]),r[s][a]):t[a]=r[s][a]);return t},nse=0,rse=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(nse+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},UA=function(){return typeof window>"u"?rse():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():rse()};pr.extend(CTe);var ise=function(t){return!!(t!=null&&t._isAMomentObject)},Gx=function e(t,n){return n_(t)||pr.isDayjs(t)||ise(t)?ise(t)?pr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?pr(t):pr(t,n)},wwt=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function xwt(e){var t={};return wwt.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var Twt="valueType request plain renderFormItem render text formItemProps valueEnum",Rwt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function CNe(e){var t="".concat(Twt," ").concat(Rwt).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function Owt(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&qt(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var Iwt=function(t){var n=t.color,r=t.children;return M.jsx(nl,{color:n,text:r})},Vp=function(t){return Owt(t)==="map"?t:new Map(Object.entries(t||{}))},Nwt={Success:function(t){var n=t.children;return M.jsx(nl,{status:"success",text:n})},Error:function(t){var n=t.children;return M.jsx(nl,{status:"error",text:n})},Default:function(t){var n=t.children;return M.jsx(nl,{status:"default",text:n})},Processing:function(t){var n=t.children;return M.jsx(nl,{status:"processing",text:n})},Warning:function(t){var n=t.children;return M.jsx(nl,{status:"warning",text:n})},success:function(t){var n=t.children;return M.jsx(nl,{status:"success",text:n})},error:function(t){var n=t.children;return M.jsx(nl,{status:"error",text:n})},default:function(t){var n=t.children;return M.jsx(nl,{status:"default",text:n})},processing:function(t){var n=t.children;return M.jsx(nl,{status:"processing",text:n})},warning:function(t){var n=t.children;return M.jsx(nl,{status:"warning",text:n})}},_S=function e(t,n,r){if(Array.isArray(t))return M.jsx(Zc,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Vp(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var o=i.get(t)||i.get("".concat(t));if(!o)return M.jsx(de.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=o.status,s=o.color,l=Nwt[a||"Init"];return l?M.jsx(l,{children:o.text},r):s?M.jsx(Iwt,{color:s,children:o.text},r):M.jsx(de.Fragment,{children:o.text||o},r)},Z9={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=y();r.configure=y,r.stringify=r,r.default=r,t.stringify=r,t.configure=y,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(_){return _.length<5e3&&!i.test(_)?`"${_}"`:JSON.stringify(_)}function a(_,b){if(_.length>200||b)return _.sort(b);for(let S=1;S<_.length;S++){const C=_[S];let E=S;for(;E!==0&&_[E-1]>C;)_[E]=_[E-1],E--;_[E]=C}return _}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(_){return s.call(_)!==void 0&&_.length!==0}function c(_,b,S){_.length<S&&(S=_.length);const C=b===","?"":" ";let E=`"0":${C}${_[0]}`;for(let w=1;w<S;w++)E+=`${b}"${w}":${C}${_[w]}`;return E}function u(_){if(n.call(_,"circularValue")){const b=_.circularValue;if(typeof b=="string")return`"${b}"`;if(b==null)return b;if(b===Error||b===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function d(_){let b;if(n.call(_,"deterministic")&&(b=_.deterministic,typeof b!="boolean"&&typeof b!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return b===void 0?!0:b}function f(_,b){let S;if(n.call(_,b)&&(S=_[b],typeof S!="boolean"))throw new TypeError(`The "${b}" argument must be of type boolean`);return S===void 0?!0:S}function p(_,b){let S;if(n.call(_,b)){if(S=_[b],typeof S!="number")throw new TypeError(`The "${b}" argument must be of type number`);if(!Number.isInteger(S))throw new TypeError(`The "${b}" argument must be an integer`);if(S<1)throw new RangeError(`The "${b}" argument must be >= 1`)}return S===void 0?1/0:S}function h(_){return _===1?"1 item":`${_} items`}function g(_){const b=new Set;for(const S of _)(typeof S=="string"||typeof S=="number")&&b.add(String(S));return b}function v(_){if(n.call(_,"strict")){const b=_.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return S=>{let C=`Object can not safely be stringified. Received type ${typeof S}`;throw typeof S!="function"&&(C+=` (${S.toString()})`),new Error(C)}}}function y(_){_={..._};const b=v(_);b&&(_.bigint===void 0&&(_.bigint=!1),"circularValue"in _||(_.circularValue=Error));const S=u(_),C=f(_,"bigint"),E=d(_),w=typeof E=="function"?E:void 0,x=p(_,"maximumDepth"),T=p(_,"maximumBreadth");function R(F,L,B,U,G,V){let W=L[F];switch(typeof W=="object"&&W!==null&&typeof W.toJSON=="function"&&(W=W.toJSON(F)),W=U.call(L,F,W),typeof W){case"string":return o(W);case"object":{if(W===null)return"null";if(B.indexOf(W)!==-1)return S;let $="",H=",";const K=V;if(Array.isArray(W)){if(W.length===0)return"[]";if(x<B.length+1)return'"[Array]"';B.push(W),G!==""&&(V+=G,$+=`
|
||
${V}`,H=`,
|
||
${V}`);const ne=Math.min(W.length,T);let oe=0;for(;oe<ne-1;oe++){const ue=R(String(oe),W,B,U,G,V);$+=ue!==void 0?ue:"null",$+=H}const ae=R(String(oe),W,B,U,G,V);if($+=ae!==void 0?ae:"null",W.length-1>T){const ue=W.length-T-1;$+=`${H}"... ${h(ue)} not stringified"`}return G!==""&&($+=`
|
||
${K}`),B.pop(),`[${$}]`}let re=Object.keys(W);const Q=re.length;if(Q===0)return"{}";if(x<B.length+1)return'"[Object]"';let A="",k="";G!==""&&(V+=G,H=`,
|
||
${V}`,A=" ");const Z=Math.min(Q,T);E&&!l(W)&&(re=a(re,w)),B.push(W);for(let ne=0;ne<Z;ne++){const oe=re[ne],ae=R(oe,W,B,U,G,V);ae!==void 0&&($+=`${k}${o(oe)}:${A}${ae}`,k=H)}if(Q>T){const ne=Q-T;$+=`${k}"...":${A}"${h(ne)} not stringified"`,k=H}return G!==""&&k.length>1&&($=`
|
||
${V}${$}
|
||
${K}`),B.pop(),`{${$}}`}case"number":return isFinite(W)?String(W):b?b(W):"null";case"boolean":return W===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(W);default:return b?b(W):void 0}}function N(F,L,B,U,G,V){switch(typeof L=="object"&&L!==null&&typeof L.toJSON=="function"&&(L=L.toJSON(F)),typeof L){case"string":return o(L);case"object":{if(L===null)return"null";if(B.indexOf(L)!==-1)return S;const W=V;let $="",H=",";if(Array.isArray(L)){if(L.length===0)return"[]";if(x<B.length+1)return'"[Array]"';B.push(L),G!==""&&(V+=G,$+=`
|
||
${V}`,H=`,
|
||
${V}`);const Q=Math.min(L.length,T);let A=0;for(;A<Q-1;A++){const Z=N(String(A),L[A],B,U,G,V);$+=Z!==void 0?Z:"null",$+=H}const k=N(String(A),L[A],B,U,G,V);if($+=k!==void 0?k:"null",L.length-1>T){const Z=L.length-T-1;$+=`${H}"... ${h(Z)} not stringified"`}return G!==""&&($+=`
|
||
${W}`),B.pop(),`[${$}]`}B.push(L);let K="";G!==""&&(V+=G,H=`,
|
||
${V}`,K=" ");let re="";for(const Q of U){const A=N(Q,L[Q],B,U,G,V);A!==void 0&&($+=`${re}${o(Q)}:${K}${A}`,re=H)}return G!==""&&re.length>1&&($=`
|
||
${V}${$}
|
||
${W}`),B.pop(),`{${$}}`}case"number":return isFinite(L)?String(L):b?b(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(L);default:return b?b(L):void 0}}function I(F,L,B,U,G){switch(typeof L){case"string":return o(L);case"object":{if(L===null)return"null";if(typeof L.toJSON=="function"){if(L=L.toJSON(F),typeof L!="object")return I(F,L,B,U,G);if(L===null)return"null"}if(B.indexOf(L)!==-1)return S;const V=G;if(Array.isArray(L)){if(L.length===0)return"[]";if(x<B.length+1)return'"[Array]"';B.push(L),G+=U;let A=`
|
||
${G}`;const k=`,
|
||
${G}`,Z=Math.min(L.length,T);let ne=0;for(;ne<Z-1;ne++){const ae=I(String(ne),L[ne],B,U,G);A+=ae!==void 0?ae:"null",A+=k}const oe=I(String(ne),L[ne],B,U,G);if(A+=oe!==void 0?oe:"null",L.length-1>T){const ae=L.length-T-1;A+=`${k}"... ${h(ae)} not stringified"`}return A+=`
|
||
${V}`,B.pop(),`[${A}]`}let W=Object.keys(L);const $=W.length;if($===0)return"{}";if(x<B.length+1)return'"[Object]"';G+=U;const H=`,
|
||
${G}`;let K="",re="",Q=Math.min($,T);l(L)&&(K+=c(L,H,T),W=W.slice(L.length),Q-=L.length,re=H),E&&(W=a(W,w)),B.push(L);for(let A=0;A<Q;A++){const k=W[A],Z=I(k,L[k],B,U,G);Z!==void 0&&(K+=`${re}${o(k)}: ${Z}`,re=H)}if($>T){const A=$-T;K+=`${re}"...": "${h(A)} not stringified"`,re=H}return re!==""&&(K=`
|
||
${G}${K}
|
||
${V}`),B.pop(),`{${K}}`}case"number":return isFinite(L)?String(L):b?b(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(L);default:return b?b(L):void 0}}function P(F,L,B){switch(typeof L){case"string":return o(L);case"object":{if(L===null)return"null";if(typeof L.toJSON=="function"){if(L=L.toJSON(F),typeof L!="object")return P(F,L,B);if(L===null)return"null"}if(B.indexOf(L)!==-1)return S;let U="";const G=L.length!==void 0;if(G&&Array.isArray(L)){if(L.length===0)return"[]";if(x<B.length+1)return'"[Array]"';B.push(L);const K=Math.min(L.length,T);let re=0;for(;re<K-1;re++){const A=P(String(re),L[re],B);U+=A!==void 0?A:"null",U+=","}const Q=P(String(re),L[re],B);if(U+=Q!==void 0?Q:"null",L.length-1>T){const A=L.length-T-1;U+=`,"... ${h(A)} not stringified"`}return B.pop(),`[${U}]`}let V=Object.keys(L);const W=V.length;if(W===0)return"{}";if(x<B.length+1)return'"[Object]"';let $="",H=Math.min(W,T);G&&l(L)&&(U+=c(L,",",T),V=V.slice(L.length),H-=L.length,$=","),E&&(V=a(V,w)),B.push(L);for(let K=0;K<H;K++){const re=V[K],Q=P(re,L[re],B);Q!==void 0&&(U+=`${$}${o(re)}:${Q}`,$=",")}if(W>T){const K=W-T;U+=`${$}"...":"${h(K)} not stringified"`}return B.pop(),`{${U}}`}case"number":return isFinite(L)?String(L):b?b(L):"null";case"boolean":return L===!0?"true":"false";case"undefined":return;case"bigint":if(C)return String(L);default:return b?b(L):void 0}}function D(F,L,B){if(arguments.length>1){let U="";if(typeof B=="number"?U=" ".repeat(Math.min(B,10)):typeof B=="string"&&(U=B.slice(0,10)),L!=null){if(typeof L=="function")return R("",{"":F},[],L,U,"");if(Array.isArray(L))return N("",F,[],g(L),U,"")}if(U.length!==0)return I("",F,[],U,"")}return P("",F,[])}return D}})(Z9,Z9.exports);var Mwt=Z9.exports;const Awt=yi(Mwt),Pwt=Awt.configure;var ose=Pwt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function Dwt(){this.__data__=[],this.size=0}function bk(e,t){return e===t||e!==e&&t!==t}function Sk(e,t){for(var n=e.length;n--;)if(bk(e[n][0],t))return n;return-1}var kwt=Array.prototype,Lwt=kwt.splice;function $wt(e){var t=this.__data__,n=Sk(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Lwt.call(t,n,1),--this.size,!0}function Fwt(e){var t=this.__data__,n=Sk(t,e);return n<0?void 0:t[n][1]}function Bwt(e){return Sk(this.__data__,e)>-1}function Uwt(e,t){var n=this.__data__,r=Sk(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gp.prototype.clear=Dwt;Gp.prototype.delete=$wt;Gp.prototype.get=Fwt;Gp.prototype.has=Bwt;Gp.prototype.set=Uwt;function jwt(){this.__data__=new Gp,this.size=0}function Hwt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function zwt(e){return this.__data__.get(e)}function Vwt(e){return this.__data__.has(e)}var wNe=typeof global=="object"&&global&&global.Object===Object&&global,Gwt=typeof self=="object"&&self&&self.Object===Object&&self,yS=wNe||Gwt||Function("return this")(),jA=yS.Symbol,xNe=Object.prototype,Wwt=xNe.hasOwnProperty,Ywt=xNe.toString,DE=jA?jA.toStringTag:void 0;function qwt(e){var t=Wwt.call(e,DE),n=e[DE];try{e[DE]=void 0;var r=!0}catch{}var i=Ywt.call(e);return r&&(t?e[DE]=n:delete e[DE]),i}var Kwt=Object.prototype,Qwt=Kwt.toString;function Xwt(e){return Qwt.call(e)}var Zwt="[object Null]",Jwt="[object Undefined]",ase=jA?jA.toStringTag:void 0;function Ek(e){return e==null?e===void 0?Jwt:Zwt:ase&&ase in Object(e)?qwt(e):Xwt(e)}function B_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ext="[object AsyncFunction]",txt="[object Function]",nxt="[object GeneratorFunction]",rxt="[object Proxy]";function cK(e){if(!B_(e))return!1;var t=Ek(e);return t==txt||t==nxt||t==ext||t==rxt}var jF=yS["__core-js_shared__"],sse=function(){var e=/[^.]+$/.exec(jF&&jF.keys&&jF.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ixt(e){return!!sse&&sse in e}var oxt=Function.prototype,axt=oxt.toString;function sxt(e){if(e!=null){try{return axt.call(e)}catch{}try{return e+""}catch{}}return""}var lxt=/[\\^$.*+?()[\]{}|]/g,cxt=/^\[object .+?Constructor\]$/,uxt=Function.prototype,dxt=Object.prototype,fxt=uxt.toString,pxt=dxt.hasOwnProperty,mxt=RegExp("^"+fxt.call(pxt).replace(lxt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hxt(e){if(!B_(e)||ixt(e))return!1;var t=cK(e)?mxt:cxt;return t.test(sxt(e))}function gxt(e,t){return e==null?void 0:e[t]}function uK(e,t){var n=gxt(e,t);return hxt(n)?n:void 0}var TNe=uK(yS,"Map"),gw=uK(Object,"create");function vxt(){this.__data__=gw?gw(null):{},this.size=0}function _xt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yxt="__lodash_hash_undefined__",bxt=Object.prototype,Sxt=bxt.hasOwnProperty;function Ext(e){var t=this.__data__;if(gw){var n=t[e];return n===yxt?void 0:n}return Sxt.call(t,e)?t[e]:void 0}var Cxt=Object.prototype,wxt=Cxt.hasOwnProperty;function xxt(e){var t=this.__data__;return gw?t[e]!==void 0:wxt.call(t,e)}var Txt="__lodash_hash_undefined__";function Rxt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gw&&t===void 0?Txt:t,this}function i_(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}i_.prototype.clear=vxt;i_.prototype.delete=_xt;i_.prototype.get=Ext;i_.prototype.has=xxt;i_.prototype.set=Rxt;function Oxt(){this.size=0,this.__data__={hash:new i_,map:new(TNe||Gp),string:new i_}}function Ixt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ck(e,t){var n=e.__data__;return Ixt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Nxt(e){var t=Ck(this,e).delete(e);return this.size-=t?1:0,t}function Mxt(e){return Ck(this,e).get(e)}function Axt(e){return Ck(this,e).has(e)}function Pxt(e,t){var n=Ck(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function bS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bS.prototype.clear=Oxt;bS.prototype.delete=Nxt;bS.prototype.get=Mxt;bS.prototype.has=Axt;bS.prototype.set=Pxt;var Dxt=200;function kxt(e,t){var n=this.__data__;if(n instanceof Gp){var r=n.__data__;if(!TNe||r.length<Dxt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bS(r)}return n.set(e,t),this.size=n.size,this}function SS(e){var t=this.__data__=new Gp(e);this.size=t.size}SS.prototype.clear=jwt;SS.prototype.delete=Hwt;SS.prototype.get=zwt;SS.prototype.has=Vwt;SS.prototype.set=kxt;var HA=function(){try{var e=uK(Object,"defineProperty");return e({},"",{}),e}catch{}}();function dK(e,t,n){t=="__proto__"&&HA?HA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function J9(e,t,n){(n!==void 0&&!bk(e[t],n)||n===void 0&&!(t in e))&&dK(e,t,n)}function Lxt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}var $xt=Lxt(),RNe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lse=RNe&&typeof module=="object"&&module&&!module.nodeType&&module,Fxt=lse&&lse.exports===RNe,cse=Fxt?yS.Buffer:void 0;cse&&cse.allocUnsafe;function Bxt(e,t){return e.slice()}var use=yS.Uint8Array;function Uxt(e){var t=new e.constructor(e.byteLength);return new use(t).set(new use(e)),t}function jxt(e,t){var n=Uxt(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function Hxt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var dse=Object.create,zxt=function(){function e(){}return function(t){if(!B_(t))return{};if(dse)return dse(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Vxt(e,t){return function(n){return e(t(n))}}var ONe=Vxt(Object.getPrototypeOf,Object),Gxt=Object.prototype;function INe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Gxt;return e===n}function Wxt(e){return typeof e.constructor=="function"&&!INe(e)?zxt(ONe(e)):{}}function Wx(e){return e!=null&&typeof e=="object"}var Yxt="[object Arguments]";function fse(e){return Wx(e)&&Ek(e)==Yxt}var NNe=Object.prototype,qxt=NNe.hasOwnProperty,Kxt=NNe.propertyIsEnumerable,ez=fse(function(){return arguments}())?fse:function(e){return Wx(e)&&qxt.call(e,"callee")&&!Kxt.call(e,"callee")},tz=Array.isArray,Qxt=9007199254740991;function MNe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qxt}function fK(e){return e!=null&&MNe(e.length)&&!cK(e)}function Xxt(e){return Wx(e)&&fK(e)}function Zxt(){return!1}var ANe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pse=ANe&&typeof module=="object"&&module&&!module.nodeType&&module,Jxt=pse&&pse.exports===ANe,mse=Jxt?yS.Buffer:void 0,eTt=mse?mse.isBuffer:void 0,PNe=eTt||Zxt,tTt="[object Object]",nTt=Function.prototype,rTt=Object.prototype,DNe=nTt.toString,iTt=rTt.hasOwnProperty,oTt=DNe.call(Object);function aTt(e){if(!Wx(e)||Ek(e)!=tTt)return!1;var t=ONe(e);if(t===null)return!0;var n=iTt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&DNe.call(n)==oTt}var sTt="[object Arguments]",lTt="[object Array]",cTt="[object Boolean]",uTt="[object Date]",dTt="[object Error]",fTt="[object Function]",pTt="[object Map]",mTt="[object Number]",hTt="[object Object]",gTt="[object RegExp]",vTt="[object Set]",_Tt="[object String]",yTt="[object WeakMap]",bTt="[object ArrayBuffer]",STt="[object DataView]",ETt="[object Float32Array]",CTt="[object Float64Array]",wTt="[object Int8Array]",xTt="[object Int16Array]",TTt="[object Int32Array]",RTt="[object Uint8Array]",OTt="[object Uint8ClampedArray]",ITt="[object Uint16Array]",NTt="[object Uint32Array]",Hi={};Hi[ETt]=Hi[CTt]=Hi[wTt]=Hi[xTt]=Hi[TTt]=Hi[RTt]=Hi[OTt]=Hi[ITt]=Hi[NTt]=!0;Hi[sTt]=Hi[lTt]=Hi[bTt]=Hi[cTt]=Hi[STt]=Hi[uTt]=Hi[dTt]=Hi[fTt]=Hi[pTt]=Hi[mTt]=Hi[hTt]=Hi[gTt]=Hi[vTt]=Hi[_Tt]=Hi[yTt]=!1;function MTt(e){return Wx(e)&&MNe(e.length)&&!!Hi[Ek(e)]}function ATt(e){return function(t){return e(t)}}var kNe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JC=kNe&&typeof module=="object"&&module&&!module.nodeType&&module,PTt=JC&&JC.exports===kNe,HF=PTt&&wNe.process,hse=function(){try{var e=JC&&JC.require&&JC.require("util").types;return e||HF&&HF.binding&&HF.binding("util")}catch{}}(),gse=hse&&hse.isTypedArray,LNe=gse?ATt(gse):MTt;function nz(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var DTt=Object.prototype,kTt=DTt.hasOwnProperty;function LTt(e,t,n){var r=e[t];(!(kTt.call(e,t)&&bk(r,n))||n===void 0&&!(t in e))&&dK(e,t,n)}function $Tt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?dK(n,s,l):LTt(n,s,l)}return n}function FTt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var BTt=9007199254740991,UTt=/^(?:0|[1-9]\d*)$/;function $Ne(e,t){var n=typeof e;return t=t??BTt,!!t&&(n=="number"||n!="symbol"&&UTt.test(e))&&e>-1&&e%1==0&&e<t}function jTt(e,t){var n=tz(e),r=!n&&ez(e),i=!n&&!r&&PNe(e),o=!n&&!r&&!i&&LNe(e),a=n||r||i||o,s=a?FTt(e.length,String):[],l=s.length;for(var c in e)a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$Ne(c,l))||s.push(c);return s}function HTt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zTt=Object.prototype,VTt=zTt.hasOwnProperty;function GTt(e){if(!B_(e))return HTt(e);var t=INe(e),n=[];for(var r in e)r=="constructor"&&(t||!VTt.call(e,r))||n.push(r);return n}function FNe(e){return fK(e)?jTt(e):GTt(e)}function WTt(e){return $Tt(e,FNe(e))}function YTt(e,t,n,r,i,o,a){var s=nz(e,n),l=nz(t,n),c=a.get(l);if(c){J9(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=tz(l),p=!f&&PNe(l),h=!f&&!p&&LNe(l);u=l,f||p||h?tz(s)?u=s:Xxt(s)?u=Hxt(s):p?(d=!1,u=Bxt(l)):h?(d=!1,u=jxt(l)):u=[]:aTt(l)||ez(l)?(u=s,ez(s)?u=WTt(s):(!B_(s)||cK(s))&&(u=Wxt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),J9(e,n,u)}function BNe(e,t,n,r,i){e!==t&&$xt(t,function(o,a){if(i||(i=new SS),B_(o))YTt(e,t,a,n,BNe,r,i);else{var s=r?r(nz(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),J9(e,a,s)}},FNe)}function UNe(e){return e}function qTt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vse=Math.max;function KTt(e,t,n){return t=vse(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=vse(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),qTt(e,this,s)}}function QTt(e){return function(){return e}}var XTt=HA?function(e,t){return HA(e,"toString",{configurable:!0,enumerable:!1,value:QTt(t),writable:!0})}:UNe,ZTt=800,JTt=16,eRt=Date.now;function tRt(e){var t=0,n=0;return function(){var r=eRt(),i=JTt-(r-n);if(n=r,i>0){if(++t>=ZTt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nRt=tRt(XTt);function rRt(e,t){return nRt(KTt(e,t,UNe),e+"")}function iRt(e,t,n){if(!B_(n))return!1;var r=typeof t;return(r=="number"?fK(n)&&$Ne(t,n.length):r=="string"&&t in n)?bk(n[t],e):!1}function oRt(e){return rRt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&iRt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var aRt=oRt(function(e,t,n){BNe(e,t,n)});function sRt(e){return qt(e)!=="object"?!1:e===null?!0:!(de.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var lRt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return n_(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||qt(t)!=="object"||n_(t)||t instanceof Blob)return t;var o=Array.isArray(t)?[]:{},a=function s(l,c){var u=Array.isArray(l),d=u?[]:{};return l==null||l===void 0?d:(Object.keys(l).forEach(function(f){var p=function b(S,C){return Array.isArray(S)&&S.forEach(function(E,w){if(E){var x=C==null?void 0:C[w];typeof E=="function"&&(C[w]=E(C,f,l)),qt(E)==="object"&&!Array.isArray(E)&&Object.keys(E).forEach(function(T){var R=x==null?void 0:x[T];if(typeof E[T]=="function"&&R){var N=E[T](x[T],f,l);x[T]=qt(N)==="object"?N[T]:N}else qt(E[T])==="object"&&Array.isArray(E[T])&&R&&b(E[T],R)}),qt(E)==="object"&&Array.isArray(E)&&x&&b(E,x)}}),f},h=c?[c,f].flat(1):[f].flat(1),g=l[f],v=ia(i,h),y=function(){var S,C,E=!1;if(typeof v=="function"){C=v==null?void 0:v(g,f,l);var w=qt(C);w!=="object"&&w!=="undefined"?(S=f,E=!0):S=C}else S=p(v,g);if(Array.isArray(S)){d=jo(d,S,g);return}qt(S)==="object"&&!Array.isArray(o)?o=aRt(o,S):qt(S)==="object"&&Array.isArray(o)?d=q(q({},d),S):(S!==null||S!==void 0)&&(d=jo(d,[S],E?C:g))};if(v&&typeof v=="function"&&y(),!(typeof window>"u")){if(sRt(g)){var _=s(g,h);if(Object.keys(_).length<1)return;d=jo(d,[f],_);return}y()}}),r?d:l)};return o=Array.isArray(t)&&Array.isArray(o)?at(a(t)):ENe({},a(t),o),o},ic=function(t){return t===void 0?{}:Vx(bp,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function xy(e){var t=typeof window>"u",n=m.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Oe(n,2),i=r[0],o=r[1];return m.useLayoutEffect(function(){if(!t){var a=window.matchMedia(e),s=function(c){return o(c.matches)};return a.addListener(s),function(){return a.removeListener(s)}}},[e]),i}var Mm={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},cRt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Mm).find(function(r){var i=Mm[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},uRt=function(){var t=xy(Mm.md.matchMedia),n=xy(Mm.lg.matchMedia),r=xy(Mm.xxl.matchMedia),i=xy(Mm.xl.matchMedia),o=xy(Mm.sm.matchMedia),a=xy(Mm.xs.matchMedia),s=m.useState(cRt()),l=Oe(s,2),c=l[0],u=l[1];return m.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(o){u("sm");return}if(a){u("xs");return}u("md")},[t,n,r,i,o,a]),c},e1=function(){return e1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},e1.apply(this,arguments)};function dRt(e){var t,n=(typeof window<"u"?window:{}).URL,r=new n((t=window==null?void 0:window.location)===null||t===void 0?void 0:t.href);return Object.keys(e).forEach(function(i){var o=e[i];o!=null?Array.isArray(o)?(r.searchParams.delete(i),o.forEach(function(a){r.searchParams.append(i,a)})):o instanceof Date?Number.isNaN(o.getTime())||r.searchParams.set(i,o.toISOString()):typeof o=="object"?r.searchParams.set(i,JSON.stringify(o)):r.searchParams.set(i,o):r.searchParams.delete(i)}),r}function fRt(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={disabled:!1});var r=m.useState(),i=r[1],o=typeof window<"u"&&((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.search),a=m.useMemo(function(){return t.disabled?{}:new URLSearchParams(o||{})},[t.disabled,o]),s=m.useMemo(function(){if(t.disabled)return{};if(typeof window>"u"||!window.URL)return{};var u=[];a.forEach(function(f,p){u.push({key:p,value:f})}),u=u.reduce(function(f,p){return(f[p.key]=f[p.key]||[]).push(p),f},{}),u=Object.keys(u).map(function(f){var p=u[f];return p.length===1?[f,p[0].value]:[f,p.map(function(h){var g=h.value;return g})]});var d=e1({},e);return u.forEach(function(f){var p=f[0],h=f[1];d[p]=mRt(p,h,{},e)}),d},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var d=dRt(u);window.location.search!==d.search&&window.history.replaceState({},"",d.toString()),a.toString()!==d.searchParams.toString()&&i({})}}m.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(e1(e1({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return m.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var pRt={true:!0,false:!1};function mRt(e,t,n,r){if(!n)return t;var i=n[e],o=t===void 0?r[e]:t;return i===Number?Number(o):i===Boolean||t==="true"||t==="false"?pRt[o]:Array.isArray(i)?i.find(function(a){return a==o})||r[e]:o}var gd=de.createContext({}),hRt=["children","Wrapper"],gRt=["children","Wrapper"],jNe=m.createContext({grid:!1,colProps:void 0,rowProps:void 0}),vRt=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=It(a,hRt);return n?M.jsx(Oq,q(q(q({gutter:8},r),c),{},{children:s})):l?M.jsx(l,{children:s}):s},ColWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=It(a,gRt),u=m.useMemo(function(){var d=q(q({},i),c);return typeof d.span>"u"&&typeof d.xs>"u"&&(d.xs=24),d},[c]);return n?M.jsx(sw,q(q({},u),{},{children:s})):l?M.jsx(l,{children:s}):s}}},pK=function(t){var n=m.useMemo(function(){return qt(t)==="object"?t:{grid:t}},[t]),r=m.useContext(jNe),i=r.grid,o=r.colProps;return m.useMemo(function(){return vRt({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||o,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([o,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},_Rt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],yRt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],_se={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},bRt=["switch","radioButton","radio","rate"];function wk(e,t){e.displayName="ProFormComponent";var n=function(o){var a=q(q({},o==null?void 0:o.filedConfig),t),s=a.valueType,l=a.customLightMode,c=a.lightFilterLabelFormatter,u=a.valuePropName,d=u===void 0?"value":u,f=a.ignoreWidth,p=a.defaultProps,h=It(a,_Rt),g=q(q({},p),o),v=g.label,y=g.tooltip,_=g.placeholder,b=g.width,S=g.bordered,C=g.messageVariables,E=g.ignoreFormItem,w=g.transform,x=g.convertValue,T=g.readonly,R=g.allowClear;g.colSize;var N=g.getFormItemProps,I=g.getFieldProps;g.filedConfig;var P=g.cacheForSwr,D=g.proFieldProps,F=It(g,yRt),L=s||F.valueType,B=m.useMemo(function(){return f||bRt.includes(L)},[f,L]),U=m.useState(),G=Oe(U,2),V=G[1],W=m.useState(),$=Oe(W,2),H=$[0],K=$[1],re=de.useContext(gd),Q=tl(function(){return{formItemProps:N==null?void 0:N(),fieldProps:I==null?void 0:I()}},[I,N,F.dependenciesValues,H]),A=tl(function(){var be=q(q(q(q({},E?$c({value:F.value}):{}),{},{placeholder:_,disabled:o.disabled},re.fieldProps),Q.fieldProps),F.fieldProps);return be.style=$c(be==null?void 0:be.style),be},[E,F.value,F.fieldProps,_,o.disabled,re.fieldProps,Q.fieldProps]),k=xwt(F),Z=tl(function(){return q(q(q(q({},re.formItemProps),k),Q.formItemProps),F.formItemProps)},[Q.formItemProps,re.formItemProps,F.formItemProps,k]),ne=tl(function(){return q(q({messageVariables:C},h),Z)},[h,Z,C]);FM(!F.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var oe=m.useContext(xh),ae=oe.prefixName,ue=tl(function(){var be,Ee=ne==null?void 0:ne.name;Array.isArray(Ee)&&(Ee=Ee.join("_")),Array.isArray(ae)&&Ee&&(Ee="".concat(ae.join("."),".").concat(Ee));var Me=Ee&&"form-".concat((be=re.formKey)!==null&&be!==void 0?be:"","-field-").concat(Ee);return Me},[ose(ne==null?void 0:ne.name),ae,re.formKey]),fe=Ku(function(){var be;N||I?K([]):F.renderFormItem&&V([]);for(var Ee=arguments.length,Me=new Array(Ee),X=0;X<Ee;X++)Me[X]=arguments[X];A==null||(be=A.onChange)===null||be===void 0||be.call.apply(be,[A].concat(Me))}),se=tl(function(){var be=q({width:b&&!_se[b]?b:re.grid?"100%":void 0},A==null?void 0:A.style);return B&&Reflect.deleteProperty(be,"width"),$c(be)},[ose(A==null?void 0:A.style),re.grid,B,b]),pe=tl(function(){var be=b&&_se[b];return Re(A==null?void 0:A.className,ie({"pro-field":be},"pro-field-".concat(b),be&&!B))||void 0},[b,A==null?void 0:A.className,B]),_e=tl(function(){return $c(q(q({},re.proFieldProps),{},{mode:F==null?void 0:F.mode,readonly:T,params:F.params,proFieldKey:ue,cacheForSwr:P},D))},[re.proFieldProps,F==null?void 0:F.mode,F.params,T,ue,P,D]),Te=tl(function(){return q(q({onChange:fe,allowClear:R},A),{},{style:se,className:pe})},[R,pe,fe,A,se]),xe=tl(function(){return M.jsx(e,q(q({},F),{},{fieldProps:Te,proFieldProps:_e,ref:o==null?void 0:o.fieldRef}),o.proFormFieldKey||o.name)},[_e,Te,F]),ge=tl(function(){var be,Ee,Me,X;return M.jsx(QMe,q(q({label:v&&(D==null?void 0:D.light)!==!0?v:void 0,tooltip:(D==null?void 0:D.light)!==!0&&y,valuePropName:d},ne),{},{ignoreFormItem:E,transform:w,dataFormat:A==null?void 0:A.format,valueType:L,messageVariables:q({label:v||""},ne==null?void 0:ne.messageVariables),convertValue:x,lightProps:$c(q(q(q({},A),{},{valueType:L,bordered:S,allowClear:(Ee=xe==null||(Me=xe.props)===null||Me===void 0?void 0:Me.allowClear)!==null&&Ee!==void 0?Ee:R,light:D==null?void 0:D.light,label:v,customLightMode:l,labelFormatter:c,valuePropName:d,footerRender:xe==null||(X=xe.props)===null||X===void 0?void 0:X.footerRender},F.lightProps),ne.lightProps)),children:xe}),o.proFormFieldKey||((be=ne.name)===null||be===void 0?void 0:be.toString()))},[v,D==null?void 0:D.light,y,d,o.proFormFieldKey,ne,E,w,A,L,x,S,xe,R,l,c,F.lightProps]),Ce=pK(F),ye=Ce.ColWrapper;return M.jsx(ye,{children:ge})},r=function(o){var a=o.dependencies;return a?M.jsx(KMe,{name:a,originDependencies:o==null?void 0:o.originDependencies,children:function(l){return M.jsx(n,q({dependenciesValues:l,dependencies:a},o))}}):M.jsx(n,q({dependencies:a},o))};return r}var SRt=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],ERt=de.forwardRef(function(e,t){var n=hr.useFormInstance(),r=m.useState(e.countDown||60),i=Oe(r,2),o=i[0],a=i[1],s=m.useState(!1),l=Oe(s,2),c=l[0],u=l[1],d=m.useState(),f=Oe(d,2),p=f[0],h=f[1];e.rules,e.name;var g=e.phoneName,v=e.fieldProps,y=e.onTiming,_=e.captchaTextRender,b=_===void 0?function(w,x){return w?"".concat(x," 秒后重新获取"):"获取验证码"}:_,S=e.captchaProps,C=It(e,SRt),E=function(){var w=Oo(yr().mark(function x(T){return yr().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,h(!0),N.next=4,C.onGetCaptcha(T);case 4:h(!1),u(!0),N.next=13;break;case 8:N.prev=8,N.t0=N.catch(0),u(!1),h(!1),console.log(N.t0);case 13:case"end":return N.stop()}},x,null,[[0,8]])}));return function(T){return w.apply(this,arguments)}}();return m.useImperativeHandle(t,function(){return{startTiming:function(){return u(!0)},endTiming:function(){return u(!1)}}}),m.useEffect(function(){var w=0,x=e.countDown;return c&&(w=window.setInterval(function(){a(function(T){return T<=1?(u(!1),clearInterval(w),x||60):T-1})},1e3)),function(){return clearInterval(w)}},[c]),m.useEffect(function(){y&&y(o)},[o,y]),M.jsxs("div",{style:q(q({},v==null?void 0:v.style),{},{display:"flex",alignItems:"center"}),ref:t,children:[M.jsx(Hr,q(q({},v),{},{style:q({flex:1,transition:"width .3s",marginRight:8},v==null?void 0:v.style)})),M.jsx(On,q(q({style:{display:"block"},disabled:c,loading:p},S),{},{onClick:Oo(yr().mark(function w(){var x;return yr().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(R.prev=0,!g){R.next=9;break}return R.next=4,n.validateFields([g].flat(1));case 4:return x=n.getFieldValue([g].flat(1)),R.next=7,E(x);case 7:R.next=11;break;case 9:return R.next=11,E("");case 11:R.next=16;break;case 13:R.prev=13,R.t0=R.catch(0),console.log(R.t0);case 16:case"end":return R.stop()}},w,null,[[0,13]])})),children:b(c,o)}))]})}),Yx=wk(ERt),CRt=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength","fetchDataOnSearch","fetchData"],yse=function(t,n){return qt(n)!=="object"?t[n]||n:t[n==null?void 0:n.value]||n.label},wRt=function(t,n){var r=t.label,i=t.prefixCls,o=t.onChange,a=t.value,s=t.mode;t.children,t.defaultValue;var l=t.size,c=t.showSearch,u=t.disabled,d=t.style,f=t.className,p=t.bordered,h=t.options,g=t.onSearch,v=t.allowClear,y=t.labelInValue,_=t.fieldNames,b=t.lightLabel,S=t.labelTrigger,C=t.optionFilterProp,E=t.optionLabelProp,w=E===void 0?"":E,x=t.valueMaxLength,T=x===void 0?41:x,R=t.fetchDataOnSearch,N=R===void 0?!1:R,I=t.fetchData,P=It(t,CRt),D=t.placeholder,F=D===void 0?r:D,L=_||{},B=L.label,U=B===void 0?"label":B,G=L.value,V=G===void 0?"value":G,W=m.useContext(Pn.ConfigContext),$=W.getPrefixCls,H=$("pro-field-select-light-select"),K=m.useState(!1),re=Oe(K,2),Q=re[0],A=re[1],k=m.useState(""),Z=Oe(k,2),ne=Z[0],oe=Z[1],ae=Di("LightSelect",function(Te){return ie({},".".concat(H),ie(ie({},"".concat(Te.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(H,"-searchable"),ie({},"".concat(Te.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),ue=ae.wrapSSR,fe=ae.hashId,se=m.useMemo(function(){var Te={};return h==null||h.forEach(function(xe){var ge=xe[w]||xe[U],Ce=xe[V];Te[Ce]=ge||Ce}),Te},[U,h,V,w]),pe=m.useMemo(function(){return Reflect.has(P,"open")?P==null?void 0:P.open:Q},[Q,P]),_e=Array.isArray(a)?a.map(function(Te){return yse(se,Te)}):yse(se,a);return ue(M.jsxs("div",{className:Re(H,fe,ie({},"".concat(H,"-searchable"),c),"".concat(H,"-container-").concat(P.placement||"bottomLeft"),f),style:d,onClick:function(xe){var ge;if(!u){var Ce=b==null||(ge=b.current)===null||ge===void 0||(ge=ge.labelRef)===null||ge===void 0||(ge=ge.current)===null||ge===void 0?void 0:ge.contains(xe.target);Ce&&A(!Q)}},children:[M.jsx(md,q(q(q({},P),{},{allowClear:v,value:a,mode:s,labelInValue:y,size:l,disabled:u,onChange:function(xe,ge){o==null||o(xe,ge),s!=="multiple"&&A(!1)}},ic(p)),{},{showSearch:c,onSearch:c?function(Te){N&&I&&I(Te),g==null||g(Te)}:void 0,style:d,dropdownRender:function(xe){return M.jsxs("div",{ref:n,children:[c&&M.jsx("div",{style:{margin:"4px 8px"},children:M.jsx(Hr,{value:ne,allowClear:!!v,onChange:function(Ce){oe(Ce.target.value),N&&I&&I(Ce.target.value),g==null||g(Ce.target.value)},onKeyDown:function(Ce){if(Ce.key==="Backspace"){Ce.stopPropagation();return}(Ce.key==="ArrowUp"||Ce.key==="ArrowDown")&&Ce.preventDefault()},style:{width:"100%"},prefix:M.jsx(JY,{})})}),xe]})},open:pe,onDropdownVisibleChange:function(xe){var ge;xe||oe(""),S||A(xe),P==null||(ge=P.onDropdownVisibleChange)===null||ge===void 0||ge.call(P,xe)},prefixCls:i,options:g||!ne?h:h==null?void 0:h.filter(function(Te){var xe,ge;return C?_a(Te[C]).join("").toLowerCase().includes(ne):((xe=String(Te[U]))===null||xe===void 0||(xe=xe.toLowerCase())===null||xe===void 0?void 0:xe.includes(ne==null?void 0:ne.toLowerCase()))||((ge=Te[V])===null||ge===void 0||(ge=ge.toString())===null||ge===void 0||(ge=ge.toLowerCase())===null||ge===void 0?void 0:ge.includes(ne==null?void 0:ne.toLowerCase()))})})),M.jsx(zp,{ellipsis:!0,label:r,placeholder:F,disabled:u,bordered:p,allowClear:!!v,value:_e||(a==null?void 0:a.label)||a,onClear:function(){o==null||o(void 0,void 0)},ref:b,valueMaxLength:T})]}))};const xRt=de.forwardRef(wRt);var TRt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],RRt=["className","optionType"],ORt=function(t,n){var r=t.optionItemRender,i=t.mode,o=t.onSearch,a=t.onFocus,s=t.onChange,l=t.autoClearSearchValue,c=l===void 0?!0:l,u=t.searchOnFocus,d=u===void 0?!1:u,f=t.resetAfterSelect,p=f===void 0?!1:f,h=t.fetchDataOnSearch,g=h===void 0?!0:h,v=t.optionFilterProp,y=v===void 0?"label":v,_=t.optionLabelProp,b=_===void 0?"label":_,S=t.className,C=t.disabled,E=t.options,w=t.fetchData,x=t.resetData,T=t.prefixCls,R=t.onClear,N=t.searchValue,I=t.showSearch,P=t.fieldNames,D=t.defaultSearchValue,F=t.preserveOriginalLabel,L=F===void 0?!1:F,B=It(t,TRt),U=P||{},G=U.label,V=G===void 0?"label":G,W=U.value,$=W===void 0?"value":W,H=U.options,K=H===void 0?"options":H,re=m.useState(N??D),Q=Oe(re,2),A=Q[0],k=Q[1],Z=m.useRef();m.useImperativeHandle(n,function(){return Z.current}),m.useEffect(function(){if(B.autoFocus){var pe;Z==null||(pe=Z.current)===null||pe===void 0||pe.focus()}},[B.autoFocus]),m.useEffect(function(){k(N)},[N]);var ne=m.useContext(Pn.ConfigContext),oe=ne.getPrefixCls,ae=oe("pro-filed-search-select",T),ue=Re(ae,S,ie({},"".concat(ae,"-disabled"),C)),fe=function(_e,Te){return Array.isArray(_e)&&Array.isArray(Te)&&_e.length>0?_e.map(function(xe,ge){var Ce=Te==null?void 0:Te[ge],ye=(Ce==null?void 0:Ce["data-item"])||{};return q(q(q({},ye),xe),{},{label:L?ye.label:xe.label})}):[]},se=function pe(_e){return _e.map(function(Te,xe){var ge,Ce=Te,ye=Ce.className,be=Ce.optionType,Ee=It(Ce,RRt),Me=Te[V],X=Te[$],Y=(ge=Te[K])!==null&&ge!==void 0?ge:[];return be==="optGroup"||Te.options?q(q({label:Me},Ee),{},{data_title:Me,title:Me,key:X??"".concat(Me==null?void 0:Me.toString(),"-").concat(xe,"-").concat(UA()),children:pe(Y)}):q(q({title:Me},Ee),{},{data_title:Me,value:X??xe,key:X??"".concat(Me==null?void 0:Me.toString(),"-").concat(xe,"-").concat(UA()),"data-item":Te,className:"".concat(ae,"-option ").concat(ye||"").trim(),label:(r==null?void 0:r(Te))||Me})})};return M.jsx(md,q(q({ref:Z,className:ue,allowClear:!0,autoClearSearchValue:c,disabled:C,mode:i,showSearch:I,searchValue:A,optionFilterProp:y,optionLabelProp:b,onClear:function(){R==null||R(),w(void 0),I&&k(void 0)}},B),{},{filterOption:B.filterOption==!1?!1:function(pe,_e){var Te,xe,ge;return B.filterOption&&typeof B.filterOption=="function"?B.filterOption(pe,q(q({},_e),{},{label:_e==null?void 0:_e.data_title})):!!(_e!=null&&(Te=_e.data_title)!==null&&Te!==void 0&&Te.toString().toLowerCase().includes(pe.toLowerCase())||_e!=null&&(xe=_e.label)!==null&&xe!==void 0&&xe.toString().toLowerCase().includes(pe.toLowerCase())||_e!=null&&(ge=_e.value)!==null&&ge!==void 0&&ge.toString().toLowerCase().includes(pe.toLowerCase()))},onSearch:I?function(pe){g&&w(pe),o==null||o(pe),k(pe)}:void 0,onChange:function(_e,Te){I&&c&&(w(void 0),o==null||o(""),k(void 0));for(var xe=arguments.length,ge=new Array(xe>2?xe-2:0),Ce=2;Ce<xe;Ce++)ge[Ce-2]=arguments[Ce];if(!t.labelInValue){s==null||s.apply(void 0,[_e,Te].concat(ge));return}if(i!=="multiple"&&!Array.isArray(Te)){var ye=Te&&Te["data-item"];if(!_e||!ye){var be=_e&&q(q({},_e),{},{label:L?ye==null?void 0:ye.label:_e.label});s==null||s.apply(void 0,[be,Te].concat(ge))}else s==null||s.apply(void 0,[q(q(q({},_e),ye),{},{label:L?ye.label:_e.label}),Te].concat(ge));return}var Ee=fe(_e,Te);s==null||s.apply(void 0,[Ee,Te].concat(ge)),p&&x()},onFocus:function(_e){d&&w(A),a==null||a(_e)},options:se(E||[])}))};const IRt=de.forwardRef(ORt);var NRt=["value","text"],MRt=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],ARt=function(t){for(var n=t.label,r=t.words,i=m.useContext(Pn.ConfigContext),o=i.getPrefixCls,a=o("pro-select-item-option-content-light"),s=o("pro-select-item-option-content"),l=Di("Highlight",function(v){return ie(ie({},".".concat(a),{color:v.colorPrimary}),".".concat(s),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),c=l.wrapSSR,u=new RegExp(r.map(function(v){return v.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),d=n,f=[];d.length;){var p=u.exec(d);if(!p){f.push(d);break}var h=p.index,g=p[0].length+h;f.push(d.slice(0,h),de.createElement("span",{className:a},d.slice(h,g))),d=d.slice(g)}return c(de.createElement.apply(de,["div",{title:n,className:s}].concat(f)))};function rz(e,t){var n,r;if(!t||e!=null&&(n=e.label)!==null&&n!==void 0&&n.toString().toLowerCase().includes(t.toLowerCase())||e!=null&&(r=e.value)!==null&&r!==void 0&&r.toString().toLowerCase().includes(t.toLowerCase()))return!0;if(e.children||e.options){var i=[].concat(at(e.children||[]),[e.options||[]]).find(function(o){return rz(o,t)});if(i)return!0}return!1}var PRt=function(t){var n=[],r=Vp(t);return r.forEach(function(i,o){var a=r.get(o)||r.get("".concat(o));if(a){if(qt(a)==="object"&&a!==null&&a!==void 0&&a.text){n.push({text:a==null?void 0:a.text,value:o,label:a==null?void 0:a.text,disabled:a.disabled});return}n.push({text:a,value:o})}}),n},ES=function(t){var n,r,i,o,a=t.cacheForSwr,s=t.fieldProps,l=m.useState(t.defaultKeyWords),c=Oe(l,2),u=c[0],d=c[1],f=m.useState(function(){return t.proFieldKey?t.proFieldKey.toString():t.request?UA():"no-fetch"}),p=Oe(f,1),h=p[0],g=m.useRef(h),v=Ku(function(I){return PRt(Vp(I)).map(function(P){var D=P.value,F=P.text,L=It(P,NRt);return q({label:F,value:D,key:D},L)})}),y=tl(function(){if(s){var I=(s==null?void 0:s.options)||(s==null?void 0:s.treeData);if(I){var P=s.fieldNames||{},D=P.children,F=P.label,L=P.value,B=function U(G,V){if(G!=null&&G.length)for(var W=G.length,$=0;$<W;){var H=G[$++];(H[D]||H[F]||H[L])&&(H[V]=H[V==="children"?D:V==="label"?F:L],U(H[D],V))}};return D&&B(I,"children"),F&&B(I,"label"),L&&B(I,"value"),I}}},[s]),_=Fn(function(){return t.valueEnum?v(t.valueEnum):[]},{value:y}),b=Oe(_,2),S=b[0],C=b[1];vwt(function(){var I,P;!t.valueEnum||(I=t.fieldProps)!==null&&I!==void 0&&I.options||(P=t.fieldProps)!==null&&P!==void 0&&P.treeData||C(v(t.valueEnum))},[t.valueEnum]);var E=hwt([g.current,t.params,u],(n=(r=t.debounceTime)!==null&&r!==void 0?r:t==null||(i=t.fieldProps)===null||i===void 0?void 0:i.debounceTime)!==null&&n!==void 0?n:0,[t.params,u]),w=oK(function(){return t.request?E:null},function(I){var P=Oe(I,3),D=P[1],F=P[2];return t.request(q(q({},D),{},{keyWords:F}),t)},{revalidateIfStale:!a,revalidateOnReconnect:a,shouldRetryOnError:!1,revalidateOnFocus:!1}),x=w.data,T=w.mutate,R=w.isValidating,N=m.useMemo(function(){var I,P,D=S==null?void 0:S.map(function(F){if(typeof F=="string")return{label:F,value:F};if(F.children||F.options){var L=[].concat(at(F.children||[]),at(F.options||[])).filter(function(B){return rz(B,u)});return q(q({},F),{},{children:L,options:L})}return F});return((I=t.fieldProps)===null||I===void 0?void 0:I.filterOption)===!0||((P=t.fieldProps)===null||P===void 0?void 0:P.filterOption)===void 0?D==null?void 0:D.filter(function(F){return F?u?rz(F,u):!0:!1}):D},[S,u,(o=t.fieldProps)===null||o===void 0?void 0:o.filterOption]);return[R,t.request?x:N,function(I){d(I)},function(){d(void 0),T([],!1)}]},DRt=function(t,n){var r,i=t.mode,o=t.valueEnum,a=t.render,s=t.renderFormItem;t.request;var l=t.fieldProps;t.plain,t.children;var c=t.light;t.proFieldKey,t.params;var u=t.label,d=t.bordered,f=t.id,p=t.lightLabel,h=t.labelTrigger,g=It(t,MRt),v=m.useRef(),y=yo(),_=m.useRef(""),b=l.fieldNames;m.useEffect(function(){_.current=l==null?void 0:l.searchValue},[l==null?void 0:l.searchValue]);var S=ES(t),C=Oe(S,4),E=C[0],w=C[1],x=C[2],T=C[3],R=(Pn==null||(r=Pn.useConfig)===null||r===void 0?void 0:r.call(Pn))||{componentSize:"middle"},N=R.componentSize;m.useImperativeHandle(n,function(){return q(q({},v.current||{}),{},{fetchData:function(G){return x(G)}})},[x]);var I=m.useMemo(function(){if(i==="read"){var U=b||{},G=U.label,V=G===void 0?"label":G,W=U.value,$=W===void 0?"value":W,H=U.options,K=H===void 0?"options":H,re=new Map,Q=function A(k){if(!(k!=null&&k.length))return re;for(var Z=k.length,ne=0;ne<Z;){var oe=k[ne++];re.set(oe[$],oe[V]),A(oe[K])}return re};return Q(w)}},[b,i,w]);if(i==="read"){var P=M.jsx(M.Fragment,{children:_S(g.text,Vp(o||I))});if(a){var D;return(D=a(P,q({mode:i},l),P))!==null&&D!==void 0?D:null}return P}if(i==="edit"||i==="update"){var F=function(){return c?M.jsx(xRt,q(q({},ic(d)),{},{id:f,loading:E,ref:v,allowClear:!0,size:N,options:w,label:u,placeholder:y.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:p,labelTrigger:h,fetchData:x},l)):M.jsx(IRt,q(q(q({className:g.className,style:q({minWidth:100},g.style)},ic(d)),{},{id:f,loading:E,ref:v,allowClear:!0,defaultSearchValue:t.defaultKeyWords,notFoundContent:E?M.jsx(Bp,{size:"small"}):l==null?void 0:l.notFoundContent,fetchData:function(V){_.current=V??"",x(V)},resetData:T,preserveOriginalLabel:!0,optionItemRender:function(V){return typeof V.label=="string"&&_.current?M.jsx(ARt,{label:V.label,words:[_.current]}):V.label},placeholder:y.getMessage("tableForm.selectPlaceholder","请选择"),label:u},l),{},{options:w}),"SearchSelect")},L=F();if(s){var B;return(B=s(g.text,q(q({mode:i},l),{},{options:w,loading:E}),L))!==null&&B!==void 0?B:null}return L}return null};const kRt=de.forwardRef(DRt);var LRt=["radioType","renderFormItem","mode","render","label","light"],$Rt=function(t,n){var r;t.radioType;var i=t.renderFormItem,o=t.mode,a=t.render,s=t.label,l=t.light,c=It(t,LRt),u=m.useContext(Pn.ConfigContext),d=u.getPrefixCls,f=d("pro-field-cascader"),p=ES(c),h=Oe(p,3),g=h[0],v=h[1],y=h[2],_=yo(),b=m.useRef(),S=m.useState(!1),C=Oe(S,2),E=C[0],w=C[1];m.useImperativeHandle(n,function(){return q(q({},b.current||{}),{},{fetchData:function(V){return y(V)}})},[y]);var x=m.useMemo(function(){var G;if(o==="read"){var V=((G=c.fieldProps)===null||G===void 0?void 0:G.fieldNames)||{},W=V.value,$=W===void 0?"value":W,H=V.label,K=H===void 0?"label":H,re=V.children,Q=re===void 0?"children":re,A=new Map,k=function Z(ne){if(!(ne!=null&&ne.length))return A;for(var oe=ne.length,ae=0;ae<oe;){var ue=ne[ae++];A.set(ue[$],ue[K]),Z(ue[Q])}return A};return k(v)}},[o,v,(r=c.fieldProps)===null||r===void 0?void 0:r.fieldNames]);if(o==="read"){var T=M.jsx(M.Fragment,{children:_S(c.text,Vp(c.valueEnum||x))});if(a){var R;return(R=a(c.text,q({mode:o},c.fieldProps),T))!==null&&R!==void 0?R:null}return T}if(o==="edit"){var N,I,P=M.jsx(pS,q(q(q({},ic(!l)),{},{ref:b,open:E,suffixIcon:g?M.jsx(rf,{}):void 0,placeholder:_.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((N=c.fieldProps)===null||N===void 0?void 0:N.allowClear)!==!1},c.fieldProps),{},{onDropdownVisibleChange:function(V){var W,$;c==null||(W=c.fieldProps)===null||W===void 0||($=W.onDropdownVisibleChange)===null||$===void 0||$.call(W,V),w(V)},className:Re((I=c.fieldProps)===null||I===void 0?void 0:I.className,f),options:v}));if(i){var D;P=(D=i(c.text,q(q({mode:o},c.fieldProps),{},{options:v,loading:g}),P))!==null&&D!==void 0?D:null}if(l){var F=c.fieldProps,L=F.disabled,B=F.value,U=!!B&&(B==null?void 0:B.length)!==0;return M.jsx(zp,{label:s,disabled:L,bordered:c.bordered,value:U||E?P:null,style:U?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:U||E?!1:void 0,onClick:function(){var V,W;w(!0),c==null||(V=c.fieldProps)===null||V===void 0||(W=V.onDropdownVisibleChange)===null||W===void 0||W.call(V,!0)}})}return P}return null};const FRt=de.forwardRef($Rt);var BRt=["layout","renderFormItem","mode","render"],URt=["fieldNames"],jRt=function(t,n){var r,i,o=t.layout,a=o===void 0?"horizontal":o,s=t.renderFormItem,l=t.mode,c=t.render,u=It(t,BRt),d=m.useContext(Pn.ConfigContext),f=d.getPrefixCls,p=f("pro-field-checkbox"),h=(r=hr.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r),g=ES(u),v=Oe(g,3),y=v[0],_=v[1],b=v[2],S=Di("Checkbox",function(U){return ie({},".".concat(p),{"&-error":{span:{color:U.colorError}},"&-warning":{span:{color:U.colorWarning}},"&-vertical":ie(ie(ie({},"&".concat(U.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(U.antCls,"-checkbox-wrapper+").concat(U.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(U.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),C=S.wrapSSR,E=S.hashId,w=dN==null?void 0:dN(),x=w.token,T=m.useRef();if(m.useImperativeHandle(n,function(){return q(q({},T.current||{}),{},{fetchData:function(G){return b(G)}})},[b]),y)return M.jsx(Bp,{size:"small"});if(l==="read"){var R=_!=null&&_.length?_==null?void 0:_.reduce(function(U,G){var V;return q(q({},U),{},ie({},(V=G.value)!==null&&V!==void 0?V:"",G.label))},{}):void 0,N=_S(u.text,Vp(u.valueEnum||R));if(c){var I;return(I=c(u.text,q({mode:l},u.fieldProps),M.jsx(M.Fragment,{children:N})))!==null&&I!==void 0?I:null}return M.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:x.marginSM},children:N})}if(l==="edit"){var P,D=u.fieldProps||{};D.fieldNames;var F=It(D,URt),L=C(M.jsx(P_.Group,q(q({},F),{},{className:Re((P=u.fieldProps)===null||P===void 0?void 0:P.className,E,"".concat(p,"-").concat(a),ie(ie({},"".concat(p,"-error"),(h==null?void 0:h.status)==="error"),"".concat(p,"-warning"),(h==null?void 0:h.status)==="warning")),options:_})));if(s){var B;return(B=s(u.text,q(q({mode:l},u.fieldProps),{},{options:_,loading:y}),L))!==null&&B!==void 0?B:null}return L}return null};const HRt=de.forwardRef(jRt);var zRt=function(t,n){if(typeof t!="string")return t;try{if(n==="json")return JSON.stringify(JSON.parse(t),null,2)}catch{}return t},VRt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.language,s=a===void 0?"text":a,l=t.renderFormItem,c=t.plain,u=t.fieldProps,d=zRt(r,s),f=af.useToken(),p=f.token;if(i==="read"){var h=M.jsx("pre",q(q({ref:n},u),{},{style:q({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:p.colorTextSecondary,fontFamily:p.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},u.style),children:M.jsx("code",{children:d})}));return o?o(d,q(q({mode:i},u),{},{ref:n}),h):h}if(i==="edit"||i==="update"){u.value=d;var g=M.jsx(Hr.TextArea,q(q({rows:5},u),{},{ref:n}));if(c&&(g=M.jsx(Hr,q(q({},u),{},{ref:n}))),l){var v;return(v=l(d,q(q({mode:i},u),{},{ref:n}),g))!==null&&v!==void 0?v:null}return g}return null};const bse=de.forwardRef(VRt);var Fc={},qx={},GRt=typeof Gi=="object"&&Gi&&Gi.Object===Object&&Gi,HNe=GRt,WRt=HNe,YRt=typeof self=="object"&&self&&self.Object===Object&&self,qRt=WRt||YRt||Function("return this")(),vd=qRt,KRt=vd,QRt=KRt.Symbol,Kx=QRt,Sse=Kx,zNe=Object.prototype,XRt=zNe.hasOwnProperty,ZRt=zNe.toString,kE=Sse?Sse.toStringTag:void 0;function JRt(e){var t=XRt.call(e,kE),n=e[kE];try{e[kE]=void 0;var r=!0}catch{}var i=ZRt.call(e);return r&&(t?e[kE]=n:delete e[kE]),i}var eOt=JRt,tOt=Object.prototype,nOt=tOt.toString;function rOt(e){return nOt.call(e)}var iOt=rOt,Ese=Kx,oOt=eOt,aOt=iOt,sOt="[object Null]",lOt="[object Undefined]",Cse=Ese?Ese.toStringTag:void 0;function cOt(e){return e==null?e===void 0?lOt:sOt:Cse&&Cse in Object(e)?oOt(e):aOt(e)}var U_=cOt,uOt=Array.isArray,dc=uOt;function dOt(e){return e!=null&&typeof e=="object"}var vf=dOt,fOt=U_,pOt=dc,mOt=vf,hOt="[object String]";function gOt(e){return typeof e=="string"||!pOt(e)&&mOt(e)&&fOt(e)==hOt}var vOt=gOt;function _Ot(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var yOt=_Ot,bOt=yOt,SOt=bOt(),VNe=SOt;function EOt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var COt=EOt,wOt=U_,xOt=vf,TOt="[object Arguments]";function ROt(e){return xOt(e)&&wOt(e)==TOt}var OOt=ROt,wse=OOt,IOt=vf,GNe=Object.prototype,NOt=GNe.hasOwnProperty,MOt=GNe.propertyIsEnumerable,AOt=wse(function(){return arguments}())?wse:function(e){return IOt(e)&&NOt.call(e,"callee")&&!MOt.call(e,"callee")},mK=AOt,zA={exports:{}};function POt(){return!1}var DOt=POt;zA.exports;(function(e,t){var n=vd,r=DOt,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(zA,zA.exports);var xk=zA.exports,kOt=9007199254740991,LOt=/^(?:0|[1-9]\d*)$/;function $Ot(e,t){var n=typeof e;return t=t??kOt,!!t&&(n=="number"||n!="symbol"&&LOt.test(e))&&e>-1&&e%1==0&&e<t}var hK=$Ot,FOt=9007199254740991;function BOt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=FOt}var gK=BOt,UOt=U_,jOt=gK,HOt=vf,zOt="[object Arguments]",VOt="[object Array]",GOt="[object Boolean]",WOt="[object Date]",YOt="[object Error]",qOt="[object Function]",KOt="[object Map]",QOt="[object Number]",XOt="[object Object]",ZOt="[object RegExp]",JOt="[object Set]",eIt="[object String]",tIt="[object WeakMap]",nIt="[object ArrayBuffer]",rIt="[object DataView]",iIt="[object Float32Array]",oIt="[object Float64Array]",aIt="[object Int8Array]",sIt="[object Int16Array]",lIt="[object Int32Array]",cIt="[object Uint8Array]",uIt="[object Uint8ClampedArray]",dIt="[object Uint16Array]",fIt="[object Uint32Array]",zi={};zi[iIt]=zi[oIt]=zi[aIt]=zi[sIt]=zi[lIt]=zi[cIt]=zi[uIt]=zi[dIt]=zi[fIt]=!0;zi[zOt]=zi[VOt]=zi[nIt]=zi[GOt]=zi[rIt]=zi[WOt]=zi[YOt]=zi[qOt]=zi[KOt]=zi[QOt]=zi[XOt]=zi[ZOt]=zi[JOt]=zi[eIt]=zi[tIt]=!1;function pIt(e){return HOt(e)&&jOt(e.length)&&!!zi[UOt(e)]}var mIt=pIt;function hIt(e){return function(t){return e(t)}}var vK=hIt,VA={exports:{}};VA.exports;(function(e,t){var n=HNe,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(VA,VA.exports);var _K=VA.exports,gIt=mIt,vIt=vK,xse=_K,Tse=xse&&xse.isTypedArray,_It=Tse?vIt(Tse):gIt,yK=_It,yIt=COt,bIt=mK,SIt=dc,EIt=xk,CIt=hK,wIt=yK,xIt=Object.prototype,TIt=xIt.hasOwnProperty;function RIt(e,t){var n=SIt(e),r=!n&&bIt(e),i=!n&&!r&&EIt(e),o=!n&&!r&&!i&&wIt(e),a=n||r||i||o,s=a?yIt(e.length,String):[],l=s.length;for(var c in e)(t||TIt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||CIt(c,l)))&&s.push(c);return s}var WNe=RIt,OIt=Object.prototype;function IIt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||OIt;return e===n}var bK=IIt;function NIt(e,t){return function(n){return e(t(n))}}var YNe=NIt,MIt=YNe,AIt=MIt(Object.keys,Object),PIt=AIt,DIt=bK,kIt=PIt,LIt=Object.prototype,$It=LIt.hasOwnProperty;function FIt(e){if(!DIt(e))return kIt(e);var t=[];for(var n in Object(e))$It.call(e,n)&&n!="constructor"&&t.push(n);return t}var BIt=FIt;function UIt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var su=UIt,jIt=U_,HIt=su,zIt="[object AsyncFunction]",VIt="[object Function]",GIt="[object GeneratorFunction]",WIt="[object Proxy]";function YIt(e){if(!HIt(e))return!1;var t=jIt(e);return t==VIt||t==GIt||t==zIt||t==WIt}var SK=YIt,qIt=SK,KIt=gK;function QIt(e){return e!=null&&KIt(e.length)&&!qIt(e)}var CS=QIt,XIt=WNe,ZIt=BIt,JIt=CS;function eNt(e){return JIt(e)?XIt(e):ZIt(e)}var Qx=eNt,tNt=VNe,nNt=Qx;function rNt(e,t){return e&&tNt(e,t,nNt)}var qNe=rNt;function iNt(e){return e}var Tk=iNt,oNt=Tk;function aNt(e){return typeof e=="function"?e:oNt}var KNe=aNt,sNt=qNe,lNt=KNe;function cNt(e,t){return e&&sNt(e,lNt(t))}var EK=cNt,uNt=YNe,dNt=uNt(Object.getPrototypeOf,Object),CK=dNt,fNt=U_,pNt=CK,mNt=vf,hNt="[object Object]",gNt=Function.prototype,vNt=Object.prototype,QNe=gNt.toString,_Nt=vNt.hasOwnProperty,yNt=QNe.call(Object);function bNt(e){if(!mNt(e)||fNt(e)!=hNt)return!1;var t=pNt(e);if(t===null)return!0;var n=_Nt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&QNe.call(n)==yNt}var XNe=bNt;function SNt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ZNe=SNt;function ENt(){this.__data__=[],this.size=0}var CNt=ENt;function wNt(e,t){return e===t||e!==e&&t!==t}var Xx=wNt,xNt=Xx;function TNt(e,t){for(var n=e.length;n--;)if(xNt(e[n][0],t))return n;return-1}var Rk=TNt,RNt=Rk,ONt=Array.prototype,INt=ONt.splice;function NNt(e){var t=this.__data__,n=RNt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():INt.call(t,n,1),--this.size,!0}var MNt=NNt,ANt=Rk;function PNt(e){var t=this.__data__,n=ANt(t,e);return n<0?void 0:t[n][1]}var DNt=PNt,kNt=Rk;function LNt(e){return kNt(this.__data__,e)>-1}var $Nt=LNt,FNt=Rk;function BNt(e,t){var n=this.__data__,r=FNt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var UNt=BNt,jNt=CNt,HNt=MNt,zNt=DNt,VNt=$Nt,GNt=UNt;function wS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wS.prototype.clear=jNt;wS.prototype.delete=HNt;wS.prototype.get=zNt;wS.prototype.has=VNt;wS.prototype.set=GNt;var Ok=wS,WNt=Ok;function YNt(){this.__data__=new WNt,this.size=0}var qNt=YNt;function KNt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var QNt=KNt;function XNt(e){return this.__data__.get(e)}var ZNt=XNt;function JNt(e){return this.__data__.has(e)}var eMt=JNt,tMt=vd,nMt=tMt["__core-js_shared__"],rMt=nMt,zF=rMt,Rse=function(){var e=/[^.]+$/.exec(zF&&zF.keys&&zF.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function iMt(e){return!!Rse&&Rse in e}var oMt=iMt,aMt=Function.prototype,sMt=aMt.toString;function lMt(e){if(e!=null){try{return sMt.call(e)}catch{}try{return e+""}catch{}}return""}var JNe=lMt,cMt=SK,uMt=oMt,dMt=su,fMt=JNe,pMt=/[\\^$.*+?()[\]{}|]/g,mMt=/^\[object .+?Constructor\]$/,hMt=Function.prototype,gMt=Object.prototype,vMt=hMt.toString,_Mt=gMt.hasOwnProperty,yMt=RegExp("^"+vMt.call(_Mt).replace(pMt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bMt(e){if(!dMt(e)||uMt(e))return!1;var t=cMt(e)?yMt:mMt;return t.test(fMt(e))}var SMt=bMt;function EMt(e,t){return e==null?void 0:e[t]}var CMt=EMt,wMt=SMt,xMt=CMt;function TMt(e,t){var n=xMt(e,t);return wMt(n)?n:void 0}var j_=TMt,RMt=j_,OMt=vd,IMt=RMt(OMt,"Map"),wK=IMt,NMt=j_,MMt=NMt(Object,"create"),Ik=MMt,Ose=Ik;function AMt(){this.__data__=Ose?Ose(null):{},this.size=0}var PMt=AMt;function DMt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kMt=DMt,LMt=Ik,$Mt="__lodash_hash_undefined__",FMt=Object.prototype,BMt=FMt.hasOwnProperty;function UMt(e){var t=this.__data__;if(LMt){var n=t[e];return n===$Mt?void 0:n}return BMt.call(t,e)?t[e]:void 0}var jMt=UMt,HMt=Ik,zMt=Object.prototype,VMt=zMt.hasOwnProperty;function GMt(e){var t=this.__data__;return HMt?t[e]!==void 0:VMt.call(t,e)}var WMt=GMt,YMt=Ik,qMt="__lodash_hash_undefined__";function KMt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=YMt&&t===void 0?qMt:t,this}var QMt=KMt,XMt=PMt,ZMt=kMt,JMt=jMt,eAt=WMt,tAt=QMt;function xS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xS.prototype.clear=XMt;xS.prototype.delete=ZMt;xS.prototype.get=JMt;xS.prototype.has=eAt;xS.prototype.set=tAt;var nAt=xS,Ise=nAt,rAt=Ok,iAt=wK;function oAt(){this.size=0,this.__data__={hash:new Ise,map:new(iAt||rAt),string:new Ise}}var aAt=oAt;function sAt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var lAt=sAt,cAt=lAt;function uAt(e,t){var n=e.__data__;return cAt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Nk=uAt,dAt=Nk;function fAt(e){var t=dAt(this,e).delete(e);return this.size-=t?1:0,t}var pAt=fAt,mAt=Nk;function hAt(e){return mAt(this,e).get(e)}var gAt=hAt,vAt=Nk;function _At(e){return vAt(this,e).has(e)}var yAt=_At,bAt=Nk;function SAt(e,t){var n=bAt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var EAt=SAt,CAt=aAt,wAt=pAt,xAt=gAt,TAt=yAt,RAt=EAt;function TS(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}TS.prototype.clear=CAt;TS.prototype.delete=wAt;TS.prototype.get=xAt;TS.prototype.has=TAt;TS.prototype.set=RAt;var xK=TS,OAt=Ok,IAt=wK,NAt=xK,MAt=200;function AAt(e,t){var n=this.__data__;if(n instanceof OAt){var r=n.__data__;if(!IAt||r.length<MAt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new NAt(r)}return n.set(e,t),this.size=n.size,this}var PAt=AAt,DAt=Ok,kAt=qNt,LAt=QNt,$At=ZNt,FAt=eMt,BAt=PAt;function RS(e){var t=this.__data__=new DAt(e);this.size=t.size}RS.prototype.clear=kAt;RS.prototype.delete=LAt;RS.prototype.get=$At;RS.prototype.has=FAt;RS.prototype.set=BAt;var Mk=RS,UAt="__lodash_hash_undefined__";function jAt(e){return this.__data__.set(e,UAt),this}var HAt=jAt;function zAt(e){return this.__data__.has(e)}var VAt=zAt,GAt=xK,WAt=HAt,YAt=VAt;function GA(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new GAt;++t<n;)this.add(e[t])}GA.prototype.add=GA.prototype.push=WAt;GA.prototype.has=YAt;var qAt=GA;function KAt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var QAt=KAt;function XAt(e,t){return e.has(t)}var ZAt=XAt,JAt=qAt,ePt=QAt,tPt=ZAt,nPt=1,rPt=2;function iPt(e,t,n,r,i,o){var a=n&nPt,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&rPt?new JAt:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!ePt(t,function(y,_){if(!tPt(p,_)&&(h===y||i(h,y,n,r,o)))return p.push(_)})){f=!1;break}}else if(!(h===g||i(h,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var eMe=iPt,oPt=vd,aPt=oPt.Uint8Array,tMe=aPt;function sPt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var lPt=sPt;function cPt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var uPt=cPt,Nse=Kx,Mse=tMe,dPt=Xx,fPt=eMe,pPt=lPt,mPt=uPt,hPt=1,gPt=2,vPt="[object Boolean]",_Pt="[object Date]",yPt="[object Error]",bPt="[object Map]",SPt="[object Number]",EPt="[object RegExp]",CPt="[object Set]",wPt="[object String]",xPt="[object Symbol]",TPt="[object ArrayBuffer]",RPt="[object DataView]",Ase=Nse?Nse.prototype:void 0,VF=Ase?Ase.valueOf:void 0;function OPt(e,t,n,r,i,o,a){switch(n){case RPt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TPt:return!(e.byteLength!=t.byteLength||!o(new Mse(e),new Mse(t)));case vPt:case _Pt:case SPt:return dPt(+e,+t);case yPt:return e.name==t.name&&e.message==t.message;case EPt:case wPt:return e==t+"";case bPt:var s=pPt;case CPt:var l=r&hPt;if(s||(s=mPt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=gPt,a.set(e,t);var u=fPt(s(e),s(t),r,i,o,a);return a.delete(e),u;case xPt:if(VF)return VF.call(e)==VF.call(t)}return!1}var IPt=OPt;function NPt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var nMe=NPt,MPt=nMe,APt=dc;function PPt(e,t,n){var r=t(e);return APt(e)?r:MPt(r,n(e))}var rMe=PPt;function DPt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var kPt=DPt;function LPt(){return[]}var iMe=LPt,$Pt=kPt,FPt=iMe,BPt=Object.prototype,UPt=BPt.propertyIsEnumerable,Pse=Object.getOwnPropertySymbols,jPt=Pse?function(e){return e==null?[]:(e=Object(e),$Pt(Pse(e),function(t){return UPt.call(e,t)}))}:FPt,TK=jPt,HPt=rMe,zPt=TK,VPt=Qx;function GPt(e){return HPt(e,VPt,zPt)}var oMe=GPt,Dse=oMe,WPt=1,YPt=Object.prototype,qPt=YPt.hasOwnProperty;function KPt(e,t,n,r,i,o){var a=n&WPt,s=Dse(e),l=s.length,c=Dse(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:qPt.call(t,f)))return!1}var p=o.get(e),h=o.get(t);if(p&&h)return p==t&&h==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var y=e[f],_=t[f];if(r)var b=a?r(_,y,f,t,e,o):r(y,_,f,e,t,o);if(!(b===void 0?y===_||i(y,_,n,r,o):b)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var S=e.constructor,C=t.constructor;S!=C&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(g=!1)}return o.delete(e),o.delete(t),g}var QPt=KPt,XPt=j_,ZPt=vd,JPt=XPt(ZPt,"DataView"),e2t=JPt,t2t=j_,n2t=vd,r2t=t2t(n2t,"Promise"),i2t=r2t,o2t=j_,a2t=vd,s2t=o2t(a2t,"Set"),l2t=s2t,c2t=j_,u2t=vd,d2t=c2t(u2t,"WeakMap"),f2t=d2t,iz=e2t,oz=wK,az=i2t,sz=l2t,lz=f2t,aMe=U_,OS=JNe,kse="[object Map]",p2t="[object Object]",Lse="[object Promise]",$se="[object Set]",Fse="[object WeakMap]",Bse="[object DataView]",m2t=OS(iz),h2t=OS(oz),g2t=OS(az),v2t=OS(sz),_2t=OS(lz),Lg=aMe;(iz&&Lg(new iz(new ArrayBuffer(1)))!=Bse||oz&&Lg(new oz)!=kse||az&&Lg(az.resolve())!=Lse||sz&&Lg(new sz)!=$se||lz&&Lg(new lz)!=Fse)&&(Lg=function(e){var t=aMe(e),n=t==p2t?e.constructor:void 0,r=n?OS(n):"";if(r)switch(r){case m2t:return Bse;case h2t:return kse;case g2t:return Lse;case v2t:return $se;case _2t:return Fse}return t});var Ak=Lg,GF=Mk,y2t=eMe,b2t=IPt,S2t=QPt,Use=Ak,jse=dc,Hse=xk,E2t=yK,C2t=1,zse="[object Arguments]",Vse="[object Array]",SO="[object Object]",w2t=Object.prototype,Gse=w2t.hasOwnProperty;function x2t(e,t,n,r,i,o){var a=jse(e),s=jse(t),l=a?Vse:Use(e),c=s?Vse:Use(t);l=l==zse?SO:l,c=c==zse?SO:c;var u=l==SO,d=c==SO,f=l==c;if(f&&Hse(e)){if(!Hse(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new GF),a||E2t(e)?y2t(e,t,n,r,i,o):b2t(e,t,l,n,r,i,o);if(!(n&C2t)){var p=u&&Gse.call(e,"__wrapped__"),h=d&&Gse.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return o||(o=new GF),i(g,v,n,r,o)}}return f?(o||(o=new GF),S2t(e,t,n,r,i,o)):!1}var T2t=x2t,R2t=T2t,Wse=vf;function sMe(e,t,n,r,i){return e===t?!0:e==null||t==null||!Wse(e)&&!Wse(t)?e!==e&&t!==t:R2t(e,t,n,r,sMe,i)}var lMe=sMe,O2t=Mk,I2t=lMe,N2t=1,M2t=2;function A2t(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new O2t;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?I2t(u,c,N2t|M2t,r,d):f))return!1}}return!0}var P2t=A2t,D2t=su;function k2t(e){return e===e&&!D2t(e)}var cMe=k2t,L2t=cMe,$2t=Qx;function F2t(e){for(var t=$2t(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,L2t(i)]}return t}var B2t=F2t;function U2t(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var uMe=U2t,j2t=P2t,H2t=B2t,z2t=uMe;function V2t(e){var t=H2t(e);return t.length==1&&t[0][2]?z2t(t[0][0],t[0][1]):function(n){return n===e||j2t(n,e,t)}}var G2t=V2t,W2t=U_,Y2t=vf,q2t="[object Symbol]";function K2t(e){return typeof e=="symbol"||Y2t(e)&&W2t(e)==q2t}var Pk=K2t,Q2t=dc,X2t=Pk,Z2t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J2t=/^\w*$/;function eDt(e,t){if(Q2t(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||X2t(e)?!0:J2t.test(e)||!Z2t.test(e)||t!=null&&e in Object(t)}var RK=eDt,dMe=xK,tDt="Expected a function";function OK(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tDt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(OK.Cache||dMe),n}OK.Cache=dMe;var nDt=OK,rDt=nDt,iDt=500;function oDt(e){var t=rDt(e,function(r){return n.size===iDt&&n.clear(),r}),n=t.cache;return t}var aDt=oDt,sDt=aDt,lDt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cDt=/\\(\\)?/g,uDt=sDt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lDt,function(n,r,i,o){t.push(i?o.replace(cDt,"$1"):r||n)}),t}),dDt=uDt,Yse=Kx,fDt=ZNe,pDt=dc,mDt=Pk,hDt=1/0,qse=Yse?Yse.prototype:void 0,Kse=qse?qse.toString:void 0;function fMe(e){if(typeof e=="string")return e;if(pDt(e))return fDt(e,fMe)+"";if(mDt(e))return Kse?Kse.call(e):"";var t=e+"";return t=="0"&&1/e==-hDt?"-0":t}var gDt=fMe,vDt=gDt;function _Dt(e){return e==null?"":vDt(e)}var yDt=_Dt,bDt=dc,SDt=RK,EDt=dDt,CDt=yDt;function wDt(e,t){return bDt(e)?e:SDt(e,t)?[e]:EDt(CDt(e))}var pMe=wDt,xDt=Pk,TDt=1/0;function RDt(e){if(typeof e=="string"||xDt(e))return e;var t=e+"";return t=="0"&&1/e==-TDt?"-0":t}var Dk=RDt,ODt=pMe,IDt=Dk;function NDt(e,t){t=ODt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[IDt(t[n++])];return n&&n==r?e:void 0}var mMe=NDt,MDt=mMe;function ADt(e,t,n){var r=e==null?void 0:MDt(e,t);return r===void 0?n:r}var PDt=ADt;function DDt(e,t){return e!=null&&t in Object(e)}var kDt=DDt,LDt=pMe,$Dt=mK,FDt=dc,BDt=hK,UDt=gK,jDt=Dk;function HDt(e,t,n){t=LDt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=jDt(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&UDt(i)&&BDt(a,i)&&(FDt(e)||$Dt(e)))}var zDt=HDt,VDt=kDt,GDt=zDt;function WDt(e,t){return e!=null&&GDt(e,t,VDt)}var YDt=WDt,qDt=lMe,KDt=PDt,QDt=YDt,XDt=RK,ZDt=cMe,JDt=uMe,ekt=Dk,tkt=1,nkt=2;function rkt(e,t){return XDt(e)&&ZDt(t)?JDt(ekt(e),t):function(n){var r=KDt(n,e);return r===void 0&&r===t?QDt(n,e):qDt(t,r,tkt|nkt)}}var ikt=rkt;function okt(e){return function(t){return t==null?void 0:t[e]}}var akt=okt,skt=mMe;function lkt(e){return function(t){return skt(t,e)}}var ckt=lkt,ukt=akt,dkt=ckt,fkt=RK,pkt=Dk;function mkt(e){return fkt(e)?ukt(pkt(e)):dkt(e)}var hkt=mkt,gkt=G2t,vkt=ikt,_kt=Tk,ykt=dc,bkt=hkt;function Skt(e){return typeof e=="function"?e:e==null?_kt:typeof e=="object"?ykt(e)?vkt(e[0],e[1]):gkt(e):bkt(e)}var Ekt=Skt,Ckt=CS;function wkt(e,t){return function(n,r){if(n==null)return n;if(!Ckt(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var xkt=wkt,Tkt=qNe,Rkt=xkt,Okt=Rkt(Tkt),hMe=Okt,Ikt=hMe,Nkt=CS;function Mkt(e,t){var n=-1,r=Nkt(e)?Array(e.length):[];return Ikt(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Akt=Mkt,Pkt=ZNe,Dkt=Ekt,kkt=Akt,Lkt=dc;function $kt(e,t){var n=Lkt(e)?Pkt:kkt;return n(e,Dkt(t))}var Fkt=$kt;Object.defineProperty(qx,"__esModule",{value:!0});qx.flattenNames=void 0;var Bkt=vOt,Ukt=kk(Bkt),jkt=EK,Hkt=kk(jkt),zkt=XNe,Vkt=kk(zkt),Gkt=Fkt,Wkt=kk(Gkt);function kk(e){return e&&e.__esModule?e:{default:e}}var Ykt=qx.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,Wkt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,Vkt.default)(r)?(0,Hkt.default)(r,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,Ukt.default)(r)&&n.push(r)}),n};qx.default=Ykt;var Zx={};function qkt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var gMe=qkt,Kkt=j_,Qkt=function(){try{var e=Kkt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vMe=Qkt,Qse=vMe;function Xkt(e,t,n){t=="__proto__"&&Qse?Qse(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var IK=Xkt,Zkt=IK,Jkt=Xx,eLt=Object.prototype,tLt=eLt.hasOwnProperty;function nLt(e,t,n){var r=e[t];(!(tLt.call(e,t)&&Jkt(r,n))||n===void 0&&!(t in e))&&Zkt(e,t,n)}var _Me=nLt,rLt=_Me,iLt=IK;function oLt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?iLt(n,s,l):rLt(n,s,l)}return n}var Jx=oLt,aLt=Jx,sLt=Qx;function lLt(e,t){return e&&aLt(t,sLt(t),e)}var cLt=lLt;function uLt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var dLt=uLt,fLt=su,pLt=bK,mLt=dLt,hLt=Object.prototype,gLt=hLt.hasOwnProperty;function vLt(e){if(!fLt(e))return mLt(e);var t=pLt(e),n=[];for(var r in e)r=="constructor"&&(t||!gLt.call(e,r))||n.push(r);return n}var _Lt=vLt,yLt=WNe,bLt=_Lt,SLt=CS;function ELt(e){return SLt(e)?yLt(e,!0):bLt(e)}var eT=ELt,CLt=Jx,wLt=eT;function xLt(e,t){return e&&CLt(t,wLt(t),e)}var TLt=xLt,WA={exports:{}};WA.exports;(function(e,t){var n=vd,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(WA,WA.exports);var yMe=WA.exports;function RLt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var bMe=RLt,OLt=Jx,ILt=TK;function NLt(e,t){return OLt(e,ILt(e),t)}var MLt=NLt,ALt=nMe,PLt=CK,DLt=TK,kLt=iMe,LLt=Object.getOwnPropertySymbols,$Lt=LLt?function(e){for(var t=[];e;)ALt(t,DLt(e)),e=PLt(e);return t}:kLt,SMe=$Lt,FLt=Jx,BLt=SMe;function ULt(e,t){return FLt(e,BLt(e),t)}var jLt=ULt,HLt=rMe,zLt=SMe,VLt=eT;function GLt(e){return HLt(e,VLt,zLt)}var WLt=GLt,YLt=Object.prototype,qLt=YLt.hasOwnProperty;function KLt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&qLt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var QLt=KLt,Xse=tMe;function XLt(e){var t=new e.constructor(e.byteLength);return new Xse(t).set(new Xse(e)),t}var NK=XLt,ZLt=NK;function JLt(e,t){var n=t?ZLt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var e$t=JLt,t$t=/\w*$/;function n$t(e){var t=new e.constructor(e.source,t$t.exec(e));return t.lastIndex=e.lastIndex,t}var r$t=n$t,Zse=Kx,Jse=Zse?Zse.prototype:void 0,ele=Jse?Jse.valueOf:void 0;function i$t(e){return ele?Object(ele.call(e)):{}}var o$t=i$t,a$t=NK;function s$t(e,t){var n=t?a$t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var EMe=s$t,l$t=NK,c$t=e$t,u$t=r$t,d$t=o$t,f$t=EMe,p$t="[object Boolean]",m$t="[object Date]",h$t="[object Map]",g$t="[object Number]",v$t="[object RegExp]",_$t="[object Set]",y$t="[object String]",b$t="[object Symbol]",S$t="[object ArrayBuffer]",E$t="[object DataView]",C$t="[object Float32Array]",w$t="[object Float64Array]",x$t="[object Int8Array]",T$t="[object Int16Array]",R$t="[object Int32Array]",O$t="[object Uint8Array]",I$t="[object Uint8ClampedArray]",N$t="[object Uint16Array]",M$t="[object Uint32Array]";function A$t(e,t,n){var r=e.constructor;switch(t){case S$t:return l$t(e);case p$t:case m$t:return new r(+e);case E$t:return c$t(e,n);case C$t:case w$t:case x$t:case T$t:case R$t:case O$t:case I$t:case N$t:case M$t:return f$t(e,n);case h$t:return new r;case g$t:case y$t:return new r(e);case v$t:return u$t(e);case _$t:return new r;case b$t:return d$t(e)}}var P$t=A$t,D$t=su,tle=Object.create,k$t=function(){function e(){}return function(t){if(!D$t(t))return{};if(tle)return tle(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),L$t=k$t,$$t=L$t,F$t=CK,B$t=bK;function U$t(e){return typeof e.constructor=="function"&&!B$t(e)?$$t(F$t(e)):{}}var CMe=U$t,j$t=Ak,H$t=vf,z$t="[object Map]";function V$t(e){return H$t(e)&&j$t(e)==z$t}var G$t=V$t,W$t=G$t,Y$t=vK,nle=_K,rle=nle&&nle.isMap,q$t=rle?Y$t(rle):W$t,K$t=q$t,Q$t=Ak,X$t=vf,Z$t="[object Set]";function J$t(e){return X$t(e)&&Q$t(e)==Z$t}var e3t=J$t,t3t=e3t,n3t=vK,ile=_K,ole=ile&&ile.isSet,r3t=ole?n3t(ole):t3t,i3t=r3t,o3t=Mk,a3t=gMe,s3t=_Me,l3t=cLt,c3t=TLt,u3t=yMe,d3t=bMe,f3t=MLt,p3t=jLt,m3t=oMe,h3t=WLt,g3t=Ak,v3t=QLt,_3t=P$t,y3t=CMe,b3t=dc,S3t=xk,E3t=K$t,C3t=su,w3t=i3t,x3t=Qx,T3t=eT,R3t=1,O3t=2,I3t=4,wMe="[object Arguments]",N3t="[object Array]",M3t="[object Boolean]",A3t="[object Date]",P3t="[object Error]",xMe="[object Function]",D3t="[object GeneratorFunction]",k3t="[object Map]",L3t="[object Number]",TMe="[object Object]",$3t="[object RegExp]",F3t="[object Set]",B3t="[object String]",U3t="[object Symbol]",j3t="[object WeakMap]",H3t="[object ArrayBuffer]",z3t="[object DataView]",V3t="[object Float32Array]",G3t="[object Float64Array]",W3t="[object Int8Array]",Y3t="[object Int16Array]",q3t="[object Int32Array]",K3t="[object Uint8Array]",Q3t="[object Uint8ClampedArray]",X3t="[object Uint16Array]",Z3t="[object Uint32Array]",ki={};ki[wMe]=ki[N3t]=ki[H3t]=ki[z3t]=ki[M3t]=ki[A3t]=ki[V3t]=ki[G3t]=ki[W3t]=ki[Y3t]=ki[q3t]=ki[k3t]=ki[L3t]=ki[TMe]=ki[$3t]=ki[F3t]=ki[B3t]=ki[U3t]=ki[K3t]=ki[Q3t]=ki[X3t]=ki[Z3t]=!0;ki[P3t]=ki[xMe]=ki[j3t]=!1;function fN(e,t,n,r,i,o){var a,s=t&R3t,l=t&O3t,c=t&I3t;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!C3t(e))return e;var u=b3t(e);if(u){if(a=v3t(e),!s)return d3t(e,a)}else{var d=g3t(e),f=d==xMe||d==D3t;if(S3t(e))return u3t(e,s);if(d==TMe||d==wMe||f&&!i){if(a=l||f?{}:y3t(e),!s)return l?p3t(e,c3t(a,e)):f3t(e,l3t(a,e))}else{if(!ki[d])return i?e:{};a=_3t(e,d,s)}}o||(o=new o3t);var p=o.get(e);if(p)return p;o.set(e,a),w3t(e)?e.forEach(function(v){a.add(fN(v,t,n,v,e,o))}):E3t(e)&&e.forEach(function(v,y){a.set(y,fN(v,t,n,y,e,o))});var h=c?l?h3t:m3t:l?T3t:x3t,g=u?void 0:h(e);return a3t(g||e,function(v,y){g&&(y=v,v=e[y]),s3t(a,y,fN(v,t,n,y,e,o))}),a}var J3t=fN,e4t=J3t,t4t=1,n4t=4;function r4t(e){return e4t(e,t4t|n4t)}var i4t=r4t;Object.defineProperty(Zx,"__esModule",{value:!0});Zx.mergeClasses=void 0;var o4t=EK,a4t=RMe(o4t),s4t=i4t,l4t=RMe(s4t),c4t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function RMe(e){return e&&e.__esModule?e:{default:e}}var u4t=Zx.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,l4t.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,a4t.default)(o,function(a,s){r[s]||(r[s]={}),r[s]=c4t({},r[s],o[s])}),i}),r};Zx.default=u4t;var tT={};Object.defineProperty(tT,"__esModule",{value:!0});tT.autoprefix=void 0;var d4t=EK,ale=p4t(d4t),f4t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p4t(e){return e&&e.__esModule?e:{default:e}}var m4t={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var r=n[t];return r||{extend:t}}},h4t=tT.autoprefix=function(t){var n={};return(0,ale.default)(t,function(r,i){var o={};(0,ale.default)(r,function(a,s){var l=m4t[s];l?o=f4t({},o,l(a)):o[s]=a}),n[i]=o}),n};tT.default=h4t;var nT={};Object.defineProperty(nT,"__esModule",{value:!0});nT.hover=void 0;var g4t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v4t=m,WF=_4t(v4t);function _4t(e){return e&&e.__esModule?e:{default:e}}function y4t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sle(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function b4t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var S4t=nT.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){b4t(i,r);function i(){var o,a,s,l;y4t(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=sle(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return WF.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},WF.default.createElement(t,g4t({},s.props,s.state)))},a),sle(s,l)}return i}(WF.default.Component)};nT.default=S4t;var rT={};Object.defineProperty(rT,"__esModule",{value:!0});rT.active=void 0;var E4t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C4t=m,YF=w4t(C4t);function w4t(e){return e&&e.__esModule?e:{default:e}}function x4t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lle(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function T4t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var R4t=rT.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){T4t(i,r);function i(){var o,a,s,l;x4t(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=lle(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return YF.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},YF.default.createElement(t,E4t({},s.props,s.state)))},a),lle(s,l)}return i}(YF.default.Component)};rT.default=R4t;var MK={};Object.defineProperty(MK,"__esModule",{value:!0});var O4t=function(t,n){var r={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};MK.default=O4t;Object.defineProperty(Fc,"__esModule",{value:!0});Fc.ReactCSS=Fc.loop=Fc.handleActive=Fc.handleHover=Fc.hover=void 0;var I4t=qx,N4t=IS(I4t),M4t=Zx,A4t=IS(M4t),P4t=tT,D4t=IS(P4t),k4t=nT,OMe=IS(k4t),L4t=rT,$4t=IS(L4t),F4t=MK,B4t=IS(F4t);function IS(e){return e&&e.__esModule?e:{default:e}}Fc.hover=OMe.default;Fc.handleHover=OMe.default;Fc.handleActive=$4t.default;Fc.loop=B4t.default;var U4t=Fc.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=(0,N4t.default)(r),a=(0,A4t.default)(t,o);return(0,D4t.default)(a)},Hh=Fc.default=U4t,j4t=IK,H4t=Xx;function z4t(e,t,n){(n!==void 0&&!H4t(e[t],n)||n===void 0&&!(t in e))&&j4t(e,t,n)}var IMe=z4t,V4t=CS,G4t=vf;function W4t(e){return G4t(e)&&V4t(e)}var Y4t=W4t;function q4t(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var NMe=q4t,K4t=Jx,Q4t=eT;function X4t(e){return K4t(e,Q4t(e))}var Z4t=X4t,cle=IMe,J4t=yMe,eFt=EMe,tFt=bMe,nFt=CMe,ule=mK,dle=dc,rFt=Y4t,iFt=xk,oFt=SK,aFt=su,sFt=XNe,lFt=yK,fle=NMe,cFt=Z4t;function uFt(e,t,n,r,i,o,a){var s=fle(e,n),l=fle(t,n),c=a.get(l);if(c){cle(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=dle(l),p=!f&&iFt(l),h=!f&&!p&&lFt(l);u=l,f||p||h?dle(s)?u=s:rFt(s)?u=tFt(s):p?(d=!1,u=J4t(l,!0)):h?(d=!1,u=eFt(l,!0)):u=[]:sFt(l)||ule(l)?(u=s,ule(s)?u=cFt(s):(!aFt(s)||oFt(s))&&(u=nFt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),cle(e,n,u)}var dFt=uFt,fFt=Mk,pFt=IMe,mFt=VNe,hFt=dFt,gFt=su,vFt=eT,_Ft=NMe;function MMe(e,t,n,r,i){e!==t&&mFt(t,function(o,a){if(i||(i=new fFt),gFt(o))hFt(e,t,a,n,MMe,r,i);else{var s=r?r(_Ft(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),pFt(e,a,s)}},vFt)}var yFt=MMe;function bFt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var SFt=bFt,EFt=SFt,ple=Math.max;function CFt(e,t,n){return t=ple(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=ple(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),EFt(e,this,s)}}var wFt=CFt;function xFt(e){return function(){return e}}var TFt=xFt,RFt=TFt,mle=vMe,OFt=Tk,IFt=mle?function(e,t){return mle(e,"toString",{configurable:!0,enumerable:!1,value:RFt(t),writable:!0})}:OFt,NFt=IFt,MFt=800,AFt=16,PFt=Date.now;function DFt(e){var t=0,n=0;return function(){var r=PFt(),i=AFt-(r-n);if(n=r,i>0){if(++t>=MFt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var kFt=DFt,LFt=NFt,$Ft=kFt,FFt=$Ft(LFt),BFt=FFt,UFt=Tk,jFt=wFt,HFt=BFt;function zFt(e,t){return HFt(jFt(e,t,UFt),e+"")}var VFt=zFt,GFt=Xx,WFt=CS,YFt=hK,qFt=su;function KFt(e,t,n){if(!qFt(n))return!1;var r=typeof t;return(r=="number"?WFt(n)&&YFt(t,n.length):r=="string"&&t in n)?GFt(n[t],e):!1}var QFt=KFt,XFt=VFt,ZFt=QFt;function JFt(e){return XFt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&ZFt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var eBt=JFt,tBt=yFt,nBt=eBt,rBt=nBt(function(e,t,n){tBt(e,t,n)}),iBt=rBt;const oBt=yi(iBt);var aBt=function(t,n,r,i,o){var a=o.clientWidth,s=o.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),d=c-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f;if(d<0?f=0:d>s?f=1:f=Math.round(d*100/s)/100,n.a!==f)return{h:n.h,s:n.s,l:n.l,a:f,source:"rgb"}}else{var p;if(u<0?p=0:u>a?p=1:p=Math.round(u*100/a)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},qF={},sBt=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=r*2,o.height=r*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),o.toDataURL()):null},lBt=function(t,n,r,i){var o="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(qF[o])return qF[o];var a=sBt(t,n,r,i);return qF[o]=a,a};function vw(e){"@babel/helpers - typeof";return vw=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},vw(e)}function hle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hle(Object(n),!0).forEach(function(r){cBt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cBt(e,t,n){return t=uBt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uBt(e){var t=dBt(e,"string");return vw(t)==="symbol"?t:String(t)}function dBt(e,t){if(vw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lk=function(t){var n=t.white,r=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,l=t.children,c=Hh({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url(".concat(lBt(n,r,i,o.canvas),") center left")}}});return m.isValidElement(l)?de.cloneElement(l,EO(EO({},l.props),{},{style:EO(EO({},l.props.style),c.grid)})):de.createElement("div",{style:c.grid})};Lk.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function h0(e){"@babel/helpers - typeof";return h0=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},h0(e)}function gle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fBt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gle(Object(n),!0).forEach(function(r){pBt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pBt(e,t,n){return t=AMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mBt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hBt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AMe(r.key),r)}}function gBt(e,t,n){return t&&hBt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AMe(e){var t=vBt(e,"string");return h0(t)==="symbol"?t:String(t)}function vBt(e,t){if(h0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(h0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _Bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cz(e,t)}function cz(e,t){return cz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cz(e,t)}function yBt(e){var t=EBt();return function(){var r=YA(e),i;if(t){var o=YA(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bBt(this,i)}}function bBt(e,t){if(t&&(h0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SBt(e)}function SBt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EBt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function YA(e){return YA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},YA(e)}var CBt=function(e){_Bt(n,e);var t=yBt(n);function n(){var r;mBt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),r.handleChange=function(s){var l=aBt(s,r.props.hsl,r.props.direction,r.props.a,r.container);l&&typeof r.props.onChange=="function"&&r.props.onChange(l,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},r}return gBt(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var i=this,o=this.props.rgb,a=Hh({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,`, 0) 0%,
|
||
rgba(`).concat(o.r,",").concat(o.g,",").concat(o.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(o.a*100,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,`, 0) 0%,
|
||
rgba(`).concat(o.r,",").concat(o.g,",").concat(o.b,", 1) 100%)")},pointer:{left:0,top:"".concat(o.a*100,"%")}},overwrite:fBt({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return de.createElement("div",{style:a.alpha},de.createElement("div",{style:a.checkboard},de.createElement(Lk,{renderers:this.props.renderers})),de.createElement("div",{style:a.gradient}),de.createElement("div",{style:a.container,ref:function(l){return i.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},de.createElement("div",{style:a.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:a.slider}))))}}]),n}(m.PureComponent||m.Component),wBt=function(t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(i.getBoundingClientRect().left+window.pageXOffset),u=l-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d;if(u<0)d=359;else if(u>a)d=0;else{var f=-(u*100/a)+100;d=360*f/100}if(r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>o)p=359;else{var h=c*100/o;p=360*h/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function g0(e){"@babel/helpers - typeof";return g0=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},g0(e)}function xBt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TBt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OBt(r.key),r)}}function RBt(e,t,n){return t&&TBt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OBt(e){var t=IBt(e,"string");return g0(t)==="symbol"?t:String(t)}function IBt(e,t){if(g0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(g0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function NBt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uz(e,t)}function uz(e,t){return uz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uz(e,t)}function MBt(e){var t=DBt();return function(){var r=qA(e),i;if(t){var o=qA(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ABt(this,i)}}function ABt(e,t){if(t&&(g0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PBt(e)}function PBt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DBt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qA(e){return qA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qA(e)}var kBt=function(e){NBt(n,e);var t=MBt(n);function n(){var r;xBt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),r.handleChange=function(s){var l=wBt(s,r.props.direction,r.props.hsl,r.container);l&&typeof r.props.onChange=="function"&&r.props.onChange(l,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r}return RBt(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,o=this.props.direction,a=o===void 0?"horizontal":o,s=Hh({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(this.props.hsl.h*100/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-(this.props.hsl.h*100/360)+100,"%")}}},{vertical:a==="vertical"});return de.createElement("div",{style:s.hue},de.createElement("div",{className:"hue-".concat(a),style:s.container,ref:function(c){return i.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},de.createElement("style",null,`
|
||
.hue-horizontal {
|
||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
||
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
|
||
.hue-vertical {
|
||
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
||
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
`),de.createElement("div",{style:s.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:s.slider}))))}}]),n}(m.PureComponent||m.Component),LBt=vd,$Bt=function(){return LBt.Date.now()},FBt=$Bt,BBt=/\s/;function UBt(e){for(var t=e.length;t--&&BBt.test(e.charAt(t)););return t}var jBt=UBt,HBt=jBt,zBt=/^\s+/;function VBt(e){return e&&e.slice(0,HBt(e)+1).replace(zBt,"")}var GBt=VBt,WBt=GBt,vle=su,YBt=Pk,_le=NaN,qBt=/^[-+]0x[0-9a-f]+$/i,KBt=/^0b[01]+$/i,QBt=/^0o[0-7]+$/i,XBt=parseInt;function ZBt(e){if(typeof e=="number")return e;if(YBt(e))return _le;if(vle(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vle(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=WBt(e);var n=KBt.test(e);return n||QBt.test(e)?XBt(e.slice(2),n?2:8):qBt.test(e)?_le:+e}var JBt=ZBt,e6t=su,KF=FBt,yle=JBt,t6t="Expected a function",n6t=Math.max,r6t=Math.min;function i6t(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(t6t);t=yle(t)||0,e6t(n)&&(u=!!n.leading,d="maxWait"in n,o=d?n6t(yle(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function p(E){var w=r,x=i;return r=i=void 0,c=E,a=e.apply(x,w),a}function h(E){return c=E,s=setTimeout(y,t),u?p(E):a}function g(E){var w=E-l,x=E-c,T=t-w;return d?r6t(T,o-x):T}function v(E){var w=E-l,x=E-c;return l===void 0||w>=t||w<0||d&&x>=o}function y(){var E=KF();if(v(E))return _(E);s=setTimeout(y,g(E))}function _(E){return s=void 0,f&&r?p(E):(r=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?a:_(KF())}function C(){var E=KF(),w=v(E);if(r=arguments,i=this,l=E,w){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(y,t),p(l)}return s===void 0&&(s=setTimeout(y,t)),a}return C.cancel=b,C.flush=S,C}var PMe=i6t;const o6t=yi(PMe);var a6t=PMe,s6t=su,l6t="Expected a function";function c6t(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(l6t);return s6t(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),a6t(e,t,{leading:r,maxWait:t,trailing:i})}var u6t=c6t;const d6t=yi(u6t);var f6t=function(t,n,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>o&&(c=o),u<0?u=0:u>a&&(u=a);var d=c/o,f=1-u/a;return{h:n.h,s:d,v:f,a:n.a,source:"hsv"}};function v0(e){"@babel/helpers - typeof";return v0=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},v0(e)}function p6t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m6t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g6t(r.key),r)}}function h6t(e,t,n){return t&&m6t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g6t(e){var t=v6t(e,"string");return v0(t)==="symbol"?t:String(t)}function v6t(e,t){if(v0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(v0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _6t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dz(e,t)}function dz(e,t){return dz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dz(e,t)}function y6t(e){var t=E6t();return function(){var r=KA(e),i;if(t){var o=KA(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return b6t(this,i)}}function b6t(e,t){if(t&&(v0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S6t(e)}function S6t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E6t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function KA(e){return KA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},KA(e)}var C6t=function(e){_6t(n,e);var t=y6t(n);function n(r){var i;return p6t(this,n),i=t.call(this,r),i.handleChange=function(o){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,f6t(o,i.props.hsl,i.container),o)},i.handleMouseDown=function(o){i.handleChange(o);var a=i.getContainerRenderWindow();a.addEventListener("mousemove",i.handleChange),a.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=d6t(function(o,a,s){o(a,s)},50),i}return h6t(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,o=window;!o.document.contains(i)&&o.parent!==o;)o=o.parent;return o}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,o=this.props.style||{},a=o.color,s=o.white,l=o.black,c=o.pointer,u=o.circle,d=Hh({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:s,black:l,pointer:c,circle:u}},{custom:!!this.props.style});return de.createElement("div",{style:d.color,ref:function(p){return i.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},de.createElement("style",null,`
|
||
.saturation-white {
|
||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
}
|
||
.saturation-black {
|
||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
}
|
||
`),de.createElement("div",{style:d.white,className:"saturation-white"},de.createElement("div",{style:d.black,className:"saturation-black"}),de.createElement("div",{style:d.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:d.circle}))))}}]),n}(m.PureComponent||m.Component),w6t=gMe,x6t=hMe,T6t=KNe,R6t=dc;function O6t(e,t){var n=R6t(e)?w6t:x6t;return n(e,T6t(t))}var I6t=O6t,N6t=I6t;const M6t=yi(N6t);function QA(e){"@babel/helpers - typeof";return QA=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},QA(e)}var A6t=/^\s+/,P6t=/\s+$/;function Yn(e,t){if(e=e||"",t=t||{},e instanceof Yn)return e;if(!(this instanceof Yn))return new Yn(e,t);var n=D6t(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}Yn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=DMe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Sle(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Sle(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=ble(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ble(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Ele(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return F6t(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(io(this._r,255)*100)+"%",g:Math.round(io(this._g,255)*100)+"%",b:Math.round(io(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(io(this._r,255)*100)+"%, "+Math.round(io(this._g,255)*100)+"%, "+Math.round(io(this._b,255)*100)+"%)":"rgba("+Math.round(io(this._r,255)*100)+"%, "+Math.round(io(this._g,255)*100)+"%, "+Math.round(io(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Q6t[Ele(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Cle(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=Yn(t);r="#"+Cle(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||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())},clone:function(){return Yn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(H6t,arguments)},brighten:function(){return this._applyModification(z6t,arguments)},darken:function(){return this._applyModification(V6t,arguments)},desaturate:function(){return this._applyModification(B6t,arguments)},saturate:function(){return this._applyModification(U6t,arguments)},greyscale:function(){return this._applyModification(j6t,arguments)},spin:function(){return this._applyModification(G6t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(q6t,arguments)},complement:function(){return this._applyCombination(W6t,arguments)},monochromatic:function(){return this._applyCombination(K6t,arguments)},splitcomplement:function(){return this._applyCombination(Y6t,arguments)},triad:function(){return this._applyCombination(wle,[3])},tetrad:function(){return this._applyCombination(wle,[4])}};Yn.fromRatio=function(e,t){if(QA(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=SC(e[r]));e=n}return Yn(e,t)};function D6t(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=e8t(e)),QA(e)=="object"&&(Mf(e.r)&&Mf(e.g)&&Mf(e.b)?(t=k6t(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mf(e.h)&&Mf(e.s)&&Mf(e.v)?(r=SC(e.s),i=SC(e.v),t=$6t(e.h,r,i),a=!0,s="hsv"):Mf(e.h)&&Mf(e.s)&&Mf(e.l)&&(r=SC(e.s),o=SC(e.l),t=L6t(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=DMe(n),{ok:a,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}}function k6t(e,t,n){return{r:io(e,255)*255,g:io(t,255)*255,b:io(n,255)*255}}function ble(e,t,n){e=io(e,255),t=io(t,255),n=io(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:s}}function L6t(e,t,n){var r,i,o;e=io(e,360),t=io(t,100),n=io(n,100);function a(c,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Sle(e,t,n){e=io(e,255),t=io(t,255),n=io(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,l=r-i;if(a=r===0?0:l/r,r==i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,v:s}}function $6t(e,t,n){e=io(e,360)*6,t=io(t,100),n=io(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function Ele(e,t,n,r){var i=[Fu(Math.round(e).toString(16)),Fu(Math.round(t).toString(16)),Fu(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function F6t(e,t,n,r,i){var o=[Fu(Math.round(e).toString(16)),Fu(Math.round(t).toString(16)),Fu(Math.round(n).toString(16)),Fu(kMe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Cle(e,t,n,r){var i=[Fu(kMe(r)),Fu(Math.round(e).toString(16)),Fu(Math.round(t).toString(16)),Fu(Math.round(n).toString(16))];return i.join("")}Yn.equals=function(e,t){return!e||!t?!1:Yn(e).toRgbString()==Yn(t).toRgbString()};Yn.random=function(){return Yn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function B6t(e,t){t=t===0?0:t||10;var n=Yn(e).toHsl();return n.s-=t/100,n.s=$k(n.s),Yn(n)}function U6t(e,t){t=t===0?0:t||10;var n=Yn(e).toHsl();return n.s+=t/100,n.s=$k(n.s),Yn(n)}function j6t(e){return Yn(e).desaturate(100)}function H6t(e,t){t=t===0?0:t||10;var n=Yn(e).toHsl();return n.l+=t/100,n.l=$k(n.l),Yn(n)}function z6t(e,t){t=t===0?0:t||10;var n=Yn(e).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)))),Yn(n)}function V6t(e,t){t=t===0?0:t||10;var n=Yn(e).toHsl();return n.l-=t/100,n.l=$k(n.l),Yn(n)}function G6t(e,t){var n=Yn(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Yn(n)}function W6t(e){var t=Yn(e).toHsl();return t.h=(t.h+180)%360,Yn(t)}function wle(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Yn(e).toHsl(),r=[Yn(e)],i=360/t,o=1;o<t;o++)r.push(Yn({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function Y6t(e){var t=Yn(e).toHsl(),n=t.h;return[Yn(e),Yn({h:(n+72)%360,s:t.s,l:t.l}),Yn({h:(n+216)%360,s:t.s,l:t.l})]}function q6t(e,t,n){t=t||6,n=n||30;var r=Yn(e).toHsl(),i=360/n,o=[Yn(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(Yn(r));return o}function K6t(e,t){t=t||6;for(var n=Yn(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(Yn({h:r,s:i,v:o})),o=(o+s)%1;return a}Yn.mix=function(e,t,n){n=n===0?0:n||50;var r=Yn(e).toRgb(),i=Yn(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return Yn(a)};Yn.readability=function(e,t){var n=Yn(e),r=Yn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Yn.isReadable=function(e,t,n){var r=Yn.readability(e,t),i,o;switch(o=!1,i=t8t(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};Yn.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,l;n=n||{},a=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;c<t.length;c++)o=Yn.readability(e,t[c]),o>i&&(i=o,r=Yn(t[c]));return Yn.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,Yn.mostReadable(e,["#fff","#000"],n))};var fz=Yn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Q6t=Yn.hexNames=X6t(fz);function X6t(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function DMe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function io(e,t){Z6t(e)&&(e="100%");var n=J6t(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $k(e){return Math.min(1,Math.max(0,e))}function Ll(e){return parseInt(e,16)}function Z6t(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function J6t(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Fu(e){return e.length==1?"0"+e:""+e}function SC(e){return e<=1&&(e=e*100+"%"),e}function kMe(e){return Math.round(parseFloat(e)*255).toString(16)}function xle(e){return Ll(e)/255}var Eu=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),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 Mf(e){return!!Eu.CSS_UNIT.exec(e)}function e8t(e){e=e.replace(A6t,"").replace(P6t,"").toLowerCase();var t=!1;if(fz[e])e=fz[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Eu.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Eu.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Eu.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Eu.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Eu.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Eu.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Eu.hex8.exec(e))?{r:Ll(n[1]),g:Ll(n[2]),b:Ll(n[3]),a:xle(n[4]),format:t?"name":"hex8"}:(n=Eu.hex6.exec(e))?{r:Ll(n[1]),g:Ll(n[2]),b:Ll(n[3]),format:t?"name":"hex"}:(n=Eu.hex4.exec(e))?{r:Ll(n[1]+""+n[1]),g:Ll(n[2]+""+n[2]),b:Ll(n[3]+""+n[3]),a:xle(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Eu.hex3.exec(e))?{r:Ll(n[1]+""+n[1]),g:Ll(n[2]+""+n[2]),b:Ll(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function t8t(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Tle=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return M6t(n,function(o){if(t[o]&&(r+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),r===i?t:!1},CO=function(t,n){var r=t.hex?Yn(t.hex):Yn(t),i=r.toHsl(),o=r.toHsv(),a=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,o.h=n||0);var l=s==="000000"&&a.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:a,hsv:o,oldHue:t.h||n||i.h,source:t.source}},n8t=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Yn(t).isValid()};function _0(e){"@babel/helpers - typeof";return _0=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},_0(e)}function pz(){return pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pz.apply(this,arguments)}function Rle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rle(Object(n),!0).forEach(function(r){r8t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r8t(e,t,n){return t=LMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ole(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LMe(r.key),r)}}function o8t(e,t,n){return t&&Ole(e.prototype,t),n&&Ole(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LMe(e){var t=a8t(e,"string");return _0(t)==="symbol"?t:String(t)}function a8t(e,t){if(_0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s8t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mz(e,t)}function mz(e,t){return mz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mz(e,t)}function l8t(e){var t=d8t();return function(){var r=XA(e),i;if(t){var o=XA(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return c8t(this,i)}}function c8t(e,t){if(t&&(_0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u8t(e)}function u8t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d8t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function XA(e){return XA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},XA(e)}var f8t=function(t){var n=function(r){s8t(o,r);var i=l8t(o);function o(a){var s;return i8t(this,o),s=i.call(this),s.handleChange=function(l,c){var u=Tle(l);if(u){var d=CO(l,l.h||s.state.oldHue);s.setState(d),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,d,c),s.props.onChange&&s.props.onChange(d,c)}},s.handleSwatchHover=function(l,c){var u=Tle(l);if(u){var d=CO(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(d,c)}},s.state=LE({},CO(a.color,0)),s.debounce=o6t(function(l,c,u){l(c,u)},100),s}return o8t(o,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),de.createElement(t,pz({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return LE({},CO(s.color,l.oldHue))}}]),o}(m.PureComponent||m.Component);return n.propTypes=LE({},t.propTypes),n.defaultProps=LE(LE({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function y0(e){"@babel/helpers - typeof";return y0=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},y0(e)}function p8t(e,t,n){return t=$Me(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h8t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$Me(r.key),r)}}function g8t(e,t,n){return t&&h8t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Me(e){var t=v8t(e,"string");return y0(t)==="symbol"?t:String(t)}function v8t(e,t){if(y0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(y0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _8t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hz(e,t)}function hz(e,t){return hz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hz(e,t)}function y8t(e){var t=E8t();return function(){var r=ZA(e),i;if(t){var o=ZA(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return b8t(this,i)}}function b8t(e,t){if(t&&(y0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S8t(e)}function S8t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E8t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ZA(e){return ZA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ZA(e)}var C8t=1,FMe=38,w8t=40,x8t=[FMe,w8t],T8t=function(t){return x8t.indexOf(t)>-1},R8t=function(t){return Number(String(t).replace(/%/g,""))},O8t=1,$E=function(e){_8t(n,e);var t=y8t(n);function n(r){var i;return m8t(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(o){i.setUpdatedValue(o.target.value,o)},i.handleKeyDown=function(o){var a=R8t(o.target.value);if(!isNaN(a)&&T8t(o.keyCode)){var s=i.getArrowOffset(),l=o.keyCode===FMe?a+s:a-s;i.setUpdatedValue(l,o)}},i.handleDrag=function(o){if(i.props.dragLabel){var a=Math.round(i.props.value+o.movementX);a>=0&&a<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(a),o)}},i.handleMouseDown=function(o){i.props.dragLabel&&(o.preventDefault(),i.handleDrag(o),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(O8t++),i}return g8t(n,[{key:"componentDidUpdate",value:function(i,o){this.props.value!==this.state.value&&(i.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return p8t({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||C8t}},{key:"setUpdatedValue",value:function(i,o){var a=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(a,o),this.setState({value:i})}},{key:"render",value:function(){var i=this,o=Hh({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return de.createElement("div",{style:o.wrap},de.createElement("input",{id:this.inputId,style:o.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?de.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(m.PureComponent||m.Component);function b0(e){"@babel/helpers - typeof";return b0=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},b0(e)}function gz(){return gz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gz.apply(this,arguments)}function I8t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N8t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A8t(r.key),r)}}function M8t(e,t,n){return t&&N8t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A8t(e){var t=P8t(e,"string");return b0(t)==="symbol"?t:String(t)}function P8t(e,t){if(b0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(b0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function D8t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vz(e,t)}function vz(e,t){return vz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vz(e,t)}function k8t(e){var t=F8t();return function(){var r=JA(e),i;if(t){var o=JA(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return L8t(this,i)}}function L8t(e,t){if(t&&(b0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $8t(e)}function $8t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F8t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JA(e){return JA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},JA(e)}var B8t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){D8t(o,r);var i=k8t(o);function o(){var a;I8t(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),a.state={focus:!1},a.handleFocus=function(){return a.setState({focus:!0})},a.handleBlur=function(){return a.setState({focus:!1})},a}return M8t(o,[{key:"render",value:function(){return de.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},de.createElement(t,gz({},this.props,this.state)))}}]),o}(de.Component)};function _w(e){"@babel/helpers - typeof";return _w=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},_w(e)}function _z(){return _z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_z.apply(this,arguments)}function Ile(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ile(Object(n),!0).forEach(function(r){U8t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ile(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U8t(e,t,n){return t=j8t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8t(e){var t=H8t(e,"string");return _w(t)==="symbol"?t:String(t)}function H8t(e,t){if(_w(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_w(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z8t=13,V8t=function(t){var n=t.color,r=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,l=s===void 0?n:s,c=t.children,u=t.focus,d=t.focusStyle,f=d===void 0?{}:d,p=n==="transparent",h=Hh({default:{swatch:Nle(Nle({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r),u?f:{})}}),g=function(S){return o(n,S)},v=function(S){return S.keyCode===z8t&&o(n,S)},y=function(S){return a(n,S)},_={};return a&&(_.onMouseOver=y),de.createElement("div",_z({style:h.swatch,onClick:g,title:l,tabIndex:0,onKeyDown:v},_),c,p&&de.createElement(Lk,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const G8t=B8t(V8t);var W8t=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Hh({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(u,d){u.hex?n8t(u.hex)&&(n==null||n({hex:u.hex,source:"hex"},d)):u.r||u.g||u.b?n==null||n({r:u.r||(r==null?void 0:r.r),g:u.g||(r==null?void 0:r.g),b:u.b||(r==null?void 0:r.b),a:r==null?void 0:r.a,source:"rgb"},d):u.a&&(u.a<0?u.a=0:u.a>100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},d))};return de.createElement("div",{style:s.fields,className:"flexbox-fix"},de.createElement("div",{style:s.double},de.createElement($E,{style:{input:s.input,label:s.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:l})),de.createElement("div",{style:s.single},de.createElement($E,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement($E,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement($E,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.alpha},de.createElement($E,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function yw(e){"@babel/helpers - typeof";return yw=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},yw(e)}function Mle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ale(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mle(Object(n),!0).forEach(function(r){Y8t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y8t(e,t,n){return t=q8t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q8t(e){var t=K8t(e,"string");return yw(t)==="symbol"?t:String(t)}function K8t(e,t){if(yw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q8t=function(t){var n=t.colors,r=t.onClick,i=r===void 0?function(){}:r,o=t.onSwatchHover,a={colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{msBorderRadius:"3px",MozBorderRadius:"3px",OBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px",msBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",MozBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",OBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",WebkitBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},s=function(c,u){i==null||i({hex:c,source:"hex"},u)};return de.createElement("div",{style:a.colors,className:"flexbox-fix"},n==null?void 0:n.map(function(l){var c=typeof l=="string"?{color:l,title:void 0}:l,u="".concat(c.color).concat((c==null?void 0:c.title)||"");return de.createElement("div",{key:u,style:a.swatchWrap},de.createElement(G8t,Ale(Ale({},c),{},{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(c.color)}})))}))};function bw(e){"@babel/helpers - typeof";return bw=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},bw(e)}function Ple(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X8t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ple(Object(n),!0).forEach(function(r){Z8t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ple(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z8t(e,t,n){return t=J8t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J8t(e){var t=e5t(e,"string");return bw(t)==="symbol"?t:String(t)}function e5t(e,t){if(bw(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BMe=function(t){var n=t.width,r=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,l=t.onSwatchHover,c=t.disableAlpha,u=t.presetColors,d=t.renderers,f=t.styles,p=f===void 0?{}:f,h=t.className,g=h===void 0?"":h,v=Hh(oBt({default:X8t({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(r.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:c});return de.createElement("div",{style:v.picker,className:"sketch-picker ".concat(g)},de.createElement("div",{style:v.saturation},de.createElement(C6t,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),de.createElement("div",{style:v.controls,className:"flexbox-fix"},de.createElement("div",{style:v.sliders},de.createElement("div",{style:v.hue},de.createElement(kBt,{style:v.Hue,hsl:a,onChange:s})),de.createElement("div",{style:v.alpha},de.createElement(CBt,{style:v.Alpha,rgb:r,hsl:a,renderers:d,onChange:s}))),de.createElement("div",{style:v.color},de.createElement(Lk,null),de.createElement("div",{style:v.activeColor}))),de.createElement(W8t,{rgb:r,hsl:a,hex:i,onChange:s,disableAlpha:c}),de.createElement(Q8t,{colors:u,onClick:s,onSwatchHover:l}))};BMe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var t5t=f8t(BMe),n5t=["mode","popoverProps"],r5t=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],i5t=de.forwardRef(function(e,t){var n=e.mode,r=e.popoverProps,i=It(e,n5t),o=m.useContext(Pn.ConfigContext),a=o.getPrefixCls,s=a("pro-field-color-picker"),l=af.useToken(),c=l.token,u=Fn("#1890ff",{value:i.value,onChange:i.onChange}),d=Oe(u,2),f=d[0],p=d[1],h=Di("ProFiledColorPicker"+f,function(){return ie({},".".concat(s),{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"1px solid ".concat(c.colorSplit),borderRadius:c.borderRadius,"&:hover":{borderColor:f}})}),g=h.wrapSSR,v=h.hashId,y=g(M.jsx("div",{className:"".concat(s," ").concat(v).trim(),style:{cursor:i.disabled?"not-allowed":"pointer",backgroundColor:i.disabled?c.colorBgContainerDisabled:c.colorBgContainer},children:M.jsx("div",{style:{backgroundColor:f,width:24,boxSizing:"border-box",height:24,borderRadius:c.borderRadius}})}));return m.useImperativeHandle(t,function(){}),n==="read"||i.disabled?y:M.jsx(Xc,q(q({trigger:"click",placement:"right"},r),{},{content:M.jsx("div",{style:{margin:"-12px -16px"},children:M.jsx(t5t,q(q({},i),{},{presetColors:i.colors||i.presetColors||r5t,color:f,onChange:function(b){var S=b.hex,C=b.rgb,E=C.r,w=C.g,x=C.b,T=C.a;if(T&&T<1){p("rgba(".concat(E,", ").concat(w,", ").concat(x,", ").concat(T,")"));return}p(S)}}))}),children:y}))}),o5t={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function UMe(){return Vx(bp,"5.5.0")>-1}function a5t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&UMe()?Dq:i5t}var s5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=m.useContext(Pn.ConfigContext),u=c.getPrefixCls,d=de.useMemo(function(){return a5t(l)},[l]),f=u("pro-field-color-picker"),p=m.useMemo(function(){return l?"":Re(ie({},f,UMe()))},[f,l]);if(i==="read"){var h=M.jsx(d,{value:r,mode:"read",ref:n,className:p,open:!1});return o?o(r,q({mode:i},s),h):h}if(i==="edit"||i==="update"){var g=q({display:"table-cell"},s.style),v=M.jsx(d,q(q({ref:n,presets:[o5t]},s),{},{style:g,className:p}));return a?a(r,q(q({mode:i},s),{},{style:g}),v):v}return null};const l5t=de.forwardRef(s5t);pr.extend(fq);var c5t=function(t,n){return t?typeof n=="function"?n(pr(t)):pr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},u5t=function(t,n){var r=t.text,i=t.mode,o=t.format,a=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,d=t.showTime,f=t.fieldProps,p=t.picker,h=t.bordered,g=t.lightLabel,v=yo(),y=m.useState(!1),_=Oe(y,2),b=_[0],S=_[1];if(i==="read"){var C=c5t(r,f.format||o);return l?l(r,q({mode:i},f),M.jsx(M.Fragment,{children:C})):M.jsx(M.Fragment,{children:C})}if(i==="edit"||i==="update"){var E,w=f.disabled,x=f.value,T=f.placeholder,R=T===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):T,N=Gx(x);return s?E=M.jsx(zp,{label:a,onClick:function(){var P;f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,!0),S(!0)},style:N?{paddingInlineEnd:0}:void 0,disabled:w,value:N||b?M.jsx(hl,q(q(q({picker:p,showTime:d,format:o,ref:n},f),{},{value:N,onOpenChange:function(P){var D;S(P),f==null||(D=f.onOpenChange)===null||D===void 0||D.call(f,P)}},ic(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:N||b?!1:void 0,bordered:h,ref:g}):E=M.jsx(hl,q(q(q({picker:p,showTime:d,format:o,placeholder:R},ic(u===void 0?!0:!u)),{},{ref:n},f),{},{value:N})),c?c(r,q({mode:i},f),E):E}return null};const Ty=de.forwardRef(u5t);var d5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=yo(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),d=m.useCallback(function(y){var _=y??void 0;return!l.stringMode&&typeof _=="string"&&(_=Number(_)),typeof _=="number"&&!n_(_)&&!n_(l.precision)&&(_=Number(_.toFixed(l.precision))),_},[l]);if(i==="read"){var f,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var h=new Intl.NumberFormat(void 0,q(q({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?M.jsx("span",{children:r}):M.jsx("span",{ref:n,children:(l==null||(f=l.formatter)===null||f===void 0?void 0:f.call(l,h))||h});return o?o(r,q({mode:i},l),g):g}if(i==="edit"||i==="update"){var v=M.jsx(Ep,q(q({ref:n,min:0,placeholder:u},ur(l,["onChange","onBlur"])),{},{onChange:function(_){var b;return l==null||(b=l.onChange)===null||b===void 0?void 0:b.call(l,d(_))},onBlur:function(_){var b;return l==null||(b=l.onBlur)===null||b===void 0?void 0:b.call(l,d(_.target.value))}}));return s?s(r,q({mode:i},l),v):v}return null};const f5t=de.forwardRef(d5t);var p5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,d=t.separatorWidth,f=d===void 0?30:d,p=l.value,h=l.defaultValue,g=l.onChange,v=l.id,y=yo(),_=af.useToken(),b=_.token,S=Fn(function(){return h},{value:p,onChange:g}),C=Oe(S,2),E=C[0],w=C[1];if(i==="read"){var x=function(U){var G,V=new Intl.NumberFormat(void 0,q({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(U));return(l==null||(G=l.formatter)===null||G===void 0?void 0:G.call(l,V))||V},T=M.jsxs("span",{ref:n,children:[x(r[0])," ",u," ",x(r[1])]});return o?o(r,q({mode:i},l),T):T}if(i==="edit"||i==="update"){var R=function(){if(Array.isArray(E)){var U=Oe(E,2),G=U[0],V=U[1];typeof G=="number"&&typeof V=="number"&&G>V?w([V,G]):G===void 0&&V===void 0&&w(void 0)}},N=function(U,G){var V=at(E||[]);V[U]=G===null?void 0:G,w(V)},I=(l==null?void 0:l.placeholder)||a||[y.getMessage("tableForm.inputPlaceholder","请输入"),y.getMessage("tableForm.inputPlaceholder","请输入")],P=function(U){return Array.isArray(I)?I[U]:I},D=Zc.Compact||Hr.Group,F=Zc.Compact?{}:{compact:!0},L=M.jsxs(D,q(q({},F),{},{onBlur:R,children:[M.jsx(Ep,q(q({},l),{},{placeholder:P(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(f,"px) / 2)")},value:E==null?void 0:E[0],defaultValue:h==null?void 0:h[0],onChange:function(U){return N(0,U)}})),M.jsx(Hr,{style:{width:f,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:u,disabled:!0}),M.jsx(Ep,q(q({},l),{},{placeholder:P(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(f,"px) / 2)"),borderInlineStart:0},value:E==null?void 0:E[1],defaultValue:h==null?void 0:h[1],onChange:function(U){return N(1,U)}}))]}));return s?s(r,q({mode:i},l),L):L}return null};const m5t=de.forwardRef(p5t);var jMe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,d,f){return o.fromToBase(c,u,d,f)}i.en.relativeTime=a,o.fromToBase=function(c,u,d,f,p){for(var h,g,v,y=d.$locale().relativeTime||a,_=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=_.length,S=0;S<b;S+=1){var C=_[S];C.d&&(h=f?i(c).diff(d,C.d,!0):d.diff(c,C.d,!0));var E=(n.rounding||Math.round)(Math.abs(h));if(v=h>0,E<=C.r||!C.r){E<=1&&S>0&&(C=_[S-1]);var w=y[C.l];p&&(E=p(""+E)),g=typeof w=="string"?w.replace("%d",E):w(E,u,C.l,v);break}}if(u)return g;var x=v?y.future:y.past;return typeof x=="function"?x(g):x.replace("%s",g)},o.to=function(c,u){return s(c,u,this,!0)},o.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};o.toNow=function(c){return this.to(l(this),c)},o.fromNow=function(c){return this.from(l(this),c)}}})})(jMe);var h5t=jMe.exports;const g5t=yi(h5t);pr.extend(g5t);var v5t=function(t,n){var r=t.text,i=t.mode,o=t.plain,a=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=yo();if(i==="read"){var d=M.jsx(rc,{title:pr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:pr(r).fromNow()});return a?a(r,q({mode:i},c),M.jsx(M.Fragment,{children:d})):M.jsx(M.Fragment,{children:d})}if(i==="edit"||i==="update"){var f=u.getMessage("tableForm.selectPlaceholder","请选择"),p=Gx(c.value),h=M.jsx(hl,q(q(q({ref:n,placeholder:f,showTime:!0},ic(o===void 0?!0:!o)),c),{},{value:p}));return s?s(r,q({mode:i},c),h):h}return null};const _5t=de.forwardRef(v5t);var HMe=de.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,o=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=yo(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var d=M.jsx(DOe,q({ref:t,width:l||32,src:n},a));return i?i(n,q({mode:r},a),d):d}if(r==="edit"||r==="update"){var f=M.jsx(Hr,q({ref:t,placeholder:u},a));return o?o(n,q({mode:r},a),f):f}return null}),y5t=function(t,n){var r=t.border,i=r===void 0?!1:r,o=t.children,a=m.useContext(Pn.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=Di("IndexColumn",function(){return ie({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,d=c.hashId;return u(M.jsx("div",{ref:n,className:Re(l,d,ie(ie({},"".concat(l,"-border"),i),"top-three",o>3)),children:o}))};const Dle=de.forwardRef(y5t);var b5t=["contentRender","numberFormatOptions","numberPopoverRender","open"],S5t=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],zMe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),E5t={style:"currency",currency:"USD"},C5t={style:"currency",currency:"RUB"},w5t={style:"currency",currency:"RSD"},x5t={style:"currency",currency:"MYR"},T5t={style:"currency",currency:"BRL"},R5t={default:zMe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":E5t,"ru-RU":C5t,"ms-MY":x5t,"sr-RS":w5t,"pt-BR":T5t},kle=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=n==null?void 0:n.toString().replaceAll(",","");if(typeof a=="string"){var s=Number(a);if(Number.isNaN(s))return a;a=s}if(!a&&a!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",q(q({},R5t[t||"zh-Hans-CN"]||zMe),{},{maximumFractionDigits:r},i)),u=c.format(a),d=function(y){var _=y.match(/\d+/);if(_){var b=_[0];return y.slice(y.indexOf(b))}else return y},f=d(u),p=u||"",h=Oe(p,1),g=h[0];return["+","-"].includes(g)?"".concat(o||"").concat(g).concat(f):"".concat(o||"").concat(f)}catch{return a}},QF=2,O5t=de.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=It(e,b5t),o=Fn(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),a=Oe(o,2),s=a[0],l=a[1],c=n==null?void 0:n(q(q({},i),{},{value:s})),u=yk(c?r:!1);return M.jsx(Xc,q(q({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(f){return(f==null?void 0:f.parentElement)||document.body},children:M.jsx(Ep,q(q({ref:t},i),{},{value:s,onChange:l}))}))}),I5t=function(t,n){var r,i=t.text,o=t.mode,a=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,d=t.customSymbol,f=d===void 0?l.customSymbol:d,p=t.numberFormatOptions,h=p===void 0?l==null?void 0:l.numberFormatOptions:p,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,y=It(t,S5t),_=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:QF,b=yo();u&&t_[u]&&(b=t_[u]);var S=c||b.getMessage("tableForm.inputPlaceholder","请输入"),C=m.useMemo(function(){if(f)return f;if(!(y.moneySymbol===!1||l.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[f,l.moneySymbol,b,y.moneySymbol]),E=m.useCallback(function(T){var R=new RegExp("\\B(?=(\\d{".concat(3+Math.max(_-QF,0),"})+(?!\\d))"),"g"),N=String(T).split("."),I=Oe(N,2),P=I[0],D=I[1],F=P.replace(R,","),L="";return D&&_>0&&(L=".".concat(D.slice(0,_===void 0?QF:_))),"".concat(F).concat(L)},[_]);if(o==="read"){var w=M.jsx("span",{ref:n,children:kle(u||!1,i,_,h??l.numberFormatOptions,C)});return a?a(i,q({mode:o},l),w):w}if(o==="edit"||o==="update"){var x=M.jsx(O5t,q(q({contentRender:function(R){if(v===!1||!R.value)return null;var N=kle(C||u||!1,"".concat(E(R.value)),_,q(q({},h),{},{notation:"compact"}),C);return typeof v=="function"?v==null?void 0:v(R,N):N},ref:n,precision:_,formatter:function(R){return R&&C?"".concat(C," ").concat(E(R)):R==null?void 0:R.toString()},parser:function(R){return C&&R?R.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),""):R},placeholder:S},ur(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(T){var R,N=T.target.value;C&&N&&(N=N.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),"")),(R=l.onBlur)===null||R===void 0||R.call(l,N)}:void 0}));return s?s(i,q({mode:o},l),x):x}return null};const VMe=de.forwardRef(I5t);var Lle=function(t){return t.map(function(n,r){var i;return de.isValidElement(n)?de.cloneElement(n,q(q({key:r},n==null?void 0:n.props),{},{style:q({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):M.jsx(de.Fragment,{children:n},r)})},N5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.fieldProps,s=m.useContext(Pn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=af.useToken(),d=u.token;if(m.useImperativeHandle(n,function(){return{}}),o){var f=o(r,q({mode:i},a),M.jsx(M.Fragment,{}));return!f||(f==null?void 0:f.length)<1||!Array.isArray(f)?null:M.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:Lle(f)})}return!r||!Array.isArray(r)?de.isValidElement(r)?r:null:M.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:Lle(r)})};const M5t=de.forwardRef(N5t);var A5t=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],P5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=It(t,A5t),c=yo(),u=Fn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),d=Oe(u,2),f=d[0],p=d[1];if(i==="read"){var h=M.jsx(M.Fragment,{children:"-"});return r&&(h=M.jsxs(Zc,{children:[M.jsx("span",{ref:n,children:f?r:"********"}),M.jsx("a",{onClick:function(){return p(!f)},children:f?M.jsx($x,{}):M.jsx(JRe,{})})]})),o?o(r,q({mode:i},s),h):h}if(i==="edit"||i==="update"){var g=M.jsx(Hr.Password,q({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,q({mode:i},s),g):g}return null};const D5t=de.forwardRef(P5t);function k5t(e){return e===0?null:e>0?"+":"-"}function L5t(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function $5t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function eP(e){return qt(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var F5t=function(t,n){var r=t.text,i=t.prefix,o=t.precision,a=t.suffix,s=a===void 0?"%":a,l=t.mode,c=t.showColor,u=c===void 0?!1:c,d=t.render,f=t.renderFormItem,p=t.fieldProps,h=t.placeholder,g=t.showSymbol,v=yo(),y=h||v.getMessage("tableForm.inputPlaceholder","请输入"),_=m.useMemo(function(){return typeof r=="string"&&r.includes("%")?eP(r.replace("%","")):eP(r)},[r]),b=m.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var S=u?{color:L5t(_)}:{},C=M.jsxs("span",{style:S,ref:n,children:[i&&M.jsx("span",{children:i}),b&&M.jsxs(m.Fragment,{children:[k5t(_)," "]}),$5t(Math.abs(_),o),s&&s]});return d?d(r,q(q({mode:l},p),{},{prefix:i,precision:o,showSymbol:b,suffix:s}),C):C}if(l==="edit"||l==="update"){var E=M.jsx(Ep,q({ref:n,formatter:function(x){return x&&i?"".concat(i," ").concat(x).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):x},parser:function(x){return x?x.replace(/.*\s|,/g,""):""},placeholder:y},p));return f?f(r,q({mode:l},p),E):E}return null};const GMe=de.forwardRef(F5t);function B5t(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var U5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=yo(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入"),f=m.useMemo(function(){return typeof r=="string"&&r.includes("%")?eP(r.replace("%","")):eP(r)},[r]);if(i==="read"){var p=M.jsx(VOe,q({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:f,steps:a?10:void 0,status:B5t(f)},l));return o?o(f,q({mode:i},l),p):p}if(i==="edit"||i==="update"){var h=M.jsx(Ep,q({ref:n,placeholder:d},l));return s?s(r,q({mode:i},l),h):h}return null};const WMe=de.forwardRef(U5t);var j5t=["radioType","renderFormItem","mode","render"],H5t=function(t,n){var r,i,o=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=It(t,j5t),u=m.useContext(Pn.ConfigContext),d=u.getPrefixCls,f=d("pro-field-radio"),p=ES(c),h=Oe(p,3),g=h[0],v=h[1],y=h[2],_=m.useRef(),b=(r=hr.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);m.useImperativeHandle(n,function(){return q(q({},_.current||{}),{},{fetchData:function(D){return y(D)}})},[y]);var S=Di("FieldRadioRadio",function(P){return ie(ie(ie({},".".concat(f,"-error"),{span:{color:P.colorError}}),".".concat(f,"-warning"),{span:{color:P.colorWarning}}),".".concat(f,"-vertical"),ie({},"".concat(P.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),C=S.wrapSSR,E=S.hashId;if(g)return M.jsx(Bp,{size:"small"});if(s==="read"){var w=v!=null&&v.length?v==null?void 0:v.reduce(function(P,D){var F;return q(q({},P),{},ie({},(F=D.value)!==null&&F!==void 0?F:"",D.label))},{}):void 0,x=M.jsx(M.Fragment,{children:_S(c.text,Vp(c.valueEnum||w))});if(l){var T;return(T=l(c.text,q({mode:s},c.fieldProps),x))!==null&&T!==void 0?T:null}return x}if(s==="edit"){var R,N=C(M.jsx(ji.Group,q(q({ref:_,optionType:o},c.fieldProps),{},{className:Re((R=c.fieldProps)===null||R===void 0?void 0:R.className,ie(ie({},"".concat(f,"-error"),(b==null?void 0:b.status)==="error"),"".concat(f,"-warning"),(b==null?void 0:b.status)==="warning"),E,"".concat(f,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(a){var I;return(I=a(c.text,q(q({mode:s},c.fieldProps),{},{options:v,loading:g}),N))!==null&&I!==void 0?I:null}return N}return null};const $le=de.forwardRef(H5t);var z5t=function(t,n){var r=t.text,i=t.mode,o=t.light,a=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,d=t.plain,f=t.showTime,p=t.lightLabel,h=t.bordered,g=t.fieldProps,v=yo(),y=Array.isArray(r)?r:[],_=Oe(y,2),b=_[0],S=_[1],C=de.useState(!1),E=Oe(C,2),w=E[0],x=E[1],T=m.useCallback(function(L){if(typeof(g==null?void 0:g.format)=="function"){var B;return g==null||(B=g.format)===null||B===void 0?void 0:B.call(g,L)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),R=b?pr(b).format(T(pr(b))):"",N=S?pr(S).format(T(pr(S))):"";if(i==="read"){var I=M.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[M.jsx("div",{children:R||"-"}),M.jsx("div",{children:N||"-"})]});return l?l(r,q({mode:i},g),M.jsx("span",{children:I})):I}if(i==="edit"||i==="update"){var P=Gx(g.value),D;if(o){var F;D=M.jsx(zp,{label:a,onClick:function(){var B;g==null||(B=g.onOpenChange)===null||B===void 0||B.call(g,!0),x(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:P||w?M.jsx(hl.RangePicker,q(q(q({picker:c,showTime:f,format:s},ic(!1)),g),{},{placeholder:(F=g.placeholder)!==null&&F!==void 0?F:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var B;x(!1),g==null||(B=g.onClear)===null||B===void 0||B.call(g)},value:P,onOpenChange:function(B){var U;P&&x(B),g==null||(U=g.onOpenChange)===null||U===void 0||U.call(g,B)}})):null,allowClear:!1,bordered:h,ref:p,downIcon:P||w?!1:void 0})}else D=M.jsx(hl.RangePicker,q(q(q({ref:n,format:s,showTime:f,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},ic(d===void 0?!0:!d)),g),{},{value:P}));return u?u(r,q({mode:i},g),D):D}return null};const Ry=de.forwardRef(z5t);var V5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=M.jsx(Voe,q(q({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return o?o(r,q({mode:i},s),M.jsx(M.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=M.jsx(Voe,q({allowHalf:!0,ref:n},s));return a?a(r,q({mode:i},s),c):c}return null};const G5t=de.forwardRef(V5t);function W5t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),a=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),a>0&&(n="".concat(a,"分钟").concat(n)),o>0&&(n="".concat(o,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var Y5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=yo(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var d=W5t(Number(r)),f=M.jsx("span",{ref:n,children:d});return o?o(r,q({mode:i},s),f):f}if(i==="edit"||i==="update"){var p=M.jsx(Ep,q({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,q({mode:i},s),p):p}return null};const q5t=de.forwardRef(Y5t);var K5t=["mode","render","renderFormItem","fieldProps","emptyText"],Q5t=function(t,n){var r=t.mode,i=t.render,o=t.renderFormItem,a=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=It(t,K5t),u=m.useRef(),d=ES(t),f=Oe(d,3),p=f[0],h=f[1],g=f[2];if(m.useImperativeHandle(n,function(){return q(q({},u.current||{}),{},{fetchData:function(C){return g(C)}})},[g]),p)return M.jsx(Bp,{size:"small"});if(r==="read"){var v=h!=null&&h.length?h==null?void 0:h.reduce(function(S,C){var E;return q(q({},S),{},ie({},(E=C.value)!==null&&E!==void 0?E:"",C.label))},{}):void 0,y=M.jsx(M.Fragment,{children:_S(c.text,Vp(c.valueEnum||v))});if(i){var _;return(_=i(c.text,q({mode:r},a),M.jsx(M.Fragment,{children:y})))!==null&&_!==void 0?_:l}return y}if(r==="edit"||r==="update"){var b=M.jsx(zRe,q(q({ref:u},ur(a||{},["allowClear"])),{},{options:h}));return o?o(c.text,q(q({mode:r},a),{},{options:h,loading:p}),b):b}return null};const X5t=de.forwardRef(Q5t);var Z5t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return o?o(r,q({mode:i},s),M.jsx(M.Fragment,{children:l})):M.jsx(M.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=M.jsx(rOe,q(q({ref:n},s),{},{style:q({minWidth:120},s==null?void 0:s.style)}));return a?a(r,q({mode:i},s),c):c}return null};const J5t=de.forwardRef(Z5t);var eUt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=yo(),d=m.useMemo(function(){var v,y;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(y=c==null?void 0:c.unCheckedChildren)!==null&&y!==void 0?y:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return o?o(r,q({mode:i},c),M.jsx(M.Fragment,{children:d})):d??"-";if(i==="edit"||i==="update"){var f,p=M.jsx(Zv,q(q({ref:n,size:a?"small":void 0},ur(c,["value"])),{},{checked:(f=c==null?void 0:c.checked)!==null&&f!==void 0?f:c==null?void 0:c.value}));if(a){var h=c.disabled,g=c.bordered;return M.jsx(zp,{label:s,disabled:h,bordered:g,downIcon:!1,value:M.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,q({mode:i},c),p):p}return null};const tUt=de.forwardRef(eUt);var nUt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},d=u.autoFocus,f=u.prefix,p=f===void 0?"":f,h=u.suffix,g=h===void 0?"":h,v=yo(),y=m.useRef();if(m.useImperativeHandle(n,function(){return y.current},[]),m.useEffect(function(){if(d){var E;(E=y.current)===null||E===void 0||E.focus()}},[d]),i==="read"){var _=M.jsxs(M.Fragment,{children:[p,r??c,g]});if(o){var b;return(b=o(r,q({mode:i},s),_))!==null&&b!==void 0?b:c}return _}if(i==="edit"||i==="update"){var S=v.getMessage("tableForm.inputPlaceholder","请输入"),C=M.jsx(Hr,q({ref:y,placeholder:S,allowClear:!0},s));return a?a(r,q({mode:i},s),C):C}return null};const rUt=de.forwardRef(nUt);var iUt=function(t,n){var r=t.text,i=t.fieldProps,o=m.useContext(Pn.ConfigContext),a=o.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=Di("TextArea",function(){return ie({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,d=c.hashId;return u(M.jsx("span",q(q({ref:n,className:Re(d,s,l)},ur(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const oUt=de.forwardRef(iUt);var aUt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=yo();if(i==="read"){var c=M.jsx(oUt,q(q({},t),{},{ref:n}));return o?o(r,q({mode:i},ur(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=M.jsx(Hr.TextArea,q({ref:n,rows:3,onKeyPress:function(f){f.key==="Enter"&&f.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,q({mode:i},s),u):u}return null};const sUt=de.forwardRef(aUt);var lUt=function(t,n){var r=t.text,i=t.mode,o=t.light,a=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,d=t.fieldProps,f=t.lightLabel,p=m.useState(!1),h=Oe(p,2),g=h[0],v=h[1],y=yo(),_=(d==null?void 0:d.format)||s||"HH:mm:ss",b=pr.isDayjs(r)||typeof r=="number";if(i==="read"){var S=M.jsx("span",{ref:n,children:r?pr(r,b?void 0:_).format(_):"-"});return l?l(r,q({mode:i},d),M.jsx("span",{children:S})):S}if(i==="edit"||i==="update"){var C,E=d.disabled,w=d.value,x=Gx(w,_);if(o){var T;C=M.jsx(zp,{onClick:function(){var N;d==null||(N=d.onOpenChange)===null||N===void 0||N.call(d,!0),v(!0)},style:x?{paddingInlineEnd:0}:void 0,label:a,disabled:E,value:x||g?M.jsx(Cp,q(q(q({},ic(!1)),{},{format:s,ref:n},d),{},{placeholder:(T=d.placeholder)!==null&&T!==void 0?T:y.getMessage("tableForm.selectPlaceholder","请选择"),value:x,onOpenChange:function(N){var I;v(N),d==null||(I=d.onOpenChange)===null||I===void 0||I.call(d,N)},open:g})):null,downIcon:x||g?!1:void 0,allowClear:!1,ref:f})}else C=M.jsx(hl.TimePicker,q(q(q({ref:n,format:s},ic(u===void 0?!0:!u)),d),{},{value:x}));return c?c(r,q({mode:i},d),C):C}return null},cUt=function(t,n){var r=t.text,i=t.light,o=t.label,a=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,p=yo(),h=m.useState(!1),g=Oe(h,2),v=g[0],y=g[1],_=(f==null?void 0:f.format)||l||"HH:mm:ss",b=Array.isArray(r)?r:[],S=Oe(b,2),C=S[0],E=S[1],w=pr.isDayjs(C)||typeof C=="number",x=pr.isDayjs(E)||typeof E=="number",T=C?pr(C,w?void 0:_).format(_):"",R=E?pr(E,x?void 0:_).format(_):"";if(a==="read"){var N=M.jsxs("div",{ref:n,children:[M.jsx("div",{children:T||"-"}),M.jsx("div",{children:R||"-"})]});return c?c(r,q({mode:a},f),M.jsx("span",{children:N})):N}if(a==="edit"||a==="update"){var I=Gx(f.value,_),P;if(i){var D=f.disabled,F=f.placeholder,L=F===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:F;P=M.jsx(zp,{onClick:function(){var U;f==null||(U=f.onOpenChange)===null||U===void 0||U.call(f,!0),y(!0)},style:I?{paddingInlineEnd:0}:void 0,label:o,disabled:D,placeholder:L,value:I||v?M.jsx(Cp.RangePicker,q(q(q({},ic(!1)),{},{format:l,ref:n},f),{},{placeholder:L,value:I,onOpenChange:function(U){var G;y(U),f==null||(G=f.onOpenChange)===null||G===void 0||G.call(f,U)},open:v})):null,downIcon:I||v?!1:void 0,allowClear:!1,ref:s})}else P=M.jsx(Cp.RangePicker,q(q(q({ref:n,format:l},ic(d===void 0?!0:!d)),f),{},{value:I}));return u?u(r,q({mode:a},f),P):P}return null},uUt=de.forwardRef(cUt);const dUt=de.forwardRef(lUt);var fUt=["radioType","renderFormItem","mode","light","label","render"],pUt=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],mUt=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,o=t.light,a=t.label,s=t.render,l=It(t,fUt),c=m.useContext(Pn.ConfigContext),u=c.getPrefixCls,d=u("pro-field-tree-select"),f=m.useRef(null),p=m.useState(!1),h=Oe(p,2),g=h[0],v=h[1],y=l.fieldProps,_=y.onSearch,b=y.onClear,S=y.onChange,C=y.onBlur,E=y.showSearch,w=y.autoClearSearchValue;y.treeData;var x=y.fetchDataOnSearch,T=y.searchValue,R=It(y,pUt),N=yo(),I=ES(q(q({},l),{},{defaultKeyWords:T})),P=Oe(I,3),D=P[0],F=P[1],L=P[2],B=Fn(void 0,{onChange:_,value:T}),U=Oe(B,2),G=U[0],V=U[1];m.useImperativeHandle(n,function(){return q(q({},f.current||{}),{},{fetchData:function(fe){return L(fe)}})});var W=m.useMemo(function(){if(i==="read"){var ue=(R==null?void 0:R.fieldNames)||{},fe=ue.value,se=fe===void 0?"value":fe,pe=ue.label,_e=pe===void 0?"label":pe,Te=ue.children,xe=Te===void 0?"children":Te,ge=new Map,Ce=function ye(be){if(!(be!=null&&be.length))return ge;for(var Ee=be.length,Me=0;Me<Ee;){var X=be[Me++];ge.set(X[se],X[_e]),ye(X[xe])}return ge};return Ce(F)}},[R==null?void 0:R.fieldNames,i,F]),$=function(fe,se,pe){E&&w&&(L(void 0),V(void 0)),S==null||S(fe,se,pe)};if(i==="read"){var H=M.jsx(M.Fragment,{children:_S(l.text,Vp(l.valueEnum||W))});if(s){var K;return(K=s(l.text,q({mode:i},R),H))!==null&&K!==void 0?K:null}return H}if(i==="edit"){var re,Q=Array.isArray(R==null?void 0:R.value)?R==null||(re=R.value)===null||re===void 0?void 0:re.length:0,A=M.jsx(Bp,{spinning:D,children:M.jsx(F_,q(q({open:g,onDropdownVisibleChange:function(fe){var se;R==null||(se=R.onDropdownVisibleChange)===null||se===void 0||se.call(R,fe),v(fe)},ref:f,popupMatchSelectWidth:!o,placeholder:N.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:o?function(ue){var fe;if(Q<2)return M.jsx(M.Fragment,{children:ue.label});var se=R==null||(fe=R.value)===null||fe===void 0?void 0:fe.findIndex(function(pe){return pe===ue.value||pe.value===ue.value});return M.jsxs(M.Fragment,{children:[ue.label," ",se<Q-1?",":""]})}:void 0,bordered:!o},R),{},{treeData:F,showSearch:E,style:q({minWidth:60},R.style),allowClear:R.allowClear!==!1,searchValue:G,autoClearSearchValue:w,onClear:function(){b==null||b(),L(void 0),E&&V(void 0)},onChange:$,onSearch:function(fe){x&&l!==null&&l!==void 0&&l.request&&L(fe),V(fe)},onBlur:function(fe){V(void 0),L(void 0),C==null||C(fe)},className:Re(R==null?void 0:R.className,d)}))});if(r){var k;A=(k=r(l.text,q(q({mode:i},R),{},{options:F,loading:D}),A))!==null&&k!==void 0?k:null}if(o){var Z,ne=R.disabled,oe=R.placeholder,ae=!!R.value&&((Z=R.value)===null||Z===void 0?void 0:Z.length)!==0;return M.jsx(zp,{label:a,disabled:ne,placeholder:oe,onClick:function(){var fe;v(!0),R==null||(fe=R.onDropdownVisibleChange)===null||fe===void 0||fe.call(R,!0)},bordered:l.bordered,value:ae||g?A:null,style:ae?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return A}return null};const hUt=de.forwardRef(mUt);function Ks(e){var t=m.useState(!1),n=Oe(t,2),r=n[0],i=n[1],o=m.useRef(null),a=m.useCallback(function(c){var u,d,f=(u=o.current)===null||u===void 0||(u=u.labelRef)===null||u===void 0||(u=u.current)===null||u===void 0?void 0:u.contains(c.target),p=(d=o.current)===null||d===void 0||(d=d.clearRef)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.contains(c.target);return f&&!p},[o]),s=function(u){a(u)&&i(!0)},l=function(){i(!1)};return e.isLight?M.jsx("div",{onMouseDown:s,onMouseUp:l,children:de.cloneElement(e.children,{labelTrigger:r,lightLabel:o})}):M.jsx(M.Fragment,{children:e.children})}var YMe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,function(){var n="day";return function(r,i,o){var a=function(c){return c.add(4-c.isoWeekday(),n)},s=i.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),n);var u,d,f,p,h=a(this),g=(u=this.isoWeekYear(),d=this.$u,f=(d?o.utc:o)().year(u).startOf("year"),p=4-f.isoWeekday(),f.isoWeekday()>4&&(p+=7),f.add(p,n));return h.diff(g,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;return d.p(c)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(YMe);var gUt=YMe.exports;const vUt=yi(gUt);var qMe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gi,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"};return function(r,i,o){var a=i.prototype,s=a.format;o.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,h,g){var v=g&&g.toUpperCase();return h||f[g]||n[g]||f[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,_,b){return _||b.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(qMe);var _Ut=qMe.exports;const yUt=yi(_Ut);var bUt=["fieldProps"],SUt=["fieldProps"],EUt=["fieldProps"],CUt=["fieldProps"],wUt=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],xUt=["placeholder"];pr.extend(vTe);pr.extend(STe);pr.extend(vUt);pr.extend(fq);pr.extend(hTe);pr.extend(yUt);var TUt=function(t,n,r){var i=CNe(r.fieldProps);return n.type==="progress"?M.jsx(WMe,q(q({},r),{},{text:t,fieldProps:q({status:n.status?n.status:void 0},i)})):n.type==="money"?M.jsx(VMe,q(q({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?M.jsx(GMe,q(q({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?M.jsx(HMe,q(q({},r),{},{text:t,width:n.width})):t},RUt=function(t,n,r,i){var o=r.mode,a=o===void 0?"read":o,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&a==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,q({mode:a},c),M.jsx(M.Fragment,{children:l})):M.jsx(M.Fragment,{children:l})}if(delete r.emptyText,qt(n)==="object")return TUt(t,n,r);var d=i&&i[n];if(d){if(delete r.ref,a==="read"){var f;return(f=d.render)===null||f===void 0?void 0:f.call(d,t,q(q({text:t},r),{},{mode:a||"read"}),M.jsx(M.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=d.renderFormItem)===null||p===void 0?void 0:p.call(d,t,q({text:t},r),M.jsx(M.Fragment,{children:t}))}}if(n==="money")return M.jsx(VMe,q(q({},r),{},{text:t}));if(n==="date")return M.jsx(Ks,{isLight:r.light,children:M.jsx(Ty,q({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return M.jsx(Ks,{isLight:r.light,children:M.jsx(Ty,q({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var h=r.fieldProps,g=It(r,bUt);return M.jsx(Ks,{isLight:r.light,children:M.jsx(Ry,q({text:t,format:"YYYY-W",showTime:!0,fieldProps:q({picker:"week"},h)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,y=It(r,SUt);return M.jsx(Ks,{isLight:r.light,children:M.jsx(Ry,q({text:t,format:"YYYY-MM",showTime:!0,fieldProps:q({picker:"month"},v)},y))})}if(n==="dateQuarterRange"){var _=r.fieldProps,b=It(r,EUt);return M.jsx(Ks,{isLight:r.light,children:M.jsx(Ry,q({text:t,format:"YYYY-Q",showTime:!0,fieldProps:q({picker:"quarter"},_)},b))})}if(n==="dateYearRange"){var S=r.fieldProps,C=It(r,CUt);return M.jsx(Ks,{isLight:r.light,children:M.jsx(Ry,q({text:t,format:"YYYY",showTime:!0,fieldProps:q({picker:"year"},S)},C))})}return n==="dateMonth"?M.jsx(Ks,{isLight:r.light,children:M.jsx(Ty,q({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?M.jsx(Ks,{isLight:r.light,children:M.jsx(Ty,q({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?M.jsx(Ks,{isLight:r.light,children:M.jsx(Ty,q({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?M.jsx(Ry,q({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?M.jsx(Ks,{isLight:r.light,children:M.jsx(Ty,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?M.jsx(Ks,{isLight:r.light,children:M.jsx(Ry,q({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?M.jsx(Ks,{isLight:r.light,children:M.jsx(dUt,q({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?M.jsx(Ks,{isLight:r.light,children:M.jsx(uUt,q({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?M.jsx(_5t,q({text:t},r)):n==="index"?M.jsx(Dle,{children:t+1}):n==="indexBorder"?M.jsx(Dle,{border:!0,children:t+1}):n==="progress"?M.jsx(WMe,q(q({},r),{},{text:t})):n==="percent"?M.jsx(GMe,q({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?M.jsx(Bh,{src:t,size:22,shape:"circle"}):n==="code"?M.jsx(bse,q({text:t},r)):n==="jsonCode"?M.jsx(bse,q({text:t,language:"json"},r)):n==="textarea"?M.jsx(sUt,q({text:t},r)):n==="digit"?M.jsx(f5t,q({text:t},r)):n==="digitRange"?M.jsx(m5t,q({text:t},r)):n==="second"?M.jsx(q5t,q({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?M.jsx(Ks,{isLight:r.light,children:M.jsx(kRt,q({text:t},r))}):n==="checkbox"?M.jsx(HRt,q({text:t},r)):n==="radio"?M.jsx($le,q({text:t},r)):n==="radioButton"?M.jsx($le,q({radioType:"button",text:t},r)):n==="rate"?M.jsx(G5t,q({text:t},r)):n==="slider"?M.jsx(J5t,q({text:t},r)):n==="switch"?M.jsx(tUt,q({text:t},r)):n==="option"?M.jsx(M5t,q({text:t},r)):n==="password"?M.jsx(D5t,q({text:t},r)):n==="image"?M.jsx(HMe,q({text:t},r)):n==="cascader"?M.jsx(FRt,q({text:t},r)):n==="treeSelect"?M.jsx(hUt,q({text:t},r)):n==="color"?M.jsx(l5t,q({text:t},r)):n==="segmented"?M.jsx(X5t,q({text:t},r)):M.jsx(rUt,q({text:t},r))},OUt=function(t,n){var r,i,o,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,d=t.mode,f=d===void 0?"read":d,p=t.onChange,h=t.renderFormItem,g=t.value,v=t.readonly,y=t.fieldProps,_=It(t,wUt),b=m.useContext(Rh),S=Ku(function(){for(var w,x=arguments.length,T=new Array(x),R=0;R<x;R++)T[R]=arguments[R];y==null||(w=y.onChange)===null||w===void 0||w.call.apply(w,[y].concat(T)),p==null||p.apply(void 0,T)}),C=tl(function(){return(g!==void 0||y)&&q(q({value:g},$c(y)),{},{onChange:S})},[g,y,S]),E=RUt(f==="edit"?(r=(i=C==null?void 0:C.value)!==null&&i!==void 0?i:l)!==null&&r!==void 0?r:"":(o=l??(C==null?void 0:C.value))!==null&&o!==void 0?o:"",u||"text",$c(q(q({ref:n},_),{},{mode:v?"read":f,renderFormItem:h?function(w,x,T){x.placeholder;var R=It(x,xUt),N=h(w,R,T);return de.isValidElement(N)?de.cloneElement(N,q(q({},C),N.props||{})):N}:void 0,placeholder:h?void 0:(a=_==null?void 0:_.placeholder)!==null&&a!==void 0?a:C==null?void 0:C.placeholder,fieldProps:CNe($c(q(q({},C),{},{placeholder:h?void 0:(s=_==null?void 0:_.placeholder)!==null&&s!==void 0?s:C==null?void 0:C.placeholder})))})),b.valueTypeMap||{});return M.jsx(de.Fragment,{children:E})},IUt=de.forwardRef(OUt),AK=de.createContext({mode:"edit"}),NUt=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],MUt=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var i=t.autoFocus;t.isDefaultDom;var o=t.render,a=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var c=t.onChange,u=t.valueEnum,d=t.params;t.name;var f=t.dependenciesValues,p=t.cacheForSwr,h=p===void 0?!1:p,g=t.valuePropName,v=g===void 0?"value":g,y=It(t,NUt),_=m.useContext(AK),b=m.useMemo(function(){return f&&y.request?q(q({},d),f||{}):d},[f,d,y.request]),S=Ku(function(){if(n!=null&&n.onChange){for(var w,x=arguments.length,T=new Array(x),R=0;R<x;R++)T[R]=arguments[R];n==null||(w=n.onChange)===null||w===void 0||w.call.apply(w,[n].concat(T));return}}),C=m.useMemo(function(){return q(q({autoFocus:i},n),{},{onChange:S})},[i,n,S]),E=m.useMemo(function(){if(r)return de.isValidElement(r)?de.cloneElement(r,q(q({},y),{},{onChange:function(){for(var x=arguments.length,T=new Array(x),R=0;R<x;R++)T[R]=arguments[R];if(n!=null&&n.onChange){var N;n==null||(N=n.onChange)===null||N===void 0||N.call.apply(N,[n].concat(T));return}c==null||c.apply(void 0,T)}},(r==null?void 0:r.props)||{})):M.jsx(M.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,y]);return E||M.jsx(IUt,q(q(q({text:n==null?void 0:n[v],render:o,renderFormItem:s,valueType:l||"text",cacheForSwr:h,fieldProps:C,valueEnum:r_(u)},a),y),{},{mode:(a==null?void 0:a.mode)||_.mode||"edit",params:b}))},Bs=wk(m.memo(MUt,function(e,t){return Iv(t,e,["onChange","onBlur"])})),AUt=["options","fieldProps","proFieldProps","valueEnum"],PUt=de.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,i=e.proFieldProps,o=e.valueEnum,a=It(e,AUt);return M.jsx(Bs,q({ref:t,valueType:"checkbox",valueEnum:r_(o,void 0),fieldProps:q({options:n},r),lightProps:q({labelFormatter:function(){return M.jsx(Bs,q({ref:t,valueType:"checkbox",mode:"read",valueEnum:r_(o,void 0),filedConfig:{customLightMode:!0},fieldProps:q({options:n},r),proFieldProps:i},a))}},a.lightProps),proFieldProps:i},a))}),DUt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return M.jsx(P_,q(q({ref:t},n),{},{children:r}))}),kUt=wk(DUt,{valuePropName:"checked"}),Fk=kUt;Fk.Group=PUt;var LUt=["proFieldProps","fieldProps"],Fle="date",$Ut=de.forwardRef(function(e,t){var n=e.proFieldProps,r=e.fieldProps,i=It(e,LUt),o=m.useContext(gd);return M.jsx(Bs,q({ref:t,valueType:Fle,fieldProps:q({getPopupContainer:o.getPopupContainer},r),proFieldProps:n,filedConfig:{valueType:Fle,customLightMode:!0}},i))}),FUt=["proFieldProps","fieldProps"],Ble="dateMonth",BUt=de.forwardRef(function(e,t){var n=e.proFieldProps,r=e.fieldProps,i=It(e,FUt),o=m.useContext(gd);return M.jsx(Bs,q({ref:t,valueType:Ble,fieldProps:q({getPopupContainer:o.getPopupContainer},r),proFieldProps:n,filedConfig:{valueType:Ble,customLightMode:!0}},i))}),UUt=["fieldProps"],Ule="dateQuarter",jUt=de.forwardRef(function(e,t){var n=e.fieldProps,r=It(e,UUt),i=m.useContext(gd);return M.jsx(Bs,q({ref:t,valueType:Ule,fieldProps:q({getPopupContainer:i.getPopupContainer},n),filedConfig:{valueType:Ule,customLightMode:!0}},r))}),HUt=["proFieldProps","fieldProps"],jle="dateWeek",zUt=de.forwardRef(function(e,t){var n=e.proFieldProps,r=e.fieldProps,i=It(e,HUt),o=m.useContext(gd);return M.jsx(Bs,q({ref:t,valueType:jle,fieldProps:q({getPopupContainer:o.getPopupContainer},r),proFieldProps:n,filedConfig:{valueType:jle,customLightMode:!0}},i))}),VUt=["proFieldProps","fieldProps"],Hle="dateYear",GUt=de.forwardRef(function(e,t){var n=e.proFieldProps,r=e.fieldProps,i=It(e,VUt),o=m.useContext(gd);return M.jsx(Bs,q({ref:t,valueType:Hle,fieldProps:q({getPopupContainer:o.getPopupContainer},r),proFieldProps:n,filedConfig:{valueType:Hle,customLightMode:!0}},i))}),NS=$Ut;NS.Week=zUt;NS.Month=BUt;NS.Quarter=jUt;NS.Year=GUt;NS.displayName="ProFormComponent";var PK=de.createContext({}),WUt=["name","originDependencies","children","ignoreFormListField"],KMe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,o=t.children,a=t.ignoreFormListField,s=It(t,WUt),l=m.useContext(vNe),c=m.useContext(PK),u=m.useMemo(function(){return n.map(function(d){var f,p=[d];return!a&&c.name!==void 0&&(f=c.listName)!==null&&f!==void 0&&f.length&&p.unshift(c.listName),p.flat(1)})},[c.listName,c.name,a,n==null?void 0:n.toString()]);return M.jsx(hr.Item,q(q({},s),{},{noStyle:!0,shouldUpdate:function(f,p,h){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,f,p,h)}return u.some(function(v){return!Iv(ia(f,v),ia(p,v))})},children:function(f){for(var p={},h=0;h<n.length;h++){var g,v=u[h],y=i[h],_=[y].flat(1),b=(g=l.getFieldFormatValueObject)===null||g===void 0?void 0:g.call(l,v);if(b&&Object.keys(b).length)p=ENe({},p,b),ia(b,v)&&(p=jo(p,_,ia(b,v)));else{var S;b=(S=f.getFieldValue)===null||S===void 0?void 0:S.call(f,v),typeof b<"u"&&(p=jo(p,_,b))}}return o==null?void 0:o(p,q(q({},f),l))}}))};KMe.displayName="ProFormDependency";var YUt=["fieldProps","min","proFieldProps","max"],qUt=function(t,n){var r=t.fieldProps,i=t.min,o=t.proFieldProps,a=t.max,s=It(t,YUt);return M.jsx(Bs,q({valueType:"digit",fieldProps:q({min:i,max:a},r),ref:n,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:o},s))},KUt=de.forwardRef(qUt),QUt=["children","onChange","onBlur","ignoreFormItem","valuePropName"],XUt=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],ZUt=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],JUt=de.createContext({}),ejt=function(t){var n,r,i=t.children,o=t.onChange,a=t.onBlur;t.ignoreFormItem;var s=t.valuePropName,l=s===void 0?"value":s,c=It(t,QUt),u=(i==null||(n=i.type)===null||n===void 0?void 0:n.displayName)!=="ProFormComponent",d=!de.isValidElement(i),f=Ku(function(){for(var _,b,S,C,E=arguments.length,w=new Array(E),x=0;x<E;x++)w[x]=arguments[x];o==null||o.apply(void 0,w),!u&&(d||(i==null||(_=i.props)===null||_===void 0||(b=_.onChange)===null||b===void 0||b.call.apply(b,[_].concat(w)),i==null||(S=i.props)===null||S===void 0||(S=S.fieldProps)===null||S===void 0||(C=S.onChange)===null||C===void 0||C.call.apply(C,[S].concat(w))))}),p=Ku(function(){var _,b,S,C;if(!u&&!d){for(var E=arguments.length,w=new Array(E),x=0;x<E;x++)w[x]=arguments[x];a==null||a.apply(void 0,w),i==null||(_=i.props)===null||_===void 0||(b=_.onBlur)===null||b===void 0||b.call.apply(b,[_].concat(w)),i==null||(S=i.props)===null||S===void 0||(S=S.fieldProps)===null||S===void 0||(C=S.onBlur)===null||C===void 0||C.call.apply(C,[S].concat(w))}}),h=tl(function(){var _;return ur((i==null||(_=i.props)===null||_===void 0?void 0:_.fieldProps)||{},["onBlur","onChange"])},[ur((i==null||(r=i.props)===null||r===void 0?void 0:r.fieldProps)||{},["onBlur","onChange"])]),g=t[l],v=m.useMemo(function(){if(!u&&!d)return $c(q(q(ie({id:c.id},l,g),h),{},{onBlur:p,onChange:f}))},[g,h,p,f,c.id,l]),y=m.useMemo(function(){if(!v&&de.isValidElement(i))return function(){for(var _,b,S=arguments.length,C=new Array(S),E=0;E<S;E++)C[E]=arguments[E];o==null||o.apply(void 0,C),i==null||(_=i.props)===null||_===void 0||(b=_.onChange)===null||b===void 0||b.call.apply(b,[_].concat(C))}},[v,i,o]);return de.isValidElement(i)?de.cloneElement(i,$c(q(q(q({},c),{},ie({},l,t[l]),i.props),{},{onChange:y,fieldProps:v,onBlur:u&&!d&&a}))):M.jsx(M.Fragment,{children:i})},zle=function(t){var n=t.children,r=t.addonAfter,i=t.addonBefore,o=t.valuePropName,a=t.addonWarpStyle,s=t.convertValue,l=t.help,c=It(t,XUt),u=m.useMemo(function(){var d=function(p){var h,g=(h=s==null?void 0:s(p,c.name))!==null&&h!==void 0?h:p;return c.getValueProps?c.getValueProps(g):ie({},o||"value",g)};return!s&&!c.getValueProps&&(d=void 0),!r&&!i?M.jsx(hr.Item,q(q({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,getValueProps:d,_internalItemRender:{mark:"pro_table_render",render:function(p,h){return M.jsxs(M.Fragment,{children:[h.input,typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):h.errorList,h.extra]})}},children:n})):M.jsx(hr.Item,q(q(q({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,_internalItemRender:{mark:"pro_table_render",render:function(p,h){return M.jsxs(M.Fragment,{children:[M.jsxs("div",{style:q({display:"flex",alignItems:"center",flexWrap:"wrap"},a),children:[i?M.jsx("div",{style:{marginInlineEnd:8},children:i}):null,h.input,r?M.jsx("div",{style:{marginInlineStart:8},children:r}):null]}),typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):h.errorList,h.extra]})}}},c),{},{getValueProps:d,children:n}))},[r,i,n,s==null?void 0:s.toString(),c]);return M.jsx(JUt.Provider,{value:{name:c.name,label:c.label},children:u})},QMe=function(t){var n,r,i,o,a=(Pn==null||(n=Pn.useConfig)===null||n===void 0?void 0:n.call(Pn))||{componentSize:"middle"},s=a.componentSize,l=s,c=t.valueType,u=t.transform,d=t.dataFormat,f=t.ignoreFormItem,p=t.lightProps;t.children;var h=It(t,ZUt),g=m.useContext(PK),v=m.useMemo(function(){return t.name===void 0?t.name:g.name!==void 0?[g.name,t.name].flat(1):t.name},[g.name,t.name]),y=de.useContext(gd),_=y.setFieldValueType,b=y.formItemProps;m.useEffect(function(){!_||!t.name||_([g.listName,t.name].flat(1).filter(function(T){return T!==void 0}),{valueType:c||"text",dateFormat:d,transform:u})},[g.listName,v,d,t.name,_,u,c]);var S=de.isValidElement(t.children)&&Ewt(c||t.children.props.valueType),C=m.useMemo(function(){return!!(!(p!=null&&p.light)||p!=null&&p.customLightMode||S)},[p==null?void 0:p.customLightMode,S,p==null?void 0:p.light]);if(typeof t.children=="function"){var E;return m.createElement(zle,q(q({},h),{},{name:v,key:h.proFormFieldKey||((E=h.name)===null||E===void 0?void 0:E.toString())}),t.children)}var w=M.jsx(ejt,{valuePropName:t.valuePropName,children:t.children},h.proFormFieldKey||((r=h.name)===null||r===void 0?void 0:r.toString())),x=C?w:m.createElement(Ojt,q(q({},p),{},{key:h.proFormFieldKey||((i=h.name)===null||i===void 0?void 0:i.toString()),size:l}),w);return f?M.jsx(M.Fragment,{children:x}):M.jsx(zle,q(q(q({},b),h),{},{name:v,isListField:g.name!==void 0,children:x}),h.proFormFieldKey||((o=h.name)===null||o===void 0?void 0:o.toString()))},tjt=function(t){return ie({},t.componentCls,{"&-title":{marginBlockEnd:t.marginXL,fontWeight:"bold"},"&-container":ie({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ie(ie(ie(ie({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function njt(e){return Di("ProFormGroup",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[tjt(n)]})}var XMe=de.forwardRef(function(e,t){var n=de.useContext(gd),r=n.groupProps,i=q(q({},r),e),o=i.children,a=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,d=u===void 0?e.label:u,f=i.tooltip,p=i.align,h=p===void 0?"start":p,g=i.direction,v=i.size,y=v===void 0?32:v,_=i.titleStyle,b=i.titleRender,S=i.spaceProps,C=i.extra,E=i.autoFocus,w=Fn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),x=Oe(w,2),T=x[0],R=x[1],N=m.useContext(Pn.ConfigContext),I=N.getPrefixCls,P=pK(e),D=P.ColWrapper,F=P.RowWrapper,L=I("pro-form-group"),B=njt(L),U=B.wrapSSR,G=B.hashId,V=a&&M.jsx(Ch,{style:{marginInlineEnd:8},rotate:T?void 0:90}),W=M.jsx(swt,{label:V?M.jsxs("div",{children:[V,d]}):d,tooltip:f}),$=m.useCallback(function(k){var Z=k.children;return M.jsx(Zc,q(q({},S),{},{className:Re("".concat(L,"-container ").concat(G),S==null?void 0:S.className),size:y,align:h,direction:g,style:q({rowGap:0},S==null?void 0:S.style),children:Z}))},[h,L,g,G,y,S]),H=b?b(W,e):W,K=m.useMemo(function(){var k=[],Z=de.Children.toArray(o).map(function(ne,oe){var ae;return de.isValidElement(ne)&&ne!==null&&ne!==void 0&&(ae=ne.props)!==null&&ae!==void 0&&ae.hidden?(k.push(ne),null):oe===0&&de.isValidElement(ne)&&E?de.cloneElement(ne,q(q({},ne.props),{},{autoFocus:E})):ne});return[M.jsx(F,{Wrapper:$,children:Z},"children"),k.length>0?M.jsx("div",{style:{display:"none"},children:k}):null]},[o,F,$,E]),re=Oe(K,2),Q=re[0],A=re[1];return U(M.jsx(D,{children:M.jsxs("div",{className:Re(L,G,ie({},"".concat(L,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[A,(d||f||C)&&M.jsx("div",{className:"".concat(L,"-title ").concat(G).trim(),style:_,onClick:function(){R(!T)},children:C?M.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[H,M.jsx("span",{onClick:function(Z){return Z.stopPropagation()},children:C})]}):H}),M.jsx("div",{style:{display:a&&T?"none":void 0},children:Q})]})}))});XMe.displayName="ProForm-Group";var rjt=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],ijt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.options,i=e.radioType,o=e.layout,a=e.proFieldProps,s=e.valueEnum,l=It(e,rjt);return M.jsx(Bs,q(q({valueType:i==="button"?"radioButton":"radio",ref:t,valueEnum:r_(s,void 0)},l),{},{fieldProps:q({options:r,layout:o},n),proFieldProps:a,filedConfig:{customLightMode:!0}}))}),ojt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return M.jsx(ji,q(q({},n),{},{ref:t,children:r}))}),ajt=wk(ojt,{valuePropName:"checked",ignoreWidth:!0}),Bk=ajt;Bk.Group=ijt;Bk.Button=ji.Button;Bk.displayName="ProFormComponent";var sjt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],ljt=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],cjt=function(t,n){var r=t.fieldProps,i=t.children,o=t.params,a=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,d=t.options,f=It(t,sjt),p=m.useContext(gd);return M.jsx(Bs,q(q({valueEnum:r_(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({options:d,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},f),{},{children:i}))},ujt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,o=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=It(e,ljt),d=q({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),f=m.useContext(gd);return M.jsx(Bs,q(q({valueEnum:r_(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:q({getPopupContainer:f.getPopupContainer},d),ref:t,proFieldProps:o},u),{},{children:r}))}),djt=de.forwardRef(cjt),fjt=ujt,o_=djt;o_.SearchSelect=fjt;o_.displayName="ProFormComponent";var pjt=function(t){var n=yo(),r=hr.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,o=t.render,a=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,d=af.useToken(),f=d.token,p=function(){r.submit(),i==null||i()},h=function(){r.resetFields(),a==null||a()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,y=l.resetText,_=y===void 0?n.getMessage("tableForm.reset","重置"):y,b=[];u!==!1&&b.push(m.createElement(On,q(q({},ur(u??{},["preventDefault"])),{},{key:"rest",onClick:function(E){var w;u!=null&&u.preventDefault||h(),u==null||(w=u.onClick)===null||w===void 0||w.call(u,E)}}),_)),c!==!1&&b.push(m.createElement(On,q(q({type:"primary"},ur(c||{},["preventDefault"])),{},{key:"submit",onClick:function(E){var w;c!=null&&c.preventDefault||p(),c==null||(w=c.onClick)===null||w===void 0||w.call(c,E)}}),v));var S=o?o(q(q({},t),{},{form:r,submit:p,reset:h}),b):b;return S?Array.isArray(S)?(S==null?void 0:S.length)<1?null:(S==null?void 0:S.length)===1?S[0]:M.jsx("div",{style:{display:"flex",gap:f.marginXS,alignItems:"center"},children:S}):S:null},mjt=["fieldProps","proFieldProps"],hjt=["fieldProps","proFieldProps"],tP="text",gjt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=It(t,mjt);return M.jsx(Bs,q({valueType:tP,fieldProps:n,filedConfig:{valueType:tP},proFieldProps:r},i))},vjt=function(t){var n=Fn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Oe(n,2),i=r[0],o=r[1];return M.jsx(hr.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return M.jsx(Xc,q(q({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return o(d)},content:M.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?M.jsx("div",{style:{marginTop:10},children:M.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},_jt=function(t){var n=t.fieldProps,r=t.proFieldProps,i=It(t,hjt),o=m.useState(!1),a=Oe(o,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&i.name?M.jsx(vjt,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:M.jsx("div",{children:M.jsx(Bs,q({valueType:"password",fieldProps:q(q({},ur(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var d;n==null||(d=n.onBlur)===null||d===void 0||d.call(n,u),l(!1)},onClick:function(u){var d;n==null||(d=n.onClick)===null||d===void 0||d.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:tP}},i))})}):M.jsx(Bs,q({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:tP}},i))},Jr=gjt;Jr.Password=_jt;Jr.displayName="ProFormComponent";var yjt=["fieldProps","proFieldProps"],bjt=function(t,n){var r=t.fieldProps,i=t.proFieldProps,o=It(t,yjt);return M.jsx(Bs,q({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},o))};const iT=de.forwardRef(bjt);var Sjt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Ejt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],pN=function(t,n,r){return t===!0?n:r_(t,n,r)},Vle=function(t){return!t||Array.isArray(t)?t:[t]};function Cjt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var o=e.transformKey,a=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,d=u===void 0?{}:u,f=e.syncToUrl,p=e.onUrlSearchChange,h=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var y=e.autoFocusFirstInput,_=y===void 0?!0:y,b=e.grid,S=e.rowProps,C=e.colProps,E=It(e,Sjt),w=hr.useFormInstance(),x=(Pn==null||(t=Pn.useConfig)===null||t===void 0?void 0:t.call(Pn))||{componentSize:"middle"},T=x.componentSize,R=m.useRef(l||w),N=pK({grid:b,rowProps:S}),I=N.RowWrapper,P=Ku(function(){return w}),D=m.useMemo(function(){return{getFieldsFormatValue:function(W){var $;return o(($=P())===null||$===void 0?void 0:$.getFieldsValue(W),v)},getFieldFormatValue:function(){var W,$=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=Vle($);if(!H)throw new Error("nameList is require");var K=(W=P())===null||W===void 0?void 0:W.getFieldValue(H),re=H?jo({},H,K):K,Q=at(H);return Q.shift(),ia(o(re,v,Q),H)},getFieldFormatValueObject:function(W){var $,H=Vle(W),K=($=P())===null||$===void 0?void 0:$.getFieldValue(H),re=H?jo({},H,K):K;return o(re,v,H)},validateFieldsReturnFormatValue:function(){var V=Oo(yr().mark(function $(H){var K,re,Q;return yr().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!(!Array.isArray(H)&&H)){k.next=2;break}throw new Error("nameList must be array");case 2:return k.next=4,(K=P())===null||K===void 0?void 0:K.validateFields(H);case 4:return re=k.sent,Q=o(re,v),k.abrupt("return",Q||{});case 7:case"end":return k.stop()}},$)}));function W($){return V.apply(this,arguments)}return W}()}},[v,o]),F=m.useMemo(function(){return de.Children.toArray(n).map(function(V,W){return W===0&&de.isValidElement(V)&&_?de.cloneElement(V,q(q({},V.props),{},{autoFocus:_})):V})},[_,n]),L=m.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),B=m.useMemo(function(){if(i!==!1)return M.jsx(pjt,q(q({},L),{},{onReset:function(){var W,$,H=o((W=R.current)===null||W===void 0?void 0:W.getFieldsValue(),v);if(L==null||($=L.onReset)===null||$===void 0||$.call(L,H),h==null||h(H),f){var K,re=Object.keys(o((K=R.current)===null||K===void 0?void 0:K.getFieldsValue(),!1)).reduce(function(Q,A){return q(q({},Q),{},ie({},A,H[A]||void 0))},d);p(pN(f,re||{},"set"))}},submitButtonProps:q({loading:c},L.submitButtonProps)}),"submitter")},[i,L,c,o,v,h,f,d,p]),U=m.useMemo(function(){var V=b?M.jsx(I,{children:F}):F;return r?r(V,B,R.current):V},[b,I,F,r,B]),G=Swt(e.initialValues);return m.useEffect(function(){if(!(f||!e.initialValues||!G||E.request)){var V=Iv(e.initialValues,G);FM(V,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? <Form/> : null "),FM(V,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ")}},[e.initialValues]),m.useImperativeHandle(a,function(){return q(q({},R.current),D)},[D,R.current]),m.useEffect(function(){var V,W,$=o((V=R.current)===null||V===void 0||(W=V.getFieldsValue)===null||W===void 0?void 0:W.call(V,!0),v);s==null||s($,q(q({},R.current),D))},[]),M.jsx(vNe.Provider,{value:q(q({},D),{},{formRef:R}),children:M.jsx(Pn,{componentSize:E.size||T,children:M.jsxs(jNe.Provider,{value:{grid:b,colProps:C},children:[E.component!==!1&&M.jsx("input",{type:"text",style:{display:"none"}}),U]})})})}var Gle=0;function wjt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,a=o===void 0?!1:o,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,d=e.formItemProps,f=e.groupProps,p=e.dateFormatter,h=p===void 0?"string":p,g=e.formRef;e.onInit;var v=e.form,y=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var _=e.omitNil,b=_===void 0?!0:_,S=e.request,C=e.params,E=e.initialValues,w=e.formKey,x=w===void 0?Gle:w;e.readonly;var T=e.onLoadingChange,R=e.loading,N=It(e,Ejt),I=m.useRef({}),P=Fn(!1,{onChange:T,value:R}),D=Oe(P,2),F=D[0],L=D[1],B=fRt({},{disabled:!r}),U=Oe(B,2),G=U[0],V=U[1],W=m.useRef(UA());m.useEffect(function(){Gle+=0},[]);var $=bwt({request:S,params:C,proFieldKey:x}),H=Oe($,1),K=H[0],re=m.useContext(Pn.ConfigContext),Q=re.getPrefixCls,A=Q("pro-form"),k=Di("ProForm",function(Ce){return ie({},".".concat(A),ie({},"> div:not(".concat(Ce.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),Z=k.wrapSSR,ne=k.hashId,oe=m.useState(function(){return r?pN(r,G,"get"):{}}),ae=Oe(oe,2),ue=ae[0],fe=ae[1],se=m.useRef({}),pe=m.useRef({}),_e=Ku(function(Ce,ye,be){return lRt(dwt(Ce,h,pe.current,ye,be),se.current,ye)});m.useEffect(function(){l||fe({})},[l]);var Te=Ku(function(){return q(q({},G),n)});m.useEffect(function(){r&&V(pN(r,Te(),"set"))},[n,Te,r]);var xe=m.useMemo(function(){if(!(typeof window>"u")&&y&&["DrawerForm"].includes(y))return function(Ce){return Ce.parentNode||document.body}},[y]),ge=Ku(Oo(yr().mark(function Ce(){var ye,be,Ee,Me,X,Y,J;return yr().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(N.onFinish){ve.next=2;break}return ve.abrupt("return");case 2:if(!F){ve.next=4;break}return ve.abrupt("return");case 4:return ve.prev=4,Ee=I==null||(ye=I.current)===null||ye===void 0||(be=ye.getFieldsFormatValue)===null||be===void 0?void 0:be.call(ye),Me=N.onFinish(Ee),Me instanceof Promise&&L(!0),ve.next=10,Me;case 10:r&&(J=Object.keys(I==null||(X=I.current)===null||X===void 0||(Y=X.getFieldsFormatValue)===null||Y===void 0?void 0:Y.call(X,void 0,!1)).reduce(function(ce,$e){var Be;return q(q({},ce),{},ie({},$e,(Be=Ee[$e])!==null&&Be!==void 0?Be:void 0))},n),Object.keys(G).forEach(function(ce){J[ce]!==!1&&J[ce]!==0&&!J[ce]&&(J[ce]=void 0)}),V(pN(r,J,"set"))),L(!1),ve.next=18;break;case 14:ve.prev=14,ve.t0=ve.catch(4),console.log(ve.t0),L(!1);case 18:case"end":return ve.stop()}},Ce,null,[[4,14]])})));return m.useImperativeHandle(g,function(){return I.current},[!K]),!K&&e.request?M.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:M.jsx(Bp,{})}):Z(M.jsx(AK.Provider,{value:{mode:e.readonly?"read":"edit"},children:M.jsx(_k,{needDeps:!0,children:M.jsx(gd.Provider,{value:{formRef:I,fieldProps:c,proFieldProps:u,formItemProps:d,groupProps:f,formComponentType:y,getPopupContainer:xe,formKey:W.current,setFieldValueType:function(ye,be){var Ee=be.valueType,Me=Ee===void 0?"text":Ee,X=be.dateFormat,Y=be.transform;Array.isArray(ye)&&(se.current=jo(se.current,ye,Y),pe.current=jo(pe.current,ye,{valueType:Me,dateFormat:X}))}},children:M.jsx(PK.Provider,{value:{},children:M.jsx(hr,q(q({onKeyPress:function(ye){if(i&&ye.key==="Enter"){var be;(be=I.current)===null||be===void 0||be.submit()}},autoComplete:"off",form:v},ur(N,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ye){I.current&&(I.current.nativeElement=ye==null?void 0:ye.nativeElement)},initialValues:a?q(q(q({},E),K),ue):q(q(q({},ue),E),K),onValuesChange:function(ye,be){var Ee;N==null||(Ee=N.onValuesChange)===null||Ee===void 0||Ee.call(N,_e(ye,!!b),_e(be,!!b))},className:Re(e.className,A,ne),onFinish:ge,children:M.jsx(Cjt,q(q({transformKey:_e,autoComplete:"off",loading:F,onUrlSearchChange:V},e),{},{formRef:I,initialValues:q(q({},E),K)}))}))})})})}))}var xjt=function(t){return ie(ie({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ie({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function Tjt(e){return Di("LightWrapper",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[xjt(n)]})}var Rjt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],Ojt=function(t){var n=t.label,r=t.size,i=t.disabled,o=t.onChange,a=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,d=t.labelFormatter,f=t.bordered,p=t.footerRender,h=t.allowClear,g=t.otherFieldProps,v=t.valueType,y=t.placement,_=It(t,Rjt),b=m.useContext(Pn.ConfigContext),S=b.getPrefixCls,C=S("pro-field-light-wrapper"),E=Tjt(C),w=E.wrapSSR,x=E.hashId,T=m.useState(t[c]),R=Oe(T,2),N=R[0],I=R[1],P=Fn(!1),D=Oe(P,2),F=D[0],L=D[1],B=function(){for(var W,$=arguments.length,H=new Array($),K=0;K<$;K++)H[K]=arguments[K];g==null||(W=g.onChange)===null||W===void 0||W.call.apply(W,[g].concat(H)),o==null||o.apply(void 0,H)},U=t[c],G=m.useMemo(function(){var V;return U&&(v!=null&&(V=v.toLowerCase())!==null&&V!==void 0&&V.endsWith("range")&&v!=="digitRange"&&!d?fwt(U,yNe[v]||"YYYY-MM-DD"):Array.isArray(U)?U.map(function(W){return qt(W)==="object"&&W.label&&W.value?W.label:W}):U)},[U,v,d]);return w(M.jsx(iwt,{disabled:i,open:F,onOpenChange:L,placement:y,label:M.jsx(zp,{ellipsis:!0,size:r,onClear:function(){B==null||B(),I(null)},bordered:f,style:s,className:a,label:n,placeholder:u,value:G,disabled:i,formatter:d,allowClear:h}),footer:{onClear:function(){return I(null)},onConfirm:function(){B==null||B(N),L(!1)}},footerRender:p,children:M.jsx("div",{className:Re("".concat(C,"-container"),x,a),style:s,children:de.cloneElement(l,q(q({},_),{},ie(ie({},c,N),"onChange",function(W){I(W!=null&&W.target?W.target.value:W)}),l.props))})}))};function Ar(e){return M.jsx(wjt,q({layout:"vertical",contentRender:function(n,r){return M.jsxs(M.Fragment,{children:[n,r]})}},e))}Ar.Group=XMe;Ar.useForm=hr.useForm;Ar.Item=QMe;Ar.useWatch=hr.useWatch;Ar.ErrorList=hr.ErrorList;Ar.Provider=hr.Provider;Ar.useFormInstance=hr.useFormInstance;Ar.EditOrReadOnlyContext=AK;var Ijt=function(t){return ie(ie({},t.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:t.colorTextSecondary,fontSize:t.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",ie({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function Njt(e){return Di("LoginForm",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[Ijt(n)]})}var Mjt=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function ZMe(e){var t,n=e.logo,r=e.message,i=e.contentStyle,o=e.title,a=e.subTitle,s=e.actions,l=e.children,c=e.containerStyle,u=e.otherStyle,d=It(e,Mjt),f=yo(),p=d.submitter===!1?!1:q(q({searchConfig:{submitText:f.getMessage("loginForm.submitText","登录")}},d.submitter),{},{submitButtonProps:q({size:"large",style:{width:"100%"}},(t=d.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(E,w){var x,T=w.pop();if(typeof(d==null||(x=d.submitter)===null||x===void 0?void 0:x.render)=="function"){var R,N;return d==null||(R=d.submitter)===null||R===void 0||(N=R.render)===null||N===void 0?void 0:N.call(R,E,w)}return T}}),h=m.useContext(Pn.ConfigContext),g=h.getPrefixCls("pro-form-login"),v=Njt(g),y=v.wrapSSR,_=v.hashId,b=function(E){return"".concat(g,"-").concat(E," ").concat(_)},S=m.useMemo(function(){return n?typeof n=="string"?M.jsx("img",{src:n}):n:null},[n]);return y(M.jsxs("div",{className:Re(b("container"),_),style:c,children:[M.jsxs("div",{className:"".concat(b("top")," ").concat(_).trim(),children:[o||S?M.jsxs("div",{className:"".concat(b("header")),children:[S?M.jsx("span",{className:b("logo"),children:S}):null,o?M.jsx("span",{className:b("title"),children:o}):null]}):null,a?M.jsx("div",{className:b("desc"),children:a}):null]}),M.jsxs("div",{className:b("main"),style:q({width:328},i),children:[M.jsxs(Ar,q(q({isKeyPressSubmit:!0},d),{},{submitter:p,children:[r,l]})),s?M.jsx("div",{className:b("main-other"),style:u,children:s}):null]})]}))}var Wle=m.createContext({}),JMe={exports:{}};(function(e){var t=y_.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&{}.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=i[c]}return s.default=i,a&&a.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(JMe);var Jo=JMe.exports,eAe={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(eAe);var Uk=eAe.exports,MS={},tAe={exports:{}},nAe={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nAe);var rAe=nAe.exports,iAe={exports:{}};(function(e){function t(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var o,a,s,l,c=[],u=!0,d=!1;try{if(s=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;u=!1}else for(;!(u=(o=s.call(i)).done)&&(c.push(o.value),c.length!==r);u=!0);}catch(f){d=!0,a=f}finally{try{if(!u&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(iAe);var Ajt=iAe.exports,oAe={exports:{}},aAe={exports:{}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(aAe);var sAe=aAe.exports;(function(e){var t=sAe;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(r,i):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(oAe);var DK=oAe.exports,lAe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(lAe);var cAe=lAe.exports;(function(e){var t=rAe,n=Ajt,r=DK,i=cAe;function o(a,s){return t(a)||n(a,s)||r(a,s)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(tAe);var uAe=tAe.exports,dAe={exports:{}},fAe={exports:{}};(function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(fAe);var Pjt=fAe.exports;(function(e){var t=Pjt;function n(r,i){if(r==null)return{};var o,a,s=t(r,i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)o=l[a],i.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(s[o]=r[o])}return s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(dAe);var pAe=dAe.exports;const oT=Zw(KKe);var AS={};Object.defineProperty(AS,"__esModule",{value:!0});AS.default=void 0;var Djt=m,kjt=(0,Djt.createContext)({});AS.default=kjt;var aT={},ys={},H_={},jk={};Object.defineProperty(jk,"__esModule",{value:!0});jk.default=Ljt;function Ljt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var kK={};Object.defineProperty(kK,"__esModule",{value:!0});kK.default=$jt;function $jt(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 LK=Tr.default;Object.defineProperty(H_,"__esModule",{value:!0});H_.clearContainerCache=Vjt;H_.injectCSS=FK;H_.removeCSS=Hjt;H_.updateCSS=Gjt;var Yle=LK(b_),Fjt=LK(jk),Bjt=LK(kK),qle="data-rc-order",Kle="data-rc-priority",Ujt="rc-util-key",nP=new Map;function mAe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ujt}function Hk(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function jjt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $K(e){return Array.from((nP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function FK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,Fjt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=jjt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(qle,a),s&&o&&l.setAttribute(Kle,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Hk(t),u=c.firstChild;if(r){if(s){var d=(t.styles||$K(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(qle)))return!1;var p=Number(f.getAttribute(Kle)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function hAe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Hk(t);return(t.styles||$K(n)).find(function(r){return r.getAttribute(mAe(t))===e})}function Hjt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hAe(e,t);if(n){var r=Hk(t);r.removeChild(n)}}function zjt(e,t){var n=nP.get(e);if(!n||!(0,Bjt.default)(document,n)){var r=FK("",t),i=r.parentNode;nP.set(e,i),e.removeChild(r)}}function Vjt(){nP.clear()}function Gjt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Hk(n),i=$K(r),o=(0,Yle.default)((0,Yle.default)({},n),{},{styles:i});zjt(r,o);var a=hAe(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=FK(e,o);return u.setAttribute(mAe(o),t),u}var zk={};Object.defineProperty(zk,"__esModule",{value:!0});zk.getShadowRoot=Wjt;zk.inShadow=vAe;function gAe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function vAe(e){return gAe(e)instanceof ShadowRoot}function Wjt(e){return vAe(e)?gAe(e):null}var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.call=BK;Sl.default=void 0;Sl.note=yAe;Sl.noteOnce=SAe;Sl.preMessage=void 0;Sl.resetWarned=bAe;Sl.warning=_Ae;Sl.warningOnce=sT;var yz={},Yjt=Sl.preMessage=function(t){};function _Ae(e,t){}function yAe(e,t){}function bAe(){yz={}}function BK(e,t,n){!t&&!yz[n]&&(e(!1,n),yz[n]=!0)}function sT(e,t){BK(_Ae,e,t)}function SAe(e,t){BK(yAe,e,t)}sT.preMessage=Yjt;sT.resetWarned=bAe;sT.noteOnce=SAe;Sl.default=sT;var qjt=Jo.default,Vk=Tr.default;Object.defineProperty(ys,"__esModule",{value:!0});ys.generate=Sz;ys.getSecondaryColor=rHt;ys.iconStyles=void 0;ys.isIconDefinition=nHt;ys.normalizeAttrs=bz;ys.normalizeTwoToneColors=iHt;ys.useInsertStyles=ys.svgBaseProps=void 0;ys.warning=tHt;var XF=Vk(b_),Qle=Vk(y_),Kjt=oT,Qjt=H_,Xjt=zk,Zjt=Vk(Sl),rP=qjt(m),Jjt=Vk(AS);function eHt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function tHt(e,t){(0,Zjt.default)(e,"[@ant-design/icons] ".concat(t))}function nHt(e){return(0,Qle.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Qle.default)(e.icon)==="object"||typeof e.icon=="function")}function bz(){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[eHt(n)]=r}return t},{})}function Sz(e,t,n){return n?rP.default.createElement(e.tag,(0,XF.default)((0,XF.default)({key:t},bz(e.attrs)),n),(e.children||[]).map(function(r,i){return Sz(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):rP.default.createElement(e.tag,(0,XF.default)({key:t},bz(e.attrs)),(e.children||[]).map(function(r,i){return Sz(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function rHt(e){return(0,Kjt.generate)(e)[0]}function iHt(e){return e?Array.isArray(e)?e:[e]:[]}ys.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var oHt=ys.iconStyles=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`;ys.useInsertStyles=function(t){var n=(0,rP.useContext)(Jjt.default),r=n.csp,i=n.prefixCls,o=n.layer,a=oHt;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
||
`).concat(a,`
|
||
}`)),(0,rP.useEffect)(function(){var s=t.current,l=(0,Xjt.getShadowRoot)(s);(0,Qjt.updateCSS)(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])};var EAe=Tr.default,aHt=Jo.default;Object.defineProperty(aT,"__esModule",{value:!0});aT.default=void 0;var sHt=EAe(pAe),EC=EAe(b_),lHt=aHt(m),$g=ys,cHt=["icon","className","onClick","style","primaryColor","secondaryColor"],t1={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uHt(e){var t=e.primaryColor,n=e.secondaryColor;t1.primaryColor=t,t1.secondaryColor=n||(0,$g.getSecondaryColor)(t),t1.calculated=!!n}function dHt(){return(0,EC.default)({},t1)}var Gk=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,sHt.default)(t,cHt),c=lHt.useRef(),u=t1;if(a&&(u={primaryColor:a,secondaryColor:s||(0,$g.getSecondaryColor)(a)}),(0,$g.useInsertStyles)(c),(0,$g.warning)((0,$g.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,$g.isIconDefinition)(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=(0,EC.default)((0,EC.default)({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),(0,$g.generate)(d.icon,"svg-".concat(d.name),(0,EC.default)((0,EC.default)({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Gk.displayName="IconReact";Gk.getTwoToneColors=dHt;Gk.setTwoToneColors=uHt;aT.default=Gk;var Wk={},CAe=Tr.default;Object.defineProperty(Wk,"__esModule",{value:!0});Wk.getTwoToneColor=hHt;Wk.setTwoToneColor=mHt;var fHt=CAe(uAe),wAe=CAe(aT),pHt=ys;function mHt(e){var t=(0,pHt.normalizeTwoToneColors)(e),n=(0,fHt.default)(t,2),r=n[0],i=n[1];return wAe.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function hHt(){var e=wAe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var z_=Tr.default,gHt=Jo.default;Object.defineProperty(MS,"__esModule",{value:!0});MS.default=void 0;var vHt=z_(Uk),_Ht=z_(uAe),Xle=z_(n0e),yHt=z_(pAe),wO=gHt(m),bHt=z_(q2),SHt=oT,EHt=z_(AS),CHt=z_(aT),UK=Wk,wHt=ys,xHt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,UK.setTwoToneColor)(SHt.blue.primary);var Yk=wO.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,yHt.default)(e,xHt),u=wO.useContext(EHt.default),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,h=(0,bHt.default)(p,f,(0,Xle.default)((0,Xle.default)({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=(0,wHt.normalizeTwoToneColors)(l),_=(0,_Ht.default)(y,2),b=_[0],S=_[1];return wO.createElement("span",(0,vHt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),wO.createElement(CHt.default,{icon:r,primaryColor:b,secondaryColor:S,style:v}))});Yk.displayName="AntdIcon";Yk.getTwoToneColor=UK.getTwoToneColor;Yk.setTwoToneColor=UK.setTwoToneColor;MS.default=Yk;var THt=["isLoading","pastDelay","timedOut","error","retry"],RHt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=It(t,THt);return M.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:M.jsx(Bp,q({size:"large"},n))})},OHt=function(t){return ie({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function IHt(e){return Di("ProLayoutFooter",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[OHt(n)]})}var NHt=function(t){var n=t.className,r=t.prefixCls,i=t.links,o=t.copyright,a=t.style,s=m.useContext(Pn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=IHt(l),u=c.wrapSSR,d=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(o==null||o===!1)?null:u(M.jsxs("div",{className:Re(l,d,n),style:a,children:[i&&M.jsx("div",{className:"".concat(l,"-list ").concat(d).trim(),children:i.map(function(f){return M.jsx("a",{className:"".concat(l,"-list-link ").concat(d).trim(),title:f.key,target:f.blankTarget?"_blank":"_self",href:f.href,rel:"noreferrer",children:f.title},f.key)})}),o&&M.jsx("div",{className:"".concat(l,"-copyright ").concat(d).trim(),children:o})]}))},MHt=_i.Footer,AHt=function(t){var n=t.links,r=t.copyright,i=t.style,o=t.className,a=t.prefixCls;return M.jsx(MHt,{className:o,style:q({padding:0},i),children:M.jsx(NHt,{links:n,prefixCls:a,copyright:r===!1?null:M.jsxs(m.Fragment,{children:[M.jsx(Xgt,{})," ",r]})})})},Zle=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function qk(e){return e.map(function(t){var n=t.children||[],r=q({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return q(q({},t),{},{children:qk(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var PHt=function(){return M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:M.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},DHt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return M.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:M.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?M.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[M.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),M.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):M.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:M.jsxs("a",{href:o?void 0:a.url,target:a.target,rel:"noreferrer",children:[jK(a.icon),M.jsxs("div",{children:[M.jsx("div",{children:a.title}),a.desc?M.jsx("span",{children:a.desc}):null]})]})},s)})})})},kHt=function(t,n){if(t&&typeof t=="string"&&lK(t))return M.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return M.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return M.jsx("div",{id:"avatarLogo",children:r})}return t},LHt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return M.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:M.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?M.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[M.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),M.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):M.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:M.jsxs("a",{href:o?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[kHt(a.icon,a.title),M.jsx("div",{children:M.jsx("div",{children:a.title})})]})},s)})})})},$Ht=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":BF==null?void 0:BF(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},FHt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},BHt=function(t){var n,r,i,o,a;return ie({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(o=t.layout)===null||o===void 0?void 0:o.colorTextAppListIconHover,backgroundColor:(a=t.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ie({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":FHt(t),"&-default":$Ht(t)})};function UHt(e){return Di("AppsLogoComponents",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[BHt(n)]})}var jK=function(t){return typeof t=="string"?M.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},HK=function(t){var n,r=t.appList,i=t.appListRender,o=t.prefixCls,a=o===void 0?"ant-pro":o,s=t.onItemClick,l=de.useRef(null),c=de.useRef(null),u="".concat(a,"-layout-apps"),d=UHt(u),f=d.wrapSSR,p=d.hashId,h=m.useState(!1),g=Oe(h,2),v=g[0],y=g[1],_=function(w){s==null||s(w,c)},b=m.useMemo(function(){var E=r==null?void 0:r.some(function(w){return!(w!=null&&w.desc)});return E?M.jsx(LHt,{hashId:p,appList:r,itemClick:s?_:void 0,baseClassName:"".concat(u,"-simple")}):M.jsx(DHt,{hashId:p,appList:r,itemClick:s?_:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var S=i?i(t==null?void 0:t.appList,b):b,C=yk(void 0,function(E){return y(E)});return f(M.jsxs(M.Fragment,{children:[M.jsx("div",{ref:l,onClick:function(w){w.stopPropagation(),w.preventDefault()}}),M.jsx(Xc,q(q({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},C),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:S,getPopupContainer:function(){return l.current||document.body},children:M.jsx("span",{ref:c,onClick:function(w){w.stopPropagation()},className:Re("".concat(u,"-icon"),p,ie({},"".concat(u,"-icon-active"),v)),children:M.jsx(PHt,{})})}))]}))};function jHt(){return M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:M.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var HHt=function(t){var n,r,i;return ie({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function zHt(e){return Di("SiderMenuCollapsedIcon",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[HHt(n)]})}var VHt=["isMobile","collapsed"],GHt=function(t){var n=t.isMobile,r=t.collapsed,i=It(t,VHt),o=zHt(t.className),a=o.wrapSSR,s=o.hashId;return n&&r?null:a(M.jsx("div",q(q({},i),{},{className:Re(t.className,s,ie(ie({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:M.jsx(jHt,{})})))},xAe={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},WHt=function(t,n){var r,i,o=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return q(q(ie({},"".concat(t.componentCls),ie(ie(ie(ie(ie(ie(ie(ie(ie({background:"transparent",color:o==null?void 0:o.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ie({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ie(ie(ie({},"".concat(t.antCls,`-menu-item,
|
||
`).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item,
|
||
`).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title,
|
||
`).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title,
|
||
`).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:o==null?void 0:o.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ie({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ie(ie(ie(ie(ie({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ie(ie({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ie({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ie(ie({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ie({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ie({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ie({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ie({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function YHt(e,t){return Di("ProLayoutBaseMenu"+t,function(n){var r=q(q({},n),{},{componentCls:".".concat(e)});return[WHt(r,t||"inline")]})}var Jle=function(t){var n=m.useState(t.collapsed),r=Oe(n,2),i=r[0],o=r[1],a=m.useState(!1),s=Oe(a,2),l=s[0],c=s[1];return m.useEffect(function(){c(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:M.jsx(rc,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},TAe=dIe({scriptUrl:xAe.iconfontUrl}),ece=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(lK(t)||Cwt(t))return M.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return M.jsx(TAe,{type:t})}return t},tce=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},qHt=qr(function e(t){var n=this;Yr(this,e),ie(this,"props",void 0),ie(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return n.getSubMenuOrItem(a,i,o)}).filter(function(a){return a}).flat(1)}),ie(this,"getSubMenuOrItem",function(r,i,o){var a=n.props,s=a.subMenuItemRender,l=a.baseClassName,c=a.prefixCls,u=a.collapsed,d=a.menu,f=a.iconPrefixes,p=a.layout,h=(d==null?void 0:d.type)==="group"&&p!=="top",g=n.props.token,v=n.getIntlName(r),y=(r==null?void 0:r.children)||(r==null?void 0:r.routes),_=h&&i===0?"group":void 0;if(Array.isArray(y)&&y.length>0){var b,S,C,E,w,x=i===0||h&&i===1,T=ece(r.icon,f,"".concat(l,"-icon ").concat((b=n.props)===null||b===void 0?void 0:b.hashId)),R=u&&x?tce(v):null,N=M.jsxs("div",{className:Re("".concat(l,"-item-title"),(S=n.props)===null||S===void 0?void 0:S.hashId,ie(ie(ie(ie({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(o),u),"".concat(l,"-group-item-title"),_==="group"),"".concat(l,"-item-collapsed-show-title"),(d==null?void 0:d.collapsedShowTitle)&&u)),children:[_==="group"&&u?null:x&&T?M.jsx("span",{className:"".concat(l,"-item-icon ").concat((C=n.props)===null||C===void 0?void 0:C.hashId).trim(),children:T}):R,M.jsx("span",{className:Re("".concat(l,"-item-text"),(E=n.props)===null||E===void 0?void 0:E.hashId,ie({},"".concat(l,"-item-text-has-icon"),_!=="group"&&x&&(T||R))),children:v})]}),I=s?s(q(q({},r),{},{isUrl:!1}),N,n.props):N;if(h&&i===0&&n.props.collapsed&&!d.collapsedShowGroupTitle)return n.getNavMenuItems(y,i+1,i);var P=n.getNavMenuItems(y,i+1,h&&i===0&&n.props.collapsed?i:i+1);return[{type:_,key:r.key||r.path,label:I,onClick:h?void 0:r.onTitleClick,children:P,className:Re(ie(ie(ie({},"".concat(l,"-group"),_==="group"),"".concat(l,"-submenu"),_!=="group"),"".concat(l,"-submenu-has-icon"),_!=="group"&&x&&T))},h&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:g==null||(w=g.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,o)}}),ie(this,"getIntlName",function(r){var i=r.name,o=r.locale,a=n.props,s=a.menu,l=a.formatMessage,c=i;return o&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:o,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ie(this,"getMenuItemPath",function(r,i,o){var a,s,l,c,u=n.conversionPath(r.path||"/"),d=n.props,f=d.location,p=f===void 0?{pathname:"/"}:f,h=d.isMobile,g=d.onCollapse,v=d.menuItemRender,y=d.iconPrefixes,_=n.getIntlName(r),b=n.props,S=b.baseClassName,C=b.menu,E=b.collapsed,w=(C==null?void 0:C.type)==="group",x=i===0||w&&i===1,T=x?ece(r.icon,y,"".concat(S,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,R=E&&x?tce(_):null,N=M.jsxs("div",{className:Re("".concat(S,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ie(ie(ie({},"".concat(S,"-item-title-collapsed"),E),"".concat(S,"-item-title-collapsed-level-").concat(o),E),"".concat(S,"-item-collapsed-show-title"),(C==null?void 0:C.collapsedShowTitle)&&E)),children:[M.jsx("span",{className:"".concat(S,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:R===null&&!T?"none":""},children:T||M.jsx("span",{className:"anticon",children:R})}),M.jsx("span",{className:Re("".concat(S,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ie({},"".concat(S,"-item-text-has-icon"),x&&(T||R))),children:_})]},u),I=lK(u);if(I){var P,D,F;N=M.jsxs("span",{onClick:function(){var U,G;(U=window)===null||U===void 0||(G=U.open)===null||G===void 0||G.call(U,u,"_blank")},className:Re("".concat(S,"-item-title"),(P=n.props)===null||P===void 0?void 0:P.hashId,ie(ie(ie(ie({},"".concat(S,"-item-title-collapsed"),E),"".concat(S,"-item-title-collapsed-level-").concat(o),E),"".concat(S,"-item-link"),!0),"".concat(S,"-item-collapsed-show-title"),(C==null?void 0:C.collapsedShowTitle)&&E)),children:[M.jsx("span",{className:"".concat(S,"-item-icon ").concat((D=n.props)===null||D===void 0?void 0:D.hashId).trim(),style:{display:R===null&&!T?"none":""},children:T||M.jsx("span",{className:"anticon",children:R})}),M.jsx("span",{className:Re("".concat(S,"-item-text"),(F=n.props)===null||F===void 0?void 0:F.hashId,ie({},"".concat(S,"-item-text-has-icon"),x&&(T||R))),children:_})]},u)}if(v){var L=q(q({},r),{},{isUrl:I,itemPath:u,isMobile:h,replace:u===p.pathname,onClick:function(){return g&&g(!0)},children:void 0});return i===0?M.jsx(Jle,{collapsed:E,title:_,disable:r.disabledTooltip,children:v(L,N,n.props)}):v(L,N,n.props)}return i===0?M.jsx(Jle,{collapsed:E,title:_,disable:r.disabledTooltip,children:N}):N}),ie(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),KHt=function(t,n){var r=n.layout,i=n.collapsed,o={};return t&&!i&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},RAe=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,o=t.style,a=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,d=t.selectedKeys,f=t.onSelect,p=t.menuRenderType,h=t.openKeys,g=m.useContext(qu),v=g.dark,y=g.token,_="".concat(s,"-base-menu-").concat(n),b=m.useRef([]),S=Fn(l==null?void 0:l.defaultOpenAll),C=Oe(S,2),E=C[0],w=C[1],x=Fn(function(){return l!=null&&l.defaultOpenAll?Zle(a)||[]:h===!1?!1:[]},{value:h===!1?void 0:h,onChange:i}),T=Oe(x,2),R=T[0],N=T[1],I=Fn([],{value:d,onChange:f?function($){f&&$&&f($)}:void 0}),P=Oe(I,2),D=P[0],F=P[1];m.useEffect(function(){l!=null&&l.defaultOpenAll||h===!1||c&&(N(c),F(c))},[c.join("-")]),m.useEffect(function(){u&&(TAe=dIe({scriptUrl:u}))},[u]),m.useEffect(function(){if(c.join("-")!==(D||[]).join("-")&&F(c),!E&&h!==!1&&c.join("-")!==(R||[]).join("-")){var $=c;(l==null?void 0:l.autoClose)===!1&&($=Array.from(new Set([].concat(at(c),at(R||[]))))),N($)}else l!=null&&l.ignoreFlatMenu&&E?N(Zle(a)):w(!1)},[c.join("-")]);var L=m.useMemo(function(){return KHt(R,t)},[R&&R.join(","),t.layout,t.collapsed]),B=YHt(_,n),U=B.wrapSSR,G=B.hashId,V=m.useMemo(function(){return new qHt(q(q({},t),{},{token:y,menuRenderType:p,baseClassName:_,hashId:G}))},[t,y,p,_,G]);if(l!=null&&l.loading)return M.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:M.jsx(Lp,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(b.current=c);var W=t.postMenuData?t.postMenuData(a):a;return W&&(W==null?void 0:W.length)<1?null:U(m.createElement(hf,q(q({},L),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:b.current,theme:v?"dark":"light",selectedKeys:D,style:q({backgroundColor:"transparent",border:"none"},o),className:Re(r,G,_,ie(ie({},"".concat(_,"-horizontal"),n==="horizontal"),"".concat(_,"-collapsed"),t.collapsed)),items:V.getNavMenuItems(W,0,0),onOpenChange:function(H){t.collapsed||N(H)}},t.menuProps)))};function QHt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Di("ProLayoutSiderMenuStylish",function(i){var o=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ie({},"div".concat(i.proComponentsCls,"-layout"),ie({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var XHt=["title","render"],ZHt=de.memo(function(e){return M.jsx(M.Fragment,{children:e.children})}),JHt=_i.Sider,nce=_i._InternalSiderContext,e7t=nce===void 0?{Provider:ZHt}:nce,zK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,o=t.layout,a=t[n];if(a===!1)return null;var s=jK(r),l=M.jsx("h1",{children:i??"Ant Design Pro"});return a?a(s,t.collapsed?null:l,t):t.isMobile?null:o==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?M.jsx("a",{children:s},"title"):M.jsxs("a",{children:[s,l]},"title")},rce=function(t){var n,r=t.collapsed,i=t.originCollapsed,o=t.fixSiderbar,a=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,d=t.onMenuHeaderClick,f=t.breakpoint,p=f===void 0?"lg":f,h=t.style,g=t.layout,v=t.menuExtraRender,y=v===void 0?!1:v,_=t.links,b=t.menuContentRender,S=t.collapsedButtonRender,C=t.prefixCls,E=t.avatarProps,w=t.rightContentRender,x=t.actionsRender,T=t.onOpenChange,R=t.stylish,N=t.logoStyle,I=m.useContext(qu),P=I.hashId,D=m.useMemo(function(){return!(u||g==="mix")},[u,g]),F="".concat(C,"-sider"),L=64,B=QHt("".concat(F,".").concat(F,"-stylish"),{stylish:R,proLayoutCollapsedWidth:L}),U=Re("".concat(F),P,ie(ie(ie(ie(ie(ie(ie({},"".concat(F,"-fixed"),o),"".concat(F,"-fixed-mix"),g==="mix"&&!u&&o),"".concat(F,"-collapsed"),t.collapsed),"".concat(F,"-layout-").concat(g),g&&!u),"".concat(F,"-light"),l!=="dark"),"".concat(F,"-mix"),g==="mix"&&!u),"".concat(F,"-stylish"),!!R)),G=zK(t),V=y&&y(t),W=m.useMemo(function(){return b!==!1&&m.createElement(RAe,q(q({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:T,style:{width:"100%"},className:"".concat(F,"-menu ").concat(P).trim()}))},[F,P,b,T,t]),$=(_||[]).map(function(ae,ue){return{className:"".concat(F,"-link"),label:ae,key:ue}}),H=m.useMemo(function(){return b?b(t,W):W},[b,W,t]),K=m.useMemo(function(){if(!E)return null;var ae=E.title,ue=E.render,fe=It(E,XHt),se=M.jsxs("div",{className:"".concat(F,"-actions-avatar"),children:[fe!=null&&fe.src||fe!=null&&fe.srcSet||fe.icon||fe.children?M.jsx(Bh,q({size:28},fe)):null,E.title&&!r&&M.jsx("span",{children:ae})]});return ue?ue(E,se,t):se},[E,F,r]),re=m.useMemo(function(){return x?M.jsx(Zc,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Re(["".concat(F,"-actions-list"),r&&"".concat(F,"-actions-list-collapsed"),P]),children:[x==null?void 0:x(t)].flat(1).map(function(ae,ue){return M.jsx("div",{className:"".concat(F,"-actions-list-item ").concat(P).trim(),children:ae},ue)})}):null},[x,F,r]),Q=m.useMemo(function(){return M.jsx(HK,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),A=m.useMemo(function(){if(S===!1)return null;var ae=M.jsx(GHt,{isMobile:u,collapsed:i,className:"".concat(F,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return S?S(r,ae):ae},[S,u,i,F,r,s]),k=m.useMemo(function(){return!K&&!re?null:M.jsxs("div",{className:Re("".concat(F,"-actions"),P,r&&"".concat(F,"-actions-collapsed")),children:[K,re]})},[re,K,F,r,P]),Z=m.useMemo(function(){var ae;return t!=null&&(ae=t.menu)!==null&&ae!==void 0&&ae.hideMenuWhenCollapsed&&r?"".concat(F,"-hide-menu-collapsed"):null},[F,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),ne=a&&(a==null?void 0:a(t)),oe=M.jsxs(M.Fragment,{children:[G&&M.jsxs("div",{className:Re([Re("".concat(F,"-logo"),P,ie({},"".concat(F,"-logo-collapsed"),r))]),onClick:D?d:void 0,id:"logo",style:N,children:[G,Q]}),V&&M.jsx("div",{className:Re(["".concat(F,"-extra"),!G&&"".concat(F,"-extra-no-logo"),P]),children:V}),M.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:H}),M.jsxs(e7t.Provider,{value:{},children:[_?M.jsx("div",{className:"".concat(F,"-links ").concat(P).trim(),children:M.jsx(hf,{inlineIndent:16,className:"".concat(F,"-link-menu ").concat(P).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:$})}):null,D&&M.jsxs(M.Fragment,{children:[k,!re&&w?M.jsx("div",{className:Re("".concat(F,"-actions"),P,ie({},"".concat(F,"-actions-collapsed"),r)),children:w==null?void 0:w(t)}):null]}),ne&&M.jsx("div",{className:Re(["".concat(F,"-footer"),P,ie({},"".concat(F,"-footer-collapsed"),r)]),children:ne})]})]});return B.wrapSSR(M.jsxs(M.Fragment,{children:[o&&!u&&!Z&&M.jsx("div",{style:q({width:r?L:c,overflow:"hidden",flex:"0 0 ".concat(r?L:c,"px"),maxWidth:r?L:c,minWidth:r?L:c,transition:"all 0.2s ease 0s"},h)}),M.jsxs(JHt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(ue){u||s==null||s(ue)},collapsedWidth:L,style:h,theme:l,width:c,className:Re(U,P,Z),children:[Z?M.jsx("div",{className:"".concat(F,"-hide-when-collapsed ").concat(P).trim(),style:{height:"100%",width:"100%",opacity:Z?0:1},children:oe}):oe,A]})]}))},t7t=function(t){var n,r,i,o,a;return ie({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgRightActionsItemHover}}}}})};function n7t(e){return Di("ProLayoutRightContent",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[t7t(n)]})}var r7t=["rightContentRender","avatarProps","actionsRender","headerContentRender"],i7t=["title","render"],OAe=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var o=It(t,r7t),a=m.useContext(Pn.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=n7t(l),u=c.wrapSSR,d=c.hashId,f=m.useState("auto"),p=Oe(f,2),h=p[0],g=p[1],v=m.useMemo(function(){if(!r)return null;var S=r.title,C=r.render,E=It(r,i7t),w=[E!=null&&E.src||E!=null&&E.srcSet||E.icon||E.children?m.createElement(Bh,q(q({},E),{},{size:28,key:"avatar"})):null,S?M.jsx("span",{style:{marginInlineStart:8},children:S},"name"):void 0];return C?C(r,M.jsx("div",{children:w}),o):M.jsx("div",{children:w})},[r]),y=i||v?function(S){var C=i&&(i==null?void 0:i(S));return!C&&!v?null:Array.isArray(C)?u(M.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[C.filter(Boolean).map(function(E,w){var x=!1;if(de.isValidElement(E)){var T;x=!!(E!=null&&(T=E.props)!==null&&T!==void 0&&T["aria-hidden"])}return M.jsx("div",{className:Re("".concat(l,"-header-actions-item ").concat(d),ie({},"".concat(l,"-header-actions-hover"),!x)),children:E},w)}),v&&M.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:v})]})):u(M.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[C,v&&M.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:v})]}))}:void 0,_=pwt(function(){var S=Oo(yr().mark(function C(E){return yr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:g(E);case 1:case"end":return x.stop()}},C)}));return function(C){return S.apply(this,arguments)}}(),160),b=y||n;return M.jsx("div",{className:"".concat(l,"-right-content ").concat(d).trim(),style:{minWidth:h,height:"100%"},children:M.jsx("div",{style:{height:"100%"},children:M.jsx(hs,{onResize:function(C){var E=C.width;_.run(E)},children:b?M.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:b(q(q({},o),{},{rightContentSize:h}))}):null})})})},o7t=function(t){var n,r;return ie({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ie({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function a7t(e){return Di("ProLayoutTopNavHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[o7t(n)]})}var IAe=function(t){var n,r,i,o,a,s,l,c=m.useRef(null),u=t.onMenuHeaderClick,d=t.contentWidth,f=t.rightContentRender,p=t.className,h=t.style,g=t.headerContentRender,v=t.layout,y=t.actionsRender,_=m.useContext(Pn.ConfigContext),b=_.getPrefixCls,S=m.useContext(qu),C=S.dark,E="".concat(t.prefixCls||b("pro"),"-top-nav-header"),w=a7t(E),x=w.wrapSSR,T=w.hashId,R=void 0;t.menuHeaderRender!==void 0?R="menuHeaderRender":(v==="mix"||v==="top")&&(R="headerTitleRender");var N=zK(q(q({},t),{},{collapsed:!1}),R),I=m.useContext(qu),P=I.token,D=m.useMemo(function(){var F,L,B,U,G,V,W,$,H,K,re,Q,A,k=M.jsx(Pn,{theme:{hashed:Tb(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:q({},bNe({colorItemBg:((F=P.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgHeader)||"transparent",colorSubItemBg:((L=P.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorBgHeader)||"transparent",radiusItem:P.borderRadius,colorItemBgSelected:((B=P.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgMenuItemSelected)||(P==null?void 0:P.colorBgTextHover),itemHoverBg:((U=P.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorBgMenuItemHover)||(P==null?void 0:P.colorBgTextHover),colorItemBgSelectedHorizontal:((G=P.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorBgMenuItemSelected)||(P==null?void 0:P.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((V=P.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenu)||(P==null?void 0:P.colorTextSecondary),colorItemTextHoverHorizontal:((W=P.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenuActive)||(P==null?void 0:P.colorText),colorItemTextSelectedHorizontal:(($=P.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorTextMenuSelected)||(P==null?void 0:P.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((H=P.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((K=P.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((re=P.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:P==null?void 0:P.colorBgElevated,subMenuItemBg:P==null?void 0:P.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:P==null?void 0:P.colorBgElevated}))},token:{colorBgElevated:((Q=P.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorBgHeader)||"transparent"}},children:M.jsx(RAe,q(q(q({theme:C?"dark":"light"},t),{},{className:"".concat(E,"-base-menu ").concat(T).trim()},t.menuProps),{},{style:q({width:"100%"},(A=t.menuProps)===null||A===void 0?void 0:A.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,k):k},[(n=P.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=P.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=P.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(o=P.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(a=P.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=P.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=P.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,P.borderRadius,P==null?void 0:P.colorBgTextHover,P==null?void 0:P.colorTextSecondary,P==null?void 0:P.colorText,P==null?void 0:P.colorTextBase,P.colorBgElevated,C,t,E,T,g]);return x(M.jsx("div",{className:Re(E,T,p,ie({},"".concat(E,"-light"),!0)),style:h,children:M.jsxs("div",{ref:c,className:Re("".concat(E,"-main"),T,ie({},"".concat(E,"-wide"),d==="Fixed"&&v==="top")),children:[N&&M.jsxs("div",{className:Re("".concat(E,"-main-left ").concat(T)),onClick:u,children:[M.jsx(HK,q({},t)),M.jsx("div",{className:"".concat(E,"-logo ").concat(T).trim(),id:"logo",children:N},"logo")]}),M.jsx("div",{style:{flex:1},className:"".concat(E,"-menu ").concat(T).trim(),children:D}),(f||y||t.avatarProps)&&M.jsx(OAe,q(q({rightContentRender:f},t),{},{prefixCls:E}))]})}))},s7t=function(t){var n,r,i;return ie({},t.componentCls,ie(ie(ie(ie({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function l7t(e){return Di("ProLayoutGlobalHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[s7t(n)]})}var c7t=function(t,n){return t===!1?null:t?t(n,null):n},u7t=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,o=t.onCollapse,a=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,d=t.layout,f=t.children,p=t.splitMenus,h=t.menuData,g=t.prefixCls,v=m.useContext(Pn.ConfigContext),y=v.getPrefixCls,_=v.direction,b="".concat(g||y("pro"),"-global-header"),S=l7t(b),C=S.wrapSSR,E=S.hashId,w=Re(c,b,E);if(d==="mix"&&!n&&p){var x=(h||[]).map(function(I){return q(q({},I),{},{children:void 0,routes:void 0})}),T=qk(x);return M.jsx(IAe,q(q({mode:"horizontal"},t),{},{splitMenus:!1,menuData:T}))}var R=Re("".concat(b,"-logo"),E,ie(ie(ie({},"".concat(b,"-logo-rtl"),_==="rtl"),"".concat(b,"-logo-mix"),d==="mix"),"".concat(b,"-logo-mobile"),n)),N=M.jsx("span",{className:R,children:M.jsx("a",{children:jK(r)})},"logo");return C(M.jsxs("div",{className:w,style:q({},u),children:[n&&M.jsx("span",{className:"".concat(b,"-collapsed-button ").concat(E).trim(),onClick:function(){o==null||o(!i)},children:M.jsx(oIe,{})}),n&&c7t(s,N),d==="mix"&&!n&&M.jsxs(M.Fragment,{children:[M.jsx(HK,q({},t)),M.jsx("div",{className:R,onClick:l,children:zK(q(q({},t),{},{collapsed:!1}),"headerTitleRender")})]}),M.jsx("div",{style:{flex:1},children:f}),(a||t.actionsRender||t.avatarProps)&&M.jsx(OAe,q({rightContentRender:a},t))]}))},d7t=function(t){var n,r,i,o;return ie({},"".concat(t.proComponentsCls,"-layout"),ie({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function f7t(e){return Di("ProLayoutHeader",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[d7t(n)]})}function p7t(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Di("ProLayoutHeaderStylish",function(i){var o=q(q({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ie({},"div".concat(i.proComponentsCls,"-layout"),ie({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var ice=_i.Header,m7t=function(t){var n,r,i,o=t.isMobile,a=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,d=t.onCollapse,f=t.layout,p=t.headerRender,h=t.headerContentRender,g=m.useContext(qu),v=g.token,y=m.useContext(Pn.ConfigContext),_=m.useState(!1),b=Oe(_,2),S=b[0],C=b[1],E=a||f==="mix",w=m.useCallback(function(){var F=f==="top",L=qk(t.menuData||[]),B=M.jsx(u7t,q(q({onCollapse:d},t),{},{menuData:L,children:h&&h(t,null)}));return F&&!o&&(B=M.jsx(IAe,q(q({mode:"horizontal",onCollapse:d},t),{},{menuData:L}))),p&&typeof p=="function"?p(t,B):B},[h,p,o,f,d,t]);m.useEffect(function(){var F,L=(y==null||(F=y.getTargetContainer)===null||F===void 0?void 0:F.call(y))||document.body,B=function(){var G,V=L.scrollTop;return V>(((G=v.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.heightLayoutHeader)||56)&&!S?(C(!0),!0):(S&&C(!1),!1)};if(E&&!(typeof window>"u"))return L.addEventListener("scroll",B,{passive:!0}),function(){L.removeEventListener("scroll",B)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,E,S]);var x=f==="top",T="".concat(u,"-layout-header"),R=f7t(T),N=R.wrapSSR,I=R.hashId,P=p7t("".concat(T,".").concat(T,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),D=Re(s,I,T,ie(ie(ie(ie(ie(ie(ie({},"".concat(T,"-fixed-header"),E),"".concat(T,"-fixed-header-scroll"),S),"".concat(T,"-mix"),f==="mix"),"".concat(T,"-fixed-header-action"),!c),"".concat(T,"-top-menu"),x),"".concat(T,"-header"),!0),"".concat(T,"-stylish"),!!t.stylish));return f==="side"&&!o?null:P.wrapSSR(N(M.jsx(M.Fragment,{children:M.jsxs(Pn,{theme:{hashed:Tb(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[E&&M.jsx(ice,{style:q({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=v.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),M.jsx(ice,{className:D,style:l,children:w()})]})})))};const h7t={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},g7t=q({},h7t),v7t={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},_7t=q({},v7t),y7t={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},b7t=q({},y7t),S7t={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},E7t=q({},S7t),C7t={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},w7t=q({},C7t);var oce={"zh-CN":E7t,"zh-TW":w7t,"en-US":g7t,"it-IT":_7t,"ko-KR":b7t},x7t=function(){if(!sK())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},T7t=function(){var t=x7t();return oce[t]||oce["zh-CN"]},zh={};Object.defineProperty(zh,"__esModule",{value:!0});zh.TokenData=void 0;zh.parse=YK;zh.compile=M7t;var Ez=zh.match=P7t;zh.pathToRegexp=AAe;zh.stringify=L7t;const VK="/",GK=e=>e,NAe=/^[$_\p{ID_Start}]$/u,WK=/^[$\u200c\u200d\p{ID_Continue}]$/u,iP="https://git.new/pathToRegexpError",R7t={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function O7t(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Pd(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*I7t(e){const t=[...e];let n=0;function r(){let i="";if(NAe.test(t[++n]))for(i+=t[n];WK.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let o=n;for(;n<t.length;){if(t[++n]==='"'){n++,o=0;break}t[n]==="\\"?i+=t[++n]:i+=t[n]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${iP}`)}if(!i)throw new TypeError(`Missing parameter name at ${n}: ${iP}`);return i}for(;n<t.length;){const i=t[n],o=R7t[i];if(o)yield{type:o,index:n++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:n++,value:t[n++]};else if(i===":"){const a=r();yield{type:"PARAM",index:n,value:a}}else if(i==="*"){const a=r();yield{type:"WILDCARD",index:n,value:a}}else yield{type:"CHAR",index:n,value:t[n++]}}return{type:"END",index:n,value:""}}class N7t{constructor(t){this.tokens=t}peek(){if(!this._peek){const t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){const n=this.peek();if(n.type===t)return this._peek=void 0,n.value}consume(t){const n=this.tryConsume(t);if(n!==void 0)return n;const{type:r,index:i}=this.peek();throw new TypeError(`Unexpected ${r} at ${i}, expected ${t}: ${iP}`)}text(){let t="",n;for(;n=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=n;return t}}class Kk{constructor(t){this.tokens=t}}zh.TokenData=Kk;function YK(e,t={}){const{encodePath:n=GK}=t,r=new N7t(I7t(e));function i(a){const s=[];for(;;){const l=r.text();l&&s.push({type:"text",value:n(l)});const c=r.tryConsume("PARAM");if(c){s.push({type:"param",name:c});continue}const u=r.tryConsume("WILDCARD");if(u){s.push({type:"wildcard",name:u});continue}if(r.tryConsume("{")){s.push({type:"group",tokens:i("}")});continue}return r.consume(a),s}}const o=i("END");return new Kk(o)}function M7t(e,t={}){const{encode:n=encodeURIComponent,delimiter:r=VK}=t,i=e instanceof Kk?e:YK(e,t),o=MAe(i.tokens,r,n);return function(s={}){const[l,...c]=o(s);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return l}}function MAe(e,t,n){const r=e.map(i=>A7t(i,t,n));return i=>{const o=[""];for(const a of r){const[s,...l]=a(i);o[0]+=s,o.push(...l)}return o}}function A7t(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=MAe(e.tokens,t,n);return o=>{const[a,...s]=i(o);return s.length?[""]:[a]}}const r=n||GK;return e.type==="wildcard"&&n!==!1?i=>{const o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((a,s)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(a)}).join(t)]}:i=>{const o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(o)]}}function P7t(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=VK}=t,{regexp:i,keys:o}=AAe(e,t),a=o.map(s=>n===!1?GK:s.type==="param"?n:l=>l.split(r).map(n));return function(l){const c=i.exec(l);if(!c)return!1;const u=c[0],d=Object.create(null);for(let f=1;f<c.length;f++){if(c[f]===void 0)continue;const p=o[f-1],h=a[f-1];d[p.name]=h(c[f])}return{path:u,params:d}}}function AAe(e,t={}){const{delimiter:n=VK,end:r=!0,sensitive:i=!1,trailing:o=!0}=t,a=[],s=[],l=i?"":"i",u=(Array.isArray(e)?e:[e]).map(p=>p instanceof Kk?p:YK(p,t));for(const{tokens:p}of u)for(const h of mN(p,0,[])){const g=D7t(h,n,a);s.push(g)}let d=`^(?:${s.join("|")})`;return o&&(d+=`(?:${Pd(n)}$)?`),d+=r?"$":`(?=${Pd(n)}|$)`,{regexp:new RegExp(d,l),keys:a}}function*mN(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const o of mN(r.tokens,0,i))yield*mN(e,t+1,o)}else n.push(r);yield*mN(e,t+1,n)}function D7t(e,t,n){let r="",i="",o=!0;for(let a=0;a<e.length;a++){const s=e[a];if(s.type==="text"){r+=Pd(s.value),i+=s.value,o||(o=s.value.includes(t));continue}if(s.type==="param"||s.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${s.name}": ${iP}`);s.type==="param"?r+=`(${k7t(t,o?"":i)}+)`:r+="([\\s\\S]+)",n.push(s),i="",o=!1;continue}}return r}function k7t(e,t){return t.length<2?e.length<2?`[^${Pd(e+t)}]`:`(?:(?!${Pd(e)})[^${Pd(t)}])`:e.length<2?`(?:(?!${Pd(t)})[^${Pd(e)}])`:`(?:(?!${Pd(t)}|${Pd(e)})[\\s\\S])`}function L7t(e){return e.tokens.map(function t(n,r,i){if(n.type==="text")return O7t(n.value);if(n.type==="group")return`{${n.tokens.map(t).join("")}}`;const a=$7t(n.name)&&F7t(i[r+1])?n.name:JSON.stringify(n.name);if(n.type==="param")return`:${a}`;if(n.type==="wildcard")return`*${a}`;throw new TypeError(`Unexpected token: ${n}`)}).join("")}function $7t(e){const[t,...n]=e;return NAe.test(t)?n.every(r=>WK.test(r)):!1}function F7t(e){return(e==null?void 0:e.type)!=="text"?!0:!WK.test(e.value[0])}var B7t=function(t,n,r){if(r){var i=at(r.keys()).find(function(a){try{return a.startsWith("http")?!1:Ez(a)(t)}catch(s){return console.log("key",a,s),!1}});if(i)return r.get(i)}if(n){var o=Object.keys(n).find(function(a){try{return a!=null&&a.startsWith("http")?!1:Ez(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return n[o]}return{path:""}},ace=function(t,n){var r=t.pathname,i=r===void 0?"/":r,o=t.breadcrumb,a=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,d=n?"":l||"",f=B7t(i,o,a);if(!f)return{title:d,id:"",pageName:d};var p=f.name;return u.locale!==!1&&f.locale&&s&&(p=s({id:f.locale||"",defaultMessage:f.name})),p?n||!l?{title:p,id:f.locale||"",pageName:p}:{title:"".concat(p," - ").concat(l),id:f.locale||"",pageName:p}:{title:d,id:f.locale||"",pageName:d}},Ms={};function Cz(e){"@babel/helpers - typeof";return Cz=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},Cz(e)}Object.defineProperty(Ms,"__esModule",{value:!0});var n1=Ms.pathToRegexp=Ms.tokensToRegexp=Ms.regexpToFunction=Ms.match=Ms.tokensToFunction=Ms.compile=Ms.parse=void 0;function U7t(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",o=n+1;o<e.length;){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=o;continue}if(r==="("){var s=1,l="",o=n+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '+o);for(;o<e.length;){if(e[o]==="\\"){l+=e[o++]+e[o++];continue}if(e[o]===")"){if(s--,s===0){o++;break}}else if(e[o]==="("&&(s++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+o);l+=e[o++]}if(s)throw new TypeError("Unbalanced pattern at "+n);if(!l)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function qK(e,t){t===void 0&&(t={});for(var n=U7t(e),r=t.prefixes,i=r===void 0?"./":r,o="[^"+By(t.delimiter||"/#?")+"]+?",a=[],s=0,l=0,c="",u=function(w){if(l<n.length&&n[l].type===w)return n[l++].value},d=function(w){var x=u(w);if(x!==void 0)return x;var T=n[l],R=T.type,N=T.index;throw new TypeError("Unexpected "+R+" at "+N+", expected "+w)},f=function(){for(var w="",x;x=u("CHAR")||u("ESCAPED_CHAR");)w+=x;return w};l<n.length;){var p=u("CHAR"),h=u("NAME"),g=u("PATTERN");if(h||g){var v=p||"";i.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:h||s++,prefix:v,suffix:"",pattern:g||o,modifier:u("MODIFIER")||""});continue}var y=p||u("ESCAPED_CHAR");if(y){c+=y;continue}c&&(a.push(c),c="");var _=u("OPEN");if(_){var v=f(),b=u("NAME")||"",S=u("PATTERN")||"",C=f();d("CLOSE"),a.push({name:b||(S?s++:""),pattern:b&&!S?o:S,prefix:v,suffix:C,modifier:u("MODIFIER")||""});continue}d("END")}return a}Ms.parse=qK;function j7t(e,t){return PAe(qK(e,t),t)}Ms.compile=j7t;function PAe(e,t){t===void 0&&(t={});var n=KK(t),r=t.encode,i=r===void 0?function(l){return l}:r,o=t.validate,a=o===void 0?!0:o,s=e.map(function(l){if(Cz(l)==="object")return new RegExp("^(?:"+l.pattern+")$",n)});return function(l){for(var c="",u=0;u<e.length;u++){var d=e[u];if(typeof d=="string"){c+=d;continue}var f=l?l[d.name]:void 0,p=d.modifier==="?"||d.modifier==="*",h=d.modifier==="*"||d.modifier==="+";if(Array.isArray(f)){if(!h)throw new TypeError('Expected "'+d.name+'" to not repeat, but got an array');if(f.length===0){if(p)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var g=0;g<f.length;g++){var v=i(f[g],d);if(a&&!s[u].test(v))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but got "'+v+'"');c+=d.prefix+v+d.suffix}continue}if(typeof f=="string"||typeof f=="number"){var v=i(String(f),d);if(a&&!s[u].test(v))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but got "'+v+'"');c+=d.prefix+v+d.suffix;continue}if(!p){var y=h?"an array":"a string";throw new TypeError('Expected "'+d.name+'" to be '+y)}}return c}}Ms.tokensToFunction=PAe;function H7t(e,t){var n=[],r=QK(e,n,t);return DAe(r,n,t)}Ms.match=H7t;function DAe(e,t,n){n===void 0&&(n={});var r=n.decode,i=r===void 0?function(o){return o}:r;return function(o){var a=e.exec(o);if(!a)return!1;for(var s=a[0],l=a.index,c=Object.create(null),u=function(p){if(a[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=a[p].split(h.prefix+h.suffix).map(function(g){return i(g,h)}):c[h.name]=i(a[p],h)},d=1;d<a.length;d++)u(d);return{path:s,index:l,params:c}}}Ms.regexpToFunction=DAe;function By(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function KK(e){return e&&e.sensitive?"":"i"}function z7t(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}function V7t(e,t,n){var r=e.map(function(i){return QK(i,t,n).source});return new RegExp("(?:"+r.join("|")+")",KK(n))}function G7t(e,t,n){return kAe(qK(e,n),t,n)}function kAe(e,t,n){n===void 0&&(n={});for(var r=n.strict,i=r===void 0?!1:r,o=n.start,a=o===void 0?!0:o,s=n.end,l=s===void 0?!0:s,c=n.encode,u=c===void 0?function(E){return E}:c,d="["+By(n.endsWith||"")+"]|$",f="["+By(n.delimiter||"/#?")+"]",p=a?"^":"",h=0,g=e;h<g.length;h++){var v=g[h];if(typeof v=="string")p+=By(u(v));else{var y=By(u(v.prefix)),_=By(u(v.suffix));if(v.pattern)if(t&&t.push(v),y||_)if(v.modifier==="+"||v.modifier==="*"){var b=v.modifier==="*"?"?":"";p+="(?:"+y+"((?:"+v.pattern+")(?:"+_+y+"(?:"+v.pattern+"))*)"+_+")"+b}else p+="(?:"+y+"("+v.pattern+")"+_+")"+v.modifier;else p+="("+v.pattern+")"+v.modifier;else p+="(?:"+y+_+")"+v.modifier}}if(l)i||(p+=f+"?"),p+=n.endsWith?"(?="+d+")":"$";else{var S=e[e.length-1],C=typeof S=="string"?f.indexOf(S[S.length-1])>-1:S===void 0;i||(p+="(?:"+f+"(?="+d+"))?"),C||(p+="(?="+f+"|"+d+")")}return new RegExp(p,KK(n))}Ms.tokensToRegexp=kAe;function QK(e,t,n){return e instanceof RegExp?z7t(e,t):Array.isArray(e)?V7t(e,t,n):G7t(e,t,n)}n1=Ms.pathToRegexp=QK;function Qd(e,t){return t>>>e|t<<32-e}function W7t(e,t,n){return e&t^~e&n}function Y7t(e,t,n){return e&t^e&n^t&n}function q7t(e){return Qd(2,e)^Qd(13,e)^Qd(22,e)}function K7t(e){return Qd(6,e)^Qd(11,e)^Qd(25,e)}function Q7t(e){return Qd(7,e)^Qd(18,e)^e>>>3}function X7t(e){return Qd(17,e)^Qd(19,e)^e>>>10}function Z7t(e,t){return e[t&15]+=X7t(e[t+14&15])+e[t+9&15]+Q7t(e[t+1&15])}var J7t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Li,cs,la,e9t="0123456789abcdef";function sce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function t9t(){Li=new Array(8),cs=new Array(2),la=new Array(64),cs[0]=cs[1]=0,Li[0]=1779033703,Li[1]=3144134277,Li[2]=1013904242,Li[3]=2773480762,Li[4]=1359893119,Li[5]=2600822924,Li[6]=528734635,Li[7]=1541459225}function wz(){var e,t,n,r,i,o,a,s,l,c,u=new Array(16);e=Li[0],t=Li[1],n=Li[2],r=Li[3],i=Li[4],o=Li[5],a=Li[6],s=Li[7];for(var d=0;d<16;d++)u[d]=la[(d<<2)+3]|la[(d<<2)+2]<<8|la[(d<<2)+1]<<16|la[d<<2]<<24;for(var f=0;f<64;f++)l=s+K7t(i)+W7t(i,o,a)+J7t[f],f<16?l+=u[f]:l+=Z7t(u,f),c=q7t(e)+Y7t(e,t,n),s=a,a=o,o=i,i=sce(r,l),r=n,n=t,t=e,e=sce(l,c);Li[0]+=e,Li[1]+=t,Li[2]+=n,Li[3]+=r,Li[4]+=i,Li[5]+=o,Li[6]+=a,Li[7]+=s}function n9t(e,t){var n,r,i=0;r=cs[0]>>3&63;var o=t&63;for((cs[0]+=t<<3)<t<<3&&cs[1]++,cs[1]+=t>>29,n=0;n+63<t;n+=64){for(var a=r;a<64;a++)la[a]=e.charCodeAt(i++);wz(),r=0}for(var s=0;s<o;s++)la[s]=e.charCodeAt(i++)}function r9t(){var e=cs[0]>>3&63;if(la[e++]=128,e<=56)for(var t=e;t<56;t++)la[t]=0;else{for(var n=e;n<64;n++)la[n]=0;wz();for(var r=0;r<56;r++)la[r]=0}la[56]=cs[1]>>>24&255,la[57]=cs[1]>>>16&255,la[58]=cs[1]>>>8&255,la[59]=cs[1]&255,la[60]=cs[0]>>>24&255,la[61]=cs[0]>>>16&255,la[62]=cs[0]>>>8&255,la[63]=cs[0]&255,wz()}function i9t(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=e9t.charAt(Li[t]>>>n&15);return e}function o9t(e){return t9t(),n9t(e,e.length),r9t(),i9t()}function xz(e){"@babel/helpers - typeof";return xz=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},xz(e)}var a9t=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function s9t(e,t){return u9t(e)||c9t(e,t)||XK(e,t)||l9t()}function l9t(){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 c9t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function u9t(e){if(Array.isArray(e))return e}function d9t(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=XK(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function f9t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p9t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m9t(e,t,n){return t&&p9t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h9t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sw(e,t)}function g9t(e){var t=LAe();return function(){var r=Ew(e),i;if(t){var o=Ew(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return v9t(this,i)}}function v9t(e,t){if(t&&(xz(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _9t(e)}function _9t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tz(e){var t=typeof Map=="function"?new Map:void 0;return Tz=function(r){if(r===null||!y9t(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return hN(r,arguments,Ew(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Sw(i,r)},Tz(e)}function hN(e,t,n){return LAe()?hN=Reflect.construct.bind():hN=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Sw(c,a.prototype),c},hN.apply(null,arguments)}function LAe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y9t(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sw(e,t)}function Ew(e){return Ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ew(e)}function lce(e){return E9t(e)||S9t(e)||XK(e)||b9t()}function b9t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XK(e,t){if(e){if(typeof e=="string")return Rz(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rz(e,t)}}function S9t(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E9t(e){if(Array.isArray(e))return Rz(e)}function Rz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C9t(e,t){if(e==null)return{};var n=w9t(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w9t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cce(Object(n),!0).forEach(function(r){x9t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x9t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kl="routes";function lT(e){return e.split("?")[0].split("#")[0]}var ZK=function(t){if(!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},T9t=function(t){var n=t.path;if(!n||n==="/")try{return"/".concat(o9t(JSON.stringify(t)))}catch{}return n&&lT(n)},R9t=function(t,n){var r=t.name,i=t.locale;return"locale"in t&&i===!1||!r?!1:t.locale||"".concat(n,".").concat(r)},$Ae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||ZK(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},O9t=function(t,n){var r=t.menu,i=r===void 0?{}:r,o=t.indexRoute,a=t.path,s=a===void 0?"":a,l=t.children||[],c=i.name,u=c===void 0?t.name:c,d=i.icon,f=d===void 0?t.icon:d,p=i.hideChildren,h=p===void 0?t.hideChildren:p,g=i.flatMenu,v=g===void 0?t.flatMenu:g,y=o&&Object.keys(o).join(",")!=="redirect"?[ca({path:s,menu:i},o)].concat(l||[]):l,_=ca({},t);if(u&&(_.name=u),f&&(_.icon=f),y&&y.length){if(h)return delete _.children,_;var b=JK(ca(ca({},n),{},{data:y}),t);if(v)return b;delete _[Kl]}return _},Nv=function(t){return Array.isArray(t)&&t.length>0};function JK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,o=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(a){return a?Nv(a.children)||a.path||a.originPath||a.layout?!0:(a.redirect||a.unaccessible,!1):!1}).filter(function(a){var s,l;return!(a==null||(s=a.menu)===null||s===void 0)&&s.name||a!=null&&a.flatMenu||!(a==null||(l=a.menu)===null||l===void 0)&&l.flatMenu?!0:a.menu!==!1}).map(function(a){var s=ca(ca({},a),{},{path:a.path||a.originPath});return!s.children&&s[Kl]&&(s.children=s[Kl],delete s[Kl]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=a.children||a[Kl]||[],l=$Ae(a.path,t?t.path:"/"),c=a.name,u=R9t(a,i||"menu"),d=u!==!1&&o!==!1&&r&&u?r({id:u,defaultMessage:c}):c,f=t.pro_layout_parentKeys,p=f===void 0?[]:f;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var h=C9t(t,a9t),g=new Set([].concat(lce(p),lce(a.parentKeys||[])));t.key&&g.add(t.key);var v=ca(ca(ca({},h),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||T9t(ca(ca({},a),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(_){return _&&_!=="/"})});if(d?v.name=d:delete v.name,v.menu===void 0&&delete v.menu,Nv(s)){var y=JK(ca(ca({},e),{},{data:s,parentName:u||""}),v);Nv(y)&&(v.children=y)}return O9t(v,e)}).flat(1)}var I9t=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Nv(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=ca({},n),i=r.children||n[Kl]||[];if(delete r[Kl],Nv(i)&&!r.hideChildrenInMenu&&i.some(function(a){return a&&!!a.name})){var o=e(i);if(o.length)return ca(ca({},r),{},{children:o})}return ca({},n)}).filter(function(n){return n})},N9t=function(e){h9t(n,e);var t=g9t(n);function n(){return f9t(this,n),t.apply(this,arguments)}return m9t(n,[{key:"get",value:function(i){var o;try{var a=d9t(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=s9t(s.value,2),c=l[0],u=l[1],d=lT(c);if(!ZK(c)&&n1(d,[]).test(i)){o=u;break}}}catch(f){a.e(f)}finally{a.f()}}catch{o=void 0}return o}}]),n}(Tz(Map)),M9t=function(t){var n=new N9t,r=function i(o,a){o.forEach(function(s){var l=s.children||s[Kl]||[];Nv(l)&&i(l,s);var c=$Ae(s.path,a?a.path:"/");n.set(lT(c),s)})};return r(t),n},A9t=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[Kl];if(Nv(r)){var i=e(r);if(i.length)return ca({},n)}var o=ca({},n);return delete o[Kl],delete o.children,o}).filter(function(n){return n})},P9t=function(t,n,r,i){var o=JK({data:t,formatMessage:r,locale:n}),a=i?A9t(o):I9t(o),s=M9t(o);return{breadcrumb:s,menuData:a}};function uce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uce(Object(n),!0).forEach(function(r){D9t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D9t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k9t=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=FE({},r);if(!(!i||!i.key)){!i.children&&i[Kl]&&(i.children=i[Kl],delete i[Kl]);var o=i.children||[];n[lT(i.path||i.key||"/")]=FE({},i),n[i.key||i.path||"/"]=FE({},i),o&&(n=FE(FE({},n),e(o)))}}),n},L9t=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!ZK(i)){var o=lT(i);try{if(r&&n1("".concat(o)).test(n)||n1("".concat(o),[]).test(n)||n1("".concat(o,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,o){return i===n?10:o===n?-10:i.substr(1).split("/").length-o.substr(1).split("/").length})},$9t=function(t,n,r,i){var o=k9t(n),a=Object.keys(o),s=L9t(a,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=o[l]||{pro_layout_parentKeys:"",key:""},u=new Map,d=(c.pro_layout_parentKeys||[]).map(function(f){return u.has(f)?null:(u.set(f,!0),o[f])}).filter(function(f){return f});return c.key&&d.push(c),d}).flat(1)},F9t=function(t){var n=m.useContext(qu),r=n.hashId,i=t.style,o=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Re("".concat(o,"-content"),r,ie(ie({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||q1t;return t.ErrorBoundary===!1?M.jsx(_i.Content,{className:c,style:i,children:a}):M.jsx(u,{children:M.jsx(_i.Content,{className:c,style:i,children:a})})},B9t=function(){return M.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[M.jsxs("defs",{children:[M.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[M.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),M.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),M.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[M.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),M.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),M.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),M.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[M.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),M.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),M.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),M.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[M.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),M.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),M.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),M.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:M.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:M.jsx("g",{transform:"translate(20.000000, 20.000000)",children:M.jsxs("g",{children:[M.jsxs("g",{fillRule:"nonzero",children:[M.jsxs("g",{children:[M.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),M.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),M.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),M.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},dce=new ir("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),U9t=function(t){var n,r,i,o,a,s,l,c,u,d,f,p;return ie({},"".concat(t.proComponentsCls,"-layout"),ie(ie(ie({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ie(ie(ie(ie(ie(ie(ie(ie(ie({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ie(ie({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:dce,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ie({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:dce,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((f=t.layout)===null||f===void 0||(f=f.header)===null||f===void 0?void 0:f.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px")}}))};function j9t(e,t){var n=t.proLayoutCollapsedWidth;return Di("ProLayoutSiderMenu",function(r){var i=q(q({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[U9t(i)]})}var fce=function(t){var n,r=t.isMobile,i=t.siderWidth,o=t.collapsed,a=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,d=t.getContainer,f=m.useContext(qu),p=f.token;m.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var h=ur(t,["className","style"]),g=de.useContext(Pn.ConfigContext),v=g.direction,y=j9t("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),_=y.wrapSSR,b=y.hashId,S=Re("".concat(u,"-sider"),l,b);if(c)return null;var C=yk(!o,function(){return a==null?void 0:a(!0)});return _(r?M.jsx(Lq,q(q({placement:v==="rtl"?"right":"left",className:Re("".concat(u,"-drawer-sider"),l)},C),{},{style:q({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:d||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=p.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:M.jsx(rce,q(q({},h),{},{isMobile:!0,className:S,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):M.jsx(rce,q(q({className:S,originCollapsed:o},h),{},{style:s})))},H9t=function(){var t;return typeof process>"u"?bp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||bp},z9t=function(t){var n,r,i,o,a,s,l,c,u,d,f,p,h,g,v,y,_,b,S,C,E,w,x,T,R,N,I,P,D,F,L,B;return(n=H9t())!==null&&n!==void 0&&n.startsWith("5")?{}:ie(ie(ie({},t.componentCls,ie(ie({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(E={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(E,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ie(ie({color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ie({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active,
|
||
`).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),ie({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,`-menu-submenu-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ie({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive}))),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ie(ie({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected,borderRadius:t.borderRadius}),"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ie({color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive,borderRadius:t.borderRadius,backgroundColor:"".concat((u=t.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorBgMenuItemHover," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuActive}))),"".concat(t.antCls,"-menu-item-selected"),{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSelected}),ie(ie(ie(ie(ie(E,"".concat(t.antCls,"-menu-submenu-selected"),{color:(p=t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-inline) ").concat(t.antCls,"-menu-submenu-open"),{color:(h=t.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),"&".concat(t.antCls,"-menu-vertical"),ie({},"".concat(t.antCls,"-menu-submenu-selected"),{borderRadius:t.borderRadius,color:(g=t.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected})),"".concat(t.antCls,"-menu-submenu:hover > ").concat(t.antCls,"-menu-submenu-title > ").concat(t.antCls,"-menu-submenu-arrow"),{color:(v=t.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive}),"&".concat(t.antCls,"-menu-horizontal"),ie(ie(ie(ie({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-submenu:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(y=t.layout)===null||y===void 0||(y=y.header)===null||y===void 0?void 0:y.colorTextMenuActive,backgroundColor:"".concat((_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorBgMenuItemHover," !important")}),"".concat(t.antCls,`-menu-item-open,
|
||
`).concat(t.antCls,`-menu-submenu-open,
|
||
`).concat(t.antCls,`-menu-item-selected,
|
||
`).concat(t.antCls,"-menu-submenu-selected"),ie({backgroundColor:(b=t.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((S=t.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((C=t.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),ie(ie({},"&".concat(t.antCls,"-menu"),ie({color:(w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),ie(ie({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,`-menu-submenu-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ie({color:(x=t.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(R=t.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(N=t.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ie(ie(ie(ie({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ie({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active,
|
||
`).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(P=t.layout)===null||P===void 0||(P=P.sider)===null||P===void 0?void 0:P.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(D=t.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ie(ie({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(F=t.layout)===null||F===void 0||(F=F.sider)===null||F===void 0?void 0:F.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ie({color:(L=t.layout)===null||L===void 0||(L=L.sider)===null||L===void 0?void 0:L.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(B=t.layout)===null||B===void 0||(B=B.sider)===null||B===void 0?void 0:B.colorTextMenuActive}))))},V9t=function(t){var n,r,i,o;return ie(ie({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,ie(ie(ie(ie({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(i=t.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(o=t.layout)===null||o===void 0?void 0:o.bgLayout}))};function G9t(e){return Di("ProLayout",function(t){var n=q(q({},t),{},{componentCls:".".concat(e)});return[V9t(n),z9t(n)]})}function W9t(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var Y9t=function(){var t;return typeof process>"u"?bp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||bp},q9t=function(t,n,r){var i=t,o=i.breadcrumbName,a=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?M.jsx("span",{children:a||o}):M.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||o})},K9t=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},Q9t=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],o=i.find(function(a){try{return a!=null&&a.startsWith("http")?!1:Ez(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});o&&(r=t.get(o))}return r||{path:""}},X9t=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},Z9t=function(t,n,r){var i=W9t(t==null?void 0:t.pathname),o=i.map(function(a){var s=Q9t(n,a),l=K9t(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:a,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(a){return a&&a.linkPath});return o},J9t=function(t){var n=X9t(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?Z9t(r,i,t):[]},ezt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,o=n.breadcrumbProps||{},a=o.minLength,s=a===void 0?2:a,l=J9t(t),c=function(f){for(var p=i||q9t,h=arguments.length,g=new Array(h>1?h-1:0),v=1;v<h;v++)g[v-1]=arguments[v];return p==null?void 0:p.apply(void 0,[q(q({},f),{},{path:f.linkPath||f.path})].concat(g))},u=l;return r&&(u=r(u||[])||void 0),(u&&u.length<s||r===!1)&&(u=void 0),Vx(Y9t(),"5.3.0")>-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function tzt(e){return at(e).reduce(function(t,n){var r=Oe(n,2),i=r[0],o=r[1];return t[i]=o,t},{})}var nzt=function e(t,n,r,i){var o=P9t(t,(n==null?void 0:n.locale)||!1,r,!0),a=o.menuData,s=o.breadcrumb;return i?e(i(a),n,r,void 0):{breadcrumb:tzt(s),breadcrumbMap:s,menuData:a}},rzt=function(t){var n=m.useState({}),r=Oe(n,2),i=r[0],o=r[1];return m.useEffect(function(){o($c({layout:qt(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},izt=["id","defaultMessage"],ozt=["fixSiderbar","navTheme","layout"],pce=0,azt=function(t,n){var r;return t.headerRender===!1||t.pure?null:M.jsx(m7t,q(q({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},szt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(q({},t),M.jsx(AHt,{})):null},lzt=function(t,n){var r,i=t.layout,o=t.isMobile,a=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var d=t.menuData;if(l&&(s!==!1||i==="mix")&&!o){var f=a||n,p=Oe(f,1),h=p[0];if(h){var g;d=((g=t.menuData)===null||g===void 0||(g=g.find(function(b){return b.key===h}))===null||g===void 0?void 0:g.children)||[]}else d=[]}var v=qk(d||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(i==="top"&&!o){var y;return M.jsx(fce,q(q({matchMenuKeys:n},t),{},{hide:!0,stylish:(y=t.stylish)===null||y===void 0?void 0:y.sider}))}var _=M.jsx(fce,q(q({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,_):_},czt=function(t,n){var r=n.pageTitleRender,i=ace(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,i.title,i);if(typeof o=="string")return ace(q(q({},i),{},{title:o}));Wr(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return i},uzt=function(t,n,r){return t?n?64:r:0},dzt=function(t){var n,r,i,o,a,s,l,c,u,d,f,p,h,g,v=t||{},y=v.children,_=v.onCollapse,b=v.location,S=b===void 0?{pathname:"/"}:b,C=v.contentStyle,E=v.route,w=v.defaultCollapsed,x=v.style,T=v.siderWidth,R=v.menu,N=v.siderMenuType,I=v.isChildrenLayout,P=v.menuDataRender,D=v.actionRef,F=v.bgLayoutImgList,L=v.formatMessage,B=v.loading,U=m.useMemo(function(){return T||(t.layout==="mix"?215:256)},[t.layout,T]),G=m.useContext(Pn.ConfigContext),V=(n=t.prefixCls)!==null&&n!==void 0?n:G.getPrefixCls("pro"),W=Fn(!1,{value:R==null?void 0:R.loading,onChange:R==null?void 0:R.onLoadingChange}),$=Oe(W,2),H=$[0],K=$[1],re=m.useState(function(){return pce+=1,"pro-layout-".concat(pce)}),Q=Oe(re,1),A=Q[0],k=m.useCallback(function(pt){var Dt=pt.id,Wt=pt.defaultMessage,Et=It(pt,izt);if(L)return L(q({id:Dt,defaultMessage:Wt},Et));var yt=T7t();return yt[Dt]?yt[Dt]:Wt},[L]),Z=oK([A,R==null?void 0:R.params],function(){var pt=Oo(yr().mark(function Dt(Wt){var Et,yt,Ft,Ae;return yr().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return yt=Oe(Wt,2),Ft=yt[1],K(!0),nt.next=4,R==null||(Et=R.request)===null||Et===void 0?void 0:Et.call(R,Ft||{},(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[]);case 4:return Ae=nt.sent,K(!1),nt.abrupt("return",Ae);case 7:case"end":return nt.stop()}},Dt)}));return function(Dt){return pt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ne=Z.data,oe=Z.mutate,ae=Z.isLoading;m.useEffect(function(){K(ae)},[ae]);var ue=iK(),fe=ue.cache;m.useEffect(function(){return function(){fe instanceof Map&&fe.delete(A)}},[]);var se=m.useMemo(function(){return nzt(ne||(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[],R,k,P)},[k,R,P,ne,E==null?void 0:E.children,E==null?void 0:E.routes]),pe=se||{},_e=pe.breadcrumb,Te=pe.breadcrumbMap,xe=pe.menuData,ge=xe===void 0?[]:xe;D&&R!==null&&R!==void 0&&R.request&&(D.current={reload:function(){oe()}});var Ce=m.useMemo(function(){return $9t(S.pathname||"/",ge||[])},[S.pathname,ge]),ye=m.useMemo(function(){return Array.from(new Set(Ce.map(function(pt){return pt.key||pt.path||""})))},[Ce]),be=Ce[Ce.length-1]||{},Ee=rzt(be),Me=q(q({},t),Ee),X=Me.fixSiderbar;Me.navTheme;var Y=Me.layout,J=It(Me,ozt),he=uRt(),ve=m.useMemo(function(){return(he==="sm"||he==="xs")&&!t.disableMobile},[he,t.disableMobile]),ce=Y!=="top"&&!ve,$e=Fn(function(){return w!==void 0?w:!!(ve||he==="md")},{value:t.collapsed,onChange:_}),Be=Oe($e,2),me=Be[0],Fe=Be[1],Xe=ur(q(q(q({prefixCls:V},t),{},{siderWidth:U},Ee),{},{formatMessage:k,breadcrumb:_e,menu:q(q({},R),{},{type:N||(R==null?void 0:R.type),loading:H}),layout:Y}),["className","style","breadcrumbRender"]),ze=czt(q(q({pathname:S.pathname},Xe),{},{breadcrumbMap:Te}),t),qe=ezt(q(q({},Xe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:Te}),t),Ge=lzt(q(q({},Xe),{},{menuData:ge,onCollapse:Fe,isMobile:ve,collapsed:me}),ye),We=azt(q(q({},Xe),{},{children:null,hasSiderMenu:!!Ge,menuData:ge,isMobile:ve,collapsed:me,onCollapse:Fe}),ye),Lt=szt(q({isMobile:ve,collapsed:me},Xe)),ut=m.useContext(Wle),ft=ut.isChildrenLayout,bt=I!==void 0?I:ft,St="".concat(V,"-layout"),Ht=G9t(St),xt=Ht.wrapSSR,Nt=Ht.hashId,Vt=Re(t.className,Nt,"ant-design-pro",St,ie(ie(ie(ie(ie({},"screen-".concat(he),he),"".concat(St,"-top-menu"),Y==="top"),"".concat(St,"-is-children"),bt),"".concat(St,"-fix-siderbar"),X),"".concat(St,"-").concat(Y),Y)),Ue=uzt(!!ce,me,U),Ve={position:"relative"};(bt||C&&C.minHeight)&&(Ve.minHeight=0),m.useEffect(function(){var pt;(pt=t.onPageChange)===null||pt===void 0||pt.call(t,t.location)},[S.pathname,(r=S.pathname)===null||r===void 0?void 0:r.search]);var je=m.useState(!1),et=Oe(je,2),_t=et[0],vt=et[1],Mt=m.useState(0),wt=Oe(Mt,2),jt=wt[0],zt=wt[1];ywt(ze,t.title||!1);var Gt=m.useContext(qu),$t=Gt.token,on=m.useMemo(function(){return F&&F.length>0?F==null?void 0:F.map(function(pt,Dt){return M.jsx("img",{src:pt.src,style:q({position:"absolute"},pt)},Dt)}):null},[F]);return xt(M.jsx(Wle.Provider,{value:q(q({},Xe),{},{breadcrumb:qe,menuData:ge,isMobile:ve,collapsed:me,hasPageContainer:jt,setHasPageContainer:zt,isChildrenLayout:!0,title:ze.pageName,hasSiderMenu:!!Ge,hasHeader:!!We,siderWidth:Ue,hasFooter:!!Lt,hasFooterToolbar:_t,setHasFooterToolbar:vt,pageTitleInfo:ze,matchMenus:Ce,matchMenuKeys:ye,currentMenu:be}),children:t.pure?M.jsx(M.Fragment,{children:y}):M.jsxs("div",{className:Vt,children:[on||(i=$t.layout)!==null&&i!==void 0&&i.bgLayout?M.jsx("div",{className:Re("".concat(St,"-bg-list"),Nt),children:on}):null,M.jsxs(_i,{style:q({minHeight:"100%",flexDirection:Ge?"row":void 0},x),children:[M.jsx(Pn,{theme:{hashed:Tb(),token:{controlHeightLG:((o=$t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||($t==null?void 0:$t.controlHeightLG)},components:{Menu:bNe({colorItemBg:((a=$t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=$t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:$t.borderRadius,colorItemBgSelected:((l=$t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||($t==null?void 0:$t.colorBgTextHover),colorItemBgHover:((c=$t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||($t==null?void 0:$t.colorBgTextHover),colorItemBgActive:((u=$t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||($t==null?void 0:$t.colorBgTextActive),colorItemBgSelectedHorizontal:((d=$t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||($t==null?void 0:$t.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((f=$t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu)||($t==null?void 0:$t.colorTextSecondary),colorItemTextHover:((p=$t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((h=$t.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:$t==null?void 0:$t.colorBgElevated,subMenuItemBg:$t==null?void 0:$t.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:$t==null?void 0:$t.colorBgElevated})}},children:Ge}),M.jsxs("div",{style:Ve,className:"".concat(St,"-container ").concat(Nt).trim(),children:[We,M.jsx(F9t,q(q({hasPageContainer:jt,isChildrenLayout:bt},J),{},{hasHeader:!!We,prefixCls:St,style:C,children:B?M.jsx(RHt,{}):y})),Lt,_t&&M.jsx("div",{className:"".concat(St,"-has-footer"),style:{height:64,marginBlockStart:(g=$t.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},FAe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return M.jsx(Pn,{theme:n?{token:{colorPrimary:n}}:void 0,children:M.jsx(_k,q(q({},r),{},{token:t.token,prefixCls:t.prefixCls,children:M.jsx(dzt,q(q({logo:M.jsx(B9t,{})},xAe),{},{location:sK()?window.location:void 0},t))}))})};function fzt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const Qk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function PS(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function eQ(e){return"nodeType"in e}function Ws(e){var t,n;return e?PS(e)?e:eQ(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function tQ(e){const{Document:t}=Ws(e);return e instanceof t}function cT(e){return PS(e)?!1:e instanceof Ws(e).HTMLElement}function BAe(e){return e instanceof Ws(e).SVGElement}function DS(e){return e?PS(e)?e.document:eQ(e)?tQ(e)?e:cT(e)||BAe(e)?e.ownerDocument:document:document:document}const ad=Qk?m.useLayoutEffect:m.useEffect;function Xk(e){const t=m.useRef(e);return ad(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function pzt(){const e=m.useRef(null),t=m.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Cw(e,t){t===void 0&&(t=[e]);const n=m.useRef(e);return ad(()=>{n.current!==e&&(n.current=e)},t),n}function uT(e,t){const n=m.useRef();return m.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function oP(e){const t=Xk(e),n=m.useRef(null),r=m.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function aP(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let ZF={};function dT(e,t){return m.useMemo(()=>{if(t)return t;const n=ZF[e]==null?0:ZF[e]+1;return ZF[e]=n,e+"-"+n},[e,t])}function UAe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const s=Object.entries(a);for(const[l,c]of s){const u=o[l];u!=null&&(o[l]=u+e*c)}return o},{...t})}}const Rb=UAe(1),sP=UAe(-1);function mzt(e){return"clientX"in e&&"clientY"in e}function Zk(e){if(!e)return!1;const{KeyboardEvent:t}=Ws(e.target);return t&&e instanceof t}function hzt(e){if(!e)return!1;const{TouchEvent:t}=Ws(e.target);return t&&e instanceof t}function lP(e){if(hzt(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 mzt(e)?{x:e.clientX,y:e.clientY}:null}const xp=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[xp.Translate.toString(e),xp.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),mce="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function gzt(e){return e.matches(mce)?e:e.querySelector(mce)}const vzt={display:"none"};function _zt(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:vzt},n)}function yzt(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function bzt(){const[e,t]=m.useState("");return{announce:m.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const jAe=m.createContext(null);function Szt(e){const t=m.useContext(jAe);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Ezt(){const[e]=m.useState(()=>new Set),t=m.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[m.useCallback(r=>{let{type:i,event:o}=r;e.forEach(a=>{var s;return(s=a[i])==null?void 0:s.call(a,o)})},[e]),t]}const Czt={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.
|
||
`},wzt={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 xzt(e){let{announcements:t=wzt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Czt}=e;const{announce:o,announcement:a}=bzt(),s=dT("DndLiveRegion"),[l,c]=m.useState(!1);if(m.useEffect(()=>{c(!0)},[]),Szt(m.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&o(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;o(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;o(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;o(t.onDragCancel({active:f,over:p}))}}),[o,t])),!l)return null;const u=de.createElement(de.Fragment,null,de.createElement(_zt,{id:r,value:i.draggable}),de.createElement(yzt,{id:s,announcement:a}));return n?Ha.createPortal(u,n):u}var da;(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"})(da||(da={}));function cP(){}function Tzt(e,t){return m.useMemo(()=>({sensor:e,options:{}}),[e,t])}function Rzt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const sd=Object.freeze({x:0,y:0});function Ozt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Izt(e,t){const n=lP(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Nzt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Mzt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Azt(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Pzt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Dzt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=a*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const kzt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=Dzt(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(Mzt)};function Lzt(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const $zt=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:a}=o,s=n.get(a);if(s&&Lzt(r,s)){const c=Azt(s).reduce((d,f)=>d+Ozt(r,f),0),u=Number((c/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:u}})}}return i.sort(Nzt)};function Fzt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function HAe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:sd}function Bzt(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const Uzt=Bzt(1);function zAe(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 jzt(e,t,n){const r=zAe(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const Hzt={ignoreTransform:!1};function kS(e,t){t===void 0&&(t=Hzt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Ws(e).getComputedStyle(e);c&&(n=jzt(n,c,u))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function hce(e){return kS(e,{ignoreTransform:!0})}function zzt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Vzt(e,t){return t===void 0&&(t=Ws(e).getComputedStyle(e)),t.position==="fixed"}function Gzt(e,t){t===void 0&&(t=Ws(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function nQ(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(tQ(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!cT(i)||BAe(i)||n.includes(i))return n;const o=Ws(e).getComputedStyle(i);return i!==e&&Gzt(i,o)&&n.push(i),Vzt(i,o)?n:r(i.parentNode)}return e?r(e):n}function VAe(e){const[t]=nQ(e,1);return t??null}function JF(e){return!Qk||!e?null:PS(e)?e:eQ(e)?tQ(e)||e===DS(e).scrollingElement?window:cT(e)?e:null:null}function GAe(e){return PS(e)?e.scrollX:e.scrollLeft}function WAe(e){return PS(e)?e.scrollY:e.scrollTop}function Oz(e){return{x:GAe(e),y:WAe(e)}}var Oa;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Oa||(Oa={}));function YAe(e){return!Qk||!e?!1:e===document.scrollingElement}function qAe(e){const t={x:0,y:0},n=YAe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const Wzt={x:.2,y:.2};function Yzt(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Wzt);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=qAe(e),p={x:0,y:0},h={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+g.height?(p.y=Oa.Backward,h.y=r*Math.abs((t.top+g.height-o)/g.height)):!u&&l>=t.bottom-g.height&&(p.y=Oa.Forward,h.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!f&&s>=t.right-g.width?(p.x=Oa.Forward,h.x=r*Math.abs((t.right-g.width-s)/g.width)):!d&&a<=t.left+g.width&&(p.x=Oa.Backward,h.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:p,speed:h}}function qzt(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function KAe(e){return e.reduce((t,n)=>Rb(t,Oz(n)),sd)}function Kzt(e){return e.reduce((t,n)=>t+GAe(n),0)}function Qzt(e){return e.reduce((t,n)=>t+WAe(n),0)}function QAe(e,t){if(t===void 0&&(t=kS),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);VAe(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Xzt=[["x",["left","right"],Kzt],["y",["top","bottom"],Qzt]];class rQ{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=nQ(n),i=KAe(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of Xzt)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class r1{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 i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Zzt(e){const{EventTarget:t}=Ws(e);return e instanceof t?e:DS(e)}function eB(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 Mc;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Mc||(Mc={}));function gce(e){e.preventDefault()}function Jzt(e){e.stopPropagation()}var gi;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(gi||(gi={}));const XAe={start:[gi.Space,gi.Enter],cancel:[gi.Esc],end:[gi.Space,gi.Enter]},eVt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case gi.Right:return{...n,x:n.x+25};case gi.Left:return{...n,x:n.x-25};case gi.Down:return{...n,y:n.y+25};case gi.Up:return{...n,y:n.y-25}}};class ZAe{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 r1(DS(n)),this.windowListeners=new r1(Ws(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Mc.Resize,this.handleCancel),this.windowListeners.add(Mc.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Mc.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&QAe(r),n(sd)}handleKeyDown(t){if(Zk(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=XAe,coordinateGetter:a=eVt,scrollBehavior:s="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:sd;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=sP(d,u),p={x:0,y:0},{scrollableAncestors:h}=r.current;for(const g of h){const v=t.code,{isTop:y,isRight:_,isLeft:b,isBottom:S,maxScroll:C,minScroll:E}=qAe(g),w=qzt(g),x={x:Math.min(v===gi.Right?w.right-w.width/2:w.right,Math.max(v===gi.Right?w.left:w.left+w.width/2,d.x)),y:Math.min(v===gi.Down?w.bottom-w.height/2:w.bottom,Math.max(v===gi.Down?w.top:w.top+w.height/2,d.y))},T=v===gi.Right&&!_||v===gi.Left&&!b,R=v===gi.Down&&!S||v===gi.Up&&!y;if(T&&x.x!==d.x){const N=g.scrollLeft+f.x,I=v===gi.Right&&N<=C.x||v===gi.Left&&N>=E.x;if(I&&!f.y){g.scrollTo({left:N,behavior:s});return}I?p.x=g.scrollLeft-N:p.x=v===gi.Right?g.scrollLeft-C.x:g.scrollLeft-E.x,p.x&&g.scrollBy({left:-p.x,behavior:s});break}else if(R&&x.y!==d.y){const N=g.scrollTop+f.y,I=v===gi.Down&&N<=C.y||v===gi.Up&&N>=E.y;if(I&&!f.x){g.scrollTo({top:N,behavior:s});return}I?p.y=g.scrollTop-N:p.y=v===gi.Down?g.scrollTop-C.y:g.scrollTop-E.y,p.y&&g.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,Rb(sP(d,this.referenceCoordinates),p))}}}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()}}ZAe.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=XAe,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function vce(e){return!!(e&&"distance"in e)}function _ce(e){return!!(e&&"delay"in e)}class iQ{constructor(t,n,r){var i;r===void 0&&(r=Zzt(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:a}=o;this.props=t,this.events=n,this.document=DS(a),this.documentListeners=new r1(this.document),this.listeners=new r1(r),this.windowListeners=new r1(Ws(a)),this.initialCoordinates=(i=lP(o))!=null?i:sd,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),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Mc.Resize,this.handleCancel),this.windowListeners.add(Mc.DragStart,gce),this.windowListeners.add(Mc.VisibilityChange,this.handleCancel),this.windowListeners.add(Mc.ContextMenu,gce),this.documentListeners.add(Mc.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_ce(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(vce(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(Mc.Click,Jzt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Mc.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const l=(n=lP(t))!=null?n:sd,c=sP(i,l);if(!r&&s){if(vce(s)){if(s.tolerance!=null&&eB(c,s.tolerance))return this.handleCancel();if(eB(c,s.distance))return this.handleStart()}return _ce(s)&&eB(c,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===gi.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const tVt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class JAe extends iQ{constructor(t){const{event:n}=t,r=DS(n.target);super(t,tVt,r)}}JAe.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 nVt={move:{name:"mousemove"},end:{name:"mouseup"}};var Iz;(function(e){e[e.RightClick=2]="RightClick"})(Iz||(Iz={}));class ePe extends iQ{constructor(t){super(t,nVt,DS(t.event.target))}}ePe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Iz.RightClick?!1:(r==null||r({event:n}),!0)}}];const tB={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class rVt extends iQ{constructor(t){super(t,tB)}static setup(){return window.addEventListener(tB.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(tB.move.name,t)};function t(){}}}rVt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var i1;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(i1||(i1={}));var uP;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(uP||(uP={}));function iVt(e){let{acceleration:t,activator:n=i1.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=uP.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=aVt({delta:d,disabled:!o}),[h,g]=pzt(),v=m.useRef({x:0,y:0}),y=m.useRef({x:0,y:0}),_=m.useMemo(()=>{switch(n){case i1.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case i1.DraggableRect:return i}},[n,i,l]),b=m.useRef(null),S=m.useCallback(()=>{const E=b.current;if(!E)return;const w=v.current.x*y.current.x,x=v.current.y*y.current.y;E.scrollBy(w,x)},[]),C=m.useMemo(()=>s===uP.TreeOrder?[...c].reverse():c,[s,c]);m.useEffect(()=>{if(!o||!c.length||!_){g();return}for(const E of C){if((r==null?void 0:r(E))===!1)continue;const w=c.indexOf(E),x=u[w];if(!x)continue;const{direction:T,speed:R}=Yzt(E,x,_,t,f);for(const N of["x","y"])p[N][T[N]]||(R[N]=0,T[N]=0);if(R.x>0||R.y>0){g(),b.current=E,h(S,a),v.current=R,y.current=T;return}}v.current={x:0,y:0},y.current={x:0,y:0},g()},[t,S,r,g,o,a,JSON.stringify(_),JSON.stringify(p),h,c,C,u,JSON.stringify(f)])}const oVt={x:{[Oa.Backward]:!1,[Oa.Forward]:!1},y:{[Oa.Backward]:!1,[Oa.Forward]:!1}};function aVt(e){let{delta:t,disabled:n}=e;const r=aP(t);return uT(i=>{if(n||!r||!i)return oVt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Oa.Backward]:i.x[Oa.Backward]||o.x===-1,[Oa.Forward]:i.x[Oa.Forward]||o.x===1},y:{[Oa.Backward]:i.y[Oa.Backward]||o.y===-1,[Oa.Forward]:i.y[Oa.Forward]||o.y===1}}},[n,t,r])}function sVt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return uT(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function lVt(e,t){return m.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var ww;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ww||(ww={}));var Nz;(function(e){e.Optimized="optimized"})(Nz||(Nz={}));const yce=new Map;function cVt(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=m.useState(null),{frequency:s,measure:l,strategy:c}=i,u=m.useRef(e),d=v(),f=Cw(d),p=m.useCallback(function(y){y===void 0&&(y=[]),!f.current&&a(_=>_===null?y:_.concat(y.filter(b=>!_.includes(b))))},[f]),h=m.useRef(null),g=uT(y=>{if(d&&!n)return yce;if(!y||y===yce||u.current!==e||o!=null){const _=new Map;for(let b of e){if(!b)continue;if(o&&o.length>0&&!o.includes(b.id)&&b.rect.current){_.set(b.id,b.rect.current);continue}const S=b.node.current,C=S?new rQ(l(S),S):null;b.rect.current=C,C&&_.set(b.id,C)}return _}return y},[e,o,n,d,l]);return m.useEffect(()=>{u.current=e},[e]),m.useEffect(()=>{d||p()},[n,d]),m.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),m.useEffect(()=>{d||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{p(),h.current=null},s))},[s,d,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:o!=null};function v(){switch(c){case ww.Always:return!1;case ww.BeforeDragging:return n;default:return!n}}}function oQ(e,t){return uT(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function uVt(e,t){return oQ(e,t)}function dVt(e){let{callback:t,disabled:n}=e;const r=Xk(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Jk(e){let{callback:t,disabled:n}=e;const r=Xk(t),i=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return m.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function fVt(e){return new rQ(kS(e),e)}function bce(e,t,n){t===void 0&&(t=fVt);const[r,i]=m.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=dVt({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=Jk({callback:o});return ad(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function pVt(e){const t=oQ(e);return HAe(e,t)}const Sce=[];function mVt(e){const t=m.useRef(e),n=uT(r=>e?r&&r!==Sce&&e&&t.current&&e.parentNode===t.current.parentNode?r:nQ(e):Sce,[e]);return m.useEffect(()=>{t.current=e},[e]),n}function hVt(e){const[t,n]=m.useState(null),r=m.useRef(e),i=m.useCallback(o=>{const a=JF(o.target);a&&n(s=>s?(s.set(a,Oz(a)),new Map(s)):null)},[]);return m.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const c=JF(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,Oz(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(l=>{const c=JF(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>Rb(o,a),sd):KAe(e):sd,[e,t])}function Ece(e,t){t===void 0&&(t=[]);const n=m.useRef(null);return m.useEffect(()=>{n.current=null},t),m.useEffect(()=>{const r=e!==sd;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?sP(e,n.current):sd}function gVt(e){m.useEffect(()=>{if(!Qk)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 vVt(e,t){return m.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function tPe(e){return m.useMemo(()=>e?zzt(e):null,[e])}const Cce=[];function _Vt(e,t){t===void 0&&(t=kS);const[n]=e,r=tPe(n?Ws(n):null),[i,o]=m.useState(Cce);function a(){o(()=>e.length?e.map(l=>YAe(l)?r:new rQ(t(l),l)):Cce)}const s=Jk({callback:a});return ad(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function nPe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return cT(t)?t:e}function yVt(e){let{measure:t}=e;const[n,r]=m.useState(null),i=m.useCallback(c=>{for(const{target:u}of c)if(cT(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=Jk({callback:i}),a=m.useCallback(c=>{const u=nPe(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,l]=oP(a);return m.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const bVt=[{sensor:JAe,options:{}},{sensor:ZAe,options:{}}],SVt={current:{}},gN={draggable:{measure:hce},droppable:{measure:hce,strategy:ww.WhileDragging,frequency:Nz.Optimized},dragOverlay:{measure:kS}};class o1 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 EVt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new o1,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:cP},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gN,measureDroppableContainers:cP,windowRect:null,measuringScheduled:!1},rPe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:cP,draggableNodes:new Map,over:null,measureDroppableContainers:cP},fT=m.createContext(rPe),iPe=m.createContext(EVt);function CVt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new o1}}}function wVt(e,t){switch(t.type){case da.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case da.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case da.DragEnd:case da.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case da.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new o1(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case da.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new o1(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case da.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new o1(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function xVt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=m.useContext(fT),o=aP(r),a=aP(n==null?void 0:n.id);return m.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!Zk(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=gzt(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function oPe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function TVt(e){return m.useMemo(()=>({draggable:{...gN.draggable,...e==null?void 0:e.draggable},droppable:{...gN.droppable,...e==null?void 0:e.droppable},dragOverlay:{...gN.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 RVt(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=m.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;ad(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=HAe(u,r);if(a||(d.x=0),s||(d.y=0),o.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=VAe(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,a,s,r,n])}const eL=m.createContext({...sd,scaleX:1,scaleY:1});var Am;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Am||(Am={}));const OVt=m.memo(function(t){var n,r,i,o;let{id:a,accessibility:s,autoScroll:l=!0,children:c,sensors:u=bVt,collisionDetection:d=kzt,measuring:f,modifiers:p,...h}=t;const g=m.useReducer(wVt,void 0,CVt),[v,y]=g,[_,b]=Ezt(),[S,C]=m.useState(Am.Uninitialized),E=S===Am.Initialized,{draggable:{active:w,nodes:x,translate:T},droppable:{containers:R}}=v,N=w!=null?x.get(w):null,I=m.useRef({initial:null,translated:null}),P=m.useMemo(()=>{var ut;return w!=null?{id:w,data:(ut=N==null?void 0:N.data)!=null?ut:SVt,rect:I}:null},[w,N]),D=m.useRef(null),[F,L]=m.useState(null),[B,U]=m.useState(null),G=Cw(h,Object.values(h)),V=dT("DndDescribedBy",a),W=m.useMemo(()=>R.getEnabled(),[R]),$=TVt(f),{droppableRects:H,measureDroppableContainers:K,measuringScheduled:re}=cVt(W,{dragging:E,dependencies:[T.x,T.y],config:$.droppable}),Q=sVt(x,w),A=m.useMemo(()=>B?lP(B):null,[B]),k=Lt(),Z=uVt(Q,$.draggable.measure);RVt({activeNode:w!=null?x.get(w):null,config:k.layoutShiftCompensation,initialRect:Z,measure:$.draggable.measure});const ne=bce(Q,$.draggable.measure,Z),oe=bce(Q?Q.parentElement:null),ae=m.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:H,draggableNodes:x,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ue=R.getNodeFor((n=ae.current.over)==null?void 0:n.id),fe=yVt({measure:$.dragOverlay.measure}),se=(r=fe.nodeRef.current)!=null?r:Q,pe=E?(i=fe.rect)!=null?i:ne:null,_e=!!(fe.nodeRef.current&&fe.rect),Te=pVt(_e?null:ne),xe=tPe(se?Ws(se):null),ge=mVt(E?ue??Q:null),Ce=_Vt(ge),ye=oPe(p,{transform:{x:T.x-Te.x,y:T.y-Te.y,scaleX:1,scaleY:1},activatorEvent:B,active:P,activeNodeRect:ne,containerNodeRect:oe,draggingNodeRect:pe,over:ae.current.over,overlayNodeRect:fe.rect,scrollableAncestors:ge,scrollableAncestorRects:Ce,windowRect:xe}),be=A?Rb(A,T):null,Ee=hVt(ge),Me=Ece(Ee),X=Ece(Ee,[ne]),Y=Rb(ye,Me),J=pe?Uzt(pe,ye):null,he=P&&J?d({active:P,collisionRect:J,droppableRects:H,droppableContainers:W,pointerCoordinates:be}):null,ve=Pzt(he,"id"),[ce,$e]=m.useState(null),Be=_e?ye:Rb(ye,X),me=Fzt(Be,(o=ce==null?void 0:ce.rect)!=null?o:null,ne),Fe=m.useRef(null),Xe=m.useCallback((ut,ft)=>{let{sensor:bt,options:St}=ft;if(D.current==null)return;const Ht=x.get(D.current);if(!Ht)return;const xt=ut.nativeEvent,Nt=new bt({active:D.current,activeNode:Ht,event:xt,options:St,context:ae,onStart(Ue){const Ve=D.current;if(Ve==null)return;const je=x.get(Ve);if(!je)return;const{onDragStart:et}=G.current,_t={activatorEvent:xt,active:{id:Ve,data:je.data,rect:I}};Ha.unstable_batchedUpdates(()=>{et==null||et(_t),C(Am.Initializing),y({type:da.DragStart,initialCoordinates:Ue,active:Ve}),_({type:"onDragStart",event:_t}),L(Fe.current),U(xt)})},onMove(Ue){y({type:da.DragMove,coordinates:Ue})},onEnd:Vt(da.DragEnd),onCancel:Vt(da.DragCancel)});Fe.current=Nt;function Vt(Ue){return async function(){const{active:je,collisions:et,over:_t,scrollAdjustedTranslate:vt}=ae.current;let Mt=null;if(je&&vt){const{cancelDrop:wt}=G.current;Mt={activatorEvent:xt,active:je,collisions:et,delta:vt,over:_t},Ue===da.DragEnd&&typeof wt=="function"&&await Promise.resolve(wt(Mt))&&(Ue=da.DragCancel)}D.current=null,Ha.unstable_batchedUpdates(()=>{y({type:Ue}),C(Am.Uninitialized),$e(null),L(null),U(null),Fe.current=null;const wt=Ue===da.DragEnd?"onDragEnd":"onDragCancel";if(Mt){const jt=G.current[wt];jt==null||jt(Mt),_({type:wt,event:Mt})}})}}},[x]),ze=m.useCallback((ut,ft)=>(bt,St)=>{const Ht=bt.nativeEvent,xt=x.get(St);if(D.current!==null||!xt||Ht.dndKit||Ht.defaultPrevented)return;const Nt={active:xt};ut(bt,ft.options,Nt)===!0&&(Ht.dndKit={capturedBy:ft.sensor},D.current=St,Xe(bt,ft))},[x,Xe]),qe=lVt(u,ze);gVt(u),ad(()=>{ne&&S===Am.Initializing&&C(Am.Initialized)},[ne,S]),m.useEffect(()=>{const{onDragMove:ut}=G.current,{active:ft,activatorEvent:bt,collisions:St,over:Ht}=ae.current;if(!ft||!bt)return;const xt={active:ft,activatorEvent:bt,collisions:St,delta:{x:Y.x,y:Y.y},over:Ht};Ha.unstable_batchedUpdates(()=>{ut==null||ut(xt),_({type:"onDragMove",event:xt})})},[Y.x,Y.y]),m.useEffect(()=>{const{active:ut,activatorEvent:ft,collisions:bt,droppableContainers:St,scrollAdjustedTranslate:Ht}=ae.current;if(!ut||D.current==null||!ft||!Ht)return;const{onDragOver:xt}=G.current,Nt=St.get(ve),Vt=Nt&&Nt.rect.current?{id:Nt.id,rect:Nt.rect.current,data:Nt.data,disabled:Nt.disabled}:null,Ue={active:ut,activatorEvent:ft,collisions:bt,delta:{x:Ht.x,y:Ht.y},over:Vt};Ha.unstable_batchedUpdates(()=>{$e(Vt),xt==null||xt(Ue),_({type:"onDragOver",event:Ue})})},[ve]),ad(()=>{ae.current={activatorEvent:B,active:P,activeNode:Q,collisionRect:J,collisions:he,droppableRects:H,draggableNodes:x,draggingNode:se,draggingNodeRect:pe,droppableContainers:R,over:ce,scrollableAncestors:ge,scrollAdjustedTranslate:Y},I.current={initial:pe,translated:J}},[P,Q,he,J,x,se,pe,H,R,ce,ge,Y]),iVt({...k,delta:T,draggingRect:J,pointerCoordinates:be,scrollableAncestors:ge,scrollableAncestorRects:Ce});const Ge=m.useMemo(()=>({active:P,activeNode:Q,activeNodeRect:ne,activatorEvent:B,collisions:he,containerNodeRect:oe,dragOverlay:fe,draggableNodes:x,droppableContainers:R,droppableRects:H,over:ce,measureDroppableContainers:K,scrollableAncestors:ge,scrollableAncestorRects:Ce,measuringConfiguration:$,measuringScheduled:re,windowRect:xe}),[P,Q,ne,B,he,oe,fe,x,R,H,ce,K,ge,Ce,$,re,xe]),We=m.useMemo(()=>({activatorEvent:B,activators:qe,active:P,activeNodeRect:ne,ariaDescribedById:{draggable:V},dispatch:y,draggableNodes:x,over:ce,measureDroppableContainers:K}),[B,qe,P,ne,y,V,x,ce,K]);return de.createElement(jAe.Provider,{value:b},de.createElement(fT.Provider,{value:We},de.createElement(iPe.Provider,{value:Ge},de.createElement(eL.Provider,{value:me},c)),de.createElement(xVt,{disabled:(s==null?void 0:s.restoreFocus)===!1})),de.createElement(xzt,{...s,hiddenTextDescribedById:V}));function Lt(){const ut=(F==null?void 0:F.autoScrollEnabled)===!1,ft=typeof l=="object"?l.enabled===!1:l===!1,bt=E&&!ut&&!ft;return typeof l=="object"?{...l,enabled:bt}:{enabled:bt}}}),IVt=m.createContext(null),wce="button",NVt="Draggable";function aPe(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=dT(NVt),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=m.useContext(fT),{role:p=wce,roleDescription:h="draggable",tabIndex:g=0}=i??{},v=(l==null?void 0:l.id)===t,y=m.useContext(v?eL:IVt),[_,b]=oP(),[S,C]=oP(),E=vVt(a,t),w=Cw(n);ad(()=>(d.set(t,{id:t,key:o,node:_,activatorNode:S,data:w}),()=>{const T=d.get(t);T&&T.key===o&&d.delete(t)}),[d,t]);const x=m.useMemo(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":v&&p===wce?!0:void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[r,p,g,v,h,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:x,isDragging:v,listeners:r?void 0:E,node:_,over:f,setNodeRef:b,setActivatorNodeRef:C,transform:y}}function sPe(){return m.useContext(iPe)}const MVt="Droppable",AVt={timeout:25};function lPe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=dT(MVt),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=m.useContext(fT),u=m.useRef({disabled:n}),d=m.useRef(!1),f=m.useRef(null),p=m.useRef(null),{disabled:h,updateMeasurementsFor:g,timeout:v}={...AVt,...i},y=Cw(g??r),_=m.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),p.current=null},v)},[v]),b=Jk({callback:_,disabled:h||!a}),S=m.useCallback((x,T)=>{b&&(T&&(b.unobserve(T),d.current=!1),x&&b.observe(x))},[b]),[C,E]=oP(S),w=Cw(t);return m.useEffect(()=>{!b||!C.current||(b.disconnect(),d.current=!1,b.observe(C.current))},[C,b]),m.useEffect(()=>(s({type:da.RegisterDroppable,element:{id:r,key:o,disabled:n,node:C,rect:f,data:w}}),()=>s({type:da.UnregisterDroppable,key:o,id:r})),[r]),m.useEffect(()=>{n!==u.current.disabled&&(s({type:da.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:E}}function PVt(e){let{animation:t,children:n}=e;const[r,i]=m.useState(null),[o,a]=m.useState(null),s=aP(n);return!n&&!r&&s&&i(s),ad(()=>{if(!o)return;const l=r==null?void 0:r.key,c=r==null?void 0:r.props.id;if(l==null||c==null){i(null);return}Promise.resolve(t(c,o)).then(()=>{i(null)})},[t,r,o]),de.createElement(de.Fragment,null,n,r?m.cloneElement(r,{ref:a}):null)}const DVt={x:0,y:0,scaleX:1,scaleY:1};function kVt(e){let{children:t}=e;return de.createElement(fT.Provider,{value:rPe},de.createElement(eL.Provider,{value:DVt},t))}const LVt={position:"fixed",touchAction:"none"},$Vt=e=>Zk(e)?"transform 250ms ease":void 0,FVt=m.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:l,transform:c,transition:u=$Vt}=e;if(!s)return null;const d=i?c:{...c,scaleX:1,scaleY:1},f={...LVt,width:s.width,height:s.height,top:s.top,left:s.left,transform:xp.Transform.toString(d),transformOrigin:i&&r?Izt(r,s):void 0,transition:typeof u=="function"?u(r):u,...l};return de.createElement(n,{className:a,style:f,ref:t},o)}),cPe=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(o!=null&&o.active)for(const[s,l]of Object.entries(o.active))l!==void 0&&(i[s]=n.node.style.getPropertyValue(s),n.node.style.setProperty(s,l));if(o!=null&&o.dragOverlay)for(const[s,l]of Object.entries(o.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[l,c]of Object.entries(i))n.node.style.setProperty(l,c);a!=null&&a.active&&n.node.classList.remove(a.active)}},BVt=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:xp.Transform.toString(t)},{transform:xp.Transform.toString(n)}]},UVt={duration:250,easing:"ease",keyframes:BVt,sideEffects:cPe({styles:{active:{opacity:"0"}}})};function jVt(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Xk((o,a)=>{if(t===null)return;const s=n.get(o);if(!s)return;const l=s.node.current;if(!l)return;const c=nPe(a);if(!c)return;const{transform:u}=Ws(a).getComputedStyle(a),d=zAe(u);if(!d)return;const f=typeof t=="function"?t:HVt(t);return QAe(l,i.draggable.measure),f({active:{id:o,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:d})})}function HVt(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...UVt,...e};return o=>{let{active:a,dragOverlay:s,transform:l,...c}=o;if(!t)return;const u={x:s.rect.left-a.rect.left,y:s.rect.top-a.rect.top},d={scaleX:l.scaleX!==1?a.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?a.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-u.x,y:l.y-u.y,...d},p=i({...c,active:a,dragOverlay:s,transform:{initial:l,final:f}}),[h]=p,g=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const v=r==null?void 0:r({active:a,dragOverlay:s,...c}),y=s.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise(_=>{y.onfinish=()=>{v==null||v(),_()}})}}let xce=0;function zVt(e){return m.useMemo(()=>{if(e!=null)return xce++,xce},[e])}const VVt=de.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:o,modifiers:a,wrapperElement:s="div",className:l,zIndex:c=999}=e;const{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:h,droppableContainers:g,dragOverlay:v,over:y,measuringConfiguration:_,scrollableAncestors:b,scrollableAncestorRects:S,windowRect:C}=sPe(),E=m.useContext(eL),w=zVt(d==null?void 0:d.id),x=oPe(a,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:b,scrollableAncestorRects:S,transform:E,windowRect:C}),T=oQ(f),R=jVt({config:r,draggableNodes:h,droppableContainers:g,measuringConfiguration:_}),N=T?v.setRef:void 0;return de.createElement(kVt,null,de.createElement(PVt,{animation:R},d&&w?de.createElement(FVt,{key:w,id:d.id,ref:N,as:s,activatorEvent:u,adjustScale:t,className:l,transition:o,rect:T,style:{zIndex:c,...i},transform:x},n):null))});async function GVt(){return mi("/kaptcha/api/v1/get",{method:"GET",params:{client:Pi}})}async function WVt(e,t){return mi("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:Pi}})}var Mz=function(e,t){return Mz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Mz(e,t)};function lu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mz(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Vn=function(){return Vn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Vn.apply(this,arguments)};function S0(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ks(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function As(e,t){var n=t&&t.cache?t.cache:ZVt,r=t&&t.serializer?t.serializer:XVt,i=t&&t.strategy?t.strategy:qVt;return i(e,{cache:n,serializer:r})}function YVt(e){return e==null||typeof e=="number"||typeof e=="boolean"}function uPe(e,t,n,r){var i=YVt(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function dPe(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function aQ(e,t,n,r,i){return n.bind(t,e,r,i)}function qVt(e,t){var n=e.length===1?uPe:dPe;return aQ(e,this,n,t.cache.create(),t.serializer)}function KVt(e,t){return aQ(e,this,dPe,t.cache.create(),t.serializer)}function QVt(e,t){return aQ(e,this,uPe,t.cache.create(),t.serializer)}var XVt=function(){return JSON.stringify(arguments)};function sQ(){this.cache=Object.create(null)}sQ.prototype.get=function(e){return this.cache[e]};sQ.prototype.set=function(e,t){this.cache[e]=t};var ZVt={create:function(){return new sQ}},Ps={variadic:KVt,monadic:QVt};function fPe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}As(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ks([void 0],t,!1)))},{strategy:Ps.variadic});As(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ks([void 0],t,!1)))},{strategy:Ps.variadic});As(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ks([void 0],t,!1)))},{strategy:Ps.variadic});As(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,ks([void 0],t,!1)))},{strategy:Ps.variadic});As(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,ks([void 0],t,!1)))},{strategy:Ps.variadic});var Zr;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Zr||(Zr={}));var Vi;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Vi||(Vi={}));var E0;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(E0||(E0={}));function Tce(e){return e.type===Vi.literal}function JVt(e){return e.type===Vi.argument}function pPe(e){return e.type===Vi.number}function mPe(e){return e.type===Vi.date}function hPe(e){return e.type===Vi.time}function gPe(e){return e.type===Vi.select}function vPe(e){return e.type===Vi.plural}function eGt(e){return e.type===Vi.pound}function _Pe(e){return e.type===Vi.tag}function yPe(e){return!!(e&&typeof e=="object"&&e.type===E0.number)}function Az(e){return!!(e&&typeof e=="object"&&e.type===E0.dateTime)}var bPe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,tGt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function nGt(e){var t={};return e.replace(tGt,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var rGt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function iGt(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(rGt).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],l=a.slice(1),c=0,u=l;c<u.length;c++){var d=u[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function oGt(e){return e.replace(/^(.*?)-/,"")}var Rce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,SPe=/^(@+)?(\+|#+)?[rs]?$/g,aGt=/(\*)(0+)|(#+)(0+)|(0+)/g,EPe=/^(0+)$/;function Oce(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(SPe,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function CPe(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function sGt(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!EPe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ice(e){var t={},n=CPe(e);return n||t}function lGt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=oGt(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Vn(Vn(Vn({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return Vn(Vn({},l),Ice(c))},{}));continue;case"engineering":t=Vn(Vn(Vn({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return Vn(Vn({},l),Ice(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(aGt,function(l,c,u,d,f,p){if(c)t.minimumIntegerDigits=u.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(EPe.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Rce.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Rce,function(l,c,u,d,f,p){return u==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=Vn(Vn({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Vn(Vn({},t),Oce(o)));continue}if(SPe.test(i.stem)){t=Vn(Vn({},t),Oce(i.stem));continue}var a=CPe(i.stem);a&&(t=Vn(Vn({},t),a));var s=sGt(i.stem);s&&(t=Vn(Vn({},t),s))}return t}var xO={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function cGt(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),s=o<2?1:3+(o>>1),l="a",c=uGt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function uGt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=xO[r||""]||xO[n||""]||xO["".concat(n,"-001")]||xO["001"];return i[0]}var nB,dGt=new RegExp("^".concat(bPe.source,"*")),fGt=new RegExp("".concat(bPe.source,"*$"));function ei(e,t){return{start:e,end:t}}var pGt=!!String.prototype.startsWith&&"_a".startsWith("a",1),mGt=!!String.fromCodePoint,hGt=!!Object.fromEntries,gGt=!!String.prototype.codePointAt,vGt=!!String.prototype.trimStart,_Gt=!!String.prototype.trimEnd,yGt=!!Number.isSafeInteger,bGt=yGt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pz=!0;try{var SGt=xPe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pz=((nB=SGt.exec("a"))===null||nB===void 0?void 0:nB[0])==="a"}catch{Pz=!1}var Nce=pGt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Dz=mGt?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},Mce=hGt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=s}return n},wPe=gGt?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},EGt=vGt?function(t){return t.trimStart()}:function(t){return t.replace(dGt,"")},CGt=_Gt?function(t){return t.trimEnd()}:function(t){return t.replace(fGt,"")};function xPe(e,t){return new RegExp(e,t)}var kz;if(Pz){var Ace=xPe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kz=function(t,n){var r;Ace.lastIndex=n;var i=Ace.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else kz=function(t,n){for(var r=[];;){var i=wPe(t,n);if(i===void 0||TPe(i)||RGt(i))break;r.push(i),n+=i>=65536?2:1}return Dz.apply(void 0,r)};var wGt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:Vi.pound,location:ei(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Zr.UNMATCHED_CLOSING_TAG,ei(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Lz(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Vi.literal,value:"<".concat(i,"/>"),location:ei(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Lz(this.char()))return this.error(Zr.INVALID_TAG,ei(s,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(Zr.UNMATCHED_CLOSING_TAG,ei(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Vi.tag,value:i,children:a,location:ei(r,this.clonePosition())},err:null}:this.error(Zr.INVALID_TAG,ei(s,this.clonePosition())))}else return this.error(Zr.UNCLOSED_TAG,ei(r,this.clonePosition()))}else return this.error(Zr.INVALID_TAG,ei(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&TGt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=ei(r,this.clonePosition());return{val:{type:Vi.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!xGt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Dz.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Dz(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Zr.EXPECT_ARGUMENT_CLOSING_BRACE,ei(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Zr.EMPTY_ARGUMENT,ei(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Zr.MALFORMED_ARGUMENT,ei(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Zr.EXPECT_ARGUMENT_CLOSING_BRACE,ei(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Vi.argument,value:i,location:ei(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Zr.EXPECT_ARGUMENT_CLOSING_BRACE,ei(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(Zr.MALFORMED_ARGUMENT,ei(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=kz(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=ei(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Zr.EXPECT_ARGUMENT_TYPE,ei(a,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=CGt(d.val);if(f.length===0)return this.error(Zr.EXPECT_ARGUMENT_STYLE,ei(this.clonePosition(),this.clonePosition()));var p=ei(u,this.clonePosition());c={style:f,styleLocation:p}}var h=this.tryParseArgumentClose(i);if(h.err)return h;var g=ei(i,this.clonePosition());if(c&&Nce(c==null?void 0:c.style,"::",0)){var v=EGt(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(v,c.styleLocation);return d.err?d:{val:{type:Vi.number,value:r,location:g,style:d.val},err:null}}else{if(v.length===0)return this.error(Zr.EXPECT_DATE_TIME_SKELETON,g);var y=v;this.locale&&(y=cGt(v,this.locale));var f={type:E0.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?nGt(y):{}},_=s==="date"?Vi.date:Vi.time;return{val:{type:_,value:r,location:g,style:f},err:null}}}return{val:{type:s==="number"?Vi.number:s==="date"?Vi.date:Vi.time,value:r,location:g,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Zr.EXPECT_SELECT_ARGUMENT_OPTIONS,ei(b,Vn({},b)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),C=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(Zr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ei(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Zr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Zr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),S=this.parseIdentifierIfPossible(),C=d.val}var E=this.tryParsePluralOrSelectOptions(t,s,n,S);if(E.err)return E;var h=this.tryParseArgumentClose(i);if(h.err)return h;var w=ei(i,this.clonePosition());return s==="select"?{val:{type:Vi.select,value:r,options:Mce(E.val),location:w},err:null}:{val:{type:Vi.plural,value:r,options:Mce(E.val),offset:C,pluralType:s==="plural"?"cardinal":"ordinal",location:w},err:null}}default:return this.error(Zr.INVALID_ARGUMENT_TYPE,ei(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Zr.EXPECT_ARGUMENT_CLOSING_BRACE,ei(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Zr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ei(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=iGt(t)}catch{return this.error(Zr.INVALID_NUMBER_SKELETON,n)}return{val:{type:E0.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?lGt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(Zr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Zr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=ei(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?Zr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Zr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Zr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Zr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ei(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,n,r);if(h.err)return h;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([c,{value:h.val,location:ei(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return s.length===0?this.error(n==="select"?Zr.EXPECT_SELECT_ARGUMENT_SELECTOR:Zr.EXPECT_PLURAL_ARGUMENT_SELECTOR,ei(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Zr.MISSING_OTHER_CLAUSE,ei(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var l=ei(i,this.clonePosition());return o?(a*=r,bGt(a)?{val:a,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=wPe(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Nce(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&TPe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Lz(e){return e>=97&&e<=122||e>=65&&e<=90}function xGt(e){return Lz(e)||e===47}function TGt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function TPe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function RGt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function $z(e){e.forEach(function(t){if(delete t.location,gPe(t)||vPe(t))for(var n in t.options)delete t.options[n].location,$z(t.options[n].value);else pPe(t)&&yPe(t.style)||(mPe(t)||hPe(t))&&Az(t.style)?delete t.style.location:_Pe(t)&&$z(t.children)})}function OGt(e,t){t===void 0&&(t={}),t=Vn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new wGt(e,t).parse();if(n.err){var r=SyntaxError(Zr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||$z(n.val),n.val}var sf;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(sf||(sf={}));var Vh=function(e){lu(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Pce=function(e){lu(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),sf.INVALID_VALUE,o)||this}return t}(Vh),IGt=function(e){lu(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),sf.INVALID_VALUE,i)||this}return t}(Vh),NGt=function(e){lu(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),sf.MISSING_VALUE,r)||this}return t}(Vh),Os;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Os||(Os={}));function MGt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Os.literal||n.type!==Os.literal?t.push(n):r.value+=n.value,t},[])}function RPe(e){return typeof e=="function"}function vN(e,t,n,r,i,o,a){if(e.length===1&&Tce(e[0]))return[{type:Os.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Tce(u)){s.push({type:Os.literal,value:u.value});continue}if(eGt(u)){typeof o=="number"&&s.push({type:Os.literal,value:n.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new NGt(d,a);var f=i[d];if(JVt(u)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?Os.literal:Os.object,value:f});continue}if(mPe(u)){var p=typeof u.style=="string"?r.date[u.style]:Az(u.style)?u.style.parsedOptions:void 0;s.push({type:Os.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(hPe(u)){var p=typeof u.style=="string"?r.time[u.style]:Az(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Os.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(pPe(u)){var p=typeof u.style=="string"?r.number[u.style]:yPe(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),s.push({type:Os.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(_Pe(u)){var h=u.children,g=u.value,v=i[g];if(!RPe(v))throw new IGt(g,"function",a);var y=vN(h,t,n,r,i,o),_=v(y.map(function(C){return C.value}));Array.isArray(_)||(_=[_]),s.push.apply(s,_.map(function(C){return{type:typeof C=="string"?Os.literal:Os.object,value:C}}))}if(gPe(u)){var b=u.options[f]||u.options.other;if(!b)throw new Pce(u.value,f,Object.keys(u.options),a);s.push.apply(s,vN(b.value,t,n,r,i));continue}if(vPe(u)){var b=u.options["=".concat(f)];if(!b){if(!Intl.PluralRules)throw new Vh(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,sf.MISSING_INTL_API,a);var S=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));b=u.options[S]||u.options.other}if(!b)throw new Pce(u.value,f,Object.keys(u.options),a);s.push.apply(s,vN(b.value,t,n,r,i,f-(u.offset||0)));continue}}return MGt(s)}function AGt(e,t){return t?Vn(Vn(Vn({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Vn(Vn({},e[r]),t[r]||{}),n},{})):e}function PGt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=AGt(e[r],t[r]),n},Vn({},e)):e}function rB(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function DGt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:As(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ks([void 0],n,!1)))},{cache:rB(e.number),strategy:Ps.variadic}),getDateTimeFormat:As(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ks([void 0],n,!1)))},{cache:rB(e.dateTime),strategy:Ps.variadic}),getPluralRules:As(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ks([void 0],n,!1)))},{cache:rB(e.pluralRules),strategy:Ps.variadic})}}var OPe=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=o.formatToParts(l);if(c.length===1)return c[0].value;var u=c.reduce(function(d,f){return!d.length||f.type!==Os.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return vN(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=S0(a,["formatters"]);this.ast=e.__parse(t,Vn(Vn({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=PGt(e.formats,r),this.formatters=i&&i.formatters||DGt(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=OGt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),a_;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(a_||(a_={}));var pT=function(e){lu(t,e);function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
||
`).concat(a?`
|
||
`.concat(a.message,`
|
||
`).concat(a.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),kGt=function(e){lu(t,e);function t(n,r){return e.call(this,a_.UNSUPPORTED_FORMATTER,n,r)||this}return t}(pT),LGt=function(e){lu(t,e);function t(n,r){return e.call(this,a_.INVALID_CONFIG,n,r)||this}return t}(pT),Dce=function(e){lu(t,e);function t(n,r){return e.call(this,a_.MISSING_DATA,n,r)||this}return t}(pT),cu=function(e){lu(t,e);function t(n,r,i){var o=e.call(this,a_.FORMAT_ERROR,"".concat(n,`
|
||
Locale: `).concat(r,`
|
||
`),i)||this;return o.locale=r,o}return t}(pT),iB=function(e){lu(t,e);function t(n,r,i,o){var a=e.call(this,"".concat(n,`
|
||
MessageID: `).concat(i==null?void 0:i.id,`
|
||
Default Message: `).concat(i==null?void 0:i.defaultMessage,`
|
||
Description: `).concat(i==null?void 0:i.description,`
|
||
`),r,o)||this;return a.descriptor=i,a.locale=r,a}return t}(cu),$Gt=function(e){lu(t,e);function t(n,r){var i=e.call(this,a_.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(pT);function V_(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var FGt=function(e){},BGt=function(e){},IPe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:FGt,onWarn:BGt};function NPe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Rg(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function UGt(e){e===void 0&&(e=NPe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=As(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.DateTimeFormat).bind.apply(s,ks([void 0],l,!1)))},{cache:Rg(e.dateTime),strategy:Ps.variadic}),o=As(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.NumberFormat).bind.apply(s,ks([void 0],l,!1)))},{cache:Rg(e.number),strategy:Ps.variadic}),a=As(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.PluralRules).bind.apply(s,ks([void 0],l,!1)))},{cache:Rg(e.pluralRules),strategy:Ps.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:As(function(s,l,c,u){return new OPe(s,l,c,Vn({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},u||{}))},{cache:Rg(e.message),strategy:Ps.variadic}),getRelativeTimeFormat:As(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,ks([void 0],s,!1)))},{cache:Rg(e.relativeTime),strategy:Ps.variadic}),getPluralRules:a,getListFormat:As(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,ks([void 0],s,!1)))},{cache:Rg(e.list),strategy:Ps.variadic}),getDisplayNames:As(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,ks([void 0],s,!1)))},{cache:Rg(e.displayNames),strategy:Ps.variadic})}}function lQ(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new kGt("No ".concat(t," format named: ").concat(n)))}function TO(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=Vn({timeZone:t},e[r]),n},{})}function kce(e,t){var n=Object.keys(Vn(Vn({},e),t));return n.reduce(function(r,i){return r[i]=Vn(Vn({},e[i]||{}),t[i]||{}),r},{})}function Lce(e,t){if(!t)return e;var n=OPe.formats;return Vn(Vn(Vn({},n),e),{date:kce(TO(n.date,t),TO(e.date||{},t)),time:kce(TO(n.time,t),TO(e.time||{},t))})}var Fz=function(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;n===void 0&&(n={id:""});var h=n.id,g=n.defaultMessage;fPe(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(y)&&y.length===1&&y[0].type===Vi.literal)return y[0].value;if(!r&&y&&typeof y=="string"&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Vn(Vn({},p),r||{}),a=Lce(a,f),c=Lce(c,f),!y){if(u===!1&&y==="")return y;if((!g||o&&o.toLowerCase()!==l.toLowerCase())&&d(new $Gt(n,o)),g)try{var _=t.getMessageFormat(g,l,c,i);return _.format(r)}catch(b){return d(new iB('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),o,n,b)),typeof g=="string"?g:v}return v}try{var _=t.getMessageFormat(y,o,a,Vn({formatters:t},i||{}));return _.format(r)}catch(b){d(new iB('Error formatting message: "'.concat(v,'", using ').concat(g?"default message":"id"," as fallback."),o,n,b))}if(g)try{var _=t.getMessageFormat(g,l,c,i);return _.format(r)}catch(b){d(new iB('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,n,b))}return typeof y=="string"?y:typeof g=="string"?g:v},MPe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function tL(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;r===void 0&&(r={});var l=r.format,c=Vn(Vn({},s&&{timeZone:s}),l&&lQ(o,t,l,a)),u=V_(r,MPe,c);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=Vn(Vn({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function jGt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return tL(e,"date",t,a).format(s)}catch(l){e.onError(new cu("Error formatting date.",e.locale,l))}return String(s)}function HGt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return tL(e,"time",t,a).format(s)}catch(l){e.onError(new cu("Error formatting time.",e.locale,l))}return String(s)}function zGt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=a===void 0?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=V_(s,MPe,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(f){u(new cu("Error formatting date time range.",e.locale,f))}return String(i)}function VGt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return tL(e,"date",t,a).formatToParts(s)}catch(l){e.onError(new cu("Error formatting date.",e.locale,l))}return[]}function GGt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return tL(e,"time",t,a).formatToParts(s)}catch(l){e.onError(new cu("Error formatting time.",e.locale,l))}return[]}var WGt=["style","type","fallback","languageDisplay"];function YGt(e,t,n,r){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new Vh(`Intl.DisplayNames is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-displaynames"
|
||
`,sf.MISSING_INTL_API));var s=V_(r,WGt);try{return t(i,s).of(n)}catch(l){o(new cu("Error formatting display name.",i,l))}}var qGt=["type","style"],$ce=Date.now();function KGt(e){return"".concat($ce,"_").concat(e,"_").concat($ce)}function QGt(e,t,n,r){r===void 0&&(r={});var i=APe(e,t,n,r).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function APe(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var a=Intl.ListFormat;a||o(new Vh(`Intl.ListFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-listformat"
|
||
`,sf.MISSING_INTL_API));var s=V_(r,qGt);try{var l={},c=n.map(function(u,d){if(typeof u=="object"){var f=KGt(d);return l[f]=u,f}return String(u)});return t(i,s).formatToParts(c).map(function(u){return u.type==="literal"?u:Vn(Vn({},u),{value:l[u.value]||u.value})})}catch(u){o(new cu("Error formatting list.",i,u))}return n}var XGt=["type"];function ZGt(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Vh(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,sf.MISSING_INTL_API));var a=V_(r,XGt);try{return t(i,a).select(n)}catch(s){o(new cu("Error formatting plural.",i,s))}return"other"}var JGt=["numeric","style"];function eWt(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=!!a&&lQ(i,"relative",a,o)||{},l=V_(n,JGt,s);return t(r,l)}function tWt(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Vh(`Intl.RelativeTimeFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
||
`,sf.MISSING_INTL_API));try{return eWt(e,t,i).format(n,r)}catch(a){e.onError(new cu("Error formatting relative time.",e.locale,a))}return String(n)}var nWt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function PPe(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=a&&lQ(i,"number",a,o)||{},l=V_(n,nWt,s);return t(r,l)}function rWt(e,t,n,r){r===void 0&&(r={});try{return PPe(e,t,r).format(n)}catch(i){e.onError(new cu("Error formatting number.",e.locale,i))}return String(n)}function iWt(e,t,n,r){r===void 0&&(r={});try{return PPe(e,t,r).formatToParts(n)}catch(i){e.onError(new cu("Error formatting number.",e.locale,i))}return[]}function oWt(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function aWt(e){e.onWarn&&e.defaultRichTextElements&&oWt(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
||
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
||
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function sWt(e,t){var n=UGt(t),r=Vn(Vn({},IPe),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Dce('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Dce('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new LGt('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),aWt(r),Vn(Vn({},r),{formatters:n,formatNumber:rWt.bind(null,r,n.getNumberFormat),formatNumberToParts:iWt.bind(null,r,n.getNumberFormat),formatRelativeTime:tWt.bind(null,r,n.getRelativeTimeFormat),formatDate:jGt.bind(null,r,n.getDateTimeFormat),formatDateToParts:VGt.bind(null,r,n.getDateTimeFormat),formatTime:HGt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:zGt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:GGt.bind(null,r,n.getDateTimeFormat),formatPlural:ZGt.bind(null,r,n.getPluralRules),formatMessage:Fz.bind(null,r,n),$t:Fz.bind(null,r,n),formatList:QGt.bind(null,r,n.getListFormat),formatListToParts:APe.bind(null,r,n.getListFormat),formatDisplayName:YGt.bind(null,r,n.getDisplayNames)})}function DPe(e){fPe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var kPe=Vn(Vn({},IPe),{textComponent:m.Fragment});function lWt(e){return function(t){return e(m.Children.toArray(t))}}function Bz(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var LPe={exports:{}},Ei={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ka=typeof Symbol=="function"&&Symbol.for,cQ=ka?Symbol.for("react.element"):60103,uQ=ka?Symbol.for("react.portal"):60106,nL=ka?Symbol.for("react.fragment"):60107,rL=ka?Symbol.for("react.strict_mode"):60108,iL=ka?Symbol.for("react.profiler"):60114,oL=ka?Symbol.for("react.provider"):60109,aL=ka?Symbol.for("react.context"):60110,dQ=ka?Symbol.for("react.async_mode"):60111,sL=ka?Symbol.for("react.concurrent_mode"):60111,lL=ka?Symbol.for("react.forward_ref"):60112,cL=ka?Symbol.for("react.suspense"):60113,cWt=ka?Symbol.for("react.suspense_list"):60120,uL=ka?Symbol.for("react.memo"):60115,dL=ka?Symbol.for("react.lazy"):60116,uWt=ka?Symbol.for("react.block"):60121,dWt=ka?Symbol.for("react.fundamental"):60117,fWt=ka?Symbol.for("react.responder"):60118,pWt=ka?Symbol.for("react.scope"):60119;function fc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cQ:switch(e=e.type,e){case dQ:case sL:case nL:case iL:case rL:case cL:return e;default:switch(e=e&&e.$$typeof,e){case aL:case lL:case dL:case uL:case oL:return e;default:return t}}case uQ:return t}}}function $Pe(e){return fc(e)===sL}Ei.AsyncMode=dQ;Ei.ConcurrentMode=sL;Ei.ContextConsumer=aL;Ei.ContextProvider=oL;Ei.Element=cQ;Ei.ForwardRef=lL;Ei.Fragment=nL;Ei.Lazy=dL;Ei.Memo=uL;Ei.Portal=uQ;Ei.Profiler=iL;Ei.StrictMode=rL;Ei.Suspense=cL;Ei.isAsyncMode=function(e){return $Pe(e)||fc(e)===dQ};Ei.isConcurrentMode=$Pe;Ei.isContextConsumer=function(e){return fc(e)===aL};Ei.isContextProvider=function(e){return fc(e)===oL};Ei.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cQ};Ei.isForwardRef=function(e){return fc(e)===lL};Ei.isFragment=function(e){return fc(e)===nL};Ei.isLazy=function(e){return fc(e)===dL};Ei.isMemo=function(e){return fc(e)===uL};Ei.isPortal=function(e){return fc(e)===uQ};Ei.isProfiler=function(e){return fc(e)===iL};Ei.isStrictMode=function(e){return fc(e)===rL};Ei.isSuspense=function(e){return fc(e)===cL};Ei.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nL||e===sL||e===iL||e===rL||e===cL||e===cWt||typeof e=="object"&&e!==null&&(e.$$typeof===dL||e.$$typeof===uL||e.$$typeof===oL||e.$$typeof===aL||e.$$typeof===lL||e.$$typeof===dWt||e.$$typeof===fWt||e.$$typeof===pWt||e.$$typeof===uWt)};Ei.typeOf=fc;LPe.exports=Ei;var mWt=LPe.exports,FPe=mWt,hWt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gWt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BPe={};BPe[FPe.ForwardRef]=hWt;BPe[FPe.Memo]=gWt;var fQ=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=m.createContext(null)):m.createContext(null);fQ.Consumer;var vWt=fQ.Provider,_Wt=vWt,yWt=fQ;function mr(){var e=m.useContext(yWt);return DPe(e),e}var Uz;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Uz||(Uz={}));var jz;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(jz||(jz={}));function UPe(e){var t=function(n){var r=mr(),i=n.value,o=n.children,a=S0(n,["value","children"]),s=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(s,a):r.formatTimeToParts(s,a);return o(l)};return t.displayName=jz[e],t}function mT(e){var t=function(n){var r=mr(),i=n.value,o=n.children,a=S0(n,["value","children"]),s=r[e](i,a);if(typeof o=="function")return o(s);var l=r.textComponent||m.Fragment;return m.createElement(l,null,s)};return t.displayName=Uz[e],t}function jPe(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=RPe(r)?lWt(r):r,t},{})}var Fce=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=jPe(r),s=Fz.apply(void 0,ks([e,t,n,a],i,!1));return Array.isArray(s)?m.Children.toArray(s):s},Bce=function(e,t){var n=e.defaultRichTextElements,r=S0(e,["defaultRichTextElements"]),i=jPe(n),o=sWt(Vn(Vn(Vn({},kPe),r),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return Vn(Vn({},o),{formatMessage:Fce.bind(null,a,o.formatters),$t:Fce.bind(null,a,o.formatters)})};function oB(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var bWt=function(e){lu(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=NPe(),n.state={cache:n.cache,intl:Bce(oB(n.props),n.cache),prevConfig:oB(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,a=oB(n);return Bz(i,a)?null:{intl:Bce(a,o),prevConfig:a}},t.prototype.render=function(){return DPe(this.state.intl),m.createElement(_Wt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=kPe,t}(m.PureComponent);function SWt(e,t){var n=e.values,r=S0(e,["values"]),i=t.values,o=S0(t,["values"]);return Bz(i,n)&&Bz(r,o)}function HPe(e){var t=mr(),n=t.formatMessage,r=t.textComponent,i=r===void 0?m.Fragment:r,o=e.id,a=e.description,s=e.defaultMessage,l=e.values,c=e.children,u=e.tagName,d=u===void 0?i:u,f=e.ignoreTag,p={id:o,description:a,defaultMessage:s},h=n(p,l,{ignoreTag:f});return typeof c=="function"?c(Array.isArray(h)?h:[h]):d?m.createElement(d,null,m.Children.toArray(h)):m.createElement(m.Fragment,null,h)}HPe.displayName="FormattedMessage";var Bu=m.memo(HPe,SWt);Bu.displayName="MemoizedFormattedMessage";mT("formatDate");mT("formatTime");mT("formatNumber");mT("formatList");mT("formatDisplayName");UPe("formatDate");UPe("formatTime");const LS=({onKaptchaChange:e,onKaptchaCheck:t})=>{const n=mr(),[r,i]=m.useState(),[o,a]=m.useState(),s=async()=>{const u=await GVt();u.data.code===200&&(i(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,d)=>{const f=await WVt(u,d);console.log("checkCaptcha response",f),f.data.code===200?t&&t(!0):t&&t(!1)};m.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return M.jsx(M.Fragment,{children:o&&M.jsxs(M.Fragment,{children:[M.jsx(Hr,{onChange:c,prefix:M.jsx(u_t,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),M.jsx("img",{src:o,alt:"captcha",onClick:s})]})})},EWt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=mr();return m.useEffect(()=>{const o=localStorage.getItem(jl);if(o)try{const{username:a,remember:s}=JSON.parse(o);a&&(r==null||r(a,!!s))}catch(a){console.error("Failed to parse saved credentials:",a)}},[r]),M.jsx(M.Fragment,{children:e==="account"&&M.jsxs("div",{children:[M.jsx(Jr,{name:"username",fieldProps:{size:"large",prefix:M.jsx(lIe,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const o=localStorage.getItem(jl);if(o)try{const a=JSON.parse(o),{username:s,...l}=a;console.log("username",s),console.log("rest",l),localStorage.setItem(jl,JSON.stringify(l))}catch(a){console.error("Failed to parse saved credentials:",a)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:M.jsx(Bu,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),M.jsx(Jr.Password,{name:"password",fieldProps:{size:"large",prefix:M.jsx(L_,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:M.jsx(Bu,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),M.jsx(Ar.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:M.jsx(LS,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function CWt(e){return mi("/auth/v1/login",{method:"POST",data:{...e,client:Pi}})}async function pQ(e){return mi("/auth/v1/send/mobile",{method:"POST",data:{...e,client:Pi}})}async function zPe(e){return mi("/auth/v1/send/email",{method:"POST",data:{...e,client:Pi}})}async function wWt(e){return mi("/auth/v1/login/mobile",{method:"POST",data:{...e,client:Pi}})}async function xWt(e,t){return mi("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:Pi}})}async function TWt(e){return mi("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:Pi}})}async function RWt(e){return mi("/api/v1/user/logout",{method:"POST",data:{client:Pi}})}const OWt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=mr(),[o,a]=m.useState(""),[s,l]=m.useState(""),[c,u]=m.useState(!1),[d,f]=m.useState(!1);m.useEffect(()=>{if(d)return;const y=localStorage.getItem(jl);if(y)try{const{mobile:_}=JSON.parse(y);_&&(r==null||r(_),f(!0))}catch(_){console.error("Failed to parse saved credentials:",_)}},[r,d]);const p=async(y,_)=>{a(y),l(_),t&&t(y,_)},h=async y=>{u(y),n&&n(y)},g=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],v=y=>{const _=y.value.includes("-")?y.value.split("-")[0]:y.value;return M.jsxs("div",{children:[M.jsx("span",{role:"img","aria-label":y.label,style:{marginRight:8},children:y.icon}),y.label," (+",_,")"]})};return M.jsx(M.Fragment,{children:e==="mobile"&&M.jsxs(M.Fragment,{children:[M.jsxs(Oq,{gutter:16,children:[M.jsx(sw,{span:10,children:M.jsx(o_,{name:"country",options:g,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:v},initialValue:"86"})}),M.jsx(sw,{span:14,children:M.jsx(Jr,{fieldProps:{size:"large",prefix:M.jsx(Ux,{className:"prefixIcon"}),onChange:()=>{f(!0)},onClear:()=>{console.log("onClear");const y=localStorage.getItem(jl);if(y)try{const _=JSON.parse(y),{mobile:b,...S}=_;console.log("saved:",b,_),localStorage.setItem(jl,JSON.stringify(S))}catch(_){console.error("Failed to parse saved credentials:",_)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:M.jsx(Bu,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:M.jsx(Bu,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),M.jsx(Ar.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:M.jsx(LS,{onKaptchaChange:p,onKaptchaCheck:h})}),M.jsx(Yx,{fieldProps:{size:"large",prefix:M.jsx(L_,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(y,_)=>y?`${_} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:M.jsx(Bu,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async y=>{if(console.log("mobile:",y),y&&y.length===11){const b=await pQ({mobile:y,type:Z5e,captchaUid:o,captchaCode:s,platform:Yc});if(console.log("sendMobileCode:",b.data),b.data.code!==200){Bt.error(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}Bt.success(i.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else Bt.error("手机号格式错误")}}),M.jsx(nwe,{message:M.jsx(Bu,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},IWt=({loginType:e})=>{const t=mr(),n=uc(),r=Yo(p=>p.setUserInfo),i=ox(p=>p.setAccessToken),{deviceUid:o,setDeviceUid:a}=Yo(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=m.useState("login"),[c,u]=m.useState("loading"),d=async p=>{console.log("handleScanLogin values: ",p),Bt.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const h=await TWt({...p});console.log("LoginMobileResult scanLogin:",h.data),h.data.code===200?(Bt.destroy(),Bt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),r(h.data.data.user),i(h.data.data.accessToken),n("/chat"),F9()):(Bt.destroy(),Bt.error(h.data.message))},f=async p=>{if(e!="scan")return;const h=await xWt(o,p);if(h.data.code===200){const g=h.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===rUe)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===iUe)u("scanned");else if(g.status===aUe)u("expired");else if(g.status===oUe){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:Yc};console.log("login scan info:",v),await d(v)}}else Bt.error(h.data.message)};return m.useEffect(()=>{console.log("scan deviceUid:",o),(o===void 0||o==="")&&a(Y2()),f(!0);const p=setInterval(()=>{f(!1)},3e3);return()=>{clearInterval(p)}},[e,o]),M.jsx(M.Fragment,{children:e==="scan"&&M.jsx(M.Fragment,{children:M.jsx(fIe,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),f(!0)}})})})},VPe=()=>{const{token:e}=Ns.useToken(),{isCustomServer:t,setIsCustomServer:n}=m.useContext(Da),[r]=Ar.useForm(),[i,o]=m.useState(!1),[a,s]=m.useState(""),[l,c]=m.useState(""),u=mr(),d=()=>{console.log("switch server"),n(h=>!h)};m.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),m.useEffect(()=>{if(t){const h=localStorage.getItem(Zy);h==="true"&&(o(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",h);const g=localStorage.getItem(sC);g&&r.setFieldsValue({apiUrl:uy(g)});const v=localStorage.getItem(lC);v&&r.setFieldsValue({websocketUrl:uy(v)})}},[t]);const f=h=>{if(console.log("handleCustomServerChange e:",h),o(h.target.checked),h.target.checked){const g=localStorage.getItem(sC);g&&r.setFieldsValue({apiUrl:uy(g)});const v=localStorage.getItem(lC);v&&r.setFieldsValue({websocketUrl:uy(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(Zy,"false")},p=(h,g)=>(console.log("props:",h,g),M.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[M.jsx(On,{icon:M.jsx(Fgt,{}),onClick:d,children:u.formatMessage({id:"server.button.back"})},"back"),M.jsx(On,{type:"primary",onClick:()=>{let v=h.form.getFieldValue("apiUrl");v=uy(v.trim());let y=h.form.getFieldValue("websocketUrl");y=uy(y.trim()),v&&v.trim().length>0&&y&&y.trim().length>0?(localStorage.setItem(sC,v),localStorage.setItem(lC,y),localStorage.setItem(Zy,"true"),Bt.success(u.formatMessage({id:"server.save.success"}))):Bt.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),M.jsx(On,{onClick:()=>{var v;(v=h.form)==null||v.resetFields(),s(""),localStorage.setItem(Zy,"false"),localStorage.setItem(sC,""),localStorage.setItem(lC,""),Bt.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),M.jsx(On,{onClick:()=>{uw("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return M.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:M.jsxs(Ar,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[M.jsx(Fk,{name:"isCustomServerEnabled",fieldProps:{onChange:f},children:u.formatMessage({id:"server.custom.enable"})}),i&&M.jsxs(M.Fragment,{children:[M.jsx(Jr,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:h=>s(h.target.value)}}),M.jsx(Jr,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:h=>c(h.target.value)}})]})]})})},NWt=({isModel:e=!1})=>{const t=mr(),[n]=Ar.useForm(),r=uc(),{isLoggedIn:i}=m.useContext(Da),{token:o}=Ns.useToken(),[a,s]=m.useState("/agenticflow/logo.png"),[l,c]=m.useState(""),[u,d]=m.useState(""),f=localStorage.getItem(Vj),[p]=m.useState(f||"/"),[h,g]=m.useState("account"),v=Yo(W=>W.setUserInfo),y=ox(W=>W.setAccessToken),{isCustomServer:_,setIsCustomServer:b}=m.useContext(Da),[S,C]=m.useState(!1);m.useEffect(()=>{i&&!e&&r(p)},[i,r,e]);const E=W=>{console.log(`onPrivacyProtocolChange checked = ${W.target.checked}`),C(W.target.checked);const $=localStorage.getItem(jl);if($)try{const{remember:H}=JSON.parse($);H&&setTimeout(()=>{n.setFieldsValue({remember:H})},0)}catch(H){console.error("Failed to parse saved credentials:",H)}},w=()=>{uw(T5e)},[x,T]=m.useState(""),R=async(W,$)=>{T(W),n.setFieldValue("captchaCode",$)},N=async W=>{console.log("handleKaptchaCheck:",W)},I=async W=>{if(console.log("handleSubmit values: ",W,h),!S){Bt.error("请阅读并同意隐私协议");return}Bt.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const $=localStorage.getItem(jl);let H=!1;if($)try{H=JSON.parse($).remember}catch(re){console.error("Failed to parse saved credentials:",re)}localStorage.setItem(jl,JSON.stringify({username:W.username,remember:H}));const K=await CWt({...W});console.log("LoginResult:",K.data),K.data.code===200?(Bt.destroy(),Bt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),H&&localStorage.setItem(jl,JSON.stringify({username:W.username,password:W.password,remember:!0})),v(K.data.data.user),y(K.data.data.accessToken),e||r(p),F9()):(Bt.destroy(),Bt.error(t.formatMessage({id:K.data.message,defaultMessage:K.data.message})))},P=W=>{n.setFieldsValue({mobile:W})},D=async W=>{if(!S){Bt.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const $=localStorage.getItem(jl);let H={};if($)try{H=JSON.parse($)}catch(re){console.error("Failed to parse saved credentials:",re)}localStorage.setItem(jl,JSON.stringify({...H,mobile:W.mobile}));const K=await wWt({...W});console.log("LoginMobileResult:",K),K.data.code===200?(Bt.destroy(),Bt.success(t.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),v(K.data.data.user),y(K.data.data.accessToken),e||r(p),F9()):(Bt.destroy(),Bt.error(t.formatMessage({id:K.data.message,defaultMessage:K.data.message})))},F=()=>{console.log("switch server"),b(W=>!W)},L=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},B=()=>{if(Jb)return{}},U=(W,$)=>{n.setFieldsValue({username:W,remember:$});const H=localStorage.getItem(jl);if(H&&$)try{const{password:K}=JSON.parse(H);K&&n.setFieldsValue({password:K})}catch(K){console.error("Failed to parse saved credentials:",K)}},G=async()=>{var $,H,K,re,Q,A,k;console.log("getConfig");const W=await D0e();($=W==null?void 0:W.custom)!=null&&$.enabled?((H=W==null?void 0:W.custom)!=null&&H.logo?s((K=W==null?void 0:W.custom)==null?void 0:K.logo):s("/agenticflow/logo.png"),(re=W==null?void 0:W.custom)!=null&&re.name?c((Q=W==null?void 0:W.custom)==null?void 0:Q.name):c(t.formatMessage({id:"app.title"})),(A=W==null?void 0:W.custom)!=null&&A.description?d((k=W==null?void 0:W.custom)==null?void 0:k.description):d(t.formatMessage({id:"slogan"}))):(s("/agenticflow/logo.png"),c(t.formatMessage({id:"app.title"})),d(t.formatMessage({id:"slogan"}))),P0e()};m.useEffect(()=>{vCe(),G()},[]);const V=[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:M.jsx(EWt,{loginType:h,onKaptchaChange:R,onKaptchaCheck:N,onRememberChange:U})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:M.jsx(OWt,{loginType:h,onKaptchaChange:R,onKaptchaCheck:N,onRememberChange:P})}];return O5e&&V.push({key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:M.jsx(IWt,{loginType:h})}),M.jsx(_k,{hashed:!1,children:M.jsxs("div",{style:{backgroundColor:o.colorBgContainer,textAlign:"center",height:"100%"},children:[!_&&M.jsxs(ZMe,{form:n,contentStyle:{minWidth:400},logo:M.jsx("img",{alt:"logo",src:I5e}),title:N5e,initialValues:B(),onFinish:async W=>{if(console.log("login:",W),h==="account"){const $={username:W.username,password:W.password,captchaUid:x,captchaCode:W.captchaCode,platform:Yc};await I($)}else if(h==="mobile"){const $={mobile:W.mobile,code:W.code,captchaUid:x,captchaCode:W.captchaCode,platform:Yc};await D($)}else console.log("scan login type")},actions:Jb&&M.jsxs(Zc,{children:[M.jsx(Bu,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),M.jsx(On,{type:"link",onClick:L,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[M.jsx(Dx,{centered:!0,items:V,activeKey:h,onChange:W=>g(W)}),M.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[M.jsx(P_,{checked:S,onChange:E,children:M.jsx(On,{size:"small",type:"link",onClick:w,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),R5e&&M.jsx(On,{type:"link",style:{float:"right",marginBottom:24},onClick:F,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),_&&M.jsx(VPe,{})]})})},Hz=({isModel:e=!1})=>M.jsx(DD,{children:M.jsx(NWt,{isModel:e})}),MWt=()=>{uc();const{token:e}=Ns.useToken();return m.useState("phone"),kl(e.colorTextBase,.2),M.jsx(_k,{hashed:!1,children:M.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:M.jsxs(ZMe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[M.jsxs(M.Fragment,{children:[M.jsx(Jr,{name:"username",fieldProps:{size:"large",prefix:M.jsx(lIe,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),M.jsx(Jr.Password,{name:"password",fieldProps:{size:"large",prefix:M.jsx(L_,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),M.jsxs("div",{style:{marginBlockEnd:24},children:[M.jsx(Fk,{noStyle:!0,name:"autoLogin",children:"自动登录"}),M.jsx(LEt,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function fL(){const[e,t]=m.useState(!0);return m.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function _d(){const e=mr();return{translateString:r=>r==null?r:r&&r.startsWith(Hee)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(Hee)?yne(e.formatMessage({id:r}),10):yne(r,10)}}function mQ(){const e=fL(),{translateString:t}=_d(),[n,r]=m.useState(!1),[i,o]=m.useState(!1),a=async(l,c)=>{Aa?await R0t()?console.log("handleNewMessage isWindowActive"):O0t(l,c):i?s(l,c):console.log("handleNewMessage not isBrowserTabHidden")},s=(l,c)=>{console.log("showWebNotification");var u=new Notification(l,{body:c,icon:"./logo.png"});u.onshow=function(){console.log("Notification shown")},u.onclick=function(){console.log("notification click")},u.onclose=function(){console.log("notification close")},u.onerror=function(){console.log("notification error")}};return m.useEffect(()=>(Aa||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(l){r(l==="granted")}):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?o(!0):document.visibilityState==="visible"&&o(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),m.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(LC);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(LC);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var Zf={},GPe={exports:{}},WPe={exports:{}};(function(e){var t=sAe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(WPe);var AWt=WPe.exports,YPe={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(YPe);var qPe=YPe.exports,KPe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(KPe);var PWt=KPe.exports;(function(e){var t=AWt,n=qPe,r=DK,i=PWt;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(GPe);var QPe=GPe.exports,pL={};Object.defineProperty(pL,"__esModule",{value:!0});pL.default=DWt;function DWt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var hQ={};const Gh=Zw(AKe);var mL={},kWt=Jo.default;Object.defineProperty(mL,"__esModule",{value:!0});mL.default=$Wt;var LWt=kWt(m);function $Wt(e,t,n){var r=LWt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var hL={},XPe={exports:{}};(function(e){var t=rAe,n=qPe,r=DK,i=cAe;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(XPe);var FWt=XPe.exports,gQ={};Object.defineProperty(gQ,"__esModule",{value:!0});gQ.default=BWt;function BWt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var hT=Tr.default;Object.defineProperty(hL,"__esModule",{value:!0});hL.default=_N;hL.merge=VWt;var ZPe=hT(y_),UWt=hT(b_),JPe=hT(QPe),jWt=hT(FWt),zz=hT(gQ);function e2e(e,t,n,r){if(!t.length)return n;var i=(0,jWt.default)(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=(0,JPe.default)(e):s=(0,UWt.default)({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=e2e(s[o],a,n,r),s}function _N(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,zz.default)(e,t.slice(0,-1))?e:e2e(e,t,n,r)}function HWt(e){return(0,ZPe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Uce(e){return Array.isArray(e)?[]:{}}var zWt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function VWt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Uce(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=(0,zz.default)(i,a),u=Array.isArray(c);if(u||HWt(c)){if(!l.has(c)){l.add(c);var d=(0,zz.default)(r,a);u?r=_N(r,a,[]):(!d||(0,ZPe.default)(d)!=="object")&&(r=_N(r,a,Uce(c))),zWt(c).forEach(function(f){o([].concat((0,JPe.default)(a),[f]),l)})}}else r=_N(r,a,c)}o([])}),r}var zc={},t2e=Jo.default;Object.defineProperty(zc,"__esModule",{value:!0});zc.devUseWarning=zc.default=zc.WarningContext=void 0;zc.noop=vQ;zc.resetWarned=YWt;var GWt=t2e(m),WWt=t2e(Sl);function vQ(){}function YWt(){(0,WWt.resetWarned)()}let qWt=vQ;zc.WarningContext=GWt.createContext({});zc.devUseWarning=()=>{const e=()=>{};return e.deprecated=vQ,e};zc.default=qWt;var gL={};Object.defineProperty(gL,"__esModule",{value:!0});gL.default=void 0;var KWt=m;gL.default=(0,KWt.createContext)(void 0);var n2e={},vL={},QWt=Tr.default;Object.defineProperty(vL,"__esModule",{value:!0});vL.changeConfirmLocale=XWt;vL.getConfirmLocale=ZWt;var _Q=QWt(__);let yN=Object.assign({},_Q.default.Modal),bN=[];const jce=()=>bN.reduce((e,t)=>Object.assign(Object.assign({},e),t),_Q.default.Modal);function XWt(e){if(e){const t=Object.assign({},e);return bN.push(t),yN=jce(),()=>{bN=bN.filter(n=>n!==t),yN=jce()}}yN=Object.assign({},_Q.default.Modal)}function ZWt(){return yN}var $S={};Object.defineProperty($S,"__esModule",{value:!0});$S.default=void 0;var JWt=m;const eYt=(0,JWt.createContext)(void 0);$S.default=eYt;var _L={},r2e=Tr.default,tYt=Jo.default;Object.defineProperty(_L,"__esModule",{value:!0});_L.default=void 0;var aB=tYt(m),nYt=r2e($S),Hce=r2e(__);const rYt=(e,t)=>{const n=aB.useContext(nYt.default),r=aB.useMemo(()=>{var o;const a=t||Hce.default[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=aB.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Hce.default.locale:o},[n]);return[r,i]};_L.default=rYt;(function(e){"use client";var t=Tr.default,n=Jo.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return a.default}});var r=n(m),i=vL,o=t($S),a=t(_L);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:d}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const f=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(o.default.Provider,{value:f},u)};e.default=s})(n2e);var Xd={},yQ={},lf={};Object.defineProperty(lf,"__esModule",{value:!0});lf.defaultPresetColors=lf.default=void 0;const iYt=lf.defaultPresetColors={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"},oYt=Object.assign(Object.assign({},iYt),{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});lf.default=oYt;var bQ={};const gT=Zw(HKe);Object.defineProperty(bQ,"__esModule",{value:!0});bQ.default=aYt;var sB=gT;function aYt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(i),p=n(o),h=n(a),g=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,_=n(y),b=new sB.FastColor(h[1]).mix(new sB.FastColor(h[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:_[4],colorLink:_[6],colorLinkActive:_[7],colorBgMask:new sB.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var SQ={},yL={};Object.defineProperty(yL,"__esModule",{value:!0});yL.default=void 0;const sYt=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};yL.default=sYt;var lYt=Tr.default;Object.defineProperty(SQ,"__esModule",{value:!0});SQ.default=uYt;var cYt=lYt(yL);function uYt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=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:i+1},(0,cYt.default)(r))}var bL={};Object.defineProperty(bL,"__esModule",{value:!0});bL.default=void 0;const dYt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};bL.default=dYt;var SL={},vT={};Object.defineProperty(vT,"__esModule",{value:!0});vT.default=fYt;vT.getLineHeight=i2e;function i2e(e){return(e+8)/e}function fYt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:i2e(n)}))}var pYt=Tr.default;Object.defineProperty(SL,"__esModule",{value:!0});SL.default=void 0;var mYt=pYt(vT);const hYt=e=>{const t=(0,mYt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};SL.default=hYt;var EQ={};Object.defineProperty(EQ,"__esModule",{value:!0});EQ.default=gYt;function gYt(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)}}var C0={},w0={};Object.defineProperty(w0,"__esModule",{value:!0});w0.getSolidColor=w0.getAlphaColor=void 0;var o2e=gT;const vYt=(e,t)=>new o2e.FastColor(e).setA(t).toRgbString();w0.getAlphaColor=vYt;const _Yt=(e,t)=>new o2e.FastColor(e).darken(t).toHexString();w0.getSolidColor=_Yt;Object.defineProperty(C0,"__esModule",{value:!0});C0.generateNeutralColorPalettes=C0.generateColorPalettes=void 0;var yYt=oT,$a=w0;const bYt=e=>{const t=(0,yYt.generate)(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]}};C0.generateColorPalettes=bYt;const SYt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,$a.getAlphaColor)(r,.88),colorTextSecondary:(0,$a.getAlphaColor)(r,.65),colorTextTertiary:(0,$a.getAlphaColor)(r,.45),colorTextQuaternary:(0,$a.getAlphaColor)(r,.25),colorFill:(0,$a.getAlphaColor)(r,.15),colorFillSecondary:(0,$a.getAlphaColor)(r,.06),colorFillTertiary:(0,$a.getAlphaColor)(r,.04),colorFillQuaternary:(0,$a.getAlphaColor)(r,.02),colorBgSolid:(0,$a.getAlphaColor)(r,1),colorBgSolidHover:(0,$a.getAlphaColor)(r,.75),colorBgSolidActive:(0,$a.getAlphaColor)(r,.95),colorBgLayout:(0,$a.getSolidColor)(n,4),colorBgContainer:(0,$a.getSolidColor)(n,0),colorBgElevated:(0,$a.getSolidColor)(n,0),colorBgSpotlight:(0,$a.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,$a.getSolidColor)(n,15),colorBorderSecondary:(0,$a.getSolidColor)(n,6)}};C0.generateNeutralColorPalettes=SYt;var _T=Tr.default;Object.defineProperty(yQ,"__esModule",{value:!0});yQ.default=OYt;var Og=oT,EYt=lf,CYt=_T(bQ),wYt=_T(SQ),xYt=_T(bL),TYt=_T(SL),RYt=_T(EQ),zce=C0;function OYt(e){Og.presetPrimaryColors.pink=Og.presetPrimaryColors.magenta,Og.presetPalettes.pink=Og.presetPalettes.magenta;const t=Object.keys(EYt.defaultPresetColors).map(n=>{const r=e[n]===Og.presetPrimaryColors[n]?Og.presetPalettes[n]:(0,Og.generate)(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).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),(0,CYt.default)(e,{generateColorPalettes:zce.generateColorPalettes,generateNeutralColorPalettes:zce.generateNeutralColorPalettes})),(0,TYt.default)(e.fontSize)),(0,RYt.default)(e)),(0,xYt.default)(e)),(0,wYt.default)(e))}var CQ=Tr.default;Object.defineProperty(Xd,"__esModule",{value:!0});Xd.defaultTheme=Xd.defaultConfig=Xd.DesignTokenContext=void 0;var IYt=CQ(m),NYt=Gh,MYt=CQ(yQ),Vce=CQ(lf);Xd.defaultTheme=(0,NYt.createTheme)(MYt.default);const AYt=Xd.defaultConfig={token:Vce.default,override:{override:Vce.default},hashed:!0};Xd.DesignTokenContext=IYt.default.createContext(AYt);var Vl={},PYt=Jo.default;Object.defineProperty(Vl,"__esModule",{value:!0});Vl.defaultPrefixCls=Vl.defaultIconPrefixCls=Vl.Variants=Vl.ConfigContext=Vl.ConfigConsumer=void 0;var DYt=PYt(m);const Gce=Vl.defaultPrefixCls="ant",kYt=Vl.defaultIconPrefixCls="anticon";Vl.Variants=["outlined","borderless","filled"];const LYt=(e,t)=>t||(e?`${Gce}-${e}`:Gce),$Yt=Vl.ConfigContext=DYt.createContext({getPrefixCls:LYt,iconPrefixCls:kYt}),{Consumer:FYt}=$Yt;Vl.ConfigConsumer=FYt;var EL={},a2e=Tr.default;Object.defineProperty(EL,"__esModule",{value:!0});EL.getStyle=s2e;EL.registerTheme=HYt;var Wce=oT,lB=gT,BYt=a2e(jk),UYt=H_;a2e(zc);const jYt=`-ant-${Date.now()}-${Math.random()}`;function s2e(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new lB.FastColor(a),c=(0,Wce.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new lB.FastColor(t.primaryColor),s=(0,Wce.generate)(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new lB.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function HYt(e,t){const n=s2e(e,t);(0,BYt.default)()&&(0,UYt.updateCSS)(n,`${jYt}-dynamic-theme`)}var s_={},zYt=Jo.default;Object.defineProperty(s_,"__esModule",{value:!0});s_.default=s_.DisabledContextProvider=void 0;var Vz=zYt(m);const Gz=Vz.createContext(!1),VYt=e=>{let{children:t,disabled:n}=e;const r=Vz.useContext(Gz);return Vz.createElement(Gz.Provider,{value:n??r},t)};s_.DisabledContextProvider=VYt;s_.default=Gz;var CL={},l_={},GYt=Jo.default;Object.defineProperty(l_,"__esModule",{value:!0});l_.default=l_.SizeContextProvider=void 0;var Wz=GYt(m);const Yz=Wz.createContext(void 0),WYt=e=>{let{children:t,size:n}=e;const r=Wz.useContext(Yz);return Wz.createElement(Yz.Provider,{value:n||r},t)};l_.SizeContextProvider=WYt;l_.default=Yz;var l2e=Tr.default;Object.defineProperty(CL,"__esModule",{value:!0});CL.default=void 0;var Yce=m,YYt=l2e(s_),qYt=l2e(l_);function KYt(){const e=(0,Yce.useContext)(YYt.default),t=(0,Yce.useContext)(qYt.default);return{componentDisabled:e,componentSize:t}}CL.default=KYt;var wQ={},wL={},c2e=Tr.default;Object.defineProperty(wL,"__esModule",{value:!0});wL.default=void 0;var qce=c2e(y_),QYt=c2e(Sl);function XYt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if((0,QYt.default)(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&(0,qce.default)(o)==="object"&&(0,qce.default)(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}wL.default=XYt;var FS={};const u2e=Zw(SQe);var xQ={},xL={};Object.defineProperty(xL,"__esModule",{value:!0});xL.PresetColors=void 0;xL.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return t.PresetColors}});var t=xL})(xQ);var Qu={},TL={},RL={};Object.defineProperty(RL,"__esModule",{value:!0});RL.default=void 0;RL.default="5.23.2";var ZYt=Tr.default;Object.defineProperty(TL,"__esModule",{value:!0});TL.default=void 0;var JYt=ZYt(RL);TL.default=JYt.default;var TQ={},OL={};Object.defineProperty(OL,"__esModule",{value:!0});OL.default=void 0;var RO=gT;function cB(e){return e>=0&&e<=255}function eqt(e,t){const{r:n,g:r,b:i,a:o}=new RO.FastColor(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new RO.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(cB(u)&&cB(d)&&cB(f))return new RO.FastColor({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new RO.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}OL.default=eqt;var d2e=Tr.default;Object.defineProperty(TQ,"__esModule",{value:!0});TQ.default=rqt;var uB=gT,tqt=d2e(lf),OO=d2e(OL),nqt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function rqt(e){const{override:t}=e,n=nqt(e,["override"]),r=Object.assign({},t);Object.keys(tqt.default).forEach(f=>{delete r[f]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,OO.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,OO.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,OO.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,OO.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
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)
|
||
`,boxShadowSecondary:`
|
||
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)
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new uB.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new uB.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new uB.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerUp:`
|
||
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)
|
||
`,boxShadowDrawerDown:`
|
||
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 IL=Tr.default;Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=dqt;Qu.unitless=Qu.ignore=Qu.getComputedToken=void 0;var iqt=IL(m),oqt=Gh,aqt=IL(TL),Kce=Xd,sqt=IL(lf),f2e=IL(TQ),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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lqt=Qu.unitless={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},cqt=Qu.ignore={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},uqt={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},RQ=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Qce(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,f2e.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Qce(c,["theme"]);let f=d;u&&(f=RQ(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};Qu.getComputedToken=RQ;function dqt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=iqt.default.useContext(Kce.DesignTokenContext),o=`${aqt.default}-${t||""}`,a=n||Kce.defaultTheme,[s,l,c]=(0,oqt.useCacheToken)(a,[sqt.default,e],{salt:o,override:r,getComputedToken:RQ,formatToken:f2e.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:lqt,ignore:cqt,preserve:uqt}});return[a,c,t?l:"",s,i]}var _h={},po={};Object.defineProperty(po,"__esModule",{value:!0});po.textEllipsis=po.resetIcon=po.resetComponent=po.operationUnit=po.genLinkStyle=po.genIconStyle=po.genFocusStyle=po.genFocusOutline=po.genCommonStyle=po.clearFix=void 0;var fqt=Gh;po.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const pqt=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}};po.resetComponent=pqt;const p2e=()=>({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"}});po.resetIcon=p2e;const mqt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});po.clearFix=mqt;const hqt=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"}}});po.genLinkStyle=hqt;const gqt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={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),a),{[i]:a})}};po.genCommonStyle=gqt;const m2e=(e,t)=>({outline:`${(0,fqt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});po.genFocusOutline=m2e;const h2e=(e,t)=>({"&:focus-visible":Object.assign({},m2e(e,t))});po.genFocusStyle=h2e;const vqt=e=>({[`.${e}`]:Object.assign(Object.assign({},p2e()),{[`.${e} .${e}-icon`]:{display:"block"}})});po.genIconStyle=vqt;const _qt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},h2e(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});po.operationUnit=_qt;var yqt=Jo.default;Object.defineProperty(_h,"__esModule",{value:!0});_h.genSubStyleComponent=_h.genStyleHooks=_h.genComponentStyleHook=void 0;var Xce=m,bqt=u2e,dB=Vl,fB=po,Zce=yqt(Qu);const{genStyleHooks:Sqt,genComponentStyleHook:Eqt,genSubStyleComponent:Cqt}=(0,bqt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Xce.useContext)(dB.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Zce.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Xce.useContext)(dB.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,fB.genLinkStyle)(e)},(0,fB.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:dB.defaultIconPrefixCls)]},getCommonStyle:fB.genCommonStyle,getCompUnitless:()=>Zce.unitless});_h.genSubStyleComponent=Cqt;_h.genComponentStyleHook=Eqt;_h.genStyleHooks=Sqt;var OQ={};Object.defineProperty(OQ,"__esModule",{value:!0});OQ.default=xqt;var wqt=xQ;function xqt(e,t){return wqt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var NL={},Tqt=Tr.default;Object.defineProperty(NL,"__esModule",{value:!0});NL.default=void 0;var Rqt=Gh,Oqt=po,Iqt=Tqt(Qu);const Nqt=(e,t)=>{const[n,r]=(0,Iqt.default)();return(0,Rqt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Oqt.genIconStyle)(e)])};NL.default=Nqt;(function(e){var t=Tr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=Gh,r=u2e,i=xQ,o=vT,a=t(Qu),s=_h,l=t(OQ),c=t(NL),u=Xd})(FS);var ML={},Mqt=Jo.default;Object.defineProperty(ML,"__esModule",{value:!0});ML.default=void 0;var Aqt=Mqt(m);const Pqt=Object.assign({},Aqt),{useId:Jce}=Pqt,Dqt=()=>"",kqt=typeof Jce>"u"?Dqt:Jce;ML.default=kqt;var IQ=Tr.default;Object.defineProperty(wQ,"__esModule",{value:!0});wQ.default=Uqt;var Lqt=IQ(mL),$qt=IQ(wL),Fqt=zc,eue=FS,Bqt=IQ(ML);function Uqt(e,t,n){var r;(0,Fqt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},eue.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:eue.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,Bqt.default)();return(0,Lqt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.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 i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,$qt.default)(c,d,!0)}))}var NQ={};const jqt=Zw(ZQe);var Hqt=Jo.default;Object.defineProperty(NQ,"__esModule",{value:!0});NQ.default=Gqt;var tue=Hqt(m),zqt=jqt,Vqt=FS;function Gqt(e){const{children:t}=e,[,n]=(0,Vqt.useToken)(),{motion:r}=n,i=tue.useRef(!1);return i.current=i.current||r===!1,i.current?tue.createElement(zqt.Provider,{motion:r},t):t}var AL={},Wqt=Jo.default;Object.defineProperty(AL,"__esModule",{value:!0});AL.default=void 0;Wqt(m);AL.default=()=>null;var g2e={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=FS})(g2e);(function(e){"use client";var t=Tr.default,n=Jo.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(m),i=Gh,o=t(AS),a=t(mL),s=hL,l=n(zc),c=t(gL),u=n(n2e),d=t($S),f=t(__),p=Xd,h=t(lf),g=Vl,v=EL,y=s_,_=t(CL),b=t(wQ),S=t(NQ),C=t(AL),E=n(l_),w=t(g2e),x=function(W,$){var H={};for(var K in W)Object.prototype.hasOwnProperty.call(W,K)&&$.indexOf(K)<0&&(H[K]=W[K]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,K=Object.getOwnPropertySymbols(W);re<K.length;re++)$.indexOf(K[re])<0&&Object.prototype.propertyIsEnumerable.call(W,K[re])&&(H[K[re]]=W[K[re]]);return H};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const T=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let R,N,I,P;function D(){return R||g.defaultPrefixCls}function F(){return N||g.defaultIconPrefixCls}function L(W){return Object.keys(W).some($=>$.endsWith("Color"))}const B=W=>{const{prefixCls:$,iconPrefixCls:H,theme:K,holderRender:re}=W;$!==void 0&&(R=$),H!==void 0&&(N=H),"holderRender"in W&&(P=re),K&&(L(K)?(0,v.registerTheme)(D(),K):I=K)},U=()=>({getPrefixCls:(W,$)=>$||(W?`${D()}-${W}`:D()),getIconPrefixCls:F,getRootPrefixCls:()=>R||D(),getTheme:()=>I,holderRender:P});e.globalConfig=U;const G=W=>{const{children:$,csp:H,autoInsertSpaceInButton:K,alert:re,anchor:Q,form:A,locale:k,componentSize:Z,direction:ne,space:oe,splitter:ae,virtual:ue,dropdownMatchSelectWidth:fe,popupMatchSelectWidth:se,popupOverflow:pe,legacyLocale:_e,parentContext:Te,iconPrefixCls:xe,theme:ge,componentDisabled:Ce,segmented:ye,statistic:be,spin:Ee,calendar:Me,carousel:X,cascader:Y,collapse:J,typography:he,checkbox:ve,descriptions:ce,divider:$e,drawer:Be,skeleton:me,steps:Fe,image:Xe,layout:ze,list:qe,mentions:Ge,modal:We,progress:Lt,result:ut,slider:ft,breadcrumb:bt,menu:St,pagination:Ht,input:xt,textArea:Nt,empty:Vt,badge:Ue,radio:Ve,rate:je,switch:et,transfer:_t,avatar:vt,message:Mt,tag:wt,table:jt,card:zt,tabs:Gt,timeline:$t,timePicker:on,upload:pt,notification:Dt,tree:Wt,colorPicker:Et,datePicker:yt,rangePicker:Ft,flex:Ae,wave:kt,dropdown:nt,warning:Rt,tour:Tt,tooltip:xn,popover:Un,popconfirm:O,floatButtonGroup:j,variant:te,inputNumber:we,treeSelect:Le}=W,Je=r.useCallback((tn,rn)=>{const{prefixCls:jn}=W;if(rn)return rn;const vr=jn||Te.getPrefixCls("");return tn?`${vr}-${tn}`:vr},[Te.getPrefixCls,W.prefixCls]),At=xe||Te.iconPrefixCls||g.defaultIconPrefixCls,dn=H||Te.csp;(0,w.default)(At,dn);const Mn=(0,b.default)(ge,Te.theme,{prefixCls:Je("")}),Kr={csp:dn,autoInsertSpaceInButton:K,alert:re,anchor:Q,locale:k||_e,direction:ne,space:oe,splitter:ae,virtual:ue,popupMatchSelectWidth:se??fe,popupOverflow:pe,getPrefixCls:Je,iconPrefixCls:At,theme:Mn,segmented:ye,statistic:be,spin:Ee,calendar:Me,carousel:X,cascader:Y,collapse:J,typography:he,checkbox:ve,descriptions:ce,divider:$e,drawer:Be,skeleton:me,steps:Fe,image:Xe,input:xt,textArea:Nt,layout:ze,list:qe,mentions:Ge,modal:We,progress:Lt,result:ut,slider:ft,breadcrumb:bt,menu:St,pagination:Ht,empty:Vt,badge:Ue,radio:Ve,rate:je,switch:et,transfer:_t,avatar:vt,message:Mt,tag:wt,table:jt,card:zt,tabs:Gt,timeline:$t,timePicker:on,upload:pt,notification:Dt,tree:Wt,colorPicker:Et,datePicker:yt,rangePicker:Ft,flex:Ae,wave:kt,dropdown:nt,warning:Rt,tour:Tt,tooltip:xn,popover:Un,popconfirm:O,floatButtonGroup:j,variant:te,inputNumber:we,treeSelect:Le},Ur=Object.assign({},Te);Object.keys(Kr).forEach(tn=>{Kr[tn]!==void 0&&(Ur[tn]=Kr[tn])}),T.forEach(tn=>{const rn=W[tn];rn&&(Ur[tn]=rn)}),typeof K<"u"&&(Ur.button=Object.assign({autoInsertSpace:K},Ur.button));const di=(0,a.default)(()=>Ur,Ur,(tn,rn)=>{const jn=Object.keys(tn),vr=Object.keys(rn);return jn.length!==vr.length||jn.some(ai=>tn[ai]!==rn[ai])}),Sr=r.useMemo(()=>({prefixCls:At,csp:dn}),[At,dn]);let cn=r.createElement(r.Fragment,null,r.createElement(C.default,{dropdownMatchSelectWidth:fe}),$);const vn=r.useMemo(()=>{var tn,rn,jn,vr;return(0,s.merge)(((tn=f.default.Form)===null||tn===void 0?void 0:tn.defaultValidateMessages)||{},((jn=(rn=di.locale)===null||rn===void 0?void 0:rn.Form)===null||jn===void 0?void 0:jn.defaultValidateMessages)||{},((vr=di.form)===null||vr===void 0?void 0:vr.validateMessages)||{},(A==null?void 0:A.validateMessages)||{})},[di,A==null?void 0:A.validateMessages]);Object.keys(vn).length>0&&(cn=r.createElement(c.default.Provider,{value:vn},cn)),k&&(cn=r.createElement(u.default,{locale:k,_ANT_MARK__:u.ANT_MARK},cn)),(At||dn)&&(cn=r.createElement(o.default.Provider,{value:Sr},cn)),Z&&(cn=r.createElement(E.SizeContextProvider,{size:Z},cn)),cn=r.createElement(S.default,null,cn);const Rr=r.useMemo(()=>{const tn=Mn||{},{algorithm:rn,token:jn,components:vr,cssVar:ai}=tn,co=x(tn,["algorithm","token","components","cssVar"]),Xn=rn&&(!Array.isArray(rn)||rn.length>0)?(0,i.createTheme)(rn):p.defaultTheme,Ni={};Object.entries(vr||{}).forEach(Kn=>{let[An,Hn]=Kn;const _r=Object.assign({},Hn);"algorithm"in _r&&(_r.algorithm===!0?_r.theme=Xn:(Array.isArray(_r.algorithm)||typeof _r.algorithm=="function")&&(_r.theme=(0,i.createTheme)(_r.algorithm)),delete _r.algorithm),Ni[An]=_r});const Do=Object.assign(Object.assign({},h.default),jn);return Object.assign(Object.assign({},co),{theme:Xn,token:Do,components:Ni,override:Object.assign({override:Do},Ni),cssVar:ai})},[Mn]);return ge&&(cn=r.createElement(p.DesignTokenContext.Provider,{value:Rr},cn)),di.warning&&(cn=r.createElement(l.WarningContext.Provider,{value:di.warning},cn)),Ce!==void 0&&(cn=r.createElement(y.DisabledContextProvider,{disabled:Ce},cn)),r.createElement(g.ConfigContext.Provider,{value:di},cn)},V=W=>{const $=r.useContext(g.ConfigContext),H=r.useContext(d.default);return r.createElement(G,Object.assign({parentContext:$,legacyLocale:H},W))};V.ConfigContext=g.ConfigContext,V.SizeContext=E.default,V.config=B,V.useConfig=_.default,Object.defineProperty(V,"SizeContext",{get:()=>E.default}),e.default=V})(hQ);var yT={},Yqt=Jo.default;Object.defineProperty(yT,"__esModule",{value:!0});yT.LayoutContext=void 0;var qqt=Yqt(m);yT.LayoutContext=qqt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var MQ={},AQ={},PQ={},Kqt=Tr.default;Object.defineProperty(PQ,"__esModule",{value:!0});PQ.default=eKt;var Qqt=Kqt(y_),Xqt=Symbol.for("react.element"),Zqt=Symbol.for("react.transitional.element"),Jqt=Symbol.for("react.fragment");function eKt(e){return e&&(0,Qqt.default)(e)==="object"&&(e.$$typeof===Xqt||e.$$typeof===Zqt)&&e.type===Jqt}var v2e=Tr.default;Object.defineProperty(AQ,"__esModule",{value:!0});AQ.default=qz;var tKt=v2e(PQ),nKt=v2e(m);function qz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return nKt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(qz(r)):(0,tKt.default)(r)&&r.props?n=n.concat(qz(r.props.children,t)):n.push(r))}),n}var x0={},Kz={exports:{}},PL={},DQ={};Object.defineProperty(DQ,"__esModule",{value:!0});var rKt={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"};DQ.default=rKt;var iKt=Jo.default,kQ=Tr.default;Object.defineProperty(PL,"__esModule",{value:!0});PL.default=void 0;var oKt=kQ(Uk),_2e=iKt(m),aKt=kQ(DQ),sKt=kQ(MS),lKt=function(t,n){return _2e.createElement(sKt.default,(0,oKt.default)({},t,{ref:n,icon:aKt.default}))},cKt=_2e.forwardRef(lKt);PL.default=cKt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(PL);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Kz,Kz.exports);var uKt=Kz.exports,Qz={exports:{}},DL={},LQ={};Object.defineProperty(LQ,"__esModule",{value:!0});var dKt={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"};LQ.default=dKt;var fKt=Jo.default,$Q=Tr.default;Object.defineProperty(DL,"__esModule",{value:!0});DL.default=void 0;var pKt=$Q(Uk),y2e=fKt(m),mKt=$Q(LQ),hKt=$Q(MS),gKt=function(t,n){return y2e.createElement(hKt.default,(0,pKt.default)({},t,{ref:n,icon:mKt.default}))},vKt=y2e.forwardRef(gKt);DL.default=vKt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(DL);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Qz,Qz.exports);var _Kt=Qz.exports,Xz={exports:{}},kL={},FQ={};Object.defineProperty(FQ,"__esModule",{value:!0});var yKt={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"};FQ.default=yKt;var bKt=Jo.default,BQ=Tr.default;Object.defineProperty(kL,"__esModule",{value:!0});kL.default=void 0;var SKt=BQ(Uk),b2e=bKt(m),EKt=BQ(FQ),CKt=BQ(MS),wKt=function(t,n){return b2e.createElement(CKt.default,(0,SKt.default)({},t,{ref:n,icon:EKt.default}))},xKt=b2e.forwardRef(wKt);kL.default=xKt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(kL);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Xz,Xz.exports);var TKt=Xz.exports,LL={},ap={};Object.defineProperty(ap,"__esModule",{value:!0});ap.prepareComponentToken=ap.default=ap.DEPRECATED_TOKENS=void 0;var RKt=Gh,OKt=FS;const IKt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:(0,RKt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},S2e=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};ap.prepareComponentToken=S2e;const NKt=ap.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ap.default=(0,OKt.genStyleHooks)("Layout",e=>[IKt(e)],S2e,{deprecatedTokens:NKt});Object.defineProperty(LL,"__esModule",{value:!0});LL.default=void 0;var BE=Gh,nue=ap,MKt=FS;const AKt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:h,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,BE.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,BE.unit)(f)} ${(0,BE.unit)(f)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,BE.unit)(f)} 0 0 ${(0,BE.unit)(f)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:h,background:g},[`${t}-zero-width-trigger`]:{color:h,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};LL.default=(0,MKt.genStyleHooks)(["Layout","Sider"],e=>[AKt(e)],nue.prepareComponentToken,{deprecatedTokens:nue.DEPRECATED_TOKENS});var BS=Tr.default,PKt=Jo.default;Object.defineProperty(x0,"__esModule",{value:!0});x0.default=x0.SiderContext=void 0;var Lf=PKt(m),$l=Lf,DKt=BS(uKt),rue=BS(_Kt),iue=BS(TKt),oue=BS(q2),kKt=BS(pL),LKt=hQ,$Kt=yT,FKt=BS(LL),BKt=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aue={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},UKt=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),jKt=x0.SiderContext=$l.createContext({}),HKt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),zKt=$l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:g,onBreakpoint:v}=e,y=BKt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_}=(0,Lf.useContext)($Kt.LayoutContext),[b,S]=(0,Lf.useState)("collapsed"in e?e.collapsed:a),[C,E]=(0,Lf.useState)(!1);(0,Lf.useEffect)(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(k,Z)=>{"collapsed"in e||S(k),g==null||g(k,Z)},{getPrefixCls:x,direction:T}=(0,Lf.useContext)(LKt.ConfigContext),R=x("layout-sider",n),[N,I,P]=(0,FKt.default)(R),D=(0,Lf.useRef)(null);D.current=k=>{E(k.matches),v==null||v(k.matches),b!==k.matches&&w(k.matches,"responsive")},(0,Lf.useEffect)(()=>{function k(ne){return D.current(ne)}let Z;if(typeof window<"u"){const{matchMedia:ne}=window;if(ne&&h&&h in aue){Z=ne(`screen and (max-width: ${aue[h]})`);try{Z.addEventListener("change",k)}catch{Z.addListener(k)}k(Z)}}return()=>{try{Z==null||Z.removeEventListener("change",k)}catch{Z==null||Z.removeListener(k)}}},[h]),(0,Lf.useEffect)(()=>{const k=HKt("ant-sider-");return _.addSider(k),()=>_.removeSider(k)},[]);const F=()=>{w(!b,"clickTrigger")},L=(0,kKt.default)(y,["collapsed"]),B=b?f:d,U=UKt(B)?`${B}px`:String(B),G=parseFloat(String(f||0))===0?$l.createElement("span",{onClick:F,className:(0,oue.default)(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${u?"right":"left"}`),style:p},i||$l.createElement(DKt.default,null)):null,V=T==="rtl"==!u,H={expanded:V?$l.createElement(iue.default,null):$l.createElement(rue.default,null),collapsed:V?$l.createElement(rue.default,null):$l.createElement(iue.default,null)}[b?"collapsed":"expanded"],K=i!==null?G||$l.createElement("div",{className:`${R}-trigger`,onClick:F,style:{width:U}},i||H):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${U}`,maxWidth:U,minWidth:U,width:U}),Q=(0,oue.default)(R,`${R}-${s}`,{[`${R}-collapsed`]:!!b,[`${R}-has-trigger`]:c&&i!==null&&!G,[`${R}-below`]:!!C,[`${R}-zero-width`]:parseFloat(U)===0},r,I,P),A=$l.useMemo(()=>({siderCollapsed:b}),[b]);return N($l.createElement(jKt.Provider,{value:A},$l.createElement("aside",Object.assign({className:Q},L,{style:re,ref:t}),$l.createElement("div",{className:`${R}-children`},o),c||C&&G?K:null)))});x0.default=zKt;var E2e=Tr.default;Object.defineProperty(MQ,"__esModule",{value:!0});MQ.default=WKt;var VKt=E2e(AQ),GKt=E2e(x0);function WKt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,VKt.default)(t).some(i=>i.type===GKt.default)}var $L,FL,YKt=Jo.default,bT=Tr.default;Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=Zf.Header=FL=Zf.Footer=$L=Zf.Content=void 0;var qKt=bT(QPe),Ac=YKt(m),C2e=bT(q2),KKt=bT(pL),Zz=hQ,QKt=yT,XKt=bT(MQ),w2e=bT(ap),x2e=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function BL(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>Ac.forwardRef((a,s)=>Ac.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const UQ=Ac.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=x2e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=Ac.useContext(Zz.ConfigContext),l=s("layout",n),[c,u,d]=(0,w2e.default)(l),f=r?`${l}-${r}`:l;return c(Ac.createElement(o,Object.assign({className:(0,C2e.default)(n||f,i,u,d),ref:t},a)))}),ZKt=Ac.forwardRef((e,t)=>{const{direction:n}=Ac.useContext(Zz.ConfigContext),[r,i]=Ac.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=x2e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,KKt.default)(f,["suffixCls"]),{getPrefixCls:h,layout:g}=Ac.useContext(Zz.ConfigContext),v=h("layout",o),y=(0,XKt.default)(r,l,c),[_,b,S]=(0,w2e.default)(v),C=(0,C2e.default)(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,b,S),E=Ac.useMemo(()=>({siderHook:{addSider:w=>{i(x=>[].concat((0,qKt.default)(x),[w]))},removeSider:w=>{i(x=>x.filter(T=>T!==w))}}}),[]);return _(Ac.createElement(QKt.LayoutContext.Provider,{value:E},Ac.createElement(u,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},g==null?void 0:g.style),d)},p),l)))}),JKt=BL({tagName:"div",displayName:"Layout"})(ZKt);Zf.Header=BL({suffixCls:"header",tagName:"header",displayName:"Header"})(UQ);FL=Zf.Footer=BL({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(UQ);$L=Zf.Content=BL({suffixCls:"content",tagName:"main",displayName:"Content"})(UQ);Zf.default=JKt;function Wh(){const{isDarkMode:e}=l0e(),{token:t}=Ns.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:eQt,Sider:tQt,Content:nQt}=_i,T2e=()=>{const e=mr();m.useContext(Da);const t=uc(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:i,contentStyle:o}=Wh(),[a,s]=m.useState([]);m.useEffect(()=>{const c=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return M.jsxs(_i,{children:[M.jsx(tQt,{style:r,width:i,children:M.jsx(hf,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),M.jsxs(_i,{children:[M.jsx(eQt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),M.jsx(nQt,{style:o,children:M.jsx(gk,{})})]})]})},R2e=_l()(eu(yl(tu((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===qbe){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===X5e){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:z5e}))),rQt=_l()(eu(yl(tu(e=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(t){e({currentMember:t})},setMemberSelf(t){e({memberSelf:t})},setMemberResult:t=>{e({memberResult:t})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:j5e}))),O2e=_l()(eu(yl(tu((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:K5e}))),CC=_l()(eu(yl(tu(e=>({currentProcess:null,processResult:{data:{content:[]}},setCurrentProcess(t){e({currentProcess:t})},setProcessResult(t){e({processResult:t})},resetProcess:()=>e({currentProcess:null,processResult:{data:{content:[]}}})})),{name:Q5e}))),iQt=()=>{const e=kh(d=>d.deleteOrg),t=$u(d=>d.resetThreads),n=Pp(d=>d.resetMessageList),r=rQt(d=>d.resetMembers),i=ox(d=>d.removeAccessToken),o=Yo(d=>d.resetUserInfo),a=R2e(d=>d.resetContactInfo),s=T_(d=>d.resetAgentInfo),l=O2e(d=>d.resetWorkgroupInfo),c=CC(d=>d.resetProcess);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l(),c()}}};function jQ(){const e=ox(_=>_.accessToken),t=Yo(_=>_.userInfo),n=T_(_=>_.agentInfo),r=fL(),[i,o]=m.useState(!1),{showNotification:a}=mQ(),{translateString:s}=_d();Pp(_=>_.addMessage),$u(_=>_.updateThreadContent),m.useContext(Da),m.useRef(!1);const l=$u(_=>_.threads),[c,u]=m.useState(l),d=m.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!y0t()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),f=async()=>{},p=m.useRef(n==null?void 0:n.uid),h=m.useCallback(()=>{if(!i&&e)return setInterval(async()=>{p.current?f():console.log("useMqtt autoPingMessage currentUidRef.current:",p.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),g=()=>{console.log("useMqtt doConnect"),v0t({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),TF()},y=_=>{var b,S;(_==null?void 0:_.type)!==B1&&((b=_==null?void 0:_.user)==null?void 0:b.uid)!==(t==null?void 0:t.uid)&&((S=_==null?void 0:_.user)==null?void 0:S.uid)!==(n==null?void 0:n.uid)&&(dYe(),console.log("playAudio"))};return m.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():TF()},[r]),m.useEffect(()=>{if(n!=null&&n.uid){p.current=n==null?void 0:n.uid;const _=h();return()=>{clearInterval(_)}}else p.current=null},[n]),m.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const _=d();return()=>{TF(),clearInterval(_)}},[e,t]),m.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),m.useEffect(()=>{const _=function(b){if(console.log("useMqtt handleNewMessage",b),b.type===F1||b.type===Kbe||b.type===Bj||b.type===B1||b.type===U1)return;const S=b.threadTopic,C=c.find(E=>E.topic===S);C?C.mute?console.log("useMqtt matchingThread muted",S):(console.log("useMqtt matchingThread no mute",S),a(s(kR),s(kR)),y(b)):(console.log("useMqtt matchingThread no"),a(s(kR),s(kR)),y(b))};return fr.on($1,_),()=>{fr.off($1)}},[c]),m.useEffect(()=>{console.log("useMqtt useEffect");const _=function(){console.log("handleMqttConnected"),o(!0)},b=function(){console.log("handleMqttDisconnected"),o(!1)};return fr.on(Ij,_),fr.on(Mj,b),fr.on(Aj,b),fr.on(Nj,b),fr.on(Pj,b),fr.on(Dj,b),()=>{console.log("un - useEffect mqttDisconnect"),fr.off(Ij),fr.off(Mj),fr.off(Aj),fr.off(Nj),fr.off(Pj),fr.off(Dj)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:i}}function I2e(){const{clearStorage:e}=iQt(),{doDisconnect:t}=jQ(),{setPingLoading:n}=m.useContext(Da),r=m.useCallback(async()=>{try{const i=await RWt();console.log("logout result:",i.data),n(!1),t(),e(),N0t()}catch(i){console.log("logout error:",i)}},[]);return m.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),fr.off(fh,i),r()};return fr.on(fh,i),()=>{console.log("un - useEffect mqttDisconnect"),fr.off(fh)}},[]),{doLogout:r}}const N2e=()=>{const e=mr(),{isLoggedIn:t,mode:n}=m.useContext(Da),{doLogout:r}=I2e(),[i,o]=m.useState("✅"),[a,s]=m.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=fL();m.useEffect(()=>{l?(o("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(o("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=M.jsx("div",{children:M.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=M.jsx("div",{children:M.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[d,f]=m.useState(!1),p=()=>{f(!0)},h=()=>{f(!1)},g=()=>{console.log("handleShowLoginModel"),p()},v=_=>{console.log(_),r()},y=_=>{console.log(_)};return M.jsxs(M.Fragment,{children:[M.jsx(_o,{open:d&&!t,onOk:h,onCancel:h,footer:[M.jsx(On,{onClick:h,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:M.jsx(Hz,{isModel:!0})}),M.jsxs("span",{children:[!t&&M.jsxs(M.Fragment,{children:[M.jsx(Xc,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:M.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),M.jsx(Xc,{content:u,children:M.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&M.jsx(M.Fragment,{children:M.jsx(HOe,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:y,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:M.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===jv&&Jb&&M.jsx("span",{style:{marginLeft:10},children:M.jsx(rc,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:M.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),M.jsxs("span",{className:"footerRightButton",children:[M.jsx(rc,{title:a,children:M.jsx("span",{children:i})}),M.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>uw(cUe),children:["v",uYe()]}),M.jsx("span",{style:{marginLeft:"10px"},onClick:()=>uw("https://www.weiyuai.cn/chat/iframe.html?org=df_org_uid&t=1&sid=df_wg_uid&"),children:e.formatMessage({id:"i18n.online.chat",defaultMessage:"Chat"})})]})]})},M2e=()=>{const e=uc(),{userInfo:t}=qq(),{translateString:n}=_d(),{mode:r}=m.useContext(Da),[i,o]=m.useState(""),[a,s]=m.useState(""),[l,c]=m.useState(""),u=()=>{e("/setting")};return m.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),M.jsx(M.Fragment,{children:M.jsx(Xc,{title:i,content:a,placement:"rightBottom",children:M.jsx(M.Fragment,{children:M.jsx(Bh,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function A2e(){const e=uc(),t=Yo(r=>r.userInfo),n=R2e(r=>r.addDevice);m.useEffect(()=>(console.log("useElectronApi useEffect"),Aa?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:qbe,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===A5e){Bt.success("截图成功");const i=r.data;fr.emit(F5e,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Aa?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const oQt=()=>{const e=mr(),{doLogout:t}=I2e(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=m.useContext(Da),{agentInfo:l}=T_(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:M.jsx(jq,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=m.useState(c);m.useEffect(()=>{if(d(c),l.uid!==""&&o===jv){console.log("agentInfo changed",l);const p=[...c],h={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:rte,icon:l.status===rte?M.jsx(mh,{}):M.jsx(M.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:ite,icon:l.status===ite?M.jsx(mh,{}):M.jsx(M.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:Z3,icon:l.status===Z3?M.jsx(mh,{}):M.jsx(M.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=p[0].children,v=g.findIndex(y=>y.key===h.key);v!==-1?g[v]=h:g.splice(0,0,h),p[0].children=g,d(p)}},[l,r,o]);const f=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?i(p.key):p.key===gb||p.key===jv||p.key===wM?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===Z3&&XC.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return M.jsx(M.Fragment,{children:n?M.jsx(M.Fragment,{children:M.jsx(hf,{inlineCollapsed:!0,onClick:f,style:{width:64,height:34},mode:"inline",items:u})}):M.jsx(M.Fragment,{})})};async function aQt(e){return mi("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:Pi}})}const P2e=()=>{const[e,t]=m.useState([]),n=new TIe;m.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return m.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return fr.on($1,a),()=>{console.log("useIndexedDB useEffect return"),fr.off($1,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function HQ(){return mi("/api/v1/user/profile",{method:"GET",params:{client:Pi}})}async function D2e(e){return mi("/api/v1/user/update",{method:"POST",data:{...e,client:Pi}})}async function sQt(e){return mi("/api/v1/user/change/password",{method:"POST",data:{...e,client:Pi}})}async function k2e(e){return mi("/api/v1/user/change/email",{method:"POST",data:{...e,client:Pi}})}async function L2e(e){return mi("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:Pi}})}const lQt=()=>{const e=mr(),{locale:t,changeLocale:n}=m.useContext(Da),r=[{key:"lang",icon:M.jsx(fvt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?M.jsx(mh,{}):M.jsx(M.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?M.jsx(mh,{}):M.jsx(M.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?M.jsx(mh,{}):M.jsx(M.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return M.jsx(hf,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})},zQ=({formFields:e=[],onSubmit:t})=>{const[n,r]=m.useState(e),{formId:i}=tEt(),[o]=hr.useForm(),a=mr(),{isDarkMode:s}=cc(),[l,c]=m.useState(!1);m.useEffect(()=>{if(i==="preview"){const f=localStorage.getItem("form-preview-data");if(f){const{fields:p}=JSON.parse(f);r(p)}}},[i]);const u=f=>{var p,h,g;switch(f.type){case"input":return M.jsx(Hr,{placeholder:a.formatMessage({id:"preview.placeholder.text"})});case"textarea":return M.jsx(Hr.TextArea,{placeholder:a.formatMessage({id:"preview.placeholder.text"})});case"datePicker":return M.jsx(hl,{style:{width:"100%"},placeholder:a.formatMessage({id:"preview.placeholder.date"})});case"timePicker":return M.jsx(Cp,{style:{width:"100%"},placeholder:a.formatMessage({id:"preview.placeholder.time"})});case"select":return M.jsx(md,{placeholder:a.formatMessage({id:"preview.placeholder.select"}),options:(p=f.options)==null?void 0:p.map(v=>({label:v,value:v}))});case"checkbox":return M.jsx(P_.Group,{options:(h=f.options)==null?void 0:h.map(v=>({label:v,value:v}))});case"radio":return M.jsx(ji.Group,{options:(g=f.options)==null?void 0:g.map(v=>({label:v,value:v}))});case"switch":return M.jsx(Zv,{});case"upload":return M.jsx(jp,{});default:return M.jsx(Hr,{})}},d=async f=>{c(!0);try{t&&await t(f)}finally{c(!1)}};return M.jsx(Fs,{title:i==="preview"?a.formatMessage({id:"formBuilder.preview"}):void 0,style:{maxWidth:800,margin:"24px auto",background:s?"#1f1f1f":"#fff"},children:M.jsxs(hr,{form:o,layout:"vertical",onFinish:d,style:{maxWidth:600,margin:"0 auto"},children:[n.map(f=>M.jsx(hr.Item,{name:f.id,label:f.label,rules:[{required:f.required,message:`${f.label}是必填项`}],children:u(f)},f.id)),M.jsx(hr.Item,{children:M.jsx(On,{type:"primary",htmlType:"submit",loading:l,block:!0,children:a.formatMessage({id:"form.submit"})})})]})})},cQt=({visible:e,onClose:t,formFields:n})=>{const r=mr(),{isDarkMode:i}=cc();return e?M.jsxs("div",{style:{position:"fixed",right:20,bottom:0,width:400,height:600,background:i?"#1f1f1f":"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",borderRadius:"8px 8px 0 0",display:"flex",flexDirection:"column",zIndex:1e3},children:[M.jsxs("div",{style:{padding:"12px 16px",borderBottom:`1px solid ${i?"#303030":"#f0f0f0"}`,display:"flex",justifyContent:"space-between",alignItems:"center",background:i?"#141414":"#f5f5f5",borderRadius:"8px 8px 0 0"},children:[M.jsx("span",{children:r.formatMessage({id:"preview.title"})}),M.jsxs("div",{children:[M.jsx(Nvt,{style:{marginRight:12,cursor:"pointer"},onClick:()=>t(),title:r.formatMessage({id:"preview.minimize"})}),M.jsx(ou,{style:{cursor:"pointer"},onClick:()=>t(),title:r.formatMessage({id:"preview.close"})})]})]}),M.jsx("div",{style:{flex:1,overflow:"auto",padding:"16px"},children:M.jsx(zQ,{formFields:n})})]}):null},UL=_l()(yl(e=>({components:[],activeId:null,setComponents:t=>e({components:t}),addComponent:({id:t,type:n,index:r,options:i})=>e(o=>{const a=[...o.components];return a.splice(r,0,{id:t,type:n,index:r,options:i}),{components:a.map((s,l)=>({...s,index:l}))}}),moveComponent:(t,n,r)=>e(i=>{const o=[...i.components],a=o.findIndex(l=>l.id===t),s=o[a];return o.splice(a,1),o.splice(r,0,s),{components:o}}),updateComponent:(t,n)=>e(r=>({components:r.components.map(i=>i.id===t?{...i,props:{...i.props,...n}}:i)})),setActiveId:t=>e({activeId:t}),clearForm:()=>e({components:[],activeId:null}),deleteComponent:t=>e(n=>({components:n.components.filter(r=>r.id!==t),activeId:null}))}),{name:"form-builder-storage"})),uQt=({children:e,onDragStart:t,onDragEnd:n})=>{const[r,i]=m.useState(null),[o,a]=m.useState(null),s=Tzt(ePe),l=Rzt(s),c=d=>{var p;console.log("DndContext drag start data:",d.active.data.current);const{active:f}=d;a(f.data.current),i(M.jsx("div",{className:"dragging-overlay",children:M.jsx("div",{className:"component-item",children:M.jsx("div",{className:"component-item-inner",children:(p=f.data.current)==null?void 0:p.title})})})),t==null||t(d)},u=d=>{console.log("DndContext drag end data:",o);const f={...d,active:{...d.active,data:{current:o}}};i(null),a(null),n==null||n(f)};return M.jsxs(OVt,{sensors:l,collisionDetection:$zt,onDragStart:c,onDragEnd:u,children:[e,M.jsx(VVt,{dropAnimation:{duration:150,sideEffects:cPe({styles:{active:{opacity:"0.5"}}})},children:r})]})};function $2e(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function dQt(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function IO(e){return e!==null&&e>=0}function fQt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function pQt(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const F2e=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=$2e(t,r,n),a=t[i],s=o[i];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},NO={scaleX:1,scaleY:1},mQt=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(i===n){const c=o[a];return c?{x:0,y:n<a?c.top+c.height-(s.top+s.height):c.top-s.top,...NO}:null}const l=hQt(o,i,n);return i>n&&i<=a?{x:0,y:-s.height-l,...NO}:i<n&&i>=a?{x:0,y:s.height+l,...NO}:{x:0,y:0,...NO}};function hQt(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const B2e="Sortable",U2e=de.createContext({activeIndex:-1,containerId:B2e,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:F2e,disabled:{draggable:!1,droppable:!1}});function gQt(e){let{children:t,id:n,items:r,strategy:i=F2e,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=sPe(),d=dT(B2e,n),f=s.rect!==null,p=m.useMemo(()=>r.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),h=a!=null,g=a?p.indexOf(a.id):-1,v=c?p.indexOf(c.id):-1,y=m.useRef(p),_=!fQt(p,y.current),b=v!==-1&&g===-1||_,S=pQt(o);ad(()=>{_&&h&&u(p)},[_,p,h,u]),m.useEffect(()=>{y.current=p},[p]);const C=m.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:b,items:p,overIndex:v,useDragOverlay:f,sortedRects:dQt(p,l),strategy:i}),[g,d,S.draggable,S.droppable,b,p,v,l,f,i]);return de.createElement(U2e.Provider,{value:C},t)}const vQt=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return $2e(n,r,i).indexOf(t)},_Qt=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==o&&i===a?!1:n?!0:a!==i&&t===l},yQt={duration:200,easing:"ease"},j2e="transform",bQt=xp.Transition.toString({property:j2e,duration:0,easing:"linear"}),SQt={roleDescription:"sortable"};function EQt(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=m.useState(null),s=m.useRef(n);return ad(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=kS(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),m.useEffect(()=>{o&&a(null)},[o]),o}function CQt(e){let{animateLayoutChanges:t=_Qt,attributes:n,disabled:r,data:i,getNewIndex:o=vQt,id:a,strategy:s,resizeObserverConfig:l,transition:c=yQt}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:h,sortedRects:g,overIndex:v,useDragOverlay:y,strategy:_}=m.useContext(U2e),b=wQt(r,p),S=u.indexOf(a),C=m.useMemo(()=>({sortable:{containerId:d,index:S,items:u},...i}),[d,i,S,u]),E=m.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:w,node:x,isOver:T,setNodeRef:R}=lPe({id:a,data:C,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...l}}),{active:N,activatorEvent:I,activeNodeRect:P,attributes:D,setNodeRef:F,listeners:L,isDragging:B,over:U,setActivatorNodeRef:G,transform:V}=aPe({id:a,data:C,attributes:{...SQt,...n},disabled:b.draggable}),W=fzt(R,F),$=!!N,H=$&&!h&&IO(f)&&IO(v),K=!y&&B,re=K&&H?V:null,A=H?re??(s??_)({rects:g,activeNodeRect:P,activeIndex:f,overIndex:v,index:S}):null,k=IO(f)&&IO(v)?o({id:a,items:u,activeIndex:f,overIndex:v}):S,Z=N==null?void 0:N.id,ne=m.useRef({activeId:Z,items:u,newIndex:k,containerId:d}),oe=u!==ne.current.items,ae=t({active:N,containerId:d,isDragging:B,isSorting:$,id:a,index:S,items:u,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:c,wasDragging:ne.current.activeId!=null}),ue=EQt({disabled:!ae,index:S,node:x,rect:w});return m.useEffect(()=>{$&&ne.current.newIndex!==k&&(ne.current.newIndex=k),d!==ne.current.containerId&&(ne.current.containerId=d),u!==ne.current.items&&(ne.current.items=u)},[$,k,d,u]),m.useEffect(()=>{if(Z===ne.current.activeId)return;if(Z&&!ne.current.activeId){ne.current.activeId=Z;return}const se=setTimeout(()=>{ne.current.activeId=Z},50);return()=>clearTimeout(se)},[Z]),{active:N,activeIndex:f,attributes:D,data:C,rect:w,index:S,newIndex:k,items:u,isOver:T,isSorting:$,isDragging:B,listeners:L,node:x,overIndex:v,over:U,setNodeRef:W,setActivatorNodeRef:G,setDroppableNodeRef:R,setDraggableNodeRef:F,transform:ue??A,transition:fe()};function fe(){if(ue||oe&&ne.current.newIndex===S)return bQt;if(!(K&&!Zk(I)||!c)&&($||ae))return xp.Transition.toString({...c,property:j2e})}}function wQt(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}}gi.Down,gi.Right,gi.Up,gi.Left;const{TextArea:xQt}=Hr,{Group:TQt}=ji,{Group:RQt}=P_,H2e=({component:e})=>{const{attributes:t,listeners:n,setNodeRef:r,transform:i,transition:o,isDragging:a}=CQt({id:e.id}),{type:s}=e,{activeId:l,setActiveId:c,deleteComponent:u,moveComponent:d,components:f}=UL(),p=l===e.id;if(!s)return console.error("No type provided for component:",e),null;const h=OQt(s),g={required:!1},v=C=>{C.preventDefault(),C.stopPropagation(),p||c(String(e.id))},y=C=>{C.stopPropagation(),u(String(e.id))},_=C=>{C.stopPropagation(),e.index>0&&d(String(e.id),String(e.id),e.index-1)},b=C=>{C.stopPropagation(),e.index<f.length-1&&d(String(e.id),String(e.id),e.index+1)},S={transform:xp.Transform.toString(i),transition:o,opacity:a?.5:void 0};return M.jsxs("div",{ref:r,style:S,...t,className:`form-item-wrapper ${p?"active":""}`,"data-id":String(e.id),children:[M.jsxs("div",{className:"form-item-header",children:[M.jsx("div",{className:"drag-handle",...n,children:M.jsx(oIe,{})}),M.jsx("span",{className:"form-item-label",onClick:v,children:h})]}),M.jsxs("div",{className:"form-content",children:[M.jsx(hr.Item,{...g,children:IQt(s)}),e.children&&e.children.length>0&&M.jsx("div",{className:"nested-components",children:e.children.map(C=>M.jsx(H2e,{component:C},C.id))})]}),M.jsxs("div",{className:"form-item-actions",children:[M.jsx(rIe,{className:"action-icon",onClick:_}),M.jsx(nIe,{className:"action-icon",onClick:b}),M.jsx(k_,{className:"delete-icon",onClick:y})]})]})};function OQt(e){return{input:"单行文本",textarea:"多行文本",select:"下拉选择",radio:"单选框组",checkbox:"多选框组",datepicker:"日期选择",timepicker:"时间选择",switch:"开关",upload:"上传"}[e]||e}function IQt(e){if(!e)return null;switch(e.toLowerCase()){case"input":return M.jsx(Hr,{placeholder:"请输入"});case"textarea":return M.jsx(xQt,{rows:4,placeholder:"请输入多行文本"});case"select":return M.jsx(md,{style:{width:"100%"},placeholder:"请选择",options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]});case"radio":return M.jsxs(TQt,{children:[M.jsx(ji,{value:"1",children:"选项1"}),M.jsx(ji,{value:"2",children:"选项2"})]});case"checkbox":return M.jsx(RQt,{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]});case"datepicker":return M.jsx(Pn,{locale:Jy,children:M.jsx(hl,{style:{width:"100%"},placeholder:"请选择日期"})});case"timepicker":return M.jsx(Pn,{locale:Jy,children:M.jsx(Cp,{style:{width:"100%"},placeholder:"请选择时间"})});case"switch":return M.jsx(Zv,{checkedChildren:"开",unCheckedChildren:"关"});case"upload":return M.jsx(jp,{children:M.jsx(On,{children:"点击上传"})});default:return console.log("Unknown component type:",e),M.jsxs("div",{children:["未知组件类型: ",e]})}}const NQt=()=>{const{isDarkMode:e}=cc(),{components:t,setActiveId:n}=UL(),[r,i]=m.useState(null),{setNodeRef:o,isOver:a}=lPe({id:"canvas",data:{position:r==null?void 0:r.position,targetId:r==null?void 0:r.id}}),s=c=>{c.target===c.currentTarget&&n(null)},l=c=>{const d=c.target.closest(".form-item-wrapper");if(d&&d instanceof HTMLElement){const f=d.getAttribute("data-id");if(f){const p=d.getBoundingClientRect(),h=c.clientY<p.top+p.height/2?"top":"bottom";i({id:f,position:h})}}else i(null)};return m.useEffect(()=>{console.log("Canvas isOver:",a)},[a]),M.jsx("div",{ref:o,className:`canvas-area ${a?"is-over":""}`,onClick:s,onDragOver:l,onDragLeave:()=>i(null),style:{minHeight:"200px",transition:"all 0.2s",padding:"16px",backgroundColor:a?"rgba(24, 144, 255, 0.05)":"transparent",background:e?"#141414":"#fff"},children:!t||t.length===0?M.jsx($m,{description:"拖拽组件到此处"}):M.jsx(hr,{layout:"vertical",children:M.jsx(gQt,{items:t.map(c=>c.id),strategy:mQt,children:t.map((c,u)=>M.jsxs("div",{className:"form-item-container",children:[(r==null?void 0:r.id)===c.id&&r.position==="top"&&M.jsx("div",{className:"drop-indicator top"}),M.jsx(H2e,{component:{...c,index:u}}),(r==null?void 0:r.id)===c.id&&r.position==="bottom"&&M.jsx("div",{className:"drop-indicator bottom"})]},c.id))})})})},MQt={input:{title:"component.input.title",icon:"FormOutlined"},textarea:{title:"component.textarea.title",icon:"FileTextOutlined"},select:{title:"component.select.title",icon:"SelectOutlined"},radio:{title:"component.radio.title",icon:"RadiusSettingOutlined"},checkbox:{title:"component.checkbox.title",icon:"CheckSquareOutlined"},datePicker:{title:"component.datePicker.title",icon:"CalendarOutlined"},timePicker:{title:"component.timePicker.title",icon:"ClockCircleOutlined"},switch:{title:"component.switch.title",icon:"PoweroffOutlined"},upload:{title:"component.upload.title",icon:"UploadOutlined"}};function AQt({id:e,data:t}){const n=aPe({id:e,data:t}),{attributes:r,listeners:i,setNodeRef:o,transform:a}=n;return{dragRef:o,dragProps:i?{...i,...r,style:{cursor:"grab",transform:xp.Transform.toString(a),touchAction:"none",userSelect:"none"}}:{},isDragging:n.isDragging}}const PQt=({type:e,index:t,icon:n,title:r})=>{const{isDarkMode:i}=cc(),{dragRef:o,dragProps:a}=AQt({id:gCe(),data:{type:"component",componentType:e,index:t,title:r}});return M.jsx("div",{ref:o,...a,children:M.jsx("div",{className:"component-item",style:{background:i?"#141414":"#fff"},children:M.jsxs("div",{className:"component-item-inner",children:[n,M.jsx("span",{children:r})]})})})},DQt=de.memo(PQt),kQt={FormOutlined:iIe,FileTextOutlined:Vpt,SelectOutlined:sIe,RadiusSettingOutlined:i_t,CheckSquareOutlined:A9,CalendarOutlined:ik,ClockCircleOutlined:kq,PoweroffOutlined:Zvt,UploadOutlined:$_},LQt=()=>{const e=mr(),{isDarkMode:t}=cc();return M.jsx("div",{className:"component-panel",style:{background:t?"#141414":"#fff"},children:M.jsx(Fs,{title:e.formatMessage({id:"component.panel.title"}),bordered:!1,children:M.jsx("div",{className:"component-list",children:Object.entries(MQt).map(([n,r],i)=>{const o=kQt[r.icon];return M.jsx(DQt,{type:n,index:i,icon:M.jsx(o,{}),title:e.formatMessage({id:r.title})},n)})})})})},$Qt=()=>{const{activeId:e,components:t,updateComponent:n}=UL(),[r]=hr.useForm(),{isDarkMode:i}=cc(),o=t.find(l=>l.id===e),a=l=>l?{input:"单行文本",textarea:"多行文本",select:"下拉选择",radio:"单选框组",checkbox:"多选框组",datepicker:"日期选择",timepicker:"时间选择",switch:"开关",upload:"上传"}[l.toLowerCase()]||l:"",s=l=>{e&&n(e,l)};return o?M.jsx("div",{className:"property-panel",style:{background:i?"#141414":"#fff"},children:M.jsx(Fs,{title:`${a(o.type)} - 属性设置`,bordered:!1,children:M.jsxs(hr,{form:r,layout:"vertical",initialValues:o,onValuesChange:s,children:[M.jsx(hr.Item,{label:"标签",name:"label",children:M.jsx(Hr,{placeholder:"请输入标签"})}),M.jsx(hr.Item,{label:"字段名",name:"name",children:M.jsx(Hr,{placeholder:"请输入字段名"})}),M.jsx(hr.Item,{label:"必填",name:"required",valuePropName:"checked",children:M.jsx(Zv,{})}),FQt(o.type||"")]})})}):M.jsx("div",{className:"property-panel",style:{background:i?"#141414":"#fff"},children:M.jsx(Fs,{title:"属性设置",bordered:!1,children:M.jsx("div",{className:"empty-tip",style:{color:i?"#fff":"#000"},children:"请选择组件"})})})};function FQt(e){switch(e.toLowerCase()){case"input":case"textarea":return M.jsxs(Zc,{direction:"vertical",style:{width:"100%"},children:[M.jsx(hr.Item,{label:"占位文本",name:"placeholder",children:M.jsx(Hr,{placeholder:"请输入占位文本"})}),M.jsx(hr.Item,{label:"最大长度",name:"maxLength",children:M.jsx(Hr,{type:"number",placeholder:"请输入最大长度"})})]});case"select":case"radio":case"checkbox":return M.jsx(hr.Item,{label:"选项",name:"options",children:M.jsx(Hr.TextArea,{placeholder:"每行一个选项,格式:值:标签",rows:4})});default:return null}}const{Header:BQt}=_i,Jz=()=>{const{components:e,setActiveId:t,addComponent:n,moveComponent:r,setComponents:i}=UL(),o=mr(),{isDarkMode:a}=cc(),[s,l]=m.useState(!1),[c,u]=m.useState([]),{headerStyle:d}=Wh(),f=y=>{console.log("FormBuilder drag start:",y.active)},p=y=>{var C;const{active:_,over:b}=y;if(!b)return;const S=b.data.current;if(b.id==="canvas"&&!S.targetId){const E=_.data.current;if(!(E!=null&&E.componentType))return;const w=String(_.id);n({id:w,type:E.componentType,index:e.length}),t(w)}else{const E=S.targetId||b.id;if(!e.find(N=>N.id===E))return;const x=S.position||"bottom",T=e.findIndex(N=>N.id===E),R=x==="top"?T:T+1;if((C=_.data.current)!=null&&C.isNew){const I=_.data.current.componentType||"";let P;["radio","checkbox","select"].includes(I)&&(P=[o.formatMessage({id:"flow.option.1"}),o.formatMessage({id:"flow.option.2"}),o.formatMessage({id:"flow.option.3"})]),n({id:String(_.id),type:I,index:R,options:P})}else r(String(_.id),String(E),R)}},h=()=>{const y=JSON.stringify(e,null,2),_=new Blob([y],{type:"application/json"}),b=URL.createObjectURL(_),S=document.createElement("a");S.href=b,S.download=o.formatMessage({id:"formBuilder.export.filename"}),S.click(),URL.revokeObjectURL(b),XC.success(o.formatMessage({id:"formBuilder.export.success"}))},g={accept:".json",showUploadList:!1,beforeUpload:y=>{const _=new FileReader;return _.onload=b=>{var S;try{const C=JSON.parse((S=b.target)==null?void 0:S.result);i(C),XC.success(o.formatMessage({id:"formBuilder.import.success"}))}catch{XC.error(o.formatMessage({id:"formBuilder.import.error"}))}},_.readAsText(y),!1}},v=()=>{const y=e.map(_=>({id:_.id,type:_.type,label:_.label||o.formatMessage({id:`component.${_.type}.title`}),options:_.options,required:_.required}));u(y),l(!0)};return M.jsxs("div",{children:[M.jsx(uQt,{onDragStart:f,onDragEnd:p,children:M.jsxs(_i,{children:[M.jsx(BQt,{style:d,children:M.jsxs("div",{className:"header-content",children:[M.jsx("h1",{children:M.jsx("span",{className:"title-text",style:{color:a?"#fff":"#000"},children:o.formatMessage({id:"formBuilder.title"})})}),M.jsxs("div",{className:"header-actions",children:[M.jsx(jp,{...g,children:M.jsx(On,{type:"primary",icon:M.jsx($_,{}),children:o.formatMessage({id:"formBuilder.header.import"})})}),M.jsx(On,{type:"primary",icon:M.jsx(lk,{}),onClick:h,children:o.formatMessage({id:"formBuilder.header.export"})}),M.jsx(On,{type:"primary",icon:M.jsx($x,{}),onClick:v,children:o.formatMessage({id:"formBuilder.header.preview"})})]})]})}),M.jsx(_i,{className:"main-layout",children:M.jsxs("div",{className:"main-content",children:[M.jsx("div",{className:"left-panel",children:M.jsx(LQt,{})}),M.jsx("div",{className:"center-panel",children:M.jsx(NQt,{})}),M.jsx("div",{className:"right-panel",children:M.jsx($Qt,{})})]})})]})}),M.jsx(cQt,{visible:s,onClose:()=>l(!1),formFields:c})]})},sue=(e,t,n)=>{e.dataTransfer.setData("application/reactflow",t),n&&e.dataTransfer.setData("form-type",n),e.dataTransfer.effectAllowed="move"},UQt=()=>{const e=mr(),{isDarkMode:t}=cc(),n=[{type:"start",title:e.formatMessage({id:"flow.startNode"}),icon:M.jsx(Uq,{})},{type:"parent",title:e.formatMessage({id:"flow.parentNode"}),icon:M.jsx(Pgt,{})}],r=[{type:"form",title:e.formatMessage({id:"flow.textField"}),icon:M.jsx(iIe,{}),formType:"text"},{type:"form",title:e.formatMessage({id:"flow.numberField"}),icon:M.jsx(Fvt,{}),formType:"digit"},{type:"form",title:e.formatMessage({id:"flow.datePicker"}),icon:M.jsx(ik,{}),formType:"date"},{type:"form",title:e.formatMessage({id:"flow.select"}),icon:M.jsx(sIe,{}),formType:"select"},{type:"form",title:e.formatMessage({id:"flow.checkbox"}),icon:M.jsx(A9,{}),formType:"checkbox"},{type:"form",title:e.formatMessage({id:"flow.radio"}),icon:M.jsx(A9,{}),formType:"radio"}],i=[{key:"1",label:e.formatMessage({id:"flow.container"}),children:n.map(o=>M.jsxs(Fs,{className:"draggable-item",draggable:!0,onDragStart:a=>sue(a,o.type),bordered:!1,style:{marginBottom:"5px",border:"1px solid",background:t?"#1f1f1f":"#fff",color:t?"#fff":void 0},children:[o.icon," ",o.title]},o.type))},{key:"2",label:e.formatMessage({id:"flow.form"}),children:r.map(o=>M.jsxs(Fs,{className:"draggable-item",draggable:!0,onDragStart:a=>sue(a,o.type,o.formType),bordered:!1,style:{marginBottom:"5px",border:"1px dashed",background:t?"#1f1f1f":"#fff",color:t?"#fff":void 0},children:[o.icon," ",o.title]},o.formType))},{key:"3",label:e.formatMessage({id:"flow.logic"}),children:M.jsx("div",{children:"TODO: logic"})},{key:"4",label:e.formatMessage({id:"flow.action"}),children:M.jsx("div",{children:"TODO: action"})}];return M.jsx("div",{className:"left-panel-container",children:M.jsx(Cwe,{defaultActiveKey:["1","2"],ghost:!0,items:i})})};function sa(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=sa(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var jQt={value:()=>{}};function jL(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new SN(n)}function SN(e){this._=e}function HQt(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}SN.prototype=jL.prototype={constructor:SN,on:function(e,t){var n=this._,r=HQt(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=zQt(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=lue(n[i],e.name,t);else if(t==null)for(i in n)n[i]=lue(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new SN(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function zQt(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function lue(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=jQt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var eV="http://www.w3.org/1999/xhtml";const cue={svg:"http://www.w3.org/2000/svg",xhtml:eV,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function HL(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),cue.hasOwnProperty(t)?{space:cue[t],local:e}:e}function VQt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===eV&&t.documentElement.namespaceURI===eV?t.createElement(e):t.createElementNS(n,e)}}function GQt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function z2e(e){var t=HL(e);return(t.local?GQt:VQt)(t)}function WQt(){}function VQ(e){return e==null?WQt:function(){return this.querySelector(e)}}function YQt(e){typeof e!="function"&&(e=VQ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=new Array(a),l,c,u=0;u<a;++u)(l=o[u])&&(c=e.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new oc(r,this._parents)}function qQt(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function KQt(){return[]}function V2e(e){return e==null?KQt:function(){return this.querySelectorAll(e)}}function QQt(e){return function(){return qQt(e.apply(this,arguments))}}function XQt(e){typeof e=="function"?e=QQt(e):e=V2e(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,l,c=0;c<s;++c)(l=a[c])&&(r.push(e.call(l,l.__data__,c,a)),i.push(l));return new oc(r,i)}function G2e(e){return function(){return this.matches(e)}}function W2e(e){return function(t){return t.matches(e)}}var ZQt=Array.prototype.find;function JQt(e){return function(){return ZQt.call(this.children,e)}}function eXt(){return this.firstElementChild}function tXt(e){return this.select(e==null?eXt:JQt(typeof e=="function"?e:W2e(e)))}var nXt=Array.prototype.filter;function rXt(){return Array.from(this.children)}function iXt(e){return function(){return nXt.call(this.children,e)}}function oXt(e){return this.selectAll(e==null?rXt:iXt(typeof e=="function"?e:W2e(e)))}function aXt(e){typeof e!="function"&&(e=G2e(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&s.push(l);return new oc(r,this._parents)}function Y2e(e){return new Array(e.length)}function sXt(){return new oc(this._enter||this._groups.map(Y2e),this._parents)}function dP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}dP.prototype={constructor:dP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function lXt(e){return function(){return e}}function cXt(e,t,n,r,i,o){for(var a=0,s,l=t.length,c=o.length;a<c;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new dP(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function uXt(e,t,n,r,i,o,a){var s,l,c=new Map,u=t.length,d=o.length,f=new Array(u),p;for(s=0;s<u;++s)(l=t[s])&&(f[s]=p=a.call(l,l.__data__,s,t)+"",c.has(p)?i[s]=l:c.set(p,l));for(s=0;s<d;++s)p=a.call(e,o[s],s,o)+"",(l=c.get(p))?(r[s]=l,l.__data__=o[s],c.delete(p)):n[s]=new dP(e,o[s]);for(s=0;s<u;++s)(l=t[s])&&c.get(f[s])===l&&(i[s]=l)}function dXt(e){return e.__data__}function fXt(e,t){if(!arguments.length)return Array.from(this,dXt);var n=t?uXt:cXt,r=this._parents,i=this._groups;typeof e!="function"&&(e=lXt(e));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],f=d.length,p=pXt(e.call(u,u&&u.__data__,c,r)),h=p.length,g=s[c]=new Array(h),v=a[c]=new Array(h),y=l[c]=new Array(f);n(u,d,g,v,y,p,t);for(var _=0,b=0,S,C;_<h;++_)if(S=g[_]){for(_>=b&&(b=_+1);!(C=v[b])&&++b<h;);S._next=C||null}}return a=new oc(a,r),a._enter=s,a._exit=l,a}function pXt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function mXt(){return new oc(this._exit||this._groups.map(Y2e),this._parents)}function hXt(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function gXt(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c=n[l],u=r[l],d=c.length,f=s[l]=new Array(d),p,h=0;h<d;++h)(p=c[h]||u[h])&&(f[h]=p);for(;l<i;++l)s[l]=n[l];return new oc(s,this._parents)}function vXt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function _Xt(e){e||(e=yXt);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,l=i[o]=new Array(s),c,u=0;u<s;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new oc(i,this._parents).order()}function yXt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bXt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function SXt(){return Array.from(this)}function EXt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function CXt(){let e=0;for(const t of this)++e;return e}function wXt(){return!this.node()}function xXt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&e.call(s,s.__data__,o,i);return this}function TXt(e){return function(){this.removeAttribute(e)}}function RXt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function OXt(e,t){return function(){this.setAttribute(e,t)}}function IXt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function NXt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function MXt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function AXt(e,t){var n=HL(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?RXt:TXt:typeof t=="function"?n.local?MXt:NXt:n.local?IXt:OXt)(n,t))}function q2e(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function PXt(e){return function(){this.style.removeProperty(e)}}function DXt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function kXt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function LXt(e,t,n){return arguments.length>1?this.each((t==null?PXt:typeof t=="function"?kXt:DXt)(e,t,n??"")):T0(this.node(),e)}function T0(e,t){return e.style.getPropertyValue(t)||q2e(e).getComputedStyle(e,null).getPropertyValue(t)}function $Xt(e){return function(){delete this[e]}}function FXt(e,t){return function(){this[e]=t}}function BXt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function UXt(e,t){return arguments.length>1?this.each((t==null?$Xt:typeof t=="function"?BXt:FXt)(e,t)):this.node()[e]}function K2e(e){return e.trim().split(/^|\s+/)}function GQ(e){return e.classList||new Q2e(e)}function Q2e(e){this._node=e,this._names=K2e(e.getAttribute("class")||"")}Q2e.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function X2e(e,t){for(var n=GQ(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Z2e(e,t){for(var n=GQ(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function jXt(e){return function(){X2e(this,e)}}function HXt(e){return function(){Z2e(this,e)}}function zXt(e,t){return function(){(t.apply(this,arguments)?X2e:Z2e)(this,e)}}function VXt(e,t){var n=K2e(e+"");if(arguments.length<2){for(var r=GQ(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?zXt:t?jXt:HXt)(n,t))}function GXt(){this.textContent=""}function WXt(e){return function(){this.textContent=e}}function YXt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function qXt(e){return arguments.length?this.each(e==null?GXt:(typeof e=="function"?YXt:WXt)(e)):this.node().textContent}function KXt(){this.innerHTML=""}function QXt(e){return function(){this.innerHTML=e}}function XXt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ZXt(e){return arguments.length?this.each(e==null?KXt:(typeof e=="function"?XXt:QXt)(e)):this.node().innerHTML}function JXt(){this.nextSibling&&this.parentNode.appendChild(this)}function eZt(){return this.each(JXt)}function tZt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nZt(){return this.each(tZt)}function rZt(e){var t=typeof e=="function"?e:z2e(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function iZt(){return null}function oZt(e,t){var n=typeof e=="function"?e:z2e(e),r=t==null?iZt:typeof t=="function"?t:VQ(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function aZt(){var e=this.parentNode;e&&e.removeChild(this)}function sZt(){return this.each(aZt)}function lZt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function cZt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function uZt(e){return this.select(e?cZt:lZt)}function dZt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function fZt(e){return function(t){e.call(this,t,this.__data__)}}function pZt(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function mZt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function hZt(e,t,n){return function(){var r=this.__on,i,o=fZt(t);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function gZt(e,t,n){var r=pZt(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(i=0,u=s[l];i<o;++i)if((a=r[i]).type===u.type&&a.name===u.name)return u.value}return}for(s=t?hZt:mZt,i=0;i<o;++i)this.each(s(r[i],t,n));return this}function J2e(e,t,n){var r=q2e(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function vZt(e,t){return function(){return J2e(this,e,t)}}function _Zt(e,t){return function(){return J2e(this,e,t.apply(this,arguments))}}function yZt(e,t){return this.each((typeof t=="function"?_Zt:vZt)(e,t))}function*bZt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var eDe=[null];function oc(e,t){this._groups=e,this._parents=t}function ST(){return new oc([[document.documentElement]],eDe)}function SZt(){return this}oc.prototype=ST.prototype={constructor:oc,select:YQt,selectAll:XQt,selectChild:tXt,selectChildren:oXt,filter:aXt,data:fXt,enter:sXt,exit:mXt,join:hXt,merge:gXt,selection:SZt,order:vXt,sort:_Xt,call:bXt,nodes:SXt,node:EXt,size:CXt,empty:wXt,each:xXt,attr:AXt,style:LXt,property:UXt,classed:VXt,text:qXt,html:ZXt,raise:eZt,lower:nZt,append:rZt,insert:oZt,remove:sZt,clone:uZt,datum:dZt,on:gZt,dispatch:yZt,[Symbol.iterator]:bZt};function Gl(e){return typeof e=="string"?new oc([[document.querySelector(e)]],[document.documentElement]):new oc([[e]],eDe)}function EZt(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Mu(e,t){if(e=EZt(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const CZt={passive:!1},xw={capture:!0,passive:!1};function pB(e){e.stopImmediatePropagation()}function Ob(e){e.preventDefault(),e.stopImmediatePropagation()}function tDe(e){var t=e.document.documentElement,n=Gl(e).on("dragstart.drag",Ob,xw);"onselectstart"in t?n.on("selectstart.drag",Ob,xw):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function nDe(e,t){var n=e.document.documentElement,r=Gl(e).on("dragstart.drag",null);t&&(r.on("click.drag",Ob,xw),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const MO=e=>()=>e;function tV(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}tV.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function wZt(e){return!e.ctrlKey&&!e.button}function xZt(){return this.parentNode}function TZt(e,t){return t??{x:e.x,y:e.y}}function RZt(){return navigator.maxTouchPoints||"ontouchstart"in this}function rDe(){var e=wZt,t=xZt,n=TZt,r=RZt,i={},o=jL("start","drag","end"),a=0,s,l,c,u,d=0;function f(S){S.on("mousedown.drag",p).filter(r).on("touchstart.drag",v).on("touchmove.drag",y,CZt).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(S,C){if(!(u||!e.call(this,S,C))){var E=b(this,t.call(this,S,C),S,C,"mouse");E&&(Gl(S.view).on("mousemove.drag",h,xw).on("mouseup.drag",g,xw),tDe(S.view),pB(S),c=!1,s=S.clientX,l=S.clientY,E("start",S))}}function h(S){if(Ob(S),!c){var C=S.clientX-s,E=S.clientY-l;c=C*C+E*E>d}i.mouse("drag",S)}function g(S){Gl(S.view).on("mousemove.drag mouseup.drag",null),nDe(S.view,c),Ob(S),i.mouse("end",S)}function v(S,C){if(e.call(this,S,C)){var E=S.changedTouches,w=t.call(this,S,C),x=E.length,T,R;for(T=0;T<x;++T)(R=b(this,w,S,C,E[T].identifier,E[T]))&&(pB(S),R("start",S,E[T]))}}function y(S){var C=S.changedTouches,E=C.length,w,x;for(w=0;w<E;++w)(x=i[C[w].identifier])&&(Ob(S),x("drag",S,C[w]))}function _(S){var C=S.changedTouches,E=C.length,w,x;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),w=0;w<E;++w)(x=i[C[w].identifier])&&(pB(S),x("end",S,C[w]))}function b(S,C,E,w,x,T){var R=o.copy(),N=Mu(T||E,C),I,P,D;if((D=n.call(S,new tV("beforestart",{sourceEvent:E,target:f,identifier:x,active:a,x:N[0],y:N[1],dx:0,dy:0,dispatch:R}),w))!=null)return I=D.x-N[0]||0,P=D.y-N[1]||0,function F(L,B,U){var G=N,V;switch(L){case"start":i[x]=F,V=a++;break;case"end":delete i[x],--a;case"drag":N=Mu(U||B,C),V=a;break}R.call(L,S,new tV(L,{sourceEvent:B,subject:D,target:f,identifier:x,active:V,x:N[0]+I,y:N[1]+P,dx:N[0]-G[0],dy:N[1]-G[1],dispatch:R}),w)}}return f.filter=function(S){return arguments.length?(e=typeof S=="function"?S:MO(!!S),f):e},f.container=function(S){return arguments.length?(t=typeof S=="function"?S:MO(S),f):t},f.subject=function(S){return arguments.length?(n=typeof S=="function"?S:MO(S),f):n},f.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:MO(!!S),f):r},f.on=function(){var S=o.on.apply(o,arguments);return S===o?f:S},f.clickDistance=function(S){return arguments.length?(d=(S=+S)*S,f):Math.sqrt(d)},f}function WQ(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iDe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ET(){}var Tw=.7,fP=1/Tw,Ib="\\s*([+-]?\\d+)\\s*",Rw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OZt=/^#([0-9a-f]{3,8})$/,IZt=new RegExp(`^rgb\\(${Ib},${Ib},${Ib}\\)$`),NZt=new RegExp(`^rgb\\(${Zd},${Zd},${Zd}\\)$`),MZt=new RegExp(`^rgba\\(${Ib},${Ib},${Ib},${Rw}\\)$`),AZt=new RegExp(`^rgba\\(${Zd},${Zd},${Zd},${Rw}\\)$`),PZt=new RegExp(`^hsl\\(${Rw},${Zd},${Zd}\\)$`),DZt=new RegExp(`^hsla\\(${Rw},${Zd},${Zd},${Rw}\\)$`),uue={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};WQ(ET,Ow,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:due,formatHex:due,formatHex8:kZt,formatHsl:LZt,formatRgb:fue,toString:fue});function due(){return this.rgb().formatHex()}function kZt(){return this.rgb().formatHex8()}function LZt(){return oDe(this).formatHsl()}function fue(){return this.rgb().formatRgb()}function Ow(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OZt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?pue(t):n===3?new cl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?AO(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?AO(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=IZt.exec(e))?new cl(t[1],t[2],t[3],1):(t=NZt.exec(e))?new cl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=MZt.exec(e))?AO(t[1],t[2],t[3],t[4]):(t=AZt.exec(e))?AO(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=PZt.exec(e))?gue(t[1],t[2]/100,t[3]/100,1):(t=DZt.exec(e))?gue(t[1],t[2]/100,t[3]/100,t[4]):uue.hasOwnProperty(e)?pue(uue[e]):e==="transparent"?new cl(NaN,NaN,NaN,0):null}function pue(e){return new cl(e>>16&255,e>>8&255,e&255,1)}function AO(e,t,n,r){return r<=0&&(e=t=n=NaN),new cl(e,t,n,r)}function $Zt(e){return e instanceof ET||(e=Ow(e)),e?(e=e.rgb(),new cl(e.r,e.g,e.b,e.opacity)):new cl}function nV(e,t,n,r){return arguments.length===1?$Zt(e):new cl(e,t,n,r??1)}function cl(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}WQ(cl,nV,iDe(ET,{brighter(e){return e=e==null?fP:Math.pow(fP,e),new cl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tw:Math.pow(Tw,e),new cl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cl(Mv(this.r),Mv(this.g),Mv(this.b),pP(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mue,formatHex:mue,formatHex8:FZt,formatRgb:hue,toString:hue}));function mue(){return`#${lv(this.r)}${lv(this.g)}${lv(this.b)}`}function FZt(){return`#${lv(this.r)}${lv(this.g)}${lv(this.b)}${lv((isNaN(this.opacity)?1:this.opacity)*255)}`}function hue(){const e=pP(this.opacity);return`${e===1?"rgb(":"rgba("}${Mv(this.r)}, ${Mv(this.g)}, ${Mv(this.b)}${e===1?")":`, ${e})`}`}function pP(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lv(e){return e=Mv(e),(e<16?"0":"")+e.toString(16)}function gue(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ku(e,t,n,r)}function oDe(e){if(e instanceof ku)return new ku(e.h,e.s,e.l,e.opacity);if(e instanceof ET||(e=Ow(e)),!e)return new ku;if(e instanceof ku)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ku(a,s,l,e.opacity)}function BZt(e,t,n,r){return arguments.length===1?oDe(e):new ku(e,t,n,r??1)}function ku(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}WQ(ku,BZt,iDe(ET,{brighter(e){return e=e==null?fP:Math.pow(fP,e),new ku(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tw:Math.pow(Tw,e),new ku(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new cl(mB(e>=240?e-240:e+120,i,r),mB(e,i,r),mB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ku(vue(this.h),PO(this.s),PO(this.l),pP(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pP(this.opacity);return`${e===1?"hsl(":"hsla("}${vue(this.h)}, ${PO(this.s)*100}%, ${PO(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vue(e){return e=(e||0)%360,e<0?e+360:e}function PO(e){return Math.max(0,Math.min(1,e||0))}function mB(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const aDe=e=>()=>e;function UZt(e,t){return function(n){return e+n*t}}function jZt(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function HZt(e){return(e=+e)==1?sDe:function(t,n){return n-t?jZt(t,n,e):aDe(isNaN(t)?n:t)}}function sDe(e,t){var n=t-e;return n?UZt(e,n):aDe(isNaN(e)?t:e)}const _ue=function e(t){var n=HZt(t);function r(i,o){var a=n((i=nV(i)).r,(o=nV(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=sDe(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Pm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var rV=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hB=new RegExp(rV.source,"g");function zZt(e){return function(){return e}}function VZt(e){return function(t){return e(t)+""}}function GZt(e,t){var n=rV.lastIndex=hB.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=rV.exec(e))&&(i=hB.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Pm(r,i)})),n=hB.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?VZt(l[0].x):zZt(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}var yue=180/Math.PI,iV={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lDe(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*yue,skewX:Math.atan(l)*yue,scaleX:a,scaleY:s}}var DO;function WZt(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?iV:lDe(t.a,t.b,t.c,t.d,t.e,t.f)}function YZt(e){return e==null||(DO||(DO=document.createElementNS("http://www.w3.org/2000/svg","g")),DO.setAttribute("transform",e),!(e=DO.transform.baseVal.consolidate()))?iV:(e=e.matrix,lDe(e.a,e.b,e.c,e.d,e.e,e.f))}function cDe(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,u,d,f,p,h){if(c!==d||u!==f){var g=p.push("translate(",null,t,null,n);h.push({i:g-4,x:Pm(c,d)},{i:g-2,x:Pm(u,f)})}else(d||f)&&p.push("translate("+d+t+f+n)}function a(c,u,d,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Pm(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function s(c,u,d,f){c!==u?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Pm(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,f,p,h){if(c!==d||u!==f){var g=p.push(i(p)+"scale(",null,",",null,")");h.push({i:g-4,x:Pm(c,d)},{i:g-2,x:Pm(u,f)})}else(d!==1||f!==1)&&p.push(i(p)+"scale("+d+","+f+")")}return function(c,u){var d=[],f=[];return c=e(c),u=e(u),o(c.translateX,c.translateY,u.translateX,u.translateY,d,f),a(c.rotate,u.rotate,d,f),s(c.skewX,u.skewX,d,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,f),c=u=null,function(p){for(var h=-1,g=f.length,v;++h<g;)d[(v=f[h]).i]=v.x(p);return d.join("")}}}var qZt=cDe(WZt,"px, ","px)","deg)"),KZt=cDe(YZt,", ",")",")"),QZt=1e-12;function bue(e){return((e=Math.exp(e))+1/e)/2}function XZt(e){return((e=Math.exp(e))-1/e)/2}function ZZt(e){return((e=Math.exp(2*e))-1)/(e+1)}const JZt=function e(t,n,r){function i(o,a){var s=o[0],l=o[1],c=o[2],u=a[0],d=a[1],f=a[2],p=u-s,h=d-l,g=p*p+h*h,v,y;if(g<QZt)y=Math.log(f/c)/t,v=function(w){return[s+w*p,l+w*h,c*Math.exp(t*w*y)]};else{var _=Math.sqrt(g),b=(f*f-c*c+r*g)/(2*c*n*_),S=(f*f-c*c-r*g)/(2*f*n*_),C=Math.log(Math.sqrt(b*b+1)-b),E=Math.log(Math.sqrt(S*S+1)-S);y=(E-C)/t,v=function(w){var x=w*y,T=bue(C),R=c/(n*_)*(T*ZZt(t*x+C)-XZt(C));return[s+R*p,l+R*h,c*T/bue(t*x+C)]}}return v.duration=y*1e3*t/Math.SQRT2,v}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,l=s*s;return e(a,s,l)},i}(Math.SQRT2,2,4);var R0=0,wC=0,UE=0,uDe=1e3,mP,xC,hP=0,c_=0,zL=0,Iw=typeof performance=="object"&&performance.now?performance:Date,dDe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function YQ(){return c_||(dDe(eJt),c_=Iw.now()+zL)}function eJt(){c_=0}function gP(){this._call=this._time=this._next=null}gP.prototype=fDe.prototype={constructor:gP,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?YQ():+n)+(t==null?0:+t),!this._next&&xC!==this&&(xC?xC._next=this:mP=this,xC=this),this._call=e,this._time=n,oV()},stop:function(){this._call&&(this._call=null,this._time=1/0,oV())}};function fDe(e,t,n){var r=new gP;return r.restart(e,t,n),r}function tJt(){YQ(),++R0;for(var e=mP,t;e;)(t=c_-e._time)>=0&&e._call.call(void 0,t),e=e._next;--R0}function Sue(){c_=(hP=Iw.now())+zL,R0=wC=0;try{tJt()}finally{R0=0,rJt(),c_=0}}function nJt(){var e=Iw.now(),t=e-hP;t>uDe&&(zL-=t,hP=e)}function rJt(){for(var e,t=mP,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:mP=n);xC=e,oV(r)}function oV(e){if(!R0){wC&&(wC=clearTimeout(wC));var t=e-c_;t>24?(e<1/0&&(wC=setTimeout(Sue,e-Iw.now()-zL)),UE&&(UE=clearInterval(UE))):(UE||(hP=Iw.now(),UE=setInterval(nJt,uDe)),R0=1,dDe(Sue))}}function Eue(e,t,n){var r=new gP;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var iJt=jL("start","end","cancel","interrupt"),oJt=[],pDe=0,Cue=1,aV=2,EN=3,wue=4,sV=5,CN=6;function VL(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;aJt(e,n,{name:t,index:r,group:i,on:iJt,tween:oJt,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:pDe})}function qQ(e,t){var n=yd(e,t);if(n.state>pDe)throw new Error("too late; already scheduled");return n}function _f(e,t){var n=yd(e,t);if(n.state>EN)throw new Error("too late; already running");return n}function yd(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function aJt(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=fDe(o,0,n.time);function o(c){n.state=Cue,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,f,p;if(n.state!==Cue)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===EN)return Eue(a);p.state===wue?(p.state=CN,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=CN,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[u])}if(Eue(function(){n.state===EN&&(n.state=wue,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=aV,n.on.call("start",e,e.__data__,n.index,n.group),n.state===aV){for(n.state=EN,i=new Array(f=n.tween.length),u=0,d=-1;u<f;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function s(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=sV,1),d=-1,f=i.length;++d<f;)i[d].call(e,u);n.state===sV&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=CN,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function wN(e,t){var n=e.__transition,r,i,o=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>aV&&r.state<sV,r.state=CN,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function sJt(e){return this.each(function(){wN(this,e)})}function lJt(e,t){var n,r;return function(){var i=_f(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function cJt(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=_f(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function uJt(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=yd(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?lJt:cJt)(n,e,t))}function KQ(e,t,n){var r=e._id;return e.each(function(){var i=_f(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return yd(i,r).value[t]}}function mDe(e,t){var n;return(typeof t=="number"?Pm:t instanceof Ow?_ue:(n=Ow(t))?(t=n,_ue):GZt)(e,t)}function dJt(e){return function(){this.removeAttribute(e)}}function fJt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pJt(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function mJt(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function hJt(e,t,n){var r,i,o;return function(){var a,s=n(this),l;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=s+"",a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s)))}}function gJt(e,t,n){var r,i,o;return function(){var a,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=s+"",a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s)))}}function vJt(e,t){var n=HL(e),r=n==="transform"?KZt:mDe;return this.attrTween(e,typeof t=="function"?(n.local?gJt:hJt)(n,r,KQ(this,"attr."+e,t)):t==null?(n.local?fJt:dJt)(n):(n.local?mJt:pJt)(n,r,t))}function _Jt(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function yJt(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function bJt(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&yJt(e,o)),n}return i._value=t,i}function SJt(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&_Jt(e,o)),n}return i._value=t,i}function EJt(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=HL(e);return this.tween(n,(r.local?bJt:SJt)(r,t))}function CJt(e,t){return function(){qQ(this,e).delay=+t.apply(this,arguments)}}function wJt(e,t){return t=+t,function(){qQ(this,e).delay=t}}function xJt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?CJt:wJt)(t,e)):yd(this.node(),t).delay}function TJt(e,t){return function(){_f(this,e).duration=+t.apply(this,arguments)}}function RJt(e,t){return t=+t,function(){_f(this,e).duration=t}}function OJt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?TJt:RJt)(t,e)):yd(this.node(),t).duration}function IJt(e,t){if(typeof t!="function")throw new Error;return function(){_f(this,e).ease=t}}function NJt(e){var t=this._id;return arguments.length?this.each(IJt(t,e)):yd(this.node(),t).ease}function MJt(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;_f(this,e).ease=n}}function AJt(e){if(typeof e!="function")throw new Error;return this.each(MJt(this._id,e))}function PJt(e){typeof e!="function"&&(e=G2e(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&s.push(l);return new Tp(r,this._parents,this._name,this._id)}function DJt(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l=t[s],c=n[s],u=l.length,d=a[s]=new Array(u),f,p=0;p<u;++p)(f=l[p]||c[p])&&(d[p]=f);for(;s<r;++s)a[s]=t[s];return new Tp(a,this._parents,this._name,this._id)}function kJt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function LJt(e,t,n){var r,i,o=kJt(t)?qQ:_f;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function $Jt(e,t){var n=this._id;return arguments.length<2?yd(this.node(),n).on.on(e):this.each(LJt(n,e,t))}function FJt(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function BJt(){return this.on("end.remove",FJt(this._id))}function UJt(e){var t=this._name,n=this._id;typeof e!="function"&&(e=VQ(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],l=s.length,c=o[a]=new Array(l),u,d,f=0;f<l;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&("__data__"in u&&(d.__data__=u.__data__),c[f]=d,VL(c[f],t,n,f,c,yd(u,n)));return new Tp(o,this._parents,t,n)}function jJt(e){var t=this._name,n=this._id;typeof e!="function"&&(e=V2e(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l=r[s],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var f=e.call(u,u.__data__,d,l),p,h=yd(u,n),g=0,v=f.length;g<v;++g)(p=f[g])&&VL(p,t,n,g,f,h);o.push(f),a.push(u)}return new Tp(o,a,t,n)}var HJt=ST.prototype.constructor;function zJt(){return new HJt(this._groups,this._parents)}function VJt(e,t){var n,r,i;return function(){var o=T0(this,e),a=(this.style.removeProperty(e),T0(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function hDe(e){return function(){this.style.removeProperty(e)}}function GJt(e,t,n){var r,i=n+"",o;return function(){var a=T0(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function WJt(e,t,n){var r,i,o;return function(){var a=T0(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),T0(this,e))),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function YJt(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var l=_f(this,e),c=l.on,u=l.value[o]==null?s||(s=hDe(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(a,i=u),l.on=r}}function qJt(e,t,n){var r=(e+="")=="transform"?qZt:mDe;return t==null?this.styleTween(e,VJt(e,r)).on("end.style."+e,hDe(e)):typeof t=="function"?this.styleTween(e,WJt(e,r,KQ(this,"style."+e,t))).each(YJt(this._id,e)):this.styleTween(e,GJt(e,r,t),n).on("end.style."+e,null)}function KJt(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function QJt(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&KJt(e,a,n)),r}return o._value=t,o}function XJt(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,QJt(e,t,n??""))}function ZJt(e){return function(){this.textContent=e}}function JJt(e){return function(){var t=e(this);this.textContent=t??""}}function een(e){return this.tween("text",typeof e=="function"?JJt(KQ(this,"text",e)):ZJt(e==null?"":e+""))}function ten(e){return function(t){this.textContent=e.call(this,t)}}function nen(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&ten(i)),t}return r._value=e,r}function ren(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,nen(e))}function ien(){for(var e=this._name,t=this._id,n=gDe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,l,c=0;c<s;++c)if(l=a[c]){var u=yd(l,t);VL(l,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Tp(r,this._parents,e,n)}function oen(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){--i===0&&o()}};n.each(function(){var c=_f(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),i===0&&o()})}var aen=0;function Tp(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function gDe(){return++aen}var Af=ST.prototype;Tp.prototype={constructor:Tp,select:UJt,selectAll:jJt,selectChild:Af.selectChild,selectChildren:Af.selectChildren,filter:PJt,merge:DJt,selection:zJt,transition:ien,call:Af.call,nodes:Af.nodes,node:Af.node,size:Af.size,empty:Af.empty,each:Af.each,on:$Jt,attr:vJt,attrTween:EJt,style:qJt,styleTween:XJt,text:een,textTween:ren,remove:BJt,tween:uJt,delay:xJt,duration:OJt,ease:NJt,easeVarying:AJt,end:oen,[Symbol.iterator]:Af[Symbol.iterator]};function sen(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var len={time:null,delay:0,duration:250,ease:sen};function cen(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function uen(e){var t,n;e instanceof Tp?(t=e._id,e=e._name):(t=gDe(),(n=len).time=YQ(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,l,c=0;c<s;++c)(l=a[c])&&VL(l,e,t,c,a,n||cen(l,t));return new Tp(r,this._parents,e,t)}ST.prototype.interrupt=sJt;ST.prototype.transition=uen;const kO=e=>()=>e;function den(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Jf(e,t,n){this.k=e,this.x=t,this.y=n}Jf.prototype={constructor:Jf,scale:function(e){return e===1?this:new Jf(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Jf(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var GL=new Jf(1,0,0);vDe.prototype=Jf.prototype;function vDe(e){for(;!e.__zoom;)if(!(e=e.parentNode))return GL;return e.__zoom}function gB(e){e.stopImmediatePropagation()}function jE(e){e.preventDefault(),e.stopImmediatePropagation()}function fen(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function pen(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function xue(){return this.__zoom||GL}function men(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function hen(){return navigator.maxTouchPoints||"ontouchstart"in this}function gen(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function _De(){var e=fen,t=pen,n=gen,r=men,i=hen,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=JZt,c=jL("start","zoom","end"),u,d,f,p=500,h=150,g=0,v=10;function y(D){D.property("__zoom",xue).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",R).filter(i).on("touchstart.zoom",N).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(D,F,L,B){var U=D.selection?D.selection():D;U.property("__zoom",xue),D!==U?C(D,F,L,B):U.interrupt().each(function(){E(this,arguments).event(B).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},y.scaleBy=function(D,F,L,B){y.scaleTo(D,function(){var U=this.__zoom.k,G=typeof F=="function"?F.apply(this,arguments):F;return U*G},L,B)},y.scaleTo=function(D,F,L,B){y.transform(D,function(){var U=t.apply(this,arguments),G=this.__zoom,V=L==null?S(U):typeof L=="function"?L.apply(this,arguments):L,W=G.invert(V),$=typeof F=="function"?F.apply(this,arguments):F;return n(b(_(G,$),V,W),U,a)},L,B)},y.translateBy=function(D,F,L,B){y.transform(D,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof L=="function"?L.apply(this,arguments):L),t.apply(this,arguments),a)},null,B)},y.translateTo=function(D,F,L,B,U){y.transform(D,function(){var G=t.apply(this,arguments),V=this.__zoom,W=B==null?S(G):typeof B=="function"?B.apply(this,arguments):B;return n(GL.translate(W[0],W[1]).scale(V.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof L=="function"?-L.apply(this,arguments):-L),G,a)},B,U)};function _(D,F){return F=Math.max(o[0],Math.min(o[1],F)),F===D.k?D:new Jf(F,D.x,D.y)}function b(D,F,L){var B=F[0]-L[0]*D.k,U=F[1]-L[1]*D.k;return B===D.x&&U===D.y?D:new Jf(D.k,B,U)}function S(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function C(D,F,L,B){D.on("start.zoom",function(){E(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(B).end()}).tween("zoom",function(){var U=this,G=arguments,V=E(U,G).event(B),W=t.apply(U,G),$=L==null?S(W):typeof L=="function"?L.apply(U,G):L,H=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),K=U.__zoom,re=typeof F=="function"?F.apply(U,G):F,Q=l(K.invert($).concat(H/K.k),re.invert($).concat(H/re.k));return function(A){if(A===1)A=re;else{var k=Q(A),Z=H/k[2];A=new Jf(Z,$[0]-k[0]*Z,$[1]-k[1]*Z)}V.zoom(null,A)}})}function E(D,F,L){return!L&&D.__zooming||new w(D,F)}function w(D,F){this.that=D,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(D,F),this.taps=0}w.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,F){return this.mouse&&D!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var F=Gl(this.that).datum();c.call(D,this.that,new den(D,{sourceEvent:this.sourceEvent,target:y,type:D,transform:this.that.__zoom,dispatch:c}),F)}};function x(D,...F){if(!e.apply(this,arguments))return;var L=E(this,F).event(D),B=this.__zoom,U=Math.max(o[0],Math.min(o[1],B.k*Math.pow(2,r.apply(this,arguments)))),G=Mu(D);if(L.wheel)(L.mouse[0][0]!==G[0]||L.mouse[0][1]!==G[1])&&(L.mouse[1]=B.invert(L.mouse[0]=G)),clearTimeout(L.wheel);else{if(B.k===U)return;L.mouse=[G,B.invert(G)],wN(this),L.start()}jE(D),L.wheel=setTimeout(V,h),L.zoom("mouse",n(b(_(B,U),L.mouse[0],L.mouse[1]),L.extent,a));function V(){L.wheel=null,L.end()}}function T(D,...F){if(f||!e.apply(this,arguments))return;var L=D.currentTarget,B=E(this,F,!0).event(D),U=Gl(D.view).on("mousemove.zoom",$,!0).on("mouseup.zoom",H,!0),G=Mu(D,L),V=D.clientX,W=D.clientY;tDe(D.view),gB(D),B.mouse=[G,this.__zoom.invert(G)],wN(this),B.start();function $(K){if(jE(K),!B.moved){var re=K.clientX-V,Q=K.clientY-W;B.moved=re*re+Q*Q>g}B.event(K).zoom("mouse",n(b(B.that.__zoom,B.mouse[0]=Mu(K,L),B.mouse[1]),B.extent,a))}function H(K){U.on("mousemove.zoom mouseup.zoom",null),nDe(K.view,B.moved),jE(K),B.event(K).end()}}function R(D,...F){if(e.apply(this,arguments)){var L=this.__zoom,B=Mu(D.changedTouches?D.changedTouches[0]:D,this),U=L.invert(B),G=L.k*(D.shiftKey?.5:2),V=n(b(_(L,G),B,U),t.apply(this,F),a);jE(D),s>0?Gl(this).transition().duration(s).call(C,V,B,D):Gl(this).call(y.transform,V,B,D)}}function N(D,...F){if(e.apply(this,arguments)){var L=D.touches,B=L.length,U=E(this,F,D.changedTouches.length===B).event(D),G,V,W,$;for(gB(D),V=0;V<B;++V)W=L[V],$=Mu(W,this),$=[$,this.__zoom.invert($),W.identifier],U.touch0?!U.touch1&&U.touch0[2]!==$[2]&&(U.touch1=$,U.taps=0):(U.touch0=$,G=!0,U.taps=1+!!u);u&&(u=clearTimeout(u)),G&&(U.taps<2&&(d=$[0],u=setTimeout(function(){u=null},p)),wN(this),U.start())}}function I(D,...F){if(this.__zooming){var L=E(this,F).event(D),B=D.changedTouches,U=B.length,G,V,W,$;for(jE(D),G=0;G<U;++G)V=B[G],W=Mu(V,this),L.touch0&&L.touch0[2]===V.identifier?L.touch0[0]=W:L.touch1&&L.touch1[2]===V.identifier&&(L.touch1[0]=W);if(V=L.that.__zoom,L.touch1){var H=L.touch0[0],K=L.touch0[1],re=L.touch1[0],Q=L.touch1[1],A=(A=re[0]-H[0])*A+(A=re[1]-H[1])*A,k=(k=Q[0]-K[0])*k+(k=Q[1]-K[1])*k;V=_(V,Math.sqrt(A/k)),W=[(H[0]+re[0])/2,(H[1]+re[1])/2],$=[(K[0]+Q[0])/2,(K[1]+Q[1])/2]}else if(L.touch0)W=L.touch0[0],$=L.touch0[1];else return;L.zoom("touch",n(b(V,W,$),L.extent,a))}}function P(D,...F){if(this.__zooming){var L=E(this,F).event(D),B=D.changedTouches,U=B.length,G,V;for(gB(D),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),G=0;G<U;++G)V=B[G],L.touch0&&L.touch0[2]===V.identifier?delete L.touch0:L.touch1&&L.touch1[2]===V.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(V=Mu(V,this),Math.hypot(d[0]-V[0],d[1]-V[1])<v)){var W=Gl(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return y.wheelDelta=function(D){return arguments.length?(r=typeof D=="function"?D:kO(+D),y):r},y.filter=function(D){return arguments.length?(e=typeof D=="function"?D:kO(!!D),y):e},y.touchable=function(D){return arguments.length?(i=typeof D=="function"?D:kO(!!D),y):i},y.extent=function(D){return arguments.length?(t=typeof D=="function"?D:kO([[+D[0][0],+D[0][1]],[+D[1][0],+D[1][1]]]),y):t},y.scaleExtent=function(D){return arguments.length?(o[0]=+D[0],o[1]=+D[1],y):[o[0],o[1]]},y.translateExtent=function(D){return arguments.length?(a[0][0]=+D[0][0],a[1][0]=+D[1][0],a[0][1]=+D[0][1],a[1][1]=+D[1][1],y):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},y.constrain=function(D){return arguments.length?(n=D,y):n},y.duration=function(D){return arguments.length?(s=+D,y):s},y.interpolate=function(D){return arguments.length?(l=D,y):l},y.on=function(){var D=c.on.apply(c,arguments);return D===c?y:D},y.clickDistance=function(D){return arguments.length?(g=(D=+D)*D,y):Math.sqrt(g)},y.tapDistance=function(D){return arguments.length?(v=+D,y):v},y}const Wp={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`},Nw=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],yDe=["Enter"," ","Escape"];var O0;(function(e){e.Strict="strict",e.Loose="loose"})(O0||(O0={}));var Av;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Av||(Av={}));var Mw;(function(e){e.Partial="partial",e.Full="full"})(Mw||(Mw={}));const bDe={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var Fm;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Fm||(Fm={}));var vP;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(vP||(vP={}));var Qn;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Qn||(Qn={}));const Tue={[Qn.Left]:Qn.Right,[Qn.Right]:Qn.Left,[Qn.Top]:Qn.Bottom,[Qn.Bottom]:Qn.Top};function SDe(e){return e===null?null:e?"valid":"invalid"}const EDe=e=>"id"in e&&"source"in e&&"target"in e,ven=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),QQ=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),CT=(e,t=[0,0])=>{const{width:n,height:r}=Yp(e),i=e.origin??t,o=n*i[0],a=r*i[1];return{x:e.position.x-o,y:e.position.y-a}},_en=(e,t={nodeOrigin:[0,0],nodeLookup:void 0})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,i)=>{const o=typeof i=="string";let a=!t.nodeLookup&&!o?i:void 0;t.nodeLookup&&(a=o?t.nodeLookup.get(i):QQ(i)?i:t.nodeLookup.get(i.id));const s=a?_P(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return WL(r,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return YL(n)},wT=(e,t={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(r=>{if(t.filter===void 0||t.filter(r)){const i=_P(r);n=WL(n,i)}}),YL(n)},CDe=(e,t,[n,r,i]=[0,0,1],o=!1,a=!1)=>{const s={...xT(t,[n,r,i]),width:t.width/i,height:t.height/i},l=[];for(const c of e.values()){const{measured:u,selectable:d=!0,hidden:f=!1}=c;if(a&&!d||f)continue;const p=u.width??c.width??c.initialWidth??null,h=u.height??c.height??c.initialHeight??null,g=Aw(s,N0(c)),v=(p??0)*(h??0),y=o&&g>0;(!c.internals.handleBounds||y||g>=v||c.dragging)&&l.push(c)}return l},yen=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function lV(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(i=>i.id)):null;return e.forEach(i=>{i.measured.width&&i.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}async function cV({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:o},a){if(e.size===0)return Promise.resolve(!1);const s=wT(e),l=XQ(s,t,n,(a==null?void 0:a.minZoom)??i,(a==null?void 0:a.maxZoom)??o,(a==null?void 0:a.padding)??.1);return await r.setViewport(l,{duration:a==null?void 0:a.duration}),Promise.resolve(!0)}function wDe({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){const a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:l,y:c}=s?s.internals.positionAbsolute:{x:0,y:0},u=a.origin??r;let d=i;if(a.extent==="parent"&&!a.expandParent)if(!s)o==null||o("005",Wp.error005());else{const p=s.measured.width,h=s.measured.height;p&&h&&(d=[[l,c],[l+p,c+h]])}else s&&M0(a.extent)&&(d=[[a.extent[0][0]+l,a.extent[0][1]+c],[a.extent[1][0]+l,a.extent[1][1]+c]]);const f=M0(d)?u_(t,d,a.measured):t;return{position:{x:f.x-l+a.measured.width*u[0],y:f.y-c+a.measured.height*u[1]},positionAbsolute:f}}async function ben({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){const o=new Set(e.map(f=>f.id)),a=[];for(const f of n){if(f.deletable===!1)continue;const p=o.has(f.id),h=!p&&f.parentId&&a.find(g=>g.id===f.parentId);(p||h)&&a.push(f)}const s=new Set(t.map(f=>f.id)),l=r.filter(f=>f.deletable!==!1),u=yen(a,l);for(const f of l)s.has(f.id)&&!u.find(h=>h.id===f.id)&&u.push(f);if(!i)return{edges:u,nodes:a};const d=await i({nodes:a,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:a}:{edges:[],nodes:[]}:d}const I0=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),u_=(e={x:0,y:0},t,n)=>({x:I0(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:I0(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function xDe(e,t,n){const{width:r,height:i}=Yp(n),{x:o,y:a}=n.internals.positionAbsolute;return u_(e,[[o,a],[o+r,a+i]],t)}const Rue=(e,t,n)=>e<t?I0(Math.abs(e-t),1,t)/t:e>n?-I0(Math.abs(e-n),1,t)/t:0,TDe=(e,t,n=15,r=40)=>{const i=Rue(e.x,r,t.width-r)*n,o=Rue(e.y,r,t.height-r)*n;return[i,o]},WL=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),uV=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),YL=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),N0=(e,t=[0,0])=>{var i,o;const{x:n,y:r}=QQ(e)?e.internals.positionAbsolute:CT(e,t);return{x:n,y:r,width:((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},_P=(e,t=[0,0])=>{var i,o;const{x:n,y:r}=QQ(e)?e.internals.positionAbsolute:CT(e,t);return{x:n,y:r,x2:n+(((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0),y2:r+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},RDe=(e,t)=>YL(WL(uV(e),uV(t))),Aw=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},Oue=e=>Uu(e.width)&&Uu(e.height)&&Uu(e.x)&&Uu(e.y),Uu=e=>!isNaN(e)&&isFinite(e),Sen=(e,t)=>{},qL=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),xT=({x:e,y:t},[n,r,i],o=!1,a=[1,1])=>{const s={x:(e-n)/i,y:(t-r)/i};return o?qL(s,a):s},ODe=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r}),XQ=(e,t,n,r,i,o)=>{const a=t/(e.width*(1+o)),s=n/(e.height*(1+o)),l=Math.min(a,s),c=I0(l,r,i),u=e.x+e.width/2,d=e.y+e.height/2,f=t/2-u*c,p=n/2-d*c;return{x:f,y:p,zoom:c}},yP=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function M0(e){return e!==void 0&&e!=="parent"}function Yp(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function IDe(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function NDe(e,t={width:0,height:0},n,r,i){const o={...e},a=r.get(n);if(a){const s=a.origin||i;o.x+=a.internals.positionAbsolute.x-(t.width??0)*s[0],o.y+=a.internals.positionAbsolute.y-(t.height??0)*s[1]}return o}function a1(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:o,y:a}=sp(e),s=xT({x:o-((i==null?void 0:i.left)??0),y:a-((i==null?void 0:i.top)??0)},r),{x:l,y:c}=n?qL(s,t):s;return{xSnapped:l,ySnapped:c,...s}}const KL=e=>({width:e.offsetWidth,height:e.offsetHeight}),MDe=e=>{var t;return((t=e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},Een=["INPUT","SELECT","TEXTAREA"];function dV(e){var r,i;const t=((i=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:i[0])||e.target;return Een.includes(t==null?void 0:t.nodeName)||(t==null?void 0:t.hasAttribute("contenteditable"))||!!(t!=null&&t.closest(".nokey"))}const ADe=e=>"clientX"in e,sp=(e,t)=>{var o,a;const n=ADe(e),r=n?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,i=n?e.clientY:(a=e.touches)==null?void 0:a[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:i-((t==null?void 0:t.top)??0)}},Iue=(e,t,n,r,i)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(a=>{const s=a.getBoundingClientRect();return{id:a.getAttribute("data-handleid"),type:e,nodeId:i,position:a.getAttribute("data-handlepos"),x:(s.left-n.left)/r,y:(s.top-n.top)/r,...KL(a)}})};function PDe({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:a,targetControlY:s}){const l=e*.125+i*.375+a*.375+n*.125,c=t*.125+o*.375+s*.375+r*.125,u=Math.abs(l-e),d=Math.abs(c-t);return[l,c,u,d]}function LO(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Nue({pos:e,x1:t,y1:n,x2:r,y2:i,c:o}){switch(e){case Qn.Left:return[t-LO(t-r,o),n];case Qn.Right:return[t+LO(r-t,o),n];case Qn.Top:return[t,n-LO(n-i,o)];case Qn.Bottom:return[t,n+LO(i-n,o)]}}function DDe({sourceX:e,sourceY:t,sourcePosition:n=Qn.Bottom,targetX:r,targetY:i,targetPosition:o=Qn.Top,curvature:a=.25}){const[s,l]=Nue({pos:n,x1:e,y1:t,x2:r,y2:i,c:a}),[c,u]=Nue({pos:o,x1:r,y1:i,x2:e,y2:t,c:a}),[d,f,p,h]=PDe({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${t} C${s},${l} ${c},${u} ${r},${i}`,d,f,p,h]}function kDe({sourceX:e,sourceY:t,targetX:n,targetY:r}){const i=Math.abs(n-e)/2,o=n<e?n+i:n-i,a=Math.abs(r-t)/2,s=r<t?r+a:r-a;return[o,s,i,a]}function Cen({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1}){if(!i)return r;const o=n||t.selected||e.selected,a=Math.max(e.internals.z||0,t.internals.z||0,1e3);return r+(o?a:0)}function wen({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){const o=WL(_P(e),_P(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const a={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return Aw(a,YL(o))>0}const xen=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,Ten=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),LDe=(e,t)=>{if(!e.source||!e.target)return t;let n;return EDe(e)?n={...e}:n={...e,id:xen(e)},Ten(n,t)?t:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,t.concat(n))};function $De({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[i,o,a,s]=kDe({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,o,a,s]}const Mue={[Qn.Left]:{x:-1,y:0},[Qn.Right]:{x:1,y:0},[Qn.Top]:{x:0,y:-1},[Qn.Bottom]:{x:0,y:1}},Ren=({source:e,sourcePosition:t=Qn.Bottom,target:n})=>t===Qn.Left||t===Qn.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Aue=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function Oen({source:e,sourcePosition:t=Qn.Bottom,target:n,targetPosition:r=Qn.Top,center:i,offset:o}){const a=Mue[t],s=Mue[r],l={x:e.x+a.x*o,y:e.y+a.y*o},c={x:n.x+s.x*o,y:n.y+s.y*o},u=Ren({source:l,sourcePosition:t,target:c}),d=u.x!==0?"x":"y",f=u[d];let p=[],h,g;const v={x:0,y:0},y={x:0,y:0},[_,b,S,C]=kDe({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*s[d]===-1){h=i.x??_,g=i.y??b;const w=[{x:h,y:l.y},{x:h,y:c.y}],x=[{x:l.x,y:g},{x:c.x,y:g}];a[d]===f?p=d==="x"?w:x:p=d==="x"?x:w}else{const w=[{x:l.x,y:c.y}],x=[{x:c.x,y:l.y}];if(d==="x"?p=a.x===f?x:w:p=a.y===f?w:x,t===r){const P=Math.abs(e[d]-n[d]);if(P<=o){const D=Math.min(o-1,o-P);a[d]===f?v[d]=(l[d]>e[d]?-1:1)*D:y[d]=(c[d]>n[d]?-1:1)*D}}if(t!==r){const P=d==="x"?"y":"x",D=a[d]===s[P],F=l[P]>c[P],L=l[P]<c[P];(a[d]===1&&(!D&&F||D&&L)||a[d]!==1&&(!D&&L||D&&F))&&(p=d==="x"?w:x)}const T={x:l.x+v.x,y:l.y+v.y},R={x:c.x+y.x,y:c.y+y.y},N=Math.max(Math.abs(T.x-p[0].x),Math.abs(R.x-p[0].x)),I=Math.max(Math.abs(T.y-p[0].y),Math.abs(R.y-p[0].y));N>=I?(h=(T.x+R.x)/2,g=p[0].y):(h=p[0].x,g=(T.y+R.y)/2)}return[[e,{x:l.x+v.x,y:l.y+v.y},...p,{x:c.x+y.x,y:c.y+y.y},n],h,g,S,C]}function Ien(e,t,n,r){const i=Math.min(Aue(e,t)/2,Aue(t,n)/2,r),{x:o,y:a}=t;if(e.x===o&&o===n.x||e.y===a&&a===n.y)return`L${o} ${a}`;if(e.y===a){const c=e.x<n.x?-1:1,u=e.y<n.y?1:-1;return`L ${o+i*c},${a}Q ${o},${a} ${o},${a+i*u}`}const s=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${o},${a+i*l}Q ${o},${a} ${o+i*s},${a}`}function fV({sourceX:e,sourceY:t,sourcePosition:n=Qn.Bottom,targetX:r,targetY:i,targetPosition:o=Qn.Top,borderRadius:a=5,centerX:s,centerY:l,offset:c=20}){const[u,d,f,p,h]=Oen({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:s,y:l},offset:c});return[u.reduce((v,y,_)=>{let b="";return _>0&&_<u.length-1?b=Ien(u[_-1],y,u[_+1],a):b=`${_===0?"M":"L"}${y.x} ${y.y}`,v+=b,v},""),d,f,p,h]}function Pue(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Nen(e){var d;const{sourceNode:t,targetNode:n}=e;if(!Pue(t)||!Pue(n))return null;const r=t.internals.handleBounds||Due(t.handles),i=n.internals.handleBounds||Due(n.handles),o=kue((r==null?void 0:r.source)??[],e.sourceHandle),a=kue(e.connectionMode===O0.Strict?(i==null?void 0:i.target)??[]:((i==null?void 0:i.target)??[]).concat((i==null?void 0:i.source)??[]),e.targetHandle);if(!o||!a)return(d=e.onError)==null||d.call(e,"008",Wp.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(o==null?void 0:o.position)||Qn.Bottom,l=(a==null?void 0:a.position)||Qn.Top,c=Pw(t,o,s),u=Pw(n,a,l);return{sourceX:c.x,sourceY:c.y,targetX:u.x,targetY:u.y,sourcePosition:s,targetPosition:l}}function Due(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function Pw(e,t,n=Qn.Left,r=!1){const i=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:a,height:s}=t??Yp(e);if(r)return{x:i+a/2,y:o+s/2};switch((t==null?void 0:t.position)??n){case Qn.Top:return{x:i+a/2,y:o};case Qn.Right:return{x:i+a,y:o+s/2};case Qn.Bottom:return{x:i+a/2,y:o+s};case Qn.Left:return{x:i,y:o+s/2}}}function kue(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function pV(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function Men(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const o=new Set;return e.reduce((a,s)=>([s.markerStart||r,s.markerEnd||i].forEach(l=>{if(l&&typeof l=="object"){const c=pV(l,t);o.has(c)||(a.push({id:c,color:l.color||n,...l}),o.add(c))}}),a),[]).sort((a,s)=>a.id.localeCompare(s.id))}const ZQ={nodeOrigin:[0,0],nodeExtent:Nw,elevateNodesOnSelect:!0,defaults:{}},Aen={...ZQ,checkEquality:!0};function JQ(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function Pen(e,t,n){const r=JQ(ZQ,n);for(const i of e.values())if(i.parentId)eX(i,e,t,r);else{const o=CT(i,r.nodeOrigin),a=M0(i.extent)?i.extent:r.nodeExtent,s=u_(o,a,Yp(i));i.internals.positionAbsolute=s}}function mV(e,t,n,r){var s,l;const i=JQ(Aen,r),o=new Map(t),a=i!=null&&i.elevateNodesOnSelect?1e3:0;t.clear(),n.clear();for(const c of e){let u=o.get(c.id);if(i.checkEquality&&c===(u==null?void 0:u.internals.userNode))t.set(c.id,u);else{const d=CT(c,i.nodeOrigin),f=M0(c.extent)?c.extent:i.nodeExtent,p=u_(d,f,Yp(c));u={...i.defaults,...c,measured:{width:(s=c.measured)==null?void 0:s.width,height:(l=c.measured)==null?void 0:l.height},internals:{positionAbsolute:p,handleBounds:c.measured?u==null?void 0:u.internals.handleBounds:void 0,z:FDe(c,a),userNode:c}},t.set(c.id,u)}c.parentId&&eX(u,t,n,r)}}function Den(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function eX(e,t,n,r){const{elevateNodesOnSelect:i,nodeOrigin:o,nodeExtent:a}=JQ(ZQ,r),s=e.parentId,l=t.get(s);if(!l){console.warn(`Parent node ${s} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}Den(e,n);const c=i?1e3:0,{x:u,y:d,z:f}=ken(e,l,o,a,c),{positionAbsolute:p}=e.internals,h=u!==p.x||d!==p.y;(h||f!==e.internals.z)&&(e.internals={...e.internals,positionAbsolute:h?{x:u,y:d}:p,z:f})}function FDe(e,t){return(Uu(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function ken(e,t,n,r,i){const{x:o,y:a}=t.internals.positionAbsolute,s=Yp(e),l=CT(e,n),c=M0(e.extent)?u_(l,e.extent,s):l;let u=u_({x:o+c.x,y:a+c.y},r,s);e.extent==="parent"&&(u=xDe(u,s,t));const d=FDe(e,i),f=t.internals.z??0;return{x:u.x,y:u.y,z:f>d?f:d}}function tX(e,t,n,r=[0,0]){var a;const i=[],o=new Map;for(const s of e){const l=t.get(s.parentId);if(!l)continue;const c=((a=o.get(s.parentId))==null?void 0:a.expandedRect)??N0(l),u=RDe(c,s.rect);o.set(s.parentId,{expandedRect:u,parent:l})}return o.size>0&&o.forEach(({expandedRect:s,parent:l},c)=>{var b;const u=l.internals.positionAbsolute,d=Yp(l),f=l.origin??r,p=s.x<u.x?Math.round(Math.abs(u.x-s.x)):0,h=s.y<u.y?Math.round(Math.abs(u.y-s.y)):0,g=Math.max(d.width,Math.round(s.width)),v=Math.max(d.height,Math.round(s.height)),y=(g-d.width)*f[0],_=(v-d.height)*f[1];(p>0||h>0||y||_)&&(i.push({id:c,type:"position",position:{x:l.position.x-p+y,y:l.position.y-h+_}}),(b=n.get(c))==null||b.forEach(S=>{e.some(C=>C.id===S.id)||i.push({id:S.id,type:"position",position:{x:S.position.x+p,y:S.position.y+h}})})),(d.width<s.width||d.height<s.height||p||h)&&i.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:g+(p?f[0]*p-y:0),height:v+(h?f[1]*h-_:0)}})}),i}function Len(e,t,n,r,i,o){const a=r==null?void 0:r.querySelector(".xyflow__viewport");let s=!1;if(!a)return{changes:[],updatedInternals:s};const l=[],c=window.getComputedStyle(a),{m22:u}=new window.DOMMatrixReadOnly(c.transform),d=[];for(const f of e.values()){const p=t.get(f.id);if(p)if(p.hidden)p.internals={...p.internals,handleBounds:void 0},s=!0;else{const h=KL(f.nodeElement),g=p.measured.width!==h.width||p.measured.height!==h.height;if(!!(h.width&&h.height&&(g||!p.internals.handleBounds||f.force))){const y=f.nodeElement.getBoundingClientRect(),_=M0(p.extent)?p.extent:o;let{positionAbsolute:b}=p.internals;p.parentId&&p.extent==="parent"?b=xDe(b,h,t.get(p.parentId)):_&&(b=u_(b,_,h)),p.measured=h,p.internals={...p.internals,positionAbsolute:b,handleBounds:{source:Iue("source",f.nodeElement,y,u,p.id),target:Iue("target",f.nodeElement,y,u,p.id)}},p.parentId&&eX(p,t,n,{nodeOrigin:i}),s=!0,g&&(l.push({id:p.id,type:"dimensions",dimensions:h}),p.expandParent&&p.parentId&&d.push({id:p.id,parentId:p.parentId,rect:N0(p,i)}))}}}if(d.length>0){const f=tX(d,t,n,i);l.push(...f)}return{changes:l,updatedInternals:s}}async function $en({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,o]],r),s=!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]);return Promise.resolve(s)}function BDe(e,t,n){e.clear(),t.clear();for(const r of n){const{source:i,target:o,sourceHandle:a=null,targetHandle:s=null}=r,l=`${i}-source-${a}`,c=`${o}-target-${s}`,u=e.get(l)||new Map,d=e.get(c)||new Map,f={edgeId:r.id,source:i,target:o,sourceHandle:a,targetHandle:s};t.set(r.id,r),e.set(l,u.set(`${o}-${s}`,f)),e.set(c,d.set(`${i}-${a}`,f))}}function UDe(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:UDe(n,t):!1}function Lue(e,t,n){let r=e;do{if(r!=null&&r.matches(t))return!0;if(r===n)return!1;r=r.parentElement}while(r);return!1}function Fen(e,t,n,r){const i=new Map;for(const[o,a]of e)if((a.selected||a.id===r)&&(!a.parentId||!UDe(a,e))&&(a.draggable||t&&typeof a.draggable>"u")){const s=e.get(o);s&&i.set(o,{id:o,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return i}function vB({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var a,s,l;const i=[];for(const[c,u]of t){const d=(a=n.get(c))==null?void 0:a.internals.userNode;d&&i.push({...d,position:u.position,dragging:r})}if(!e)return[i[0],i];const o=(s=n.get(e))==null?void 0:s.internals.userNode;return[o?{...o,position:((l=t.get(e))==null?void 0:l.position)||o.position,dragging:r}:i[0],i]}function Ben({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},a=0,s=new Map,l=!1,c={x:0,y:0},u=null,d=!1,f=null,p=!1;function h({noDragClassName:v,handleSelector:y,domNode:_,isSelectable:b,nodeId:S,nodeClickDistance:C=0}){f=Gl(_);function E({x:R,y:N},I){const{nodeLookup:P,nodeExtent:D,snapGrid:F,snapToGrid:L,nodeOrigin:B,onNodeDrag:U,onSelectionDrag:G,onError:V,updateNodePositions:W}=t();o={x:R,y:N};let $=!1,H={x:0,y:0,x2:0,y2:0};if(s.size>1&&D){const K=wT(s);H=uV(K)}for(const[K,re]of s){if(!P.has(K))continue;let Q={x:R-re.distance.x,y:N-re.distance.y};L&&(Q=qL(Q,F));let A=[[D[0][0],D[0][1]],[D[1][0],D[1][1]]];if(s.size>1&&D&&!re.extent){const{positionAbsolute:ne}=re.internals,oe=ne.x-H.x+D[0][0],ae=ne.x+re.measured.width-H.x2+D[1][0],ue=ne.y-H.y+D[0][1],fe=ne.y+re.measured.height-H.y2+D[1][1];A=[[oe,ue],[ae,fe]]}const{position:k,positionAbsolute:Z}=wDe({nodeId:K,nextPosition:Q,nodeLookup:P,nodeExtent:A,nodeOrigin:B,onError:V});$=$||re.position.x!==k.x||re.position.y!==k.y,re.position=k,re.internals.positionAbsolute=Z}if($&&(W(s,!0),I&&(r||U||!S&&G))){const[K,re]=vB({nodeId:S,dragItems:s,nodeLookup:P});r==null||r(I,s,K,re),U==null||U(I,K,re),S||G==null||G(I,re)}}async function w(){if(!u)return;const{transform:R,panBy:N,autoPanSpeed:I}=t(),[P,D]=TDe(c,u,I);(P!==0||D!==0)&&(o.x=(o.x??0)-P/R[2],o.y=(o.y??0)-D/R[2],await N({x:P,y:D})&&E(o,null)),a=requestAnimationFrame(w)}function x(R){var $;const{nodeLookup:N,multiSelectionActive:I,nodesDraggable:P,transform:D,snapGrid:F,snapToGrid:L,selectNodesOnDrag:B,onNodeDragStart:U,onSelectionDragStart:G,unselectNodesAndEdges:V}=t();d=!0,(!B||!b)&&!I&&S&&(($=N.get(S))!=null&&$.selected||V()),b&&B&&S&&(e==null||e(S));const W=a1(R.sourceEvent,{transform:D,snapGrid:F,snapToGrid:L,containerBounds:u});if(o=W,s=Fen(N,P,W,S),s.size>0&&(n||U||!S&&G)){const[H,K]=vB({nodeId:S,dragItems:s,nodeLookup:N});n==null||n(R.sourceEvent,s,H,K),U==null||U(R.sourceEvent,H,K),S||G==null||G(R.sourceEvent,K)}}const T=rDe().clickDistance(C).on("start",R=>{const{domNode:N,nodeDragThreshold:I,transform:P,snapGrid:D,snapToGrid:F}=t();u=(N==null?void 0:N.getBoundingClientRect())||null,p=!1,I===0&&x(R),o=a1(R.sourceEvent,{transform:P,snapGrid:D,snapToGrid:F,containerBounds:u}),c=sp(R.sourceEvent,u)}).on("drag",R=>{const{autoPanOnNodeDrag:N,transform:I,snapGrid:P,snapToGrid:D,nodeDragThreshold:F,nodeLookup:L}=t(),B=a1(R.sourceEvent,{transform:I,snapGrid:P,snapToGrid:D,containerBounds:u});if((R.sourceEvent.type==="touchmove"&&R.sourceEvent.touches.length>1||S&&!L.has(S))&&(p=!0),!p){if(!l&&N&&d&&(l=!0,w()),!d){const U=B.xSnapped-(o.x??0),G=B.ySnapped-(o.y??0);Math.sqrt(U*U+G*G)>F&&x(R)}(o.x!==B.xSnapped||o.y!==B.ySnapped)&&s&&d&&(c=sp(R.sourceEvent,u),E(B,R.sourceEvent))}}).on("end",R=>{if(!(!d||p)&&(l=!1,d=!1,cancelAnimationFrame(a),s.size>0)){const{nodeLookup:N,updateNodePositions:I,onNodeDragStop:P,onSelectionDragStop:D}=t();if(I(s,!1),i||P||!S&&D){const[F,L]=vB({nodeId:S,dragItems:s,nodeLookup:N,dragging:!1});i==null||i(R.sourceEvent,s,F,L),P==null||P(R.sourceEvent,F,L),S||D==null||D(R.sourceEvent,L)}}}).filter(R=>{const N=R.target;return!R.button&&(!v||!Lue(N,`.${v}`,_))&&(!y||Lue(N,y,_))});f.call(T)}function g(){f==null||f.on(".drag",null)}return{update:h,destroy:g}}function Uen(e,t,n){const r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const o of t.values())Aw(i,N0(o))>0&&r.push(o);return r}const jen=250;function Hen(e,t,n,r){var s,l;let i=[],o=1/0;const a=Uen(e,n,t+jen);for(const c of a){const u=[...((s=c.internals.handleBounds)==null?void 0:s.source)??[],...((l=c.internals.handleBounds)==null?void 0:l.target)??[]];for(const d of u){if(r.nodeId===d.nodeId&&r.type===d.type&&r.id===d.id)continue;const{x:f,y:p}=Pw(c,d,d.position,!0),h=Math.sqrt(Math.pow(f-e.x,2)+Math.pow(p-e.y,2));h>t||(h<o?(i=[{...d,x:f,y:p}],o=h):h===o&&i.push({...d,x:f,y:p}))}}if(!i.length)return null;if(i.length>1){const c=r.type==="source"?"target":"source";return i.find(u=>u.type===c)??i[0]}return i[0]}function jDe(e,t,n,r,i,o=!1){var c,u,d;const a=r.get(e);if(!a)return null;const s=i==="strict"?(c=a.internals.handleBounds)==null?void 0:c[t]:[...((u=a.internals.handleBounds)==null?void 0:u.source)??[],...((d=a.internals.handleBounds)==null?void 0:d.target)??[]],l=(n?s==null?void 0:s.find(f=>f.id===n):s==null?void 0:s[0])??null;return l&&o?{...l,...Pw(a,l,l.position,!0)}:l}function HDe(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function zen(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const zDe=()=>!0;function Ven(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:a,domNode:s,nodeLookup:l,lib:c,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:p,onConnectStart:h,onConnect:g,onConnectEnd:v,isValidConnection:y=zDe,onReconnectEnd:_,updateConnection:b,getTransform:S,getFromHandle:C,autoPanSpeed:E}){const w=MDe(e.target);let x=0,T;const{x:R,y:N}=sp(e),I=w==null?void 0:w.elementFromPoint(R,N),P=HDe(o,I),D=s==null?void 0:s.getBoundingClientRect();if(!D||!P)return;const F=jDe(i,P,r,l,t);if(!F)return;let L=sp(e,D),B=!1,U=null,G=!1,V=null;function W(){if(!u||!D)return;const[Z,ne]=TDe(L,D,E);f({x:Z,y:ne}),x=requestAnimationFrame(W)}const $={...F,nodeId:i,type:P,position:F.position},H=l.get(i),re={inProgress:!0,isValid:null,from:Pw(H,$,Qn.Left,!0),fromHandle:$,fromPosition:$.position,fromNode:H,to:L,toHandle:null,toPosition:Tue[$.position],toNode:null};b(re);let Q=re;h==null||h(e,{nodeId:i,handleId:r,handleType:P});function A(Z){if(!C()||!$){k(Z);return}const ne=S();L=sp(Z,D),T=Hen(xT(L,ne,!1,[1,1]),n,l,$),B||(W(),B=!0);const oe=VDe(Z,{handle:T,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:a?"target":"source",isValidConnection:y,doc:w,lib:c,flowId:d,nodeLookup:l});V=oe.handleDomNode,U=oe.connection,G=zen(!!T,oe.isValid);const ae={...Q,isValid:G,to:T&&G?ODe({x:T.x,y:T.y},ne):L,toHandle:oe.toHandle,toPosition:G&&oe.toHandle?oe.toHandle.position:Tue[$.position],toNode:oe.toHandle?l.get(oe.toHandle.nodeId):null};G&&T&&Q.toHandle&&ae.toHandle&&Q.toHandle.type===ae.toHandle.type&&Q.toHandle.nodeId===ae.toHandle.nodeId&&Q.toHandle.id===ae.toHandle.id&&Q.to.x===ae.to.x&&Q.to.y===ae.to.y||(b(ae),Q=ae)}function k(Z){(T||V)&&U&&G&&(g==null||g(U));const{inProgress:ne,...oe}=Q,ae={...oe,toPosition:Q.toHandle?Q.toPosition:null};v==null||v(Z,ae),o&&(_==null||_(Z,ae)),p(),cancelAnimationFrame(x),B=!1,G=!1,U=null,V=null,w.removeEventListener("mousemove",A),w.removeEventListener("mouseup",k),w.removeEventListener("touchmove",A),w.removeEventListener("touchend",k)}w.addEventListener("mousemove",A),w.addEventListener("mouseup",k),w.addEventListener("touchmove",A),w.addEventListener("touchend",k)}function VDe(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:a,lib:s,flowId:l,isValidConnection:c=zDe,nodeLookup:u}){const d=o==="target",f=t?a.querySelector(`.${s}-flow__handle[data-id="${l}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:p,y:h}=sp(e),g=a.elementFromPoint(p,h),v=g!=null&&g.classList.contains(`${s}-flow__handle`)?g:f,y={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){const _=HDe(void 0,v),b=v.getAttribute("data-nodeid"),S=v.getAttribute("data-handleid"),C=v.classList.contains("connectable"),E=v.classList.contains("connectableend");if(!b||!_)return y;const w={source:d?b:r,sourceHandle:d?S:i,target:d?r:b,targetHandle:d?i:S};y.connection=w;const T=C&&E&&(n===O0.Strict?d&&_==="source"||!d&&_==="target":b!==r||S!==i);y.isValid=T&&c(w),y.toHandle=jDe(b,_,S,u,n,!1)}return y}const hV={onPointerDown:Ven,isValid:VDe};function Gen({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const i=Gl(e);function o({translateExtent:s,width:l,height:c,zoomStep:u=10,pannable:d=!0,zoomable:f=!0,inversePan:p=!1}){const h=b=>{const S=n();if(b.sourceEvent.type!=="wheel"||!t)return;const C=-b.sourceEvent.deltaY*(b.sourceEvent.deltaMode===1?.05:b.sourceEvent.deltaMode?1:.002)*u,E=S[2]*Math.pow(2,C);t.scaleTo(E)};let g=[0,0];const v=b=>{(b.sourceEvent.type==="mousedown"||b.sourceEvent.type==="touchstart")&&(g=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY])},y=b=>{const S=n();if(b.sourceEvent.type!=="mousemove"&&b.sourceEvent.type!=="touchmove"||!t)return;const C=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY],E=[C[0]-g[0],C[1]-g[1]];g=C;const w=r()*Math.max(S[2],Math.log(S[2]))*(p?-1:1),x={x:S[0]-E[0]*w,y:S[1]-E[1]*w},T=[[0,0],[l,c]];t.setViewportConstrained({x:x.x,y:x.y,zoom:S[2]},T,s)},_=_De().on("start",v).on("zoom",d?y:null).on("zoom.wheel",f?h:null);i.call(_,{})}function a(){i.on("zoom",null)}return{update:o,destroy:a,pointer:Mu}}const Wen=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,QL=e=>({x:e.x,y:e.y,zoom:e.k}),_B=({x:e,y:t,zoom:n})=>GL.translate(e,t).scale(n),sb=(e,t)=>e.target.closest(`.${t}`),GDe=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),yB=(e,t=0,n=()=>{})=>{const r=typeof t=="number"&&t>0;return r||n(),r?e.transition().duration(t).on("end",n):e},WDe=e=>{const t=e.ctrlKey&&yP()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function Yen({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}){return u=>{if(sb(u,t))return!1;u.preventDefault(),u.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(u.ctrlKey&&a){const v=Mu(u),y=WDe(u),_=d*Math.pow(2,y);r.scaleTo(n,_,v,u);return}const f=u.deltaMode===1?20:1;let p=i===Av.Vertical?0:u.deltaX*f,h=i===Av.Horizontal?0:u.deltaY*f;!yP()&&u.shiftKey&&i!==Av.Vertical&&(p=u.deltaY*f,h=0),r.translateBy(n,-(p/d)*o,-(h/d)*o,{internal:!0});const g=QL(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,s==null||s(u,g)),e.isPanScrolling&&(l==null||l(u,g),e.panScrollTimeout=setTimeout(()=>{c==null||c(u,g),e.isPanScrolling=!1},150))}}function qen({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){if(!t&&r.type==="wheel"&&!r.ctrlKey||sb(r,e))return null;r.preventDefault(),n.call(this,r,i)}}function Ken({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var o,a,s;if((o=r.sourceEvent)!=null&&o.internal)return;const i=QL(r.transform);e.mouseButton=((a=r.sourceEvent)==null?void 0:a.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=i,((s=r.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,i))}}function Qen({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{var a,s;e.usedRightMouseButton=!!(n&&GDe(t,e.mouseButton??0)),(a=o.sourceEvent)!=null&&a.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!((s=o.sourceEvent)!=null&&s.internal)&&(i==null||i(o.sourceEvent,QL(o.transform)))}}function Xen({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return a=>{var s;if(!((s=a.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,o&&GDe(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&o(a.sourceEvent),e.usedRightMouseButton=!1,r(!1),i&&Wen(e.prevViewport,a.transform))){const l=QL(a.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i==null||i(a.sourceEvent,l)},n?150:0)}}}function Zen({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:a,noWheelClassName:s,noPanClassName:l,lib:c}){return u=>{var h;const d=e||t,f=n&&u.ctrlKey;if(u.button===1&&u.type==="mousedown"&&(sb(u,`${c}-flow__node`)||sb(u,`${c}-flow__edge`)))return!0;if(!r&&!d&&!i&&!o&&!n||a||sb(u,s)&&u.type==="wheel"||sb(u,l)&&(u.type!=="wheel"||i&&u.type==="wheel"&&!e)||!n&&u.ctrlKey&&u.type==="wheel")return!1;if(!n&&u.type==="touchstart"&&((h=u.touches)==null?void 0:h.length)>1)return u.preventDefault(),!1;if(!d&&!i&&!f&&u.type==="wheel"||!r&&(u.type==="mousedown"||u.type==="touchstart")||Array.isArray(r)&&!r.includes(u.button)&&u.type==="mousedown")return!1;const p=Array.isArray(r)&&r.includes(u.button)||!u.button||u.button<=1;return(!u.ctrlKey||u.type==="wheel")&&p}}function Jen({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:i,viewport:o,onPanZoom:a,onPanZoomStart:s,onPanZoomEnd:l,onDraggingChange:c}){const u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},d=e.getBoundingClientRect(),f=_De().clickDistance(!Uu(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(i),p=Gl(e).call(f);b({x:o.x,y:o.y,zoom:I0(o.zoom,t,n)},[[0,0],[d.width,d.height]],i);const h=p.on("wheel.zoom"),g=p.on("dblclick.zoom");f.wheelDelta(WDe);function v(I,P){return p?new Promise(D=>{f==null||f.transform(yB(p,P==null?void 0:P.duration,()=>D(!0)),I)}):Promise.resolve(!1)}function y({noWheelClassName:I,noPanClassName:P,onPaneContextMenu:D,userSelectionActive:F,panOnScroll:L,panOnDrag:B,panOnScrollMode:U,panOnScrollSpeed:G,preventScrolling:V,zoomOnPinch:W,zoomOnScroll:$,zoomOnDoubleClick:H,zoomActivationKeyPressed:K,lib:re,onTransformChange:Q}){F&&!u.isZoomingOrPanning&&_();const k=L&&!K&&!F?Yen({zoomPanValues:u,noWheelClassName:I,d3Selection:p,d3Zoom:f,panOnScrollMode:U,panOnScrollSpeed:G,zoomOnPinch:W,onPanZoomStart:s,onPanZoom:a,onPanZoomEnd:l}):qen({noWheelClassName:I,preventScrolling:V,d3ZoomHandler:h});if(p.on("wheel.zoom",k,{passive:!1}),!F){const ne=Ken({zoomPanValues:u,onDraggingChange:c,onPanZoomStart:s});f.on("start",ne);const oe=Qen({zoomPanValues:u,panOnDrag:B,onPaneContextMenu:!!D,onPanZoom:a,onTransformChange:Q});f.on("zoom",oe);const ae=Xen({zoomPanValues:u,panOnDrag:B,panOnScroll:L,onPaneContextMenu:D,onPanZoomEnd:l,onDraggingChange:c});f.on("end",ae)}const Z=Zen({zoomActivationKeyPressed:K,panOnDrag:B,zoomOnScroll:$,panOnScroll:L,zoomOnDoubleClick:H,zoomOnPinch:W,userSelectionActive:F,noPanClassName:P,noWheelClassName:I,lib:re});f.filter(Z),H?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)}function _(){f.on("zoom",null)}async function b(I,P,D){const F=_B(I),L=f==null?void 0:f.constrain()(F,P,D);return L&&await v(L),new Promise(B=>B(L))}async function S(I,P){const D=_B(I);return await v(D,P),new Promise(F=>F(D))}function C(I){if(p){const P=_B(I),D=p.property("__zoom");(D.k!==I.zoom||D.x!==I.x||D.y!==I.y)&&(f==null||f.transform(p,P,null,{sync:!0}))}}function E(){const I=p?vDe(p.node()):{x:0,y:0,k:1};return{x:I.x,y:I.y,zoom:I.k}}function w(I,P){return p?new Promise(D=>{f==null||f.scaleTo(yB(p,P==null?void 0:P.duration,()=>D(!0)),I)}):Promise.resolve(!1)}function x(I,P){return p?new Promise(D=>{f==null||f.scaleBy(yB(p,P==null?void 0:P.duration,()=>D(!0)),I)}):Promise.resolve(!1)}function T(I){f==null||f.scaleExtent(I)}function R(I){f==null||f.translateExtent(I)}function N(I){const P=!Uu(I)||I<0?0:I;f==null||f.clickDistance(P)}return{update:y,destroy:_,setViewport:S,setViewportConstrained:b,getViewport:E,scaleTo:w,scaleBy:x,setScaleExtent:T,setTranslateExtent:R,syncViewport:C,setClickDistance:N}}var s1;(function(e){e.Line="line",e.Handle="handle"})(s1||(s1={}));function etn({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:o}){const a=e-t,s=n-r,l=[a>0?1:a<0?-1:0,s>0?1:s<0?-1:0];return a&&i&&(l[0]=l[0]*-1),s&&o&&(l[1]=l[1]*-1),l}function ttn(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),i=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:i}}function fm(e,t){return Math.max(0,t-e)}function pm(e,t){return Math.max(0,e-t)}function $O(e,t,n){return Math.max(0,t-e,e-n)}function $ue(e,t){return e?!t:t}function ntn(e,t,n,r,i,o,a,s){let{affectsX:l,affectsY:c}=t;const{isHorizontal:u,isVertical:d}=t,f=u&&d,{xSnapped:p,ySnapped:h}=n,{minWidth:g,maxWidth:v,minHeight:y,maxHeight:_}=r,{x:b,y:S,width:C,height:E,aspectRatio:w}=e;let x=Math.floor(u?p-e.pointerX:0),T=Math.floor(d?h-e.pointerY:0);const R=C+(l?-x:x),N=E+(c?-T:T),I=-o[0]*C,P=-o[1]*E;let D=$O(R,g,v),F=$O(N,y,_);if(a){let U=0,G=0;l&&x<0?U=fm(b+x+I,a[0][0]):!l&&x>0&&(U=pm(b+R+I,a[1][0])),c&&T<0?G=fm(S+T+P,a[0][1]):!c&&T>0&&(G=pm(S+N+P,a[1][1])),D=Math.max(D,U),F=Math.max(F,G)}if(s){let U=0,G=0;l&&x>0?U=pm(b+x,s[0][0]):!l&&x<0&&(U=fm(b+R,s[1][0])),c&&T>0?G=pm(S+T,s[0][1]):!c&&T<0&&(G=fm(S+N,s[1][1])),D=Math.max(D,U),F=Math.max(F,G)}if(i){if(u){const U=$O(R/w,y,_)*w;if(D=Math.max(D,U),a){let G=0;!l&&!c||l&&!c&&f?G=pm(S+P+R/w,a[1][1])*w:G=fm(S+P+(l?x:-x)/w,a[0][1])*w,D=Math.max(D,G)}if(s){let G=0;!l&&!c||l&&!c&&f?G=fm(S+R/w,s[1][1])*w:G=pm(S+(l?x:-x)/w,s[0][1])*w,D=Math.max(D,G)}}if(d){const U=$O(N*w,g,v)/w;if(F=Math.max(F,U),a){let G=0;!l&&!c||c&&!l&&f?G=pm(b+N*w+I,a[1][0])/w:G=fm(b+(c?T:-T)*w+I,a[0][0])/w,F=Math.max(F,G)}if(s){let G=0;!l&&!c||c&&!l&&f?G=fm(b+N*w,s[1][0])/w:G=pm(b+(c?T:-T)*w,s[0][0])/w,F=Math.max(F,G)}}}T=T+(T<0?F:-F),x=x+(x<0?D:-D),i&&(f?R>N*w?T=($ue(l,c)?-x:x)/w:x=($ue(l,c)?-T:T)*w:u?(T=x/w,c=l):(x=T*w,l=c));const L=l?b+x:b,B=c?S+T:S;return{width:C+(l?-x:x),height:E+(c?-T:T),x:o[0]*x*(l?-1:1)+L,y:o[1]*T*(c?-1:1)+B}}const YDe={width:0,height:0,x:0,y:0},rtn={...YDe,pointerX:0,pointerY:0,aspectRatio:1};function itn(e){return[[0,0],[e.measured.width,e.measured.height]]}function otn(e,t,n){const r=t.position.x+e.position.x,i=t.position.y+e.position.y,o=e.measured.width??0,a=e.measured.height??0,s=n[0]*o,l=n[1]*a;return[[r-s,i-l],[r+o-s,i+a-l]]}function atn({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){const o=Gl(e);function a({controlPosition:l,boundaries:c,keepAspectRatio:u,onResizeStart:d,onResize:f,onResizeEnd:p,shouldResize:h}){let g={...YDe},v={...rtn};const y=ttn(l);let _,b=null,S=[],C,E,w;const x=rDe().on("start",T=>{const{nodeLookup:R,transform:N,snapGrid:I,snapToGrid:P,nodeOrigin:D,paneDomNode:F}=n();if(_=R.get(t),!_)return;b=(F==null?void 0:F.getBoundingClientRect())??null;const{xSnapped:L,ySnapped:B}=a1(T.sourceEvent,{transform:N,snapGrid:I,snapToGrid:P,containerBounds:b});g={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},v={...g,pointerX:L,pointerY:B,aspectRatio:g.width/g.height},C=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(C=R.get(_.parentId),E=C&&_.extent==="parent"?itn(C):void 0),S=[],w=void 0;for(const[U,G]of R)if(G.parentId===t&&(S.push({id:U,position:{...G.position},extent:G.extent}),G.extent==="parent"||G.expandParent)){const V=otn(G,_,G.origin??D);w?w=[[Math.min(V[0][0],w[0][0]),Math.min(V[0][1],w[0][1])],[Math.max(V[1][0],w[1][0]),Math.max(V[1][1],w[1][1])]]:w=V}d==null||d(T,{...g})}).on("drag",T=>{const{transform:R,snapGrid:N,snapToGrid:I,nodeOrigin:P}=n(),D=a1(T.sourceEvent,{transform:R,snapGrid:N,snapToGrid:I,containerBounds:b}),F=[];if(!_)return;const{x:L,y:B,width:U,height:G}=g,V={},W=_.origin??P,{width:$,height:H,x:K,y:re}=ntn(v,y,D,c,u,W,E,w),Q=$!==U,A=H!==G,k=K!==L&&Q,Z=re!==B&&A;if(!k&&!Z&&!Q&&!A)return;if((k||Z||W[0]===1||W[1]===1)&&(V.x=k?K:g.x,V.y=Z?re:g.y,g.x=V.x,g.y=V.y,S.length>0)){const ue=K-L,fe=re-B;for(const se of S)se.position={x:se.position.x-ue+W[0]*($-U),y:se.position.y-fe+W[1]*(H-G)},F.push(se)}if((Q||A)&&(V.width=Q?$:g.width,V.height=A?H:g.height,g.width=V.width,g.height=V.height),C&&_.expandParent){const ue=W[0]*(V.width??0);V.x&&V.x<ue&&(g.x=ue,v.x=v.x-(V.x-ue));const fe=W[1]*(V.height??0);V.y&&V.y<fe&&(g.y=fe,v.y=v.y-(V.y-fe))}const ne=etn({width:g.width,prevWidth:U,height:g.height,prevHeight:G,affectsX:y.affectsX,affectsY:y.affectsY}),oe={...g,direction:ne};(h==null?void 0:h(T,oe))!==!1&&(f==null||f(T,oe),r(V,F))}).on("end",T=>{p==null||p(T,{...g}),i==null||i()});o.call(x)}function s(){o.on(".drag",null)}return{update:a,destroy:s}}const{useDebugValue:stn}=de,{useSyncExternalStoreWithSelector:ltn}=Lbe,ctn=e=>e;function qDe(e,t=ctn,n){const r=ltn(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return stn(r),r}const Fue=(e,t)=>{const n=Nbe(e),r=(i,o=t)=>qDe(n,i,o);return Object.assign(r,n),r},utn=(e,t)=>e?Fue(e,t):Fue;function Mo(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const XL=m.createContext(null),dtn=XL.Provider,KDe=Wp.error001();function ii(e,t){const n=m.useContext(XL);if(n===null)throw new Error(KDe);return qDe(n,e,t)}function lo(){const e=m.useContext(XL);if(e===null)throw new Error(KDe);return m.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const Bue={display:"none"},ftn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},QDe="react-flow__node-desc",XDe="react-flow__edge-desc",ptn="react-flow__aria-live",mtn=e=>e.ariaLiveMessage;function htn({rfId:e}){const t=ii(mtn);return M.jsx("div",{id:`${ptn}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:ftn,children:t})}function gtn({rfId:e,disableKeyboardA11y:t}){return M.jsxs(M.Fragment,{children:[M.jsxs("div",{id:`${QDe}-${e}`,style:Bue,children:["Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),M.jsx("div",{id:`${XDe}-${e}`,style:Bue,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!t&&M.jsx(htn,{rfId:e})]})}const vtn=e=>e.userSelectionActive?"none":"all";function nX({position:e="top-left",children:t,className:n,style:r,...i}){const o=ii(vtn),a=`${e}`.split("-");return M.jsx("div",{className:sa(["react-flow__panel",n,...a]),style:{...r,pointerEvents:o},...i,children:t})}function _tn({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:M.jsx(nX,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:M.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const ytn=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},FO=e=>e.id;function btn(e,t){return Mo(e.selectedNodes.map(FO),t.selectedNodes.map(FO))&&Mo(e.selectedEdges.map(FO),t.selectedEdges.map(FO))}function Stn({onSelectionChange:e}){const t=lo(),{selectedNodes:n,selectedEdges:r}=ii(ytn,btn);return m.useEffect(()=>{const i={nodes:n,edges:r};e==null||e(i),t.getState().onSelectionChangeHandlers.forEach(o=>o(i))},[n,r,e]),null}const Etn=e=>!!e.onSelectionChangeHandlers;function Ctn({onSelectionChange:e}){const t=ii(Etn);return e||t?M.jsx(Stn,{onSelectionChange:e}):null}const ZDe=[0,0],wtn={x:0,y:0,zoom:1},xtn=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance"],Uue=[...xtn,"rfId"],Ttn=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),jue={translateExtent:Nw,nodeOrigin:ZDe,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function Rtn(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:o,setNodeExtent:a,reset:s,setDefaultNodesAndEdges:l,setPaneClickDistance:c}=ii(Ttn,Mo),u=lo();m.useEffect(()=>(l(e.defaultNodes,e.defaultEdges),()=>{d.current=jue,s()}),[]);const d=m.useRef(jue);return m.useEffect(()=>{for(const f of Uue){const p=e[f],h=d.current[f];p!==h&&(typeof e[f]>"u"||(f==="nodes"?t(p):f==="edges"?n(p):f==="minZoom"?r(p):f==="maxZoom"?i(p):f==="translateExtent"?o(p):f==="nodeExtent"?a(p):f==="paneClickDistance"?c(p):f==="fitView"?u.setState({fitViewOnInit:p}):f==="fitViewOptions"?u.setState({fitViewOnInitOptions:p}):u.setState({[f]:p})))}d.current=e},Uue.map(f=>e[f])),null}function Hue(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function Otn(e){var r;const[t,n]=m.useState(e==="system"?null:e);return m.useEffect(()=>{if(e!=="system"){n(e);return}const i=Hue(),o=()=>n(i!=null&&i.matches?"dark":"light");return o(),i==null||i.addEventListener("change",o),()=>{i==null||i.removeEventListener("change",o)}},[e]),t!==null?t:(r=Hue())!=null&&r.matches?"dark":"light"}const zue=typeof document<"u"?document:null;function Dw(e=null,t={target:zue,actInsideInputWithModifier:!0}){const[n,r]=m.useState(!1),i=m.useRef(!1),o=m.useRef(new Set([])),[a,s]=m.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace("+",`
|
||
`).replace(`
|
||
|
||
`,`
|
||
+`).split(`
|
||
`)),u=c.reduce((d,f)=>d.concat(...f),[]);return[c,u]}return[[],[]]},[e]);return m.useEffect(()=>{const l=(t==null?void 0:t.target)||zue;if(e!==null){const c=f=>{if(i.current=f.ctrlKey||f.metaKey||f.shiftKey,(!i.current||i.current&&!t.actInsideInputWithModifier)&&dV(f))return!1;const h=Gue(f.code,s);o.current.add(f[h]),Vue(a,o.current,!1)&&(f.preventDefault(),r(!0))},u=f=>{if((!i.current||i.current&&!t.actInsideInputWithModifier)&&dV(f))return!1;const h=Gue(f.code,s);Vue(a,o.current,!0)?(r(!1),o.current.clear()):o.current.delete(f[h]),f.key==="Meta"&&o.current.clear(),i.current=!1},d=()=>{o.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",c),l==null||l.addEventListener("keyup",u),window.addEventListener("blur",d),window.addEventListener("contextmenu",d),()=>{l==null||l.removeEventListener("keydown",c),l==null||l.removeEventListener("keyup",u),window.removeEventListener("blur",d),window.removeEventListener("contextmenu",d)}}},[e,r]),n}function Vue(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function Gue(e,t){return t.includes(e)?"code":"key"}const Itn=()=>{const e=lo();return m.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,i,o],panZoom:a}=e.getState();return a?(await a.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??o},{duration:n==null?void 0:n.duration}),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},fitView:t=>{const{nodeLookup:n,minZoom:r,maxZoom:i,panZoom:o,domNode:a}=e.getState();if(!o||!a)return Promise.resolve(!1);const s=lV(n,t),{width:l,height:c}=KL(a);return cV({nodes:s,width:l,height:c,minZoom:r,maxZoom:i,panZoom:o},t)},setCenter:async(t,n,r)=>{const{width:i,height:o,maxZoom:a,panZoom:s}=e.getState(),l=typeof(r==null?void 0:r.zoom)<"u"?r.zoom:a,c=i/2-t*l,u=o/2-n*l;return s?(await s.setViewport({x:c,y:u,zoom:l},{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},fitBounds:async(t,n)=>{const{width:r,height:i,minZoom:o,maxZoom:a,panZoom:s}=e.getState(),l=XQ(t,r,i,o,a,(n==null?void 0:n.padding)??.1);return s?(await s.setViewport(l,{duration:n==null?void 0:n.duration}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={snapToGrid:!0})=>{const{transform:r,snapGrid:i,domNode:o}=e.getState();if(!o)return t;const{x:a,y:s}=o.getBoundingClientRect(),l={x:t.x-a,y:t.y-s};return xT(l,r,n.snapToGrid,i)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:i,y:o}=r.getBoundingClientRect(),a=ODe(t,n);return{x:a.x+i,y:a.y+o}}}),[])};function JDe(e,t){const n=[],r=new Map,i=[];for(const o of e)if(o.type==="add"){i.push(o);continue}else if(o.type==="remove"||o.type==="replace")r.set(o.id,[o]);else{const a=r.get(o.id);a?a.push(o):r.set(o.id,[o])}for(const o of t){const a=r.get(o.id);if(!a){n.push(o);continue}if(a[0].type==="remove")continue;if(a[0].type==="replace"){n.push({...a[0].item});continue}const s={...o};for(const l of a)Ntn(l,s);n.push(s)}return i.length&&i.forEach(o=>{o.index!==void 0?n.splice(o.index,0,{...o.item}):n.push({...o.item})}),n}function Ntn(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&(t.width=e.dimensions.width,t.height=e.dimensions.height)),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function eke(e,t){return JDe(e,t)}function Mtn(e,t){return JDe(e,t)}function Fg(e,t){return{id:e,type:"select",selected:t}}function lb(e,t=new Set,n=!1){const r=[];for(const[i,o]of e){const a=t.has(i);!(o.selected===void 0&&!a)&&o.selected!==a&&(n&&(o.selected=a),r.push(Fg(o.id,a)))}return r}function Wue({items:e=[],lookup:t}){var i;const n=[],r=new Map(e.map(o=>[o.id,o]));for(const[o,a]of e.entries()){const s=t.get(a.id),l=((i=s==null?void 0:s.internals)==null?void 0:i.userNode)??s;l!==void 0&&l!==a&&n.push({id:a.id,item:a,type:"replace"}),l===void 0&&n.push({item:a,type:"add",index:o})}for(const[o]of t)r.get(o)===void 0&&n.push({id:o,type:"remove"});return n}function Yue(e){return{id:e.id,type:"remove"}}const que=e=>ven(e),Atn=e=>EDe(e);function tke(e){return m.forwardRef(e)}const Ptn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Kue(e){const[t,n]=m.useState(BigInt(0)),[r]=m.useState(()=>Dtn(()=>n(i=>i+BigInt(1))));return Ptn(()=>{const i=r.get();i.length&&(e(i),r.reset())},[t]),r}function Dtn(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const nke=m.createContext(null);function ktn({children:e}){const t=lo(),n=m.useCallback(s=>{const{nodes:l=[],setNodes:c,hasDefaultNodes:u,onNodesChange:d,nodeLookup:f}=t.getState();let p=l;for(const h of s)p=typeof h=="function"?h(p):h;u?c(p):d&&d(Wue({items:p,lookup:f}))},[]),r=Kue(n),i=m.useCallback(s=>{const{edges:l=[],setEdges:c,hasDefaultEdges:u,onEdgesChange:d,edgeLookup:f}=t.getState();let p=l;for(const h of s)p=typeof h=="function"?h(p):h;u?c(p):d&&d(Wue({items:p,lookup:f}))},[]),o=Kue(i),a=m.useMemo(()=>({nodeQueue:r,edgeQueue:o}),[]);return M.jsx(nke.Provider,{value:a,children:e})}function Ltn(){const e=m.useContext(nke);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const $tn=e=>!!e.panZoom;function ZL(){const e=Itn(),t=lo(),n=Ltn(),r=ii($tn),i=m.useMemo(()=>{const o=d=>t.getState().nodeLookup.get(d),a=d=>{n.nodeQueue.push(d)},s=d=>{n.edgeQueue.push(d)},l=d=>{var y,_;const{nodeLookup:f,nodeOrigin:p}=t.getState(),h=que(d)?d:f.get(d.id),g=h.parentId?NDe(h.position,h.measured,h.parentId,f,p):h.position,v={id:h.id,position:g,width:((y=h.measured)==null?void 0:y.width)??h.width,height:((_=h.measured)==null?void 0:_.height)??h.height,data:h.data};return N0(v)},c=(d,f,p={replace:!1})=>{a(h=>h.map(g=>{if(g.id===d){const v=typeof f=="function"?f(g):f;return p.replace&&que(v)?v:{...g,...v}}return g}))},u=(d,f,p={replace:!1})=>{s(h=>h.map(g=>{if(g.id===d){const v=typeof f=="function"?f(g):f;return p.replace&&Atn(v)?v:{...g,...v}}return g}))};return{getNodes:()=>t.getState().nodes.map(d=>({...d})),getNode:d=>{var f;return(f=o(d))==null?void 0:f.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:d=[]}=t.getState();return d.map(f=>({...f}))},getEdge:d=>t.getState().edgeLookup.get(d),setNodes:a,setEdges:s,addNodes:d=>{const f=Array.isArray(d)?d:[d];n.nodeQueue.push(p=>[...p,...f])},addEdges:d=>{const f=Array.isArray(d)?d:[d];n.edgeQueue.push(p=>[...p,...f])},toObject:()=>{const{nodes:d=[],edges:f=[],transform:p}=t.getState(),[h,g,v]=p;return{nodes:d.map(y=>({...y})),edges:f.map(y=>({...y})),viewport:{x:h,y:g,zoom:v}}},deleteElements:async({nodes:d=[],edges:f=[]})=>{const{nodes:p,edges:h,onNodesDelete:g,onEdgesDelete:v,triggerNodeChanges:y,triggerEdgeChanges:_,onDelete:b,onBeforeDelete:S}=t.getState(),{nodes:C,edges:E}=await ben({nodesToRemove:d,edgesToRemove:f,nodes:p,edges:h,onBeforeDelete:S}),w=E.length>0,x=C.length>0;if(w){const T=E.map(Yue);v==null||v(E),_(T)}if(x){const T=C.map(Yue);g==null||g(C),y(T)}return(x||w)&&(b==null||b({nodes:C,edges:E})),{deletedNodes:C,deletedEdges:E}},getIntersectingNodes:(d,f=!0,p)=>{const h=Oue(d),g=h?d:l(d),v=p!==void 0;return g?(p||t.getState().nodes).filter(y=>{const _=t.getState().nodeLookup.get(y.id);if(_&&!h&&(y.id===d.id||!_.internals.positionAbsolute))return!1;const b=N0(v?y:_),S=Aw(b,g);return f&&S>0||S>=g.width*g.height}):[]},isNodeIntersecting:(d,f,p=!0)=>{const g=Oue(d)?d:l(d);if(!g)return!1;const v=Aw(g,f);return p&&v>0||v>=g.width*g.height},updateNode:c,updateNodeData:(d,f,p={replace:!1})=>{c(d,h=>{const g=typeof f=="function"?f(h):f;return p.replace?{...h,data:g}:{...h,data:{...h.data,...g}}},p)},updateEdge:u,updateEdgeData:(d,f,p={replace:!1})=>{u(d,h=>{const g=typeof f=="function"?f(h):f;return p.replace?{...h,data:g}:{...h,data:{...h.data,...g}}},p)},getNodesBounds:d=>{const{nodeLookup:f,nodeOrigin:p}=t.getState();return _en(d,{nodeLookup:f,nodeOrigin:p})},getHandleConnections:({type:d,id:f,nodeId:p})=>{var h;return Array.from(((h=t.getState().connectionLookup.get(`${p}-${d}-${f??null}`))==null?void 0:h.values())??[])}}},[]);return m.useMemo(()=>({...i,...e,viewportInitialized:r}),[r])}const Que=e=>e.selected,Ftn={actInsideInputWithModifier:!1},Btn=typeof window<"u"?window:void 0;function Utn({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=lo(),{deleteElements:r}=ZL(),i=Dw(e,Ftn),o=Dw(t,{target:Btn});m.useEffect(()=>{if(i){const{edges:a,nodes:s}=n.getState();r({nodes:s.filter(Que),edges:a.filter(Que)}),n.setState({nodesSelectionActive:!1})}},[i]),m.useEffect(()=>{n.setState({multiSelectionActive:o})},[o])}function jtn(e){const t=lo();m.useEffect(()=>{const n=()=>{var i,o;if(!e.current)return!1;const r=KL(e.current);(r.height===0||r.width===0)&&((o=(i=t.getState()).onError)==null||o.call(i,"004",Wp.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const JL={position:"absolute",width:"100%",height:"100%",top:0,left:0},Htn=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function ztn({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:o=Av.Free,zoomOnDoubleClick:a=!0,panOnDrag:s=!0,defaultViewport:l,translateExtent:c,minZoom:u,maxZoom:d,zoomActivationKeyCode:f,preventScrolling:p=!0,children:h,noWheelClassName:g,noPanClassName:v,onViewportChange:y,isControlledViewport:_,paneClickDistance:b}){const S=lo(),C=m.useRef(null),{userSelectionActive:E,lib:w}=ii(Htn,Mo),x=Dw(f),T=m.useRef();jtn(C);const R=m.useCallback(N=>{y==null||y({x:N[0],y:N[1],zoom:N[2]}),_||S.setState({transform:N})},[y,_]);return m.useEffect(()=>{if(C.current){T.current=Jen({domNode:C.current,minZoom:u,maxZoom:d,translateExtent:c,viewport:l,paneClickDistance:b,onDraggingChange:D=>S.setState({paneDragging:D}),onPanZoomStart:(D,F)=>{const{onViewportChangeStart:L,onMoveStart:B}=S.getState();B==null||B(D,F),L==null||L(F)},onPanZoom:(D,F)=>{const{onViewportChange:L,onMove:B}=S.getState();B==null||B(D,F),L==null||L(F)},onPanZoomEnd:(D,F)=>{const{onViewportChangeEnd:L,onMoveEnd:B}=S.getState();B==null||B(D,F),L==null||L(F)}});const{x:N,y:I,zoom:P}=T.current.getViewport();return S.setState({panZoom:T.current,transform:[N,I,P],domNode:C.current.closest(".react-flow")}),()=>{var D;(D=T.current)==null||D.destroy()}}},[]),m.useEffect(()=>{var N;(N=T.current)==null||N.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:o,zoomOnDoubleClick:a,panOnDrag:s,zoomActivationKeyPressed:x,preventScrolling:p,noPanClassName:v,userSelectionActive:E,noWheelClassName:g,lib:w,onTransformChange:R})},[e,t,n,r,i,o,a,s,x,p,v,E,g,w,R]),M.jsx("div",{className:"react-flow__renderer",ref:C,style:JL,children:h})}const Vtn=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Gtn(){const{userSelectionActive:e,userSelectionRect:t}=ii(Vtn,Mo);return e&&t?M.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const bB=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},Wtn=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging});function Ytn({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Mw.Full,panOnDrag:r,selectionOnDrag:i,onSelectionStart:o,onSelectionEnd:a,onPaneClick:s,onPaneContextMenu:l,onPaneScroll:c,onPaneMouseEnter:u,onPaneMouseMove:d,onPaneMouseLeave:f,children:p}){const h=m.useRef(null),g=lo(),v=m.useRef(0),y=m.useRef(0),_=m.useRef(),b=m.useRef(new Map),{userSelectionActive:S,elementsSelectable:C,dragging:E}=ii(Wtn,Mo),w=C&&(e||S),x=m.useRef(!1),T=m.useRef(!1),R=()=>{g.setState({userSelectionActive:!1,userSelectionRect:null}),v.current=0,y.current=0},N=U=>{if(x.current){x.current=!1;return}s==null||s(U),g.getState().resetSelectedElements(),g.setState({nodesSelectionActive:!1})},I=U=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){U.preventDefault();return}l==null||l(U)},P=c?U=>c(U):void 0,D=U=>{var K,re,Q,A;const{resetSelectedElements:G,domNode:V,edgeLookup:W}=g.getState();if(_.current=V==null?void 0:V.getBoundingClientRect(),!C||!e||U.button!==0||U.target!==h.current||!_.current)return;(re=(K=U.target)==null?void 0:K.setPointerCapture)==null||re.call(K,U.pointerId),T.current=!0,x.current=!1,b.current=new Map;for(const[k,Z]of W)b.current.set(Z.source,((Q=b.current.get(Z.source))==null?void 0:Q.add(k))||new Set([k])),b.current.set(Z.target,((A=b.current.get(Z.target))==null?void 0:A.add(k))||new Set([k]));const{x:$,y:H}=sp(U.nativeEvent,_.current);G(),g.setState({userSelectionRect:{width:0,height:0,startX:$,startY:H,x:$,y:H}}),o==null||o(U)},F=U=>{const{userSelectionRect:G,edgeLookup:V,transform:W,nodeLookup:$,triggerNodeChanges:H,triggerEdgeChanges:K}=g.getState();if(!_.current||!G)return;x.current=!0;const{x:re,y:Q}=sp(U.nativeEvent,_.current),{startX:A,startY:k}=G,Z={startX:A,startY:k,x:re<A?re:A,y:Q<k?Q:k,width:Math.abs(re-A),height:Math.abs(Q-k)},ne=CDe($,Z,W,n===Mw.Partial,!0),oe=new Set,ae=new Set;for(const ue of ne){ae.add(ue.id);const fe=b.current.get(ue.id);if(fe)for(const se of fe)oe.add(se)}if(v.current!==ae.size){v.current=ae.size;const ue=lb($,ae,!0);H(ue)}if(y.current!==oe.size){y.current=oe.size;const ue=lb(V,oe);K(ue)}g.setState({userSelectionRect:Z,userSelectionActive:!0,nodesSelectionActive:!1})},L=U=>{var V,W;if(U.button!==0||!T.current)return;(W=(V=U.target)==null?void 0:V.releasePointerCapture)==null||W.call(V,U.pointerId);const{userSelectionRect:G}=g.getState();!S&&G&&U.target===h.current&&(N==null||N(U)),v.current>0&&g.setState({nodesSelectionActive:!0}),R(),a==null||a(U),(t||i)&&(x.current=!1),T.current=!1},B=r===!0||Array.isArray(r)&&r.includes(0);return M.jsxs("div",{className:sa(["react-flow__pane",{draggable:B,dragging:E,selection:e}]),onClick:w?void 0:bB(N,h),onContextMenu:bB(I,h),onWheel:bB(P,h),onPointerEnter:w?void 0:u,onPointerDown:w?D:d,onPointerMove:w?F:d,onPointerUp:w?L:void 0,onPointerLeave:f,ref:h,style:JL,children:[p,M.jsx(Gtn,{})]})}function gV({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:o,multiSelectionActive:a,nodeLookup:s,onError:l}=t.getState(),c=s.get(e);if(!c){l==null||l("012",Wp.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&a)&&(o({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var u;return(u=r==null?void 0:r.current)==null?void 0:u.blur()})):i([e])}function rke({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:o,nodeClickDistance:a}){const s=lo(),[l,c]=m.useState(!1),u=m.useRef();return m.useEffect(()=>{u.current=Ben({getStoreItems:()=>s.getState(),onNodeMouseDown:d=>{gV({id:d,store:s,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}})},[]),m.useEffect(()=>{var d,f;if(t)(d=u.current)==null||d.destroy();else if(e.current)return(f=u.current)==null||f.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:o,nodeId:i,nodeClickDistance:a}),()=>{var p;(p=u.current)==null||p.destroy()}},[n,r,t,o,e,i]),l}const qtn=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function ike(){const e=lo();return m.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:o,nodesDraggable:a,onError:s,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,f=qtn(a),p=i?o[0]:5,h=i?o[1]:5,g=n.direction.x*p*n.factor,v=n.direction.y*h*n.factor;for(const[,y]of c){if(!f(y))continue;let _={x:y.internals.positionAbsolute.x+g,y:y.internals.positionAbsolute.y+v};i&&(_=qL(_,o));const{position:b,positionAbsolute:S}=wDe({nodeId:y.id,nextPosition:_,nodeLookup:c,nodeExtent:r,nodeOrigin:u,onError:s});y.position=b,y.internals.positionAbsolute=S,d.set(y.id,y)}l(d)},[])}const rX=m.createContext(null),Ktn=rX.Provider;rX.Consumer;const oke=()=>m.useContext(rX),Qtn=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Xtn=(e,t,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:o,connection:a}=r,{fromHandle:s,toHandle:l,isValid:c}=a,u=(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n;return{connectingFrom:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===n,connectingTo:u,clickConnecting:(i==null?void 0:i.nodeId)===e&&(i==null?void 0:i.id)===t&&(i==null?void 0:i.type)===n,isPossibleEndHandle:o===O0.Strict?(s==null?void 0:s.type)!==n:e!==(s==null?void 0:s.nodeId)||t!==(s==null?void 0:s.id),connectionInProcess:!!s,valid:u&&c}};function Ztn({type:e="source",position:t=Qn.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:o=!0,id:a,onConnect:s,children:l,className:c,onMouseDown:u,onTouchStart:d,...f},p){var D,F;const h=a||null,g=e==="target",v=lo(),y=oke(),{connectOnClick:_,noPanClassName:b,rfId:S}=ii(Qtn,Mo),{connectingFrom:C,connectingTo:E,clickConnecting:w,isPossibleEndHandle:x,connectionInProcess:T,valid:R}=ii(Xtn(y,h,e),Mo);y||(F=(D=v.getState()).onError)==null||F.call(D,"010",Wp.error010());const N=L=>{const{defaultEdgeOptions:B,onConnect:U,hasDefaultEdges:G}=v.getState(),V={...B,...L};if(G){const{edges:W,setEdges:$}=v.getState();$(LDe(V,W))}U==null||U(V),s==null||s(V)},I=L=>{if(!y)return;const B=ADe(L.nativeEvent);if(i&&(B&&L.button===0||!B)){const U=v.getState();hV.onPointerDown(L.nativeEvent,{autoPanOnConnect:U.autoPanOnConnect,connectionMode:U.connectionMode,connectionRadius:U.connectionRadius,domNode:U.domNode,nodeLookup:U.nodeLookup,lib:U.lib,isTarget:g,handleId:h,nodeId:y,flowId:U.rfId,panBy:U.panBy,cancelConnection:U.cancelConnection,onConnectStart:U.onConnectStart,onConnectEnd:U.onConnectEnd,updateConnection:U.updateConnection,onConnect:N,isValidConnection:n||U.isValidConnection,getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,autoPanSpeed:U.autoPanSpeed})}B?u==null||u(L):d==null||d(L)},P=L=>{const{onClickConnectStart:B,onClickConnectEnd:U,connectionClickStartHandle:G,connectionMode:V,isValidConnection:W,lib:$,rfId:H,nodeLookup:K,connection:re}=v.getState();if(!y||!G&&!i)return;if(!G){B==null||B(L.nativeEvent,{nodeId:y,handleId:h,handleType:e}),v.setState({connectionClickStartHandle:{nodeId:y,type:e,id:h}});return}const Q=MDe(L.target),A=n||W,{connection:k,isValid:Z}=hV.isValid(L.nativeEvent,{handle:{nodeId:y,id:h,type:e},connectionMode:V,fromNodeId:G.nodeId,fromHandleId:G.id||null,fromType:G.type,isValidConnection:A,flowId:H,doc:Q,lib:$,nodeLookup:K});Z&&k&&N(k);const ne=structuredClone(re);delete ne.inProgress,ne.toPosition=ne.toHandle?ne.toHandle.position:null,U==null||U(L,ne),v.setState({connectionClickStartHandle:null})};return M.jsx("div",{"data-handleid":h,"data-nodeid":y,"data-handlepos":t,"data-id":`${S}-${y}-${h}-${e}`,className:sa(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",b,c,{source:!g,target:g,connectable:r,connectablestart:i,connectableend:o,clickconnecting:w,connectingfrom:C,connectingto:E,valid:R,connectionindicator:r&&(!T||x)&&(T?o:i)}]),onMouseDown:I,onTouchStart:I,onClick:_?P:void 0,ref:p,...f,children:l})}const d_=m.memo(tke(Ztn));function Jtn({data:e,isConnectable:t,sourcePosition:n=Qn.Bottom}){return M.jsxs(M.Fragment,{children:[e==null?void 0:e.label,M.jsx(d_,{type:"source",position:n,isConnectable:t})]})}function enn({data:e,isConnectable:t,targetPosition:n=Qn.Top,sourcePosition:r=Qn.Bottom}){return M.jsxs(M.Fragment,{children:[M.jsx(d_,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,M.jsx(d_,{type:"source",position:r,isConnectable:t})]})}function tnn(){return null}function nnn({data:e,isConnectable:t,targetPosition:n=Qn.Top}){return M.jsxs(M.Fragment,{children:[M.jsx(d_,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const bP={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Xue={input:Jtn,default:enn,output:nnn,group:tnn};function rnn(e){var t,n,r,i;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((i=e.style)==null?void 0:i.height)}}const inn=e=>{const{width:t,height:n,x:r,y:i}=wT(e.nodeLookup,{filter:o=>!!o.selected});return{width:Uu(t)?t:null,height:Uu(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function onn({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=lo(),{width:i,height:o,transformString:a,userSelectionActive:s}=ii(inn,Mo),l=ike(),c=m.useRef(null);if(m.useEffect(()=>{var f;n||(f=c.current)==null||f.focus({preventScroll:!0})},[n]),rke({nodeRef:c}),s||!i||!o)return null;const u=e?f=>{const p=r.getState().nodes.filter(h=>h.selected);e(f,p)}:void 0,d=f=>{Object.prototype.hasOwnProperty.call(bP,f.key)&&l({direction:bP[f.key],factor:f.shiftKey?4:1})};return M.jsx("div",{className:sa(["react-flow__nodesselection","react-flow__container",t]),style:{transform:a},children:M.jsx("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:u,tabIndex:n?void 0:-1,onKeyDown:n?void 0:d,style:{width:i,height:o}})})}const Zue=typeof window<"u"?window:void 0,ann=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function ake({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:a,paneClickDistance:s,deleteKeyCode:l,selectionKeyCode:c,selectionOnDrag:u,selectionMode:d,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:h,panActivationKeyCode:g,zoomActivationKeyCode:v,elementsSelectable:y,zoomOnScroll:_,zoomOnPinch:b,panOnScroll:S,panOnScrollSpeed:C,panOnScrollMode:E,zoomOnDoubleClick:w,panOnDrag:x,defaultViewport:T,translateExtent:R,minZoom:N,maxZoom:I,preventScrolling:P,onSelectionContextMenu:D,noWheelClassName:F,noPanClassName:L,disableKeyboardA11y:B,onViewportChange:U,isControlledViewport:G}){const{nodesSelectionActive:V,userSelectionActive:W}=ii(ann),$=Dw(c,{target:Zue}),H=Dw(g,{target:Zue}),K=H||x,re=H||S,Q=u&&K!==!0,A=$||W||Q;return Utn({deleteKeyCode:l,multiSelectionKeyCode:h}),M.jsx(ztn,{onPaneContextMenu:o,elementsSelectable:y,zoomOnScroll:_,zoomOnPinch:b,panOnScroll:re,panOnScrollSpeed:C,panOnScrollMode:E,zoomOnDoubleClick:w,panOnDrag:!$&&K,defaultViewport:T,translateExtent:R,minZoom:N,maxZoom:I,zoomActivationKeyCode:v,preventScrolling:P,noWheelClassName:F,noPanClassName:L,onViewportChange:U,isControlledViewport:G,paneClickDistance:s,children:M.jsxs(Ytn,{onSelectionStart:f,onSelectionEnd:p,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:a,panOnDrag:K,isSelecting:!!A,selectionMode:d,selectionKeyPressed:$,selectionOnDrag:Q,children:[e,V&&M.jsx(onn,{onSelectionContextMenu:D,noPanClassName:L,disableKeyboardA11y:B})]})})}ake.displayName="FlowRenderer";const snn=m.memo(ake),lnn=e=>t=>e?CDe(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function cnn(e){return ii(m.useCallback(lnn(e),[e]),Mo)}const unn=e=>e.updateNodeInternals;function dnn(){const e=ii(unn),[t]=m.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const o=i.target.getAttribute("data-id");r.set(o,{id:o,nodeElement:i.target,force:!0})}),e(r)}));return m.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function fnn({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const i=lo(),o=m.useRef(null),a=m.useRef(null),s=m.useRef(e.sourcePosition),l=m.useRef(e.targetPosition),c=m.useRef(t),u=n&&!!e.internals.handleBounds;return m.useEffect(()=>{o.current&&!e.hidden&&(!u||a.current!==o.current)&&(a.current&&(r==null||r.unobserve(a.current)),r==null||r.observe(o.current),a.current=o.current)},[u,e.hidden]),m.useEffect(()=>()=>{a.current&&(r==null||r.unobserve(a.current),a.current=null)},[]),m.useEffect(()=>{if(o.current){const d=c.current!==t,f=s.current!==e.sourcePosition,p=l.current!==e.targetPosition;(d||f||p)&&(c.current=t,s.current=e.sourcePosition,l.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function pnn({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:o,onDoubleClick:a,nodesDraggable:s,elementsSelectable:l,nodesConnectable:c,nodesFocusable:u,resizeObserver:d,noDragClassName:f,noPanClassName:p,disableKeyboardA11y:h,rfId:g,nodeTypes:v,nodeExtent:y,nodeClickDistance:_,onError:b}){const{node:S,internals:C,isParent:E}=ii(k=>{const Z=k.nodeLookup.get(e),ne=k.parentLookup.has(e);return{node:Z,internals:Z.internals,isParent:ne}},Mo);let w=S.type||"default",x=(v==null?void 0:v[w])||Xue[w];x===void 0&&(b==null||b("003",Wp.error003(w)),w="default",x=Xue.default);const T=!!(S.draggable||s&&typeof S.draggable>"u"),R=!!(S.selectable||l&&typeof S.selectable>"u"),N=!!(S.connectable||c&&typeof S.connectable>"u"),I=!!(S.focusable||u&&typeof S.focusable>"u"),P=lo(),D=IDe(S),F=fnn({node:S,nodeType:w,hasDimensions:D,resizeObserver:d}),L=rke({nodeRef:F,disabled:S.hidden||!T,noDragClassName:f,handleSelector:S.dragHandle,nodeId:e,isSelectable:R,nodeClickDistance:_}),B=ike();if(S.hidden)return null;const U=Yp(S),G=rnn(S),V=R||T||t||n||r||i,W=n?k=>n(k,{...C.userNode}):void 0,$=r?k=>r(k,{...C.userNode}):void 0,H=i?k=>i(k,{...C.userNode}):void 0,K=o?k=>o(k,{...C.userNode}):void 0,re=a?k=>a(k,{...C.userNode}):void 0,Q=k=>{const{selectNodesOnDrag:Z,nodeDragThreshold:ne}=P.getState();R&&(!Z||!T||ne>0)&&gV({id:e,store:P,nodeRef:F}),t&&t(k,{...C.userNode})},A=k=>{if(!(dV(k.nativeEvent)||h))if(yDe.includes(k.key)&&R){const Z=k.key==="Escape";gV({id:e,store:P,unselect:Z,nodeRef:F})}else T&&S.selected&&Object.prototype.hasOwnProperty.call(bP,k.key)&&(P.setState({ariaLiveMessage:`Moved selected node ${k.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~C.positionAbsolute.x}, y: ${~~C.positionAbsolute.y}`}),B({direction:bP[k.key],factor:k.shiftKey?4:1}))};return M.jsx("div",{className:sa(["react-flow__node",`react-flow__node-${w}`,{[p]:T},S.className,{selected:S.selected,selectable:R,parent:E,draggable:T,dragging:L}]),ref:F,style:{zIndex:C.z,transform:`translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,pointerEvents:V?"all":"none",visibility:D?"visible":"hidden",...S.style,...G},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:W,onMouseMove:$,onMouseLeave:H,onContextMenu:K,onClick:Q,onDoubleClick:re,onKeyDown:I?A:void 0,tabIndex:I?0:void 0,role:I?"button":void 0,"aria-describedby":h?void 0:`${QDe}-${g}`,"aria-label":S.ariaLabel,children:M.jsx(Ktn,{value:e,children:M.jsx(x,{id:e,data:S.data,type:w,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C.positionAbsolute.y,selected:S.selected,selectable:R,draggable:T,deletable:S.deletable??!0,isConnectable:N,sourcePosition:S.sourcePosition,targetPosition:S.targetPosition,dragging:L,dragHandle:S.dragHandle,zIndex:C.z,parentId:S.parentId,...U})})})}const mnn=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function ske(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:o}=ii(mnn,Mo),a=cnn(e.onlyRenderVisibleElements),s=dnn();return M.jsx("div",{className:"react-flow__nodes",style:JL,children:a.map(l=>M.jsx(pnn,{id:l,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:o},l))})}ske.displayName="NodeRenderer";const hnn=m.memo(ske);function gnn(e){return ii(m.useCallback(n=>{if(!e)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const o=n.nodeLookup.get(i.source),a=n.nodeLookup.get(i.target);o&&a&&wen({sourceNode:o,targetNode:a,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[e]),Mo)}const vnn=({color:e="none",strokeWidth:t=1})=>M.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),_nn=({color:e="none",strokeWidth:t=1})=>M.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Jue={[vP.Arrow]:vnn,[vP.ArrowClosed]:_nn};function ynn(e){const t=lo();return m.useMemo(()=>{var i,o;return Object.prototype.hasOwnProperty.call(Jue,e)?Jue[e]:((o=(i=t.getState()).onError)==null||o.call(i,"009",Wp.error009(e)),null)},[e])}const bnn=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:o="strokeWidth",strokeWidth:a,orient:s="auto-start-reverse"})=>{const l=ynn(t);return l?M.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:s,refX:"0",refY:"0",children:M.jsx(l,{color:n,strokeWidth:a})}):null},lke=({defaultColor:e,rfId:t})=>{const n=ii(o=>o.edges),r=ii(o=>o.defaultEdgeOptions),i=m.useMemo(()=>Men(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return i.length?M.jsx("svg",{className:"react-flow__marker",children:M.jsx("defs",{children:i.map(o=>M.jsx(bnn,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};lke.displayName="MarkerDefinitions";var Snn=m.memo(lke);function cke({x:e,y:t,label:n,labelStyle:r={},labelShowBg:i=!0,labelBgStyle:o={},labelBgPadding:a=[2,4],labelBgBorderRadius:s=2,children:l,className:c,...u}){const[d,f]=m.useState({x:1,y:0,width:0,height:0}),p=sa(["react-flow__edge-textwrapper",c]),h=m.useRef(null);return m.useEffect(()=>{if(h.current){const g=h.current.getBBox();f({x:g.x,y:g.y,width:g.width,height:g.height})}},[n]),typeof n>"u"||!n?null:M.jsxs("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:p,visibility:d.width?"visible":"hidden",...u,children:[i&&M.jsx("rect",{width:d.width+2*a[0],x:-a[0],y:-a[1],height:d.height+2*a[1],className:"react-flow__edge-textbg",style:o,rx:s,ry:s}),M.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:h,style:r,children:n}),l]})}cke.displayName="EdgeText";const Enn=m.memo(cke);function e$({id:e,path:t,labelX:n,labelY:r,label:i,labelStyle:o,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,className:p,interactionWidth:h=20}){return M.jsxs(M.Fragment,{children:[M.jsx("path",{id:e,style:u,d:t,fill:"none",className:sa(["react-flow__edge-path",p]),markerEnd:d,markerStart:f}),h&&M.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),i&&Uu(n)&&Uu(r)?M.jsx(Enn,{x:n,y:r,label:i,labelStyle:o,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null]})}function ede({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===Qn.Left||e===Qn.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function uke({sourceX:e,sourceY:t,sourcePosition:n=Qn.Bottom,targetX:r,targetY:i,targetPosition:o=Qn.Top}){const[a,s]=ede({pos:n,x1:e,y1:t,x2:r,y2:i}),[l,c]=ede({pos:o,x1:r,y1:i,x2:e,y2:t}),[u,d,f,p]=PDe({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:a,sourceControlY:s,targetControlX:l,targetControlY:c});return[`M${e},${t} C${a},${s} ${l},${c} ${r},${i}`,u,d,f,p]}function dke(e){return m.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:a=Qn.Bottom,targetPosition:s=Qn.Top,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:h,markerEnd:g,markerStart:v,interactionWidth:y})=>{const[_,b,S]=uke({sourceX:n,sourceY:r,sourcePosition:a,targetX:i,targetY:o,targetPosition:s}),C=e.isInternal?void 0:t;return M.jsx(e$,{id:C,path:_,labelX:b,labelY:S,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:h,markerEnd:g,markerStart:v,interactionWidth:y})})}const Cnn=dke({isInternal:!1}),fke=dke({isInternal:!0});Cnn.displayName="SimpleBezierEdge";fke.displayName="SimpleBezierEdgeInternal";function pke(e){return m.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,sourcePosition:p=Qn.Bottom,targetPosition:h=Qn.Top,markerEnd:g,markerStart:v,pathOptions:y,interactionWidth:_})=>{const[b,S,C]=fV({sourceX:n,sourceY:r,sourcePosition:p,targetX:i,targetY:o,targetPosition:h,borderRadius:y==null?void 0:y.borderRadius,offset:y==null?void 0:y.offset}),E=e.isInternal?void 0:t;return M.jsx(e$,{id:E,path:b,labelX:S,labelY:C,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:g,markerStart:v,interactionWidth:_})})}const mke=pke({isInternal:!1}),hke=pke({isInternal:!0});mke.displayName="SmoothStepEdge";hke.displayName="SmoothStepEdgeInternal";function gke(e){return m.memo(({id:t,...n})=>{var i;const r=e.isInternal?void 0:t;return M.jsx(mke,{...n,id:r,pathOptions:m.useMemo(()=>{var o;return{borderRadius:0,offset:(o=n.pathOptions)==null?void 0:o.offset}},[(i=n.pathOptions)==null?void 0:i.offset])})})}const wnn=gke({isInternal:!1}),vke=gke({isInternal:!0});wnn.displayName="StepEdge";vke.displayName="StepEdgeInternal";function _ke(e){return m.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:g})=>{const[v,y,_]=$De({sourceX:n,sourceY:r,targetX:i,targetY:o}),b=e.isInternal?void 0:t;return M.jsx(e$,{id:b,path:v,labelX:y,labelY:_,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:g})})}const xnn=_ke({isInternal:!1}),yke=_ke({isInternal:!0});xnn.displayName="StraightEdge";yke.displayName="StraightEdgeInternal";function bke(e){return m.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:a=Qn.Bottom,targetPosition:s=Qn.Top,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:h,markerEnd:g,markerStart:v,pathOptions:y,interactionWidth:_})=>{const[b,S,C]=DDe({sourceX:n,sourceY:r,sourcePosition:a,targetX:i,targetY:o,targetPosition:s,curvature:y==null?void 0:y.curvature}),E=e.isInternal?void 0:t;return M.jsx(e$,{id:E,path:b,labelX:S,labelY:C,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:h,markerEnd:g,markerStart:v,interactionWidth:_})})}const Tnn=bke({isInternal:!1}),Ske=bke({isInternal:!0});Tnn.displayName="BezierEdge";Ske.displayName="BezierEdgeInternal";const tde={default:Ske,straight:yke,step:vke,smoothstep:hke,simplebezier:fke},nde={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Rnn=(e,t,n)=>n===Qn.Left?e-t:n===Qn.Right?e+t:e,Onn=(e,t,n)=>n===Qn.Top?e-t:n===Qn.Bottom?e+t:e,rde="react-flow__edgeupdater";function ide({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:o,onMouseOut:a,type:s}){return M.jsx("circle",{onMouseDown:i,onMouseEnter:o,onMouseOut:a,className:sa([rde,`${rde}-${s}`]),cx:Rnn(t,r,e),cy:Onn(n,r,e),r,stroke:"transparent",fill:"transparent"})}function Inn({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:o,targetY:a,sourcePosition:s,targetPosition:l,onReconnect:c,onReconnectStart:u,onReconnectEnd:d,setReconnecting:f,setUpdateHover:p}){const h=lo(),g=(S,C)=>{if(S.button!==0)return;const{autoPanOnConnect:E,domNode:w,isValidConnection:x,connectionMode:T,connectionRadius:R,lib:N,onConnectStart:I,onConnectEnd:P,cancelConnection:D,nodeLookup:F,rfId:L,panBy:B,updateConnection:U}=h.getState(),G=C.type==="target";f(!0),u==null||u(S,n,C.type);const V=($,H)=>{f(!1),d==null||d($,n,C.type,H)},W=$=>c==null?void 0:c(n,$);hV.onPointerDown(S.nativeEvent,{autoPanOnConnect:E,connectionMode:T,connectionRadius:R,domNode:w,handleId:C.id,nodeId:C.nodeId,nodeLookup:F,isTarget:G,edgeUpdaterType:C.type,lib:N,flowId:L,cancelConnection:D,panBy:B,isValidConnection:x,onConnect:W,onConnectStart:I,onConnectEnd:P,onReconnectEnd:V,updateConnection:U,getTransform:()=>h.getState().transform,getFromHandle:()=>h.getState().connection.fromHandle})},v=S=>g(S,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),y=S=>g(S,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),_=()=>p(!0),b=()=>p(!1);return M.jsxs(M.Fragment,{children:[(e===!0||e==="source")&&M.jsx(ide,{position:s,centerX:r,centerY:i,radius:t,onMouseDown:v,onMouseEnter:_,onMouseOut:b,type:"source"}),(e===!0||e==="target")&&M.jsx(ide,{position:l,centerX:o,centerY:a,radius:t,onMouseDown:y,onMouseEnter:_,onMouseOut:b,type:"target"})]})}function Nnn({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:o,onContextMenu:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,rfId:h,edgeTypes:g,noPanClassName:v,onError:y,disableKeyboardA11y:_}){let b=ii(ae=>ae.edgeLookup.get(e));const S=ii(ae=>ae.defaultEdgeOptions);b=S?{...S,...b}:b;let C=b.type||"default",E=(g==null?void 0:g[C])||tde[C];E===void 0&&(y==null||y("011",Wp.error011(C)),C="default",E=tde.default);const w=!!(b.focusable||t&&typeof b.focusable>"u"),x=typeof d<"u"&&(b.reconnectable||n&&typeof b.reconnectable>"u"),T=!!(b.selectable||r&&typeof b.selectable>"u"),R=m.useRef(null),[N,I]=m.useState(!1),[P,D]=m.useState(!1),F=lo(),{zIndex:L,sourceX:B,sourceY:U,targetX:G,targetY:V,sourcePosition:W,targetPosition:$}=ii(m.useCallback(ae=>{const ue=ae.nodeLookup.get(b.source),fe=ae.nodeLookup.get(b.target);if(!ue||!fe)return{zIndex:b.zIndex,...nde};const se=Nen({id:e,sourceNode:ue,targetNode:fe,sourceHandle:b.sourceHandle||null,targetHandle:b.targetHandle||null,connectionMode:ae.connectionMode,onError:y});return{zIndex:Cen({selected:b.selected,zIndex:b.zIndex,sourceNode:ue,targetNode:fe,elevateOnSelect:ae.elevateEdgesOnSelect}),...se||nde}},[b.source,b.target,b.sourceHandle,b.targetHandle,b.selected,b.zIndex]),Mo),H=m.useMemo(()=>b.markerStart?`url('#${pV(b.markerStart,h)}')`:void 0,[b.markerStart,h]),K=m.useMemo(()=>b.markerEnd?`url('#${pV(b.markerEnd,h)}')`:void 0,[b.markerEnd,h]);if(b.hidden||B===null||U===null||G===null||V===null)return null;const re=ae=>{var pe;const{addSelectedEdges:ue,unselectNodesAndEdges:fe,multiSelectionActive:se}=F.getState();T&&(F.setState({nodesSelectionActive:!1}),b.selected&&se?(fe({nodes:[],edges:[b]}),(pe=R.current)==null||pe.blur()):ue([e])),i&&i(ae,b)},Q=o?ae=>{o(ae,{...b})}:void 0,A=a?ae=>{a(ae,{...b})}:void 0,k=s?ae=>{s(ae,{...b})}:void 0,Z=l?ae=>{l(ae,{...b})}:void 0,ne=c?ae=>{c(ae,{...b})}:void 0,oe=ae=>{var ue;if(!_&&yDe.includes(ae.key)&&T){const{unselectNodesAndEdges:fe,addSelectedEdges:se}=F.getState();ae.key==="Escape"?((ue=R.current)==null||ue.blur(),fe({edges:[b]})):se([e])}};return M.jsx("svg",{style:{zIndex:L},children:M.jsxs("g",{className:sa(["react-flow__edge",`react-flow__edge-${C}`,b.className,v,{selected:b.selected,animated:b.animated,inactive:!T&&!i,updating:N,selectable:T}]),onClick:re,onDoubleClick:Q,onContextMenu:A,onMouseEnter:k,onMouseMove:Z,onMouseLeave:ne,onKeyDown:w?oe:void 0,tabIndex:w?0:void 0,role:w?"button":"img","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":b.ariaLabel===null?void 0:b.ariaLabel||`Edge from ${b.source} to ${b.target}`,"aria-describedby":w?`${XDe}-${h}`:void 0,ref:R,children:[!P&&M.jsx(E,{id:e,source:b.source,target:b.target,type:b.type,selected:b.selected,animated:b.animated,selectable:T,deletable:b.deletable??!0,label:b.label,labelStyle:b.labelStyle,labelShowBg:b.labelShowBg,labelBgStyle:b.labelBgStyle,labelBgPadding:b.labelBgPadding,labelBgBorderRadius:b.labelBgBorderRadius,sourceX:B,sourceY:U,targetX:G,targetY:V,sourcePosition:W,targetPosition:$,data:b.data,style:b.style,sourceHandleId:b.sourceHandle,targetHandleId:b.targetHandle,markerStart:H,markerEnd:K,pathOptions:"pathOptions"in b?b.pathOptions:void 0,interactionWidth:b.interactionWidth}),x&&M.jsx(Inn,{edge:b,isReconnectable:x,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,sourceX:B,sourceY:U,targetX:G,targetY:V,sourcePosition:W,targetPosition:$,setUpdateHover:I,setReconnecting:D})]})})}const Mnn=e=>({width:e.width,height:e.height,edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Eke({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:o,onEdgeContextMenu:a,onEdgeMouseEnter:s,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:u,reconnectRadius:d,onEdgeDoubleClick:f,onReconnectStart:p,onReconnectEnd:h,disableKeyboardA11y:g}){const{edgesFocusable:v,edgesReconnectable:y,elementsSelectable:_,onError:b}=ii(Mnn,Mo),S=gnn(t);return M.jsxs("div",{className:"react-flow__edges",children:[M.jsx(Snn,{defaultColor:e,rfId:n}),S.map(C=>M.jsx(Nnn,{id:C,edgesFocusable:v,edgesReconnectable:y,elementsSelectable:_,noPanClassName:i,onReconnect:o,onContextMenu:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onClick:u,reconnectRadius:d,onDoubleClick:f,onReconnectStart:p,onReconnectEnd:h,rfId:n,onError:b,edgeTypes:r,disableKeyboardA11y:g},C))]})}Eke.displayName="EdgeRenderer";const Ann=m.memo(Eke),Pnn=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Dnn({children:e}){const t=ii(Pnn);return M.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function knn(e){const t=ZL(),n=m.useRef(!1);m.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const Lnn=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function $nn(e){const t=ii(Lnn),n=lo();return m.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function Fnn(e){return e.connection.inProgress?{...e.connection,to:xT(e.connection.to,e.transform)}:{...e.connection}}function Bnn(e){return Fnn}function Unn(e){const t=Bnn();return ii(t,Mo)}const jnn=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function Hnn({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:i,width:o,height:a,isValid:s,inProgress:l}=ii(jnn,Mo);return!(o&&i&&l)?null:M.jsx("svg",{style:e,width:o,height:a,className:"react-flow__connectionline react-flow__container",children:M.jsx("g",{className:sa(["react-flow__connection",SDe(s)]),children:M.jsx(Cke,{style:t,type:n,CustomComponent:r,isValid:s})})})}const Cke=({style:e,type:t=Fm.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:o,fromNode:a,fromHandle:s,fromPosition:l,to:c,toNode:u,toHandle:d,toPosition:f}=Unn();if(!i)return;if(n)return M.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:a,fromHandle:s,fromX:o.x,fromY:o.y,toX:c.x,toY:c.y,fromPosition:l,toPosition:f,connectionStatus:SDe(r),toNode:u,toHandle:d});let p="";const h={sourceX:o.x,sourceY:o.y,sourcePosition:l,targetX:c.x,targetY:c.y,targetPosition:f};switch(t){case Fm.Bezier:[p]=DDe(h);break;case Fm.SimpleBezier:[p]=uke(h);break;case Fm.Step:[p]=fV({...h,borderRadius:0});break;case Fm.SmoothStep:[p]=fV(h);break;default:[p]=$De(h)}return M.jsx("path",{d:p,fill:"none",className:"react-flow__connection-path",style:e})};Cke.displayName="ConnectionLine";const znn={};function ode(e=znn){m.useRef(e),lo(),m.useEffect(()=>{},[e])}function Vnn(){lo(),m.useRef(!1),m.useEffect(()=>{},[])}function wke({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:o,onEdgeDoubleClick:a,onNodeMouseEnter:s,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,onSelectionContextMenu:d,onSelectionStart:f,onSelectionEnd:p,connectionLineType:h,connectionLineStyle:g,connectionLineComponent:v,connectionLineContainerStyle:y,selectionKeyCode:_,selectionOnDrag:b,selectionMode:S,multiSelectionKeyCode:C,panActivationKeyCode:E,zoomActivationKeyCode:w,deleteKeyCode:x,onlyRenderVisibleElements:T,elementsSelectable:R,defaultViewport:N,translateExtent:I,minZoom:P,maxZoom:D,preventScrolling:F,defaultMarkerColor:L,zoomOnScroll:B,zoomOnPinch:U,panOnScroll:G,panOnScrollSpeed:V,panOnScrollMode:W,zoomOnDoubleClick:$,panOnDrag:H,onPaneClick:K,onPaneMouseEnter:re,onPaneMouseMove:Q,onPaneMouseLeave:A,onPaneScroll:k,onPaneContextMenu:Z,paneClickDistance:ne,nodeClickDistance:oe,onEdgeContextMenu:ae,onEdgeMouseEnter:ue,onEdgeMouseMove:fe,onEdgeMouseLeave:se,reconnectRadius:pe,onReconnect:_e,onReconnectStart:Te,onReconnectEnd:xe,noDragClassName:ge,noWheelClassName:Ce,noPanClassName:ye,disableKeyboardA11y:be,nodeExtent:Ee,rfId:Me,viewport:X,onViewportChange:Y}){return ode(e),ode(t),Vnn(),knn(n),$nn(X),M.jsx(snn,{onPaneClick:K,onPaneMouseEnter:re,onPaneMouseMove:Q,onPaneMouseLeave:A,onPaneContextMenu:Z,onPaneScroll:k,paneClickDistance:ne,deleteKeyCode:x,selectionKeyCode:_,selectionOnDrag:b,selectionMode:S,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:C,panActivationKeyCode:E,zoomActivationKeyCode:w,elementsSelectable:R,zoomOnScroll:B,zoomOnPinch:U,zoomOnDoubleClick:$,panOnScroll:G,panOnScrollSpeed:V,panOnScrollMode:W,panOnDrag:H,defaultViewport:N,translateExtent:I,minZoom:P,maxZoom:D,onSelectionContextMenu:d,preventScrolling:F,noDragClassName:ge,noWheelClassName:Ce,noPanClassName:ye,disableKeyboardA11y:be,onViewportChange:Y,isControlledViewport:!!X,children:M.jsxs(Dnn,{children:[M.jsx(Ann,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:a,onReconnect:_e,onReconnectStart:Te,onReconnectEnd:xe,onlyRenderVisibleElements:T,onEdgeContextMenu:ae,onEdgeMouseEnter:ue,onEdgeMouseMove:fe,onEdgeMouseLeave:se,reconnectRadius:pe,defaultMarkerColor:L,noPanClassName:ye,disableKeyboardA11y:be,rfId:Me}),M.jsx(Hnn,{style:g,type:h,component:v,containerStyle:y}),M.jsx("div",{className:"react-flow__edgelabel-renderer"}),M.jsx(hnn,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:o,onNodeMouseEnter:s,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,nodeClickDistance:oe,onlyRenderVisibleElements:T,noPanClassName:ye,noDragClassName:ge,disableKeyboardA11y:be,nodeExtent:Ee,rfId:Me}),M.jsx("div",{className:"react-flow__viewport-portal"})]})})}wke.displayName="GraphView";const Gnn=m.memo(wke),ade=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:a,nodeOrigin:s,nodeExtent:l}={})=>{const c=new Map,u=new Map,d=new Map,f=new Map,p=r??t??[],h=n??e??[],g=s??[0,0],v=l??Nw;BDe(d,f,p),mV(h,c,u,{nodeOrigin:g,nodeExtent:v,elevateNodesOnSelect:!1});let y=[0,0,1];if(a&&i&&o){const _=wT(c,{filter:E=>!!((E.width||E.initialWidth)&&(E.height||E.initialHeight))}),{x:b,y:S,zoom:C}=XQ(_,i,o,.5,2,.1);y=[b,S,C]}return{rfId:"1",width:0,height:0,transform:y,nodes:h,nodeLookup:c,parentLookup:u,edges:p,edgeLookup:f,connectionLookup:d,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:.5,maxZoom:2,translateExtent:Nw,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:O0.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:g,nodeDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,fitViewOnInit:!1,fitViewDone:!1,fitViewOnInitOptions:void 0,selectNodesOnDrag:!0,multiSelectionActive:!1,connection:{...bDe},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanSpeed:15,connectionRadius:20,onError:Sen,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1}},Wnn=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:a,nodeOrigin:s,nodeExtent:l})=>utn((c,u)=>({...ade({nodes:e,edges:t,width:i,height:o,fitView:a,nodeOrigin:s,nodeExtent:l,defaultNodes:n,defaultEdges:r}),setNodes:d=>{const{nodeLookup:f,parentLookup:p,nodeOrigin:h,elevateNodesOnSelect:g}=u();mV(d,f,p,{nodeOrigin:h,nodeExtent:l,elevateNodesOnSelect:g,checkEquality:!0}),c({nodes:d})},setEdges:d=>{const{connectionLookup:f,edgeLookup:p}=u();BDe(f,p,d),c({edges:d})},setDefaultNodesAndEdges:(d,f)=>{if(d){const{setNodes:p}=u();p(d),c({hasDefaultNodes:!0})}if(f){const{setEdges:p}=u();p(f),c({hasDefaultEdges:!0})}},updateNodeInternals:(d,f={triggerFitView:!0})=>{const{triggerNodeChanges:p,nodeLookup:h,parentLookup:g,fitViewOnInit:v,fitViewDone:y,fitViewOnInitOptions:_,domNode:b,nodeOrigin:S,nodeExtent:C,debug:E,fitViewSync:w}=u(),{changes:x,updatedInternals:T}=Len(d,h,g,b,S,C);if(T){if(Pen(h,g,{nodeOrigin:S,nodeExtent:C}),f.triggerFitView){let R=y;!y&&v&&(R=w({..._,nodes:_==null?void 0:_.nodes})),c({fitViewDone:R})}else c({});(x==null?void 0:x.length)>0&&(E&&console.log("React Flow: trigger node changes",x),p==null||p(x))}},updateNodePositions:(d,f=!1)=>{const p=[],h=[];for(const[g,v]of d){const y={id:g,type:"position",position:v.position,dragging:f};v!=null&&v.expandParent&&(v!=null&&v.parentId)&&y.position&&(p.push({id:g,parentId:v.parentId,rect:{...v.internals.positionAbsolute,width:v.measured.width,height:v.measured.height}}),y.position.x=Math.max(0,y.position.x),y.position.y=Math.max(0,y.position.y)),h.push(y)}if(p.length>0){const{nodeLookup:g,parentLookup:v,nodeOrigin:y}=u(),_=tX(p,g,v,y);h.push(..._)}u().triggerNodeChanges(h)},triggerNodeChanges:d=>{const{onNodesChange:f,setNodes:p,nodes:h,hasDefaultNodes:g,debug:v}=u();if(d!=null&&d.length){if(g){const y=eke(d,h);p(y)}v&&console.log("React Flow: trigger node changes",d),f==null||f(d)}},triggerEdgeChanges:d=>{const{onEdgesChange:f,setEdges:p,edges:h,hasDefaultEdges:g,debug:v}=u();if(d!=null&&d.length){if(g){const y=Mtn(d,h);p(y)}v&&console.log("React Flow: trigger edge changes",d),f==null||f(d)}},addSelectedNodes:d=>{const{multiSelectionActive:f,edgeLookup:p,nodeLookup:h,triggerNodeChanges:g,triggerEdgeChanges:v}=u();if(f){const y=d.map(_=>Fg(_,!0));g(y);return}g(lb(h,new Set([...d]),!0)),v(lb(p))},addSelectedEdges:d=>{const{multiSelectionActive:f,edgeLookup:p,nodeLookup:h,triggerNodeChanges:g,triggerEdgeChanges:v}=u();if(f){const y=d.map(_=>Fg(_,!0));v(y);return}v(lb(p,new Set([...d]))),g(lb(h,new Set,!0))},unselectNodesAndEdges:({nodes:d,edges:f}={})=>{const{edges:p,nodes:h,nodeLookup:g,triggerNodeChanges:v,triggerEdgeChanges:y}=u(),_=d||h,b=f||p,S=_.map(E=>{const w=g.get(E.id);return w&&(w.selected=!1),Fg(E.id,!1)}),C=b.map(E=>Fg(E.id,!1));v(S),y(C)},setMinZoom:d=>{const{panZoom:f,maxZoom:p}=u();f==null||f.setScaleExtent([d,p]),c({minZoom:d})},setMaxZoom:d=>{const{panZoom:f,minZoom:p}=u();f==null||f.setScaleExtent([p,d]),c({maxZoom:d})},setTranslateExtent:d=>{var f;(f=u().panZoom)==null||f.setTranslateExtent(d),c({translateExtent:d})},setPaneClickDistance:d=>{var f;(f=u().panZoom)==null||f.setClickDistance(d)},resetSelectedElements:()=>{const{edges:d,nodes:f,triggerNodeChanges:p,triggerEdgeChanges:h}=u(),g=f.reduce((y,_)=>_.selected?[...y,Fg(_.id,!1)]:y,[]),v=d.reduce((y,_)=>_.selected?[...y,Fg(_.id,!1)]:y,[]);p(g),h(v)},setNodeExtent:d=>{const{nodes:f,nodeLookup:p,parentLookup:h,nodeOrigin:g,elevateNodesOnSelect:v,nodeExtent:y}=u();d[0][0]===y[0][0]&&d[0][1]===y[0][1]&&d[1][0]===y[1][0]&&d[1][1]===y[1][1]||(mV(f,p,h,{nodeOrigin:g,nodeExtent:d,elevateNodesOnSelect:v,checkEquality:!1}),c({nodeExtent:d}))},panBy:d=>{const{transform:f,width:p,height:h,panZoom:g,translateExtent:v}=u();return $en({delta:d,panZoom:g,transform:f,translateExtent:v,width:p,height:h})},fitView:d=>{const{panZoom:f,width:p,height:h,minZoom:g,maxZoom:v,nodeLookup:y}=u();if(!f)return Promise.resolve(!1);const _=lV(y,d);return cV({nodes:_,width:p,height:h,panZoom:f,minZoom:g,maxZoom:v},d)},fitViewSync:d=>{const{panZoom:f,width:p,height:h,minZoom:g,maxZoom:v,nodeLookup:y}=u();if(!f)return!1;const _=lV(y,d);return cV({nodes:_,width:p,height:h,panZoom:f,minZoom:g,maxZoom:v},d),_.size>0},cancelConnection:()=>{c({connection:{...bDe}})},updateConnection:d=>{c({connection:d})},reset:()=>c({...ade()})}),Object.is);function xke({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:o,fitView:a,nodeOrigin:s,nodeExtent:l,children:c}){const[u]=m.useState(()=>Wnn({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:a,nodeOrigin:s,nodeExtent:l}));return M.jsx(dtn,{value:u,children:M.jsx(ktn,{children:c})})}function Ynn({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c}){return m.useContext(XL)?M.jsx(M.Fragment,{children:e}):M.jsx(xke,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:o,initialHeight:a,fitView:s,nodeOrigin:l,nodeExtent:c,children:e})}const qnn={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Knn({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:o,edgeTypes:a,onNodeClick:s,onEdgeClick:l,onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:h,onConnectEnd:g,onClickConnectStart:v,onClickConnectEnd:y,onNodeMouseEnter:_,onNodeMouseMove:b,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:E,onNodeDragStart:w,onNodeDrag:x,onNodeDragStop:T,onNodesDelete:R,onEdgesDelete:N,onDelete:I,onSelectionChange:P,onSelectionDragStart:D,onSelectionDrag:F,onSelectionDragStop:L,onSelectionContextMenu:B,onSelectionStart:U,onSelectionEnd:G,onBeforeDelete:V,connectionMode:W,connectionLineType:$=Fm.Bezier,connectionLineStyle:H,connectionLineComponent:K,connectionLineContainerStyle:re,deleteKeyCode:Q="Backspace",selectionKeyCode:A="Shift",selectionOnDrag:k=!1,selectionMode:Z=Mw.Full,panActivationKeyCode:ne="Space",multiSelectionKeyCode:oe=yP()?"Meta":"Control",zoomActivationKeyCode:ae=yP()?"Meta":"Control",snapToGrid:ue,snapGrid:fe,onlyRenderVisibleElements:se=!1,selectNodesOnDrag:pe,nodesDraggable:_e,nodesConnectable:Te,nodesFocusable:xe,nodeOrigin:ge=ZDe,edgesFocusable:Ce,edgesReconnectable:ye,elementsSelectable:be=!0,defaultViewport:Ee=wtn,minZoom:Me=.5,maxZoom:X=2,translateExtent:Y=Nw,preventScrolling:J=!0,nodeExtent:he,defaultMarkerColor:ve="#b1b1b7",zoomOnScroll:ce=!0,zoomOnPinch:$e=!0,panOnScroll:Be=!1,panOnScrollSpeed:me=.5,panOnScrollMode:Fe=Av.Free,zoomOnDoubleClick:Xe=!0,panOnDrag:ze=!0,onPaneClick:qe,onPaneMouseEnter:Ge,onPaneMouseMove:We,onPaneMouseLeave:Lt,onPaneScroll:ut,onPaneContextMenu:ft,paneClickDistance:bt=0,nodeClickDistance:St=0,children:Ht,onReconnect:xt,onReconnectStart:Nt,onReconnectEnd:Vt,onEdgeContextMenu:Ue,onEdgeDoubleClick:Ve,onEdgeMouseEnter:je,onEdgeMouseMove:et,onEdgeMouseLeave:_t,reconnectRadius:vt=10,onNodesChange:Mt,onEdgesChange:wt,noDragClassName:jt="nodrag",noWheelClassName:zt="nowheel",noPanClassName:Gt="nopan",fitView:$t,fitViewOptions:on,connectOnClick:pt,attributionPosition:Dt,proOptions:Wt,defaultEdgeOptions:Et,elevateNodesOnSelect:yt,elevateEdgesOnSelect:Ft,disableKeyboardA11y:Ae=!1,autoPanOnConnect:kt,autoPanOnNodeDrag:nt,autoPanSpeed:Rt,connectionRadius:Tt,isValidConnection:xn,onError:Un,style:O,id:j,nodeDragThreshold:te,viewport:we,onViewportChange:Le,width:Je,height:At,colorMode:dn="light",debug:Mn,...Kr},Ur){const di=j||"1",Sr=Otn(dn);return M.jsx("div",{...Kr,style:{...O,...qnn},ref:Ur,className:sa(["react-flow",i,Sr]),"data-testid":"rf__wrapper",id:j,children:M.jsxs(Ynn,{nodes:e,edges:t,width:Je,height:At,fitView:$t,nodeOrigin:ge,nodeExtent:he,children:[M.jsx(Gnn,{onInit:c,onNodeClick:s,onEdgeClick:l,onNodeMouseEnter:_,onNodeMouseMove:b,onNodeMouseLeave:S,onNodeContextMenu:C,onNodeDoubleClick:E,nodeTypes:o,edgeTypes:a,connectionLineType:$,connectionLineStyle:H,connectionLineComponent:K,connectionLineContainerStyle:re,selectionKeyCode:A,selectionOnDrag:k,selectionMode:Z,deleteKeyCode:Q,multiSelectionKeyCode:oe,panActivationKeyCode:ne,zoomActivationKeyCode:ae,onlyRenderVisibleElements:se,defaultViewport:Ee,translateExtent:Y,minZoom:Me,maxZoom:X,preventScrolling:J,zoomOnScroll:ce,zoomOnPinch:$e,zoomOnDoubleClick:Xe,panOnScroll:Be,panOnScrollSpeed:me,panOnScrollMode:Fe,panOnDrag:ze,onPaneClick:qe,onPaneMouseEnter:Ge,onPaneMouseMove:We,onPaneMouseLeave:Lt,onPaneScroll:ut,onPaneContextMenu:ft,paneClickDistance:bt,nodeClickDistance:St,onSelectionContextMenu:B,onSelectionStart:U,onSelectionEnd:G,onReconnect:xt,onReconnectStart:Nt,onReconnectEnd:Vt,onEdgeContextMenu:Ue,onEdgeDoubleClick:Ve,onEdgeMouseEnter:je,onEdgeMouseMove:et,onEdgeMouseLeave:_t,reconnectRadius:vt,defaultMarkerColor:ve,noDragClassName:jt,noWheelClassName:zt,noPanClassName:Gt,rfId:di,disableKeyboardA11y:Ae,nodeExtent:he,viewport:we,onViewportChange:Le}),M.jsx(Rtn,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:h,onConnectEnd:g,onClickConnectStart:v,onClickConnectEnd:y,nodesDraggable:_e,nodesConnectable:Te,nodesFocusable:xe,edgesFocusable:Ce,edgesReconnectable:ye,elementsSelectable:be,elevateNodesOnSelect:yt,elevateEdgesOnSelect:Ft,minZoom:Me,maxZoom:X,nodeExtent:he,onNodesChange:Mt,onEdgesChange:wt,snapToGrid:ue,snapGrid:fe,connectionMode:W,translateExtent:Y,connectOnClick:pt,defaultEdgeOptions:Et,fitView:$t,fitViewOptions:on,onNodesDelete:R,onEdgesDelete:N,onDelete:I,onNodeDragStart:w,onNodeDrag:x,onNodeDragStop:T,onSelectionDrag:F,onSelectionDragStart:D,onSelectionDragStop:L,onMove:u,onMoveStart:d,onMoveEnd:f,noPanClassName:Gt,nodeOrigin:ge,rfId:di,autoPanOnConnect:kt,autoPanOnNodeDrag:nt,autoPanSpeed:Rt,onError:Un,connectionRadius:Tt,isValidConnection:xn,selectNodesOnDrag:pe,nodeDragThreshold:te,onBeforeDelete:V,paneClickDistance:bt,debug:Mn}),M.jsx(Ctn,{onSelectionChange:P}),Ht,M.jsx(_tn,{proOptions:Wt,position:Dt}),M.jsx(gtn,{rfId:di,disableKeyboardA11y:Ae})]})})}var Qnn=tke(Knn);function Xnn({dimensions:e,lineWidth:t,variant:n,className:r}){return M.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:sa(["react-flow__background-pattern",n,r])})}function Znn({radius:e,className:t}){return M.jsx("circle",{cx:e,cy:e,r:e,className:sa(["react-flow__background-pattern","dots",t])})}var lp;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(lp||(lp={}));const Jnn={[lp.Dots]:1,[lp.Lines]:1,[lp.Cross]:6},ern=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Tke({id:e,variant:t=lp.Dots,gap:n=20,size:r,lineWidth:i=1,offset:o=0,color:a,bgColor:s,style:l,className:c,patternClassName:u}){const d=m.useRef(null),{transform:f,patternId:p}=ii(ern,Mo),h=r||Jnn[t],g=t===lp.Dots,v=t===lp.Cross,y=Array.isArray(n)?n:[n,n],_=[y[0]*f[2]||1,y[1]*f[2]||1],b=h*f[2],S=Array.isArray(o)?o:[o,o],C=v?[b,b]:_,E=[S[0]*f[2]||1+C[0]/2,S[1]*f[2]||1+C[1]/2],w=`${p}${e||""}`;return M.jsxs("svg",{className:sa(["react-flow__background",c]),style:{...l,...JL,"--xy-background-color-props":s,"--xy-background-pattern-color-props":a},ref:d,"data-testid":"rf__background",children:[M.jsx("pattern",{id:w,x:f[0]%_[0],y:f[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${E[0]},-${E[1]})`,children:g?M.jsx(Znn,{radius:b/2,className:u}):M.jsx(Xnn,{dimensions:C,lineWidth:i,variant:t,className:u})}),M.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${w})`})]})}Tke.displayName="Background";const trn=m.memo(Tke);function nrn(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:M.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function rrn(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:M.jsx("path",{d:"M0 0h32v4.2H0z"})})}function irn(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:M.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function orn(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:M.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function arn(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:M.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function BO({children:e,className:t,...n}){return M.jsx("button",{type:"button",className:sa(["react-flow__controls-button",t]),...n,children:e})}const srn=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom});function Rke({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:o,onZoomOut:a,onFitView:s,onInteractiveChange:l,className:c,children:u,position:d="bottom-left",orientation:f="vertical","aria-label":p="React Flow controls"}){const h=lo(),{isInteractive:g,minZoomReached:v,maxZoomReached:y}=ii(srn,Mo),{zoomIn:_,zoomOut:b,fitView:S}=ZL(),C=()=>{_(),o==null||o()},E=()=>{b(),a==null||a()},w=()=>{S(i),s==null||s()},x=()=>{h.setState({nodesDraggable:!g,nodesConnectable:!g,elementsSelectable:!g}),l==null||l(!g)},T=f==="horizontal"?"horizontal":"vertical";return M.jsxs(nX,{className:sa(["react-flow__controls",T,c]),position:d,style:e,"data-testid":"rf__controls","aria-label":p,children:[t&&M.jsxs(M.Fragment,{children:[M.jsx(BO,{onClick:C,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:y,children:M.jsx(nrn,{})}),M.jsx(BO,{onClick:E,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:v,children:M.jsx(rrn,{})})]}),n&&M.jsx(BO,{className:"react-flow__controls-fitview",onClick:w,title:"fit view","aria-label":"fit view",children:M.jsx(irn,{})}),r&&M.jsx(BO,{className:"react-flow__controls-interactive",onClick:x,title:"toggle interactivity","aria-label":"toggle interactivity",children:g?M.jsx(arn,{}):M.jsx(orn,{})}),u]})}Rke.displayName="Controls";const lrn=m.memo(Rke);function crn({id:e,x:t,y:n,width:r,height:i,style:o,color:a,strokeColor:s,strokeWidth:l,className:c,borderRadius:u,shapeRendering:d,selected:f,onClick:p}){const{background:h,backgroundColor:g}=o||{},v=a||h||g;return M.jsx("rect",{className:sa(["react-flow__minimap-node",{selected:f},c]),x:t,y:n,rx:u,ry:u,width:r,height:i,style:{fill:v,stroke:s,strokeWidth:l},shapeRendering:d,onClick:p?y=>p(y,e):void 0})}const urn=m.memo(crn),drn=e=>e.nodes.map(t=>t.id),SB=e=>e instanceof Function?e:()=>e;function frn({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:o=urn,onClick:a}){const s=ii(drn,Mo),l=SB(t),c=SB(e),u=SB(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return M.jsx(M.Fragment,{children:s.map(f=>M.jsx(mrn,{id:f,nodeColorFunc:l,nodeStrokeColorFunc:c,nodeClassNameFunc:u,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:o,onClick:a,shapeRendering:d},f))})}function prn({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:o,shapeRendering:a,NodeComponent:s,onClick:l}){const{node:c,x:u,y:d,width:f,height:p}=ii(h=>{const g=h.nodeLookup.get(e),{x:v,y}=g.internals.positionAbsolute,{width:_,height:b}=Yp(g);return{node:g,x:v,y,width:_,height:b}},Mo);return!c||c.hidden||!IDe(c)?null:M.jsx(s,{x:u,y:d,width:f,height:p,style:c.style,selected:!!c.selected,className:r(c),color:t(c),borderRadius:i,strokeColor:n(c),strokeWidth:o,shapeRendering:a,onClick:l,id:c.id})}const mrn=m.memo(prn);var hrn=m.memo(frn);const grn=200,vrn=150,_rn=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?RDe(wT(e.nodeLookup),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height}},yrn="react-flow__minimap-desc";function Oke({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:s,bgColor:l,maskColor:c,maskStrokeColor:u,maskStrokeWidth:d,position:f="bottom-right",onClick:p,onNodeClick:h,pannable:g=!1,zoomable:v=!1,ariaLabel:y="React Flow mini map",inversePan:_,zoomStep:b=10,offsetScale:S=5}){const C=lo(),E=m.useRef(null),{boundingRect:w,viewBB:x,rfId:T,panZoom:R,translateExtent:N,flowWidth:I,flowHeight:P}=ii(_rn,Mo),D=(e==null?void 0:e.width)??grn,F=(e==null?void 0:e.height)??vrn,L=w.width/D,B=w.height/F,U=Math.max(L,B),G=U*D,V=U*F,W=S*U,$=w.x-(G-w.width)/2-W,H=w.y-(V-w.height)/2-W,K=G+W*2,re=V+W*2,Q=`${yrn}-${T}`,A=m.useRef(0),k=m.useRef();A.current=U,m.useEffect(()=>{if(E.current&&R)return k.current=Gen({domNode:E.current,panZoom:R,getTransform:()=>C.getState().transform,getViewScale:()=>A.current}),()=>{var oe;(oe=k.current)==null||oe.destroy()}},[R]),m.useEffect(()=>{var oe;(oe=k.current)==null||oe.update({translateExtent:N,width:I,height:P,inversePan:_,pannable:g,zoomStep:b,zoomable:v})},[g,v,_,b,N,I,P]);const Z=p?oe=>{var fe;const[ae,ue]=((fe=k.current)==null?void 0:fe.pointer(oe))||[0,0];p(oe,{x:ae,y:ue})}:void 0,ne=h?m.useCallback((oe,ae)=>{const ue=C.getState().nodeLookup.get(ae);h(oe,ue)},[]):void 0;return M.jsx(nX,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*U:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof a=="string"?a:void 0},className:sa(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:M.jsxs("svg",{width:D,height:F,viewBox:`${$} ${H} ${K} ${re}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":Q,ref:E,onClick:Z,children:[y&&M.jsx("title",{id:Q,children:y}),M.jsx(hrn,{onClick:ne,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:o,nodeClassName:i,nodeStrokeWidth:a,nodeComponent:s}),M.jsx("path",{className:"react-flow__minimap-mask",d:`M${$-W},${H-W}h${K+W*2}v${re+W*2}h${-K-W*2}z
|
||
M${x.x},${x.y}h${x.width}v${x.height}h${-x.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}Oke.displayName="MiniMap";const brn=m.memo(Oke);function Srn({nodeId:e,position:t,variant:n=s1.Handle,className:r,style:i={},children:o,color:a,minWidth:s=10,minHeight:l=10,maxWidth:c=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:d=!1,shouldResize:f,onResizeStart:p,onResize:h,onResizeEnd:g}){const v=oke(),y=typeof e=="string"?e:v,_=lo(),b=m.useRef(null),S=n===s1.Line?"right":"bottom-right",C=t??S,E=m.useRef(null);m.useEffect(()=>{if(!(!b.current||!y))return E.current||(E.current=atn({domNode:b.current,nodeId:y,getStoreItems:()=>{const{nodeLookup:R,transform:N,snapGrid:I,snapToGrid:P,nodeOrigin:D,domNode:F}=_.getState();return{nodeLookup:R,transform:N,snapGrid:I,snapToGrid:P,nodeOrigin:D,paneDomNode:F}},onChange:(R,N)=>{const{triggerNodeChanges:I,nodeLookup:P,parentLookup:D,nodeOrigin:F}=_.getState(),L=[],B={x:R.x,y:R.y},U=P.get(y);if(U&&U.expandParent&&U.parentId){const G=U.origin??F,V=R.width??U.measured.width,W=R.height??U.measured.height,$={id:U.id,parentId:U.parentId,rect:{width:V,height:W,...NDe({x:R.x??U.position.x,y:R.y??U.position.y},{width:V,height:W},U.parentId,P,G)}},H=tX([$],P,D,F);L.push(...H),B.x=R.x?Math.max(G[0]*V,R.x):void 0,B.y=R.y?Math.max(G[1]*W,R.y):void 0}if(B.x!==void 0&&B.y!==void 0){const G={id:y,type:"position",position:{...B}};L.push(G)}if(R.width!==void 0&&R.height!==void 0){const G={id:y,type:"dimensions",resizing:!0,setAttributes:!0,dimensions:{width:R.width,height:R.height}};L.push(G)}for(const G of N){const V={...G,type:"position"};L.push(V)}I(L)},onEnd:()=>{const R={id:y,type:"dimensions",resizing:!1};_.getState().triggerNodeChanges([R])}})),E.current.update({controlPosition:C,boundaries:{minWidth:s,minHeight:l,maxWidth:c,maxHeight:u},keepAspectRatio:d,onResizeStart:p,onResize:h,onResizeEnd:g,shouldResize:f}),()=>{var R;(R=E.current)==null||R.destroy()}},[C,s,l,c,u,d,p,h,g,f]);const w=C.split("-"),x=n===s1.Line?"borderColor":"backgroundColor",T=a?{...i,[x]:a}:i;return M.jsx("div",{className:sa(["react-flow__resize-control","nodrag",...w,n,r]),ref:b,style:T,children:o})}m.memo(Srn);const Ike=_l()(yl(e=>({nodes:[],edges:[],setNodes:t=>e(n=>{const r=typeof t=="function"?t(n.nodes):t;if(r.length<n.nodes.length){const i=n.nodes.filter(a=>!r.find(s=>s.id===a.id)).map(a=>a.id),o=n.edges.filter(a=>!i.includes(a.source)&&!i.includes(a.target));return{nodes:r,edges:o}}return JSON.stringify(r)!==JSON.stringify(n.nodes)?{nodes:r}:n}),setEdges:t=>e(n=>{const r=typeof t=="function"?t(n.edges):t;return JSON.stringify(r)!==JSON.stringify(n.edges)?{edges:r}:n}),clearFlow:()=>e({nodes:[],edges:[]})}),{name:"flow-builder-storage"})),Nke=({data:e})=>{const t=mr(),n={style:{margin:0}},r=()=>{switch(e.formType){case"text":return M.jsx(Jr,{name:"text",label:t.formatMessage({id:"nodes.textField.label"}),...n});case"digit":return M.jsx(KUt,{name:"digit",label:t.formatMessage({id:"nodes.numberField.label"}),...n});case"date":return M.jsx(NS,{name:"date",label:t.formatMessage({id:"nodes.datePicker.label"}),...n});case"select":return M.jsx(o_,{name:"select",label:t.formatMessage({id:"nodes.select.label"}),options:[{label:t.formatMessage({id:"flow.option.1"}),value:"1"},{label:t.formatMessage({id:"flow.option.2"}),value:"2"}],...n});case"checkbox":return M.jsx(Fk.Group,{name:"checkbox",label:t.formatMessage({id:"nodes.checkbox.label"}),options:[t.formatMessage({id:"flow.option.1"}),t.formatMessage({id:"flow.option.2"}),t.formatMessage({id:"flow.option.3"})],...n});case"radio":return M.jsx(Bk.Group,{name:"radio",label:t.formatMessage({id:"nodes.radio.label"}),options:[t.formatMessage({id:"flow.option.1"}),t.formatMessage({id:"flow.option.2"}),t.formatMessage({id:"flow.option.3"})],...n});default:return M.jsx("div",{children:t.formatMessage({id:"nodes.unknown"})})}};return M.jsx(Fs,{size:"small",style:{width:"100%",margin:"8px 0",border:"dashed"},children:M.jsx(Ar,{submitter:!1,layout:"vertical",children:r()})})},Ern=({formType:e,onDelete:t,index:n,total:r,onMove:i})=>{const o=mr();return M.jsx("div",{style:{marginBottom:8,position:"relative"},children:M.jsxs("div",{style:{position:"relative"},children:[M.jsx(Nke,{data:{formType:e}}),M.jsxs("div",{style:{position:"absolute",right:0,top:0,display:"flex",gap:4},children:[n>0&&M.jsx(On,{type:"text",icon:M.jsx(rIe,{}),size:"small",onClick:()=>i("up"),title:o.formatMessage({id:"flow.moveUp"})}),n<r-1&&M.jsx(On,{type:"text",icon:M.jsx(nIe,{}),size:"small",onClick:()=>i("down"),title:o.formatMessage({id:"flow.moveDown"})}),M.jsx(On,{type:"text",icon:M.jsx(k_,{}),size:"small",onClick:t,title:o.formatMessage({id:"flow.delete"})})]})]})})},Crn=({id:e,data:t})=>{var c;const n=mr(),r=u=>{u.preventDefault(),u.dataTransfer.dropEffect="move"},i=u=>{var p;u.preventDefault(),u.stopPropagation();const d=u.dataTransfer.getData("application/reactflow"),f=u.dataTransfer.getData("form-type");d==="form"&&((p=t.onChildAdd)==null||p.call(t,e,{id:`form-${Date.now()}`,type:"form",formType:f||"text"}))},o=(u,d)=>{const f=[...t.children||[]],p=f.findIndex(g=>g.id===u),h=d==="up"?p-1:p+1;if(h>=0&&h<f.length){const[g]=f.splice(p,1);f.splice(h,0,g),window.dispatchEvent(new CustomEvent("flow-node-update",{detail:{nodeId:e,data:{...t,children:f}}}))}},a=()=>{window.dispatchEvent(new CustomEvent("flow-delete-node",{detail:{nodeId:e,selectedNodeId:e}}))},s=()=>{console.log("handleRun"),window.dispatchEvent(new CustomEvent("flow-start-chat",{detail:{nodeId:e}}))},l=()=>{console.log("handleCopy",e),window.dispatchEvent(new CustomEvent("flow-copy-node",{detail:{nodeId:e}}))};return M.jsxs(Fs,{style:{width:300,minHeight:120,border:"1px solid"},onDragOver:r,onDrop:i,extra:M.jsxs("div",{style:{display:"flex",gap:4},children:[M.jsx(On,{type:"text",icon:M.jsx(jq,{}),size:"small",onClick:u=>{var d;u.stopPropagation(),(d=t.onPropertyClick)==null||d.call(t)},title:n.formatMessage({id:"flow.properties"})}),M.jsx(On,{type:"text",icon:M.jsx(Uq,{}),size:"small",onClick:s,title:n.formatMessage({id:"flow.run"})}),M.jsx(On,{type:"text",icon:M.jsx(qgt,{}),size:"small",onClick:l,title:n.formatMessage({id:"flow.copy"})}),M.jsx(On,{type:"text",icon:M.jsx(k_,{}),size:"small",onClick:a,title:n.formatMessage({id:"flow.delete"})})]}),children:[M.jsx(d_,{type:"target",position:Qn.Top}),M.jsx("div",{children:t.title||n.formatMessage({id:"flow.parentNode"})}),M.jsx("div",{className:"node-children",style:{padding:"8px 0"},children:(c=t.children)==null?void 0:c.map((u,d)=>{var f;return M.jsx(Ern,{id:u.id,parentId:e,formType:u.formType,index:d,total:((f=t.children)==null?void 0:f.length)||0,onDelete:()=>{var p;return(p=t.onChildDelete)==null?void 0:p.call(t,e,u.id)},onMove:p=>o(u.id,p)},u.id)})}),M.jsx(d_,{type:"source",position:Qn.Bottom})]})},wrn=()=>{const e=mr(),{isDarkMode:t}=cc(),n=()=>{var r;console.log("handleRun"),(r=window.bytedesk)==null||r.showChat()};return M.jsxs(Fs,{style:{width:100,minHeight:20,border:"1px solid"},children:[M.jsxs("div",{children:[e.formatMessage({id:"flow.start"}),M.jsx(On,{type:"text",icon:M.jsx(Uq,{}),size:"small",onClick:n,title:e.formatMessage({id:"flow.run"}),style:{marginLeft:8}})]}),M.jsx(d_,{type:"source",position:Qn.Bottom,style:{background:t?"#177ddc":"#1890ff"}})]})};window.flowPropertyClick=null;const xrn=de.memo(({props:e,onPropertyClick:t})=>M.jsx(Crn,{...e,data:{...e.data,onPropertyClick:()=>t({id:e.id,type:e.type,position:e.position,data:e.data})}})),Trn={parent:e=>M.jsx(xrn,{props:e,onPropertyClick:window.flowPropertyClick}),form:Nke,start:wrn},Rrn=({onNodeClick:e,onPropertyClick:t})=>{const{nodes:n,edges:r,setNodes:i,setEdges:o}=Ike(),a=ZL(),s=mr(),{themeMode:l,isDarkMode:c}=cc(),[u,d]=m.useState(l),[f,p]=m.useState(null);m.useEffect(()=>{d(l)},[l]),m.useEffect(()=>{window.flowPropertyClick=t},[t]),m.useEffect(()=>{window.flowInstance=a},[a]),m.useEffect(()=>{const E=w=>{const{nodes:x,edges:T}=w.detail;i(x),o(T)};return window.addEventListener("flow-import",E),()=>{window.removeEventListener("flow-import",E)}},[i,o]),m.useEffect(()=>{n.length>0&&i(n.map(E=>E.type==="parent"?{...E,data:{...E.data,onChildAdd:h,onChildDelete:g}}:E))},[]);const h=m.useCallback((E,w)=>{i(x=>x.map(T=>T.id===E?{...T,data:{...T.data,children:[...T.data.children||[],w],onChildAdd:h,onChildDelete:g}}:T))},[i]),g=m.useCallback((E,w)=>{i(x=>x.map(T=>{var R;return T.id===E?{...T,data:{...T.data,children:(R=T.data.children)==null?void 0:R.filter(N=>N.id!==w),onChildAdd:h,onChildDelete:g}}:T}))},[i]),v=m.useCallback(E=>{if(E.preventDefault(),!E.dataTransfer)return;const w=E.dataTransfer.getData("application/reactflow");if(w!=="parent"&&w!=="form"&&w!=="start")return;const{x,y:T}=a.screenToFlowPosition({x:E.clientX,y:E.clientY});if(w==="start"&&n.some(N=>N.type==="start"))return;const R=n.find(N=>N.type==="start");if(R){const N={left:R.position.x-50,right:R.position.x+50,top:R.position.y-50,bottom:R.position.y+50};if(x>N.left&&x<N.right&&T>N.top&&T<N.bottom)return}if(w==="form"){const N=E.dataTransfer.getData("form-type"),P={id:`node-${Date.now()}`,type:"parent",position:{x,y:T},data:{title:"父节点",description:"",children:[{id:`form-${Date.now()}`,type:"form",formType:N||"text"}],onChildAdd:h,onChildDelete:g}};i(D=>[...D,P])}else i(w==="start"?N=>[...N,{id:`start-${Date.now()}`,type:"start",position:{x,y:T},data:{}}]:N=>[...N,{id:`node-${Date.now()}`,type:w,position:{x,y:T},data:{title:"父节点",description:"",children:[],onChildAdd:h,onChildDelete:g}}])},[a,h,g]),y=m.useCallback(E=>{E.preventDefault(),E.dataTransfer&&(E.dataTransfer.dropEffect="move")},[]),_=m.useCallback(E=>{o(w=>LDe(E,w))},[]),b=m.useCallback(E=>{i(w=>eke(E,w))},[]),S=m.useCallback((E,w)=>{p(w.id),e(w)},[e]),C=m.useCallback(()=>{p(null),window.dispatchEvent(new CustomEvent("flow-node-deselect"))},[]);return m.useEffect(()=>{const E=T=>{const{nodeId:R,data:N}=T.detail;i(n.map(I=>I.id===R?{...I,data:{...I.data,...N}}:I))},w=T=>{const{nodeId:R}=T.detail;console.log("handleCopyNode",R);const N=n.find(I=>I.id===R);if(N){const I=`copy-${R}-${Date.now()}`,P={x:N.position.x+100,y:N.position.y+100};i(D=>[...D,{...N,id:I,position:P}])}},x=T=>{var N;const{nodeId:R}=T.detail;console.log("handleStartChat",R),(N=window.bytedesk)==null||N.showChat()};return window.addEventListener("flow-node-update",E),window.addEventListener("flow-copy-node",w),window.addEventListener("flow-start-chat",x),()=>{window.removeEventListener("flow-node-update",E),window.removeEventListener("flow-copy-node",w),window.removeEventListener("flow-start-chat",x)}},[n,i]),m.useEffect(()=>{const E=w=>{const{nodeId:x}=w.detail;i(T=>{const R=T.filter(N=>N.id!==x);return(R.length===0||x===w.detail.selectedNodeId)&&window.dispatchEvent(new CustomEvent("flow-node-deselect")),R})};return window.addEventListener("flow-delete-node",E),()=>{window.removeEventListener("flow-delete-node",E)}},[i]),m.useEffect(()=>{n.length===0&&i([{id:"start-node",type:"start",position:{x:100,y:100},data:{}}])},[]),M.jsx("div",{style:{width:"100%",height:"100%"},children:M.jsxs(Qnn,{nodes:n.map(E=>({...E,style:{...E.style,border:E.id===f?`2px solid ${c?"#177ddc":"#1890ff"}`:void 0,boxShadow:E.id===f?`0 0 8px ${c?"#177ddc40":"#1890ff40"}`:void 0}})),edges:r,nodeTypes:Trn,onConnect:_,onNodesChange:b,onNodeClick:S,onPaneClick:C,onDrop:v,onDragOver:y,fitView:!1,defaultViewport:{x:0,y:0,zoom:1},"aria-label":s.formatMessage({id:"flow.canvas.label"}),colorMode:u,children:[M.jsx(trn,{bgColor:c?"#322F2FFF":"#F5F2F2FF",variant:lp.Dots,gap:12,size:1}),M.jsx(lrn,{}),M.jsx(brn,{})]})})},Orn=({onNodeClick:e,onPropertyClick:t})=>M.jsx("div",{style:{width:"100%",height:"100%"},children:M.jsx(xke,{children:M.jsx(Rrn,{onNodeClick:e,onPropertyClick:t})})}),Irn=({selectedNode:e,onNodeUpdate:t,onChildUpdate:n,onChildDelete:r})=>{var d;const i=mr(),[o]=hr.useForm(),a=()=>{e&&o.setFieldsValue({title:e.data.title,description:e.data.description})},s=async()=>{try{const f=await o.validateFields();e&&t(e.id,f)}catch(f){console.error("Validate Failed:",f)}};if(!e)return null;const l=f=>{const p={...e.data,...f};t(e.id,p)},c=(f,p,h)=>{n(f,p,h)},u=(f,p)=>{r(f,p)};return M.jsx("div",{className:"property-panel",children:M.jsx(Fs,{title:i.formatMessage({id:"propertyPanel.settings"}),extra:M.jsxs(Zc,{children:[M.jsx(On,{icon:M.jsx(E_t,{}),onClick:a,title:i.formatMessage({id:"propertyPanel.reset"}),children:i.formatMessage({id:"propertyPanel.reset"})}),M.jsx(On,{type:"primary",icon:M.jsx(aIe,{}),onClick:s,title:i.formatMessage({id:"propertyPanel.save"}),children:i.formatMessage({id:"propertyPanel.save"})})]}),children:M.jsx(hr,{form:o,layout:"vertical",initialValues:{title:e==null?void 0:e.data.title,description:e==null?void 0:e.data.description},children:e&&M.jsxs(M.Fragment,{children:[M.jsx(hr.Item,{label:i.formatMessage({id:"propertyPanel.nodeId"}),name:"id",children:M.jsx(Hr,{value:e.id,disabled:!0})}),M.jsx(hr.Item,{label:i.formatMessage({id:"propertyPanel.nodeType"}),name:"type",children:M.jsx(Hr,{value:e.type,disabled:!0})}),M.jsx(hr.Item,{label:i.formatMessage({id:"propertyPanel.nodeName"}),name:"title",children:M.jsx(Hr,{placeholder:i.formatMessage({id:"propertyPanel.placeholder.name"}),defaultValue:e.data.title,onChange:f=>l({title:f.target.value})})}),M.jsx(hr.Item,{label:i.formatMessage({id:"propertyPanel.nodeDesc"}),name:"description",children:M.jsx(Hr.TextArea,{placeholder:i.formatMessage({id:"propertyPanel.placeholder.desc"}),defaultValue:e.data.description,onChange:f=>l({description:f.target.value})})}),(d=e.data.children)==null?void 0:d.map(f=>M.jsxs(Fs,{size:"small",title:i.formatMessage({id:"propertyPanel.componentType"}),extra:M.jsx(On,{type:"text",icon:M.jsx(k_,{}),onClick:()=>u(e.id,f.id),title:i.formatMessage({id:"flow.delete"})}),children:[M.jsx(hr.Item,{label:i.formatMessage({id:"propertyPanel.labelName"}),children:M.jsx(Hr,{placeholder:i.formatMessage({id:"propertyPanel.placeholder.label"}),defaultValue:f.label,onChange:p=>c(e.id,f.id,{label:p.target.value})})}),(f.formType==="select"||f.formType==="checkbox"||f.formType==="radio")&&M.jsx(hr.Item,{label:i.formatMessage({id:"propertyPanel.options"}),children:M.jsx(md,{mode:"tags",style:{width:"100%"},placeholder:i.formatMessage({id:"propertyPanel.placeholder.options"}),defaultValue:f.options,onChange:p=>c(e.id,f.id,{options:p})})})]},f.id))]})})})})};function sde(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sde(Object(n),!0).forEach(function(r){ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sde(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nrn(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(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 EB={};function Mrn(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return EB[t]||(EB[t]=Nrn(e)),EB[t]}function Arn(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"}),i=Mrn(r);return i.reduce(function(o,a){return cb(cb({},o),n[a])},t)}function lde(e){return e.join(" ")}function Prn(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return Mke({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Mke(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var d=Prn(n,o),f;if(!o)f=cb(cb({},s),{},{className:lde(s.className)});else{var p=Object.keys(n).reduce(function(y,_){return _.split(".").forEach(function(b){y.includes(b)||y.push(b)}),y},[]),h=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&h.concat(s.className.filter(function(y){return!p.includes(y)}));f=cb(cb({},s),{},{className:lde(g)||void 0,style:Arn(s.className,Object.assign({},s.style,i),n)})}var v=d(t.children);return de.createElement(c,Qe({key:a},f),v)}}const Drn=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var krn=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function cde(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cde(Object(n),!0).forEach(function(r){ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cde(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Lrn=/\n/g;function $rn(e){return e.match(Lrn)}function Frn(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var a=o+n;return de.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(a):r},"".concat(a,`
|
||
`))})}function Brn(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,a=o===void 0?{}:o,s=e.startingLineNumber;return de.createElement("code",{style:Object.assign({},n,i)},Frn({lines:t.replace(/\n$/,"").split(`
|
||
`),style:a,startingLineNumber:s}))}function Urn(e){return"".concat(e.toString().length,".25em")}function Ake(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 Pke(e,t,n){var r={display:"inline-block",minWidth:Urn(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=eh(eh({},r),i);return o}function xN(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=a===void 0?{}:a,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,p=f===void 0?!1:f,h=p?eh({},typeof s=="function"?s(n):s):{};if(h.className=h.className?[].concat(at(h.className.trim().split(/\s+/)),at(c)):c,n&&o){var g=Pke(r,n,i);t.unshift(Ake(n,g))}return d&u&&(h.style=eh({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:t}}function Dke(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;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(xN({children:[i],className:at(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);Dke(i.children,o).forEach(function(a){return n.push(a)})}}return n}function jrn(e,t,n,r,i,o,a,s,l){var c,u=Dke(e.value),d=[],f=-1,p=0;function h(C,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return xN({children:C,lineNumber:E,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:w,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function g(C,E){if(r&&E&&i){var w=Pke(s,E,a);C.unshift(Ake(E,w))}return C}function v(C,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||w.length>0?h(C,E,w):g(C,E)}for(var y=function(){var E=u[p],w=E.children[0].value,x=$rn(w);if(x){var T=w.split(`
|
||
`);T.forEach(function(R,N){var I=r&&d.length+o,P={type:"text",value:"".concat(R,`
|
||
`)};if(N===0){var D=u.slice(f+1,p).concat(xN({children:[P],className:E.properties.className})),F=v(D,I);d.push(F)}else if(N===T.length-1){var L=u[p+1]&&u[p+1].children&&u[p+1].children[0],B={type:"text",value:"".concat(R)};if(L){var U=xN({children:[B],className:E.properties.className});u.splice(p+1,0,U)}else{var G=[B],V=v(G,I,E.properties.className);d.push(V)}}else{var W=[P],$=v(W,I,E.properties.className);d.push($)}}),f=p}p++};p<u.length;)y();if(f!==u.length-1){var _=u.slice(f+1,u.length);if(_&&_.length){var b=r&&d.length+o,S=v(_,b);d.push(S)}}return t?d:(c=[]).concat.apply(c,d)}function Hrn(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Mke({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function kke(e){return e&&typeof e.highlightAuto<"u"}function zrn(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(kke(t)){var o=Drn(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function Vrn(e,t){return function(r){var i=r.language,o=r.children,a=r.style,s=a===void 0?t:a,l=r.customStyle,c=l===void 0?{}:l,u=r.codeTagProps,d=u===void 0?{className:i?"language-".concat(i):void 0,style:eh(eh({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:u,f=r.useInlineStyles,p=f===void 0?!0:f,h=r.showLineNumbers,g=h===void 0?!1:h,v=r.showInlineLineNumbers,y=v===void 0?!0:v,_=r.startingLineNumber,b=_===void 0?1:_,S=r.lineNumberContainerStyle,C=r.lineNumberStyle,E=C===void 0?{}:C,w=r.wrapLines,x=r.wrapLongLines,T=x===void 0?!1:x,R=r.lineProps,N=R===void 0?{}:R,I=r.renderer,P=r.PreTag,D=P===void 0?"pre":P,F=r.CodeTag,L=F===void 0?"code":F,B=r.code,U=B===void 0?(Array.isArray(o)?o[0]:o)||"":B,G=r.astGenerator,V=It(r,krn);G=G||e;var W=g?de.createElement(Brn,{containerStyle:S,codeStyle:d.style||{},numberStyle:E,startingLineNumber:b,codeString:U}):null,$=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},H=kke(G)?"hljs":"prismjs",K=p?Object.assign({},V,{style:Object.assign({},$,c)}):Object.assign({},V,{className:V.className?"".concat(H," ").concat(V.className):H,style:Object.assign({},c)});if(T?d.style=eh({whiteSpace:"pre-wrap"},d.style):d.style=eh({whiteSpace:"pre"},d.style),!G)return de.createElement(D,K,W,de.createElement(L,d,U));(w===void 0&&I||T)&&(w=!0),I=I||Hrn;var re=[{type:"text",value:U}],Q=zrn({astGenerator:G,language:i,code:U,defaultCodeValue:re});Q.language===null&&(Q.value=re);var A=Q.value.length;A===1&&Q.value[0].type==="text"&&(A=Q.value[0].value.split(`
|
||
`).length);var k=A+b,Z=jrn(Q,w,N,g,y,b,k,E,T);return de.createElement(D,K,de.createElement(L,d,!y&&W,I({rows:Z,stylesheet:s,useInlineStyles:p})))}}const Grn={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#F0F0F0",color:"#444"},"hljs-subst":{color:"#444"},"hljs-comment":{color:"#888888"},"hljs-keyword":{fontWeight:"bold"},"hljs-attribute":{fontWeight:"bold"},"hljs-selector-tag":{fontWeight:"bold"},"hljs-meta-keyword":{fontWeight:"bold"},"hljs-doctag":{fontWeight:"bold"},"hljs-name":{fontWeight:"bold"},"hljs-type":{color:"#880000"},"hljs-string":{color:"#880000"},"hljs-number":{color:"#880000"},"hljs-selector-id":{color:"#880000"},"hljs-selector-class":{color:"#880000"},"hljs-quote":{color:"#880000"},"hljs-template-tag":{color:"#880000"},"hljs-deletion":{color:"#880000"},"hljs-title":{color:"#880000",fontWeight:"bold"},"hljs-section":{color:"#880000",fontWeight:"bold"},"hljs-regexp":{color:"#BC6060"},"hljs-symbol":{color:"#BC6060"},"hljs-variable":{color:"#BC6060"},"hljs-template-variable":{color:"#BC6060"},"hljs-link":{color:"#BC6060"},"hljs-selector-attr":{color:"#BC6060"},"hljs-selector-pseudo":{color:"#BC6060"},"hljs-literal":{color:"#78A960"},"hljs-built_in":{color:"#397300"},"hljs-bullet":{color:"#397300"},"hljs-code":{color:"#397300"},"hljs-addition":{color:"#397300"},"hljs-meta":{color:"#1f7199"},"hljs-meta-string":{color:"#4d99bf"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var US={};function iX(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];typeof n=="object"&&!Object.isFrozen(n)&&iX(n)}),e}var Lke=iX,Wrn=iX;Lke.default=Wrn;let ude=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Nb(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function th(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Yrn="</span>",dde=e=>!!e.kind;class qrn{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Nb(t)}openNode(t){if(!dde(t))return;let n=t.kind;t.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(t){dde(t)&&(this.buffer+=Yrn)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class oX{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n={kind:t,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{oX._collapse(n)}))}}class Krn extends oX{constructor(t){super(),this.options=t}addKeyword(t,n){t!==""&&(this.openNode(n),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,n){const r=t.root;r.kind=n,r.sublanguage=!0,this.add(r)}toHTML(){return new qrn(this,this.options).value()}finalize(){return!0}}function Qrn(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function kw(e){return e?typeof e=="string"?e:e.source:null}function Xrn(...e){return e.map(n=>kw(n)).join("")}function Zrn(...e){return"("+e.map(n=>kw(n)).join("|")+")"}function Jrn(e){return new RegExp(e.toString()+"|").exec("").length-1}function ein(e,t){const n=e&&e.exec(t);return n&&n.index===0}const tin=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function nin(e,t="|"){let n=0;return e.map(r=>{n+=1;const i=n;let o=kw(r),a="";for(;o.length>0;){const s=tin.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const rin=/\b\B/,$ke="[a-zA-Z]\\w*",aX="[a-zA-Z_]\\w*",sX="\\b\\d+(\\.\\d+)?",Fke="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Bke="\\b(0b[01]+)",iin="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",oin=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Xrn(t,/.*\b/,e.binary,/\b.*/)),th({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Lw={begin:"\\\\[\\s\\S]",relevance:0},ain={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Lw]},sin={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Lw]},Uke={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},t$=function(e,t,n={}){const r=th({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(Uke),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},lin=t$("//","$"),cin=t$("/\\*","\\*/"),uin=t$("#","$"),din={className:"number",begin:sX,relevance:0},fin={className:"number",begin:Fke,relevance:0},pin={className:"number",begin:Bke,relevance:0},min={className:"number",begin:sX+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},hin={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Lw,{begin:/\[/,end:/\]/,relevance:0,contains:[Lw]}]}]},gin={className:"title",begin:$ke,relevance:0},vin={className:"title",begin:aX,relevance:0},_in={begin:"\\.\\s*"+aX,relevance:0},yin=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var UO=Object.freeze({__proto__:null,MATCH_NOTHING_RE:rin,IDENT_RE:$ke,UNDERSCORE_IDENT_RE:aX,NUMBER_RE:sX,C_NUMBER_RE:Fke,BINARY_NUMBER_RE:Bke,RE_STARTERS_RE:iin,SHEBANG:oin,BACKSLASH_ESCAPE:Lw,APOS_STRING_MODE:ain,QUOTE_STRING_MODE:sin,PHRASAL_WORDS_MODE:Uke,COMMENT:t$,C_LINE_COMMENT_MODE:lin,C_BLOCK_COMMENT_MODE:cin,HASH_COMMENT_MODE:uin,NUMBER_MODE:din,C_NUMBER_MODE:fin,BINARY_NUMBER_MODE:pin,CSS_NUMBER_MODE:min,REGEXP_MODE:hin,TITLE_MODE:gin,UNDERSCORE_TITLE_MODE:vin,METHOD_GUARD:_in,END_SAME_AS_BEGIN:yin});function bin(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Sin(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=bin,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Ein(e,t){Array.isArray(e.illegal)&&(e.illegal=Zrn(...e.illegal))}function Cin(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function win(e,t){e.relevance===void 0&&(e.relevance=1)}const xin=["of","and","for","in","not","or","if","then","parent","list","value"],Tin="keyword";function jke(e,t,n=Tin){const r={};return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,jke(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,Rin(l[0],l[1])]})}}function Rin(e,t){return t?Number(t):Oin(e)?0:1}function Oin(e){return xin.includes(e.toLowerCase())}function Iin(e,{plugins:t}){function n(s,l){return new RegExp(kw(s),"m"+(e.case_insensitive?"i":"")+(l?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,l]),this.matchAt+=Jrn(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(c=>c[1]);this.matcherRe=n(nin(l),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(l);if(!c)return null;const u=c.findIndex((f,p)=>p>0&&f!==void 0),d=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,d)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const c=new r;return this.rules.slice(l).forEach(([u,d])=>c.addRule(u,d)),c.compile(),this.multiRegexes[l]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,c){this.rules.push([l,c]),c.type==="begin"&&this.count++}exec(l){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(l);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,u=d.exec(l)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function o(s){const l=new i;return s.contains.forEach(c=>l.addRule(c.begin,{rule:c,type:"begin"})),s.terminatorEnd&&l.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&l.addRule(s.illegal,{type:"illegal"}),l}function a(s,l){const c=s;if(s.isCompiled)return c;[Cin].forEach(d=>d(s,l)),e.compilerExtensions.forEach(d=>d(s,l)),s.__beforeBegin=null,[Sin,Ein,win].forEach(d=>d(s,l)),s.isCompiled=!0;let u=null;if(typeof s.keywords=="object"&&(u=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=jke(s.keywords,e.case_insensitive)),s.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||s.lexemes||/\w+/,c.keywordPatternRe=n(u,!0),l&&(s.begin||(s.begin=/\B|\b/),c.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(c.endRe=n(s.end)),c.terminatorEnd=kw(s.end)||"",s.endsWithParent&&l.terminatorEnd&&(c.terminatorEnd+=(s.end?"|":"")+l.terminatorEnd)),s.illegal&&(c.illegalRe=n(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(d){return Nin(d==="self"?s:d)})),s.contains.forEach(function(d){a(d,c)}),s.starts&&a(s.starts,l),c.matcher=o(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=th(e.classNameAliases||{}),a(e)}function Hke(e){return e?e.endsWithParent||Hke(e.starts):!1}function Nin(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return th(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Hke(e)?th(e,{starts:e.starts?th(e.starts):null}):Object.isFrozen(e)?th(e):e}var Min="10.7.3";function Ain(e){return!!(e||e==="")}function Pin(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,Nb(this.code);let r={};return this.autoDetect?(r=e.highlightAuto(this.code),this.detectedLanguage=r.language):(r=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),r.value},autoDetect(){return!this.language||Ain(this.autodetect)},ignoreIllegals(){return!0}},render(r){return r("pre",{},[r("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(r){r.component("highlightjs",t)}}}}const Din={"after:highlightElement":({el:e,result:t,text:n})=>{const r=fde(e);if(!r.length)return;const i=document.createElement("div");i.innerHTML=t.value,t.value=kin(r,fde(i),n)}};function vV(e){return e.nodeName.toLowerCase()}function fde(e){const t=[];return function n(r,i){for(let o=r.firstChild;o;o=o.nextSibling)o.nodeType===3?i+=o.nodeValue.length:o.nodeType===1&&(t.push({event:"start",offset:i,node:o}),i=n(o,i),vV(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}));return i}(e,0),t}function kin(e,t,n){let r=0,i="";const o=[];function a(){return!e.length||!t.length?e.length?e:t:e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:t[0].event==="start"?e:t}function s(u){function d(f){return" "+f.nodeName+'="'+Nb(f.value)+'"'}i+="<"+vV(u)+[].map.call(u.attributes,d).join("")+">"}function l(u){i+="</"+vV(u)+">"}function c(u){(u.event==="start"?s:l)(u.node)}for(;e.length||t.length;){let u=a();if(i+=Nb(n.substring(r,u[0].offset)),r=u[0].offset,u===e){o.reverse().forEach(l);do c(u.splice(0,1)[0]),u=a();while(u===e&&u.length&&u[0].offset===r);o.reverse().forEach(s)}else u[0].event==="start"?o.push(u[0].node):o.pop(),c(u.splice(0,1)[0])}return i+Nb(n.substr(r))}const pde={},CB=e=>{console.error(e)},mde=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Cc=(e,t)=>{pde[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),pde[`${e}/${t}`]=!0)},wB=Nb,hde=th,gde=Symbol("nomatch"),Lin=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o=/(^(<[^>]+>|\t|)+|\n)/gm,a="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:Krn};function c(H){return l.noHighlightRe.test(H)}function u(H){let K=H.className+" ";K+=H.parentNode?H.parentNode.className:"";const re=l.languageDetectRe.exec(K);if(re){const Q=F(re[1]);return Q||(mde(a.replace("{}",re[1])),mde("Falling back to no-highlight mode for this block.",H)),Q?re[1]:"no-highlight"}return K.split(/\s+/).find(Q=>c(Q)||F(Q))}function d(H,K,re,Q){let A="",k="";typeof K=="object"?(A=H,re=K.ignoreIllegals,k=K.language,Q=void 0):(Cc("10.7.0","highlight(lang, code, ...args) has been deprecated."),Cc("10.7.0",`Please use highlight(code, options) instead.
|
||
https://github.com/highlightjs/highlight.js/issues/2277`),k=H,A=K);const Z={code:A,language:k};V("before:highlight",Z);const ne=Z.result?Z.result:f(Z.language,Z.code,re,Q);return ne.code=Z.code,V("after:highlight",ne),ne}function f(H,K,re,Q){function A(ve,ce){const $e=xe.case_insensitive?ce[0].toLowerCase():ce[0];return Object.prototype.hasOwnProperty.call(ve.keywords,$e)&&ve.keywords[$e]}function k(){if(!ye.keywords){Ee.addText(Me);return}let ve=0;ye.keywordPatternRe.lastIndex=0;let ce=ye.keywordPatternRe.exec(Me),$e="";for(;ce;){$e+=Me.substring(ve,ce.index);const Be=A(ye,ce);if(Be){const[me,Fe]=Be;if(Ee.addText($e),$e="",X+=Fe,me.startsWith("_"))$e+=ce[0];else{const Xe=xe.classNameAliases[me]||me;Ee.addKeyword(ce[0],Xe)}}else $e+=ce[0];ve=ye.keywordPatternRe.lastIndex,ce=ye.keywordPatternRe.exec(Me)}$e+=Me.substr(ve),Ee.addText($e)}function Z(){if(Me==="")return;let ve=null;if(typeof ye.subLanguage=="string"){if(!t[ye.subLanguage]){Ee.addText(Me);return}ve=f(ye.subLanguage,Me,!0,be[ye.subLanguage]),be[ye.subLanguage]=ve.top}else ve=h(Me,ye.subLanguage.length?ye.subLanguage:null);ye.relevance>0&&(X+=ve.relevance),Ee.addSublanguage(ve.emitter,ve.language)}function ne(){ye.subLanguage!=null?Z():k(),Me=""}function oe(ve){return ve.className&&Ee.openNode(xe.classNameAliases[ve.className]||ve.className),ye=Object.create(ve,{parent:{value:ye}}),ye}function ae(ve,ce,$e){let Be=ein(ve.endRe,$e);if(Be){if(ve["on:end"]){const me=new ude(ve);ve["on:end"](ce,me),me.isMatchIgnored&&(Be=!1)}if(Be){for(;ve.endsParent&&ve.parent;)ve=ve.parent;return ve}}if(ve.endsWithParent)return ae(ve.parent,ce,$e)}function ue(ve){return ye.matcher.regexIndex===0?(Me+=ve[0],1):(he=!0,0)}function fe(ve){const ce=ve[0],$e=ve.rule,Be=new ude($e),me=[$e.__beforeBegin,$e["on:begin"]];for(const Fe of me)if(Fe&&(Fe(ve,Be),Be.isMatchIgnored))return ue(ce);return $e&&$e.endSameAsBegin&&($e.endRe=Qrn(ce)),$e.skip?Me+=ce:($e.excludeBegin&&(Me+=ce),ne(),!$e.returnBegin&&!$e.excludeBegin&&(Me=ce)),oe($e),$e.returnBegin?0:ce.length}function se(ve){const ce=ve[0],$e=K.substr(ve.index),Be=ae(ye,ve,$e);if(!Be)return gde;const me=ye;me.skip?Me+=ce:(me.returnEnd||me.excludeEnd||(Me+=ce),ne(),me.excludeEnd&&(Me=ce));do ye.className&&Ee.closeNode(),!ye.skip&&!ye.subLanguage&&(X+=ye.relevance),ye=ye.parent;while(ye!==Be.parent);return Be.starts&&(Be.endSameAsBegin&&(Be.starts.endRe=Be.endRe),oe(Be.starts)),me.returnEnd?0:ce.length}function pe(){const ve=[];for(let ce=ye;ce!==xe;ce=ce.parent)ce.className&&ve.unshift(ce.className);ve.forEach(ce=>Ee.openNode(ce))}let _e={};function Te(ve,ce){const $e=ce&&ce[0];if(Me+=ve,$e==null)return ne(),0;if(_e.type==="begin"&&ce.type==="end"&&_e.index===ce.index&&$e===""){if(Me+=K.slice(ce.index,ce.index+1),!i){const Be=new Error("0 width match regex");throw Be.languageName=H,Be.badRule=_e.rule,Be}return 1}if(_e=ce,ce.type==="begin")return fe(ce);if(ce.type==="illegal"&&!re){const Be=new Error('Illegal lexeme "'+$e+'" for mode "'+(ye.className||"<unnamed>")+'"');throw Be.mode=ye,Be}else if(ce.type==="end"){const Be=se(ce);if(Be!==gde)return Be}if(ce.type==="illegal"&&$e==="")return 1;if(J>1e5&&J>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Me+=$e,$e.length}const xe=F(H);if(!xe)throw CB(a.replace("{}",H)),new Error('Unknown language: "'+H+'"');const ge=Iin(xe,{plugins:r});let Ce="",ye=Q||ge;const be={},Ee=new l.__emitter(l);pe();let Me="",X=0,Y=0,J=0,he=!1;try{for(ye.matcher.considerAll();;){J++,he?he=!1:ye.matcher.considerAll(),ye.matcher.lastIndex=Y;const ve=ye.matcher.exec(K);if(!ve)break;const ce=K.substring(Y,ve.index),$e=Te(ce,ve);Y=ve.index+$e}return Te(K.substr(Y)),Ee.closeAllNodes(),Ee.finalize(),Ce=Ee.toHTML(),{relevance:Math.floor(X),value:Ce,language:H,illegal:!1,emitter:Ee,top:ye}}catch(ve){if(ve.message&&ve.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:ve.message,context:K.slice(Y-100,Y+100),mode:ve.mode},sofar:Ce,relevance:0,value:wB(K),emitter:Ee};if(i)return{illegal:!1,relevance:0,value:wB(K),emitter:Ee,language:H,top:ye,errorRaised:ve};throw ve}}function p(H){const K={relevance:0,emitter:new l.__emitter(l),value:wB(H),illegal:!1,top:s};return K.emitter.addText(H),K}function h(H,K){K=K||l.languages||Object.keys(t);const re=p(H),Q=K.filter(F).filter(B).map(oe=>f(oe,H,!1));Q.unshift(re);const A=Q.sort((oe,ae)=>{if(oe.relevance!==ae.relevance)return ae.relevance-oe.relevance;if(oe.language&&ae.language){if(F(oe.language).supersetOf===ae.language)return 1;if(F(ae.language).supersetOf===oe.language)return-1}return 0}),[k,Z]=A,ne=k;return ne.second_best=Z,ne}function g(H){return l.tabReplace||l.useBR?H.replace(o,K=>K===`
|
||
`?l.useBR?"<br>":K:l.tabReplace?K.replace(/\t/g,l.tabReplace):K):H}function v(H,K,re){const Q=K?n[K]:re;H.classList.add("hljs"),Q&&H.classList.add(Q)}const y={"before:highlightElement":({el:H})=>{l.useBR&&(H.innerHTML=H.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
|
||
`))},"after:highlightElement":({result:H})=>{l.useBR&&(H.value=H.value.replace(/\n/g,"<br>"))}},_=/^(<[^>]+>|\t)+/gm,b={"after:highlightElement":({result:H})=>{l.tabReplace&&(H.value=H.value.replace(_,K=>K.replace(/\t/g,l.tabReplace)))}};function S(H){let K=null;const re=u(H);if(c(re))return;V("before:highlightElement",{el:H,language:re}),K=H;const Q=K.textContent,A=re?d(Q,{language:re,ignoreIllegals:!0}):h(Q);V("after:highlightElement",{el:H,result:A,text:Q}),H.innerHTML=A.value,v(H,re,A.language),H.result={language:A.language,re:A.relevance,relavance:A.relevance},A.second_best&&(H.second_best={language:A.second_best.language,re:A.second_best.relevance,relavance:A.second_best.relevance})}function C(H){H.useBR&&(Cc("10.3.0","'useBR' will be removed entirely in v11.0"),Cc("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=hde(l,H)}const E=()=>{if(E.called)return;E.called=!0,Cc("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(S)};function w(){Cc("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),x=!0}let x=!1;function T(){if(document.readyState==="loading"){x=!0;return}document.querySelectorAll("pre code").forEach(S)}function R(){x&&T()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function N(H,K){let re=null;try{re=K(e)}catch(Q){if(CB("Language definition for '{}' could not be registered.".replace("{}",H)),i)CB(Q);else throw Q;re=s}re.name||(re.name=H),t[H]=re,re.rawDefinition=K.bind(null,e),re.aliases&&L(re.aliases,{languageName:H})}function I(H){delete t[H];for(const K of Object.keys(n))n[K]===H&&delete n[K]}function P(){return Object.keys(t)}function D(H){Cc("10.4.0","requireLanguage will be removed entirely in v11."),Cc("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const K=F(H);if(K)return K;throw new Error("The '{}' language is required, but not loaded.".replace("{}",H))}function F(H){return H=(H||"").toLowerCase(),t[H]||t[n[H]]}function L(H,{languageName:K}){typeof H=="string"&&(H=[H]),H.forEach(re=>{n[re.toLowerCase()]=K})}function B(H){const K=F(H);return K&&!K.disableAutodetect}function U(H){H["before:highlightBlock"]&&!H["before:highlightElement"]&&(H["before:highlightElement"]=K=>{H["before:highlightBlock"](Object.assign({block:K.el},K))}),H["after:highlightBlock"]&&!H["after:highlightElement"]&&(H["after:highlightElement"]=K=>{H["after:highlightBlock"](Object.assign({block:K.el},K))})}function G(H){U(H),r.push(H)}function V(H,K){const re=H;r.forEach(function(Q){Q[re]&&Q[re](K)})}function W(H){return Cc("10.2.0","fixMarkup will be removed entirely in v11.0"),Cc("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),g(H)}function $(H){return Cc("10.7.0","highlightBlock will be removed entirely in v12.0"),Cc("10.7.0","Please use highlightElement now."),S(H)}Object.assign(e,{highlight:d,highlightAuto:h,highlightAll:T,fixMarkup:W,highlightElement:S,highlightBlock:$,configure:C,initHighlighting:E,initHighlightingOnLoad:w,registerLanguage:N,unregisterLanguage:I,listLanguages:P,getLanguage:F,registerAliases:L,requireLanguage:D,autoDetection:B,inherit:hde,addPlugin:G,vuePlugin:Pin(e).VuePlugin}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Min;for(const H in UO)typeof UO[H]=="object"&&Lke(UO[H]);return Object.assign(e,UO),e.addPlugin(y),e.addPlugin(Din),e.addPlugin(b),e};var $in=Lin({}),Fin=$in,zke={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(o,a){return i.apply(null,[o].concat(a))}function i(o){for(var a=1,s=[].slice.call(arguments),l=0,c=o.length,u="",d,f=!1,p,h,g=!1,v,y=function(){return s[a++]},_=function(){for(var b="";/\d/.test(o[l]);)b+=o[l++],d=o[l];return b.length>0?parseInt(b):null};l<c;++l)if(d=o[l],f)switch(f=!1,d=="."?(g=!1,d=o[++l]):d=="0"&&o[l+1]=="."?(g=!0,l+=2,d=o[l]):g=!0,v=_(),d){case"b":u+=parseInt(y(),10).toString(2);break;case"c":p=y(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(y(),10);break;case"f":h=String(parseFloat(y()).toFixed(v||6)),u+=g?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(y());break;case"o":u+="0"+parseInt(y(),10).toString(8);break;case"s":u+=y();break;case"x":u+="0x"+parseInt(y(),10).toString(16);break;case"X":u+="0x"+parseInt(y(),10).toString(16).toUpperCase();break;default:u+=d;break}else d==="%"?f=!0:u+=d;return u}})()})(zke);var Bin=zke.exports,Uin=Bin,Yh=qh(Error),jin=Yh;Yh.eval=qh(EvalError);Yh.range=qh(RangeError);Yh.reference=qh(ReferenceError);Yh.syntax=qh(SyntaxError);Yh.type=qh(TypeError);Yh.uri=qh(URIError);Yh.create=qh;function qh(e){return t.displayName=e.displayName||e.name,t;function t(n){return n&&(n=Uin.apply(null,arguments)),new e(n)}}var Ud=Fin,TN=jin;US.highlight=Vke;US.highlightAuto=zin;US.registerLanguage=Vin;US.listLanguages=Gin;US.registerAlias=Win;qp.prototype.addText=Kin;qp.prototype.addKeyword=Yin;qp.prototype.addSublanguage=qin;qp.prototype.openNode=Qin;qp.prototype.closeNode=Xin;qp.prototype.closeAllNodes=Gke;qp.prototype.finalize=Gke;qp.prototype.toHTML=Zin;var Hin="hljs-";function Vke(e,t,n){var r=Ud.configure({}),i=n||{},o=i.prefix,a;if(typeof e!="string")throw TN("Expected `string` for name, got `%s`",e);if(!Ud.getLanguage(e))throw TN("Unknown language: `%s` is not registered",e);if(typeof t!="string")throw TN("Expected `string` for value, got `%s`",t);if(o==null&&(o=Hin),Ud.configure({__emitter:qp,classPrefix:o}),a=Ud.highlight(t,{language:e,ignoreIllegals:!0}),Ud.configure(r||{}),a.errorRaised)throw a.errorRaised;return{relevance:a.relevance,language:a.language,value:a.emitter.rootNode.children}}function zin(e,t){var n=t||{},r=n.subset||Ud.listLanguages();n.prefix;var i=r.length,o=-1,a,s,l,c;if(typeof e!="string")throw TN("Expected `string` for value, got `%s`",e);for(s={relevance:0,language:null,value:[]},a={relevance:0,language:null,value:[]};++o<i;)c=r[o],Ud.getLanguage(c)&&(l=Vke(c,e,t),l.language=c,l.relevance>s.relevance&&(s=l),l.relevance>a.relevance&&(s=a,a=l));return s.language&&(a.secondBest=s),a}function Vin(e,t){Ud.registerLanguage(e,t)}function Gin(){return Ud.listLanguages()}function Win(e,t){var n=e,r;t&&(n={},n[e]=t);for(r in n)Ud.registerAliases(n[r],{languageName:r})}function qp(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function Yin(e,t){this.openNode(t),this.addText(e),this.closeNode()}function qin(e,t){var n=this.stack,r=n[n.length-1],i=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:i}:i;r.children=r.children.concat(o)}function Kin(e){var t=this.stack,n,r;e!==""&&(n=t[t.length-1],r=n.children[n.children.length-1],r&&r.type==="text"?r.value+=e:n.children.push({type:"text",value:e}))}function Qin(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],i={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(i),t.push(i)}function Xin(){this.stack.pop()}function Zin(){return""}function Gke(){}var xB,vde;function Jin(){if(vde)return xB;vde=1;function e(t){var n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",r="далее ",i="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o=r+i,a="загрузитьизфайла ",s="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",l=a+s,c="разделительстраниц разделительстрок символтабуляции ",u="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",d="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",f="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",p=c+u+d+f,h="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",g="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",v="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",y="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",_="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",b="отображениевремениэлементовпланировщика ",S="типфайлаформатированногодокумента ",C="обходрезультатазапроса типзаписизапроса ",E="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",w="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",x="типизмеренияпостроителязапроса ",T="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",R="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",N="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",I="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",P="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",D="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",F="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",L="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",B="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",U="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",G="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",V=h+g+v+y+_+b+S+C+E+w+x+T+R+N+I+P+D+F+L+B+U+G,W="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ",$="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",H=W+$,K="null истина ложь неопределено",re=t.inherit(t.NUMBER_MODE),Q={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},A={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},k=t.inherit(t.C_LINE_COMMENT_MODE),Z={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:n,"meta-keyword":o+l},contains:[k]},ne={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},oe={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:n,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:n,keyword:"знач",literal:K},contains:[re,Q,A]},k]},t.inherit(t.TITLE_MODE,{begin:n})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:n,keyword:o,built_in:p,class:V,type:H,literal:K},contains:[Z,oe,k,ne,re,Q,A]}}return xB=e,xB}var TB,_de;function eon(){if(_de)return TB;_de=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},o=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],a=r.COMMENT(/;/,/$/),s={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},l={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},c={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},u={className:"symbol",begin:/%[si]/},d={className:"attribute",begin:t(i.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:i.unexpectedChars,keywords:o,contains:[d,a,s,l,c,u,r.QUOTE_STRING_MODE,r.NUMBER_MODE]}}return TB=n,TB}var RB,yde;function ton(){if(yde)return RB;yde=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(...i){return i.map(a=>e(a)).join("")}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t(/"/,n(...o)),end:/"/,keywords:o,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return RB=r,RB}var OB,bde;function non(){if(bde)return OB;bde=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i=/[a-zA-Z_$][a-zA-Z0-9_$]*/,o=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={className:"rest_arg",begin:/[.]{3}/,end:i,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[r.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},r.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[r.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,a]},{begin:t(/:\s*/,o)}]},r.METHOD_GUARD],illegal:/#/}}return OB=n,OB}var IB,Sde;function ron(){if(Sde)return IB;Sde=1;function e(t){const n="\\d(_|\\d)*",r="[eE][-+]?"+n,i=n+"(\\."+n+")?("+r+")?",o="\\w+",s="\\b("+(n+"#"+o+"(\\."+o+")?#("+r+")?")+"|"+i+")",l="[A-Za-z](_?[A-Za-z0-9.])*",c=`[]\\{\\}%#'"`,u=t.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:c,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:s,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:c},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:c},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:c}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:c},d]}}return IB=e,IB}var NB,Ede;function ion(){if(Ede)return NB;Ede=1;function e(t){var n={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},r={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[n,r]};return n.contains=[i],r.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE],relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},n,r,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return NB=e,NB}var MB,Cde;function oon(){if(Cde)return MB;Cde=1;function e(t){const n={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},o={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,o,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},i,r,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}return MB=e,MB}var AB,wde;function aon(){if(wde)return AB;wde=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(...i){return i.map(a=>e(a)).join("")}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o=i.inherit(i.QUOTE_STRING_MODE,{illegal:null}),a={className:"params",begin:/\(/,end:/\)/,contains:["self",i.C_NUMBER_MODE,o]},s=i.COMMENT(/--/,/$/),l=i.COMMENT(/\(\*/,/\*\)/,{contains:["self",s]}),c=[s,l,i.HASH_COMMENT_MODE],u=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],d=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[o,i.C_NUMBER_MODE,{className:"built_in",begin:t(/\b/,n(...d),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t(/\b/,n(...u),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[i.UNDERSCORE_TITLE_MODE,a]},...c],illegal:/\/\/|->|=>|\[\[/}}return AB=r,AB}var PB,xde;function son(){if(xde)return PB;xde=1;function e(t){const n="[A-Za-z_][0-9A-Za-z_]*",r={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},i={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:t.C_NUMBER_RE}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},s={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,a]};a.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,o,t.REGEXP_MODE];const l=a.contains.concat([t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",keywords:r,contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,s,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:l}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return PB=e,PB}var DB,Tde;function lon(){if(Tde)return DB;Tde=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return r("(?=",a,")")}function n(a){return r("(",a,")?")}function r(...a){return a.map(l=>e(l)).join("")}function i(a){const s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",c="[a-zA-Z_]\\w*::",d="("+l+"|"+n(c)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",f={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},v={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(h,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:n(c)+a.IDENT_RE,relevance:0},_=n(c)+a.IDENT_RE+"\\s*\\(",S={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},C={className:"function.dispatch",relevance:0,keywords:S,begin:r(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,a.IDENT_RE,t(/\s*\(/))},E=[C,v,f,s,a.C_BLOCK_COMMENT_MODE,g,h],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:E.concat([{begin:/\(/,end:/\)/,keywords:S,contains:E.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:S,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,g]},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,h,g,f]}]},f,s,a.C_BLOCK_COMMENT_MODE,v]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:S,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(w,x,C,E,[v,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:S,contains:["self",f]},{begin:a.IDENT_RE+"::",keywords:S},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:v,strings:h,keywords:S}}}function o(a){const s={keyword:"boolean byte word String",built_in:"KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD ",_:"setup loop runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",literal:"DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"},l=i(a),c=l.keywords;return c.keyword+=" "+s.keyword,c.literal+=" "+s.literal,c.built_in+=" "+s.built_in,c._+=" "+s._,l.name="Arduino",l.aliases=["ino"],l.supersetOf="cpp",l}return DB=o,DB}var kB,Rde;function con(){if(Rde)return kB;Rde=1;function e(t){const n={variants:[t.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),t.COMMENT("[;@]","$",{relevance:0}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},n,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return kB=e,kB}var LB,Ode;function uon(){if(Ode)return LB;Ode=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return r("(?=",a,")")}function n(a){return r("(",a,")?")}function r(...a){return a.map(l=>e(l)).join("")}function i(...a){return"("+a.map(l=>e(l)).join("|")+")"}function o(a){const s=r(/[A-Z_]/,n(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),l=/[A-Za-z0-9._:-]+/,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=a.inherit(u,{begin:/\(/,end:/\)/}),f=a.inherit(a.APOS_STRING_MODE,{className:"meta-string"}),p=a.inherit(a.QUOTE_STRING_MODE,{className:"meta-string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:l,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[c]},{begin:/'/,end:/'/,contains:[c]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,p,f,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,d,p,f]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},c,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r(/</,t(r(s,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:h}]},{className:"tag",begin:r(/<\//,t(r(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return LB=o,LB}var $B,Ide;function don(){if(Ide)return $B;Ide=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={begin:"^'{3,}[ \\t]*$",relevance:10},o=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],l={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},c={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[r.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),r.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},c,l,...o,...a,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},i,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return $B=n,$B}var FB,Nde;function fon(){if(Nde)return FB;Nde=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",o="get set args call";return{name:"AspectJ",keywords:i,illegal:/<\/|#/,contains:[r.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},r.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:i+" "+o,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t(r.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[r.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:i,illegal:/["\[\]]/,contains:[{begin:t(r.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:i+" "+o,relevance:0},r.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:i,excludeEnd:!0,contains:[{begin:t(r.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:i,contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},r.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return FB=n,FB}var BB,Mde;function pon(){if(Mde)return BB;Mde=1;function e(t){const n={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[n,t.inherit(t.QUOTE_STRING_MODE,{contains:[n]}),t.COMMENT(";","$",{relevance:0}),t.C_BLOCK_COMMENT_MODE,{className:"number",begin:t.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return BB=e,BB}var UB,Ade;function mon(){if(Ade)return UB;Ade=1;function e(t){const n="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",r=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",o="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",a={variants:[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#cs","#ce"),t.COMMENT("#comments-start","#comments-end")]},s={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},c={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},u={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":r},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[l,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,a]},d={className:"symbol",begin:"@[A-z0-9_]+"},f={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[s,l,c]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:n,built_in:o,literal:i},contains:[a,s,l,c,u,d,f]}}return UB=e,UB}var jB,Pde;function hon(){if(Pde)return jB;Pde=1;function e(t){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+t.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),t.C_NUMBER_MODE,t.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return jB=e,jB}var HB,Dde;function gon(){if(Dde)return HB;Dde=1;function e(t){const n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:r},contains:[n,i,t.REGEXP_MODE,t.HASH_COMMENT_MODE,t.NUMBER_MODE]}}return HB=e,HB}var zB,kde;function von(){if(kde)return zB;kde=1;function e(t){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]}]}}return zB=e,zB}var VB,Lde;function _on(){if(Lde)return VB;Lde=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[r.BACKSLASH_ESCAPE]},s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[r.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,i,a]};a.contains.push(l);const c={className:"",begin:/\\"/},u={className:"string",begin:/'/,end:/'/},d={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},r.NUMBER_MODE,i]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=r.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[r.inherit(r.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[p,r.SHEBANG(),h,d,r.HASH_COMMENT_MODE,s,l,c,u,i]}}return VB=n,VB}var GB,$de;function yon(){if($de)return GB;$de=1;function e(t){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[t.QUOTE_STRING_MODE,t.COMMENT("REM","$",{relevance:10}),t.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return GB=e,GB}var WB,Fde;function bon(){if(Fde)return WB;Fde=1;function e(t){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}]}}return WB=e,WB}var YB,Bde;function Son(){if(Bde)return YB;Bde=1;function e(t){const n={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[t.COMMENT(`[^\\[\\]\\.,\\+\\-<> \r
|
||
]`,`[\\[\\]\\.,\\+\\-<> \r
|
||
]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[n]},n]}}return YB=e,YB}var qB,Ude;function Eon(){if(Ude)return qB;Ude=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return r("(?=",a,")")}function n(a){return r("(",a,")?")}function r(...a){return a.map(l=>e(l)).join("")}function i(a){const s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",c="[a-zA-Z_]\\w*::",d="("+l+"|"+n(c)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",f={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},v={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(h,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:n(c)+a.IDENT_RE,relevance:0},_=n(c)+a.IDENT_RE+"\\s*\\(",S={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},C={className:"function.dispatch",relevance:0,keywords:S,begin:r(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,a.IDENT_RE,t(/\s*\(/))},E=[C,v,f,s,a.C_BLOCK_COMMENT_MODE,g,h],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:E.concat([{begin:/\(/,end:/\)/,keywords:S,contains:E.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:S,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,g]},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,h,g,f]}]},f,s,a.C_BLOCK_COMMENT_MODE,v]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:S,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(w,x,C,E,[v,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:S,contains:["self",f]},{begin:a.IDENT_RE+"::",keywords:S},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:v,strings:h,keywords:S}}}function o(a){const s=i(a),l=["c","h"],c=["cc","c++","h++","hpp","hh","hxx","cxx"];return s.disableAutodetect=!0,s.aliases=[],a.getLanguage("c")||s.aliases.push(...l),a.getLanguage("cpp")||s.aliases.push(...c),s}return qB=o,qB}var KB,jde;function Con(){if(jde)return KB;jde=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(i){return n("(",i,")?")}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="("+a+"|"+t(s)+"[a-zA-Z_]\\w*"+t("<[^<>]+>")+")",u={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},i.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(f,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},o,i.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:t(s)+i.IDENT_RE,relevance:0},v=t(s)+i.IDENT_RE+"\\s*\\(",y={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},_=[h,u,o,i.C_BLOCK_COMMENT_MODE,p,f],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:_.concat([{begin:/\(/,end:/\)/,keywords:y,contains:_.concat(["self"]),relevance:0}]),relevance:0},S={className:"function",begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:y,relevance:0},{begin:v,returnBegin:!0,contains:[g],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[o,i.C_BLOCK_COMMENT_MODE,f,p,u,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",o,i.C_BLOCK_COMMENT_MODE,f,p,u]}]},u,o,i.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:y,disableAutodetect:!0,illegal:"</",contains:[].concat(b,S,_,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:y,contains:["self",u]},{begin:i.IDENT_RE+"::",keywords:y},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:h,strings:f,keywords:y}}}return KB=r,KB}var QB,Hde;function won(){if(Hde)return QB;Hde=1;function e(t){const n="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",r="false true",i=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},c={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[o,a]}].concat(i)},u={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[t.TITLE_MODE,c]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:r},illegal:/\/\*/,contains:[o,a,s,l,t.NUMBER_MODE,u,c]}}return QB=e,QB}var XB,zde;function xon(){if(zde)return XB;zde=1;function e(t){return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}return XB=e,XB}var ZB,Vde;function Ton(){if(Vde)return ZB;Vde=1;function e(t){const n="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",r="shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",i="doc by license see throws tagged",o={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:n,relevance:10},a=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[o]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return o.contains=a,{name:"Ceylon",keywords:{keyword:n+" "+r,meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(a)}}return ZB=e,ZB}var JB,Gde;function Ron(){if(Gde)return JB;Gde=1;function e(t){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return JB=e,JB}var e6,Wde;function Oon(){if(Wde)return e6;Wde=1;function e(t){const n="a-zA-Z_\\-!.?+*=<>&#'",r="["+n+"]["+n+"0-9/;:]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={$pattern:r,"builtin-name":i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},a="[-+]?\\d+(\\.\\d+)?",s={begin:r,relevance:0},l={className:"number",begin:a,relevance:0},c=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),u=t.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b(true|false|nil)\b/},f={begin:"[\\[\\{]",end:"[\\]\\}]"},p={className:"comment",begin:"\\^"+r},h=t.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+r},v={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},_={keywords:o,className:"name",begin:r,relevance:0,starts:y},b=[v,c,p,h,u,g,f,l,d,s],S={beginKeywords:i,lexemes:r,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:r,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return v.contains=[t.COMMENT("comment",""),S,_,y],y.contains=b,f.contains=b,h.contains=[f],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[v,c,p,h,u,g,f,l,d]}}return e6=e,e6}var t6,Yde;function Ion(){if(Yde)return t6;Yde=1;function e(t){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return t6=e,t6}var n6,qde;function Non(){if(qde)return n6;qde=1;function e(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while 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 build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group 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 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 build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}return n6=e,n6}var r6,Kde;function Mon(){if(Kde)return r6;Kde=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],n=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],r=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],a=[].concat(i,o,n,r);function s(l){const c=["npm","print"],u=["yes","no","on","off"],d=["then","unless","until","loop","by","when","and","or","is","isnt","not"],f=["var","const","let","function","static"],p=C=>E=>!C.includes(E),h={keyword:e.concat(d).filter(p(f)),literal:t.concat(u),built_in:a.concat(c)},g="[A-Za-z$_][0-9A-Za-z$_]*",v={className:"subst",begin:/#\{/,end:/\}/,keywords:h},y=[l.BINARY_NUMBER_MODE,l.inherit(l.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[l.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,v]},{begin:/"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,v]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[v,l.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+g},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];v.contains=y;const _=l.inherit(l.TITLE_MODE,{begin:g}),b="(\\(.*\\)\\s*)?\\B[-=]>",S={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(y)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:h,illegal:/\/\*/,contains:y.concat([l.COMMENT("###","###"),l.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+g+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[_,S]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[S]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[_]},_]},{begin:g+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return r6=s,r6}var i6,Qde;function Aon(){if(Qde)return i6;Qde=1;function e(t){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[t.QUOTE_STRING_MODE,t.COMMENT("\\(\\*","\\*\\)"),t.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return i6=e,i6}var o6,Xde;function Pon(){if(Xde)return o6;Xde=1;function e(t){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return o6=e,o6}var a6,Zde;function Don(){if(Zde)return a6;Zde=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return r("(?=",o,")")}function n(o){return r("(",o,")?")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a=o.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",u="("+s+"|"+n(l)+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",d={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[o.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},o.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},o.inherit(p,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},a,o.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:n(l)+o.IDENT_RE,relevance:0},y=n(l)+o.IDENT_RE+"\\s*\\(",b={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"_Bool _Complex _Imaginary",_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"],literal:"true false nullptr NULL"},S={className:"function.dispatch",relevance:0,keywords:b,begin:r(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,o.IDENT_RE,t(/\s*\(/))},C=[S,g,d,a,o.C_BLOCK_COMMENT_MODE,h,p],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:C.concat([{begin:/\(/,end:/\)/,keywords:b,contains:C.concat(["self"]),relevance:0}]),relevance:0},w={className:"function",begin:"("+u+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:b,relevance:0},{begin:y,returnBegin:!0,contains:[v],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,h]},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[a,o.C_BLOCK_COMMENT_MODE,p,h,d,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",a,o.C_BLOCK_COMMENT_MODE,p,h,d]}]},d,a,o.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(E,w,S,C,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:b,contains:["self",d]},{begin:o.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},o.TITLE_MODE]}]),exports:{preprocessor:g,strings:p,keywords:b}}}return a6=i,a6}var s6,Jde;function kon(){if(Jde)return s6;Jde=1;function e(t){const n="primitive rsc_template",r="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[t.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:n,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+r.split(" ").join("|")+")\\s+",keywords:r,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},t.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return s6=e,s6}var l6,efe;function Lon(){if(efe)return l6;efe=1;function e(t){const n="(_?[ui](8|16|32|64|128))?",r="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",o="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",s={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:s},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:s};function u(y,_){const b=[{begin:y,end:_}];return b[0].contains=b,b}const d={className:"string",contains:[t.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},f={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},p={begin:"(?!%\\})("+t.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},h={className:"regexp",contains:[t.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"})]},v=[c,d,f,h,p,g,t.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:a}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:a})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[t.HASH_COMMENT_MODE,t.inherit(t.TITLE_MODE,{begin:a})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:o,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:o,endsParent:!0})],relevance:2},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:o}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+r+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+n}],relevance:0}];return l.contains=v,c.contains=v.slice(1),{name:"Crystal",aliases:["cr"],keywords:s,contains:v}}return l6=e,l6}var c6,tfe;function $on(){if(tfe)return c6;tfe=1;function e(t){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],o=["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:o.concat(a),built_in:n,literal:i},l=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=t.inherit(u,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:s},p=t.inherit(f,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,p]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},v=t.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[g,h,u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.C_BLOCK_COMMENT_MODE],p.contains=[v,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[g,h,u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},b=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",S={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},y,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,_,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,_,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+t.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,_],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[y,c,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},S]}}return c6=e,c6}var u6,nfe;function Fon(){if(nfe)return u6;nfe=1;function e(t){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return u6=e,u6}var d6,rfe;function Bon(){if(rfe)return d6;rfe=1;const e=u=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function a(u){return u?typeof u=="string"?u:u.source:null}function s(u){return l("(?=",u,")")}function l(...u){return u.map(f=>a(f)).join("")}function c(u){const d=e(u),f={className:"built_in",begin:/[\w-]+(?=\()/},p={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",g=/@-?\w[\w]*(-\w+)*/,v="[a-zA-Z-][a-zA-Z0-9_-]*",y=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[u.C_BLOCK_COMMENT_MODE,p,u.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+v,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+r.join("|")+")"},{begin:"::("+i.join("|")+")"}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[d.HEXCOLOR,d.IMPORTANT,u.CSS_NUMBER_MODE,...y,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},f]},{begin:s(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:g},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...y,u.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b"}]}}return d6=c,d6}var f6,ife;function Uon(){if(ife)return f6;ife=1;function e(t){const n={$pattern:t.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},r="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",o="0[bB][01_]+",a="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",s="0[xX]"+a,l="([eE][+-]?"+i+")",c="("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+r+l+"?)",u="(0[xX]("+a+"\\."+a+"|\\.?"+a+")[pP][+-]?"+i+")",d="("+r+"|"+o+"|"+s+")",f="("+u+"|"+c+")",p=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,h={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},g={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},v={className:"string",begin:"'("+p+"|.)",end:"'",illegal:"."},_={className:"string",begin:'"',contains:[{begin:p,relevance:0}],end:'"[cwd]?'},b={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},S={className:"string",begin:"`",end:"`[cwd]?"},C={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},E={className:"string",begin:'q"\\{',end:'\\}"'},w={className:"meta",begin:"^#!",end:"$",relevance:5},x={className:"meta",begin:"#(line)",end:"$",relevance:5},T={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},R=t.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:n,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,R,C,_,b,S,E,g,h,v,w,x,T]}}return f6=e,f6}var p6,ofe;function jon(){if(ofe)return p6;ofe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},l={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},f={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};d.contains.push(f),f.contains.push(d);let p=[i,u];return d.contains=d.contains.concat(p),f.contains=f.contains.concat(p),p=p.concat(d,f),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},i,s,d,f,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},a,o,u,l]}}return p6=n,p6}var m6,afe;function Hon(){if(afe)return m6;afe=1;function e(t){const n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},r={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[t.BACKSLASH_ESCAPE,n,r]},{begin:'"""',end:'"""',contains:[t.BACKSLASH_ESCAPE,n,r]},{begin:"'",end:"'",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,n,r]},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,n,r]}]};r.contains=[t.C_NUMBER_MODE,i];const o=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],a=o.map(l=>`${l}?`);return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:o.concat(a).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,t.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),t.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return m6=e,m6}var h6,sfe;function zon(){if(sfe)return h6;sfe=1;function e(t){const n="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",r=[t.C_LINE_COMMENT_MODE,t.COMMENT(/\{/,/\}/,{relevance:0}),t.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},s={className:"string",begin:/(#\d+)+/},l={begin:t.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[t.TITLE_MODE]},c={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[o,s,i].concat(r)},i].concat(r)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:n,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[o,s,t.NUMBER_MODE,a,l,c,i].concat(r)}}return h6=e,h6}var g6,lfe;function Von(){if(lfe)return g6;lfe=1;function e(t){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return g6=e,g6}var v6,cfe;function Gon(){if(cfe)return v6;cfe=1;function e(t){const n={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[n]}]}}return v6=e,v6}var _6,ufe;function Won(){if(ufe)return _6;ufe=1;function e(t){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},t.inherit(t.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return _6=e,_6}var y6,dfe;function Yon(){if(dfe)return y6;dfe=1;function e(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return y6=e,y6}var b6,ffe;function qon(){if(ffe)return b6;ffe=1;function e(t){const n=t.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shift sort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{className:"symbol",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",relevance:0}.begin,end:"goto:eof",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),n]},{className:"number",begin:"\\b\\d+",relevance:0},n]}}return b6=e,b6}var S6,pfe;function Kon(){if(pfe)return S6;pfe=1;function e(t){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},t.HASH_COMMENT_MODE]}}return S6=e,S6}var E6,mfe;function Qon(){if(mfe)return E6;mfe=1;function e(t){const n={className:"string",variants:[t.inherit(t.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},r={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:t.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[t.inherit(n,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},n,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},o={className:"variable",begin:/&[a-z\d_]*\b/},a={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},s={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",begin:"<",end:">",contains:[r,o]},c={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[o,a,s,c,l,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,n]},o,a,s,c,l,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,n,i,{begin:t.IDENT_RE+"::",keywords:""}]}}return E6=e,E6}var C6,hfe;function Xon(){if(hfe)return C6;hfe=1;function e(t){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[t.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return C6=e,C6}var w6,gfe;function Zon(){if(gfe)return w6;gfe=1;function e(t){const n=t.COMMENT(/\(\*/,/\*\)/),r={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},o={begin:/=/,end:/[.;]/,contains:[n,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[n,r,o]}}return w6=e,w6}var x6,vfe;function Jon(){if(vfe)return x6;vfe=1;function e(t){const n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i={$pattern:n,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:i},a={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},s=`[/|([{<"']`,l={className:"string",begin:"~[a-z](?="+s+")",contains:[{endsParent:!0,contains:[{contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},c={className:"string",begin:"~[A-Z](?="+s+")",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},u={className:"string",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},d={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[t.inherit(t.TITLE_MODE,{begin:n,endsParent:!0})]},f=t.inherit(d,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),p=[u,c,l,t.HASH_COMMENT_MODE,f,d,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[u,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},a,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+t.RE_STARTERS_RE+")\\s*",contains:[t.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[a]},{className:"regexp",illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,o],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return o.contains=p,{name:"Elixir",keywords:i,contains:p}}return x6=e,x6}var T6,_fe;function ean(){if(_fe)return T6;_fe=1;function e(t){const n={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]},o={begin:/\{/,end:/\}/,contains:i.contains},a={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,n],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[r,i,o,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]},a,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,r,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}return T6=e,T6}var R6,yfe;function tan(){if(yfe)return R6;yfe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(i){return n("(?=",i,")")}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[i.COMMENT("#","$",{contains:[s]}),i.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),i.COMMENT("^__END__","\\n$")],u={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[i.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[i.BACKSLASH_ESCAPE,u]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:a},v=[d,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[i.inherit(i.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+i.IDENT_RE+"::)?"+i.IDENT_RE,relevance:0}]}].concat(c)},{className:"function",begin:n(/def\s+/,t(o+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[i.inherit(i.TITLE_MODE,{begin:o}),g].concat(c)},{begin:i.IDENT_RE+"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:o}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:a},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=v,g.contains=v;const S=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+>"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",contains:v}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(S).concat(c).concat(v)}}return R6=r,R6}var O6,bfe;function nan(){if(bfe)return O6;bfe=1;function e(t){return{name:"ERB",subLanguage:"xml",contains:[t.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return O6=e,O6}var I6,Sfe;function ran(){if(Sfe)return I6;Sfe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},r.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{begin:t(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return I6=n,I6}var N6,Efe;function ian(){if(Efe)return N6;Efe=1;function e(t){const n="[a-z'][a-zA-Z0-9_']*",r="("+n+":"+n+"|"+n+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},o=t.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},s={begin:"fun\\s+"+n+"/\\d+"},l={begin:r+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:r,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},c={begin:/\{/,end:/\}/,relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},f={begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+t.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={beginKeywords:"fun receive if try case",end:"end",keywords:i};p.contains=[o,s,t.inherit(t.APOS_STRING_MODE,{className:""}),p,l,t.QUOTE_STRING_MODE,a,c,u,d,f];const h=[o,s,p,l,t.QUOTE_STRING_MODE,a,c,u,d,f];l.contains[1].contains=h,c.contains=h,f.contains[1].contains=h;const g=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],v={className:"params",begin:"\\(",end:"\\)",contains:h};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+n+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[v,t.inherit(t.TITLE_MODE,{begin:n})],starts:{end:";|\\.",keywords:i,contains:h}},o,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+t.IDENT_RE,keyword:g.map(y=>`${y}|1.5`).join(" ")},contains:[v]},a,t.QUOTE_STRING_MODE,f,u,d,c,{begin:/\.$/}]}}return N6=e,N6}var M6,Cfe;function oan(){if(Cfe)return M6;Cfe=1;function e(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return M6=e,M6}var A6,wfe;function aan(){if(wfe)return A6;wfe=1;function e(t){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return A6=e,A6}var P6,xfe;function san(){if(xfe)return P6;xfe=1;function e(t){const n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},r={className:"string",variants:[{begin:'"',end:'"'}]},o={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,n,r,o,t.C_NUMBER_MODE]}}return P6=e,P6}var D6,Tfe;function lan(){if(Tfe)return D6;Tfe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={className:"params",begin:"\\(",end:"\\)"},o={variants:[r.COMMENT("!","$",{relevance:0}),r.COMMENT("^C[ ]","$",{relevance:0}),r.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,l={className:"number",variants:[{begin:t(/\b\d+/,/\.(\d*)/,s,a)},{begin:t(/\b\d+/,s,a)},{begin:t(/\.\d+/,s,a)}],relevance:0},c={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[r.UNDERSCORE_TITLE_MODE,i]},u={className:"string",relevance:0,variants:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[u,c,{begin:/^C\s*=(?!=)/,relevance:0},o,l]}}return D6=n,D6}var k6,Rfe;function can(){if(Rfe)return k6;Rfe=1;function e(t){const n={begin:"<",end:">",contains:[t.inherit(t.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},t.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[t.UNDERSCORE_TITLE_MODE,n]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[t.BACKSLASH_ESCAPE]},t.C_LINE_COMMENT_MODE,t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),t.C_NUMBER_MODE]}}return k6=e,k6}var L6,Ofe;function uan(){if(Ofe)return L6;Ofe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(i){return n("(",i,")*")}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},a={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},s={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},l={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},c={begin:"/",end:"/",keywords:o,contains:[l,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,i.C_NUMBER_MODE]},u=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[l,c,{className:"comment",begin:n(u,t(n(/[ ]+/,u))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:o,contains:[i.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},i.COMMENT("^\\*","$"),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[i.COMMENT("^\\*","$"),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,c,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},i.COMMENT("^\\*","$"),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,i.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},a,s]},i.C_NUMBER_MODE,s]}}return L6=r,L6}var $6,Ife;function dan(){if(Ife)return $6;Ife=1;function e(t){const n={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},r=t.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r]},o={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},a=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,o]}],s={className:"title",begin:t.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,h,g){const v=t.inherit({className:"function",beginKeywords:p,end:h,excludeEnd:!0,contains:[].concat(a)},{});return v.contains.push(s),v.contains.push(t.C_NUMBER_MODE),v.contains.push(t.C_BLOCK_COMMENT_MODE),v.contains.push(r),v},c={className:"built_in",begin:"\\b("+n.built_in.split(" ").join("|")+")\\b"},u={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE],relevance:0},d={begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:n,relevance:0,contains:[{beginKeywords:n.keyword},c,{className:"built_in",begin:t.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:n.built_in,literal:n.literal},contains:[t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,c,d,u,"self"]};return d.contains.push(f),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:n,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,r,u,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE,r,f]},{variants:[{begin:t.UNDERSCORE_IDENT_RE+"\\."+t.UNDERSCORE_IDENT_RE},{begin:t.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,o]}}return $6=e,$6}var F6,Nfe;function fan(){if(Nfe)return F6;Nfe=1;function e(t){const n="[A-Z_][A-Z0-9_.]*",r="%",i={$pattern:n,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},o={className:"meta",begin:"([O])([0-9]+)"},a=t.inherit(t.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+t.C_NUMBER_RE}),s=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(/\(/,/\)/),a,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[a],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r},o].concat(s)}}return F6=e,F6}var B6,Mfe;function pan(){if(Mfe)return B6;Mfe=1;function e(t){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},t.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},t.QUOTE_STRING_MODE]}}return B6=e,B6}var U6,Afe;function man(){if(Afe)return U6;Afe=1;function e(t){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return U6=e,U6}var j6,Pfe;function han(){if(Pfe)return j6;Pfe=1;function e(t){return{name:"GML",case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum function constructor delete #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool is_method is_struct is_infinity is_nan is_numeric typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names variable_struct_exists variable_struct_get variable_struct_get_names variable_struct_names_count variable_struct_remove variable_struct_set array_delete array_insert array_length array_length_1d array_length_2d array_height_2d array_equals array_create array_copy array_pop array_push array_resize array_sort random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version timezone_local timezone_utc gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x|0 y|0 xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return j6=e,j6}var H6,Dfe;function gan(){if(Dfe)return H6;Dfe=1;function e(t){const n={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:n,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:t.C_NUMBER_RE+"[i]",relevance:1},t.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,illegal:/["']/}]}]}}return H6=e,H6}var z6,kfe;function van(){if(kfe)return z6;kfe=1;function e(t){return{name:"Golo",keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return z6=e,z6}var V6,Lfe;function _an(){if(Lfe)return V6;Lfe=1;function e(t){return{name:"Gradle",case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}return V6=e,V6}var G6,$fe;function yan(){if($fe)return G6;$fe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return n("(?=",o,")")}function n(...o){return o.map(s=>e(s)).join("")}function r(o,a={}){return a.variants=o,a}function i(o){const a="[A-Za-z0-9_$]+",s=r([o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),l={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[o.BACKSLASH_ESCAPE]},c=r([o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]),u=r([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[o.SHEBANG({binary:"groovy",relevance:10}),s,u,l,c,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},o.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:a+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[s,u,l,c,"self"]},{className:"symbol",begin:"^[ ]*"+t(a+":"),excludeBegin:!0,end:a+":",relevance:0}],illegal:/#|<\//}}return G6=i,G6}var W6,Ffe;function ban(){if(Ffe)return W6;Ffe=1;function e(t){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},t.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}return W6=e,W6}var Y6,Bfe;function San(){if(Bfe)return Y6;Bfe=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return r("(",a,")*")}function n(a){return r("(",a,")?")}function r(...a){return a.map(l=>e(l)).join("")}function i(...a){return"("+a.map(l=>e(l)).join("|")+")"}function o(a){const s={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},l={literal:["true","false","undefined","null"]},c=/""|"[^"]+"/,u=/''|'[^']+'/,d=/\[\]|\[[^\]]+\]/,f=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,p=/(\.|\/)/,h=i(c,u,d,f),g=r(n(/\.|\.\/|\//),h,t(r(p,h))),v=r("(",d,"|",f,")(?==)"),y={begin:g,lexemes:/[\w.\/]+/},_=a.inherit(y,{keywords:l}),b={begin:/\(/,end:/\)/},S={className:"attr",begin:v,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[a.NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,_,b]}}},C={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},E={contains:[a.NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,C,S,_,b],returnEnd:!0},w=a.inherit(y,{className:"name",keywords:s,starts:a.inherit(E,{end:/\)/})});b.contains=[w];const x=a.inherit(y,{keywords:s,className:"name",starts:a.inherit(E,{end:/\}\}/})}),T=a.inherit(y,{keywords:s,className:"name"}),R=a.inherit(y,{className:"name",keywords:s,starts:a.inherit(E,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},a.COMMENT(/\{\{!--/,/--\}\}/),a.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[x],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[T]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[T]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[R]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[R]}]}}return Y6=o,Y6}var q6,Ufe;function Ean(){if(Ufe)return q6;Ufe=1;function e(t){const n={variants:[t.COMMENT("--","$"),t.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},r={className:"meta",begin:/\{-#/,end:/#-\}/},i={className:"meta",begin:"^#",end:"$"},o={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[r,i,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t.inherit(t.TITLE_MODE,{begin:"[_a-z][\\w']*"}),n]},s={begin:/\{/,end:/\}/,contains:a.contains};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[a,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[a,n],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[o,a,n]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[r,o,a,s,n]},{beginKeywords:"default",end:"$",contains:[o,a,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[t.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[o,t.QUOTE_STRING_MODE,n]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},r,i,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,o,t.inherit(t.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}]}}return q6=e,q6}var K6,jfe;function Can(){if(jfe)return K6;jfe=1;function e(t){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},t.QUOTE_STRING_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ ]*",end:"[^A-Za-z0-9_ \\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ ]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[t.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},t.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:t.IDENT_RE,relevance:0}]},t.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[t.TITLE_MODE]}],illegal:/<\//}}return K6=e,K6}var Q6,Hfe;function wan(){if(Hfe)return Q6;Hfe=1;function e(t){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[t.BACKSLASH_ESCAPE]},t.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"}),t.NUMBER_MODE,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},t.NUMBER_MODE,t.C_NUMBER_MODE]}}return Q6=e,Q6}var X6,zfe;function xan(){if(zfe)return X6;zfe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function t(s){return r("(",s,")*")}function n(s){return r("(",s,")?")}function r(...s){return s.map(c=>e(c)).join("")}function i(...s){return"("+s.map(c=>e(c)).join("|")+")"}function o(s){const l={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},c={literal:["true","false","undefined","null"]},u=/""|"[^"]+"/,d=/''|'[^']+'/,f=/\[\]|\[[^\]]+\]/,p=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,h=/(\.|\/)/,g=i(u,d,f,p),v=r(n(/\.|\.\/|\//),g,t(r(h,g))),y=r("(",f,"|",p,")(?==)"),_={begin:v,lexemes:/[\w.\/]+/},b=s.inherit(_,{keywords:c}),S={begin:/\(/,end:/\)/},C={className:"attr",begin:y,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[s.NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,b,S]}}},E={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},w={contains:[s.NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,E,C,b,S],returnEnd:!0},x=s.inherit(_,{className:"name",keywords:l,starts:s.inherit(w,{end:/\)/})});S.contains=[x];const T=s.inherit(_,{keywords:l,className:"name",starts:s.inherit(w,{end:/\}\}/})}),R=s.inherit(_,{keywords:l,className:"name"}),N=s.inherit(_,{className:"name",keywords:l,starts:s.inherit(w,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},s.COMMENT(/\{\{!--/,/--\}\}/),s.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[T],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[T]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[R]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[N]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[N]}]}}function a(s){const l=o(s);return l.name="HTMLbars",s.getLanguage("handlebars")&&(l.disableAutodetect=!0),l}return X6=a,X6}var Z6,Vfe;function Tan(){if(Vfe)return Z6;Vfe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i="HTTP/(2|1\\.[01])",a={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},r.inherit(a,{relevance:0})]}}return Z6=n,Z6}var J6,Gfe;function Ran(){if(Gfe)return J6;Gfe=1;function e(t){var n="a-zA-Z_\\-!.?+*=<>&#'",r="["+n+"]["+n+"0-9/;:]*",i={$pattern:r,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},o="[-+]?\\d+(\\.\\d+)?",a={begin:r,relevance:0},s={className:"number",begin:o,relevance:0},l=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),c=t.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]"},f={className:"comment",begin:"\\^"+r},p=t.COMMENT("\\^\\{","\\}"),h={className:"symbol",begin:"[:]{1,2}"+r},g={begin:"\\(",end:"\\)"},v={endsWithParent:!0,relevance:0},y={className:"name",relevance:0,keywords:i,begin:r,starts:v},_=[g,l,f,p,c,h,d,s,u,a];return g.contains=[t.COMMENT("comment",""),y,v],v.contains=_,d.contains=_,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[t.SHEBANG(),g,l,f,p,c,h,d,s,u]}}return J6=e,J6}var e8,Wfe;function Oan(){if(Wfe)return e8;Wfe=1;function e(t){const n="\\[",r="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:n,end:r}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:n,end:r,contains:["self"]}]}}return e8=e,e8}var t8,Yfe;function Ian(){if(Yfe)return t8;Yfe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return n("(?=",o,")")}function n(...o){return o.map(s=>e(s)).join("")}function r(...o){return"("+o.map(s=>e(s)).join("|")+")"}function i(o){const a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:o.NUMBER_RE}]},s=o.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const l={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[s,c,l,u,a,"self"],relevance:0},g=r(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/),v=n(g,"(\\s*\\.\\s*",g,")*",t(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:v,className:"attr",starts:{end:/$/,contains:[s,d,c,l,u,a]}}]}}return t8=i,t8}var n8,qfe;function Nan(){if(qfe)return n8;qfe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={className:"params",begin:"\\(",end:"\\)"},o=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t(/\b\d+/,/\.(\d*)/,a,o)},{begin:t(/\b\d+/,a,o)},{begin:t(/\.\d+/,a,o)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[r.inherit(r.APOS_STRING_MODE,{className:"string",relevance:0}),r.inherit(r.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[r.UNDERSCORE_TITLE_MODE,i]},r.COMMENT("!","$",{relevance:0}),r.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return n8=n,n8}var r8,Kfe;function Man(){if(Kfe)return r8;Kfe=1;function e(t){const n="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",re="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",jn="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",vr="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",ai="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",co="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",Xn=re+jn,Ni=ai,Do="null true false nil ",Kn={className:"number",begin:t.NUMBER_RE,relevance:0},An={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Hn={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},_r={className:"comment",begin:"//",end:"$",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Hn]},Qr={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[t.PHRASAL_WORDS_MODE,Hn]},es={variants:[_r,Qr]},ts={$pattern:n,keyword:i,built_in:Xn,class:Ni,literal:Do},Ci={begin:"\\.\\s*"+t.UNDERSCORE_IDENT_RE,keywords:ts,relevance:0},wa={className:"type",begin:":[ \\t]*("+co.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},gc={className:"variable",keywords:ts,begin:n,relevance:0,contains:[wa,Ci]},vc=r+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:ts,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:vc,end:"\\)$",returnBegin:!0,keywords:ts,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:n,built_in:vr},begin:vc,end:"\\(",returnBegin:!0,excludeEnd:!0},Ci,gc,An,Kn,es]},wa,Ci,gc,An,Kn,es]}}return r8=e,r8}var i8,Qfe;function Aan(){if(Qfe)return i8;Qfe=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(o){var a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",s=a+"(<"+a+"(\\s*,\\s*"+a+")*>)?",l="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",c={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const u=r;return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},o.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:l,contains:[{beginKeywords:"record"},{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+s+"\\s+)+"+o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:l,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,u,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},u,c]}}return i8=i,i8}var o8,Xfe;function Pan(){if(Xfe)return o8;Xfe=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],s=[].concat(o,a,r,i);function l(f){return f?typeof f=="string"?f:f.source:null}function c(f){return u("(?=",f,")")}function u(...f){return f.map(h=>l(h)).join("")}function d(f){const p=(L,{after:B})=>{const U="</"+L[0].slice(1);return L.input.indexOf(U,B)!==-1},h=e,g={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(L,B)=>{const U=L[0].length+L.index,G=L.input[U];if(G==="<"){B.ignoreMatch();return}G===">"&&(p(L,{after:U})||B.ignoreMatch())}},y={$pattern:e,keyword:t,literal:n,built_in:s},_="[0-9](_?[0-9])*",b=`\\.(${_})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${S})((${b})|\\.)?|(${b}))[eE][+-]?(${_})\\b`},{begin:`\\b(${S})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:y,contains:[]},w={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},x={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,E],subLanguage:"css"}},T={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,E]},N={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},I=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,w,x,T,C,f.REGEXP_MODE];E.contains=I.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat(I)});const P=[].concat(N,E.contains),D=P.concat([{begin:/\(/,end:/\)/,keywords:y,contains:["self"].concat(P)}]),F={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:D};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:D},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,w,x,T,N,C,{begin:u(/[{,\n]\s*/,c(u(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,h+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:h+c("\\s*:"),relevance:0}]},{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[N,f.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:D}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:g.begin,end:g.end},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:y,contains:["self",f.inherit(f.TITLE_MODE,{begin:h}),F],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[F,f.inherit(f.TITLE_MODE,{begin:h})]},{variants:[{begin:"\\."+h},{begin:"\\$"+h}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},f.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[f.inherit(f.TITLE_MODE,{begin:h}),"self",F]},{begin:"(get|set)\\s+(?="+h+"\\()",end:/\{/,keywords:"get set",contains:[f.inherit(f.TITLE_MODE,{begin:h}),{begin:/\(\)/},F]},{begin:/\$[(.]/}]}}return o8=d,o8}var a8,Zfe;function Dan(){if(Zfe)return a8;Zfe=1;function e(t){const r={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},o={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},a={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,a,i,o,r]}}return a8=e,a8}var s8,Jfe;function kan(){if(Jfe)return s8;Jfe=1;function e(t){const n={literal:"true false null"},r=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],i=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],o={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:n},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(o,{begin:/:/})].concat(r),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[t.inherit(o)],illegal:"\\S"};return i.push(a,s),r.forEach(function(l){i.push(l)}),{name:"JSON",contains:i,keywords:n,illegal:"\\S"}}return s8=e,s8}var l8,epe;function Lan(){if(epe)return l8;epe=1;function e(t){var n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",r=["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],i=["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],o=["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"],a={$pattern:n,keyword:r,literal:i,built_in:o},s={keywords:a,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},c={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u={className:"subst",begin:/\$\(/,end:/\)/,keywords:a},d={className:"variable",begin:"\\$"+n},f={className:"string",contains:[t.BACKSLASH_ESCAPE,u,d],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},p={className:"string",contains:[t.BACKSLASH_ESCAPE,u,d],begin:"`",end:"`"},h={className:"meta",begin:"@"+n},g={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return s.name="Julia",s.contains=[l,c,f,p,h,g,t.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],u.contains=s.contains,s}return l8=e,l8}var c8,tpe;function $an(){if(tpe)return c8;tpe=1;function e(t){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}return c8=e,c8}var u8,npe;function Fan(){if(npe)return u8;npe=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(o){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},s={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,c]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,u,c]}]};c.contains.push(d);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(d,{className:"meta-string"})]}]},h=r,g=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),v={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=v;return y.variants[1].contains=[v],v.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,g,s,l,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[v,o.C_LINE_COMMENT_MODE,g],relevance:0},o.C_LINE_COMMENT_MODE,g,f,p,d,o.C_NUMBER_MODE]},g]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},f,p]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
||
`},h]}}return u8=i,u8}var d8,rpe;function Ban(){if(rpe)return d8;rpe=1;function e(t){const n="[a-zA-Z_][\\w.]*",r="<\\?(lasso(script)?|=)",i="\\]|\\?>",o={$pattern:n+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},a=t.COMMENT("<!--","-->",{relevance:0}),s={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[a]}},l={className:"meta",begin:"\\[/noprocess|"+r},c={className:"symbol",begin:"'"+n+"'"},u=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[c]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[t.inherit(t.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+r,returnEnd:!0,relevance:0,contains:[a]}},s,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:o,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+r,returnEnd:!0,contains:[a]}},s,l].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return d8=e,d8}var f8,ipe;function Uan(){if(ipe)return f8;ipe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return"("+r.map(o=>e(o)).join("|")+")"}function n(r){const i=t(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(I=>I+"(?![a-zA-Z@:_])")),o=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(I=>I+"(?![a-zA-Z:_])").join("|")),a=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],l={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:i},{endsParent:!0,begin:o},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:a}]},c={className:"params",relevance:0,begin:/#+\d?/},u={variants:s},d={className:"built_in",relevance:0,begin:/[$&^_]/},f={className:"meta",begin:"% !TeX",end:"$",relevance:10},p=r.COMMENT("%","$",{relevance:0}),h=[l,c,u,d,f,p],g={begin:/\{/,end:/\}/,relevance:0,contains:["self",...h]},v=r.inherit(g,{relevance:0,endsParent:!0,contains:[g,...h]}),y={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[g,...h]},_={begin:/\s+/,relevance:0},b=[v],S=[y],C=function(I,P){return{contains:[_],starts:{relevance:0,contains:I,starts:P}}},E=function(I,P){return{begin:"\\\\"+I+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+I},relevance:0,contains:[_],starts:P}},w=function(I,P){return r.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+I+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},C(b,P))},x=(I="string")=>r.END_SAME_AS_BEGIN({className:I,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),T=function(I){return{className:"string",end:"(?=\\\\end\\{"+I+"\\})"}},R=(I="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:I,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),N=[...["verb","lstinline"].map(I=>E(I,{contains:[x()]})),E("mint",C(b,{contains:[x()]})),E("mintinline",C(b,{contains:[R(),x()]})),E("url",{contains:[R("link"),R("link")]}),E("hyperref",{contains:[R("link")]}),E("href",C(S,{contains:[R("link")]})),...[].concat(...["","\\*"].map(I=>[w("verbatim"+I,T("verbatim"+I)),w("filecontents"+I,C(b,T("filecontents"+I))),...["","B","L"].map(P=>w(P+"Verbatim"+I,C(S,T(P+"Verbatim"+I))))])),w("minted",C(S,C(b,T("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...N,...h]}}return f8=n,f8}var p8,ope;function jan(){if(ope)return p8;ope=1;function e(t){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},t.HASH_COMMENT_MODE]}}return p8=e,p8}var m8,ape;function Han(){if(ape)return m8;ape=1;function e(t){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}return m8=e,m8}var h8,spe;function zan(){if(spe)return h8;spe=1;const e=l=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),a=r.concat(i);function s(l){const c=e(l),u=a,d="and or not only",f="[\\w-]+",p="("+f+"|@\\{"+f+"\\})",h=[],g=[],v=function(N){return{className:"string",begin:"~?"+N+".*?"+N}},y=function(N,I,P){return{className:N,begin:I,relevance:P}},_={$pattern:/[a-z-]+/,keyword:d,attribute:n.join(" ")},b={begin:"\\(",end:"\\)",contains:g,keywords:_,relevance:0};g.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,v("'"),v('"'),l.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},c.HEXCOLOR,b,y("variable","@@?"+f,10),y("variable","@\\{"+f+"\\}"),y("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},c.IMPORTANT);const S=g.concat({begin:/\{/,end:/\}/,contains:h}),C={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},E={begin:p+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},w={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:_,returnEnd:!0,contains:g,relevance:0}},x={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:S}},T={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:p,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,C,y("keyword","all\\b"),y("variable","@\\{"+f+"\\}"),{begin:"\\b("+t.join("|")+")\\b",className:"selector-tag"},y("selector-tag",p+"%?",0),y("selector-id","#"+p),y("selector-class","\\."+p,0),y("selector-tag","&",0),c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:"::("+i.join("|")+")"},{begin:"\\(",end:"\\)",contains:S},{begin:"!important"}]},R={begin:f+`:(:)?(${u.join("|")})`,returnBegin:!0,contains:[T]};return h.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,w,x,R,E,T),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:h}}return h8=s,h8}var g8,lpe;function Van(){if(lpe)return g8;lpe=1;function e(t){var n="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",r="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},a={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},s=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),l=t.COMMENT(";","$",{relevance:0}),c={begin:"\\*",end:"\\*"},u={className:"symbol",begin:"[:&]"+n},d={begin:n,relevance:0},f={begin:r},p={begin:"\\(",end:"\\)",contains:["self",o,s,a,d]},h={contains:[a,s,c,u,p,d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+r}]},g={variants:[{begin:"'"+n},{begin:"#'"+n+"(::"+n+")*"}]},v={begin:"\\(\\s*",end:"\\)"},y={endsWithParent:!0,relevance:0};return v.contains=[{className:"name",variants:[{begin:n,relevance:0},{begin:r}]},y],y.contains=[h,g,v,o,a,s,l,c,u,f,d],{name:"Lisp",illegal:/\S/,contains:[a,t.SHEBANG(),o,s,l,h,g,v,d]}}return g8=e,g8}var v8,cpe;function Gan(){if(cpe)return v8;cpe=1;function e(t){const n={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},r=[t.C_BLOCK_COMMENT_MODE,t.HASH_COMMENT_MODE,t.COMMENT("--","$"),t.COMMENT("[^:]//","$")],i=t.inherit(t.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),o=t.inherit(t.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[n,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[n,o,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[o,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[n,o,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE,i].concat(r),illegal:";$|^\\[|^=|&|\\{"}}return v8=e,v8}var _8,upe;function Wan(){if(upe)return _8;upe=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],n=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],r=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],a=[].concat(i,o,n,r);function s(l){const c=["npm","print"],u=["yes","no","on","off","it","that","void"],d=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],f={keyword:e.concat(d),literal:t.concat(u),built_in:a.concat(c)},p="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",h=l.inherit(l.TITLE_MODE,{begin:p}),g={className:"subst",begin:/#\{/,end:/\}/,keywords:f},v={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:f},y=[l.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[l.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,g,v]},{begin:/"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,g,v]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[g,l.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+p},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];g.contains=y;const _={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:f,contains:["self"].concat(y)}]},b={begin:"(#=>|=>|\\|>>|-?->|!->)"};return{name:"LiveScript",aliases:["ls"],keywords:f,illegal:/\/\*/,contains:y.concat([l.COMMENT("\\/\\*","\\*\\/"),l.HASH_COMMENT_MODE,b,{className:"function",contains:[h,_],returnBegin:!0,variants:[{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+p+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[h]},h]},{begin:p+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return _8=s,_8}var y8,dpe;function Yan(){if(dpe)return y8;dpe=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i=/([-a-zA-Z$._][\w$.-]*)/,o={className:"type",begin:/\bi\d+(?=\s|\b)/},a={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},l={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},c={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},u={className:"variable",variants:[{begin:t(/%/,i)},{begin:/%\d+/},{begin:/#\d+/}]},d={className:"title",variants:[{begin:t(/@/,i)},{begin:/@\d+/},{begin:t(/!/,i)},{begin:t(/!\d+/,i)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[o,r.COMMENT(/;\s*$/,null,{relevance:0}),r.COMMENT(/;/,/$/),r.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},d,s,a,u,c,l]}}return y8=n,y8}var b8,fpe;function qan(){if(fpe)return b8;fpe=1;function e(t){var n={className:"subst",begin:/\\[tn"\\]/},r={className:"string",begin:'"',end:'"',contains:[n]},i={className:"number",relevance:0,begin:t.C_NUMBER_RE},o={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},a={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[r,{className:"comment",variants:[t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},a,o,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return b8=e,b8}var S8,ppe;function Kan(){if(ppe)return S8;ppe=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",i={begin:n,end:r,contains:["self"]},o=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[i],relevance:5}])}}return S8=e,S8}var E8,mpe;function Qan(){if(mpe)return E8;mpe=1;function e(t){const n={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,n,r,i,o,a,s]}}return E8=e,E8}var C8,hpe;function Xan(){if(hpe)return C8;hpe=1;const e=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function t(a){return a?typeof a=="string"?a:a.source:null}function n(a){return r("(",a,")?")}function r(...a){return a.map(l=>t(l)).join("")}function i(...a){return"("+a.map(l=>t(l)).join("|")+")"}function o(a){const s=/([2-9]|[1-2]\d|[3][0-5])\^\^/,l=/(\w*\.\w+|\w+\.\w*|\w+)/,c=/(\d*\.\d+|\d+\.\d*|\d+)/,u=i(r(s,l),c),p=i(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),h=/\*\^[+-]?\d+/,v={className:"number",relevance:0,begin:r(u,n(p),n(h))},y=/[a-zA-Z$][a-zA-Z0-9$]*/,_=new Set(e),b={variants:[{className:"builtin-symbol",begin:y,"on:begin":(R,N)=>{_.has(R[0])||N.ignoreMatch()}},{className:"symbol",relevance:0,begin:y}]},S={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},C={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},E={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},w={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},x={className:"brace",relevance:0,begin:/[[\](){}]/},T={className:"message-name",relevance:0,begin:r("::",y)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[a.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),E,w,T,b,S,a.QUOTE_STRING_MODE,v,C,x]}}return C8=o,C8}var w8,gpe;function Zan(){if(gpe)return w8;gpe=1;function e(t){var n="('|\\.')+",r={relevance:0,contains:[{begin:n}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:r},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+n,relevance:0},{className:"number",begin:t.C_NUMBER_RE,relevance:0,starts:r},{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:r},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE,{begin:'""'}],starts:r},t.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),t.COMMENT("%","$")]}}return w8=e,w8}var x8,vpe;function Jan(){if(vpe)return x8;vpe=1;function e(t){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},t.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return x8=e,x8}var T8,_pe;function esn(){if(_pe)return T8;_pe=1;function e(t){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return 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 CBG 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 HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS 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 Mayatomr 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",illegal:"</",contains:[t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return T8=e,T8}var R8,ype;function tsn(){if(ype)return R8;ype=1;function e(t){const n={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r=t.COMMENT("%","$"),i={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},o=t.inherit(t.APOS_STRING_MODE,{relevance:0}),a=t.inherit(t.QUOTE_STRING_MODE,{relevance:0}),s={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return a.contains=a.contains.slice(),a.contains.push(s),{name:"Mercury",aliases:["m","moo"],keywords:n,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},r,t.C_BLOCK_COMMENT_MODE,i,t.NUMBER_MODE,o,a,{begin:/:-/},{begin:/\.$/}]}}return R8=e,R8}var O8,bpe;function nsn(){if(bpe)return O8;bpe=1;function e(t){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+t.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},t.COMMENT("[;#](?!\\s*$)","$"),t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return O8=e,O8}var I8,Spe;function rsn(){if(Spe)return I8;Spe=1;function e(t){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[t.COMMENT("::","$")]}}return I8=e,I8}var N8,Epe;function isn(){if(Epe)return N8;Epe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(...i){return i.map(a=>e(a)).join("")}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],a=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:o.join(" ")},l={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},c={begin:/->\{/,end:/\}/},u={variants:[{begin:/\$\d/},{begin:t(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},d=[i.BACKSLASH_ESCAPE,l,u],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(v,y,_="\\1")=>{const b=_==="\\1"?_:t(_,y);return t(t("(?:",v,")"),y,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,_,a)},h=(v,y,_)=>t(t("(?:",v,")"),y,/(?:\\.|[^\\\/])*?/,_,a),g=[u,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+i.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[i.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",n(...f))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",n(...f),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return l.contains=g,c.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:g}}return N8=r,N8}var M8,Cpe;function osn(){if(Cpe)return M8;Cpe=1;function e(t){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return M8=e,M8}var A8,wpe;function asn(){if(wpe)return A8;wpe=1;function e(t){const n={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},t.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[t.COMMENT("#rem","#end"),t.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[t.UNDERSCORE_TITLE_MODE]},t.QUOTE_STRING_MODE,n]}}return A8=e,A8}var P8,xpe;function ssn(){if(xpe)return P8;xpe=1;function e(t){const n={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},r="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:n},o=[t.inherit(t.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[t.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+t.IDENT_RE},{begin:"@"+t.IDENT_RE},{begin:t.IDENT_RE+"\\\\"+t.IDENT_RE}];i.contains=o;const a=t.inherit(t.TITLE_MODE,{begin:r}),s="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(o)}]};return{name:"MoonScript",aliases:["moon"],keywords:n,illegal:/\/\*/,contains:o.concat([t.COMMENT("--","$"),{className:"function",begin:"^\\s*"+r+"\\s*=\\s*"+s,end:"[-=]>",returnBegin:!0,contains:[a,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:s,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:"name",begin:r+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return P8=e,P8}var D8,Tpe;function lsn(){if(Tpe)return D8;Tpe=1;function e(t){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE],relevance:2},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE]}}return D8=e,D8}var k8,Rpe;function csn(){if(Rpe)return k8;Rpe=1;function e(t){const n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+t.UNDERSCORE_IDENT_RE}]},r={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{begin:t.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:t.UNDERSCORE_IDENT_RE}],relevance:0},{begin:t.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:"[^\\s\\}]"}}return k8=e,k8}var L8,Ope;function usn(){if(Ope)return L8;Ope=1;function e(t){return{name:"Nim",keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},t.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},t.HASH_COMMENT_MODE]}}return L8=e,L8}var $8,Ipe;function dsn(){if(Ipe)return $8;Ipe=1;function e(t){const n={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},r={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},o={className:"string",contains:[r],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[t.NUMBER_MODE,t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,o,i];return r.contains=a,{name:"Nix",aliases:["nixos"],keywords:n,contains:a}}return $8=e,$8}var F8,Npe;function fsn(){if(Npe)return F8;Npe=1;function e(t){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return F8=e,F8}var B8,Mpe;function psn(){if(Mpe)return B8;Mpe=1;function e(t){const n={className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},r={className:"variable",begin:/\$+\{[\w.:-]+\}/},i={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},o={className:"variable",begin:/\$+\([\w^.:-]+\)/},a={className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},s={className:"keyword",begin:/!(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|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},l={className:"meta",begin:/\$(\\[nrt]|\$)/},c={className:"class",begin:/\w+::\w+/},u={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[l,n,r,i,o]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[t.HASH_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},u,s,r,i,o,a,c,t.NUMBER_MODE]}}return B8=e,B8}var U8,Ape;function msn(){if(Ape)return U8;Ape=1;function e(t){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,i={$pattern:r,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},o={$pattern:r,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:i,illegal:"</",contains:[n,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+o.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:o,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return U8=e,U8}var j8,Ppe;function hsn(){if(Ppe)return j8;Ppe=1;function e(t){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return j8=e,j8}var H8,Dpe;function gsn(){if(Dpe)return H8;Dpe=1;function e(t){const n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},r={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},o=t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),a={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},s={className:"params",begin:"\\(",end:"\\)",contains:["self",i,o,n,r]},l={begin:"[*!#%]",relevance:0},c={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[s,t.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,a,o,n,l,c]}}return H8=e,H8}var z8,kpe;function vsn(){if(kpe)return z8;kpe=1;function e(t){const n={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},r=t.COMMENT(/\{/,/\}/,{relevance:0}),i=t.COMMENT("\\(\\*","\\*\\)",{relevance:10}),o={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},a={className:"string",begin:"(#\\d+)+"},s={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[t.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:n,contains:[o,a]},r,i]};return{name:"Oxygene",case_insensitive:!0,keywords:n,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[r,i,t.C_LINE_COMMENT_MODE,o,a,t.NUMBER_MODE,s,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:n,contains:[o,a,r,i,t.C_LINE_COMMENT_MODE,s]}]}}return z8=e,z8}var V8,Lpe;function _sn(){if(Lpe)return V8;Lpe=1;function e(t){const n=t.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[t.COMMENT("^#","$"),t.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[n]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},t.C_NUMBER_MODE]}}return V8=e,V8}var G8,$pe;function ysn(){if($pe)return G8;$pe=1;function e(t){const n={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},r={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[t.HASH_COMMENT_MODE,t.NUMBER_MODE,t.QUOTE_STRING_MODE,n,r]}}return G8=e,G8}var W8,Fpe;function bsn(){if(Fpe)return W8;Fpe=1;function e(t){const n=t.COMMENT("--","$"),r="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",o="<<\\s*"+r+"\\s*>>",a="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",s="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",c="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",u=c.trim().split(" ").map(function(v){return v.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",p="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(v){return v.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:a+l+s,built_in:d+f+p},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+u+")\\b"},{begin:"\\b("+u+")\\s+PATH\\b",keywords:{keyword:"PATH",type:c.replace("PATH ","")}},{className:"type",begin:"\\b("+u+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:o,relevance:10}]}}return W8=e,W8}var Y8,Bpe;function Ssn(){if(Bpe)return Y8;Bpe=1;function e(t){const n={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},r={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},i={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},o=t.inherit(t.APOS_STRING_MODE,{illegal:null}),a=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(i)}),s=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(i)}),l={className:"string",contains:[t.BACKSLASH_ESCAPE,r],variants:[t.inherit(o,{begin:"b'",end:"'"}),t.inherit(a,{begin:'b"',end:'"'}),a,o,s]},c={className:"number",variants:[{begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?"}],relevance:0},u={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:u,contains:[t.HASH_COMMENT_MODE,t.COMMENT("//","$",{contains:[r]}),t.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),r,{className:"keyword",begin:/\$this\b/},n,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[t.UNDERSCORE_TITLE_MODE]},l,c]}}return Y8=e,Y8}var q8,Upe;function Esn(){if(Upe)return q8;Upe=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return q8=e,q8}var K8,jpe;function Csn(){if(jpe)return K8;jpe=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return K8=e,K8}var Q8,Hpe;function wsn(){if(Hpe)return Q8;Hpe=1;function e(t){const n={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},r={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[t.BACKSLASH_ESCAPE]},o={className:"string",begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE],relevance:0},a={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},s={begin:t.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:n,contains:[a,r,i,o,s,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return Q8=e,Q8}var X8,zpe;function xsn(){if(zpe)return X8;zpe=1;function e(t){const n=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],r="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",o={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,s={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},c={className:"literal",begin:/\$(null|true|false)\b/},u={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[s,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},d={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},p=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),h={className:"built_in",variants:[{begin:"(".concat(r,")+(-)[\\w\\d]+")}]},g={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},y={begin:/using\s/,end:/$/,returnBegin:!0,contains:[u,d,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},_={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(o.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},C=[S,p,s,t.NUMBER_MODE,u,d,h,l,c,b],E={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",C,{begin:"("+n.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return S.contains.unshift(E),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:o,contains:C.concat(g,v,y,_,E)}}return X8=e,X8}var Z8,Vpe;function Tsn(){if(Vpe)return Z8;Vpe=1;function e(t){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return Z8=e,Z8}var J8,Gpe;function Rsn(){if(Gpe)return J8;Gpe=1;function e(t){return{name:"Python profiler",contains:[t.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[t.C_NUMBER_MODE],relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return J8=e,J8}var e5,Wpe;function Osn(){if(Wpe)return e5;Wpe=1;function e(t){const n={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},r={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},o={begin:/\[/,end:/\]/},a={className:"comment",begin:/%/,end:/$/,contains:[t.PHRASAL_WORDS_MODE]},s={className:"string",begin:/`/,end:/`/,contains:[t.BACKSLASH_ESCAPE]},l={className:"string",begin:/0'(\\'|.)/},c={className:"string",begin:/0'\\s/},d=[n,r,i,{begin:/:-/},o,a,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,s,l,c,t.C_NUMBER_MODE];return i.contains=d,o.contains=d,{name:"Prolog",contains:d.concat([{begin:/\.$/}])}}return e5=e,e5}var t5,Ype;function Isn(){if(Ype)return t5;Ype=1;function e(t){var n="[ \\t\\f]*",r="[ \\t\\f]+",i=n+"[:=]"+n,o=r,a="("+i+"|"+o+")",s="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",l="([^\\\\:= \\t\\f\\n]|\\\\.)+",c={end:a,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[t.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:s+i,relevance:1},{begin:s+o,relevance:0}],contains:[{className:"attr",begin:s,endsParent:!0,relevance:0}],starts:c},{begin:l+a,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:l,endsParent:!0,relevance:0}],starts:c},{className:"attr",relevance:0,begin:l+n+"$"}]}}return t5=e,t5}var n5,qpe;function Nsn(){if(qpe)return n5;qpe=1;function e(t){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return n5=e,n5}var r5,Kpe;function Msn(){if(Kpe)return r5;Kpe=1;function e(t){const n={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},r=t.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",o=t.inherit(t.TITLE_MODE,{begin:i}),a={className:"variable",begin:"\\$"+i},s={className:"string",contains:[t.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[r,a,s,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[o,r]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:t.IDENT_RE,endsParent:!0}]},{begin:t.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:t.IDENT_RE},{begin:/\{/,end:/\}/,keywords:n,relevance:0,contains:[s,r,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:t.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a]}],relevance:0}]}}return r5=e,r5}var i5,Qpe;function Asn(){if(Qpe)return i5;Qpe=1;function e(t){const n={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},r={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning 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 EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[t.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},t.UNDERSCORE_TITLE_MODE]},n,r]}}return i5=e,i5}var o5,Xpe;function Psn(){if(Xpe)return o5;Xpe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(i){return n("(?=",i,")")}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},f={begin:/\{\{/,relevance:0},p={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,u,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,u,f,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[i.BACKSLASH_ESCAPE,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,f,d]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",g=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${g}))[eE][+-]?(${h})[jJ]?\\b`},{begin:`(${g})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${h})[jJ]\\b`}]},y={className:"comment",begin:t(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},_={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",u,v,p,i.HASH_COMMENT_MODE]}]};return d.contains=[p,v,u],{name:"Python",aliases:["py","gyp","ipython"],keywords:c,illegal:/(<\/|->|\?)|=>/,contains:[u,v,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},p,y,i.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[i.UNDERSCORE_TITLE_MODE,_,{begin:/->/,endsWithParent:!0,keywords:c}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,_,p]}]}}return o5=r,o5}var a5,Zpe;function Dsn(){if(Zpe)return a5;Zpe=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return a5=e,a5}var s5,Jpe;function ksn(){if(Jpe)return s5;Jpe=1;function e(t){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE]}}return s5=e,s5}var l5,eme;function Lsn(){if(eme)return l5;eme=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(o=>e(o)).join("")}function n(r){const i={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},o="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},l={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:o,returnEnd:!1}},c={begin:o+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:o,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:t(o,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[r.inherit(r.TITLE_MODE,{begin:o})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:i,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:r.C_NUMBER_RE}],relevance:0},{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},s,a,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[r.inherit(r.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+r.IDENT_RE,relevance:0},l,c,u],illegal:/#/}}return l5=n,l5}var c5,tme;function $sn(){if(tme)return c5;tme=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(i){return n("(?=",i,")")}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=/[a-zA-Z][a-zA-Z_0-9]*/;return{name:"R",illegal:/->/,keywords:{$pattern:o,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},compilerExtensions:[(s,l)=>{if(!s.beforeMatch)return;if(s.starts)throw new Error("beforeMatch cannot be used with starts");const c=Object.assign({},s);Object.keys(s).forEach(u=>{delete s[u]}),s.begin=n(c.beforeMatch,t(c.begin)),s.starts={relevance:0,contains:[Object.assign(c,{endsParent:!0})]},s.relevance=0,delete c.beforeMatch}],contains:[i.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:o},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),i.HASH_COMMENT_MODE,{className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0,beforeMatch:/([^a-zA-Z0-9._])/,variants:[{match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{begin:n(a,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return c5=r,c5}var u5,nme;function Fsn(){if(nme)return u5;nme=1;function e(t){function n(E){return E.map(function(w){return w.split("").map(function(x){return"\\"+x}).join("")}).join("|")}const r="~?[a-z$_][0-9a-zA-Z$_]*",i="`?[A-Z$_][0-9a-zA-Z$_]*",o="'?[a-z$_][0-9a-z$_]*",a="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+o+"\\s*(,"+o+"\\s*)*)?\\))?",s=r+"("+a+"){0,2}",l="("+n(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",c="\\s+"+l+"\\s+",u={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},d="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",f={className:"number",relevance:0,variants:[{begin:d},{begin:"\\(-"+d+"\\)"}]},p={className:"operator",relevance:0,begin:l},h=[{className:"identifier",relevance:0,begin:r},p,f],g=[t.QUOTE_STRING_MODE,p,{className:"module",begin:"\\b"+i,returnBegin:!0,end:".",contains:[{className:"identifier",begin:i,relevance:0}]}],v=[{className:"module",begin:"\\b"+i,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:i,relevance:0}]}],y={begin:r,end:"(,|\\n|\\))",relevance:0,contains:[p,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:v}]},_={className:"function",relevance:0,keywords:u,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+r+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:r},{begin:s},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[y]}]},{begin:"\\(\\.\\s"+r+"\\)\\s*=>"}]};g.push(_);const b={className:"constructor",begin:i+"\\(",end:"\\)",illegal:"\\n",keywords:u,contains:[t.QUOTE_STRING_MODE,p,{className:"params",begin:"\\b"+r}]},S={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:u,end:"=>",relevance:0,contains:[b,p,{relevance:0,className:"constructor",begin:i}]},C={className:"module-access",keywords:u,returnBegin:!0,variants:[{begin:"\\b("+i+"\\.)+"+r},{begin:"\\b("+i+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[_,{begin:"\\(",end:"\\)",skip:!0}].concat(g)},{begin:"\\b("+i+"\\.)+\\{",end:/\}/}],contains:g};return v.push(C),{name:"ReasonML",aliases:["re"],keywords:u,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[t.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},t.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:h},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:h},b,{className:"operator",begin:c,illegal:"-->",relevance:0},f,t.C_LINE_COMMENT_MODE,S,_,{className:"module-def",begin:"\\bmodule\\s+"+r+"\\s+"+i+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:u,relevance:0,contains:[{className:"module",relevance:0,begin:i},{begin:/\{/,end:/\}/,skip:!0}].concat(g)},C]}}return u5=e,u5}var d5,rme;function Bsn(){if(rme)return d5;rme=1;function e(t){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[t.HASH_COMMENT_MODE,t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]}}return d5=e,d5}var f5,ime;function Usn(){if(ime)return f5;ime=1;function e(t){const n="[a-zA-Z-_][^\\n{]+\\{",r={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+n,end:/\}/,keywords:"facet",contains:[r,t.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+n,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",r,t.HASH_COMMENT_MODE]},{begin:"^"+n,end:/\}/,contains:[r,t.HASH_COMMENT_MODE]},t.HASH_COMMENT_MODE]}}return f5=e,f5}var p5,ome;function jsn(){if(ome)return p5;ome=1;function e(t){const n="foreach do while for if from to step else on-error and or not in",r="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",i="add remove enable disable set get print export edit find run debug error info warning",o="true false yes no nothing nil null",a="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",s={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,s,{className:"variable",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]}]},c={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:o,keyword:n+" :"+n.split(" ").join(" :")+" :"+r.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},t.COMMENT("^#","$"),l,c,s,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,c,s,{className:"literal",begin:"\\b("+o.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+a.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return p5=e,p5}var m5,ame;function Hsn(){if(ame)return m5;ame=1;function e(t){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return m5=e,m5}var h5,sme;function zsn(){if(sme)return h5;sme=1;function e(t){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return h5=e,h5}var g5,lme;function Vsn(){if(lme)return g5;lme=1;function e(t){const n="([ui](8|16|32|64|128|size)|f(32|64))?",r="abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",i="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",keyword:r,literal:"true false Some None Ok Err",built_in:i},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+n}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:t.IDENT_RE+"::",keywords:{built_in:i}},{begin:"->"}]}}return g5=e,g5}var v5,cme;function Gsn(){if(cme)return v5;cme=1;function e(t){return{name:"SAS",case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%("+"bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window"+")"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%]("+"abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate"+")[(]"},{className:"string",variants:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},t.COMMENT("\\*",";"),t.C_BLOCK_COMMENT_MODE]}}return v5=e,v5}var _5,ume;function Wsn(){if(ume)return _5;ume=1;function e(t){const n={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},o={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},s={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},s]},c={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[s]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,o,a,c,l,t.C_NUMBER_MODE,n]}}return _5=e,_5}var y5,dme;function Ysn(){if(dme)return y5;dme=1;function e(t){const n="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(-|\\+)?\\d+([./]\\d+)?",i=r+"[+\\-]"+r+"i",o={$pattern:n,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},a={className:"literal",begin:"(#t|#f|#\\\\"+n+"|#\\\\.)"},s={className:"number",variants:[{begin:r,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=t.QUOTE_STRING_MODE,c=[t.COMMENT(";","$",{relevance:0}),t.COMMENT("#\\|","\\|#")],u={begin:n,relevance:0},d={className:"symbol",begin:"'"+n},f={endsWithParent:!0,relevance:0},p={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",a,l,s,u,d]}]},h={className:"name",relevance:0,begin:n,keywords:o},v={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[h,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[u]}]},h,f]};return f.contains=[a,s,l,u,d,p,v].concat(c),{name:"Scheme",illegal:/\S/,contains:[t.SHEBANG(),s,l,d,p,v].concat(c)}}return y5=e,y5}var b5,fme;function qsn(){if(fme)return b5;fme=1;function e(t){const n=[t.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[t.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[t.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:n},t.COMMENT("//","$")].concat(n)}}return b5=e,b5}var S5,pme;function Ksn(){if(pme)return S5;pme=1;const e=s=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function a(s){const l=e(s),c=i,u=r,d="@[a-z-]+",f="and or not only",h={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+u.join("|")+")"},{className:"selector-pseudo",begin:"::("+c.join("|")+")"},h,{begin:/\(/,end:/\)/,contains:[s.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[h,l.HEXCOLOR,s.CSS_NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,l.IMPORTANT]},{begin:"@(page|font-face)",lexemes:d,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:n.join(" ")},contains:[{begin:d,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},h,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,l.HEXCOLOR,s.CSS_NUMBER_MODE]}]}}return S5=a,S5}var E5,mme;function Qsn(){if(mme)return E5;mme=1;function e(t){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return E5=e,E5}var C5,hme;function Xsn(){if(hme)return C5;hme=1;function e(t){const n=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],r=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},t.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+n.join("|")+")\\s"},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
|
||
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return C5=e,C5}var w5,gme;function Zsn(){if(gme)return w5;gme=1;function e(t){const n="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0},t.C_NUMBER_MODE,i,r,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,r,t.C_NUMBER_MODE,i]}]}}return w5=e,w5}var x5,vme;function Jsn(){if(vme)return x5;vme=1;function e(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"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 with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return x5=e,x5}var T5,_me;function eln(){if(_me)return T5;_me=1;function e(t){const n={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"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 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 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 and 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 boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call 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 className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio 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 configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV 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 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 ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight 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_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 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 echo 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 enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM 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 forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam 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 getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit 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 inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest 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 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 leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize 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 mod 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 not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality 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 preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink 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 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 scopeName score scoreSide screenshot screenToWorld scriptDone scriptName 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 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 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 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 sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step 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 taskParent taskResult taskState taskType teamMember 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 tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected 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 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 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 WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.NUMBER_MODE,n,r,i,o],illegal:/#|^\$ /}}return T5=e,T5}var R5,yme;function tln(){if(yme)return R5;yme=1;function e(t){var n=t.COMMENT("--","$");return{name:"SQL (more)",aliases:["mysql","oracle"],disableAutodetect:!0,case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,t.HASH_COMMENT_MODE]},t.C_BLOCK_COMMENT_MODE,n,t.HASH_COMMENT_MODE]}}return R5=e,R5}var O5,bme;function nln(){if(bme)return O5;bme=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(...i){return i.map(a=>e(a)).join("")}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o=i.COMMENT("--","$"),a={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},s={begin:/"/,end:/"/,contains:[{begin:/""/}]},l=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],v=p,y=[...f,...d].filter(E=>!p.includes(E)),_={className:"variable",begin:/@[a-z0-9]+/},b={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={begin:t(/\b/,n(...v),/\s*\(/),keywords:{built_in:v}};function C(E,{exceptions:w,when:x}={}){const T=x;return w=w||[],E.map(R=>R.match(/\|\d+$/)||w.includes(R)?R:T(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(y,{when:E=>E.length<3}),literal:l,type:u,built_in:h},contains:[{begin:n(...g),keywords:{$pattern:/[\w\.]+/,keyword:y.concat(g),literal:l,type:u}},{className:"type",begin:n(...c)},S,_,a,s,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,o,b]}}return O5=r,O5}var I5,Sme;function rln(){if(Sme)return I5;Sme=1;function e(t){const n=["functions","model","data","parameters","quantities","transformed","generated"],r=["for","in","if","else","while","break","continue","return"],i=["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"],o=["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],a=["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"],s=["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:t.IDENT_RE,title:n,keyword:r.concat(o).concat(i),built_in:a},contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),t.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+t.IDENT_RE+")\\s*\\(",keywords:s},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}return I5=e,I5}var N5,Eme;function iln(){if(Eme)return N5;Eme=1;function e(t){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:`\`"[^\r
|
||
]*?"'`},{begin:`"[^\r
|
||
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return N5=e,N5}var M5,Cme;function oln(){if(Cme)return M5;Cme=1;function e(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return M5=e,M5}var A5,wme;function aln(){if(wme)return A5;wme=1;const e=s=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function a(s){const l=e(s),c="and or not only",u={className:"variable",begin:"\\$"+s.IDENT_RE},d=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],f="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,l.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-id"},{begin:"\\b("+t.join("|")+")"+f,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+r.join("|")+")"+f},{className:"selector-pseudo",begin:"&?::("+i.join("|")+")"+f},l.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:c,attribute:n.join(" ")},contains:[s.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+d.join("|")+"))\\b"},u,s.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[l.HEXCOLOR,u,s.APOS_STRING_MODE,s.CSS_NUMBER_MODE,s.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[l.HEXCOLOR,u,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,s.CSS_NUMBER_MODE,s.C_BLOCK_COMMENT_MODE,l.IMPORTANT],illegal:/\./,relevance:0}}]}}return A5=a,A5}var P5,xme;function sln(){if(xme)return P5;xme=1;function e(t){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
|
||
(multipart)?`,end:`\\]
|
||
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return P5=e,P5}var D5,Tme;function lln(){if(Tme)return D5;Tme=1;function e(w){return w?typeof w=="string"?w:w.source:null}function t(w){return n("(?=",w,")")}function n(...w){return w.map(T=>e(T)).join("")}function r(...w){return"("+w.map(T=>e(T)).join("|")+")"}const i=w=>n(/\b/,w,/\w$/.test(w)?/\b/:/\B/),o=["Protocol","Type"].map(i),a=["init","self"].map(i),s=["Any","Self"],l=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],c=["false","nil","true"],u=["assignment","associativity","higherThan","left","lowerThan","none","right"],d=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],f=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],p=r(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),h=r(p,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),g=n(p,h,"*"),v=r(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=r(v,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=n(v,y,"*"),b=n(/[A-Z]/,y,"*"),S=["autoclosure",n(/convention\(/,r("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],C=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function E(w){const x={match:/\s+/,relevance:0},T=w.COMMENT("/\\*","\\*/",{contains:["self"]}),R=[w.C_LINE_COMMENT_MODE,T],N={className:"keyword",begin:n(/\./,t(r(...o,...a))),end:r(...o,...a),excludeBegin:!0},I={match:n(/\./,r(...l)),relevance:0},P=l.filter(Be=>typeof Be=="string").concat(["_|0"]),D=l.filter(Be=>typeof Be!="string").concat(s).map(i),F={variants:[{className:"keyword",match:r(...D,...a)}]},L={$pattern:r(/\b\w+/,/#\w+/),keyword:P.concat(d),literal:c},B=[N,I,F],U={match:n(/\./,r(...f)),relevance:0},G={className:"built_in",match:n(/\b/,r(...f),/(?=\()/)},V=[U,G],W={match:/->/,relevance:0},$={className:"operator",relevance:0,variants:[{match:g},{match:`\\.(\\.|${h})+`}]},H=[W,$],K="([0-9]_*)+",re="([0-9a-fA-F]_*)+",Q={className:"number",relevance:0,variants:[{match:`\\b(${K})(\\.(${K}))?([eE][+-]?(${K}))?\\b`},{match:`\\b0x(${re})(\\.(${re}))?([pP][+-]?(${K}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},A=(Be="")=>({className:"subst",variants:[{match:n(/\\/,Be,/[0\\tnr"']/)},{match:n(/\\/,Be,/u\{[0-9a-fA-F]{1,8}\}/)}]}),k=(Be="")=>({className:"subst",match:n(/\\/,Be,/[\t ]*(?:[\r\n]|\r\n)/)}),Z=(Be="")=>({className:"subst",label:"interpol",begin:n(/\\/,Be,/\(/),end:/\)/}),ne=(Be="")=>({begin:n(Be,/"""/),end:n(/"""/,Be),contains:[A(Be),k(Be),Z(Be)]}),oe=(Be="")=>({begin:n(Be,/"/),end:n(/"/,Be),contains:[A(Be),Z(Be)]}),ae={className:"string",variants:[ne(),ne("#"),ne("##"),ne("###"),oe(),oe("#"),oe("##"),oe("###")]},ue={match:n(/`/,_,/`/)},fe={className:"variable",match:/\$\d+/},se={className:"variable",match:`\\$${y}+`},pe=[ue,fe,se],_e={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...H,Q,ae]}]}},Te={className:"keyword",match:n(/@/,r(...S))},xe={className:"meta",match:n(/@/,_)},ge=[_e,Te,xe],Ce={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:b,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,t(b)),relevance:0}]},ye={begin:/</,end:/>/,keywords:L,contains:[...R,...B,...ge,W,Ce]};Ce.contains.push(ye);const be={match:n(_,/\s*:/),keywords:"_|0",relevance:0},Ee={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",be,...R,...B,...V,...H,Q,ae,...pe,...ge,Ce]},Me={beginKeywords:"func",contains:[{className:"title",match:r(ue.match,_,g),endsParent:!0,relevance:0},x]},X={begin:/</,end:/>/,contains:[...R,Ce]},Y={begin:r(t(n(_,/\s*:/)),t(n(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},J={begin:/\(/,end:/\)/,keywords:L,contains:[Y,...R,...B,...H,Q,ae,...ge,Ce,Ee],endsParent:!0,illegal:/["']/},he={className:"function",match:t(/\bfunc\b/),contains:[Me,X,J,x],illegal:[/\[/,/%/]},ve={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[X,J,x],illegal:/\[|%/},ce={beginKeywords:"operator",end:w.MATCH_NOTHING_RE,contains:[{className:"title",match:g,endsParent:!0,relevance:0}]},$e={beginKeywords:"precedencegroup",end:w.MATCH_NOTHING_RE,contains:[{className:"title",match:b,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...u,...c],contains:[Ce]}]};for(const Be of ae.variants){const me=Be.contains.find(Xe=>Xe.label==="interpol");me.keywords=L;const Fe=[...B,...V,...H,Q,ae,...pe];me.contains=[...Fe,{begin:/\(/,end:/\)/,contains:["self",...Fe]}]}return{name:"Swift",keywords:L,contains:[...R,he,ve,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:L,contains:[w.inherit(w.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...B]},ce,$e,{beginKeywords:"import",end:/$/,contains:[...R],relevance:0},...B,...V,...H,Q,ae,...pe,...ge,Ce,Ee]}}return D5=E,D5}var k5,Rme;function cln(){if(Rme)return k5;Rme=1;function e(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}return k5=e,k5}var L5,Ome;function uln(){if(Ome)return L5;Ome=1;function e(t){var n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},s=t.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",u="(\\.[0-9]*)?",d="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",f={className:"number",begin:"\\b"+l+c+u+d+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},f,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},h,g,a],y=[...v];return y.pop(),y.push(s),p.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return L5=e,L5}var $5,Ime;function dln(){if(Ime)return $5;Ime=1;function e(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return $5=e,$5}var F5,Nme;function fln(){if(Nme)return F5;Nme=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(i){return n("(",i,")?")}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=/[a-zA-Z_][a-zA-Z0-9_]*/,a={className:"number",variants:[i.BINARY_NUMBER_MODE,i.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[i.COMMENT(";[ \\t]*#","$"),i.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:n(/\$/,t(/::/),o,"(::",o,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[a]}]},{className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.inherit(i.QUOTE_STRING_MODE,{illegal:null})]},a]}}return F5=r,F5}var B5,Mme;function pln(){if(Mme)return B5;Mme=1;function e(t){const n="bool byte i16 i32 i64 double string binary";return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:n,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:n,contains:["self"]}]}}return B5=e,B5}var U5,Ame;function mln(){if(Ame)return U5;Ame=1;function e(t){const n={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",n,r]},o={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",n,t.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[i,o,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.COMMENT("//","[;$]"),t.COMMENT("!","[;$]"),t.COMMENT("--eg:","$"),t.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},t.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return U5=e,U5}var j5,Pme;function hln(){if(Pme)return j5;Pme=1;function e(t){var n={className:"params",begin:"\\(",end:"\\)"},r="attribute block constant cycle date dump include max min parent random range source template_from_string",i={beginKeywords:r,keywords:{name:r},relevance:0,contains:[n]},o={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[i]},a="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return a=a+" "+a.split(" ").map(function(s){return"end"+s}).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:a,starts:{endsWithParent:!0,contains:[o,i],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",o,i]}]}}return j5=e,j5}var H5,Dme;function gln(){if(Dme)return H5;Dme=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],s=[].concat(o,a,r,i);function l(p){return p?typeof p=="string"?p:p.source:null}function c(p){return u("(?=",p,")")}function u(...p){return p.map(g=>l(g)).join("")}function d(p){const h=(B,{after:U})=>{const G="</"+B[0].slice(1);return B.input.indexOf(G,U)!==-1},g=e,v={begin:"<>",end:"</>"},y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(B,U)=>{const G=B[0].length+B.index,V=B.input[G];if(V==="<"){U.ignoreMatch();return}V===">"&&(h(B,{after:G})||U.ignoreMatch())}},_={$pattern:e,keyword:t,literal:n,built_in:s},b="[0-9](_?[0-9])*",S=`\\.(${b})`,C="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${C})((${S})|\\.)?|(${S}))[eE][+-]?(${b})\\b`},{begin:`\\b(${C})\\b((${S})\\b|\\.)?|(${S})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},w={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,w],subLanguage:"xml"}},T={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,w],subLanguage:"css"}},R={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,w]},I={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},P=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,x,T,R,E,p.REGEXP_MODE];w.contains=P.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(P)});const D=[].concat(I,w.contains),F=D.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(D)}]),L={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:F};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:F},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,x,T,R,I,E,{begin:u(/[{,\n]\s*/,c(u(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+c("\\s*:"),relevance:0}]},{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[I,p.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:F}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:v.begin,end:v.end},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:_,contains:["self",p.inherit(p.TITLE_MODE,{begin:g}),L],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[L,p.inherit(p.TITLE_MODE,{begin:g})]},{variants:[{begin:"\\."+g},{begin:"\\$"+g}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},p.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[p.inherit(p.TITLE_MODE,{begin:g}),"self",L]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[p.inherit(p.TITLE_MODE,{begin:g}),{begin:/\(\)/},L]},{begin:/\$[(.]/}]}}function f(p){const h=e,g={beginKeywords:"namespace",end:/\{/,excludeEnd:!0},v={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},y={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},_=["any","void","number","boolean","string","object","never","enum"],b=["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"],S={$pattern:e,keyword:t.concat(b),literal:n,built_in:s.concat(_)},C={className:"meta",begin:"@"+h},E=(T,R,N)=>{const I=T.contains.findIndex(P=>P.label===R);if(I===-1)throw new Error("can not find mode to replace");T.contains.splice(I,1,N)},w=d(p);Object.assign(w.keywords,S),w.exports.PARAMS_CONTAINS.push(C),w.contains=w.contains.concat([C,g,v]),E(w,"shebang",p.SHEBANG()),E(w,"use_strict",y);const x=w.contains.find(T=>T.className==="function");return x.relevance=0,Object.assign(w,{name:"TypeScript",aliases:["ts","tsx"]}),w}return H5=f,H5}var z5,kme;function vln(){if(kme)return z5;kme=1;function e(t){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[t.UNDERSCORE_TITLE_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}return z5=e,z5}var V5,Lme;function _ln(){if(Lme)return V5;Lme=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(...i){return i.map(a=>e(a)).join("")}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o={className:"string",begin:/"(""|[^/n])"C\b/},a={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,l=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t(/# */,n(l,s),/ *#/)},{begin:t(/# */,u,/ *#/)},{begin:t(/# */,c,/ *#/)},{begin:t(/# */,n(l,s),/ +/,n(c,u),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},h=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=i.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[o,a,d,f,p,h,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return V5=r,V5}var G5,$me;function yln(){if($me)return G5;$me=1;function e(i){return i?typeof i=="string"?i:i.source:null}function t(...i){return i.map(a=>e(a)).join("")}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" "),a=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],s={begin:t(n(...o),"\\s*\\("),relevance:0,keywords:{built_in:o}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:a,literal:"true false null nothing empty"},illegal:"//",contains:[s,i.inherit(i.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),i.COMMENT(/'/,/$/,{relevance:0}),i.C_NUMBER_MODE]}}return G5=r,G5}var W5,Fme;function bln(){if(Fme)return W5;Fme=1;function e(t){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return W5=e,W5}var Y5,Bme;function Sln(){if(Bme)return Y5;Bme=1;function e(t){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 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 reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE,t.QUOTE_STRING_MODE,{className:"number",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}return Y5=e,Y5}var q5,Ume;function Eln(){if(Ume)return q5;Ume=1;function e(t){const n="\\d(_|\\d)*",r="[eE][-+]?"+n,i=n+"(\\."+n+")?("+r+")?",o="\\w+",s="\\b("+(n+"#"+o+"(\\."+o+")?#("+r+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[t.C_BLOCK_COMMENT_MODE,t.COMMENT("--","$"),t.QUOTE_STRING_MODE,{className:"number",begin:s,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[t.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[t.BACKSLASH_ESCAPE]}]}}return q5=e,q5}var K5,jme;function Cln(){if(jme)return K5;jme=1;function e(t){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[t.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},t.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[t.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return K5=e,K5}var Q5,Hme;function wln(){if(Hme)return Q5;Hme=1;function e(t){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+t.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[t.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},t.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return Q5=e,Q5}var X5,zme;function xln(){if(zme)return X5;zme=1;function e(t){const r={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons "+"ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},i={className:"string",begin:'"',end:'"',illegal:"\\n"},o={className:"string",begin:"'",end:"'",illegal:"\\n"},a={className:"string",begin:"<<",end:">>"},s={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},l={beginKeywords:"import",end:"$",keywords:r,contains:[i]},c={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,keywords:r}})]};return{name:"XL",aliases:["tao"],keywords:r,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,i,o,a,c,l,s,t.NUMBER_MODE]}}return X5=e,X5}var Z5,Vme;function Tln(){if(Vme)return Z5;Vme=1;function e(t){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return Z5=e,Z5}var J5,Gme;function Rln(){if(Gme)return J5;Gme=1;function e(t){const n={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},r=t.UNDERSCORE_TITLE_MODE,i={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},o="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:o,contains:[t.C_LINE_COMMENT_MODE,t.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[t.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[r,{className:"params",begin:/\(/,end:/\)/,keywords:o,contains:["self",t.C_BLOCK_COMMENT_MODE,n,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},r]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[r]},{beginKeywords:"use",end:/;/,contains:[r]},{begin:/=>/},n,i]}}return J5=e,J5}var it=US,Oln=it;it.registerLanguage("1c",Jin());it.registerLanguage("abnf",eon());it.registerLanguage("accesslog",ton());it.registerLanguage("actionscript",non());it.registerLanguage("ada",ron());it.registerLanguage("angelscript",ion());it.registerLanguage("apache",oon());it.registerLanguage("applescript",aon());it.registerLanguage("arcade",son());it.registerLanguage("arduino",lon());it.registerLanguage("armasm",con());it.registerLanguage("xml",uon());it.registerLanguage("asciidoc",don());it.registerLanguage("aspectj",fon());it.registerLanguage("autohotkey",pon());it.registerLanguage("autoit",mon());it.registerLanguage("avrasm",hon());it.registerLanguage("awk",gon());it.registerLanguage("axapta",von());it.registerLanguage("bash",_on());it.registerLanguage("basic",yon());it.registerLanguage("bnf",bon());it.registerLanguage("brainfuck",Son());it.registerLanguage("c-like",Eon());it.registerLanguage("c",Con());it.registerLanguage("cal",won());it.registerLanguage("capnproto",xon());it.registerLanguage("ceylon",Ton());it.registerLanguage("clean",Ron());it.registerLanguage("clojure",Oon());it.registerLanguage("clojure-repl",Ion());it.registerLanguage("cmake",Non());it.registerLanguage("coffeescript",Mon());it.registerLanguage("coq",Aon());it.registerLanguage("cos",Pon());it.registerLanguage("cpp",Don());it.registerLanguage("crmsh",kon());it.registerLanguage("crystal",Lon());it.registerLanguage("csharp",$on());it.registerLanguage("csp",Fon());it.registerLanguage("css",Bon());it.registerLanguage("d",Uon());it.registerLanguage("markdown",jon());it.registerLanguage("dart",Hon());it.registerLanguage("delphi",zon());it.registerLanguage("diff",Von());it.registerLanguage("django",Gon());it.registerLanguage("dns",Won());it.registerLanguage("dockerfile",Yon());it.registerLanguage("dos",qon());it.registerLanguage("dsconfig",Kon());it.registerLanguage("dts",Qon());it.registerLanguage("dust",Xon());it.registerLanguage("ebnf",Zon());it.registerLanguage("elixir",Jon());it.registerLanguage("elm",ean());it.registerLanguage("ruby",tan());it.registerLanguage("erb",nan());it.registerLanguage("erlang-repl",ran());it.registerLanguage("erlang",ian());it.registerLanguage("excel",oan());it.registerLanguage("fix",aan());it.registerLanguage("flix",san());it.registerLanguage("fortran",lan());it.registerLanguage("fsharp",can());it.registerLanguage("gams",uan());it.registerLanguage("gauss",dan());it.registerLanguage("gcode",fan());it.registerLanguage("gherkin",pan());it.registerLanguage("glsl",man());it.registerLanguage("gml",han());it.registerLanguage("go",gan());it.registerLanguage("golo",van());it.registerLanguage("gradle",_an());it.registerLanguage("groovy",yan());it.registerLanguage("haml",ban());it.registerLanguage("handlebars",San());it.registerLanguage("haskell",Ean());it.registerLanguage("haxe",Can());it.registerLanguage("hsp",wan());it.registerLanguage("htmlbars",xan());it.registerLanguage("http",Tan());it.registerLanguage("hy",Ran());it.registerLanguage("inform7",Oan());it.registerLanguage("ini",Ian());it.registerLanguage("irpf90",Nan());it.registerLanguage("isbl",Man());it.registerLanguage("java",Aan());it.registerLanguage("javascript",Pan());it.registerLanguage("jboss-cli",Dan());it.registerLanguage("json",kan());it.registerLanguage("julia",Lan());it.registerLanguage("julia-repl",$an());it.registerLanguage("kotlin",Fan());it.registerLanguage("lasso",Ban());it.registerLanguage("latex",Uan());it.registerLanguage("ldif",jan());it.registerLanguage("leaf",Han());it.registerLanguage("less",zan());it.registerLanguage("lisp",Van());it.registerLanguage("livecodeserver",Gan());it.registerLanguage("livescript",Wan());it.registerLanguage("llvm",Yan());it.registerLanguage("lsl",qan());it.registerLanguage("lua",Kan());it.registerLanguage("makefile",Qan());it.registerLanguage("mathematica",Xan());it.registerLanguage("matlab",Zan());it.registerLanguage("maxima",Jan());it.registerLanguage("mel",esn());it.registerLanguage("mercury",tsn());it.registerLanguage("mipsasm",nsn());it.registerLanguage("mizar",rsn());it.registerLanguage("perl",isn());it.registerLanguage("mojolicious",osn());it.registerLanguage("monkey",asn());it.registerLanguage("moonscript",ssn());it.registerLanguage("n1ql",lsn());it.registerLanguage("nginx",csn());it.registerLanguage("nim",usn());it.registerLanguage("nix",dsn());it.registerLanguage("node-repl",fsn());it.registerLanguage("nsis",psn());it.registerLanguage("objectivec",msn());it.registerLanguage("ocaml",hsn());it.registerLanguage("openscad",gsn());it.registerLanguage("oxygene",vsn());it.registerLanguage("parser3",_sn());it.registerLanguage("pf",ysn());it.registerLanguage("pgsql",bsn());it.registerLanguage("php",Ssn());it.registerLanguage("php-template",Esn());it.registerLanguage("plaintext",Csn());it.registerLanguage("pony",wsn());it.registerLanguage("powershell",xsn());it.registerLanguage("processing",Tsn());it.registerLanguage("profile",Rsn());it.registerLanguage("prolog",Osn());it.registerLanguage("properties",Isn());it.registerLanguage("protobuf",Nsn());it.registerLanguage("puppet",Msn());it.registerLanguage("purebasic",Asn());it.registerLanguage("python",Psn());it.registerLanguage("python-repl",Dsn());it.registerLanguage("q",ksn());it.registerLanguage("qml",Lsn());it.registerLanguage("r",$sn());it.registerLanguage("reasonml",Fsn());it.registerLanguage("rib",Bsn());it.registerLanguage("roboconf",Usn());it.registerLanguage("routeros",jsn());it.registerLanguage("rsl",Hsn());it.registerLanguage("ruleslanguage",zsn());it.registerLanguage("rust",Vsn());it.registerLanguage("sas",Gsn());it.registerLanguage("scala",Wsn());it.registerLanguage("scheme",Ysn());it.registerLanguage("scilab",qsn());it.registerLanguage("scss",Ksn());it.registerLanguage("shell",Qsn());it.registerLanguage("smali",Xsn());it.registerLanguage("smalltalk",Zsn());it.registerLanguage("sml",Jsn());it.registerLanguage("sqf",eln());it.registerLanguage("sql_more",tln());it.registerLanguage("sql",nln());it.registerLanguage("stan",rln());it.registerLanguage("stata",iln());it.registerLanguage("step21",oln());it.registerLanguage("stylus",aln());it.registerLanguage("subunit",sln());it.registerLanguage("swift",lln());it.registerLanguage("taggerscript",cln());it.registerLanguage("yaml",uln());it.registerLanguage("tap",dln());it.registerLanguage("tcl",fln());it.registerLanguage("thrift",pln());it.registerLanguage("tp",mln());it.registerLanguage("twig",hln());it.registerLanguage("typescript",gln());it.registerLanguage("vala",vln());it.registerLanguage("vbnet",_ln());it.registerLanguage("vbscript",yln());it.registerLanguage("vbscript-html",bln());it.registerLanguage("verilog",Sln());it.registerLanguage("vhdl",Eln());it.registerLanguage("vim",Cln());it.registerLanguage("x86asm",wln());it.registerLanguage("xl",xln());it.registerLanguage("xquery",Tln());it.registerLanguage("zephir",Rln());const Iln=yi(Oln),Nln=["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","c-like","c","cal","capnproto","ceylon","clean","clojure-repl","clojure","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","csharp","csp","css","d","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","erb","erlang-repl","erlang","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia-repl","julia","kotlin","lasso","latex","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","markdown","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","mojolicious","monkey","moonscript","n1ql","nginx","nim","nix","node-repl","nsis","objectivec","ocaml","openscad","oxygene","parser3","perl","pf","pgsql","php-template","php","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python-repl","python","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruby","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql","sql_more","stan","stata","step21","stylus","subunit","swift","taggerscript","tap","tcl","thrift","tp","twig","typescript","vala","vbnet","vbscript-html","vbscript","verilog","vhdl","vim","x86asm","xl","xml","xquery","yaml","zephir"];var Wke=Vrn(Iln,Grn);Wke.supportedLanguages=Nln;const Mln={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#f8f8ff"},"hljs-comment":{color:"#408080",fontStyle:"italic"},"hljs-quote":{color:"#408080",fontStyle:"italic"},"hljs-keyword":{color:"#954121"},"hljs-selector-tag":{color:"#954121"},"hljs-literal":{color:"#954121"},"hljs-subst":{color:"#954121"},"hljs-number":{color:"#40a070"},"hljs-string":{color:"#219161"},"hljs-doctag":{color:"#219161"},"hljs-selector-id":{color:"#19469d"},"hljs-selector-class":{color:"#19469d"},"hljs-section":{color:"#19469d"},"hljs-type":{color:"#19469d"},"hljs-params":{color:"#00f"},"hljs-title":{color:"#458",fontWeight:"bold"},"hljs-tag":{color:"#000080",fontWeight:"normal"},"hljs-name":{color:"#000080",fontWeight:"normal"},"hljs-attribute":{color:"#000080",fontWeight:"normal"},"hljs-variable":{color:"#008080"},"hljs-template-variable":{color:"#008080"},"hljs-regexp":{color:"#b68"},"hljs-link":{color:"#b68"},"hljs-symbol":{color:"#990073"},"hljs-bullet":{color:"#990073"},"hljs-built_in":{color:"#0086b3"},"hljs-builtin-name":{color:"#0086b3"},"hljs-meta":{color:"#999",fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},Aln={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#1E1E1E",color:"#DCDCDC"},"hljs-keyword":{color:"#569CD6"},"hljs-literal":{color:"#569CD6"},"hljs-symbol":{color:"#569CD6"},"hljs-name":{color:"#569CD6"},"hljs-link":{color:"#569CD6",textDecoration:"underline"},"hljs-built_in":{color:"#4EC9B0"},"hljs-type":{color:"#4EC9B0"},"hljs-number":{color:"#B8D7A3"},"hljs-class":{color:"#B8D7A3"},"hljs-string":{color:"#D69D85"},"hljs-meta-string":{color:"#D69D85"},"hljs-regexp":{color:"#9A5334"},"hljs-template-tag":{color:"#9A5334"},"hljs-subst":{color:"#DCDCDC"},"hljs-function":{color:"#DCDCDC"},"hljs-title":{color:"#DCDCDC"},"hljs-params":{color:"#DCDCDC"},"hljs-formula":{color:"#DCDCDC"},"hljs-comment":{color:"#57A64A",fontStyle:"italic"},"hljs-quote":{color:"#57A64A",fontStyle:"italic"},"hljs-doctag":{color:"#608B4E"},"hljs-meta":{color:"#9B9B9B"},"hljs-meta-keyword":{color:"#9B9B9B"},"hljs-tag":{color:"#9B9B9B"},"hljs-variable":{color:"#BD63C5"},"hljs-template-variable":{color:"#BD63C5"},"hljs-attr":{color:"#9CDCFE"},"hljs-attribute":{color:"#9CDCFE"},"hljs-builtin-name":{color:"#9CDCFE"},"hljs-section":{color:"gold"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"},"hljs-bullet":{color:"#D7BA7D"},"hljs-selector-tag":{color:"#D7BA7D"},"hljs-selector-id":{color:"#D7BA7D"},"hljs-selector-class":{color:"#D7BA7D"},"hljs-selector-attr":{color:"#D7BA7D"},"hljs-selector-pseudo":{color:"#D7BA7D"},"hljs-addition":{backgroundColor:"#144212",display:"inline-block",width:"100%"},"hljs-deletion":{backgroundColor:"#600",display:"inline-block",width:"100%"}},Pln=({visible:e,onClose:t,nodes:n,edges:r})=>{const i=mr(),{isDarkMode:o}=cc(),a={nodes:n,edges:r};return M.jsx(_o,{title:i.formatMessage({id:"flow.json"}),open:e,onCancel:t,width:800,footer:null,children:M.jsx("div",{style:{maxHeight:"70vh",overflow:"auto"},children:M.jsx(Wke,{language:"json",style:o?Aln:Mln,customStyle:{padding:"20px",borderRadius:"4px"},children:JSON.stringify(a,null,2)})})})},{Header:Dln}=_i,Yke=()=>{const[e,t]=m.useState(null),[n,r]=m.useState(!1),{nodes:i,edges:o}=Ike(),a=mr(),{isDarkMode:s}=cc(),[l,c]=m.useState(!1),{headerStyle:u}=Wh();m.useEffect(()=>{const C=()=>{t(null)};return window.addEventListener("flow-node-deselect",C),()=>{window.removeEventListener("flow-node-deselect",C)}},[]);const d=C=>{t(C)},f=C=>{t(C),r(!0)},p=(C,E)=>{window.dispatchEvent(new CustomEvent("flow-node-update",{detail:{nodeId:C,data:E}}))},h=()=>{const E=JSON.stringify({nodes:i,edges:o},null,2),w=new Blob([E],{type:"application/json"}),x=URL.createObjectURL(w),T=document.createElement("a");T.download="flow-data.json",T.href=x,T.click(),URL.revokeObjectURL(x)},g=C=>{const E=new FileReader;return E.onload=w=>{var x;try{const T=JSON.parse((x=w.target)==null?void 0:x.result);window.dispatchEvent(new CustomEvent("flow-import",{detail:T})),Bt.success("导入成功")}catch{Bt.error("导入失败,请检查文件格式")}},E.readAsText(C),!1},v=()=>{var C;(C=window.bytedesk)==null||C.showChat()},y=()=>{var C;(C=window.bytedesk)==null||C.hideChat()},_=()=>{console.log("handleNewFlow")},b=()=>{c(!0)},S=()=>{c(!1)};return M.jsxs("div",{children:[M.jsxs(_i,{children:[M.jsx(Dln,{style:u,children:M.jsxs("div",{className:"header-content",children:[M.jsx("h1",{children:M.jsx("span",{className:"title-text",style:{color:s?"#fff":"#000"},children:a.formatMessage({id:"flow.title"})})}),M.jsxs("div",{className:"header-actions",children:[M.jsx(On,{type:"primary",icon:M.jsx(EA,{}),style:{marginLeft:8},onClick:_,children:a.formatMessage({id:"flow.new"})}),M.jsx(On,{type:"primary",icon:M.jsx(EA,{}),style:{marginLeft:8},onClick:b,children:a.formatMessage({id:"flow.json"})}),M.jsx(jp,{beforeUpload:g,showUploadList:!1,accept:".json",children:M.jsx(On,{type:"primary",icon:M.jsx($_,{}),children:a.formatMessage({id:"flow.import"})})}),M.jsx(On,{type:"primary",icon:M.jsx(lk,{}),onClick:h,style:{marginLeft:8},children:a.formatMessage({id:"flow.export"})}),M.jsx(On,{type:"primary",icon:M.jsx(ZC,{}),onClick:v,children:a.formatMessage({id:"flow.startChat"})}),M.jsx(On,{type:"primary",icon:M.jsx(ou,{}),onClick:y,children:a.formatMessage({id:"flow.closeChat"})})]})]})}),M.jsx(_i,{className:"main-layout",style:{background:s?"#141414":void 0},children:M.jsxs("div",{className:"main-content",style:{display:"flex",flex:1,background:s?"#141414":"#fff"},children:[M.jsx("div",{className:"left-panel",style:{width:280,flexShrink:0,borderRight:`1px solid ${s?"#303030":"#f0f0f0"}`,background:s?"#141414":"#fff"},children:M.jsx(UQt,{})}),M.jsx("div",{className:"center-panel",style:{flex:1},children:M.jsx(Orn,{onNodeClick:d,onPropertyClick:f})})]})})]}),M.jsx(Lq,{title:(e==null?void 0:e.data.title)||"属性设置",placement:"right",width:600,onClose:()=>r(!1),open:n,children:e&&M.jsx(Irn,{selectedNode:e,onNodeUpdate:p,onChildUpdate:(C,E,w)=>{console.log("onChildUpdate",C,E,w)},onChildDelete:(C,E)=>{console.log("onChildDelete",C,E)}})}),M.jsx(Pln,{visible:l,onClose:S,nodes:i,edges:o})]})};function Rn(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function kln(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Lln=kln(function(e){var t=e.exports=function(n,r){if(r||(r=16),n===void 0&&(n=128),n<=0)return"0";for(var i=Math.log(Math.pow(2,n))/Math.log(r),o=2;i===1/0;o*=2)i=Math.log(Math.pow(2,n/o))/Math.log(r)*o;for(var a=i-Math.floor(i),s="",o=0;o<Math.floor(i);o++){var l=Math.floor(Math.random()*r).toString(r);s=l+s}if(a){var c=Math.pow(r,a),l=Math.floor(Math.random()*c).toString(r);s=l+s}var u=parseInt(s,r);return u!==1/0&&u>=Math.pow(2,n)?t(n,r):s};t.rack=function(n,r,i){var o=function(s){var l=0;do{if(l++>10)if(i)n+=i;else throw new Error("too many ID collisions, use more bits");var c=t(n,r)}while(Object.hasOwnProperty.call(a,c));return a[c]=s,c},a=o.hats={};return o.get=function(s){return o.hats[s]},o.set=function(s,l){return o.hats[s]=l,o},o.bits=n||128,o.base=r||16,o}});function cf(e){if(!(this instanceof cf))return new cf(e);e=e||[128,36,1],this._seed=e.length?Lln.rack(e[0],e[1],e[2]):e}cf.prototype.next=function(e){return this._seed(e||!0)};cf.prototype.nextPrefixed=function(e,t){var n;do n=e+this.next(!0);while(this.assigned(n));return this.claim(n,t),n};cf.prototype.claim=function(e,t){this._seed.set(e,t||!0)};cf.prototype.assigned=function(e){return this._seed.get(e)||!1};cf.prototype.unclaim=function(e){delete this._seed.hats[e]};cf.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};function lX(e){return Array.prototype.concat.apply([],e)}const TT=Object.prototype.toString,$ln=Object.prototype.hasOwnProperty;function f_(e){return e===void 0}function pa(e){return e!==void 0}function $w(e){return e==null}function lr(e){return TT.call(e)==="[object Array]"}function ba(e){return TT.call(e)==="[object Object]"}function Jn(e){return TT.call(e)==="[object Number]"}function Go(e){const t=TT.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function gl(e){return TT.call(e)==="[object String]"}function Fln(e){if(!lr(e))throw new Error("must supply array")}function Ls(e,t){return!$w(e)&&$ln.call(e,t)}function Br(e,t){const n=n$(t);let r;return Ze(e,function(i,o){if(n(i,o))return r=i,!1}),r}function qke(e,t){const n=n$(t);let r=lr(e)?-1:void 0;return Ze(e,function(i,o){if(n(i,o))return r=o,!1}),r}function Cr(e,t){const n=n$(t);let r=[];return Ze(e,function(i,o){n(i,o)&&r.push(i)}),r}function Ze(e,t){let n,r;if(f_(e))return;const i=lr(e)?zln:Hln;for(let o in e)if(Ls(e,o)&&(n=e[o],r=t(n,i(o)),r===!1))return n}function Bln(e,t){if(f_(e))return[];Fln(e);const n=n$(t);return e.filter(function(r,i){return!n(r,i)})}function vl(e,t,n){return Ze(e,function(r,i){n=t(n,r,i)}),n}function G_(e,t){return!!vl(e,function(n,r,i){return n&&t(r,i)},!0)}function Kh(e,t){return!!Br(e,t)}function Ya(e,t){let n=[];return Ze(e,function(r,i){n.push(t(r,i))}),n}function SP(e){return e&&Object.keys(e)||[]}function Uln(e){return SP(e).length}function cX(e){return Ya(e,t=>t)}function jS(e,t,n={}){return t=uX(t),Ze(e,function(r){let i=t(r)||"_",o=n[i];o||(o=n[i]=[]),o.push(r)}),n}function Kke(e,...t){e=uX(e);let n={};return Ze(t,i=>jS(i,e,n)),Ya(n,function(i,o){return i[0]})}const jln=Kke;function uf(e,t){t=uX(t);let n=[];return Ze(e,function(r,i){let o=t(r,i),a={d:o,v:r};for(var s=0;s<n.length;s++){let{d:l}=n[s];if(o<l){n.splice(s,0,a);return}}n.push(a)}),Ya(n,r=>r.v)}function Xu(e){return function(t){return G_(e,function(n,r){return t[r]===n})}}function uX(e){return Go(e)?e:t=>t[e]}function n$(e){return Go(e)?e:t=>t===e}function Hln(e){return e}function zln(e){return Number(e)}function Qke(e,t){let n,r,i,o;function a(d){let f=Date.now(),p=d?0:o+t-f;if(p>0)return s(p);e.apply(i,r),l()}function s(d){n=setTimeout(a,d)}function l(){n&&clearTimeout(n),n=o=r=i=void 0}function c(){n&&a(!0),l()}function u(...d){o=Date.now(),r=d,i=this,n||s(t)}return u.flush=c,u.cancel=l,u}function Us(e,t){return e.bind(t)}function lt(e,...t){return Object.assign(e,...t)}function Vln(e,t,n){let r=e;return Ze(t,function(i,o){if(typeof i!="number"&&typeof i!="string")throw new Error("illegal key type: "+typeof i+". Key should be of type number or string.");if(i==="constructor")throw new Error("illegal key: constructor");if(i==="__proto__")throw new Error("illegal key: __proto__");let a=t[o+1],s=r[i];pa(a)&&$w(s)&&(s=r[i]=isNaN(+a)?{}:[]),f_(a)?f_(n)?delete r[i]:r[i]=n:r=s}),e}function ld(e,t){let n={},r=Object(e);return Ze(t,function(i){i in r&&(n[i]=e[i])}),n}function yf(e,t){let n={},r=Object(e);return Ze(r,function(i,o){t.indexOf(o)===-1&&(n[o]=i)}),n}function Gln(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}const Wln=Object.prototype.toString,Yln=Object.prototype.hasOwnProperty;function qln(e){return e===void 0}function Kln(e){return Wln.call(e)==="[object Array]"}function Qln(e,t){return Yln.call(e,t)}function Wme(e,t){let n,r;if(qln(e))return;const i=Kln(e)?Zln:Xln;for(let o in e)if(Qln(e,o)&&(n=e[o],r=t(n,i(o)),r===!1))return n}function Xln(e){return e}function Zln(e){return Number(e)}function ja(e,...t){const n=e.style;return Wme(t,function(r){r&&Wme(r,function(i,o){n[o]=i})}),e}function za(e,t,n){return arguments.length==2?e.getAttribute(t):n===null?e.removeAttribute(t):(e.setAttribute(t,n),e)}const Jln=Object.prototype.toString;function so(e){return new Oh(e)}function Oh(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Oh.prototype.add=function(e){return this.list.add(e),this};Oh.prototype.remove=function(e){return Jln.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)};Oh.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this};Oh.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this};Oh.prototype.array=function(){return Array.from(this.list)};Oh.prototype.has=Oh.prototype.contains=function(e){return this.list.contains(e)};function r$(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function HS(e,t,n){var r=n?e:e.parentNode;return r&&typeof r.closest=="function"&&r.closest(t)||null}var EP={},CP,_V,dX;function Xke(){CP=window.addEventListener?"addEventListener":"attachEvent",_V=window.removeEventListener?"removeEventListener":"detachEvent",dX=CP!=="addEventListener"?"on":""}var ecn=EP.bind=function(e,t,n,r){return CP||Xke(),e[CP](dX+t,n,r||!1),n},tcn=EP.unbind=function(e,t,n,r){return _V||Xke(),e[_V](dX+t,n,r||!1),n},sr=Gln({__proto__:null,bind:ecn,unbind:tcn,default:EP},[EP]),Zke=["focus","blur"];function ncn(e,t,n,r,i){return Zke.indexOf(n)!==-1&&(i=!0),sr.bind(e,n,function(o){var a=o.target||o.srcElement;o.delegateTarget=HS(a,t,!0),o.delegateTarget&&r.call(e,o)},i)}function rcn(e,t,n,r){return Zke.indexOf(t)!==-1&&(r=!0),sr.unbind(e,t,n,r)}var ul={bind:ncn,unbind:rcn},icn=ocn,Jke=!1,jO;typeof document<"u"&&(jO=document.createElement("div"),jO.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',Jke=!jO.getElementsByTagName("link").length,jO=void 0);var Uo={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:Jke?[1,"X<div>","</div>"]:[0,"",""]};Uo.td=Uo.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];Uo.option=Uo.optgroup=[1,'<select multiple="multiple">',"</select>"];Uo.thead=Uo.tbody=Uo.colgroup=Uo.caption=Uo.tfoot=[1,"<table>","</table>"];Uo.polyline=Uo.ellipse=Uo.polygon=Uo.circle=Uo.text=Uo.line=Uo.path=Uo.rect=Uo.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function ocn(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var r=n[1];if(r=="body"){var l=t.createElement("html");return l.innerHTML=e,l.removeChild(l.lastChild)}var i=Object.prototype.hasOwnProperty.call(Uo,r)?Uo[r]:Uo._default,o=i[0],a=i[1],s=i[2],l=t.createElement("div");for(l.innerHTML=a+e+s;o--;)l=l.lastChild;if(l.firstChild==l.lastChild)return l.removeChild(l.firstChild);for(var c=t.createDocumentFragment();l.firstChild;)c.appendChild(l.removeChild(l.firstChild));return c}var Oi=icn;function eLe(e,t){return e&&typeof e.matches=="function"&&e.matches(t)||!1}function fi(e,t){return t=t||document,t.querySelector(e)}function yV(e,t){return t=t||document,t.querySelectorAll(e)}function df(e){e.parentNode&&e.parentNode.removeChild(e)}function acn(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch{}return e}function scn(e,t){return t.appendChild(acn(e,t))}function nr(e,t){return scn(t,e),e}var bV=2,tLe={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":bV,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":bV,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function lcn(e,t){return tLe[t]?e.style[t]:e.getAttributeNS(null,t)}function nLe(e,t,n){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=tLe[r];i?(i===bV&&typeof n=="number"&&(n=String(n)+"px"),e.style[r]=n):e.setAttributeNS(null,t,n)}function ccn(e,t){var n=Object.keys(t),r,i;for(r=0,i;i=n[r];r++)nLe(e,i,t[i])}function Cn(e,t,n){if(typeof t=="string")if(n!==void 0)nLe(e,t,n);else return lcn(e,t);else ccn(e,t);return e}const ucn=Object.prototype.toString;function Dr(e){return new Ih(e)}function Ih(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Ih.prototype.add=function(e){return this.list.add(e),this};Ih.prototype.remove=function(e){return ucn.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)};Ih.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this};Ih.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this};Ih.prototype.array=function(){return Array.from(this.list)};Ih.prototype.has=Ih.prototype.contains=function(e){return this.list.contains(e)};function i$(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function rLe(e){return e.cloneNode(!0)}var fX={svg:"http://www.w3.org/2000/svg"},Yme='<svg xmlns="'+fX.svg+'"';function dcn(e){var t=!1;e.substring(0,4)==="<svg"?e.indexOf(fX.svg)===-1&&(e=Yme+e.substring(4)):(e=Yme+">"+e+"</svg>",t=!0);var n=fcn(e);if(!t)return n;for(var r=document.createDocumentFragment(),i=n.firstChild;i.firstChild;)r.appendChild(i.firstChild);return r}function fcn(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}function Bn(e,t){var n;return e=e.trim(),e.charAt(0)==="<"?(n=dcn(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(fX.svg,e),t&&Cn(n,t),n}var eU=null;function iLe(){return eU===null&&(eU=Bn("svg")),eU}function qme(e,t){var n,r,i=Object.keys(t);for(n=0;r=i[n];n++)e[r]=t[r];return e}function pcn(e,t,n,r,i,o){var a=iLe().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return qme(a,e);case 6:return qme(a,{a:e,b:t,c:n,d:r,e:i,f:o})}}function l1(e){return iLe().createSVGTransform()}var Kme=/([&<>]{1})/g,mcn=/([&<>\n\r"]{1})/g,hcn={"&":"&","<":"<",">":">",'"':"'"};function tU(e,t){function n(r,i){return hcn[i]||i}return e.replace(t,n)}function oLe(e,t){var n,r,i,o,a;switch(e.nodeType){case 3:t.push(tU(e.textContent,Kme));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(i=e.attributes,n=0,r=i.length;n<r;++n)o=i.item(n),t.push(" ",o.name,'="',tU(o.value,mcn),'"');if(e.hasChildNodes()){for(t.push(">"),a=e.childNodes,n=0,r=a.length;n<r;++n)oLe(a.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("<!--",tU(e.nodeValue,Kme),"-->");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function gcn(e){for(var t=e.firstChild,n=[];t;)oLe(t,n),t=t.nextSibling;return n.join("")}function Qme(e,t){return gcn(e)}function Vo(e){var t=e.parentNode;return t&&t.removeChild(e),e}function vcn(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function _cn(e,t){var n,r;for(e.clear(),n=0;r=t[n];n++)e.appendItem(vcn(e,r))}function Fw(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),_cn(n,t)),n.consolidate()}const ycn=/^class[ {]/;function bcn(e){return ycn.test(e.toString())}function pX(e){return Array.isArray(e)}function nU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function RN(...e){e.length===1&&pX(e[0])&&(e=e[0]),e=[...e];const t=e.pop();return t.$inject=e,t}const Scn=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Ecn=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Ccn=/\/\*([^*]*)\*\//m;function wcn(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(bcn(e)?Scn:Ecn);if(!t)return[];const n=t[1]||t[2];return n&&n.split(",").map(r=>{const i=r.match(Ccn);return(i&&i[1]||r).trim()})||[]}function aLe(e,t){const n=t||{get:function(b,S){if(r.push(b),S===!1)return null;throw s(`No provider for "${b}"!`)}},r=[],i=this._providers=Object.create(n._providers||null),o=this._instances=Object.create(null),a=o.injector=this,s=function(b){const S=r.join(" -> ");return r.length=0,new Error(S?`${b} (Resolving: ${S})`:b)};function l(b,S){if(!i[b]&&b.includes(".")){const C=b.split(".");let E=l(C.shift());for(;C.length;)E=E[C.shift()];return E}if(nU(o,b))return o[b];if(nU(i,b)){if(r.indexOf(b)!==-1)throw r.push(b),s("Cannot resolve circular dependency!");return r.push(b),o[b]=i[b][0](i[b][1]),r.pop(),o[b]}return n.get(b,S)}function c(b,S){if(typeof S>"u"&&(S={}),typeof b!="function")if(pX(b))b=RN(b.slice());else throw s(`Cannot invoke "${b}". Expected a function!`);const E=(b.$inject||wcn(b)).map(w=>nU(S,w)?S[w]:l(w));return{fn:b,dependencies:E}}function u(b){const{fn:S,dependencies:C}=c(b),E=Function.prototype.bind.call(S,null,...C);return new E}function d(b,S,C){const{fn:E,dependencies:w}=c(b,C);return E.apply(S,w)}function f(b){return RN(S=>b.get(S))}function p(b,S){if(S&&S.length){const C=Object.create(null),E=Object.create(null),w=[],x=[],T=[];let R,N,I,P;for(let D in i)R=i[D],S.indexOf(D)!==-1&&(R[2]==="private"?(N=w.indexOf(R[3]),N===-1?(I=R[3].createChild([],S),P=f(I),w.push(R[3]),x.push(I),T.push(P),C[D]=[P,D,"private",I]):C[D]=[T[N],D,"private",x[N]]):C[D]=[R[2],R[1]],E[D]=!0),(R[2]==="factory"||R[2]==="type")&&R[1].$scope&&S.forEach(F=>{R[1].$scope.indexOf(F)!==-1&&(C[D]=[R[2],R[1]],E[F]=!0)});S.forEach(D=>{if(!E[D])throw new Error('No provider for "'+D+'". Cannot use provider from the parent!')}),b.unshift(C)}return new aLe(b,a)}const h={factory:d,type:u,value:function(b){return b}};function g(b,S){const C=b.__init__||[];return function(){C.forEach(E=>{typeof E=="string"?S.get(E):S.invoke(E)})}}function v(b){const S=b.__exports__;if(S){const C=b.__modules__,E=Object.keys(b).reduce((N,I)=>(I!=="__exports__"&&I!=="__modules__"&&I!=="__init__"&&I!=="__depends__"&&(N[I]=b[I]),N),Object.create(null)),w=(C||[]).concat(E),x=p(w),T=RN(function(N){return x.get(N)});S.forEach(function(N){i[N]=[T,N,"private",x]});const R=(b.__init__||[]).slice();return R.unshift(function(){x.init()}),b=Object.assign({},b,{__init__:R}),g(b,x)}return Object.keys(b).forEach(function(C){if(C==="__init__"||C==="__depends__")return;const E=b[C];if(E[2]==="private"){i[C]=E;return}const w=E[0],x=E[1];i[C]=[h[w],xcn(w,x),w]}),g(b,a)}function y(b,S){return b.indexOf(S)!==-1||(b=(S.__depends__||[]).reduce(y,b),b.indexOf(S)!==-1)?b:b.concat(S)}function _(b){const S=b.reduce(y,[]).map(v);let C=!1;return function(){C||(C=!0,S.forEach(E=>E()))}}this.get=l,this.invoke=d,this.instantiate=u,this.createChild=p,this.init=_(e)}function xcn(e,t){return e!=="value"&&pX(t)&&(t=RN(t.slice())),t}var Tcn=1e3;function Kp(e,t){var n=this;t=t||Tcn,e.on(["render.shape","render.connection"],t,function(r,i){var o=r.type,a=i.element,s=i.gfx,l=i.attrs;if(n.canRender(a))return o==="render.shape"?n.drawShape(s,a,l):n.drawConnection(s,a,l)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(r,i){if(n.canRender(i))return r.type==="render.getShapePath"?n.getShapePath(i):n.getConnectionPath(i)})}Kp.prototype.canRender=function(e){};Kp.prototype.drawShape=function(e,t){};Kp.prototype.drawConnection=function(e,t){};Kp.prototype.getShapePath=function(e){};Kp.prototype.getConnectionPath=function(e){};function W_(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function Rcn(e){return["M",e.x,e.y]}function rU(e){return["L",e.x,e.y]}function Ocn(e,t,n){return["C",e.x,e.y,t.x,t.y,n.x,n.y]}function Icn(e,t){const n=e.length,r=[Rcn(e[0])];for(let i=1;i<n;i++){const o=e[i-1],a=e[i],s=e[i+1];if(!s||!t){r.push(rU(a));continue}const l=Math.min(t,SV(a.x-o.x,a.y-o.y),SV(s.x-a.x,s.y-a.y));if(!l){r.push(rU(a));continue}const c=HO(a,o,l),u=HO(a,o,l*.5),d=HO(a,s,l),f=HO(a,s,l*.5);r.push(rU(c)),r.push(Ocn(u,f,d))}return r}function HO(e,t,n){const r=t.x-e.x,i=t.y-e.y,o=SV(r,i),a=n/o;return{x:e.x+r*a,y:e.y+i*a}}function SV(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function o$(e,t,n){Jn(t)&&(n=t,t=null),t||(t={});const r=Bn("path",t);return Jn(n)&&(r.dataset.cornerRadius=String(n)),sLe(r,e)}function sLe(e,t){const n=parseInt(e.dataset.cornerRadius,10)||0;return Cn(e,{d:W_(Icn(t,n))}),e}function a$(e){return Cr(e,function(t){return!Br(e,function(n){return n!==t&&lLe(t,n)})})}function lLe(e,t){if(t){if(e===t)return t;if(e.parent)return lLe(e.parent,t)}}function Xme(e,t,n){var r=!n||e.indexOf(t)===-1;return r&&e.push(t),r}function Y_(e,t,n){n=n||0,lr(e)||(e=[e]),Ze(e,function(r,i){var o=t(r,i,n);lr(o)&&o.length&&Y_(o,t,n+1)})}function Ncn(e,t,n){var r=[],i=[];return Y_(e,function(o,a,s){Xme(r,o,t);var l=o.children;if(l&&Xme(i,l,t))return l}),r}function RT(e,t){return Ncn(e,!t)}function Mcn(e,t,n){f_(t)&&(t=!0),ba(t)&&(n=t,t=!0),n=n||{};var r=HE(n.allShapes),i=HE(n.allConnections),o=HE(n.enclosedElements),a=HE(n.enclosedConnections),s=HE(n.topLevel,t&&jS(e,function(u){return u.id}));function l(u){s[u.source.id]&&s[u.target.id]&&(s[u.id]=[u]),r[u.source.id]&&r[u.target.id]&&(a[u.id]=o[u.id]=u),i[u.id]=u}function c(u){if(o[u.id]=u,u.waypoints)a[u.id]=i[u.id]=u;else return r[u.id]=u,Ze(u.incoming,l),Ze(u.outgoing,l),u.children}return Y_(e,c),{allShapes:r,allConnections:i,topLevel:s,enclosedConnections:a,enclosedElements:o}}function oa(e,t){t=!!t,lr(e)||(e=[e]);var n,r,i,o;return Ze(e,function(a){var s=a;a.waypoints&&!t&&(s=oa(a.waypoints,!0));var l=s.x,c=s.y,u=s.height||0,d=s.width||0;(l<n||n===void 0)&&(n=l),(c<r||r===void 0)&&(r=c),(l+d>i||i===void 0)&&(i=l+d),(c+u>o||o===void 0)&&(o=c+u)}),{x:n,y:r,height:o-r,width:i-n}}function Acn(e,t){var n={};return Ze(e,function(r){var i=r;i.waypoints&&(i=oa(i)),!Jn(t.y)&&i.x>t.x&&(n[r.id]=r),!Jn(t.x)&&i.y>t.y&&(n[r.id]=r),i.x>t.x&&i.y>t.y&&(Jn(t.width)&&Jn(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y||!Jn(t.width)||!Jn(t.height))&&(n[r.id]=r)}),n}function cLe(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function uLe(e){return!!(e&&e.isFrame)}function HE(e,t){return lt({},e||{},t||{})}var Pcn=1;function Qh(e,t){Kp.call(this,e,Pcn),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Rn(Qh,Kp);Qh.prototype.canRender=function(){return!0};Qh.prototype.drawShape=function(t,n,r){var i=Bn("rect");return Cn(i,{x:0,y:0,width:n.width||0,height:n.height||0}),uLe(n)?Cn(i,lt({},this.FRAME_STYLE,r||{})):Cn(i,lt({},this.SHAPE_STYLE,r||{})),nr(t,i),i};Qh.prototype.drawConnection=function(t,n,r){var i=o$(n.waypoints,lt({},this.CONNECTION_STYLE,r||{}));return nr(t,i),i};Qh.prototype.getShapePath=function(t){var n=t.x,r=t.y,i=t.width,o=t.height,a=[["M",n,r],["l",i,0],["l",0,o],["l",-i,0],["z"]];return W_(a)};Qh.prototype.getConnectionPath=function(t){var n=t.waypoints,r,i,o=[];for(r=0;i=n[r];r++)i=i.original||i,o.push([r===0?"M":"L",i.x,i.y]);return W_(o)};Qh.$inject=["eventBus","styles"];function Dcn(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(n,r,i){var o=this.style(r,i);return lt(o,{class:n})},this.style=function(n,r){!lr(n)&&!r&&(r=n,n=[]);var i=vl(n,function(o,a){return lt(o,e[a]||{})},{});return r?lt(i,r):i},this.computeStyle=function(n,r,i){return lr(r)||(i=r,r=[]),t.style(r||[],lt({},i,n||{}))}}const kcn={__init__:["defaultRenderer"],defaultRenderer:["type",Qh],styles:["type",Dcn]};function Io(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return n!==-1&&e.splice(n,1),n}function Xo(e,t,n){if(!(!e||!t)){typeof n!="number"&&(n=-1);var r=e.indexOf(t);if(r!==-1){if(r===n)return;if(n!==-1)e.splice(r,1);else return}n!==-1?e.splice(n,0,t):e.push(t)}}function mX(e,t){return!e||!t?-1:e.indexOf(t)}function OT(e,t){return!e||!t?-1:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function hX(e,t,n,r){if(typeof r>"u"&&(r=5),!e||!t||!n)return!1;var i=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),o=OT(e,t);return Math.abs(i/o)<=r}var Lcn=2;function ep(e,t){var n=Array.from(arguments).flat();const r={x:"v",y:"h"};for(const[i,o]of Object.entries(r))if($cn(i,n))return o;return!1}function $cn(e,t){const n=t[0];return G_(t,function(r){return Math.abs(n[e]-r[e])<=Lcn})}function Zme(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n}function EV(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}}var Fcn=/,?([a-z]),?/gi,Jme=parseFloat,Co=Math,mm=Co.PI,Nd=Co.min,Md=Co.max,ehe=Co.pow,nh=Co.abs,Bcn=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig,Ucn=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig,wP=Array.isArray||function(e){return e instanceof Array};function gX(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c1(e){if(typeof e=="function"||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)gX(e,n)&&(t[n]=c1(e[n]));return t}function jcn(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}function Hcn(e){function t(){var n=Array.prototype.slice.call(arguments,0),r=n.join("␀"),i=t.cache=t.cache||{},o=t.count=t.count||[];return gX(i,r)?(jcn(o,r),i[r]):(o.length>=1e3&&delete i[o.shift()],o.push(r),i[r]=e(...arguments),i[r])}return t}function zcn(e){if(!e)return null;var t=A0(e);if(t.arr)return c1(t.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=[];return wP(e)&&wP(e[0])&&(r=c1(e)),r.length||String(e).replace(Bcn,function(i,o,a){var s=[],l=o.toLowerCase();for(a.replace(Ucn,function(c,u){u&&s.push(+u)}),l=="m"&&s.length>2&&(r.push([o,...s.splice(0,2)]),l="l",o=o=="m"?"l":"L");s.length>=n[l]&&(r.push([o,...s.splice(0,n[l])]),!!n[l]););}),r.toString=A0.toString,t.arr=c1(r),r}function A0(e){var t=A0.ps=A0.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var n in t)gX(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])}),t[e]}function CV(e,t,n,r){return arguments.length===1&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,height:r,x2:e+n,y2:t+r}}function dLe(){return this.join(",").replace(Fcn,"$1")}function xP(e){var t=c1(e);return t.toString=dLe,t}function the(e,t,n,r,i,o,a,s,l){var c=1-l,u=ehe(c,3),d=ehe(c,2),f=l*l,p=f*l,h=u*e+d*3*l*n+c*3*l*l*i+p*a,g=u*t+d*3*l*r+c*3*l*l*o+p*s;return{x:TP(h),y:TP(g)}}function nhe(e){var t=qcn(...e);return CV(t.x0,t.y0,t.x1-t.x0,t.y1-t.y0)}function hm(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Vcn(e,t){return e=CV(e),t=CV(t),hm(t,e.x,e.y)||hm(t,e.x2,e.y)||hm(t,e.x,e.y2)||hm(t,e.x2,e.y2)||hm(e,t.x,t.y)||hm(e,t.x2,t.y)||hm(e,t.x,t.y2)||hm(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}function rhe(e,t,n,r,i){var o=-3*t+9*n-9*r+3*i,a=e*o+6*t-12*n+6*r;return e*a-3*t+3*n}function ihe(e,t,n,r,i,o,a,s,l){l==null&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,u=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h<u;h++){var g=c*d[h]+c,v=rhe(g,e,n,i,a),y=rhe(g,t,r,o,s),_=v*v+y*y;p+=f[h]*Co.sqrt(_)}return c*p}function Gcn(e,t,n,r,i,o,a,s){if(!(Md(e,n)<Nd(i,a)||Nd(e,n)>Md(i,a)||Md(t,r)<Nd(o,s)||Nd(t,r)>Md(o,s))){var l=(e*r-t*n)*(i-a)-(e-n)*(i*s-o*a),c=(e*r-t*n)*(o-s)-(t-r)*(i*s-o*a),u=(e-n)*(o-s)-(t-r)*(i-a);if(u){var d=TP(l/u),f=TP(c/u),p=+d.toFixed(2),h=+f.toFixed(2);if(!(p<+Nd(e,n).toFixed(2)||p>+Md(e,n).toFixed(2)||p<+Nd(i,a).toFixed(2)||p>+Md(i,a).toFixed(2)||h<+Nd(t,r).toFixed(2)||h>+Md(t,r).toFixed(2)||h<+Nd(o,s).toFixed(2)||h>+Md(o,s).toFixed(2)))return{x:d,y:f}}}}function TP(e){return Math.round(e*1e11)/1e11}function Wcn(e,t,n){var r=nhe(e),i=nhe(t);if(!Vcn(r,i))return n?0:[];for(var o=ihe(...e),a=ihe(...t),s=ohe(e)?1:~~(o/5)||1,l=ohe(t)?1:~~(a/5)||1,c=[],u=[],d={},f=n?0:[],p=0;p<s+1;p++){var h=the(...e,p/s);c.push({x:h.x,y:h.y,t:p/s})}for(p=0;p<l+1;p++)h=the(...t,p/l),u.push({x:h.x,y:h.y,t:p/l});for(p=0;p<s;p++)for(var g=0;g<l;g++){var v=c[p],y=c[p+1],_=u[g],b=u[g+1],S=nh(y.x-v.x)<.01?"y":"x",C=nh(b.x-_.x)<.01?"y":"x",E=Gcn(v.x,v.y,y.x,y.y,_.x,_.y,b.x,b.y),w;if(E){if(w=E.x.toFixed(9)+"#"+E.y.toFixed(9),d[w])continue;d[w]=!0;var x=v.t+nh((E[S]-v[S])/(y[S]-v[S]))*(y.t-v.t),T=_.t+nh((E[C]-_[C])/(b[C]-_[C]))*(b.t-_.t);x>=0&&x<=1&&T>=0&&T<=1&&(n?f++:f.push({x:E.x,y:E.y,t1:x,t2:T}))}}return f}function fLe(e,t,n){e=she(e),t=she(t);for(var r,i,o,a,s,l,c,u,d,f,p=n?0:[],h=0,g=e.length;h<g;h++){var v=e[h];if(v[0]=="M")r=s=v[1],i=l=v[2];else{v[0]=="C"?(d=[r,i,...v.slice(1)],r=d[6],i=d[7]):(d=[r,i,r,i,s,l,s,l],r=s,i=l);for(var y=0,_=t.length;y<_;y++){var b=t[y];if(b[0]=="M")o=c=b[1],a=u=b[2];else{b[0]=="C"?(f=[o,a,...b.slice(1)],o=f[6],a=f[7]):(f=[o,a,o,a,c,u,c,u],o=c,a=u);var S=Wcn(d,f,n);if(n)p+=S;else{for(var C=0,E=S.length;C<E;C++)S[C].segment1=h,S[C].segment2=y,S[C].bez1=d,S[C].bez2=f;p=p.concat(S)}}}}}return p}function Ycn(e){var t=A0(e);if(t.abs)return xP(t.abs);if((!wP(e)||!wP(e&&e[0]))&&(e=zcn(e)),!e||!e.length)return[["M",0,0]];var n=[],r=0,i=0,o=0,a=0,s=0,l;e[0][0]=="M"&&(r=+e[0][1],i=+e[0][2],o=r,a=i,s++,n[0]=["M",r,i]);for(var c,u,d=s,f=e.length;d<f;d++){if(n.push(c=[]),u=e[d],l=u[0],l!=l.toUpperCase())switch(c[0]=l.toUpperCase(),c[0]){case"A":c[1]=u[1],c[2]=u[2],c[3]=u[3],c[4]=u[4],c[5]=u[5],c[6]=+u[6]+r,c[7]=+u[7]+i;break;case"V":c[1]=+u[1]+i;break;case"H":c[1]=+u[1]+r;break;case"M":o=+u[1]+r,a=+u[2]+i;default:for(var p=1,h=u.length;p<h;p++)c[p]=+u[p]+(p%2?r:i)}else for(var g=0,v=u.length;g<v;g++)c[g]=u[g];switch(l=l.toUpperCase(),c[0]){case"Z":r=+o,i=+a;break;case"H":r=c[1];break;case"V":i=c[1];break;case"M":o=c[c.length-2],a=c[c.length-1];default:r=c[c.length-2],i=c[c.length-1]}}return n.toString=dLe,t.abs=xP(n),n}function ohe(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function zO(e,t,n,r){return[e,t,n,r,n,r]}function ahe(e,t,n,r,i,o){var a=.3333333333333333,s=2/3;return[a*e+s*n,a*t+s*r,a*i+s*n,a*o+s*r,i,o]}function pLe(e,t,n,r,i,o,a,s,l,c){var u=mm*120/180,d=mm/180*(+i||0),f=[],p,h=Hcn(function(A,k,Z){var ne=A*Co.cos(Z)-k*Co.sin(Z),oe=A*Co.sin(Z)+k*Co.cos(Z);return{x:ne,y:oe}});if(c)w=c[0],x=c[1],C=c[2],E=c[3];else{p=h(e,t,-d),e=p.x,t=p.y,p=h(s,l,-d),s=p.x,l=p.y;var g=(e-s)/2,v=(t-l)/2,y=g*g/(n*n)+v*v/(r*r);y>1&&(y=Co.sqrt(y),n=y*n,r=y*r);var _=n*n,b=r*r,S=(o==a?-1:1)*Co.sqrt(nh((_*b-_*v*v-b*g*g)/(_*v*v+b*g*g))),C=S*n*v/r+(e+s)/2,E=S*-r*g/n+(t+l)/2,w=Co.asin(((t-E)/r).toFixed(9)),x=Co.asin(((l-E)/r).toFixed(9));w=e<C?mm-w:w,x=s<C?mm-x:x,w<0&&(w=mm*2+w),x<0&&(x=mm*2+x),a&&w>x&&(w=w-mm*2),!a&&x>w&&(x=x-mm*2)}var T=x-w;if(nh(T)>u){var R=x,N=s,I=l;x=w+u*(a&&x>w?1:-1),s=C+n*Co.cos(x),l=E+r*Co.sin(x),f=pLe(s,l,n,r,i,0,a,N,I,[x,R,C,E])}T=x-w;var P=Co.cos(w),D=Co.sin(w),F=Co.cos(x),L=Co.sin(x),B=Co.tan(T/4),U=4/3*n*B,G=4/3*r*B,V=[e,t],W=[e+U*D,t-G*P],$=[s+U*L,l-G*F],H=[s,l];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],c)return[W,$,H].concat(f);f=[W,$,H].concat(f).join().split(",");for(var K=[],re=0,Q=f.length;re<Q;re++)K[re]=re%2?h(f[re-1],f[re],d).y:h(f[re],f[re+1],d).x;return K}function qcn(e,t,n,r,i,o,a,s){for(var l=[],c=[[],[]],u,d,f,p,h,g,v,y,_=0;_<2;++_){if(_==0?(d=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*a,f=3*n-3*e):(d=6*t-12*r+6*o,u=-3*t+9*r-9*o+3*s,f=3*r-3*t),nh(u)<1e-12){if(nh(d)<1e-12)continue;p=-f/d,0<p&&p<1&&l.push(p);continue}v=d*d-4*f*u,y=Co.sqrt(v),!(v<0)&&(h=(-d+y)/(2*u),0<h&&h<1&&l.push(h),g=(-d-y)/(2*u),0<g&&g<1&&l.push(g))}for(var b=l.length,S=b,C;b--;)p=l[b],C=1-p,c[0][b]=C*C*C*e+3*C*C*p*n+3*C*p*p*i+p*p*p*a,c[1][b]=C*C*C*t+3*C*C*p*r+3*C*p*p*o+p*p*p*s;return c[0][S]=e,c[1][S]=t,c[0][S+1]=a,c[1][S+1]=s,c[0].length=c[1].length=S+2,{x0:Nd(...c[0]),y0:Nd(...c[1]),x1:Md(...c[0]),y1:Md(...c[1])}}function she(e){var t=A0(e);if(t.curve)return xP(t.curve);for(var n=Ycn(e),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i=function(p,h,g){var v,y;if(!p)return["C",h.x,h.y,h.x,h.y,h.x,h.y];switch(!(p[0]in{T:1,Q:1})&&(h.qx=h.qy=null),p[0]){case"M":h.X=p[1],h.Y=p[2];break;case"A":p=["C",...pLe(h.x,h.y,...p.slice(1))];break;case"S":g=="C"||g=="S"?(v=h.x*2-h.bx,y=h.y*2-h.by):(v=h.x,y=h.y),p=["C",v,y,...p.slice(1)];break;case"T":g=="Q"||g=="T"?(h.qx=h.x*2-h.qx,h.qy=h.y*2-h.qy):(h.qx=h.x,h.qy=h.y),p=["C",...ahe(h.x,h.y,h.qx,h.qy,p[1],p[2])];break;case"Q":h.qx=p[1],h.qy=p[2],p=["C",...ahe(h.x,h.y,p[1],p[2],p[3],p[4])];break;case"L":p=["C",...zO(h.x,h.y,p[1],p[2])];break;case"H":p=["C",...zO(h.x,h.y,p[1],h.y)];break;case"V":p=["C",...zO(h.x,h.y,h.x,p[1])];break;case"Z":p=["C",...zO(h.x,h.y,h.X,h.Y)];break}return p},o=function(p,h){if(p[h].length>7){p[h].shift();for(var g=p[h];g.length;)a[h]="A",p.splice(h++,0,["C",...g.splice(0,6)]);p.splice(h,1),u=n.length}},a=[],s="",l="",c=0,u=n.length;c<u;c++){n[c]&&(s=n[c][0]),s!="C"&&(a[c]=s,c&&(l=a[c-1])),n[c]=i(n[c],r,l),a[c]!="A"&&s=="C"&&(a[c]="C"),o(n,c);var d=n[c],f=d.length;r.x=d[f-2],r.y=d[f-1],r.bx=Jme(d[f-4])||r.x,r.by=Jme(d[f-3])||r.y}return t.curve=xP(n),n}function pi(e){return ba(e)&&Ls(e,"waypoints")}function Lr(e){return ba(e)&&Ls(e,"labelTarget")}function mLe(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function cp(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function Gn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function s$(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function Kcn(e){return cp({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function Qcn(e){for(var t=e.waypoints,n=t.reduce(function(c,u,d){var f=t[d-1];if(f){var p=c[c.length-1],h=p&&p.endLength||0,g=Jcn(f,u);c.push({start:f,end:u,startLength:h,endLength:h+g,length:g})}return c},[]),r=n.reduce(function(c,u){return c+u.length},0),i=r/2,o=0,a=n[o];a.endLength<i;)a=n[++o];var s=(i-a.startLength)/a.length,l={x:a.start.x+(a.end.x-a.start.x)*s,y:a.start.y+(a.end.y-a.start.y)*s};return l}function er(e){return pi(e)?Qcn(e):Kcn(e)}function Ka(e,t,n){n=n||0,ba(n)||(n={x:n,y:n});var r=Gn(e),i=Gn(t),o=r.bottom+n.y<=i.top,a=r.left-n.x>=i.right,s=r.top-n.y>=i.bottom,l=r.right+n.x<=i.left,c=o?"top":s?"bottom":null,u=l?"left":a?"right":null;return u&&c?c+"-"+u:u||c||"intersect"}function wV(e,t,n){var r=Xcn(e,t);return r.length===1||r.length===2&&OT(r[0],r[1])<1?cp(r[0]):r.length>1?(r=uf(r,function(i){var o=Math.floor(i.t2*100)||1;return o=100-o,o=(o<10?"0":"")+o,i.segment2+"#"+o}),cp(r[n?0:r.length-1])):null}function Xcn(e,t){return fLe(e,t)}function Zcn(e){e=e.slice();for(var t=0,n,r,i;e[t];)n=e[t],r=e[t-1],i=e[t+1],OT(n,i)===0||hX(r,i,n)?e.splice(t,1):t++;return e}function Jcn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ON(e,t){return Math.round(e*t)/t}function lhe(e){return Jn(e)?e+"px":e}function eun(e){for(;e.parent;)e=e.parent;return e}function tun(e){e=lt({},{width:"100%",height:"100%"},e);const t=e.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent"),ja(n,{position:"relative",overflow:"hidden",width:lhe(e.width),height:lhe(e.height)}),t.appendChild(n),n}function hLe(e,t,n){const r=Bn("g");Dr(r).add(t);const i=n!==void 0?n:e.childNodes.length-1;return e.insertBefore(r,e.childNodes[i]||null),r}const nun="base",gLe=0,run=1,iun={shape:["x","y","width","height"],connection:["waypoints"]};function tr(e,t,n,r){this._eventBus=t,this._elementRegistry=r,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}tr.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"];tr.prototype._init=function(e){const t=this._eventBus,n=this._container=tun(e),r=this._svg=Bn("svg");Cn(r,{width:"100%",height:"100%"}),za(r,"tabindex",0),e.autoFocus&&t.on("element.hover",()=>{this.restoreFocus()}),t.on("element.mousedown",500,o=>{this.focus()}),r.addEventListener("focusin",()=>{this._setFocused(!0)}),r.addEventListener("focusout",()=>{this._setFocused(!1)}),nr(n,r);const i=this._viewport=hLe(r,"viewport");e.deferUpdate&&(this._viewboxChanged=Qke(Us(this._viewboxChanged,this),300)),t.on("diagram.init",()=>{t.fire("canvas.init",{svg:r,viewport:i})}),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)};tr.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport};tr.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))};tr.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{const n=cLe(t);n==="root"?this.removeRootElement(t):this._removeElement(t,n)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox};tr.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)};tr.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()};tr.prototype.isFocused=function(){return this._focused};tr.prototype.getDefaultLayer=function(){return this.getLayer(nun,gLe)};tr.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),typeof t<"u"&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group};tr.prototype._getChildIndex=function(e){return vl(this._layers,function(t,n){return n.visible&&e>=n.index&&t++,t},0)};tr.prototype._createLayer=function(e,t){typeof t>"u"&&(t=run);const n=this._getChildIndex(t);return{group:hLe(this._viewport,"layer-"+e,n),index:t,visible:!0}};tr.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=this._viewport,r=t.group,i=t.index;if(t.visible)return r;const o=this._getChildIndex(i);return n.insertBefore(r,n.childNodes[o]||null),t.visible=!0,r};tr.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=t.group;return t.visible&&(Vo(n),t.visible=!1),n};tr.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],Vo(t.group))};tr.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null};tr.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(eun(e))||{}).rootElement:void 0};tr.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})};tr.prototype._findPlaneForRoot=function(e){return Br(this._planes,function(t){return t.rootElement===e})};tr.prototype.getContainer=function(){return this._container};tr.prototype._updateMarker=function(e,t,n){let r;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,r=this._elementRegistry._elements[e.id],r&&(Ze([r.gfx,r.secondaryGfx],function(i){i&&(n?(e.markers.add(t),Dr(i).add(t)):(e.markers.delete(t),Dr(i).remove(t)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:r.gfx,marker:t,add:!!n}))};tr.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)};tr.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)};tr.prototype.hasMarker=function(e,t){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(t):!1};tr.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)};tr.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))};tr.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const n=e.layer="root-"+t;this._ensureValid("root",e);const r=this.getLayer(n,gLe);return this.hideLayer(n),this._addRoot(e,r),this._planes.push({rootElement:e,layer:r}),e};tr.prototype.removeRootElement=function(e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),!!this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter(function(n){return n.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e};tr.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e};tr.prototype._removeRoot=function(e){const t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)};tr.prototype._addRoot=function(e,t){const n=this._elementRegistry,r=this._eventBus;r.fire("root.add",{element:e}),n.add(e,t),r.fire("root.added",{element:e,gfx:t})};tr.prototype._setRoot=function(e,t){const n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})};tr.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const n=iun[e];if(!G_(n,function(i){return typeof t[i]<"u"}))throw new Error("must supply { "+n.join(", ")+" } with "+e)};tr.prototype._setParent=function(e,t,n){Xo(t.children,e,n),e.parent=t};tr.prototype._addElement=function(e,t,n,r){n=n||this.getRootElement();const i=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),i.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,r);const a=o.create(e,t,r);return this._elementRegistry.add(t,a),o.update(e,t,a),i.fire(e+".added",{element:t,gfx:a}),t};tr.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)};tr.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)};tr.prototype._removeElement=function(e,t){const n=this._elementRegistry,r=this._graphicsFactory,i=this._eventBus;if(e=n.get(e.id||e),!!e)return i.fire(t+".remove",{element:e}),r.remove(e),Io(e.parent&&e.parent.children,e),e.parent=null,i.fire(t+".removed",{element:e}),n.remove(e),e};tr.prototype.removeShape=function(e){return this._removeElement(e,"shape")};tr.prototype.removeConnection=function(e){return this._removeElement(e,"connection")};tr.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)};tr.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()};tr.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})};tr.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const t=this._viewport,n=this.getSize();let r,i,o,a,s,l,c;if(e)this._changeViewbox(function(){s=Math.min(n.width/e.width,n.height/e.height);const u=this._svg.createSVGMatrix().scale(s).translate(-e.x,-e.y);Fw(t,u)});else return o=this._rootElement?this.getActiveLayer():null,r=o&&o.getBBox()||{},a=Fw(t),i=a?a.matrix:pcn(),s=ON(i.a,1e3),l=ON(-i.e||0,1e3),c=ON(-i.f||0,1e3),e=this._cachedViewbox={x:l?l/s:0,y:c?c/s:0,width:n.width/s,height:n.height/s,scale:s,inner:{width:r.width||0,height:r.height||0,x:r.x||0,y:r.y||0},outer:n},e;return e};tr.prototype.scroll=function(e){const t=this._viewport;let n=t.getCTM();return e&&this._changeViewbox(function(){e=lt({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),vLe(t,n)}),{x:n.e,y:n.f}};tr.prototype.scrollToElement=function(e,t){let n=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const r=this.findRoot(e);if(r!==this.getRootElement()&&this.setRootElement(r),r===e)return;t||(t={}),typeof t=="number"&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};const i=oa(e),o=Gn(i),a=this.viewbox(),s=this.zoom();let l,c;a.y+=t.top/s,a.x+=t.left/s,a.width-=(t.right+t.left)/s,a.height-=(t.bottom+t.top)/s;const u=Gn(a);if(!(i.width<a.width&&i.height<a.height))l=i.x-a.x,c=i.y-a.y;else{const f=Math.max(0,o.right-u.right),p=Math.min(0,o.left-u.left),h=Math.max(0,o.bottom-u.bottom),g=Math.min(0,o.top-u.top);l=f||p,c=h||g}this.scroll({dx:-l*s,dy:-c*s})};tr.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(t);let n,r;return this._changeViewbox(function(){typeof t!="object"&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),r=this._setZoom(e,t)}),ON(r.a,1e3)};function vLe(e,t){const n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}tr.prototype._fitViewport=function(e){const t=this.viewbox(),n=t.outer,r=t.inner;let i,o;return r.x>=0&&r.y>=0&&r.x+r.width<=n.width&&r.y+r.height<=n.height&&!e?o={x:0,y:0,width:Math.max(r.width+r.x,n.width),height:Math.max(r.height+r.y,n.height)}:(i=Math.min(1,n.width/r.width,n.height/r.height),o={x:r.x+(e?r.width/2-n.width/i/2:0),y:r.y+(e?r.height/2-n.height/i/2:0),width:n.width/i,height:n.height/i}),this.viewbox(o),this.viewbox(!1).scale};tr.prototype._setZoom=function(e,t){const n=this._svg,r=this._viewport,i=n.createSVGMatrix(),o=n.createSVGPoint();let a,s,l,c,u;l=r.getCTM();const d=l.a;return t?(a=lt(o,t),s=a.matrixTransform(l.inverse()),c=i.translate(s.x,s.y).scale(1/d*e).translate(-s.x,-s.y),u=l.multiply(c)):u=i.scale(e),vLe(this._viewport,u),u};tr.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}};tr.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let n;e.waypoints?n=this.getGraphics(e).getBBox():n=e;const r=n.x*t.scale-t.x*t.scale,i=n.y*t.scale-t.y*t.scale,o=n.width*t.scale,a=n.height*t.scale;return{x:r,y:i,width:o,height:a}};tr.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var P0="data-element-id";function pc(e){this._elements={},this._eventBus=e}pc.$inject=["eventBus"];pc.prototype.add=function(e,t,n){var r=e.id;this._validateId(r),Cn(t,P0,r),n&&Cn(n,P0,r),this._elements[r]={element:e,gfx:t,secondaryGfx:n}};pc.prototype.remove=function(e){var t=this._elements,n=e.id||e,r=n&&t[n];r&&(Cn(r.gfx,P0,""),r.secondaryGfx&&Cn(r.secondaryGfx,P0,""),delete t[n])};pc.prototype.updateId=function(e,t){this._validateId(t),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),r=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,r)};pc.prototype.updateGraphics=function(e,t,n){var r=e.id||e,i=this._elements[r];return n?i.secondaryGfx=t:i.gfx=t,t&&Cn(t,P0,r),t};pc.prototype.get=function(e){var t;typeof e=="string"?t=e:t=e&&Cn(e,P0);var n=this._elements[t];return n&&n.element};pc.prototype.filter=function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(n)}),t};pc.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),r=0;r<n.length;r++){var i=n[r],o=t[i],a=o.element,s=o.gfx;if(e(a,s))return a}};pc.prototype.getAll=function(){return this.filter(function(e){return e})};pc.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(n){var r=t[n],i=r.element,o=r.gfx;return e(i,o)})};pc.prototype.getGraphics=function(e,t){var n=e.id||e,r=this._elements[n];return r&&(t?r.secondaryGfx:r.gfx)};pc.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};function oun(e,t,n,r){var i=n.inverse;return Object.defineProperty(e,"remove",{value:function(o){var a=this.indexOf(o);return a!==-1&&(this.splice(a,1),t.unset(o,i,r)),o}}),Object.defineProperty(e,"contains",{value:function(o){return this.indexOf(o)!==-1}}),Object.defineProperty(e,"add",{value:function(o,a){var s=this.indexOf(o);if(typeof a>"u"){if(s!==-1)return;a=this.length}s!==-1&&this.splice(s,1),this.splice(a,0,o),s===-1&&t.set(o,i,r)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function aun(e){return e.__refs_collection===!0}function sun(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function _Le(e,t,n){var r=oun(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:r}),r.length&&r.forEach(function(i){e.set(i,t.inverse,n)})}function lun(e,t,n){var r=t.inverse,i=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return i},set:function(o){if(o!==i){var a=i;i=null,a&&e.unset(a,r,n),i=o,e.set(i,r,n)}}})}function Jc(e,t){if(!(this instanceof Jc))return new Jc(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Jc.prototype.bind=function(e,t){if(typeof t=="string"){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?_Le(this,t,e):lun(this,t,e)};Jc.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return aun(n)||_Le(this,t,e),n};Jc.prototype.ensureBound=function(e,t){sun(e,t)||this.bind(e,t)};Jc.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)};Jc.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var vX=new Jc({name:"children",enumerable:!0,collection:!0},{name:"parent"}),yLe=new Jc({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),che=new Jc({name:"attachers",collection:!0},{name:"host"}),bLe=new Jc({name:"outgoing",collection:!0},{name:"source"}),SLe=new Jc({name:"incoming",collection:!0},{name:"target"});function zS(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),vX.bind(this,"parent"),yLe.bind(this,"labels"),bLe.bind(this,"outgoing"),SLe.bind(this,"incoming")}function IT(){zS.call(this),vX.bind(this,"children"),che.bind(this,"host"),che.bind(this,"attachers")}Rn(IT,zS);function ELe(){zS.call(this),vX.bind(this,"children")}Rn(ELe,IT);function CLe(){IT.call(this),yLe.bind(this,"labelTarget")}Rn(CLe,IT);function wLe(){zS.call(this),bLe.bind(this,"source"),SLe.bind(this,"target")}Rn(wLe,zS);var cun={connection:wLe,shape:IT,label:CLe,root:ELe};function uun(e,t){var n=cun[e];if(!n)throw new Error("unknown type: <"+e+">");return lt(new n,t)}function dun(e){return e instanceof zS}function Qp(){this._uid=12}Qp.prototype.createRoot=function(e){return this.create("root",e)};Qp.prototype.createLabel=function(e){return this.create("label",e)};Qp.prototype.createShape=function(e){return this.create("shape",e)};Qp.prototype.createConnection=function(e){return this.create("connection",e)};Qp.prototype.create=function(e,t){return t=lt({},t||{}),t.id||(t.id=e+"_"+this._uid++),uun(e,t)};var RP="__fn",xLe=1e3,fun=Array.prototype.slice;function El(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}El.prototype.on=function(e,t,n,r){if(e=lr(e)?e:[e],Go(t)&&(r=n,n=t,t=xLe),!Jn(t))throw new Error("priority must be a number");var i=n;r&&(i=Us(n,r),i[RP]=n[RP]||n);var o=this;e.forEach(function(a){o._addListener(a,{priority:t,callback:i,next:null})})};El.prototype.once=function(e,t,n,r){var i=this;if(Go(t)&&(r=n,n=t,t=xLe),!Jn(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var a=n.apply(r,arguments);return i.off(e,o),a}o[RP]=n,this.on(e,t,o)};El.prototype.off=function(e,t){e=lr(e)?e:[e];var n=this;e.forEach(function(r){n._removeListener(r,t)})};El.prototype.createEvent=function(e){var t=new NT;return t.init(e),t};El.prototype.fire=function(e,t){var n,r,i,o;if(o=fun.call(arguments),typeof e=="object"&&(t=e,e=t.type),!e)throw new Error("no event type specified");if(r=this._listeners[e],!!r){t instanceof NT?n=t:n=this.createEvent(t),o[0]=n;var a=n.type;e!==a&&(n.type=e);try{i=this._invokeListeners(n,o,r)}finally{e!==a&&(n.type=a)}return i===void 0&&n.defaultPrevented&&(i=!1),i}};El.prototype.handleError=function(e){return this.fire("error",{error:e})===!1};El.prototype._destroy=function(){this._listeners={}};El.prototype._invokeListeners=function(e,t,n){for(var r;n&&!e.cancelBubble;)r=this._invokeListener(e,t,n),n=n.next;return r};El.prototype._invokeListener=function(e,t,n){var r;if(n.callback.__isTomb)return r;try{r=pun(n.callback,t),r!==void 0&&(e.returnValue=r,e.stopPropagation()),r===!1&&e.preventDefault()}catch(i){if(!this.handleError(i))throw console.error("unhandled error in event listener",i),i}return r};El.prototype._addListener=function(e,t){var n=this._getListeners(e),r;if(!n){this._setListeners(e,t);return}for(;n;){if(n.priority<t.priority){t.next=n,r?r.next=t:this._setListeners(e,t);return}r=n,n=n.next}r.next=t};El.prototype._getListeners=function(e){return this._listeners[e]};El.prototype._setListeners=function(e,t){this._listeners[e]=t};El.prototype._removeListener=function(e,t){var n=this._getListeners(e),r,i,o;if(!t){this._setListeners(e,null);return}for(;n;)r=n.next,o=n.callback,(o===t||o[RP]===t)&&(i?i.next=r:this._setListeners(e,r)),i=n,n=r};function NT(){}NT.prototype.stopPropagation=function(){this.cancelBubble=!0};NT.prototype.preventDefault=function(){this.defaultPrevented=!0};NT.prototype.init=function(e){lt(this,e||{})};function pun(e,t){return e.apply(null,t)}function Pv(e){return e.childNodes[0]}function mun(e){return e.parentNode.childNodes[1]}function IN(e,t,n,r,i){var o=l1();o.setTranslate(t,n);var a=l1();a.setRotate(r||0,0,0);var s=l1();s.setScale(1,1),Fw(e,[o,a,s])}function Na(e,t,n){var r=l1();r.setTranslate(t,n),Fw(e,r)}function TLe(e,t){var n=l1();n.setRotate(t,0,0),Fw(e,n)}function mc(e,t){this._eventBus=e,this._elementRegistry=t}mc.$inject=["eventBus","elementRegistry"];mc.prototype._getChildrenContainer=function(e){var t=this._elementRegistry.getGraphics(e),n;return e.parent?(n=mun(t),n||(n=Bn("g"),Dr(n).add("djs-children"),nr(t.parentNode,n))):n=t,n};mc.prototype._clear=function(e){var t=Pv(e);return r$(t),t};mc.prototype._createContainer=function(e,t,n,r){var i=Bn("g");Dr(i).add("djs-group"),typeof n<"u"?RLe(i,t,t.childNodes[n]):nr(t,i);var o=Bn("g");Dr(o).add("djs-element"),Dr(o).add("djs-"+e),r&&Dr(o).add("djs-frame"),nr(i,o);var a=Bn("g");return Dr(a).add("djs-visual"),nr(o,a),o};mc.prototype.create=function(e,t,n){var r=this._getChildrenContainer(t.parent);return this._createContainer(e,r,n,uLe(t))};mc.prototype.updateContainments=function(e){var t=this,n=this._elementRegistry,r;r=vl(e,function(i,o){return o.parent&&(i[o.parent.id]=o.parent),i},{}),Ze(r,function(i){var o=i.children;if(o){var a=t._getChildrenContainer(i);Ze(o.slice().reverse(),function(s){var l=n.getGraphics(s);RLe(l.parentNode,a)})}})};mc.prototype.drawShape=function(e,t,n={}){var r=this._eventBus;return r.fire("render.shape",{gfx:e,element:t,attrs:n})};mc.prototype.getShapePath=function(e){var t=this._eventBus;return t.fire("render.getShapePath",e)};mc.prototype.drawConnection=function(e,t,n={}){var r=this._eventBus;return r.fire("render.connection",{gfx:e,element:t,attrs:n})};mc.prototype.getConnectionPath=function(e){var t=this._eventBus;return t.fire("render.getConnectionPath",e)};mc.prototype.update=function(e,t,n){if(t.parent){var r=this._clear(n);if(e==="shape")this.drawShape(r,t),Na(n,t.x,t.y);else if(e==="connection")this.drawConnection(r,t);else throw new Error("unknown type: "+e);t.hidden?Cn(n,"display","none"):Cn(n,"display","block")}};mc.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);Vo(t.parentNode)};function RLe(e,t,n){var r=n||t.firstChild;e!==r&&t.insertBefore(e,r)}const hun={__depends__:[kcn],__init__:["canvas"],canvas:["type",tr],elementRegistry:["type",pc],elementFactory:["type",Qp],eventBus:["type",El],graphicsFactory:["type",mc]};function gun(e){var t=new aLe(e);return t.init(),t}function vun(e){e=e||{};var t={config:["value",e]},n=[t,hun].concat(e.modules||[]);return gun(n)}function Xh(e,t){this._injector=t||vun(e),this.get("eventBus").fire("diagram.init")}Xh.prototype.get=function(e,t){return this._injector.get(e,t)};Xh.prototype.invoke=function(e,t,n){return this._injector.invoke(e,t,n)};Xh.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")};Xh.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function _X(){}_X.prototype.get=function(e){return this.$model.properties.get(this,e)};_X.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function OLe(e,t){this.model=e,this.properties=t}OLe.prototype.createType=function(e){var t=this.model,n=this.properties,r=Object.create(_X.prototype);Ze(e.properties,function(a){!a.isMany&&a.default!==void 0&&(r[a.name]=a.default)}),n.defineModel(r,t),n.defineDescriptor(r,e);var i=e.ns.name;function o(a){n.define(this,"$type",{value:i,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),Ze(a,Us(function(s,l){this.set(l,s)},this))}return o.prototype=r,o.hasType=r.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var _un={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},ILe={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function yX(e,t){var n=ILe[e];return n?n(t):t}function xV(e){return!!_un[e]}function NLe(e){return!!ILe[e]}function Va(e,t){var n=e.split(/:/),r,i;if(n.length===1)r=e,i=t;else if(n.length===2)r=n[1],i=n[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(i?i+":":"")+r,{name:e,prefix:i,localName:r}}function hc(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}hc.prototype.build=function(){return ld(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])};hc.prototype.addProperty=function(e,t,n){typeof t=="boolean"&&(n=t,t=void 0),this.addNamedProperty(e,n!==!1);var r=this.properties;t!==void 0?r.splice(t,0,e):r.push(e)};hc.prototype.replaceProperty=function(e,t,n){var r=e.ns,i=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=i.indexOf(e);if(s===-1)throw new Error("property <"+r.name+"> not found in property list");i.splice(s,1),this.addProperty(t,n?void 0:s,a),o[r.name]=o[r.localName]=t};hc.prototype.redefineProperty=function(e,t,n){var r=e.ns.prefix,i=t.split("#"),o=Va(i[0],r),a=Va(i[1],o.prefix).name,s=this.propertiesByName[a];if(s)this.replaceProperty(s,e,n);else throw new Error("refined property <"+a+"> not found");delete e.redefines};hc.prototype.addNamedProperty=function(e,t){var n=e.ns,r=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),r[n.name]=r[n.localName]=e};hc.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]};hc.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e};hc.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e};hc.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)};hc.prototype.assertNotDefined=function(e,t){var n=e.name,r=this.propertiesByName[n];if(r)throw new Error("property <"+n+"> already defined; override of <"+r.definedBy.ns.name+"#"+r.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")};hc.prototype.hasProperty=function(e){return this.propertiesByName[e]};hc.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,r=this.allTypes,i=e.name;i in n||(Ze(e.properties,Us(function(o){o=lt({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,s=o.redefines;a||s?this.redefineProperty(o,a||s,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),r.push(e),n[i]=e)};function Zh(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,Ze(e,Us(this.registerPackage,this))}Zh.prototype.getPackage=function(e){return this.packageMap[e]};Zh.prototype.getPackages=function(){return this.packages};Zh.prototype.registerPackage=function(e){e=lt({},e);var t=this.packageMap;uhe(t,e,"prefix"),uhe(t,e,"uri"),Ze(e.types,Us(function(n){this.registerType(n,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)};Zh.prototype.registerType=function(e,t){e=lt({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:lt(e.meta||{})});var n=Va(e.name,t.prefix),r=n.name,i={};Ze(e.properties,Us(function(o){var a=Va(o.name,n.prefix),s=a.name;xV(o.type)||(o.type=Va(o.type,a.prefix).name),lt(o,{ns:a,name:s}),i[s]=o},this)),lt(e,{ns:n,name:r,propertiesByName:i}),Ze(e.extends,Us(function(o){var a=Va(o,n.prefix),s=this.typeMap[a.name];s.traits=s.traits||[],s.traits.push(r)},this)),this.definePackage(e,t),this.typeMap[r]=e};Zh.prototype.mapTypes=function(e,t,n){var r=xV(e.name)?{name:e.name}:this.typeMap[e.name],i=this;function o(l,c){var u=Va(l,xV(l)?"":e.prefix);i.mapTypes(u,t,c)}function a(l){return o(l,!0)}function s(l){return o(l,!1)}if(!r)throw new Error("unknown type <"+e.name+">");Ze(r.superClass,n?a:s),t(r,!n),Ze(r.traits,a)};Zh.prototype.getEffectiveDescriptor=function(e){var t=Va(e),n=new hc(t);this.mapTypes(t,function(i,o){n.addTrait(i,o)});var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r};Zh.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function uhe(e,t,n){var r=t[n];if(r in e)throw new Error("package with "+n+" <"+r+"> already defined")}function q_(e){this.model=e}q_.prototype.set=function(e,t,n){if(!gl(t)||!t.length)throw new TypeError("property name must be a non-empty string");var r=this.getProperty(e,t),i=r&&r.name;yun(n)?r?delete e[i]:delete e.$attrs[TV(t)]:r?i in e?e[i]=n:MLe(e,r,n):e.$attrs[TV(t)]=n};q_.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[TV(t)];var r=n.name;return!e[r]&&n.isMany&&MLe(e,n,[]),e[r]};q_.prototype.define=function(e,t,n){if(!n.writable){var r=n.value;n=lt({},n,{get:function(){return r}}),delete n.value}Object.defineProperty(e,t,n)};q_.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})};q_.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})};q_.prototype.getProperty=function(e,t){var n=this.model,r=n.getPropertyDescriptor(e,t);if(r)return r;if(t.includes(":"))return null;const i=n.config.strict;if(typeof i<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(i)throw o;typeof console<"u"&&console.warn(o)}return null};function yun(e){return typeof e>"u"}function MLe(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function TV(e){return e.replace(/^:/,"")}function uu(e,t={}){this.properties=new q_(this),this.factory=new OLe(this,this.properties),this.registry=new Zh(e,this.properties),this.typeCache={},this.config=t}uu.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)};uu.prototype.getType=function(e){var t=this.typeCache,n=gl(e)?e:e.ns.name,r=t[n];return r||(e=this.registry.getEffectiveDescriptor(n),r=t[n]=this.factory.createType(e)),r};uu.prototype.createAny=function(e,t,n){var r=Va(e),i={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,s){Vln(this,[a],s)}},o={name:e,isGeneric:!0,ns:{prefix:r.prefix,localName:r.localName,uri:t}};return this.properties.defineDescriptor(i,o),this.properties.defineModel(i,this),this.properties.define(i,"get",{enumerable:!1,writable:!0}),this.properties.define(i,"set",{enumerable:!1,writable:!0}),this.properties.define(i,"$parent",{enumerable:!1,writable:!0}),this.properties.define(i,"$instanceOf",{enumerable:!1,writable:!0}),Ze(n,function(a,s){ba(a)&&a.value!==void 0?i[a.name]=a.value:i[s]=a}),i};uu.prototype.getPackage=function(e){return this.registry.getPackage(e)};uu.prototype.getPackages=function(){return this.registry.getPackages()};uu.prototype.getElementDescriptor=function(e){return e.$descriptor};uu.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var n=e.$model.getElementDescriptor(e);return t in n.allTypesByName};uu.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]};uu.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var dhe=String.fromCharCode,bun=Object.prototype.hasOwnProperty,Sun=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,u1={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(u1).forEach(function(e){u1[e.toUpperCase()]=u1[e]});function Eun(e,t,n,r){return r?bun.call(u1,r)?u1[r]:"&"+r+";":dhe(t||parseInt(n,16))}function Ig(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(Sun,Eun):e}var fhe="non-whitespace outside of root node";function Oy(e){return new Error(e)}function phe(e){return"missing namespace for prefix <"+e+">"}function VO(e){return{get:e,enumerable:!0}}function Cun(e){var t={},n;for(n in e)t[n]=e[n];return t}function RV(e){return e+"$uri"}function wun(e){var t={},n,r;for(n in e)r=e[n],t[r]=r,t[RV(r)]=n;return t}function mhe(){return{line:0,column:0}}function xun(e){throw e}function ALe(e){if(!this)return new ALe(e);var t=e&&e.proxy,n,r,i,o,a=xun,s,l,c,u,d=mhe,f=!1,p=!1,h=null,g=!1,v;function y(S){S instanceof Error||(S=Oy(S)),h=S,a(S,d)}function _(S){s&&(S instanceof Error||(S=Oy(S)),s(S,d))}this.on=function(S,C){if(typeof C!="function")throw Oy("required args <name, cb>");switch(S){case"openTag":r=C;break;case"text":n=C;break;case"closeTag":i=C;break;case"error":a=C;break;case"warn":s=C;break;case"cdata":o=C;break;case"attention":u=C;break;case"question":c=C;break;case"comment":l=C;break;default:throw Oy("unsupported event: "+S)}return this},this.ns=function(S){if(typeof S>"u"&&(S={}),typeof S!="object")throw Oy("required args <nsMap={}>");var C={},E;for(E in S)C[E]=S[E];return p=!0,v=C,this},this.parse=function(S){if(typeof S!="string")throw Oy("required args <xml=string>");return h=null,b(S),d=mhe,g=!1,h},this.stop=function(){g=!0};function b(S){var C=p?[]:null,E=p?wun(v):null,w,x=[],T=0,R=!1,N=!1,I=0,P=0,D,F,L,B,U,G,V,W,$,H="",K=0,re;function Q(){if(re!==null)return re;var k,Z,ne,oe=p&&E.xmlns,ae=p&&f?[]:null,ue=K,fe=H,se=fe.length,pe,_e,Te,xe,ge,Ce={},ye={},be,Ee,Me;e:for(;ue<se;ue++)if(be=!1,Ee=fe.charCodeAt(ue),!(Ee===32||Ee<14&&Ee>8)){for((Ee<65||Ee>122||Ee>90&&Ee<97)&&Ee!==95&&Ee!==58&&(_("illegal first char attribute name"),be=!0),Me=ue+1;Me<se;Me++)if(Ee=fe.charCodeAt(Me),!(Ee>96&&Ee<123||Ee>64&&Ee<91||Ee>47&&Ee<59||Ee===46||Ee===45||Ee===95)){if(Ee===32||Ee<14&&Ee>8){_("missing attribute value"),ue=Me;continue e}if(Ee===61)break;_("illegal attribute name char"),be=!0}if(ge=fe.substring(ue,Me),ge==="xmlns:xmlns"&&(_("illegal declaration of xmlns"),be=!0),Ee=fe.charCodeAt(Me+1),Ee===34)Me=fe.indexOf('"',ue=Me+2),Me===-1&&(Me=fe.indexOf("'",ue),Me!==-1&&(_("attribute value quote missmatch"),be=!0));else if(Ee===39)Me=fe.indexOf("'",ue=Me+2),Me===-1&&(Me=fe.indexOf('"',ue),Me!==-1&&(_("attribute value quote missmatch"),be=!0));else for(_("missing attribute value quotes"),be=!0,Me=Me+1;Me<se&&(Ee=fe.charCodeAt(Me+1),!(Ee===32||Ee<14&&Ee>8));Me++);for(Me===-1&&(_("missing closing quotes"),Me=se,be=!0),be||(Te=fe.substring(ue,Me)),ue=Me;Me+1<se&&(Ee=fe.charCodeAt(Me+1),!(Ee===32||Ee<14&&Ee>8));Me++)ue===Me&&(_("illegal character after attribute end"),be=!0);if(ue=Me+1,be)continue e;if(ge in ye){_("attribute <"+ge+"> already defined");continue}if(ye[ge]=!0,!p){Ce[ge]=Te;continue}if(f){if(_e=ge==="xmlns"?"xmlns":ge.charCodeAt(0)===120&&ge.substr(0,6)==="xmlns:"?ge.substr(6):null,_e!==null){if(k=Ig(Te),Z=RV(_e),xe=v[k],!xe){if(_e==="xmlns"||Z in E&&E[Z]!==k)do xe="ns"+T++;while(typeof E[xe]<"u");else xe=_e;v[k]=xe}E[_e]!==xe&&(pe||(E=Cun(E),pe=!0),E[_e]=xe,_e==="xmlns"&&(E[RV(xe)]=k,oe=xe),E[Z]=k),Ce[ge]=Te;continue}ae.push(ge,Te);continue}if(Ee=ge.indexOf(":"),Ee===-1){Ce[ge]=Te;continue}if(!(ne=E[ge.substring(0,Ee)])){_(phe(ge.substring(0,Ee)));continue}ge=oe===ne?ge.substr(Ee+1):ne+ge.substr(Ee),Ce[ge]=Te}if(f)for(ue=0,se=ae.length;ue<se;ue++){if(ge=ae[ue++],Te=ae[ue],Ee=ge.indexOf(":"),Ee!==-1){if(!(ne=E[ge.substring(0,Ee)])){_(phe(ge.substring(0,Ee)));continue}ge=oe===ne?ge.substr(Ee+1):ne+ge.substr(Ee)}Ce[ge]=Te}return re=Ce}function A(){for(var k=/(\r\n|\r|\n)/g,Z=0,ne=0,oe=0,ae=P,ue,fe;I>=oe&&(ue=k.exec(S),!(!ue||(ae=ue[0].length+ue.index,ae>I)));)Z+=1,oe=ae;return I==-1?(ne=ae,fe=S.substring(P)):P===0?fe=S.substring(P,I):(ne=I-oe,fe=P==-1?S.substring(I):S.substring(I,P+1)),{data:fe,line:Z,column:ne}}for(d=A,t&&($=Object.create({},{name:VO(function(){return V}),originalName:VO(function(){return W}),attrs:VO(Q),ns:VO(function(){return E})}));P!==-1;){if(S.charCodeAt(P)===60?I=P:I=S.indexOf("<",P),I===-1){if(x.length)return y("unexpected end of file");if(P===0)return y("missing start tag");P<S.length&&S.substring(P).trim()&&_(fhe);return}if(P!==I){if(x.length){if(n&&(n(S.substring(P,I),Ig,d),g))return}else if(S.substring(P,I).trim()&&(_(fhe),g))return}if(B=S.charCodeAt(I+1),B===33){if(L=S.charCodeAt(I+2),L===91&&S.substr(I+3,6)==="CDATA["){if(P=S.indexOf("]]>",I),P===-1)return y("unclosed cdata");if(o&&(o(S.substring(I+9,P),d),g))return;P+=3;continue}if(L===45&&S.charCodeAt(I+3)===45){if(P=S.indexOf("-->",I),P===-1)return y("unclosed comment");if(l&&(l(S.substring(I+4,P),Ig,d),g))return;P+=3;continue}}if(B===63){if(P=S.indexOf("?>",I),P===-1)return y("unclosed question");if(c&&(c(S.substring(I,P+2),d),g))return;P+=2;continue}for(D=I+1;;D++){if(U=S.charCodeAt(D),isNaN(U))return P=-1,y("unclosed tag");if(U===34)L=S.indexOf('"',D+1),D=L!==-1?L:D;else if(U===39)L=S.indexOf("'",D+1),D=L!==-1?L:D;else if(U===62){P=D;break}}if(B===33){if(u&&(u(S.substring(I,P+1),Ig,d),g))return;P+=1;continue}if(re={},B===47){if(R=!1,N=!0,!x.length)return y("missing open tag");if(D=V=x.pop(),L=I+2+D.length,S.substring(I+2,L)!==D)return y("closing tag mismatch");for(;L<P;L++)if(B=S.charCodeAt(L),!(B===32||B>8&&B<14))return y("close tag")}else{if(S.charCodeAt(P-1)===47?(D=V=S.substring(I+1,P-1),R=!0,N=!0):(D=V=S.substring(I+1,P),R=!0,N=!1),!(B>96&&B<123||B>64&&B<91||B===95||B===58))return y("illegal first char nodeName");for(L=1,F=D.length;L<F;L++)if(B=D.charCodeAt(L),!(B>96&&B<123||B>64&&B<91||B>47&&B<59||B===45||B===95||B==46)){if(B===32||B<14&&B>8){V=D.substring(0,L),re=null;break}return y("invalid nodeName")}N||x.push(V)}if(p){if(w=E,R&&(N||C.push(w),re===null&&(f=D.indexOf("xmlns",L)!==-1)&&(K=L,H=D,Q(),f=!1)),W=V,B=V.indexOf(":"),B!==-1){if(G=E[V.substring(0,B)],!G)return y("missing namespace on <"+W+">");V=V.substr(B+1)}else G=E.xmlns;G&&(V=G+":"+V)}if(R&&(K=L,H=D,r&&(t?r($,Ig,N,d):r(V,Q,Ig,N,d),g)))return;if(N){if(i&&(i(t?$:V,Ig,R,d),g))return;p&&(R?E=w:E=C.pop())}P+=1}}}function PLe(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var OV={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},DLe="property";function kLe(e){return e.xml&&e.xml.serialize}function Tun(e){const t=kLe(e);return t!==DLe&&(t||null)}function Run(e){return e.charAt(0).toUpperCase()+e.slice(1)}function LLe(e,t){return PLe(t)?e.prefix+":"+Run(e.localName):e.name}function Oun(e,t){var n=e.name,r=e.localName,i=t&&t.xml&&t.xml.typePrefix;return i&&r.indexOf(i)===0?e.prefix+":"+r.slice(i.length):n}function Iun(e,t,n){const r=Va(e,t.xmlns),i=`${t[r.prefix]||r.prefix}:${r.localName}`,o=Va(i);var a=n.getPackage(o.prefix);return Oun(o,a)}function Nh(e){return new Error(e)}function up(e){return e.$descriptor}function Nun(e){lt(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Nh("expected element");var n=this.elementsById,r=up(t),i=r.idProperty,o;if(i&&(o=t.get(i.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(n[o])throw Nh("duplicate ID <"+o+">");n[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function MT(){}MT.prototype.handleEnd=function(){};MT.prototype.handleText=function(){};MT.prototype.handleNode=function(){};function bX(){}bX.prototype=Object.create(MT.prototype);bX.prototype.handleNode=function(){return this};function VS(){}VS.prototype=Object.create(MT.prototype);VS.prototype.handleText=function(e){this.body=(this.body||"")+e};function AT(e,t){this.property=e,this.context=t}AT.prototype=Object.create(VS.prototype);AT.prototype.handleNode=function(e){if(this.element)throw Nh("expected no sub nodes");return this.element=this.createReference(e),this};AT.prototype.handleEnd=function(){this.element.id=this.body};AT.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function SX(e,t){this.element=t,this.propertyDesc=e}SX.prototype=Object.create(VS.prototype);SX.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=yX(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)};function l$(){}l$.prototype=Object.create(VS.prototype);l$.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t};function bs(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}bs.prototype=Object.create(l$.prototype);bs.prototype.addReference=function(e){this.context.addReference(e)};bs.prototype.handleText=function(e){var t=this.element,n=up(t),r=n.bodyProperty;if(!r)throw Nh("unexpected body text <"+e+">");VS.prototype.handleText.call(this,e)};bs.prototype.handleEnd=function(){var e=this.body,t=this.element,n=up(t),r=n.bodyProperty;r&&e!==void 0&&(e=yX(r.type,e),t.set(r.name,e))};bs.prototype.createElement=function(e){var t=e.attributes,n=this.type,r=up(n),i=this.context,o=new n({}),a=this.model,s;return Ze(t,function(l,c){var u=r.propertiesByName[c],d;u&&u.isReference?u.isMany?(d=l.split(" "),Ze(d,function(f){i.addReference({element:o,property:u.ns.name,id:f})})):i.addReference({element:o,property:u.ns.name,id:l}):(u?l=yX(u.type,l):c==="xmlns"?c=":"+c:(s=Va(c,r.ns.prefix),a.getPackage(s.prefix)&&i.addWarning({message:"unknown attribute <"+c+">",element:o,property:c,value:l})),o.set(c,l))}),o};bs.prototype.getPropertyForNode=function(e){var t=e.name,n=Va(t),r=this.type,i=this.model,o=up(r),a=n.name,s=o.propertiesByName[a];if(s&&!s.isAttr){const c=Tun(s);if(c){const u=e.attributes[c];if(u){const d=Iun(u,e.ns,i),f=i.getType(d);return lt({},s,{effectiveType:up(f).name})}}return s}var l=i.getPackage(n.prefix);if(l){const c=LLe(n,l),u=i.getType(c);if(s=Br(o.properties,function(d){return!d.isVirtual&&!d.isReference&&!d.isAttribute&&u.hasType(d.type)}),s)return lt({},s,{effectiveType:up(u).name})}else if(s=Br(o.properties,function(c){return!c.isReference&&!c.isAttribute&&c.type==="Element"}),s)return s;throw Nh("unrecognized element <"+n.name+">")};bs.prototype.toString=function(){return"ElementDescriptor["+up(this.type).name+"]"};bs.prototype.valueHandler=function(e,t){return new SX(e,t)};bs.prototype.referenceHandler=function(e){return new AT(e,this.context)};bs.prototype.handler=function(e){return e==="Element"?new D0(this.model,e,this.context):new bs(this.model,e,this.context)};bs.prototype.handleChild=function(e){var t,n,r,i;if(t=this.getPropertyForNode(e),r=this.element,n=t.effectiveType||t.type,NLe(n))return this.valueHandler(t,r);t.isReference?i=this.referenceHandler(t).handleNode(e):i=this.handler(n).handleNode(e);var o=i.element;return o!==void 0&&(t.isMany?r.get(t.name).push(o):r.set(t.name,o),t.isReference?(lt(o,{element:r}),this.context.addReference(o)):o.$parent=r),i};function EX(e,t,n){bs.call(this,e,t,n)}EX.prototype=Object.create(bs.prototype);EX.prototype.createElement=function(e){var t=e.name,n=Va(t),r=this.model,i=this.type,o=r.getPackage(n.prefix),a=o&&LLe(n,o)||t;if(!i.hasType(a))throw Nh("unexpected element <"+e.originalName+">");return bs.prototype.createElement.call(this,e)};function D0(e,t,n){this.model=e,this.context=n}D0.prototype=Object.create(l$.prototype);D0.prototype.createElement=function(e){var t=e.name,n=Va(t),r=n.prefix,i=e.ns[r+"$uri"],o=e.attributes;return this.model.createAny(t,i,o)};D0.prototype.handleChild=function(e){var t=new D0(this.model,"Element",this.context).handleNode(e),n=this.element,r=t.element,i;return r!==void 0&&(i=n.$children=n.$children||[],i.push(r),r.$parent=n),t};D0.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function CX(e){e instanceof uu&&(e={model:e}),lt(this,{lax:!1},e)}CX.prototype.fromXML=function(e,t,n){var r=t.rootHandler;t instanceof bs?(r=t,t={}):typeof t=="string"?(r=this.handler(t),t={}):typeof r=="string"&&(r=this.handler(r));var i=this.model,o=this.lax,a=new Nun(lt({},t,{rootHandler:r})),s=new ALe({proxy:!0}),l=Mun();r.context=a,l.push(r);function c(C,E,w){var x=E(),T=x.line,R=x.column,N=x.data;N.charAt(0)==="<"&&N.indexOf(" ")!==-1&&(N=N.slice(0,N.indexOf(" "))+">");var I="unparsable content "+(N?N+" ":"")+`detected
|
||
line: `+T+`
|
||
column: `+R+`
|
||
nested error: `+C.message;if(w)return a.addWarning({message:I,error:C}),!0;throw Nh(I)}function u(C,E){return c(C,E,!0)}function d(){var C=a.elementsById,E=a.references,w,x;for(w=0;x=E[w];w++){var T=x.element,R=C[x.id],N=up(T).propertiesByName[x.property];if(R||a.addWarning({message:"unresolved reference <"+x.id+">",element:x.element,property:x.property,value:x.id}),N.isMany){var I=T.get(N.name),P=I.indexOf(x);P===-1&&(P=I.length),R?I[P]=R:I.splice(P,1)}else T.set(N.name,R)}}function f(){l.pop().handleEnd()}var p=/^<\?xml /i,h=/ encoding="([^"]+)"/i,g=/^utf-8$/i;function v(C){if(p.test(C)){var E=h.exec(C),w=E&&E[1];!w||g.test(w)||a.addWarning({message:"unsupported document encoding <"+w+">, falling back to UTF-8"})}}function y(C,E){var w=l.peek();try{l.push(w.handleNode(C))}catch(x){c(x,E,o)&&l.push(new bX)}}function _(C,E){try{l.peek().handleText(C)}catch(w){u(w,E)}}function b(C,E){C.trim()&&_(C,E)}var S=i.getPackages().reduce(function(C,E){return C[E.uri]=E.prefix,C},Object.entries(OV).reduce(function(C,[E,w]){return C[w]=E,C},i.config&&i.config.nsMap||{}));return s.ns(S).on("openTag",function(C,E,w,x){var T=C.attrs||{},R=Object.keys(T).reduce(function(I,P){var D=E(T[P]);return I[P]=D,I},{}),N={name:C.name,originalName:C.originalName,attributes:R,ns:C.ns};y(N,x)}).on("question",v).on("closeTag",f).on("cdata",_).on("text",function(C,E,w){b(E(C),w)}).on("error",c).on("warn",u),new Promise(function(C,E){var w;try{s.parse(e),d()}catch(I){w=I}var x=r.element;!w&&!x&&(w=Nh("failed to parse document as <"+r.type.$descriptor.name+">"));var T=a.warnings,R=a.references,N=a.elementsById;return w?(w.warnings=T,E(w)):C({rootElement:x,elementsById:N,references:R,warnings:T})})};CX.prototype.handler=function(e){return new EX(this.model,e)};function Mun(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var Aun=`<?xml version="1.0" encoding="UTF-8"?>
|
||
`,Pun=/<|>|'|"|&|\n\r|\n/g,$Le=/<|>|&/g;function bf(e){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=e,this.defaultPrefixMap=e&&e.defaultPrefixMap||{}}bf.prototype.mapDefaultPrefixes=function(e){this.defaultPrefixMap=e};bf.prototype.defaultUriByPrefix=function(e){return this.defaultPrefixMap[e]};bf.prototype.byUri=function(e){return this.uriMap[e]||this.parent&&this.parent.byUri(e)};bf.prototype.add=function(e,t){this.uriMap[e.uri]=e,t?this.wellknown.push(e):this.custom.push(e),this.mapPrefix(e.prefix,e.uri)};bf.prototype.uriByPrefix=function(e){return this.prefixMap[e||"xmlns"]||this.parent&&this.parent.uriByPrefix(e)};bf.prototype.mapPrefix=function(e,t){this.prefixMap[e||"xmlns"]=t};bf.prototype.getNSKey=function(e){return e.prefix!==void 0?e.uri+"|"+e.prefix:e.uri};bf.prototype.logUsed=function(e){var t=e.uri,n=this.getNSKey(e);this.used[n]=this.byUri(t),this.parent&&this.parent.logUsed(e)};bf.prototype.getUsed=function(e){var t=[].concat(this.wellknown,this.custom);return t.filter(n=>{var r=this.getNSKey(n);return this.used[r]})};function Dun(e){return e.charAt(0).toLowerCase()+e.slice(1)}function kun(e,t){return PLe(t)?Dun(e):e}function FLe(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function BLe(e){return gl(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function Lun(e){return e.getUsed().filter(function(t){return t.prefix!=="xml"}).map(function(t){var n="xmlns"+(t.prefix?":"+t.prefix:"");return{name:n,value:t.uri}})}function $un(e,t){return t.isGeneric?lt({localName:t.ns.localName},e):lt({localName:kun(t.ns.localName,t.$pkg)},e)}function Fun(e,t){return lt({localName:t.ns.localName},e)}function Bun(e){var t=e.$descriptor;return Cr(t.properties,function(n){var r=n.name;if(n.isVirtual||!Ls(e,r))return!1;var i=e[r];return i===n.default||i===null?!1:n.isMany?i.length:!0})}var Uun={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},jun={"<":"lt",">":"gt","&":"amp"};function ULe(e,t,n){return e=gl(e)?e:""+e,e.replace(t,function(r){return"&"+n[r]+";"})}function Hun(e){return ULe(e,Pun,Uun)}function zun(e){return ULe(e,$Le,jun)}function Vun(e){return Cr(e,function(t){return t.isAttr})}function Gun(e){return Cr(e,function(t){return!t.isAttr})}function wX(e){this.tagName=e}wX.prototype.build=function(e){return this.element=e,this};wX.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function p_(){}p_.prototype.serializeValue=p_.prototype.serializeTo=function(e){e.append(this.escape?zun(this.value):this.value)};p_.prototype.build=function(e,t){return this.value=t,e.type==="String"&&t.search($Le)!==-1&&(this.escape=!0),this};function xX(e){this.tagName=e}FLe(xX,p_);xX.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function Fi(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}Fi.prototype.build=function(e){this.element=e;var t=e.$descriptor,n=this.propertyDescriptor,r,i,o=t.isGeneric;return o?r=this.parseGenericNsAttributes(e):r=this.parseNsAttributes(e),n?this.ns=this.nsPropertyTagName(n):this.ns=this.nsTagName(t),this.tagName=this.addTagName(this.ns),o?this.parseGenericContainments(e):(i=Bun(e),this.parseAttributes(Vun(i)),this.parseContainments(Gun(i))),this.parseGenericAttributes(e,r),this};Fi.prototype.nsTagName=function(e){var t=this.logNamespaceUsed(e.ns);return $un(t,e)};Fi.prototype.nsPropertyTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Fun(t,e)};Fi.prototype.isLocalNs=function(e){return e.uri===this.ns.uri};Fi.prototype.nsAttributeName=function(e){var t;if(gl(e)?t=Va(e):t=e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:lt({localName:t.localName},n)};Fi.prototype.parseGenericNsAttributes=function(e){return Object.entries(e).filter(([t,n])=>!t.startsWith("$")&&this.parseNsAttribute(e,t,n)).map(([t,n])=>({name:t,value:n}))};Fi.prototype.parseGenericContainments=function(e){var t=e.$body;t&&this.body.push(new p_().build({type:"String"},t));var n=e.$children;n&&Ze(n,r=>{this.body.push(new Fi(this).build(r))})};Fi.prototype.parseNsAttribute=function(e,t,n){var r=e.$model,i=Va(t),o;if(i.prefix==="xmlns"&&(o={prefix:i.localName,uri:n}),!i.prefix&&i.localName==="xmlns"&&(o={uri:n}),!o)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(o,!0,!0);else{var a=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(a)}};Fi.prototype.parseNsAttributes=function(e){var t=this,n=e.$attrs,r=[];return Ze(n,function(i,o){var a=t.parseNsAttribute(e,o,i);a&&r.push(a)}),r};Fi.prototype.parseGenericAttributes=function(e,t){var n=this;Ze(t,function(r){try{n.addAttribute(n.nsAttributeName(r.name),r.value)}catch(i){typeof console<"u"&&console.warn(`missing namespace information for <${r.name}=${r.value}> on`,e,i)}})};Fi.prototype.parseContainments=function(e){var t=this,n=this.body,r=this.element;Ze(e,function(i){var o=r.get(i.name),a=i.isReference,s=i.isMany;if(s||(o=[o]),i.isBody)n.push(new p_().build(i,o[0]));else if(NLe(i.type))Ze(o,function(c){n.push(new xX(t.addTagName(t.nsPropertyTagName(i))).build(i,c))});else if(a)Ze(o,function(c){n.push(new wX(t.addTagName(t.nsPropertyTagName(i))).build(c))});else{var l=kLe(i);Ze(o,function(c){var u;l?l===DLe?u=new Fi(t,i):u=new c$(t,i,l):u=new Fi(t),n.push(u.build(c))})}})};Fi.prototype.getNamespaces=function(e){var t=this.namespaces,n=this.parent,r;return t||(r=n&&n.getNamespaces(),e||!r?this.namespaces=t=new bf(r):t=r),t};Fi.prototype.logNamespace=function(e,t,n){var r=this.getNamespaces(n),i=e.uri,o=e.prefix,a=r.byUri(i);return(!a||n)&&r.add(e,t),r.mapPrefix(o,i),e};Fi.prototype.logNamespaceUsed=function(e,t){var n=this.getNamespaces(t),r=e.prefix,i=e.uri,o,a,s;if(!r&&!i)return{localName:e.localName};if(s=n.defaultUriByPrefix(r),i=i||s||n.uriByPrefix(r),!i)throw new Error("no namespace uri given for prefix <"+r+">");if(e=n.byUri(i),!e&&!r&&(e=this.logNamespace({uri:i},s===i,!0)),!e){for(o=r,a=1;n.uriByPrefix(o);)o=r+"_"+a++;e=this.logNamespace({prefix:o,uri:i},s===i)}return r&&n.mapPrefix(r,i),e};Fi.prototype.parseAttributes=function(e){var t=this,n=this.element;Ze(e,function(r){var i=n.get(r.name);if(r.isReference)if(!r.isMany)i=i.id;else{var o=[];Ze(i,function(a){o.push(a.id)}),i=o.join(" ")}t.addAttribute(t.nsAttributeName(r),i)})};Fi.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),BLe(e)};Fi.prototype.addAttribute=function(e,t){var n=this.attrs;gl(t)&&(t=Hun(t));var r=qke(n,function(o){return o.name.localName===e.localName&&o.name.uri===e.uri&&o.name.prefix===e.prefix}),i={name:e,value:t};r!==-1?n.splice(r,1,i):n.push(i)};Fi.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=Lun(n).concat(t)),Ze(t,function(r){e.append(" ").append(BLe(r.name)).append('="').append(r.value).append('"')})};Fi.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==p_;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),Ze(this.body,function(r){r.serializeTo(e)}),n&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()};function c$(e,t,n){Fi.call(this,e,t),this.serialization=n}FLe(c$,Fi);c$.prototype.parseNsAttributes=function(e){var t=Fi.prototype.parseNsAttributes.call(this,e).filter(a=>a.name!==this.serialization),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var r=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var i=e.$model.getPackage(r.uri),o=i.xml&&i.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(r.prefix?r.prefix+":":"")+o+n.ns.localName),t};c$.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Wun(){this.value="",this.write=function(e){this.value+=e}}function Yun(e,t){var n=[""];this.append=function(r){return e.write(r),this},this.appendNewLine=function(){return t&&e.write(`
|
||
`),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function qun(e){e=lt({format:!1,preamble:!0},e||{});function t(n,r){var i=r||new Wun,o=new Yun(i,e.format);e.preamble&&o.append(Aun);var a=new Fi,s=n.$model;if(a.getNamespaces().mapDefaultPrefixes(Kun(s)),a.build(n).serializeTo(o),!r)return i.value}return{toXML:t}}function Kun(e){const t=e.config&&e.config.nsMap||{},n={};for(const r in OV)n[r]=OV[r];for(const r in t){const i=t[r];n[i]=r}for(const r of e.getPackages())n[r.prefix]=r.uri;return n}function u$(e,t){uu.call(this,e,t)}u$.prototype=Object.create(uu.prototype);u$.prototype.fromXML=function(e,t,n){gl(t)||(n=t,t="bpmn:Definitions");var r=new CX(lt({model:this,lax:!0},n)),i=r.handler(t);return r.fromXML(e,i)};u$.prototype.toXML=function(e,t){var n=new qun(t);return new Promise(function(r,i){try{var o=n.toXML(e);return r({xml:o})}catch(a){return i(a)}})};var Qun="BPMN20",Xun="http://www.omg.org/spec/BPMN/20100524/MODEL",Zun="bpmn",Jun=[],edn=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],tdn=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],ndn={tagAlias:"lowerCase",typePrefix:"t"},rdn={name:Qun,uri:Xun,prefix:Zun,associations:Jun,types:edn,enumerations:tdn,xml:ndn},idn="BPMNDI",odn="http://www.omg.org/spec/BPMN/20100524/DI",adn="bpmndi",sdn=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],ldn=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],cdn=[],udn={name:idn,uri:odn,prefix:adn,types:sdn,enumerations:ldn,associations:cdn},ddn="DC",fdn="http://www.omg.org/spec/DD/20100524/DC",pdn="dc",mdn=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],hdn=[],gdn={name:ddn,uri:fdn,prefix:pdn,types:mdn,associations:hdn},vdn="DI",_dn="http://www.omg.org/spec/DD/20100524/DI",ydn="di",bdn=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Sdn=[],Edn={tagAlias:"lowerCase"},Cdn={name:vdn,uri:_dn,prefix:ydn,types:bdn,associations:Sdn,xml:Edn},wdn="bpmn.io colors for BPMN",xdn="http://bpmn.io/schema/bpmn/biocolor/1.0",Tdn="bioc",Rdn=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],Odn=[],Idn=[],Ndn={name:wdn,uri:xdn,prefix:Tdn,types:Rdn,enumerations:Odn,associations:Idn},Mdn="BPMN in Color",Adn="http://www.omg.org/spec/BPMN/non-normative/color/1.0",Pdn="color",Ddn=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],kdn=[],Ldn=[],$dn={name:Mdn,uri:Adn,prefix:Pdn,types:Ddn,enumerations:kdn,associations:Ldn};const Fdn={bpmn:rdn,bpmndi:udn,dc:gdn,di:Cdn,bioc:Ndn,color:$dn};function Bdn(e,t){const n=lt({},Fdn,e);return new u$(n,t)}function Ua(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}var Udn="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function jLe(e){Ls(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Udn)}})}function Ts(e,t){return e.$instanceOf(t)}function jdn(e){return Br(e.rootElements,function(t){return Ts(t,"bpmn:Process")||Ts(t,"bpmn:Collaboration")})}function Hdn(e){var t={},n=[],r={};function i($,H){return function(K){$(K,H)}}function o($){t[$.id]=$}function a($){return t[$.id]}function s($,H){var K=$.gfx;if(K)throw new Error(`already rendered ${Ua($)}`);return e.element($,r[$.id],H)}function l($,H){return e.root($,r[$.id],H)}function c($,H){try{var K=r[$.id]&&s($,H);return o($),K}catch(re){u(re.message,{element:$,error:re}),console.error(`failed to import ${Ua($)}`,re)}}function u($,H){e.error($,H)}var d=this.registerDi=function(H){var K=H.bpmnElement;K?r[K.id]?u(`multiple DI elements defined for ${Ua(K)}`,{element:K}):(r[K.id]=H,jLe(K)):u(`no bpmnElement referenced in ${Ua(H)}`,{element:H})};function f($){p($.plane)}function p($){d($),Ze($.planeElement,h)}function h($){d($)}this.handleDefinitions=function(H,K){var re=H.diagrams;if(K&&re.indexOf(K)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!K&&re&&re.length&&(K=re[0]),!K)throw new Error("no diagram to display");r={},f(K);var Q=K.plane;if(!Q)throw new Error(`no plane for ${Ua(K)}`);var A=Q.bpmnElement;if(!A)if(A=jdn(H),A)u(`correcting missing bpmnElement on ${Ua(Q)} to ${Ua(A)}`),Q.bpmnElement=A,d(Q);else throw new Error("no process or collaboration to display");var k=l(A,Q);if(Ts(A,"bpmn:Process")||Ts(A,"bpmn:SubProcess"))v(A,k);else if(Ts(A,"bpmn:Collaboration"))V(A,k),y(H.rootElements,k);else throw new Error(`unsupported bpmnElement for ${Ua(Q)}: ${Ua(A)}`);g(n)};var g=this.handleDeferred=function(){for(var H;n.length;)H=n.shift(),H()};function v($,H){B($,H),T($.ioSpecification,H),x($.artifacts,H),o($)}function y($,H){var K=Cr($,function(re){return!a(re)&&Ts(re,"bpmn:Process")&&re.laneSets});K.forEach(i(v,H))}function _($,H){c($,H)}function b($,H){Ze($,i(_,H))}function S($,H){c($,H)}function C($,H){c($,H)}function E($,H){c($,H)}function w($,H){c($,H)}function x($,H){Ze($,function(K){Ts(K,"bpmn:Association")?n.push(function(){w(K,H)}):w(K,H)})}function T($,H){$&&(Ze($.dataInputs,i(C,H)),Ze($.dataOutputs,i(E,H)))}var R=this.handleSubProcess=function(H,K){B(H,K),x(H.artifacts,K)};function N($,H){var K=c($,H);Ts($,"bpmn:SubProcess")&&R($,K||H),Ts($,"bpmn:Activity")&&T($.ioSpecification,H),n.push(function(){Ze($.dataInputAssociations,i(S,H)),Ze($.dataOutputAssociations,i(S,H))})}function I($,H){c($,H)}function P($,H){c($,H)}function D($,H){n.push(function(){var K=c($,H);$.childLaneSet&&F($.childLaneSet,K||H),W($)})}function F($,H){Ze($.lanes,i(D,H))}function L($,H){Ze($,i(F,H))}function B($,H){U($.flowElements,H),$.laneSets&&L($.laneSets,H)}function U($,H){Ze($,function(K){Ts(K,"bpmn:SequenceFlow")?n.push(function(){I(K,H)}):Ts(K,"bpmn:BoundaryEvent")?n.unshift(function(){N(K,H)}):Ts(K,"bpmn:FlowNode")?N(K,H):Ts(K,"bpmn:DataObject")||(Ts(K,"bpmn:DataStoreReference")||Ts(K,"bpmn:DataObjectReference")?P(K,H):u(`unrecognized flowElement ${Ua(K)} in context ${Ua(H&&H.businessObject)}`,{element:K,context:H}))})}function G($,H){var K=c($,H),re=$.processRef;re&&v(re,K||H)}function V($,H){Ze($.participants,i(G,H)),x($.artifacts,H),n.push(function(){b($.messageFlows,H)})}function W($){Ze($.flowNodeRef,function(H){var K=H.get("lanes");K&&K.push($)})}}function Ne(e,t){var n=sn(e);return n&&typeof n.$instanceOf=="function"&&n.$instanceOf(t)}function br(e,t){return Kh(t,function(n){return Ne(e,n)})}function sn(e){return e&&e.businessObject||e}function kr(e){return e&&e.di}function zdn(e,t,n){var r,i,o,a,s=[];function l(c,u){var d={root:function(g,v){return r.add(g,v)},element:function(g,v,y){return r.add(g,v,y)},error:function(g,v){s.push({message:g,context:v})}},f=new Hdn(d);u=u||c.diagrams&&c.diagrams[0];var p=Vdn(c,u);if(!p)throw new Error("no diagram to display");Ze(p,function(g){f.handleDefinitions(c,g)});var h=u.plane.bpmnElement.id;o.setRootElement(o.findRoot(h+"_plane")||o.findRoot(h))}return new Promise(function(c,u){try{return r=e.get("bpmnImporter"),i=e.get("eventBus"),o=e.get("canvas"),i.fire("import.render.start",{definitions:t}),l(t,n),i.fire("import.render.complete",{error:a,warnings:s}),c({warnings:s})}catch(d){return d.warnings=s,u(d)}})}function Vdn(e,t){if(!(!t||!t.plane)){var n=t.plane.bpmnElement,r=n;!Ne(n,"bpmn:Process")&&!Ne(n,"bpmn:Collaboration")&&(r=Gdn(n));var i;Ne(r,"bpmn:Collaboration")?i=r:i=Br(e.rootElements,function(c){if(Ne(c,"bpmn:Collaboration"))return Br(c.participants,function(u){return u.processRef===r})});var o=[r];i&&(o=Ya(i.participants,function(c){return c.processRef}),o.push(i));var a=HLe(o),s=[t],l=[n];return Ze(e.diagrams,function(c){if(c.plane){var u=c.plane.bpmnElement;a.indexOf(u)!==-1&&l.indexOf(u)===-1&&(s.push(c),l.push(u))}}),s}}function HLe(e){var t=[];return Ze(e,function(n){n&&(t.push(n),t=t.concat(HLe(n.flowElements)))}),t}function Gdn(e){for(var t=e;t;){if(Ne(t,"bpmn:Process"))return t;t=t.$parent}}var Wdn='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',zLe=Wdn,VLe={verticalAlign:"middle"},GLe={color:"#404040"},Ydn={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},qdn={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Kdn={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Qdn='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+zLe+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',$d;function Xdn(){$d=Oi(Qdn),ja($d,Ydn),ja(fi("svg",$d),VLe),ja(fi(".backdrop",$d),qdn),ja(fi(".notice",$d),Kdn),ja(fi(".link",$d),GLe,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function Zdn(){$d||(Xdn(),ul.bind($d,".backdrop","click",function(e){document.body.removeChild($d)})),document.body.appendChild($d)}function Qi(e){e=lt({},efn,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),nfn(this._container)}Rn(Qi,Xh);Qi.prototype.importXML=async function(t,n){const r=this;function i(a){return r.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(f){throw this._emit("import.parse.complete",{error:f}),f}let s=a.rootElement;const l=a.references,c=a.warnings,u=a.elementsById;o=o.concat(c),s=this._emit("import.parse.complete",i({error:null,definitions:s,elementsById:u,references:l,warnings:o}))||s;const d=await this.importDefinitions(s,n);return o=o.concat(d.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let s=a;throw o=o.concat(s.warnings||[]),NN(s,o),s=Jdn(s),this._emit("import.done",{error:s,warnings:s.warnings}),s}};Qi.prototype.importDefinitions=async function(t,n){return this._setDefinitions(t),{warnings:(await this.open(n)).warnings}};Qi.prototype.open=async function(t){const n=this._definitions;let r=t;if(!n){const o=new Error("no XML imported");throw NN(o,[]),o}if(typeof t=="string"&&(r=tfn(n,t),!r)){const o=new Error("BPMNDiagram <"+t+"> not found");throw NN(o,[]),o}try{this.clear()}catch(o){throw NN(o,[]),o}const{warnings:i}=await zdn(this,n,r);return{warnings:i}};Qi.prototype.saveXML=async function(t){t=t||{};let n=this._definitions,r,i;try{if(!n)throw new Error("no definitions loaded");n=this._emit("saveXML.start",{definitions:n})||n,i=(await this._moddle.toXML(n,t)).xml,i=this._emit("saveXML.serialized",{xml:i})||i}catch(a){r=a}const o=r?{error:r}:{xml:i};if(this._emit("saveXML.done",o),r)throw r;return o};Qi.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,n;try{const r=this.get("canvas"),i=r.getActiveLayer(),o=fi(":scope > defs",r._svg),a=Qme(i),s=o?"<defs>"+Qme(o)+"</defs>":"",l=i.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- created with bpmn-js / http://bpmn.io -->
|
||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+l.width+'" height="'+l.height+'" viewBox="'+l.x+" "+l.y+" "+l.width+" "+l.height+'" version="1.1">'+s+a+"</svg>"}catch(r){n=r}if(this._emit("saveSVG.done",{error:n,svg:t}),n)throw n;return{svg:t}};Qi.prototype._setDefinitions=function(e){this._definitions=e};Qi.prototype.getModules=function(){return this._modules};Qi.prototype.clear=function(){this.getDefinitions()&&Xh.prototype.clear.call(this)};Qi.prototype.destroy=function(){Xh.prototype.destroy.call(this),df(this._container)};Qi.prototype.on=function(e,t,n,r){return this.get("eventBus").on(e,t,n,r)};Qi.prototype.off=function(e,t){this.get("eventBus").off(e,t)};Qi.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=fi(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()};Qi.prototype.getDefinitions=function(){return this._definitions};Qi.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))};Qi.prototype._init=function(e,t,n){const r=n.modules||this.getModules(n),i=n.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,r,i),s=lt(yf(n,["additionalModules"]),{canvas:lt({},n.canvas,{container:e}),modules:a});Xh.call(this,s),n&&n.container&&this.attachTo(n.container)};Qi.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)};Qi.prototype._createContainer=function(e){const t=Oi('<div class="bjs-container"></div>');return ja(t,{width:hhe(e.width),height:hhe(e.height),position:e.position}),t};Qi.prototype._createModdle=function(e){const t=lt({},this._moddleExtensions,e.moddleExtensions);return new Bdn(t)};Qi.prototype._modules=[];function NN(e,t){return e.warnings=t,e}function Jdn(e){const n=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return n&&(e.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),e}const efn={width:"100%",height:"100%",position:"relative"};function hhe(e){return e+(Jn(e)?"px":"")}function tfn(e,t){return t&&Br(e.diagrams,function(n){return n.id===t})||null}function nfn(e){const n='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+zLe+"</a>",r=Oi(n);ja(fi("svg",r),VLe),ja(r,GLe,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(r),sr.bind(r,"click",function(i){Zdn(),i.preventDefault()})}function PT(e){Qi.call(this,e),this.on("import.parse.complete",function(t){t.error||this._collectIds(t.definitions,t.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}Rn(PT,Qi);PT.prototype._createModdle=function(e){var t=Qi.prototype._createModdle.call(this,e);return t.ids=new cf([32,36,1]),t};PT.prototype._collectIds=function(e,t){var n=e.$model,r=n.ids,i;r.clear();for(i in t)r.claim(i,t[i])};function Nr(e,t){return Ne(e,"bpmn:CallActivity")?!1:Ne(e,"bpmn:SubProcess")?(t=t||kr(e),t&&Ne(t,"bpmndi:BPMNPlane")?!0:t&&!!t.isExpanded):Ne(e,"bpmn:Participant")?!!sn(e).processRef:!0}function aa(e){if(!(!Ne(e,"bpmn:Participant")&&!Ne(e,"bpmn:Lane"))){var t=kr(e).isHorizontal;return t===void 0?!0:t}}function rfn(e){return e&&sn(e).isInterrupting!==!1}function gs(e){return e&&!!sn(e).triggeredByEvent}function GS(e,t){var n=sn(e).eventDefinitions;return Kh(n,function(r){return Ne(r,t)})}function ifn(e){return GS(e,"bpmn:ErrorEventDefinition")}function ofn(e){return GS(e,"bpmn:EscalationEventDefinition")}function afn(e){return GS(e,"bpmn:CompensateEventDefinition")}var Bw={width:90,height:20},ghe=15;function m_(e){return Ne(e,"bpmn:Event")||Ne(e,"bpmn:Gateway")||Ne(e,"bpmn:DataStoreReference")||Ne(e,"bpmn:DataObjectReference")||Ne(e,"bpmn:DataInput")||Ne(e,"bpmn:DataOutput")||Ne(e,"bpmn:SequenceFlow")||Ne(e,"bpmn:MessageFlow")||Ne(e,"bpmn:Group")}function d$(e){return Lr(e.label)}function sfn(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(t+.01)],i=lfn(e),o=Math.atan((r.y-n.y)/(r.x-n.x)),a=i.x,s=i.y;return Math.abs(o)<Math.PI/2?s-=ghe:a+=ghe,{x:a,y:s}}function lfn(e){var t=e.length/2-1,n=e[Math.floor(t)],r=e[Math.ceil(t+.01)];return{x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2}}function TX(e){return e.waypoints?sfn(e.waypoints):Ne(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+Bw.height/2}:{x:e.x+e.width/2,y:e.y+e.height+Bw.height/2}}function cfn(e,t){var n,r,i,o=e.label;return o&&o.bounds?(i=o.bounds,r={width:Math.max(Bw.width,i.width),height:i.height},n={x:i.x+i.width/2,y:i.y+i.height/2}):(n=TX(t),r=Bw),lt({x:n.x-r.width/2,y:n.y-r.height/2},r)}function WLe(e){if(Ne(e,"bpmn:FlowElement")||Ne(e,"bpmn:Participant")||Ne(e,"bpmn:Lane")||Ne(e,"bpmn:SequenceFlow")||Ne(e,"bpmn:MessageFlow")||Ne(e,"bpmn:DataInput")||Ne(e,"bpmn:DataOutput"))return"name";if(Ne(e,"bpmn:TextAnnotation"))return"text";if(Ne(e,"bpmn:Group"))return"categoryValueRef"}function ufn(e){var t=e.categoryValueRef;return t&&t.value||""}function cd(e){var t=e.businessObject,n=WLe(t);if(n)return n==="categoryValueRef"?ufn(t):t[n]||""}function dfn(e,t){var n=e.businessObject,r=WLe(n);if(r)if(r==="categoryValueRef"){if(!n[r])return e;n[r].value=t}else n[r]=t;return e}var IV="hsl(225, 10%, 15%)",ffn="white";function Rd(e,t){return Kh(e.eventDefinitions,function(n){return n.$type===t})}function pfn(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function mfn(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function Er(e,t,n){var r=kr(e);return n||r.get("color:background-color")||r.get("bioc:fill")||t||ffn}function wn(e,t,n){var r=kr(e);return n||r.get("color:border-color")||r.get("bioc:stroke")||t||IV}function zE(e,t,n,r){var i=kr(e),o=i.get("label");return r||o&&o.get("color:color")||t||wn(e,n)}function hfn(e){var t=e.x+e.width/2,n=e.y+e.height/2,r=e.width/2,i=[["M",t,n],["m",0,-r],["a",r,r,0,1,1,0,2*r],["a",r,r,0,1,1,0,-2*r],["z"]];return W_(i)}function gfn(e,t){var n=e.x,r=e.y,i=e.width,o=e.height,a=[["M",n+t,r],["l",i-t*2,0],["a",t,t,0,0,1,t,t],["l",0,o-t*2],["a",t,t,0,0,1,-t,t],["l",t*2-i,0],["a",t,t,0,0,1,-t,-t],["l",0,t*2-o],["a",t,t,0,0,1,t,-t],["z"]];return W_(a)}function vfn(e){var t=e.width,n=e.height,r=e.x,i=e.y,o=t/2,a=n/2,s=[["M",r+o,i],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return W_(s)}function _fn(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=[["M",t,n],["l",r,0],["l",0,i],["l",-r,0],["z"]];return W_(o)}function VE(e,t={}){return{width:wc(e,t),height:Xs(e,t)}}function wc(e,t={}){return Ls(t,"width")?t.width:e.width}function Xs(e,t={}){return Ls(t,"height")?t.height:e.height}var yfn=new cf,bfn=10,GO=3,Sfn=1.5,MN=10,Iy=.95,Efn=1,Cfn=.25;function K_(e,t,n,r,i,o,a){Kp.call(this,t,a);var s=e&&e.defaultFillColor,l=e&&e.defaultStrokeColor,c=e&&e.defaultLabelColor;function u(Q){return n.computeStyle(Q,{strokeLinecap:"round",strokeLinejoin:"round",stroke:IV,strokeWidth:2,fill:"white"})}function d(Q){return n.computeStyle(Q,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:IV,strokeWidth:2})}function f(Q,A){var{ref:k={x:0,y:0},scale:Z=1,element:ne,parentGfx:oe=i._svg}=A,ae=Bn("marker",{id:Q,viewBox:"0 0 20 20",refX:k.x,refY:k.y,markerWidth:20*Z,markerHeight:20*Z,orient:"auto"});nr(ae,ne);var ue=fi(":scope > defs",oe);ue||(ue=Bn("defs"),nr(oe,ue)),nr(ue,ae)}function p(Q,A,k,Z){var ne=yfn.nextPrefixed("marker-");return h(Q,ne,A,k,Z),"url(#"+ne+")"}function h(Q,A,k,Z,ne){if(k==="sequenceflow-end"){var oe=Bn("path",{d:"M 1 5 L 11 10 L 1 15 Z",...u({fill:ne,stroke:ne,strokeWidth:1})});f(A,{element:oe,ref:{x:11,y:10},scale:.5,parentGfx:Q})}if(k==="messageflow-start"){var ae=Bn("circle",{cx:6,cy:6,r:3.5,...u({fill:Z,stroke:ne,strokeWidth:1,strokeDasharray:[1e4,1]})});f(A,{element:ae,ref:{x:6,y:6},parentGfx:Q})}if(k==="messageflow-end"){var ue=Bn("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...u({fill:Z,stroke:ne,strokeWidth:1,strokeDasharray:[1e4,1]})});f(A,{element:ue,ref:{x:8.5,y:5},parentGfx:Q})}if(k==="association-start"){var fe=Bn("path",{d:"M 11 5 L 1 10 L 11 15",...d({fill:"none",stroke:ne,strokeWidth:1.5,strokeDasharray:[1e4,1]})});f(A,{element:fe,ref:{x:1,y:10},scale:.5,parentGfx:Q})}if(k==="association-end"){var se=Bn("path",{d:"M 1 5 L 11 10 L 1 15",...d({fill:"none",stroke:ne,strokeWidth:1.5,strokeDasharray:[1e4,1]})});f(A,{element:se,ref:{x:11,y:10},scale:.5,parentGfx:Q})}if(k==="conditional-flow-marker"){var pe=Bn("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...u({fill:Z,stroke:ne})});f(A,{element:pe,ref:{x:-1,y:10},scale:.5,parentGfx:Q})}if(k==="conditional-default-flow-marker"){var _e=Bn("path",{d:"M 6 4 L 10 16",...u({stroke:ne,fill:"none"})});f(A,{element:_e,ref:{x:0,y:10},scale:.5,parentGfx:Q})}}function g(Q,A,k,Z,ne={}){ba(Z)&&(ne=Z,Z=0),Z=Z||0,ne=u(ne);var oe=A/2,ae=k/2,ue=Bn("circle",{cx:oe,cy:ae,r:Math.round((A+k)/4-Z),...ne});return nr(Q,ue),ue}function v(Q,A,k,Z,ne,oe){ba(ne)&&(oe=ne,ne=0),ne=ne||0,oe=u(oe);var ae=Bn("rect",{x:ne,y:ne,width:A-ne*2,height:k-ne*2,rx:Z,ry:Z,...oe});return nr(Q,ae),ae}function y(Q,A,k,Z){var ne=A/2,oe=k/2,ae=[{x:ne,y:0},{x:A,y:oe},{x:ne,y:k},{x:0,y:oe}],ue=ae.map(function(se){return se.x+","+se.y}).join(" ");Z=u(Z);var fe=Bn("polygon",{...Z,points:ue});return nr(Q,fe),fe}function _(Q,A,k,Z){k=d(k);var ne=o$(A,k,Z);return nr(Q,ne),ne}function b(Q,A,k){return _(Q,A,k,5)}function S(Q,A,k){k=d(k);var Z=Bn("path",{...k,d:A});return nr(Q,Z),Z}function C(Q,A,k,Z){return S(A,k,lt({"data-marker":Q},Z))}function E(Q){return re[Q]}function w(Q){return function(A,k,Z){return E(Q)(A,k,Z)}}var x={"bpmn:MessageEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:A.width,containerHeight:A.height,position:{mx:.235,my:.315}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill),ae=Z?Er(A,s,k.fill):wn(A,l,k.stroke),ue=S(Q,ne,{fill:oe,stroke:ae,strokeWidth:1});return ue},"bpmn:TimerEventDefinition":function(Q,A,k={}){var Z=g(Q,A.width,A.height,.2*A.height,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:2}),ne=r.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:A.width,containerHeight:A.height,position:{mx:.5,my:.5}});S(Q,ne,{stroke:wn(A,l,k.stroke),strokeWidth:2});for(var oe=0;oe<12;oe++){var ae=r.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:A.width,containerHeight:A.height,position:{mx:.5,my:.5}}),ue=A.width/2,fe=A.height/2;S(Q,ae,{strokeWidth:1,stroke:wn(A,l,k.stroke),transform:"rotate("+oe*30+","+fe+","+ue+")"})}return Z},"bpmn:EscalationEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.5,my:.2}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill);return S(Q,ne,{fill:oe,stroke:wn(A,l,k.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(Q,A,k={}){var Z=r.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.5,my:.222}});return S(Q,Z,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.57,my:.263}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill);return S(Q,ne,{fill:oe,stroke:wn(A,l,k.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:A.width,containerHeight:A.height,position:{mx:.2,my:.722}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill);return S(Q,ne,{fill:oe,stroke:wn(A,l,k.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.638,my:-.055}}),oe=Z?wn(A,l,k.stroke):"none",ae=S(Q,ne,{fill:oe,stroke:wn(A,l,k.stroke),strokeWidth:1});return TLe(ae,45),ae},"bpmn:CompensateEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.22,my:.5}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill);return S(Q,ne,{fill:oe,stroke:wn(A,l,k.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:A.width,containerHeight:A.height,position:{mx:.5,my:.2}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill);return S(Q,ne,{strokeWidth:1,fill:oe,stroke:wn(A,l,k.stroke)})},"bpmn:MultipleEventDefinition":function(Q,A,k={},Z){var ne=r.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:A.width,containerHeight:A.height,position:{mx:.222,my:.36}}),oe=Z?wn(A,l,k.stroke):Er(A,s,k.fill);return S(Q,ne,{fill:oe,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(Q,A,k={}){var Z=r.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:A.width,containerHeight:A.height,position:{mx:.458,my:.194}});return S(Q,Z,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(Q,A,k={}){var Z=g(Q,A.width,A.height,8,{fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke),strokeWidth:4});return Z}};function T(Q,A,k={}){var Z=sn(Q),ne=pfn(Z);return Z.get("eventDefinitions")&&Z.get("eventDefinitions").length>1?Z.get("parallelMultiple")?x["bpmn:ParallelMultipleEventDefinition"](A,Q,k,ne):x["bpmn:MultipleEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:MessageEventDefinition")?x["bpmn:MessageEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:TimerEventDefinition")?x["bpmn:TimerEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:ConditionalEventDefinition")?x["bpmn:ConditionalEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:SignalEventDefinition")?x["bpmn:SignalEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:EscalationEventDefinition")?x["bpmn:EscalationEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:LinkEventDefinition")?x["bpmn:LinkEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:ErrorEventDefinition")?x["bpmn:ErrorEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:CancelEventDefinition")?x["bpmn:CancelEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:CompensateEventDefinition")?x["bpmn:CompensateEventDefinition"](A,Q,k,ne):Rd(Z,"bpmn:TerminateEventDefinition")?x["bpmn:TerminateEventDefinition"](A,Q,k,ne):null}var R={ParticipantMultiplicityMarker:function(Q,A,k={}){var Z=wc(A,k),ne=Xs(A,k),oe=r.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:Z,containerHeight:ne,position:{mx:(Z/2-6)/Z,my:(ne-15)/ne}});C("participant-multiplicity",Q,oe,{strokeWidth:2,fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)})},SubProcessMarker:function(Q,A,k={}){var Z=v(Q,14,14,0,{strokeWidth:1,fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)});Na(Z,A.width/2-7.5,A.height-20);var ne=r.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:A.width,containerHeight:A.height,position:{mx:(A.width/2-7.5)/A.width,my:(A.height-20)/A.height}});C("sub-process",Q,ne,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)})},ParallelMarker:function(Q,A,k){var Z=wc(A,k),ne=Xs(A,k),oe=r.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:Z,containerHeight:ne,position:{mx:(Z/2+k.parallel)/Z,my:(ne-20)/ne}});C("parallel",Q,oe,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)})},SequentialMarker:function(Q,A,k){var Z=r.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:(A.width/2+k.seq)/A.width,my:(A.height-19)/A.height}});C("sequential",Q,Z,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)})},CompensationMarker:function(Q,A,k){var Z=r.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:(A.width/2+k.compensation)/A.width,my:(A.height-13)/A.height}});C("compensation",Q,Z,{strokeWidth:1,fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)})},LoopMarker:function(Q,A,k){var Z=wc(A,k),ne=Xs(A,k),oe=r.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:Z,containerHeight:ne,position:{mx:(Z/2+k.loop)/Z,my:(ne-7)/ne}});C("loop",Q,oe,{strokeWidth:1.5,fill:"none",stroke:wn(A,l,k.stroke),strokeMiterlimit:.5})},AdhocMarker:function(Q,A,k){var Z=wc(A,k),ne=Xs(A,k),oe=r.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:Z,containerHeight:ne,position:{mx:(Z/2+k.adhoc)/Z,my:(ne-15)/ne}});C("adhoc",Q,oe,{strokeWidth:1,fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke)})}};function N(Q,A,k,Z){R[Q](A,k,Z)}function I(Q,A,k,Z={}){Z={fill:Z.fill,stroke:Z.stroke,width:wc(A,Z),height:Xs(A,Z)};var ne=sn(A),oe=k&&k.includes("SubProcessMarker");oe?Z={...Z,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:Z={...Z,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},Ze(k,function(fe){N(fe,Q,A,Z)}),ne.get("isForCompensation")&&N("CompensationMarker",Q,A,Z),Ne(ne,"bpmn:AdHocSubProcess")&&N("AdhocMarker",Q,A,Z);var ae=ne.get("loopCharacteristics"),ue=ae&&ae.get("isSequential");ae&&(ue===void 0&&N("LoopMarker",Q,A,Z),ue===!1&&N("ParallelMarker",Q,A,Z),ue===!0&&N("SequentialMarker",Q,A,Z))}function P(Q,A,k={}){k=lt({size:{width:100}},k);var Z=o.createText(A||"",k);return Dr(Z).add("djs-label"),nr(Q,Z),Z}function D(Q,A,k,Z={}){var ne=sn(A),oe=VE({x:A.x,y:A.y,width:A.width,height:A.height},Z);return P(Q,ne.name,{align:k,box:oe,padding:7,style:{fill:zE(A,c,l,Z.stroke)}})}function F(Q,A,k={}){var Z={width:90,height:30,x:A.width/2+A.x,y:A.height/2+A.y};return P(Q,cd(A),{box:Z,fitBox:!0,style:lt({},o.getExternalStyle(),{fill:zE(A,c,l,k.stroke)})})}function L(Q,A,k,Z={}){var ne=aa(k),oe=P(Q,A,{box:{height:30,width:ne?Xs(k,Z):wc(k,Z)},align:"center-middle",style:{fill:zE(k,c,l,Z.stroke)}});if(ne){var ae=-1*Xs(k,Z);IN(oe,0,-ae,270)}}function B(Q,A,k={}){var{width:Z,height:ne}=VE(A,k);return v(Q,Z,ne,MN,{...k,fill:Er(A,s,k.fill),fillOpacity:Iy,stroke:wn(A,l,k.stroke)})}function U(Q,A,k={}){var Z=sn(A),ne=Er(A,s,k.fill),oe=wn(A,l,k.stroke);return(Z.get("associationDirection")==="One"||Z.get("associationDirection")==="Both")&&(k.markerEnd=p(Q,"association-end",ne,oe)),Z.get("associationDirection")==="Both"&&(k.markerStart=p(Q,"association-start",ne,oe)),k=Pr(k,["markerStart","markerEnd"]),b(Q,A.waypoints,{...k,stroke:oe,strokeDasharray:"0, 5"})}function G(Q,A,k={}){var Z=Er(A,s,k.fill),ne=wn(A,l,k.stroke),oe=r.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.474,my:.296}}),ae=S(Q,oe,{fill:Z,fillOpacity:Iy,stroke:ne}),ue=sn(A);if(mfn(ue)){var fe=r.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:.33,my:(A.height-18)/A.height}});S(Q,fe,{strokeWidth:2,fill:Z,stroke:ne})}return ae}function V(Q,A,k={}){return g(Q,A.width,A.height,{fillOpacity:Iy,...k,fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)})}function W(Q,A,k={}){return y(Q,A.width,A.height,{fill:Er(A,s,k.fill),fillOpacity:Iy,stroke:wn(A,l,k.stroke)})}function $(Q,A,k={}){var Z=v(Q,wc(A,k),Xs(A,k),0,{fill:Er(A,s,k.fill),fillOpacity:k.fillOpacity||Iy,stroke:wn(A,l,k.stroke),strokeWidth:1.5}),ne=sn(A);if(Ne(ne,"bpmn:Lane")){var oe=ne.get("name");L(Q,oe,A,k)}return Z}function H(Q,A,k={}){var Z=B(Q,A,k);gs(A)&&Cn(Z,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var ne=Nr(A);return D(Q,A,ne?"center-top":"center-middle",k),ne?I(Q,A,void 0,k):I(Q,A,["SubProcessMarker"],k),Z}function K(Q,A,k={}){var Z=B(Q,A,k);return D(Q,A,"center-middle",k),I(Q,A,void 0,k),Z}var re=this.handlers={"bpmn:AdHocSubProcess":function(Q,A,k={}){return Nr(A)?k=Pr(k,["fill","stroke","width","height"]):k=Pr(k,["fill","stroke"]),H(Q,A,k)},"bpmn:Association":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),U(Q,A,k)},"bpmn:BoundaryEvent":function(Q,A,k={}){var{renderIcon:Z=!0}=k;k=Pr(k,["fill","stroke"]);var ne=sn(A),oe=ne.get("cancelActivity");k={strokeWidth:1.5,fill:Er(A,s,k.fill),fillOpacity:Efn,stroke:wn(A,l,k.stroke)},oe||(k.strokeDasharray="6");var ae=V(Q,A,k);return g(Q,A.width,A.height,GO,{...k,fill:"none"}),Z&&T(A,Q,k),ae},"bpmn:BusinessRuleTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=K(Q,A,k),ne=r.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),oe=S(Q,ne);Cn(oe,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1});var ae=r.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),ue=S(Q,ae);return Cn(ue,{fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke),strokeWidth:1}),Z},"bpmn:CallActivity":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),H(Q,A,{strokeWidth:5,...k})},"bpmn:ComplexGateway":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=W(Q,A,k),ne=r.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:A.width,containerHeight:A.height,position:{mx:.46,my:.26}});return S(Q,ne,{fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke),strokeWidth:1}),Z},"bpmn:DataInput":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=r.getRawPath("DATA_ARROW"),ne=G(Q,A,k);return S(Q,Z,{fill:"none",stroke:wn(A,l,k.stroke),strokeWidth:1}),ne},"bpmn:DataInputAssociation":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),U(Q,A,{...k,markerEnd:p(Q,"association-end",Er(A,s,k.fill),wn(A,l,k.stroke))})},"bpmn:DataObject":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),G(Q,A,k)},"bpmn:DataObjectReference":w("bpmn:DataObject"),"bpmn:DataOutput":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=r.getRawPath("DATA_ARROW"),ne=G(Q,A,k);return S(Q,Z,{strokeWidth:1,fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke)}),ne},"bpmn:DataOutputAssociation":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),U(Q,A,{...k,markerEnd:p(Q,"association-end",Er(A,s,k.fill),wn(A,l,k.stroke))})},"bpmn:DataStoreReference":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=r.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:A.width,containerHeight:A.height,position:{mx:0,my:.133}});return S(Q,Z,{fill:Er(A,s,k.fill),fillOpacity:Iy,stroke:wn(A,l,k.stroke),strokeWidth:2})},"bpmn:EndEvent":function(Q,A,k={}){var{renderIcon:Z=!0}=k;k=Pr(k,["fill","stroke"]);var ne=V(Q,A,{...k,strokeWidth:4});return Z&&T(A,Q,k),ne},"bpmn:EventBasedGateway":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=sn(A),ne=W(Q,A,k);g(Q,A.width,A.height,A.height*.2,{fill:Er(A,"none",k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1});var oe=Z.get("eventGatewayType"),ae=!!Z.get("instantiate");function ue(){var se=r.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:A.width,containerHeight:A.height,position:{mx:.36,my:.44}});S(Q,se,{fill:"none",stroke:wn(A,l,k.stroke),strokeWidth:2})}if(oe==="Parallel"){var fe=r.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:A.width,containerHeight:A.height,position:{mx:.474,my:.296}});S(Q,fe,{fill:"none",stroke:wn(A,l,k.stroke),strokeWidth:1})}else oe==="Exclusive"&&(ae||g(Q,A.width,A.height,A.height*.26,{fill:"none",stroke:wn(A,l,k.stroke),strokeWidth:1}),ue());return ne},"bpmn:ExclusiveGateway":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=W(Q,A,k),ne=r.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:A.width,containerHeight:A.height,position:{mx:.32,my:.3}}),oe=kr(A);return oe.get("isMarkerVisible")&&S(Q,ne,{fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke),strokeWidth:1}),Z},"bpmn:Gateway":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),W(Q,A,k)},"bpmn:Group":function(Q,A,k={}){return k=Pr(k,["fill","stroke","width","height"]),v(Q,A.width,A.height,MN,{stroke:wn(A,l,k.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:wc(A,k),height:Xs(A,k)})},"bpmn:InclusiveGateway":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=W(Q,A,k);return g(Q,A.width,A.height,A.height*.24,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:2.5}),Z},"bpmn:IntermediateEvent":function(Q,A,k={}){var{renderIcon:Z=!0}=k;k=Pr(k,["fill","stroke"]);var ne=V(Q,A,{...k,strokeWidth:1.5});return g(Q,A.width,A.height,GO,{fill:"none",stroke:wn(A,l,k.stroke),strokeWidth:1.5}),Z&&T(A,Q,k),ne},"bpmn:IntermediateCatchEvent":w("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":w("bpmn:IntermediateEvent"),"bpmn:Lane":function(Q,A,k={}){return k=Pr(k,["fill","stroke","width","height"]),$(Q,A,{...k,fillOpacity:Cfn})},"bpmn:ManualTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=K(Q,A,k),ne=r.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return S(Q,ne,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:.5}),Z},"bpmn:MessageFlow":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=sn(A),ne=kr(A),oe=Er(A,s,k.fill),ae=wn(A,l,k.stroke),ue=b(Q,A.waypoints,{markerEnd:p(Q,"messageflow-end",oe,ae),markerStart:p(Q,"messageflow-start",oe,ae),stroke:ae,strokeDasharray:"10, 11",strokeWidth:1.5});if(Z.get("messageRef")){var fe=ue.getPointAtLength(ue.getTotalLength()/2),se=r.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:fe.x,y:fe.y}}),pe={strokeWidth:1};ne.get("messageVisibleKind")==="initiating"?(pe.fill=oe,pe.stroke=ae):(pe.fill=ae,pe.stroke=oe);var _e=S(Q,se,pe),Te=Z.get("messageRef"),xe=Te.get("name"),ge=P(Q,xe,{align:"center-top",fitBox:!0,style:{fill:ae}}),Ce=_e.getBBox(),ye=ge.getBBox(),be=fe.x-ye.width/2,Ee=fe.y+Ce.height/2+bfn;IN(ge,be,Ee,0)}return ue},"bpmn:ParallelGateway":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=W(Q,A,k),ne=r.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:A.width,containerHeight:A.height,position:{mx:.46,my:.2}});return S(Q,ne,{fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke),strokeWidth:1}),Z},"bpmn:Participant":function(Q,A,k={}){k=Pr(k,["fill","stroke","width","height"]);var Z=$(Q,A,k),ne=Nr(A),oe=aa(A),ae=sn(A),ue=ae.get("name");if(ne){var fe=oe?[{x:30,y:0},{x:30,y:Xs(A,k)}]:[{x:0,y:30},{x:wc(A,k),y:30}];_(Q,fe,{stroke:wn(A,l,k.stroke),strokeWidth:Sfn}),L(Q,ue,A,k)}else{var se=VE(A,k);oe||(se.height=wc(A,k),se.width=Xs(A,k));var pe=P(Q,ue,{box:se,align:"center-middle",style:{fill:zE(A,c,l,k.stroke)}});if(!oe){var _e=-1*Xs(A,k);IN(pe,0,-_e,270)}}return ae.get("participantMultiplicity")&&N("ParticipantMultiplicityMarker",Q,A,k),Z},"bpmn:ReceiveTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=sn(A),ne=K(Q,A,k),oe;return Z.get("instantiate")?(g(Q,28,28,20*.22,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1}),oe=r.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):oe=r.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),S(Q,oe,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1}),ne},"bpmn:ScriptTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=K(Q,A,k),ne=r.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return S(Q,ne,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1}),Z},"bpmn:SendTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=K(Q,A,k),ne=r.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return S(Q,ne,{fill:wn(A,l,k.stroke),stroke:Er(A,s,k.fill),strokeWidth:1}),Z},"bpmn:SequenceFlow":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=Er(A,s,k.fill),ne=wn(A,l,k.stroke),oe=b(Q,A.waypoints,{markerEnd:p(Q,"sequenceflow-end",Z,ne),stroke:ne}),ae=sn(A),{source:ue}=A;if(ue){var fe=sn(ue);ae.get("conditionExpression")&&Ne(fe,"bpmn:Activity")&&Cn(oe,{markerStart:p(Q,"conditional-flow-marker",Z,ne)}),fe.get("default")&&(Ne(fe,"bpmn:Gateway")||Ne(fe,"bpmn:Activity"))&&fe.get("default")===ae&&Cn(oe,{markerStart:p(Q,"conditional-default-flow-marker",Z,ne)})}return oe},"bpmn:ServiceTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=K(Q,A,k);g(Q,10,10,{fill:Er(A,s,k.fill),stroke:"none",transform:"translate(6, 6)"});var ne=r.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});S(Q,ne,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1}),g(Q,10,10,{fill:Er(A,s,k.fill),stroke:"none",transform:"translate(11, 10)"});var oe=r.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return S(Q,oe,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:1}),Z},"bpmn:StartEvent":function(Q,A,k={}){var{renderIcon:Z=!0}=k;k=Pr(k,["fill","stroke"]);var ne=sn(A);ne.get("isInterrupting")||(k={...k,strokeDasharray:"6"});var oe=V(Q,A,k);return Z&&T(A,Q,k),oe},"bpmn:SubProcess":function(Q,A,k={}){return Nr(A)?k=Pr(k,["fill","stroke","width","height"]):k=Pr(k,["fill","stroke"]),H(Q,A,k)},"bpmn:Task":function(Q,A,k={}){return k=Pr(k,["fill","stroke"]),K(Q,A,k)},"bpmn:TextAnnotation":function(Q,A,k={}){k=Pr(k,["fill","stroke","width","height"]);var{width:Z,height:ne}=VE(A,k),oe=v(Q,Z,ne,0,0,{fill:"none",stroke:"none"}),ae=r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:Z,containerHeight:ne,position:{mx:0,my:0}});S(Q,ae,{stroke:wn(A,l,k.stroke)});var ue=sn(A),fe=ue.get("text")||"";return P(Q,fe,{align:"left-top",box:VE(A,k),padding:7,style:{fill:zE(A,c,l,k.stroke)}}),oe},"bpmn:Transaction":function(Q,A,k={}){Nr(A)?k=Pr(k,["fill","stroke","width","height"]):k=Pr(k,["fill","stroke"]);var Z=H(Q,A,{strokeWidth:1.5,...k}),ne=n.style(["no-fill","no-events"],{stroke:wn(A,l,k.stroke),strokeWidth:1.5}),oe=Nr(A);return oe||(k={}),v(Q,wc(A,k),Xs(A,k),MN-GO,GO,ne),Z},"bpmn:UserTask":function(Q,A,k={}){k=Pr(k,["fill","stroke"]);var Z=K(Q,A,k),ne=15,oe=12,ae=r.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:ne,y:oe}});S(Q,ae,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:.5});var ue=r.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:ne,y:oe}});S(Q,ue,{fill:Er(A,s,k.fill),stroke:wn(A,l,k.stroke),strokeWidth:.5});var fe=r.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:ne,y:oe}});return S(Q,fe,{fill:wn(A,l,k.stroke),stroke:wn(A,l,k.stroke),strokeWidth:.5}),Z},label:function(Q,A,k={}){return F(Q,A,k)}};this._drawPath=S,this._renderer=E}Rn(K_,Kp);K_.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"];K_.prototype.canRender=function(e){return Ne(e,"bpmn:BaseElement")};K_.prototype.drawShape=function(e,t,n={}){var{type:r}=t,i=this._renderer(r);return i(e,t,n)};K_.prototype.drawConnection=function(e,t,n={}){var{type:r}=t,i=this._renderer(r);return i(e,t,n)};K_.prototype.getShapePath=function(e){return Ne(e,"bpmn:Event")?hfn(e):Ne(e,"bpmn:Activity")?gfn(e,MN):Ne(e,"bpmn:Gateway")?vfn(e):_fn(e)};function Pr(e,t=[]){return t.reduce((n,r)=>(e[r]&&(n[r]=e[r]),n),{})}var wfn=0,xfn={width:150,height:50};function Tfn(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}function Rfn(e){return ba(e)?lt({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function Ofn(e,t){t.textContent=e;var n;try{var r,i=e==="";return t.textContent=i?"dummy":e,n=t.getBBox(),r={width:n.width+n.x*2,height:n.height},i&&(r.width=0),r}catch(o){return console.log(o),{width:0,height:0}}}function Ifn(e,t,n){for(var r=e.shift(),i=r,o;;){if(o=Ofn(i,n),o.width=i?o.width:0,i===" "||i===""||o.width<Math.round(t)||i.length<2)return Nfn(e,i,r,o);i=Afn(i,o.width,t)}}function Nfn(e,t,n,r){if(t.length<n.length){var i=n.slice(t.length).trim();e.unshift(i)}return{width:r.width,height:r.height,text:t}}var vhe="";function Mfn(e,t){var n=e.split(/(\s|-|\u00AD)/g),r,i=[],o=0;if(n.length>1)for(;r=n.shift();)if(r.length+o<t)i.push(r),o+=r.length;else{(r==="-"||r===vhe)&&i.pop();break}var a=i[i.length-1];return a&&a===vhe&&(i[i.length-1]="-"),i.join("")}function Afn(e,t,n){var r=Math.max(e.length*(n/t),1),i=Mfn(e,r);return i||(i=e.slice(0,Math.max(Math.round(r-1),1))),i}function Pfn(){var e=document.getElementById("helper-svg");return e||(e=Bn("svg"),Cn(e,{id:"helper-svg"}),ja(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function f$(e){this._config=lt({},{size:xfn,padding:wfn,style:{},align:"center-top"},e||{})}f$.prototype.createText=function(e,t){return this.layoutText(e,t).element};f$.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions};f$.prototype.layoutText=function(e,t){var n=lt({},this._config.size,t.box),r=lt({},this._config.style,t.style),i=Tfn(t.align||this._config.align),o=Rfn(t.padding!==void 0?t.padding:this._config.padding),a=t.fitBox||!1,s=Dfn(r),l=e.split(/\u00AD?\r?\n/),c=[],u=n.width-o.left-o.right,d=Bn("text");Cn(d,{x:0,y:0}),Cn(d,r);var f=Pfn();for(nr(f,d);l.length;)c.push(Ifn(l,u,d));i.vertical==="middle"&&(o.top=o.bottom=0);var p=vl(c,function(_,b,S){return _+(s||b.height)},0)+o.top+o.bottom,h=vl(c,function(_,b,S){return b.width>_?b.width:_},0),g=o.top;i.vertical==="middle"&&(g+=(n.height-p)/2),g-=(s||c[0].height)/4;var v=Bn("text");Cn(v,r),Ze(c,function(_){var b;switch(g+=s||_.height,i.horizontal){case"left":b=o.left;break;case"right":b=(a?h:u)-o.right-_.width;break;default:b=Math.max(((a?h:u)-_.width)/2+o.left,0)}var S=Bn("tspan");Cn(S,{x:b,y:g}),S.textContent=_.text,nr(v,S)}),Vo(d);var y={width:h,height:p};return{dimensions:y,element:v}};function Dfn(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var kfn=12,Lfn=1.2,$fn=30;function YLe(e){var t=lt({fontFamily:"Arial, sans-serif",fontSize:kfn,fontWeight:"normal",lineHeight:Lfn},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,r=lt({},t,{fontSize:n},e&&e.externalStyle||{}),i=new f$({style:t});this.getExternalLabelBounds=function(o,a){var s=i.getDimensions(a,{box:{width:90,height:30},style:r});return{x:Math.round(o.x+o.width/2-s.width/2),y:Math.round(o.y),width:Math.ceil(s.width),height:Math.ceil(s.height)}},this.getTextAnnotationBounds=function(o,a){var s=i.getDimensions(a,{box:o,style:t,align:"left-top",padding:5});return{x:o.x,y:o.y,width:o.width,height:Math.max($fn,Math.round(s.height))}},this.createText=function(o,a){return i.createText(o,a||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return r}}YLe.$inject=["config.textRenderer"];function Ffn(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,n){var r=this.pathMap[t],i,o;n.abspos?(i=n.abspos.x,o=n.abspos.y):(i=n.containerWidth*n.position.mx,o=n.containerHeight*n.position.my);var a={};if(n.position){for(var s=n.containerHeight/r.height*n.yScaleFactor,l=n.containerWidth/r.width*n.xScaleFactor,c=0;c<r.heightElements.length;c++)a["y"+c]=r.heightElements[c]*s;for(var u=0;u<r.widthElements.length;u++)a["x"+u]=r.widthElements[u]*l}var d=Hfn(r.d,{mx:i,my:o,e:a});return d}}var Bfn=/\{([^{}]+)\}/g,Ufn=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function jfn(e,t,n){var r=n;return t.replace(Ufn,function(i,o,a,s,l){o=o||s,r&&(o in r&&(r=r[o]),typeof r=="function"&&l&&(r=r()))}),r=(r==null||r==n?e:r)+"",r}function Hfn(e,t){return String(e).replace(Bfn,function(n,r){return jfn(n,r,t)})}const zfn={__init__:["bpmnRenderer"],bpmnRenderer:["type",K_],textRenderer:["type",YLe],pathMap:["type",Ffn]};function Vfn(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(n,r){return t[r]||"{"+r+"}"})}const p$={translate:["value",Vfn]};function AN(e,t,n){return lt({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Gfn(e,t,n){var r=e.waypoint;return!r||r.length<2?[er(t),er(n)]:r.map(function(i){return{x:i.x,y:i.y}})}function qLe(e,t,n){return new Error(`element ${Ua(t)} referenced by ${Ua(e)}#${n} not yet drawn`)}function Xp(e,t,n,r,i){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=r,this._textRenderer=i}Xp.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"];Xp.prototype.add=function(e,t,n){var r,i,o;if(Ne(t,"bpmndi:BPMNPlane")){var a=Ne(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};r=this._elementFactory.createRoot(AN(e,t,a)),this._canvas.addRootElement(r)}else if(Ne(t,"bpmndi:BPMNShape")){var s=!Nr(e,t),l=Yfn(e);i=n&&(n.hidden||n.collapsed);var c=t.bounds;r=this._elementFactory.createShape(AN(e,t,{collapsed:s,hidden:i,x:Math.round(c.x),y:Math.round(c.y),width:Math.round(c.width),height:Math.round(c.height),isFrame:l})),Ne(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,r),Ne(e,"bpmn:Lane")&&(o=0),Ne(e,"bpmn:DataStoreReference")&&(Wfn(n,er(c))||(n=this._canvas.findRoot(n))),this._canvas.addShape(r,n,o)}else if(Ne(t,"bpmndi:BPMNEdge")){var u=this._getSource(e),d=this._getTarget(e);i=n&&(n.hidden||n.collapsed),r=this._elementFactory.createConnection(AN(e,t,{hidden:i,source:u,target:d,waypoints:Gfn(t,u,d)})),Ne(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(r,n,o)}else throw new Error(`unknown di ${Ua(t)} for element ${Ua(e)}`);return m_(e)&&cd(r)&&this.addLabel(e,t,r),this._eventBus.fire("bpmnElement.added",{element:r}),r};Xp.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${Ua(e)}#attachedToRef`);var r=this._elementRegistry.get(n.id),i=r&&r.attachers;if(!r)throw qLe(e,n,"attachedToRef");t.host=r,i||(r.attachers=i=[]),i.indexOf(t)===-1&&i.push(t)};Xp.prototype.addLabel=function(e,t,n){var r,i,o;return r=cfn(t,n),i=cd(n),i&&(r=this._textRenderer.getExternalLabelBounds(r,i)),o=this._elementFactory.createLabel(AN(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!cd(n),x:Math.round(r.x),y:Math.round(r.y),width:Math.round(r.width),height:Math.round(r.height)})),this._canvas.addShape(o,n.parent)};Xp.prototype._getConnectedElement=function(e,t){var n,r,i=e.$type;if(r=e[t+"Ref"],t==="source"&&i==="bpmn:DataInputAssociation"&&(r=r&&r[0]),(t==="source"&&i==="bpmn:DataOutputAssociation"||t==="target"&&i==="bpmn:DataInputAssociation")&&(r=e.$parent),n=r&&this._getElement(r),n)return n;throw r?qLe(e,r,t+"Ref"):new Error(`${Ua(e)}#${t} Ref not specified`)};Xp.prototype._getSource=function(e){return this._getConnectedElement(e,"source")};Xp.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")};Xp.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function Wfn(e,t){var n=t.x,r=t.y;return n>=e.x&&n<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function Yfn(e){return Ne(e,"bpmn:Group")}const qfn={__depends__:[p$],bpmnImporter:["type",Xp]},Kfn={__depends__:[zfn,qfn]};function DT(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}DT.prototype.next=function(){return this._prefix+ ++this._counter};var Qfn=new DT("ov"),Xfn=500;function Ca(e,t,n,r){this._eventBus=t,this._canvas=n,this._elementRegistry=r,this._ids=Qfn,this._overlayDefaults=lt({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=Zfn(n.getContainer()),this._init()}Ca.$inject=["config.overlays","eventBus","canvas","elementRegistry"];Ca.prototype.get=function(e){if(gl(e)&&(e={id:e}),gl(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?Cr(t.overlays,Xu({type:e.type})):t.overlays.slice():[]}else return e.type?Cr(this._overlays,Xu({type:e.type})):e.id?this._overlays[e.id]:null};Ca.prototype.add=function(e,t,n){if(ba(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var r=this._ids.next();return n=lt({},this._overlayDefaults,n,{id:r,type:t,element:e,html:n.html}),this._addOverlay(n),r};Ca.prototype.remove=function(e){var t=this.get(e)||[];lr(t)||(t=[t]);var n=this;Ze(t,function(r){var i=n._getOverlayContainer(r.element,!0);if(r&&(df(r.html),df(r.htmlContainer),delete r.htmlContainer,delete r.element,delete n._overlays[r.id]),i){var o=i.overlays.indexOf(r);o!==-1&&i.overlays.splice(o,1)}})};Ca.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"};Ca.prototype.show=function(){m$(this._overlayRoot)};Ca.prototype.hide=function(){m$(this._overlayRoot,!1)};Ca.prototype.clear=function(){this._overlays={},this._overlayContainers=[],r$(this._overlayRoot)};Ca.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,r=t.x,i=t.y;if(t.waypoints){var o=oa(t);r=o.x,i=o.y}KLe(n,r,i),za(e.html,"data-container-id",t.id)};Ca.prototype._updateOverlay=function(e){var t=e.position,n=e.htmlContainer,r=e.element,i=t.left,o=t.top;if(t.right!==void 0){var a;r.waypoints?a=oa(r).width:a=r.width,i=t.right*-1+a}if(t.bottom!==void 0){var s;r.waypoints?s=oa(r).height:s=r.height,o=t.bottom*-1+s}KLe(n,i||0,o||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ca.prototype._createOverlayContainer=function(e){var t=Oi('<div class="djs-overlays" />');ja(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n};Ca.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";QLe(this._overlayRoot,n)};Ca.prototype._getOverlayContainer=function(e,t){var n=Br(this._overlayContainers,function(r){return r.element===e});return!n&&!t?this._createOverlayContainer(e):n};Ca.prototype._addOverlay=function(e){var t=e.id,n=e.element,r=e.html,i,o;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),gl(r)&&(r=Oi(r)),o=this._getOverlayContainer(n),i=Oi('<div class="djs-overlay" data-overlay-id="'+t+'">'),ja(i,{position:"absolute"}),i.appendChild(r),e.type&&so(i).add("djs-overlay-"+e.type);var a=this._canvas.findRoot(n),s=this._canvas.getRootElement();m$(i,a===s),e.htmlContainer=i,o.overlays.push(e),o.html.appendChild(i),this._overlays[t]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ca.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,r=this._canvas.findRoot(e.element),i=n&&n.minZoom,o=n&&n.maxZoom,a=e.htmlContainer,s=this._canvas.getRootElement(),l=!0;(r!==s||n&&(pa(i)&&i>t.scale||pa(o)&&o<t.scale))&&(l=!1),m$(a,l),this._updateOverlayScale(e,t)};Ca.prototype._updateOverlayScale=function(e,t){var n=e.scale,r,i,o=e.htmlContainer,a,s="";n!==!0&&(n===!1?(r=1,i=1):(r=n.min,i=n.max),pa(r)&&t.scale<r&&(a=(1/t.scale||1)*r),pa(i)&&t.scale>i&&(a=(1/t.scale||1)*i)),pa(a)&&(s="scale("+a+","+a+")"),QLe(o,s)};Ca.prototype._updateOverlaysVisibilty=function(e){var t=this;Ze(this._overlays,function(n){t._updateOverlayVisibilty(n,e)})};Ca.prototype._init=function(){var e=this._eventBus,t=this;function n(r){t._updateRoot(r),t._updateOverlaysVisibilty(r),t.show()}e.on("canvas.viewbox.changing",function(r){t.hide()}),e.on("canvas.viewbox.changed",function(r){n(r.viewbox)}),e.on(["shape.remove","connection.remove"],function(r){var i=r.element,o=t.get({element:i});Ze(o,function(l){t.remove(l.id)});var a=t._getOverlayContainer(i);if(a){df(a.html);var s=t._overlayContainers.indexOf(a);s!==-1&&t._overlayContainers.splice(s,1)}}),e.on("element.changed",Xfn,function(r){var i=r.element,o=t._getOverlayContainer(i,!0);o&&(Ze(o.overlays,function(a){t._updateOverlay(a)}),t._updateOverlayContainer(o))}),e.on("element.marker.update",function(r){var i=t._getOverlayContainer(r.element,!0);i&&so(i.html)[r.add?"add":"remove"](r.marker)}),e.on("root.set",function(){t._updateOverlaysVisibilty(t._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function Zfn(e){var t=Oi('<div class="djs-overlay-container" />');return ja(t,{position:"absolute",width:0,height:0}),e.insertBefore(t,e.firstChild),t}function KLe(e,t,n){ja(e,{left:t+"px",top:n+"px"})}function m$(e,t){e.style.display=t===!1?"none":""}function QLe(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(n){e.style[n+"transform"]=t})}const h$={__init__:["overlays"],overlays:["type",Ca]};function XLe(e,t,n,r){e.on("element.changed",function(i){var o=i.element;(o.parent||o===t.getRootElement())&&(i.gfx=n.getGraphics(o)),i.gfx&&e.fire(cLe(o)+".changed",i)}),e.on("elements.changed",function(i){var o=i.elements;o.forEach(function(a){e.fire("element.changed",{element:a})}),r.updateContainments(o)}),e.on("shape.changed",function(i){r.update("shape",i.element,i.gfx)}),e.on("connection.changed",function(i){r.update("connection",i.element,i.gfx)})}XLe.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const RX={__init__:["changeSupport"],changeSupport:["type",XLe]};var Jfn=1e3;function Jt(e){this._eventBus=e}Jt.$inject=["eventBus"];function epn(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}Jt.prototype.on=function(e,t,n,r,i,o){if((Go(t)||Jn(t))&&(o=i,i=r,r=n,n=t,t=null),Go(n)&&(o=i,i=r,r=n,n=Jfn),ba(i)&&(o=i,i=!1),!Go(r))throw new Error("handlerFn must be a function");lr(e)||(e=[e]);var a=this._eventBus;Ze(e,function(s){var l=["commandStack",s,t].filter(function(c){return c}).join(".");a.on(l,n,i?epn(r,o):r,o)})};Jt.prototype.canExecute=Zp("canExecute");Jt.prototype.preExecute=Zp("preExecute");Jt.prototype.preExecuted=Zp("preExecuted");Jt.prototype.execute=Zp("execute");Jt.prototype.executed=Zp("executed");Jt.prototype.postExecute=Zp("postExecute");Jt.prototype.postExecuted=Zp("postExecuted");Jt.prototype.revert=Zp("revert");Jt.prototype.reverted=Zp("reverted");function Zp(e){return function(n,r,i,o,a){(Go(n)||Jn(n))&&(a=o,o=i,i=r,r=n,n=null),this.on(n,e,r,i,o,a)}}function OX(e,t){t.invoke(Jt,this),this.executed(function(n){var r=n.context;r.rootElement?e.setRootElement(r.rootElement):r.rootElement=e.getRootElement()}),this.revert(function(n){var r=n.context;r.rootElement&&e.setRootElement(r.rootElement)})}Rn(OX,Jt);OX.$inject=["canvas","injector"];const tpn={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",OX]};function Uw(e){return CSS.escape(e)}var npn={"&":"&","<":"<",">":">",'"':""","'":"'"};function ZLe(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(t){return npn[t]})}var JLe="_plane";function _he(e){var t=e.id;return rpn(t)}function Gf(e){var t=e.id;return Ne(e,"bpmn:SubProcess")?e$e(t):t}function Ng(e){return e$e(e)}function PN(e){var t=kr(e);return Ne(t,"bpmndi:BPMNPlane")}function e$e(e){return e+JLe}function rpn(e){return e.replace(new RegExp(JLe+"$"),"")}var ipn="bjs-breadcrumbs-shown";function t$e(e,t,n){var r=Oi('<ul class="bjs-breadcrumbs"></ul>'),i=n.getContainer(),o=so(i);i.appendChild(r);var a=[];e.on("element.changed",function(l){var c=l.element,u=sn(c),d=Br(a,function(f){return f===u});d&&s()});function s(l){l&&(a=opn(l));var c=a.flatMap(function(d){var f=n.findRoot(Gf(d))||n.findRoot(d.id);if(!f&&Ne(d,"bpmn:Process")){var p=t.find(function(v){var y=sn(v);return y&&y.get("processRef")===d});f=p&&n.findRoot(p.id)}if(!f)return[];var h=ZLe(d.name||d.id),g=Oi('<li><span class="bjs-crumb"><a title="'+h+'">'+h+"</a></span></li>");return g.addEventListener("click",function(){n.setRootElement(f)}),g});r.innerHTML="";var u=c.length>1;o.toggle(ipn,u),c.forEach(function(d){r.appendChild(d)})}e.on("root.set",function(l){s(l.element)})}t$e.$inject=["eventBus","elementRegistry","canvas"];function opn(e){for(var t=sn(e),n=[],r=t;r;r=r.$parent)(Ne(r,"bpmn:SubProcess")||Ne(r,"bpmn:Process"))&&n.push(r);return n.reverse()}function n$e(e,t){var n=null,r=new apn;e.on("root.set",function(i){var o=i.element,a=t.viewbox(),s=r.get(o);if(r.set(n,{x:a.x,y:a.y,zoom:a.scale}),n=o,!(!Ne(o,"bpmn:SubProcess")&&!s)){s=s||{x:0,y:0,zoom:1};var l=(a.x-s.x)*a.scale,c=(a.y-s.y)*a.scale;(l!==0||c!==0)&&t.scroll({dx:l,dy:c}),s.zoom!==a.scale&&t.zoom(s.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){r.clear(),n=null})}n$e.$inject=["eventBus","canvas"];function apn(){this._entries=[],this.set=function(e,t){var n=!1;for(var r in this._entries)if(this._entries[r][0]===e){this._entries[r][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}t!==-1&&this._entries.splice(t,1)}}var yhe={x:180,y:160};function Q_(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,function(r,i){n._handleImport(i.definitions)})}Q_.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(r){!r.plane||!r.plane.bpmnElement||(t._processToDiagramMap[r.plane.bpmnElement.id]=r)});var n=e.diagrams.filter(r=>r.plane).flatMap(r=>t._createNewDiagrams(r.plane));n.forEach(function(r){t._movePlaneElementsToOrigin(r.plane)})}};Q_.prototype._createNewDiagrams=function(e){var t=this,n=[],r=[];e.get("planeElement").forEach(function(o){var a=o.bpmnElement;if(a){var s=a.$parent;Ne(a,"bpmn:SubProcess")&&!o.isExpanded&&n.push(a),lpn(a,e)&&r.push({diElement:o,parent:s})}});var i=[];return n.forEach(function(o){if(!t._processToDiagramMap[o.id]){var a=t._createDiagram(o);t._processToDiagramMap[o.id]=a,i.push(a)}}),r.forEach(function(o){for(var a=o.diElement,s=o.parent;s&&n.indexOf(s)===-1;)s=s.$parent;if(s){var l=t._processToDiagramMap[s.id];t._moveToDiPlane(a,l.plane)}}),i};Q_.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=spn(e),r={x:n.x-yhe.x,y:n.y-yhe.y};t.forEach(function(i){i.waypoint?i.waypoint.forEach(function(o){o.x=o.x-r.x,o.y=o.y-r.y}):i.bounds&&(i.bounds.x=i.bounds.x-r.x,i.bounds.y=i.bounds.y-r.y)})};Q_.prototype._moveToDiPlane=function(e,t){var n=r$e(e),r=n.plane.get("planeElement");r.splice(r.indexOf(e),1),t.get("planeElement").push(e)};Q_.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n};Q_.$inject=["eventBus","moddle"];function r$e(e){return Ne(e,"bpmndi:BPMNDiagram")?e:r$e(e.$parent)}function spn(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(n){if(n.bounds){var r=Gn(n.bounds);t.top=Math.min(r.top,t.top),t.left=Math.min(r.left,t.left)}}),s$(t)}function lpn(e,t){var n=e.$parent;return!(!Ne(n,"bpmn:SubProcess")||n===t.bpmnElement||br(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var WO=250,cpn='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',upn="bjs-drilldown-empty";function Jh(e,t,n,r,i){Jt.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=r,this._translate=i;var o=this;this.executed("shape.toggleCollapse",WO,function(a){var s=a.shape;o._canDrillDown(s)?o._addOverlay(s):o._removeOverlay(s)},!0),this.reverted("shape.toggleCollapse",WO,function(a){var s=a.shape;o._canDrillDown(s)?o._addOverlay(s):o._removeOverlay(s)},!0),this.executed(["shape.create","shape.move","shape.delete"],WO,function(a){var s=a.oldParent,l=a.newParent||a.parent,c=a.shape;o._canDrillDown(c)&&o._addOverlay(c),o._updateDrilldownOverlay(s),o._updateDrilldownOverlay(l),o._updateDrilldownOverlay(c)},!0),this.reverted(["shape.create","shape.move","shape.delete"],WO,function(a){var s=a.oldParent,l=a.newParent||a.parent,c=a.shape;o._canDrillDown(c)&&o._addOverlay(c),o._updateDrilldownOverlay(s),o._updateDrilldownOverlay(l),o._updateDrilldownOverlay(c)},!0),t.on("import.render.complete",function(){n.filter(function(a){return o._canDrillDown(a)}).map(function(a){o._addOverlay(a)})})}Rn(Jh,Jt);Jh.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}};Jh.prototype._canDrillDown=function(e){var t=this._canvas;return Ne(e,"bpmn:SubProcess")&&t.findRoot(Gf(e))};Jh.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=sn(e),r=t.get({element:n.id,type:"drilldown"})[0];if(r){var i=n&&n.get("flowElements")&&n.get("flowElements").length;so(r.html).toggle(upn,!i)}};Jh.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays,r=sn(e),i=n.get({element:e,type:"drilldown"});i.length&&this._removeOverlay(e);var o=Oi('<button type="button" class="bjs-drilldown">'+cpn+"</button>"),a=r.get("name")||r.get("id"),s=this._translate("Open {element}",{element:a});o.setAttribute("title",s),o.addEventListener("click",function(){t.setRootElement(t.findRoot(Gf(e)))}),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:o}),this._updateOverlayVisibility(e)};Jh.prototype._removeOverlay=function(e){var t=this._overlays;t.remove({element:e,type:"drilldown"})};Jh.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const dpn={__depends__:[h$,RX,tpn],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",t$e],drilldownCentering:["type",n$e],drilldownOverlayBehavior:["type",Jh],subprocessCompatibility:["type",Q_]};function bhe(e){!e||typeof e.stopPropagation!="function"||e.stopPropagation()}function WS(e){return e.originalEvent||e.srcEvent}function iU(e){bhe(e),bhe(WS(e))}function h_(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function i$e(){return/mac/i.test(navigator.platform)}function o$e(e,t){return(WS(e)||e).button===t}function eg(e){return o$e(e,0)}function fpn(e){return o$e(e,1)}function jw(e){var t=WS(e)||e;return eg(e)?i$e()?t.metaKey:t.ctrlKey:!1}function OP(e){var t=WS(e)||e;return eg(e)&&t.shiftKey}function ppn(e){return!0}function YO(e){return eg(e)||fpn(e)}var She=500;function a$e(e,t,n){var r=this;function i(x,T,R){if(!s(x,T)){var N,I,P;R?I=t.getGraphics(R):(N=T.delegateTarget||T.target,N&&(I=N,R=t.get(I))),!(!I||!R)&&(P=e.fire(x,{element:R,gfx:I,originalEvent:T}),P===!1&&(T.stopPropagation(),T.preventDefault()))}}var o={};function a(x){return o[x]}function s(x,T){var R=c[x]||eg;return!R(T)}var l={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},c={"element.contextmenu":ppn,"element.mousedown":YO,"element.mouseup":YO,"element.click":YO,"element.dblclick":YO};function u(x,T,R){var N=l[x];if(!N)throw new Error("unmapped DOM event name <"+x+">");return i(N,T,R)}var d="svg, .djs-element";function f(x,T,R,N){var I=o[R]=function(P){i(R,P)};N&&(c[R]=N),I.$delegate=ul.bind(x,d,T,I)}function p(x,T,R){var N=a(R);N&&ul.unbind(x,T,N.$delegate)}function h(x){Ze(l,function(T,R){f(x,R,T)})}function g(x){Ze(l,function(T,R){p(x,R,T)})}e.on("canvas.destroy",function(x){g(x.svg)}),e.on("canvas.init",function(x){h(x.svg)}),e.on(["shape.added","connection.added"],function(x){var T=x.element,R=x.gfx;e.fire("interactionEvents.createHit",{element:T,gfx:R})}),e.on(["shape.changed","connection.changed"],She,function(x){var T=x.element,R=x.gfx;e.fire("interactionEvents.updateHit",{element:T,gfx:R})}),e.on("interactionEvents.createHit",She,function(x){var T=x.element,R=x.gfx;r.createDefaultHit(T,R)}),e.on("interactionEvents.updateHit",function(x){var T=x.element,R=x.gfx;r.updateDefaultHit(T,R)});var v=C("djs-hit djs-hit-stroke"),y=C("djs-hit djs-hit-click-stroke"),_=C("djs-hit djs-hit-all"),b=C("djs-hit djs-hit-no-move"),S={all:_,"click-stroke":y,stroke:v,"no-move":b};function C(x,T){return T=lt({stroke:"white",strokeWidth:15},T||{}),n.cls(x,["no-fill","no-border"],T)}function E(x,T){var R=S[T];if(!R)throw new Error("invalid hit type <"+T+">");return Cn(x,R),x}function w(x,T){nr(x,T)}this.removeHits=function(x){var T=yV(".djs-hit",x);Ze(T,Vo)},this.createDefaultHit=function(x,T){var R=x.waypoints,N=x.isFrame,I;return R?this.createWaypointsHit(T,R):(I=N?"stroke":"all",this.createBoxHit(T,I,{width:x.width,height:x.height}))},this.createWaypointsHit=function(x,T){var R=o$(T);return E(R,"stroke"),w(x,R),R},this.createBoxHit=function(x,T,R){R=lt({x:0,y:0},R);var N=Bn("rect");return E(N,T),Cn(N,R),w(x,N),N},this.updateDefaultHit=function(x,T){var R=fi(".djs-hit",T);if(R)return x.waypoints?sLe(R,x.waypoints):Cn(R,{width:x.width,height:x.height}),R},this.fire=i,this.triggerMouseEvent=u,this.mouseHandler=a,this.registerEvent=f,this.unregisterEvent=p}a$e.$inject=["eventBus","elementRegistry","styles"];const g$={__init__:["interactionEvents"],interactionEvents:["type",a$e]};function YS(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],function(r){var i=r.element;n.deselect(i)}),e.on(["diagram.clear","root.set"],function(r){n.select(null)})}YS.$inject=["eventBus","canvas"];YS.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(n!==-1){var r=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:r,newSelection:t})}};YS.prototype.get=function(){return this._selectedElements};YS.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1};YS.prototype.select=function(e,t){var n=this._selectedElements,r=n.slice();lr(e)||(e=e?[e]:[]);var i=this._canvas,o=i.getRootElement();e=e.filter(function(a){var s=i.findRoot(a);return o===s}),t?Ze(e,function(a){n.indexOf(a)===-1&&n.push(a)}):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:r,newSelection:n})};var Ehe="hover",Che="selected";function s$e(e,t){this._canvas=e;function n(i,o){e.addMarker(i,o)}function r(i,o){e.removeMarker(i,o)}t.on("element.hover",function(i){n(i.element,Ehe)}),t.on("element.out",function(i){r(i.element,Ehe)}),t.on("selection.changed",function(i){function o(c){r(c,Che)}function a(c){n(c,Che)}var s=i.oldSelection,l=i.newSelection;Ze(s,function(c){l.indexOf(c)===-1&&o(c)}),Ze(l,function(c){s.indexOf(c)===-1&&a(c)})})}s$e.$inject=["canvas","eventBus"];function l$e(e,t,n,r){e.on("create.end",500,function(i){var o=i.context,a=o.canExecute,s=o.elements,l=o.hints||{},c=l.autoSelect;if(a){if(c===!1)return;lr(c)?t.select(c):t.select(s.filter(mpn))}}),e.on("connect.end",500,function(i){var o=i.context,a=o.connection;a&&t.select(a)}),e.on("shape.move.end",500,function(i){var o=i.previousSelection||[],a=r.get(i.context.shape.id),s=Br(o,function(l){return a.id===l.id});s||t.select(a)}),e.on("element.click",function(i){if(eg(i)){var o=i.element;o===n.getRootElement()&&(o=null);var a=t.isSelected(o),s=t.get().length>1,l=OP(i);if(a&&s)return l?t.deselect(o):t.select(o);a?t.deselect(o):t.select(o,l)}})}l$e.$inject=["eventBus","selection","canvas","elementRegistry"];function mpn(e){return!e.hidden}const bd={__init__:["selectionVisuals","selectionBehavior"],__depends__:[g$],selection:["type",YS],selectionVisuals:["type",s$e],selectionBehavior:["type",l$e]};function tg(e){Qi.call(this,e)}Rn(tg,Qi);tg.prototype._modules=[Kfn,dpn,h$,bd,p$];tg.prototype._moddleExtensions={};var hpn=["c","C"],gpn=["v","V"],vpn=["y","Y"],c$e=["z","Z"];function _pn(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function Vc(e){return e.altKey?!1:e.ctrlKey||e.metaKey}function fa(e,t){return e=lr(e)?e:[e],e.indexOf(t.key)!==-1||e.indexOf(t.code)!==-1}function IX(e){return e.shiftKey}function ypn(e){return Vc(e)&&fa(hpn,e)}function bpn(e){return Vc(e)&&fa(gpn,e)}function Spn(e){return Vc(e)&&!IX(e)&&fa(c$e,e)}function Epn(e){return Vc(e)&&(fa(vpn,e)||fa(c$e,e)&&IX(e))}var v$="keyboard.keydown",Cpn="keyboard.keyup",wpn=1e3,u$e="Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";function Cs(e,t){var n=this;this._config=e=e||{},this._eventBus=t,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),t.on("diagram.destroy",function(){n._fire("destroy"),n.unbind()}),e.bindTo&&console.error("unsupported configuration <keyboard.bindTo>",new Error(u$e));var r=e&&e.bind!==!1;t.on("canvas.init",function(i){n._target=i.svg,r&&n.bind(),n._fire("init")})}Cs.$inject=["config.keyboard","eventBus"];Cs.prototype._keydownHandler=function(e){this._keyHandler(e,v$)};Cs.prototype._keyupHandler=function(e){this._keyHandler(e,Cpn)};Cs.prototype._keyHandler=function(e,t){var n;if(!this._isEventIgnored(e)){var r={keyEvent:e};n=this._eventBus.fire(t||v$,r),n&&e.preventDefault()}};Cs.prototype._isEventIgnored=function(e){return!1};Cs.prototype.bind=function(e){e&&console.error("unsupported argument <node>",new Error(u$e)),this.unbind(),e=this._node=this._target,sr.bind(e,"keydown",this._keydownHandler),sr.bind(e,"keyup",this._keyupHandler),this._fire("bind")};Cs.prototype.getBinding=function(){return this._node};Cs.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),sr.unbind(e,"keydown",this._keydownHandler),sr.unbind(e,"keyup",this._keyupHandler)),this._node=null};Cs.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})};Cs.prototype.addListener=function(e,t,n){Go(e)&&(n=t,t=e,e=wpn),this._eventBus.on(n||v$,e,t)};Cs.prototype.removeListener=function(e,t){this._eventBus.off(t||v$,e)};Cs.prototype.hasModifier=_pn;Cs.prototype.isCmd=Vc;Cs.prototype.isShift=IX;Cs.prototype.isKey=fa;var xpn=500;function qS(e,t){var n=this;e.on("editorActions.init",xpn,function(r){var i=r.editorActions;n.registerBindings(t,i)})}qS.$inject=["eventBus","keyboard"];qS.prototype.registerBindings=function(e,t){function n(r,i){t.isRegistered(r)&&e.addListener(i)}n("undo",function(r){var i=r.keyEvent;if(Spn(i))return t.trigger("undo"),!0}),n("redo",function(r){var i=r.keyEvent;if(Epn(i))return t.trigger("redo"),!0}),n("copy",function(r){var i=r.keyEvent;if(ypn(i))return t.trigger("copy"),!0}),n("paste",function(r){var i=r.keyEvent;if(bpn(i))return t.trigger("paste"),!0}),n("stepZoom",function(r){var i=r.keyEvent;if(fa(["+","Add","="],i)&&Vc(i))return t.trigger("stepZoom",{value:1}),!0}),n("stepZoom",function(r){var i=r.keyEvent;if(fa(["-","Subtract"],i)&&Vc(i))return t.trigger("stepZoom",{value:-1}),!0}),n("zoom",function(r){var i=r.keyEvent;if(fa("0",i)&&Vc(i))return t.trigger("zoom",{value:1}),!0}),n("removeSelection",function(r){var i=r.keyEvent;if(fa(["Backspace","Delete","Del"],i))return t.trigger("removeSelection"),!0})};const NX={__init__:["keyboard","keyboardBindings"],keyboard:["type",Cs],keyboardBindings:["type",qS]};var Tpn={moveSpeed:50,moveSpeedAccelerated:200};function d$e(e,t,n){var r=this;this._config=lt({},Tpn,e||{}),t.addListener(i);function i(o){var a=o.keyEvent,s=r._config;if(t.isCmd(a)&&t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],a)){var l=t.isShift(a)?s.moveSpeedAccelerated:s.moveSpeed,c;switch(a.key){case"ArrowLeft":case"Left":c="left";break;case"ArrowUp":case"Up":c="up";break;case"ArrowRight":case"Right":c="right";break;case"ArrowDown":case"Down":c="down";break}return r.moveCanvas({speed:l,direction:c}),!0}}this.moveCanvas=function(o){var a=0,s=0,l=o.speed,c=l/Math.min(Math.sqrt(n.viewbox().scale),1);switch(o.direction){case"left":a=c;break;case"up":s=c;break;case"right":a=-c;break;case"down":s=-c;break}n.scroll({dx:a,dy:s})}}d$e.$inject=["config.keyboardMove","keyboard","canvas"];const f$e={__depends__:[NX],__init__:["keyboardMove"],keyboardMove:["type",d$e]};var Rpn=/^djs-cursor-.*$/;function _$(e){var t=so(document.body);t.removeMatching(Rpn),e&&t.add("djs-cursor-"+e)}function p$e(){_$(null)}var Opn=5e3;function m$e(e,t){t=t||"element.click";function n(){return!1}return e.once(t,Opn,n),function(){e.off(t,n)}}function d1(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Zu(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Ipn=15;function h$e(e,t){var n;function r(s){return a(s.originalEvent)}e.on("canvas.focus.changed",function(s){s.focused?e.on("element.mousedown",500,r):e.off("element.mousedown",r)});function i(s){var l=n.start,c=n.button,u=h_(s),d=Zu(u,l);if(!n.dragging&&Npn(d)>Ipn&&(n.dragging=!0,c===0&&m$e(e),_$("grab")),n.dragging){var f=n.last||n.start;d=Zu(u,f),t.scroll({dx:d.x,dy:d.y}),n.last=u}s.preventDefault()}function o(s){sr.unbind(document,"mousemove",i),sr.unbind(document,"mouseup",o),n=null,p$e()}function a(s){if(!HS(s.target,".djs-draggable")){var l=s.button;if(!(l>=2||s.ctrlKey||s.shiftKey||s.altKey))return n={button:l,start:h_(s)},sr.bind(document,"mousemove",i),sr.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!n}}h$e.$inject=["eventBus","canvas"];function Npn(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const g$e={__init__:["moveCanvas"],moveCanvas:["type",h$e]};function NV(e){return Math.log(e)/Math.log(10)}function v$e(e,t){var n=NV(e.min),r=NV(e.max),i=Math.abs(n)+Math.abs(r);return i/t}function Mpn(e,t){return Math.max(e.min,Math.min(e.max,t))}var Apn=Math.sign||function(e){return e>=0?1:-1},MX={min:.2,max:4},_$e=10,Ppn=.1,Dpn=.75;function Sf(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=Us(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||Dpn;var r=this;t.on("canvas.focus.changed",function(i){r._init(i.focused&&e.enabled!==!1)})}Sf.$inject=["config.zoomScroll","eventBus","canvas"];Sf.prototype.scroll=function(t){this._canvas.scroll(t)};Sf.prototype.reset=function(){this._canvas.zoom("fit-viewport")};Sf.prototype.zoom=function(t,n){var r=v$e(MX,_$e*2);this._totalDelta+=t,Math.abs(this._totalDelta)>Ppn&&(this._zoom(t,n,r),this._totalDelta=0)};Sf.prototype._handleWheel=function(t){if(this._canvas.isFocused()){var n=this._container;t.preventDefault();var r=t.ctrlKey||i$e()&&t.metaKey,i=t.shiftKey,o=-1*this._scale,a;if(r?o*=t.deltaMode===0?.02:.32:o*=t.deltaMode===0?1:16,r){var s=n.getBoundingClientRect(),l={x:t.clientX-s.left,y:t.clientY-s.top};a=Math.sqrt(Math.pow(t.deltaY,2)+Math.pow(t.deltaX,2))*Apn(t.deltaY)*o,this.zoom(a,l)}else i?a={dx:o*t.deltaY,dy:0}:a={dx:o*t.deltaX,dy:o*t.deltaY},this.scroll(a)}};Sf.prototype.stepZoom=function(t,n){var r=v$e(MX,_$e);this._zoom(t,n,r)};Sf.prototype._zoom=function(e,t,n){var r=this._canvas,i=e>0?1:-1,o=NV(r.zoom()),a=Math.round(o/n)*n;a+=n*i;var s=Math.pow(10,a);r.zoom(Mpn(MX,s),t)};Sf.prototype.toggle=function(t){var n=this._container,r=this._handleWheel,i=this._enabled;return typeof t>"u"&&(t=!i),i!==t&&sr[t?"bind":"unbind"](n,"wheel",r,!1),this._enabled=t,t};Sf.prototype._init=function(e){this.toggle(e)};const y$e={__init__:["zoomScroll"],zoomScroll:["type",Sf]};function Hw(e){tg.call(this,e)}Rn(Hw,tg);Hw.prototype._navigationModules=[f$e,g$e,y$e];Hw.prototype._modules=[].concat(tg.prototype._modules,Hw.prototype._navigationModules);function oU(e){return e&&e[e.length-1]}function whe(e){return e.y}function xhe(e){return e.x}var kpn={left:xhe,center:xhe,right:function(e){return e.x+e.width},top:whe,middle:whe,bottom:function(e){return e.y+e.height}};function KS(e,t){this._modeling=e,this._rules=t}KS.$inject=["modeling","rules"];KS.prototype._getOrientationDetails=function(e){var t=["top","bottom","middle"],n="x",r="width";return t.indexOf(e)!==-1&&(n="y",r="height"),{axis:n,dimension:r}};KS.prototype._isType=function(e,t){return t.indexOf(e)!==-1};KS.prototype._alignmentPosition=function(e,t){var n=this._getOrientationDetails(e),r=n.axis,i=n.dimension,o={},a={},s=!1,l,c,u;function d(f,p){return Math.round((f[r]+p[r]+p[i])/2)}if(this._isType(e,["left","top"]))o[e]=t[0][r];else if(this._isType(e,["right","bottom"]))u=oU(t),o[e]=u[r]+u[i];else if(this._isType(e,["center","middle"])){if(Ze(t,function(f){var p=f[r]+Math.round(f[i]/2);a[p]?a[p].elements.push(f):a[p]={elements:[f],center:p}}),l=uf(a,function(f){return f.elements.length>1&&(s=!0),f.elements.length}),s)return o[e]=oU(l).center,o;c=t[0],t=uf(t,function(f){return f[r]+f[i]}),u=oU(t),o[e]=d(c,u)}return o};KS.prototype.trigger=function(e,t){var n=this._modeling,r,i=Cr(e,function(l){return!(l.waypoints||l.host||l.labelTarget)});if(r=this._rules.allowed("elements.align",{elements:i}),lr(r)&&(i=r),!(i.length<2||!r)){var o=kpn[t],a=uf(i,o),s=this._alignmentPosition(t,a);n.alignElements(a,s)}};const Lpn={__init__:["alignElements"],alignElements:["type",KS]},$pn=new DT;function QS(e){this._scheduled={},e.on("diagram.destroy",()=>{Object.keys(this._scheduled).forEach(t=>{this.cancel(t)})})}QS.$inject=["eventBus"];QS.prototype.schedule=function(e,t=$pn.next()){this.cancel(t);const n=this._schedule(e,t);return this._scheduled[t]=n,n.promise};QS.prototype._schedule=function(e,t){const n=Fpn();return{executionId:setTimeout(()=>{try{this._scheduled[t]=null;try{n.resolve(e())}catch(i){n.reject(i)}}catch(i){console.error("Scheduler#_schedule execution failed",i)}}),promise:n.promise}};QS.prototype.cancel=function(e){const t=this._scheduled[e];t&&(this._cancel(t),this._scheduled[e]=null)};QS.prototype._cancel=function(e){clearTimeout(e.executionId)};function Fpn(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}const Bpn={scheduler:["type",QS]};var Upn="djs-element-hidden",qO=".entry",jpn=1e3,The=8,Hpn=300;function Po(e,t,n,r){this._canvas=e,this._elementRegistry=t,this._eventBus=n,this._scheduler=r,this._current=null,this._init()}Po.$inject=["canvas","elementRegistry","eventBus","scheduler"];Po.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",function(t){var n=t.newSelection,r=n.length?n.length===1?n[0]:n:null;r?e.open(r,!0):e.close()}),this._eventBus.on("elements.changed",function(t){var n=t.elements,r=e._current;if(r){var i=r.target,o=lr(i)?i:[i],a=o.filter(function(l){return n.includes(l)});if(a.length){e.close();var s=o.filter(function(l){return e._elementRegistry.get(l.id)});s.length&&e._updateAndOpen(s.length>1?s:s[0])}}}),this._eventBus.on("canvas.viewbox.changed",function(){e._updatePosition()}),this._eventBus.on("element.marker.update",function(t){if(e.isOpen()){var n=t.element,r=e._current,i=lr(r.target)?r.target:[r.target];i.includes(n)&&e._updateVisibility()}}),this._container=this._createContainer()};Po.prototype._createContainer=function(){var e=Oi('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(e),e};Po.prototype.registerProvider=function(e,t){t||(t=e,e=jpn),this._eventBus.on("contextPad.getProviders",e,function(n){n.providers.push(t)})};Po.prototype.getEntries=function(e){var t=this._getProviders(),n=lr(e)?"getMultiElementContextPadEntries":"getContextPadEntries",r={};return Ze(t,function(i){if(Go(i[n])){var o=i[n](e);Go(o)?r=o(r):Ze(o,function(a,s){r[s]=a})}}),r};Po.prototype.trigger=function(e,t,n){var r=this,i,o,a=t.delegateTarget||t.target;if(!a)return t.preventDefault();if(i=za(a,"data-action"),o=t.originalEvent||t,e==="mouseover"){this._timeout=setTimeout(function(){r._mouseout=r.triggerEntry(i,"hover",o,n)},Hpn);return}else if(e==="mouseout"){clearTimeout(this._timeout),this._mouseout&&(this._mouseout(),this._mouseout=null);return}return this.triggerEntry(i,e,o,n)};Po.prototype.triggerEntry=function(e,t,n,r){if(this.isShown()){var i=this._current.target,o=this._current.entries,a=o[e];if(a){var s=a.action;if(this._eventBus.fire("contextPad.trigger",{entry:a,event:n})!==!1){if(Go(s)){if(t==="click")return s(n,i,r)}else if(s[t])return s[t](n,i,r);n.preventDefault()}}}};Po.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))};Po.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};Po.prototype._updateAndOpen=function(e){var t=this.getEntries(e),n=this._createHtml(e),r;Ze(t,function(i,o){var a=i.group||"default",s=Oi(i.html||'<div class="entry" draggable="true"></div>'),l;za(s,"data-action",o),l=fi("[data-group="+Uw(a)+"]",n),l||(l=Oi('<div class="group"></div>'),za(l,"data-group",a),n.appendChild(l)),l.appendChild(s),i.className&&zpn(s,i.className),i.title&&za(s,"title",i.title),i.imageUrl&&(r=Oi("<img>"),za(r,"src",i.imageUrl),r.style.width="100%",r.style.height="100%",s.appendChild(r))}),so(n).add("open"),this._current={entries:t,html:n,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})};Po.prototype._createHtml=function(e){var t=this,n=Oi('<div class="djs-context-pad"></div>');return ul.bind(n,qO,"click",function(r){t.trigger("click",r)}),ul.bind(n,qO,"dragstart",function(r){t.trigger("dragstart",r)}),ul.bind(n,qO,"mouseover",function(r){t.trigger("mouseover",r)}),ul.bind(n,qO,"mouseout",function(r){t.trigger("mouseout",r)}),sr.bind(n,"mousedown",function(r){r.stopPropagation()}),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:e,pad:n}),n};Po.prototype.getPad=function(e){console.warn(new Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));let t;return this.isOpen()&&Gpn(this._current.target,e)?t=this._current.html:t=this._createHtml(e),{html:t}};Po.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)};Po.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return lr(e)!==lr(n)?!1:lr(e)?e.length===n.length&&G_(e,function(r){return n.includes(r)}):n===e};Po.prototype.isShown=function(){return this.isOpen()&&so(this._current.html).has("open")};Po.prototype.show=function(){this.isOpen()&&(so(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))};Po.prototype.hide=function(){this.isOpen()&&(so(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))};Po.prototype._getPosition=function(e){if(!lr(e)&&pi(e)){var t=this._canvas.viewbox(),n=Vpn(e),r=n.x*t.scale-t.x*t.scale,i=n.y*t.scale-t.y*t.scale;return{left:r+The*this._canvas.zoom(),top:i}}var o=this._canvas.getContainer(),a=o.getBoundingClientRect(),s=this._getTargetBounds(e);return{left:s.right-a.left+The*this._canvas.zoom(),top:s.top-a.top}};Po.prototype._updatePosition=function(){const e=()=>{if(this.isOpen()){var t=this._current.html,n=this._getPosition(this._current.target);"x"in n&&"y"in n?(t.style.left=n.x+"px",t.style.top=n.y+"px"):["top","right","bottom","left"].forEach(function(r){r in n&&(t.style[r]=n[r]+"px")})}};this._scheduler.schedule(e,"ContextPad#_updatePosition")};Po.prototype._updateVisibility=function(){const e=()=>{if(this.isOpen()){var t=this,n=this._current.target,r=lr(n)?n:[n],i=r.some(function(o){return t._canvas.hasMarker(o,Upn)});i?t.hide():t.show()}};this._scheduler.schedule(e,"ContextPad#_updateVisibility")};Po.prototype._getTargetBounds=function(e){var t=this,n=lr(e)?e:[e],r=n.map(function(i){return t._canvas.getGraphics(i)});return r.reduce(function(i,o){const a=o.getBoundingClientRect();return i.top=Math.min(i.top,a.top),i.right=Math.max(i.right,a.right),i.bottom=Math.max(i.bottom,a.bottom),i.left=Math.min(i.left,a.left),i.x=i.left,i.y=i.top,i.width=i.right-i.left,i.height=i.bottom-i.top,i},{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};function zpn(e,t){var n=so(e);t=lr(t)?t:t.split(/\s+/g),t.forEach(function(r){n.add(r)})}function Vpn(e){return e.waypoints[e.waypoints.length-1]}function Gpn(e,t){return e=lr(e)?e:[e],t=lr(t)?t:[t],e.length===t.length&&G_(e,function(n){return t.includes(n)})}const b$e={__depends__:[g$,Bpn,h$],contextPad:["type",Po]};var y$,Yi,S$e,Wg,Rhe,E$e,MV,AX,AV,PV,zw={},C$e=[],Wpn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,PX=Array.isArray;function rh(e,t){for(var n in t)e[n]=t[n];return e}function w$e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x$e(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?y$.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return DN(e,a,r,i,null)}function DN(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++S$e,__i:-1,__u:0};return i==null&&Yi.vnode!=null&&Yi.vnode(o),o}function kT(e){return e.children}function kN(e,t){this.props=e,this.context=t}function k0(e,t){if(t==null)return e.__?k0(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?k0(e):null}function T$e(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return T$e(e)}}function Ohe(e){(!e.__d&&(e.__d=!0)&&Wg.push(e)&&!IP.__r++||Rhe!==Yi.debounceRendering)&&((Rhe=Yi.debounceRendering)||E$e)(IP)}function IP(){var e,t,n,r,i,o,a,s;for(Wg.sort(MV);e=Wg.shift();)e.__d&&(t=Wg.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=rh({},i)).__v=i.__v+1,Yi.vnode&&Yi.vnode(r),DX(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,o??k0(i),!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,I$e(a,r,s),r.__e!=o&&T$e(r)),Wg.length>t&&Wg.sort(MV));IP.__r=0}function R$e(e,t,n,r,i,o,a,s,l,c,u){var d,f,p,h,g,v=r&&r.__k||C$e,y=t.length;for(n.__d=l,Ypn(n,t,v),l=n.__d,d=0;d<y;d++)(p=n.__k[d])!=null&&(f=p.__i===-1?zw:v[p.__i]||zw,p.__i=d,DX(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&kX(f.ref,null,p),u.push(p.ref,p.__c||h,p)),g==null&&h!=null&&(g=h),65536&p.__u||f.__k===p.__k?l=O$e(p,l,e):typeof p.type=="function"&&p.__d!==void 0?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=g}function Ypn(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(a=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?DN(null,i,null,null,null):PX(i)?DN(kT,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?DN(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(s=i.__i=qpn(i,n,a,u))!==-1&&(u--,(o=n[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(u)for(r=0;r<c;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=k0(o)),N$e(o,o))}function O$e(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=O$e(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=k0(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function qpn(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===kT||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function Ihe(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Wpn.test(t)?n:n+"px"}function KO(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ihe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ihe(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=AX,e.addEventListener(t,o?PV:AV,o)):e.removeEventListener(t,o?PV:AV,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Nhe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=AX++;else if(t.t<n.u)return;return Yi.event&&(t=Yi.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function DX(e,t,n,r,i,o,a,s,l,c){var u,d,f,p,h,g,v,y,_,b,S,C,E,w,x,T,R=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=Yi.__b)&&u(t);e:if(typeof R=="function")try{if(y=t.props,_="prototype"in R&&R.prototype.render,b=(u=R.contextType)&&r[u.__c],S=u?b?b.props.value:u.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:(_?t.__c=d=new R(y,S):(t.__c=d=new kN(y,S),d.constructor=R,d.render=Qpn),b&&b.sub(d),d.props=y,d.state||(d.state={}),d.context=S,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),_&&d.__s==null&&(d.__s=d.state),_&&R.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=rh({},d.__s)),rh(d.__s,R.getDerivedStateFromProps(y,d.__s))),p=d.props,h=d.state,d.__v=t,f)_&&R.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),_&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(_&&R.getDerivedStateFromProps==null&&y!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,S),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,S),_&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,h,g)})}if(d.context=S,d.props=y,d.__P=e,d.__e=!1,E=Yi.__r,w=0,_){for(d.state=d.__s,d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[]}else do d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++w<25);d.state=d.__s,d.getChildContext!=null&&(r=rh(rh({},r),d.getChildContext())),_&&!f&&d.getSnapshotBeforeUpdate!=null&&(g=d.getSnapshotBeforeUpdate(p,h)),R$e(e,PX(T=u!=null&&u.type===kT&&u.key==null?u.props.children:u)?T:[T],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),v&&(d.__E=d.__=null)}catch(N){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;Yi.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Kpn(n.__e,t,n,r,i,o,a,l,c);(u=Yi.diffed)&&u(t)}function I$e(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)kX(n[r],n[++r],n[++r]);Yi.__c&&Yi.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Yi.__e(o,i.__v)}})}function Kpn(e,t,n,r,i,o,a,s,l){var c,u,d,f,p,h,g,v=n.props,y=t.props,_=t.type;if(_==="svg"?i="http://www.w3.org/2000/svg":_==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!_&&(_?p.localName===_:p.nodeType===3)){e=p,o[c]=null;break}}if(e==null){if(_===null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(Yi.__m&&Yi.__m(t,o),s=!1),o=null}if(_===null)v===y||s&&e.data===y||(e.data=y);else{if(o=o&&y$.call(e.childNodes),v=n.props||zw,!s&&o!=null)for(v={},c=0;c<e.attributes.length;c++)v[(p=e.attributes[c]).name]=p.value;for(c in v)if(p=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=p;else if(!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;KO(e,c,null,p,i)}}for(c in y)p=y[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?u=p:c=="value"?h=p:c=="checked"?g=p:s&&typeof p!="function"||v[c]===p||KO(e,c,p,v[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),R$e(e,PX(f)?f:[f],t,n,r,_==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&k0(n,0),s,l),o!=null)for(c=o.length;c--;)w$e(o[c]);s||(c="value",_==="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||_==="progress"&&!h||_==="option"&&h!==v[c])&&KO(e,c,h,v[c],i),c="checked",g!==void 0&&g!==e[c]&&KO(e,c,g,v[c],i))}return e}function kX(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){Yi.__e(i,n)}}function N$e(e,t,n){var r,i;if(Yi.unmount&&Yi.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||kX(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Yi.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&N$e(r[i],t,n||typeof e.type!="function");n||w$e(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Qpn(e,t,n){return this.constructor(e,n)}function M$e(e,t,n){var r,i,o,a;Yi.__&&Yi.__(e,t),i=(r=typeof n=="function")?null:t.__k,o=[],a=[],DX(t,e=(!r&&n||t).__k=x$e(kT,null,[e]),i||zw,zw,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?y$.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),I$e(o,e,a)}y$=C$e.slice,Yi={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},S$e=0,kN.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=rh({},this.state),typeof e=="function"&&(e=e(rh({},n),this.props)),e&&rh(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ohe(this))},kN.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ohe(this))},kN.prototype.render=kT,Wg=[],E$e=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,MV=function(e,t){return e.__v.__b-t.__v.__b},IP.__r=0,AX=0,AV=Nhe(!1),PV=Nhe(!0);var A$e=function(e,t,n,r){var i;t[0]=0;for(var o=1;o<t.length;o++){var a=t[o++],s=t[o]?(t[0]|=a?1:2,n[t[o++]]):t[++o];a===3?r[0]=s:a===4?r[1]=Object.assign(r[1]||{},s):a===5?(r[1]=r[1]||{})[t[++o]]=s:a===6?r[1][t[++o]]+=s+"":a?(i=e.apply(s,A$e(e,s,n,["",null])),r.push(i),s[0]?t[0]|=2:(t[o-2]=0,t[o]=i)):r.push(s)}return r},Mhe=new Map;function Xpn(e){var t=Mhe.get(this);return t||(t=new Map,Mhe.set(this,t)),(t=A$e(this,t.get(e)||(t.set(e,t=function(n){for(var r,i,o=1,a="",s="",l=[0],c=function(f){o===1&&(f||(a=a.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?l.push(0,f,a):o===3&&(f||a)?(l.push(3,f,a),o=2):o===2&&a==="..."&&f?l.push(4,f,0):o===2&&a&&!f?l.push(5,0,!0,a):o>=5&&((a||!f&&o===5)&&(l.push(o,0,a,i),o=6),f&&(l.push(o,f,0,i),o=6)),a=""},u=0;u<n.length;u++){u&&(o===1&&c(),c(u));for(var d=0;d<n[u].length;d++)r=n[u][d],o===1?r==="<"?(c(),l=[l],o=3):a+=r:o===4?a==="--"&&r===">"?(o=1,a=""):a=r+a[0]:s?r===s?s="":a+=r:r==='"'||r==="'"?s=r:r===">"?(c(),o=1):o&&(r==="="?(o=5,i=a,a=""):r==="/"&&(o<5||n[u][d+1]===">")?(c(),o===3&&(l=l[0]),o=l,(l=l[0]).push(2,0,o),o=0):r===" "||r===" "||r===`
|
||
`||r==="\r"?(c(),o=2):a+=r),o===3&&a==="!--"&&(o=4,l=l[0])}return c(),l}(e)),t),arguments,[])).length>1?t:t[0]}var ho=Xpn.bind(x$e),L0,To,aU,Ahe,Vw=0,P$e=[],Bo=Yi,Phe=Bo.__b,Dhe=Bo.__r,khe=Bo.diffed,Lhe=Bo.__c,$he=Bo.unmount,Fhe=Bo.__;function b$(e,t){Bo.__h&&Bo.__h(To,e,Vw||t),Vw=0;var n=To.__H||(To.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function sU(e){return Vw=1,Zpn(k$e,e)}function Zpn(e,t,n){var r=b$(L0++,2);if(r.t=e,!r.__c&&(r.__=[k$e(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=To,!To.u)){var i=function(s,l,c){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(f){return!!f.__c});if(u.every(function(f){return!f.__N}))return!o||o.call(this,s,l,c);var d=r.__c.props!==s;return u.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),o&&o.call(this,s,l,c)||d};To.u=!0;var o=To.shouldComponentUpdate,a=To.componentWillUpdate;To.componentWillUpdate=function(s,l,c){if(this.__e){var u=o;o=void 0,i(s,l,c),o=u}a&&a.call(this,s,l,c)},To.shouldComponentUpdate=i}return r.__N||r.__}function DV(e,t){var n=b$(L0++,3);!Bo.__s&&LX(n.__H,t)&&(n.__=e,n.i=t,To.__H.__h.push(n))}function kV(e,t){var n=b$(L0++,4);!Bo.__s&&LX(n.__H,t)&&(n.__=e,n.i=t,To.__h.push(n))}function D$e(e){return Vw=5,$0(function(){return{current:e}},[])}function $0(e,t){var n=b$(L0++,7);return LX(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function GE(e,t){return Vw=8,$0(function(){return e},t)}function Jpn(){for(var e;e=P$e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(LN),e.__H.__h.forEach(LV),e.__H.__h=[]}catch(t){e.__H.__h=[],Bo.__e(t,e.__v)}}Bo.__b=function(e){To=null,Phe&&Phe(e)},Bo.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Fhe&&Fhe(e,t)},Bo.__r=function(e){Dhe&&Dhe(e),L0=0;var t=(To=e.__c).__H;t&&(aU===To?(t.__h=[],To.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(LN),t.__h.forEach(LV),t.__h=[],L0=0)),aU=To},Bo.diffed=function(e){khe&&khe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(P$e.push(t)!==1&&Ahe===Bo.requestAnimationFrame||((Ahe=Bo.requestAnimationFrame)||emn)(Jpn)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),aU=To=null},Bo.__c=function(e,t){t.some(function(n){try{n.__h.forEach(LN),n.__h=n.__h.filter(function(r){return!r.__||LV(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Bo.__e(r,n.__v)}}),Lhe&&Lhe(e,t)},Bo.unmount=function(e){$he&&$he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{LN(r)}catch(i){t=i}}),n.__H=void 0,t&&Bo.__e(t,n.__v))};var Bhe=typeof requestAnimationFrame=="function";function emn(e){var t,n=function(){clearTimeout(r),Bhe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Bhe&&(t=requestAnimationFrame(n))}function LN(e){var t=To,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),To=t}function LV(e){var t=To;e.__c=e.__(),To=t}function LX(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function k$e(e,t){return typeof t=="function"?t(e):t}function L$e(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=L$e(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function NP(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=L$e(e))&&(r&&(r+=" "),r+=t);return r}function tmn(e){const{headerEntries:t,onSelect:n,selectedEntry:r,setSelectedEntry:i,title:o}=e,a=$0(()=>nmn(t),[t]);return ho`
|
||
<div class="djs-popup-header">
|
||
<h3 class="djs-popup-title" title=${o}>${o}</h3>
|
||
${a.map(s=>ho`
|
||
<ul key=${s.id} class="djs-popup-header-group" data-header-group=${s.id}>
|
||
|
||
${s.entries.map(l=>ho`
|
||
<li key=${l.id}>
|
||
<${l.action?"button":"span"}
|
||
class=${rmn(l,l===r)}
|
||
onClick=${c=>l.action&&n(c,l)}
|
||
title=${l.title||l.label}
|
||
data-id=${l.id}
|
||
onMouseEnter=${()=>l.action&&i(l)}
|
||
onMouseLeave=${()=>l.action&&i(null)}
|
||
onFocus=${()=>l.action&&i(l)}
|
||
onBlur=${()=>l.action&&i(null)}
|
||
>
|
||
${l.imageUrl&&ho`<img class="djs-popup-entry-icon" src=${l.imageUrl} alt="" />`||l.imageHtml&&ho`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:l.imageHtml}} />`}
|
||
${l.label?ho`
|
||
<span class="djs-popup-label">${l.label}</span>
|
||
`:null}
|
||
</${l.action?"button":"span"}>
|
||
</li>
|
||
`)}
|
||
</ul>
|
||
`)}
|
||
</div>
|
||
`}function nmn(e){return e.reduce((t,n)=>{const r=n.group||"default",i=t.find(o=>o.id===r);return i?i.entries.push(n):t.push({id:r,entries:[n]}),t},[])}function rmn(e,t){return NP("entry",e.className,e.active?"active":"",e.disabled?"disabled":"",t?"selected":"")}function imn(e){const{entry:t,selected:n,onMouseEnter:r,onMouseLeave:i,onAction:o}=e;return ho`
|
||
<li
|
||
class=${NP("entry",{selected:n})}
|
||
data-id=${t.id}
|
||
title=${t.title||t.label}
|
||
tabIndex="0"
|
||
onClick=${o}
|
||
onFocus=${r}
|
||
onBlur=${i}
|
||
onMouseEnter=${r}
|
||
onMouseLeave=${i}
|
||
onDragStart=${a=>o(a,t,"dragstart")}
|
||
draggable=${!0}
|
||
>
|
||
<div class="djs-popup-entry-content">
|
||
<span
|
||
class=${NP("djs-popup-entry-name",t.className)}
|
||
>
|
||
${t.imageUrl&&ho`<img class="djs-popup-entry-icon" src=${t.imageUrl} alt="" />`||t.imageHtml&&ho`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:t.imageHtml}} />`}
|
||
|
||
${t.label?ho`
|
||
<span class="djs-popup-label">
|
||
${t.label}
|
||
</span>
|
||
`:null}
|
||
</span>
|
||
${t.description&&ho`
|
||
<span
|
||
class="djs-popup-entry-description"
|
||
title=${t.description}
|
||
>
|
||
${t.description}
|
||
</span>
|
||
`}
|
||
</div>
|
||
${t.documentationRef&&ho`
|
||
<div class="djs-popup-entry-docs">
|
||
<a
|
||
href="${t.documentationRef}"
|
||
onClick=${a=>a.stopPropagation()}
|
||
title="Open element documentation"
|
||
target="_blank"
|
||
rel="noopener"
|
||
>
|
||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="#818798"/>
|
||
</svg>
|
||
</a>
|
||
</div>
|
||
`}
|
||
</li>
|
||
`}function omn(e){const{selectedEntry:t,setSelectedEntry:n,entries:r,...i}=e,o=D$e(),a=$0(()=>amn(r),[r]);return kV(()=>{const s=o.current;if(!s)return;const l=s.querySelector(".selected");l&&smn(l)},[t]),ho`
|
||
<div class="djs-popup-results" ref=${o}>
|
||
${a.map(s=>ho`
|
||
${s.name&&ho`
|
||
<div key=${s.id} class="entry-header" title=${s.name}>
|
||
${s.name}
|
||
</div>
|
||
`}
|
||
<ul class="djs-popup-group" data-group=${s.id}>
|
||
${s.entries.map(l=>ho`
|
||
<${imn}
|
||
key=${l.id}
|
||
entry=${l}
|
||
selected=${l===t}
|
||
onMouseEnter=${()=>n(l)}
|
||
onMouseLeave=${()=>n(null)}
|
||
...${i}
|
||
/>
|
||
`)}
|
||
</ul>
|
||
`)}
|
||
</div>
|
||
`}function amn(e){const t=[],n=o=>t.find(a=>o.id===a.id),r=o=>!!n(o),i=o=>typeof o=="string"?{id:o}:o;return e.forEach(o=>{const a=o.group?i(o.group):{id:"default"};r(a)?n(a).entries.push(o):t.push({...a,entries:[o]})}),t}function smn(e){typeof e.scrollIntoViewIfNeeded=="function"?e.scrollIntoViewIfNeeded():e.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}function lmn(e){const{onClose:t,onSelect:n,className:r,headerEntries:i,position:o,title:a,width:s,scale:l,search:c,emptyPlaceholder:u,searchFn:d,entries:f,onOpened:p,onClosed:h}=e,g=$0(()=>pa(c)?f.length>5:!1,[c,f]),[v,y]=sU(""),_=GE((I,P)=>{if(!g)return I;if(!P.trim())return I.filter(({rank:F=0})=>F>=0);const D=I.filter(({searchable:F})=>F!==!1);return d(D,P,{keys:["label","description","search"]}).map(({item:F})=>F)},[g]),[b,S]=sU(_(f,v)),[C,E]=sU(b[0]),w=GE(I=>{(!C||!I.includes(C))&&E(I[0]),S(I)},[C,S,E]);DV(()=>{w(_(f,v))},[v,f]);const x=GE(I=>{let D=b.indexOf(C)+I;D<0&&(D=b.length-1),D>=b.length&&(D=0),E(b[D])},[b,C,E]),T=GE(I=>{if(I.key==="Enter"&&C)return n(I,C);if(I.key==="ArrowUp")return x(-1),I.preventDefault();if(I.key==="ArrowDown")return x(1),I.preventDefault()},[n,C,x]),R=GE(I=>{eLe(I.target,"input")&&y(()=>I.target.value)},[y]);DV(()=>(p(),()=>{h()}),[]);const N=$0(()=>a||i.length>0,[a,i]);return ho`
|
||
<${Uhe}
|
||
onClose=${t}
|
||
onKeyup=${R}
|
||
onKeydown=${T}
|
||
className=${r}
|
||
position=${o}
|
||
width=${s}
|
||
scale=${l}
|
||
>
|
||
${N&&ho`
|
||
<${tmn}
|
||
headerEntries=${i}
|
||
onSelect=${n}
|
||
selectedEntry=${C}
|
||
setSelectedEntry=${E}
|
||
title=${a}
|
||
/>
|
||
`}
|
||
${f.length>0&&ho`
|
||
<div class="djs-popup-body">
|
||
|
||
${g&&ho`
|
||
<div class="djs-popup-search">
|
||
<svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
||
</svg>
|
||
<input type="text" spellcheck=${!1} aria-label="${a}" />
|
||
</div>
|
||
`}
|
||
|
||
<${omn}
|
||
entries=${b}
|
||
selectedEntry=${C}
|
||
setSelectedEntry=${E}
|
||
onAction=${n}
|
||
/>
|
||
</div>
|
||
`}
|
||
${u&&b.length===0&&ho`
|
||
<div class="djs-popup-no-results">${Go(u)?u(v):u}</div>
|
||
`}
|
||
</${Uhe}>
|
||
`}function Uhe(e){const{onClose:t,onKeydown:n,onKeyup:r,className:i,children:o,position:a}=e,s=D$e();return kV(()=>{if(typeof a!="function")return;const l=s.current,c=a(l);l.style.left=`${c.x}px`,l.style.top=`${c.y}px`},[s.current,a]),kV(()=>{const l=s.current;if(!l)return;(l.querySelector("input")||l).focus()},[]),DV(()=>{const l=u=>{if(u.key==="Escape")return u.preventDefault(),t()},c=u=>{if(!HS(u.target,".djs-popup",!0))return t()};return document.documentElement.addEventListener("keydown",l),document.body.addEventListener("click",c),()=>{document.documentElement.removeEventListener("keydown",l),document.body.removeEventListener("click",c)}},[]),ho`
|
||
<div
|
||
class=${NP("djs-popup",i)}
|
||
style=${cmn(e)}
|
||
onKeydown=${n}
|
||
onKeyup=${r}
|
||
ref=${s}
|
||
tabIndex="-1"
|
||
>
|
||
${o}
|
||
</div>
|
||
`}function cmn(e){return{transform:`scale(${e.scale})`,width:`${e.width}px`,"transform-origin":"top left"}}var umn="data-id",$$e=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],dmn=1e3;function Xi(e,t,n,r){this._eventBus=t,this._canvas=n,this._search=r,this._current=null;var i=pa(e&&e.scale)?e.scale:{min:1,max:1};this._config={scale:i},t.on("diagram.destroy",()=>{this.close()}),t.on("element.changed",o=>{const a=this.isOpen()&&this._current.target;o.element===a&&this.refresh()})}Xi.$inject=["config.popupMenu","eventBus","canvas","search"];Xi.prototype._render=function(){const{position:e,providerId:t,entries:n,headerEntries:r,emptyPlaceholder:i,options:o}=this._current,a=Object.entries(n).map(([f,p])=>({id:f,...p})),s=Object.entries(r).map(([f,p])=>({id:f,...p})),l=e&&(f=>this._ensureVisible(f,e)),c=this._updateScale(this._current.container);M$e(ho`
|
||
<${lmn}
|
||
onClose=${f=>this.close(f)}
|
||
onSelect=${(f,p,h)=>this.trigger(f,p,h)}
|
||
position=${l}
|
||
className=${t}
|
||
entries=${a}
|
||
headerEntries=${s}
|
||
emptyPlaceholder=${i}
|
||
scale=${c}
|
||
onOpened=${this._onOpened.bind(this)}
|
||
onClosed=${this._onClosed.bind(this)}
|
||
searchFn=${this._search}
|
||
...${{...o}}
|
||
/>
|
||
`,this._current.container)};Xi.prototype.open=function(e,t,n,r){if(!e)throw new Error("target is missing");if(!t)throw new Error("providers for <"+t+"> not found");if(!n)throw new Error("position is missing");this.isOpen()&&this.close();const{entries:i,headerEntries:o,emptyPlaceholder:a}=this._getContext(e,t);this._current={position:n,providerId:t,target:e,entries:i,headerEntries:o,emptyPlaceholder:a,container:this._createContainer({provider:t}),options:r},this._emit("open"),this._bindAutoClose(),this._render()};Xi.prototype.refresh=function(){if(!this.isOpen())return;const{target:e,providerId:t}=this._current,{entries:n,headerEntries:r,emptyPlaceholder:i}=this._getContext(e,t);this._current={...this._current,entries:n,headerEntries:r,emptyPlaceholder:i},this._emit("refresh"),this._render()};Xi.prototype._getContext=function(e,t){const n=this._getProviders(t);if(!n||!n.length)throw new Error("provider for <"+t+"> not found");const r=this._getEntries(e,n),i=this._getHeaderEntries(e,n),o=this._getEmptyPlaceholder(n);return{entries:r,headerEntries:i,emptyPlaceholder:o,empty:!(Object.keys(r).length||Object.keys(i).length)}};Xi.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._canvas.restoreFocus(),this._current=null)};Xi.prototype.reset=function(){const e=this._current.container;M$e(null,e),df(e)};Xi.prototype._emit=function(e,t){this._eventBus.fire(`popupMenu.${e}`,t)};Xi.prototype._onOpened=function(){this._emit("opened")};Xi.prototype._onClosed=function(){this._emit("closed")};Xi.prototype._createContainer=function(e){var t=this._canvas,n=t.getContainer();const r=Oi(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);return n.appendChild(r),r};Xi.prototype._bindAutoClose=function(){this._eventBus.once($$e,this.close,this)};Xi.prototype._unbindAutoClose=function(){this._eventBus.off($$e,this.close,this)};Xi.prototype._updateScale=function(){var e=this._canvas.zoom(),t=this._config.scale,n,r,i=e;return t!==!0&&(t===!1?(n=1,r=1):(n=t.min,r=t.max),pa(n)&&e<n&&(i=n),pa(r)&&e>r&&(i=r)),i};Xi.prototype._ensureVisible=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect(),i={},o=t.x,a=t.y;return t.x+r.width>n.width&&(i.x=!0),t.y+r.height>n.height&&(i.y=!0),i.x&&i.y?(o=t.x-r.width,a=t.y-r.height):i.x?(o=t.x-r.width,a=t.y):i.y&&t.y<r.height?(o=t.x,a=10):i.y&&(o=t.x,a=t.y-r.height),t.y<n.top&&(a=t.y+r.height),{x:o,y:a}};Xi.prototype.isEmpty=function(e,t){if(!e)throw new Error("target is missing");if(!t)throw new Error("provider ID is missing");const n=this._getProviders(t);return!n||!n.length?!0:this._getContext(e,t).empty};Xi.prototype.registerProvider=function(e,t,n){n||(n=t,t=dmn),this._eventBus.on("popupMenu.getProviders."+e,t,function(r){r.providers.push(n)})};Xi.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers};Xi.prototype._getEntries=function(e,t){var n={};return Ze(t,function(r){if(!r.getPopupMenuEntries){Ze(r.getEntries(e),function(o){var a=o.id;if(!a)throw new Error("entry ID is missing");n[a]=yf(o,["id"])});return}var i=r.getPopupMenuEntries(e);Go(i)?n=i(n):Ze(i,function(o,a){n[a]=o})}),n};Xi.prototype._getHeaderEntries=function(e,t){var n={};return Ze(t,function(r){if(!r.getPopupMenuHeaderEntries){if(!r.getHeaderEntries)return;Ze(r.getHeaderEntries(e),function(o){var a=o.id;if(!a)throw new Error("entry ID is missing");n[a]=yf(o,["id"])});return}var i=r.getPopupMenuHeaderEntries(e);Go(i)?n=i(n):Ze(i,function(o,a){n[a]=o})}),n};Xi.prototype._getEmptyPlaceholder=function(e){const t=e.find(n=>Go(n.getEmptyPlaceholder));return t&&t.getEmptyPlaceholder()};Xi.prototype.isOpen=function(){return!!this._current};Xi.prototype.trigger=function(e,t,n="click"){if(e.preventDefault(),!t){let i=HS(e.delegateTarget||e.target,".entry",!0),o=za(i,umn);t={id:o,...this._getEntry(o)}}const r=t.action;if(this._emit("trigger",{entry:t,event:e})!==!1){if(Go(r)){if(n==="click")return r(e,t)}else if(r[n])return r[n](e,t)}};Xi.prototype._getEntry=function(e){var t=this._current.entries[e]||this._current.headerEntries[e];if(!t)throw new Error("entry not found");return t};function fmn(e,t,n){const{keys:r}=n;if(t=t.trim().toLowerCase(),!t)throw new Error("<pattern> must not be empty");const i=t.trim().toLowerCase().split(/\s+/);return e.flatMap(o=>{const a=pmn(o,i,r);return a?{item:o,tokens:a}:[]}).sort(mmn(r))}function pmn(e,t,n){const{matchedWords:r,tokens:i}=n.reduce((o,a)=>{const s=e[a],{tokens:l,matchedWords:c}=_mn(s,t);return{tokens:{...o.tokens,[a]:l},matchedWords:{...o.matchedWords,...c}}},{matchedWords:{},tokens:{}});return Object.keys(r).length!==t.length?null:i}function mmn(e){return(t,n)=>{for(const r of e){const i=hmn(t.tokens[r],n.tokens[r]);if(i!==0)return i;const o=vmn(t.item[r],n.item[r]);if(o!==0)return o}return 0}}function hmn(e,t){return jhe(t)-jhe(e)}function jhe(e){return e.reduce((t,n)=>t+gmn(n),0)}function gmn(e){const t=Math.log(e.value.length);return e.match?(e.start?e.end?131.9:7.87:e.wordStart?2.19:1)*t:-.07*t}function vmn(e="",t=""){return e.localeCompare(t)}function _mn(e,t){if(!e)return{tokens:[],matchedWords:{}};const n=[],r={},i=t.map(ymn),o=[`(?<all>${i.join("\\s+")})`,...i].join("|"),a=new RegExp(o,"ig");let s,l=0;for(;s=a.exec(e);){const[c]=s,u=s.index,d=s.index+c.length,f=u===0,p=d===e.length,h=!!s.groups.all,g=f||/\s/.test(e.charAt(u-1)),v=p||/\s/.test(e.charAt(d+1));s.index>l&&n.push({value:e.slice(l,s.index),index:l}),n.push({value:c,index:s.index,match:!0,wordStart:g,wordEnd:v,start:f,end:p,all:h});const y=h?t:[c];for(const _ of y)r[_.toLowerCase()]=!0;l=s.index+c.length}return l<e.length&&n.push({value:e.slice(l),index:l}),{tokens:n,matchedWords:r}}function ymn(e){return e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}const F$e={search:["value",fmn]},$X={__depends__:[F$e],__init__:["popupMenu"],popupMenu:["type",Xi]};var B$e={align:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">
|
||
<line x1="200" y1="150" x2="200" y2="1850" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="500" y="150" width="1300" height="700" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="500" y="1150" width="700" height="700" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,bottom:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="150" y1="1650" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="150" y="350" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="850" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,center:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="900" y1="150" x2="900" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="250" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="500" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,left:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="100" y1="150" x2="100" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="100" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="100" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,right:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="1650" y1="150" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="350" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="850" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,top:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="150" y1="150" x2="1650" y2="150" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="150" y="150" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="150" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,middle:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<line x1="150" y1="900" x2="1650" y2="900" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>
|
||
<rect x="150" y="250" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="500" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`},bmn=900;function XS(e,t,n,r){e.registerProvider(bmn,this),this._contextPad=e,this._popupMenu=t,this._translate=n,this._canvas=r}XS.$inject=["contextPad","popupMenu","translate","canvas"];XS.prototype.getMultiElementContextPadEntries=function(e){var t={};return this._isAllowed(e)&<(t,this._getEntries(e)),t};XS.prototype._isAllowed=function(e){return!this._popupMenu.isEmpty(e,"align-elements")};XS.prototype._getEntries=function(){var e=this;return{"align-elements":{group:"align-elements",title:e._translate("Align elements"),html:`<div class="entry">${B$e.align}</div>`,action:{click:function(t,n){var r=e._getMenuPosition(n);lt(r,{cursor:{x:t.x,y:t.y}}),e._popupMenu.open(n,"align-elements",r)}}}}};XS.prototype._getMenuPosition=function(e){var t=5,n=this._contextPad.getPad(e).html,r=n.getBoundingClientRect(),i={x:r.left,y:r.bottom+t};return i};var Smn=["left","center","right","top","middle","bottom"];function LT(e,t,n,r){this._alignElements=t,this._translate=n,this._popupMenu=e,this._rules=r,e.registerProvider("align-elements",this)}LT.$inject=["popupMenu","alignElements","translate","rules"];LT.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&<(t,this._getEntries(e)),t};LT.prototype._isAllowed=function(e){return this._rules.allowed("elements.align",{elements:e})};LT.prototype._getEntries=function(e){var t=this._alignElements,n=this._translate,r=this._popupMenu,i={};return Ze(Smn,function(o){i["align-elements-"+o]={group:"align",title:n("Align elements "+o),className:"bjs-align-elements-menu-entry",imageHtml:B$e[o],action:function(){t.trigger(e,o),r.close()}}}),i};function du(e){Jt.call(this,e),this.init()}du.$inject=["eventBus"];Rn(du,Jt);du.prototype.addRule=function(e,t,n){var r=this;typeof e=="string"&&(e=[e]),e.forEach(function(i){r.canExecute(i,t,function(o,a,s){return n(o)},!0)})};du.prototype.init=function(){};function S$(e){du.call(this,e)}S$.$inject=["eventBus"];Rn(S$,du);S$.prototype.init=function(){this.addRule("elements.align",function(e){var t=e.elements,n=Cr(t,function(r){return!(r.waypoints||r.host||r.labelTarget)});return n=a$(n),n.length<2?!1:n})};const Emn={__depends__:[Lpn,b$e,$X],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",XS],alignElementsMenuProvider:["type",LT],bpmnAlignElements:["type",S$]};var Cmn=10,U$e=50,wmn=250;function FX(e,t,n,r){for(var i;i=xmn(e,n,t);)n=r(t,n,i);return n}function BX(e){return function(t,n,r){var i={x:n.x,y:n.y};return["x","y"].forEach(function(o){var a=e[o];if(a){var s=o==="x"?"width":"height",l=a.margin,c=a.minDistance;l<0?i[o]=Math.min(r[o]+l-t[s]/2,n[o]-c+l):i[o]=Math.max(r[o]+r[s]+l+t[s]/2,n[o]+c+l)}}),i}}function xmn(e,t,n){var r={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height},i=Rmn(e);return Br(i,function(o){if(o===n)return!1;var a=Ka(o,r,Cmn);return a==="intersect"})}function Tmn(e,t){t||(t={});function n(h){return h.source===e?1:-1}var r=t.defaultDistance||U$e,i=t.direction||"e",o=t.filter,a=t.getWeight||n,s=t.maxDistance||wmn,l=t.reference||"start";o||(o=Nmn);function c(h,g){return i==="n"?l==="start"?Gn(h).top-Gn(g).bottom:l==="center"?Gn(h).top-er(g).y:Gn(h).top-Gn(g).top:i==="w"?l==="start"?Gn(h).left-Gn(g).right:l==="center"?Gn(h).left-er(g).x:Gn(h).left-Gn(g).left:i==="s"?l==="start"?Gn(g).top-Gn(h).bottom:l==="center"?er(g).y-Gn(h).bottom:Gn(g).bottom-Gn(h).bottom:l==="start"?Gn(g).left-Gn(h).right:l==="center"?er(g).x-Gn(h).right:Gn(g).right-Gn(h).right}var u=e.incoming.filter(o).map(function(h){var g=a(h),v=g<0?c(h.source,e):c(e,h.source);return{id:h.source.id,distance:v,weight:g}}),d=e.outgoing.filter(o).map(function(h){var g=a(h),v=g>0?c(e,h.target):c(h.target,e);return{id:h.target.id,distance:v,weight:g}}),f=u.concat(d).reduce(function(h,g){return h[g.id+"__weight_"+g.weight]=g,h},{}),p=vl(f,function(h,g){var v=g.distance,y=g.weight;return v<0||v>s||(h[String(v)]||(h[String(v)]=0),h[String(v)]+=1*y,(!h.distance||h[h.distance]<h[String(v)])&&(h.distance=v)),h},{});return p.distance||r}function Rmn(e){var t=lU(e);return e.host&&(t=t.concat(lU(e.host))),e.attachers&&(t=t.concat(e.attachers.reduce(function(n,r){return n.concat(lU(r))},[]))),t}function lU(e){return Imn(e).concat(Omn(e))}function Omn(e){return e.incoming.map(function(t){return t.source})}function Imn(e){return e.outgoing.map(function(t){return t.target})}function Nmn(){return!0}var Mmn=100;function j$e(e,t,n){e.on("autoPlace",Mmn,function(r){var i=r.shape,o=r.source;return Amn(o,i)}),e.on("autoPlace.end",function(r){n.scrollToElement(r.shape)}),this.append=function(r,i,o){e.fire("autoPlace.start",{source:r,shape:i});var a=e.fire("autoPlace",{source:r,shape:i}),s=t.appendShape(r,i,a,r.parent,o);return e.fire("autoPlace.end",{source:r,shape:s}),s}}j$e.$inject=["eventBus","modeling","canvas"];function Amn(e,t,n){n||(n={});var r=n.defaultDistance||U$e,i=er(e),o=Gn(e);return{x:o.right+r+t.width/2,y:i.y}}function H$e(e,t){e.on("autoPlace.end",500,function(n){t.select(n.shape)})}H$e.$inject=["eventBus","selection"];const Pmn={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",j$e],autoPlaceSelectionBehavior:["type",H$e]};function F0(e,t){for(gl(t)&&(t=[t]);e=e.parent;)if(br(e,t))return e;return null}function z$e(e,t){var n=F0(e,"bpmn:Process");if(n)return!0;var r=["bpmn:Participant","bpmn:Lane"];if(n=F0(e,r),n)return aa(n);if(br(e,r))return aa(e);var i;for(i=sn(e);i&&!Ne(i,"bpmn:Process");i=i.$parent);if(!t)return!0;var o=t.find(function(a){var s=sn(a);return s&&s.get("processRef")===i});return o?aa(o):!0}function V$e(e,t,n){var r=z$e(e,n);if(Ne(t,"bpmn:TextAnnotation"))return kmn(e,t,r);if(br(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"]))return Lmn(e,t,r);if(Ne(t,"bpmn:FlowNode"))return Dmn(e,t,r)}function Dmn(e,t,n){var r=Gn(e),i=er(e),o=n?{directionHint:"e",minDistance:80,baseOrientation:"left",boundaryOrientation:"top",start:"top",end:"bottom"}:{directionHint:"s",minDistance:90,baseOrientation:"top",boundaryOrientation:"left",start:"left",end:"right"},a=Tmn(e,{filter:function(p){return Ne(p,"bpmn:SequenceFlow")},direction:o.directionHint}),s=30,l=o.minDistance,c=o.baseOrientation;Ne(e,"bpmn:BoundaryEvent")&&(c=Ka(e,e.host,-25),c.indexOf(o.boundaryOrientation)!==-1&&(s*=-1));var u=n?{x:r.right+a+t.width/2,y:i.y+Hhe(c,l,o)}:{x:i.x+Hhe(c,l,o),y:r.bottom+a+t.height/2},d={margin:s,minDistance:l},f=n?{y:d}:{x:d};return FX(e,t,u,BX(f))}function Hhe(e,t,n){return e.includes(n.start)?-1*t:e.includes(n.end)?t:0}function kmn(e,t,n){var r=Gn(e),i=n?{x:r.right+t.width/2,y:r.top-50-t.height/2}:{x:r.right+50+t.width/2,y:r.bottom+t.height/2};pi(e)&&(i=er(e),n?(i.x+=100,i.y-=50):(i.x+=100,i.y+=50));var o={margin:n?-30:30,minDistance:20},a=n?{y:o}:{x:o};return FX(e,t,i,BX(a))}function Lmn(e,t,n){var r=Gn(e),i=n?{x:r.right-10+t.width/2,y:r.bottom+40+t.width/2}:{x:r.left-40-t.width/2,y:r.bottom-10+t.height/2},o={margin:30,minDistance:30},a=n?{x:o}:{y:o};return FX(e,t,i,BX(a))}function G$e(e,t){e.on("autoPlace",function(n){var r=n.shape,i=n.source;return V$e(i,r,t)})}G$e.$inject=["eventBus","elementRegistry"];const UX={__depends__:[Pmn],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",G$e]};function Jp(e,t,n,r){Jt.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=r;var i=this;this.postExecuted(["shape.create"],function(o){var a=o.context,s=a.hints||{},l=a.shape,c=a.parent||a.newParent;s.autoResize!==!1&&i._expand([l],c)}),this.postExecuted(["elements.move"],function(o){var a=o.context,s=lX(cX(a.closure.topLevel)),l=a.hints,c=l?l.autoResize:!0;if(c!==!1){var u=jS(s,function(d){return d.parent.id});Ze(u,function(d,f){lr(c)&&(d=d.filter(function(p){return Br(c,Xu({id:p.id}))})),i._expand(d,f)})}}),this.postExecuted(["shape.toggleCollapse"],function(o){var a=o.context,s=a.hints,l=a.shape;s&&s.autoResize===!1||l.collapsed||i._expand(l.children||[],l)}),this.postExecuted(["shape.resize"],function(o){var a=o.context,s=a.hints,l=a.shape,c=l.parent;s&&s.autoResize===!1||c&&i._expand([l],c)})}Jp.$inject=["eventBus","elementRegistry","modeling","rules"];Rn(Jp,Jt);Jp.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),r=this.getPadding(t),i=Gn(oa(e)),o=Gn(t),a={};return i.top-o.top<r.top&&(a.top=i.top-n.top),i.left-o.left<r.left&&(a.left=i.left-n.left),o.right-i.right<r.right&&(a.right=i.right+n.right),o.bottom-i.bottom<r.bottom&&(a.bottom=i.bottom+n.bottom),s$(lt({},o,a))};Jp.prototype._expand=function(e,t){typeof t=="string"&&(t=this._elementRegistry.get(t));var n=this._rules.allowed("element.autoResize",{elements:e,target:t});if(n){var r=this._getOptimalBounds(e,t);if($mn(r,t)){var i=Fmn(ld(t,["x","y","width","height"]),r);this.resize(t,r,{autoResize:i});var o=t.parent;o&&this._expand([t],o)}}};Jp.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}};Jp.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}};Jp.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)};function $mn(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}function Fmn(e,t){var n="";return e=Gn(e),t=Gn(t),e.top>t.top&&(n=n.concat("n")),e.right<t.right&&(n=n.concat("w")),e.bottom<t.bottom&&(n=n.concat("s")),e.left>t.left&&(n=n.concat("e")),n}function E$(e){e.invoke(Jp,this)}E$.$inject=["injector"];Rn(E$,Jp);E$.prototype.resize=function(e,t,n){Ne(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)};function $T(e){du.call(this,e);var t=this;this.addRule("element.autoResize",function(n){return t.canResize(n.elements,n.target)})}$T.$inject=["eventBus"];Rn($T,du);$T.prototype.canResize=function(e,t){return!1};function C$(e,t){$T.call(this,e),this._modeling=t}Rn(C$,$T);C$.$inject=["eventBus","modeling"];C$.prototype.canResize=function(e,t){if(Ne(t.di,"bpmndi:BPMNPlane")||!Ne(t,"bpmn:Participant")&&!Ne(t,"bpmn:Lane")&&!Ne(t,"bpmn:SubProcess"))return!1;var n=!0;return Ze(e,function(r){if(Ne(r,"bpmn:Lane")||Lr(r)){n=!1;return}}),n};const Bmn={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",E$],bpmnAutoResizeProvider:["type",C$]};var zhe=1500;function W$e(e,t,n){var r=this,i=n.get("dragging",!1);function o(a){if(!a.hover){var s=a.originalEvent,l=r._findTargetGfx(s),c=l&&e.get(l);l&&c&&(a.stopPropagation(),i.hover({element:c,gfx:l}),i.move(s))}}i&&t.on("drag.start",function(a){t.once("drag.move",zhe,function(s){o(s)})}),function(){var a,s;t.on("element.hover",function(l){a=l.gfx,s=l.element}),t.on("element.hover",zhe,function(l){s&&t.fire("element.out",{element:s,gfx:a})}),t.on("element.out",function(){a=null,s=null})}(),this._findTargetGfx=function(a){var s,l;if(a instanceof MouseEvent)return s=h_(a),l=document.elementFromPoint(s.x,s.y),Umn(l)}}W$e.$inject=["elementRegistry","eventBus","injector"];function Umn(e){return HS(e,"svg, .djs-element",!0)}const jmn={__init__:["hoverFix"],hoverFix:["type",W$e]};var Ny=Math.round,Vhe="djs-drag-active";function Mg(e){e.preventDefault()}function Hmn(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}function zmn(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function Y$e(e,t,n,r){var i={threshold:5,trapClick:!0},o;function a(b){var S=t.viewbox(),C=t._container.getBoundingClientRect();return{x:S.x+(b.x-C.left)/S.scale,y:S.y+(b.y-C.top)/S.scale}}function s(b,S){S=S||o;var C=e.createEvent(lt({},S.payload,S.data,{isTouch:S.isTouch}));return e.fire("drag."+b,C)===!1?!1:e.fire(S.prefix+"."+b,C)}function l(b){var S=b.filter(function(C){return r.get(C.id)});S.length&&n.select(S)}function c(b,S){var C=o.payload,E=o.displacement,w=o.globalStart,x=h_(b),T=Zu(x,w),R=o.localStart,N=a(x),I=Zu(N,R);if(!o.active&&(S||zmn(T)>o.threshold)){if(lt(C,{x:Ny(R.x+E.x),y:Ny(R.y+E.y),dx:0,dy:0},{originalEvent:b}),s("start")===!1)return v();o.active=!0,o.keepSelection||(C.previousSelection=n.get(),n.select(null)),o.cursor&&_$(o.cursor),t.addMarker(t.getRootElement(),Vhe)}iU(b),o.active&&(lt(C,{x:Ny(N.x+E.x),y:Ny(N.y+E.y),dx:Ny(I.x),dy:Ny(I.y)},{originalEvent:b}),s("move"))}function u(b){var S,C=!0;o.active&&(b&&(o.payload.originalEvent=b,iU(b)),C=s("end")),C===!1&&s("rejected"),S=y(C!==!0),s("ended",S)}function d(b){fa("Escape",b)&&(Mg(b),v())}function f(b){var S;o.active&&(S=m$e(e),setTimeout(S,400),Mg(b)),u(b)}function p(b){c(b)}function h(b){var S=o.payload;S.hoverGfx=b.gfx,S.hover=b.element,s("hover")}function g(b){s("out");var S=o.payload;S.hoverGfx=null,S.hover=null}function v(b){var S;if(o){var C=o.active;C&&s("cancel"),S=y(b),C&&s("canceled",S)}}function y(b){var S,C;s("cleanup"),p$e(),o.trapClick?C=f:C=u,sr.unbind(document,"mousemove",c),sr.unbind(document,"dragstart",Mg),sr.unbind(document,"selectstart",Mg),sr.unbind(document,"mousedown",C,!0),sr.unbind(document,"mouseup",C,!0),sr.unbind(document,"keyup",d),sr.unbind(document,"touchstart",p,!0),sr.unbind(document,"touchcancel",v,!0),sr.unbind(document,"touchmove",c,!0),sr.unbind(document,"touchend",u,!0),e.off("element.hover",h),e.off("element.out",g),t.removeMarker(t.getRootElement(),Vhe);var E=o.payload.previousSelection;return b!==!1&&E&&!n.get().length&&l(E),S=o,o=null,S}function _(b,S,C,E){o&&v(!1),typeof S=="string"&&(E=C,C=S,S=null),E=lt({},i,E||{});var w=E.data||{},x,T,R,N,I;E.trapClick?N=f:N=u,b?(x=WS(b)||b,T=h_(b),iU(b),x.type==="dragstart"&&Mg(x)):(x=null,T={x:0,y:0}),R=a(T),S||(S=R),I=Hmn(x),o=lt({prefix:C,data:w,payload:{},globalStart:T,displacement:Zu(S,R),localStart:R,isTouch:I},E),E.manual||(I?(sr.bind(document,"touchstart",p,!0),sr.bind(document,"touchcancel",v,!0),sr.bind(document,"touchmove",c,!0),sr.bind(document,"touchend",u,!0)):(sr.bind(document,"mousemove",c),sr.bind(document,"dragstart",Mg),sr.bind(document,"selectstart",Mg),sr.bind(document,"mousedown",N,!0),sr.bind(document,"mouseup",N,!0)),sr.bind(document,"keyup",d),e.on("element.hover",h),e.on("element.out",g)),s("init"),E.autoActivate&&c(b,!0)}e.on("diagram.destroy",v),this.init=_,this.move=c,this.hover=h,this.out=g,this.end=u,this.cancel=v,this.context=function(){return o},this.setOptions=function(b){lt(i,b)}}Y$e.$inject=["eventBus","canvas","selection","elementRegistry"];const em={__depends__:[jmn,bd],dragging:["type",Y$e]};function ZS(e,t,n){this._canvas=n,this._opts=lt({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var r=this;t.on("drag.move",function(i){var o=r._toBorderPoint(i);r.startScroll(o)}),t.on(["drag.cleanup"],function(){r.stopScroll()})}ZS.$inject=["config.autoScroll","eventBus","canvas"];ZS.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,r=this,i=t.getContainer().getBoundingClientRect(),o=[e.x,e.y,i.width-e.x,i.height-e.y];this.stopScroll();for(var a=0,s=0,l=0;l<4;l++)Vmn(o[l],n.scrollThresholdOut[l],n.scrollThresholdIn[l])&&(l===0?a=n.scrollStep:l==1?s=n.scrollStep:l==2?a=-n.scrollStep:l==3&&(s=-n.scrollStep));(a!==0||s!==0)&&(t.scroll({dx:a,dy:s}),this._scrolling=setTimeout(function(){r.startScroll(e)},n.scrollRepeatTimeout))};function Vmn(e,t,n){return t<e&&e<n}ZS.prototype.stopScroll=function(){clearTimeout(this._scrolling)};ZS.prototype.setOptions=function(e){this._opts=lt({},this._opts,e)};ZS.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=h_(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};const Gmn={__depends__:[em],__init__:["autoScroll"],autoScroll:["type",ZS]};function jX(e){this._commandStack=e.get("commandStack",!1)}jX.$inject=["injector"];jX.prototype.allowed=function(e,t){var n=!0,r=this._commandStack;return r&&(n=r.canExecute(e,t)),n===void 0?!0:n};const Ef={__init__:["rules"],rules:["type",jX]};var QO=Math.round,Wmn=Math.max;function Ymn(e,t){var n=e.x,r=e.y;return[["M",n,r],["m",0,-t],["a",t,t,0,1,1,0,2*t],["a",t,t,0,1,1,0,-2*t],["z"]]}function qmn(e){var t=[];return e.forEach(function(n,r){t.push([r===0?"M":"L",n.x,n.y])}),t}var q$e=10;function Kmn(e,t){var n,r;for(n=0;r=e[n];n++)if(OT(r,t)<=q$e)return{point:e[n],bendpoint:!0,index:n};return null}function Qmn(e,t){var n=fLe(Ymn(t,q$e),qmn(e)),r=n[0],i=n[n.length-1],o;return r?r!==i?r.segment2!==i.segment2?(o=Wmn(r.segment2,i.segment2)-1,{point:e[o],bendpoint:!0,index:o}):{point:{x:QO(r.x+i.x)/2,y:QO(r.y+i.y)/2},index:r.segment2}:{point:{x:QO(r.x),y:QO(r.y)},index:r.segment2}:null}function $V(e,t){return Kmn(e,t)||Qmn(e,t)}function K$e(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function Ghe(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function Xmn(e,t){return t?{x:Math.cos(t)*e.x-Math.sin(t)*e.y,y:Math.sin(t)*e.x+Math.cos(t)*e.y}:e}function Zmn(e,t,n){var r=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}],i=r[0].n*t[0]+r[1].n*t[1],o=r[0].lambda*t[0]+r[1].lambda*t[1];return-i/o}function HX(e,t){var n=t[0],r=t[1],i={x:r.x-n.x,y:r.y-n.y},o=Zmn([n.x,n.y],[i.x,i.y],[e.x,e.y]);return{x:n.x+o*i.x,y:n.y+o*i.y}}function Q$e(e,t){var n=HX(e,t),r={x:n.x-e.x,y:n.y-e.y};return K$e(r)}function MP(e,t){return K$e({x:e.x-t.x,y:e.y-t.y})}var X$e="djs-bendpoint",Z$e="djs-segment-dragger";function Jmn(e,t){var n=h_(t),r=e._container.getBoundingClientRect(),i;i={x:r.left,y:r.top};var o=e.viewbox();return{x:o.x+(n.x-i.x)/o.scale,y:o.y+(n.y-i.y)/o.scale}}function FV(e,t,n){var r=Jmn(e,n),i=$V(t,r);return i}function BV(e,t){var n=Bn("g");Dr(n).add(X$e),nr(e,n);var r=Bn("circle");Cn(r,{cx:0,cy:0,r:4}),Dr(r).add("djs-visual"),nr(n,r);var i=Bn("circle");return Cn(i,{cx:0,cy:0,r:10}),Dr(i).add("djs-hit"),nr(n,i),t&&Dr(n).add(t),n}function ehn(e,t,n,r){var i=Bn("g");nr(e,i);var o=18,a=6,s=11,l=nhn(t,n,r),c=a+s,u=Bn("rect");Cn(u,{x:-o/2,y:-a/2,width:o,height:a}),Dr(u).add("djs-visual"),nr(i,u);var d=Bn("rect");return Cn(d,{x:-l/2,y:-c/2,width:l,height:c}),Dr(d).add("djs-hit"),nr(i,d),TLe(i,r==="v"?90:0),i}function J$e(e,t,n){var r=Bn("g"),i=EV(t,n),o=ep(t,n);return nr(e,r),ehn(r,t,n,o),Dr(r).add(Z$e),Dr(r).add(o==="h"?"horizontal":"vertical"),Na(r,i.x,i.y),r}function UV(e){return Math.abs(Math.round(e*2/3))}function thn(e,t){var n=rhn(e,t);return HX(e,n)}function nhn(e,t,n){var r=t.x-e.x,i=t.y-e.y;return UV(n==="h"?r:i)}function rhn(e,t){for(var n=t.waypoints,r=1/0,i,o=0;o<n.length-1;o++){var a=n[o],s=n[o+1],l=Q$e(e,[a,s]);l<r&&(r=l,i=o)}return[n[i],n[i+1]]}function e3e(e,t,n,r,i){function o(b,S,C){var E=b.index,w=b.point,x,T,R,N,I,P;return E<=0||b.bendpoint?!1:(x=S[E-1],T=S[E],R=EV(x,T),N=ep(x,T),I=Math.abs(w.x-R.x),P=Math.abs(w.y-R.y),N&&I<=C&&P<=C)}function a(b,S){var C=b.waypoints,E,w,x,T;return S.index<=0||S.bendpoint||(E={start:C[S.index-1],end:C[S.index]},w=ep(E.start,E.end),!w)?null:(w==="h"?x=E.end.x-E.start.x:x=E.end.y-E.start.y,T=UV(x)/2,T)}function s(b,S){var C=S.waypoints,E=FV(t,C,b),w;if(E)return w=a(S,E),o(E,C,w)?i.start(b,S,E.index):r.start(b,S,E.index,!E.bendpoint),!0}function l(b,S,C){sr.bind(b,S,function(E){n.triggerMouseEvent(S,E,C),E.stopPropagation()})}function c(b,S){var C=t.getLayer("overlays"),E=fi('.djs-bendpoints[data-element-id="'+Uw(b.id)+'"]',C);return!E&&S&&(E=Bn("g"),Cn(E,{"data-element-id":b.id}),Dr(E).add("djs-bendpoints"),nr(C,E),l(E,"mousedown",b),l(E,"click",b),l(E,"dblclick",b)),E}function u(b,S){return fi('.djs-segment-dragger[data-segment-idx="'+b+'"]',S)}function d(b,S){S.waypoints.forEach(function(C,E){var w=BV(b);nr(b,w),Na(w,C.x,C.y)}),BV(b,"floating")}function f(b,S){for(var C=S.waypoints,E,w,x,T=1;T<C.length;T++)E=C[T-1],w=C[T],ep(E,w)&&(x=J$e(b,E,w),Cn(x,{"data-segment-idx":T}),l(x,"mousemove",S))}function p(b){Ze(yV("."+X$e,b),function(S){Vo(S)})}function h(b){Ze(yV("."+Z$e,b),function(S){Vo(S)})}function g(b){var S=c(b);return S||(S=c(b,!0),d(S,b),f(S,b)),S}function v(b){var S=c(b);S&&(h(S),p(S),f(S,b),d(S,b))}function y(b,S){var C=fi(".floating",b),E=S.point;C&&Na(C,E.x,E.y)}function _(b,S,C){var E=u(S.index,b),w=C[S.index-1],x=C[S.index],T=S.point,R=EV(w,x),N=ep(w,x),I,P;E&&(I=ihn(E),P={x:T.x-R.x,y:T.y-R.y},N==="v"&&(P={x:P.y,y:P.x}),Na(I,P.x,P.y))}e.on("connection.changed",function(b){v(b.element)}),e.on("connection.remove",function(b){var S=c(b.element);S&&Vo(S)}),e.on("element.marker.update",function(b){var S=b.element,C;S.waypoints&&(C=g(S),b.add?Dr(C).add(b.marker):Dr(C).remove(b.marker))}),e.on("element.mousemove",function(b){var S=b.element,C=S.waypoints,E,w;if(C){if(E=c(S,!0),w=FV(t,C,b.originalEvent),!w)return;y(E,w),w.bendpoint||_(E,w,C)}}),e.on("element.mousedown",function(b){if(eg(b)){var S=b.originalEvent,C=b.element;if(C.waypoints)return s(S,C)}}),e.on("selection.changed",function(b){var S=b.newSelection,C=S[0];C&&C.waypoints&&g(C)}),e.on("element.hover",function(b){var S=b.element;S.waypoints&&(g(S),n.registerEvent(b.gfx,"mousemove","element.mousemove"))}),e.on("element.out",function(b){n.unregisterEvent(b.gfx,"mousemove","element.mousemove")}),e.on("element.updateId",function(b){var S=b.element,C=b.newId;if(S.waypoints){var E=c(S);E&&Cn(E,{"data-element-id":C})}}),this.addHandles=g,this.updateHandles=v,this.getBendpointsContainer=c,this.getSegmentDragger=u}e3e.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];function ihn(e){return fi(".djs-visual",e)}var Whe=Math.round,Bg="reconnectStart",Ug="reconnectEnd",WE="updateWaypoints";function zX(e,t,n,r,i,o){this._injector=e,this.start=function(a,s,l,c){var u=n.getGraphics(s),d=s.source,f=s.target,p=s.waypoints,h;!c&&l===0?h=Bg:!c&&l===p.length-1?h=Ug:h=WE;var g=h===WE?"connection.updateWaypoints":"connection.reconnect",v=i.allowed(g,{connection:s,source:d,target:f});v===!1&&(v=i.allowed(g,{connection:s,source:f,target:d})),v!==!1&&r.init(a,"bendpoint.move",{data:{connection:s,connectionGfx:u,context:{allowed:v,bendpointIndex:l,connection:s,source:d,target:f,insert:c,type:h}}})},t.on("bendpoint.move.hover",function(a){var s=a.context,l=s.connection,c=l.source,u=l.target,d=a.hover,f=s.type;s.hover=d;var p;if(d){var h=f===WE?"connection.updateWaypoints":"connection.reconnect";if(p=s.allowed=i.allowed(h,{connection:l,source:f===Bg?d:c,target:f===Ug?d:u}),p){s.source=f===Bg?d:c,s.target=f===Ug?d:u;return}p===!1&&(p=s.allowed=i.allowed(h,{connection:l,source:f===Ug?d:u,target:f===Bg?d:c})),p&&(s.source=f===Ug?d:u,s.target=f===Bg?d:c)}}),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(a){var s=a.context,l=s.type;s.hover=null,s.source=null,s.target=null,l!==WE&&(s.allowed=!1)}),t.on("bendpoint.move.end",function(a){var s=a.context,l=s.allowed,c=s.bendpointIndex,u=s.connection,d=s.insert,f=u.waypoints.slice(),p=s.source,h=s.target,g=s.type,v=s.hints||{},y={x:Whe(a.x),y:Whe(a.y)};if(!l)return!1;g===WE?(d?f.splice(c,0,y):f[c]=y,v.bendpointMove={insert:d,bendpointIndex:c},f=this.cropWaypoints(u,f),o.updateWaypoints(u,Zcn(f),v)):(g===Bg?(v.docking="source",AP(s)&&(v.docking="target",v.newWaypoints=f.reverse())):g===Ug&&(v.docking="target",AP(s)&&(v.docking="source",v.newWaypoints=f.reverse())),o.reconnect(u,p,h,y,v))},this)}zX.$inject=["injector","eventBus","canvas","dragging","rules","modeling"];zX.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var r=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=r,t};function AP(e){var t=e.hover,n=e.source,r=e.target,i=e.type;if(i===Bg)return t&&r&&t===r&&n!==r;if(i===Ug)return t&&n&&t===n&&n!==r}var ohn="reconnectStart",ahn="reconnectEnd",Yhe="updateWaypoints",YE="connect-ok",XO="connect-not-ok",qhe="connect-hover",Khe="djs-updating",Qhe="djs-dragging",Xhe=1100;function t3e(e,t,n,r){this._injector=t;var i=t.get("connectionPreview",!1);n.on("bendpoint.move.start",function(o){var a=o.context,s=a.bendpointIndex,l=a.connection,c=a.insert,u=l.waypoints,d=u.slice();a.waypoints=u,c&&d.splice(s,0,{x:o.x,y:o.y}),l.waypoints=d;var f=a.draggerGfx=BV(r.getLayer("overlays"));Dr(f).add("djs-dragging"),r.addMarker(l,Qhe),r.addMarker(l,Khe)}),n.on("bendpoint.move.hover",function(o){var a=o.context,s=a.allowed,l=a.hover,c=a.type;if(l){if(r.addMarker(l,qhe),c===Yhe)return;s?(r.removeMarker(l,XO),r.addMarker(l,YE)):s===!1&&(r.removeMarker(l,YE),r.addMarker(l,XO))}}),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],Xhe,function(o){var a=o.context,s=a.hover,l=a.target;s&&(r.removeMarker(s,qhe),r.removeMarker(s,l?YE:XO))}),n.on("bendpoint.move.move",function(o){var a=o.context,s=a.allowed,l=a.bendpointIndex,c=a.draggerGfx,u=a.hover,d=a.type,f=a.connection,p=f.source,h=f.target,g=f.waypoints.slice(),v={x:o.x,y:o.y},y=a.hints||{},_={};i&&(y.connectionStart&&(_.connectionStart=y.connectionStart),y.connectionEnd&&(_.connectionEnd=y.connectionEnd),d===ohn?AP(a)?(_.connectionEnd=_.connectionEnd||v,_.source=h,_.target=u||p,g=g.reverse()):(_.connectionStart=_.connectionStart||v,_.source=u||p,_.target=h):d===ahn?AP(a)?(_.connectionStart=_.connectionStart||v,_.source=u||h,_.target=p,g=g.reverse()):(_.connectionEnd=_.connectionEnd||v,_.source=p,_.target=u||h):(_.noCropping=!0,_.noLayout=!0,g[l]=v),d===Yhe&&(g=e.cropWaypoints(f,g)),_.waypoints=g,i.drawPreview(a,s,_)),Na(c,o.x,o.y)},this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],Xhe,function(o){var a=o.context,s=a.connection,l=a.draggerGfx,c=a.hover,u=a.target,d=a.waypoints;s.waypoints=d,Vo(l),r.removeMarker(s,Khe),r.removeMarker(s,Qhe),c&&(r.removeMarker(c,YE),r.removeMarker(c,u?YE:XO)),i&&i.cleanUp(a)})}t3e.$inject=["bendpointMove","injector","eventBus","canvas"];var Zhe="connect-hover",Jhe="djs-updating";function ege(e,t,n){return VX(e,t,e[t]+n)}function VX(e,t,n){return{x:t==="x"?n:e.x,y:t==="y"?n:e.y}}function shn(e,t,n,r){var i=Math.max(t[r],n[r]),o=Math.min(t[r],n[r]),a=20,s=Math.min(Math.max(o+a,e[r]),i-a);return VX(t,r,s)}function n3e(e){return e==="x"?"y":"x"}function tge(e,t,n){var r,i;return e.original?e.original:(r=er(t),i=n3e(n),VX(e,i,r[i]))}function r3e(e,t,n,r,i,o){var a=e.get("connectionDocking",!1);this.start=function(d,f,p){var h,g=n.getGraphics(f),v=p-1,y=p,_=f.waypoints,b=_[v],S=_[y],C=FV(n,_,d),E,w,x;E=ep(b,S),E&&(w=E==="v"?"x":"y",v===0&&(b=tge(b,f.source,w)),y===_.length-1&&(S=tge(S,f.target,w)),C?x=C.point:x={x:(b.x+S.x)/2,y:(b.y+S.y)/2},h={connection:f,segmentStartIndex:v,segmentEndIndex:y,segmentStart:b,segmentEnd:S,axis:w,dragPosition:x},r.init(d,x,"connectionSegment.move",{cursor:w==="x"?"resize-ew":"resize-ns",data:{connection:f,connectionGfx:g,context:h}}))};function s(d,f){if(!a)return f;var p=d.waypoints,h;return d.waypoints=f,h=a.getCroppedWaypoints(d),d.waypoints=p,h}function l(d){i.update("connection",d.connection,d.connectionGfx)}function c(d,f,p){var h=d.newWaypoints,g=d.segmentStartIndex+f,v=h[g],y=d.segmentEndIndex+f,_=h[y],b=n3e(d.axis),S=shn(p,v,_,b);Na(d.draggerGfx,S.x,S.y)}function u(d,f){var p=0,h=d.filter(function(g,v){return hX(d[v-1],d[v+1],g)?(p=v<=f?p-1:p,!1):!0});return{waypoints:h,segmentOffset:p}}t.on("connectionSegment.move.start",function(d){var f=d.context,p=d.connection,h=n.getLayer("overlays");f.originalWaypoints=p.waypoints.slice(),f.draggerGfx=J$e(h,f.segmentStart,f.segmentEnd),Dr(f.draggerGfx).add("djs-dragging"),n.addMarker(p,Jhe)}),t.on("connectionSegment.move.move",function(d){var f=d.context,p=f.connection,h=f.segmentStartIndex,g=f.segmentEndIndex,v=f.segmentStart,y=f.segmentEnd,_=f.axis,b=f.originalWaypoints.slice(),S=ege(v,_,d["d"+_]),C=ege(y,_,d["d"+_]),E=b.length,w=0;b[h]=S,b[g]=C;var x,T;h<2&&(x=Ka(p.source,S),h===1?x==="intersect"&&(b.shift(),b[0]=S,w--):x!=="intersect"&&(b.unshift(v),w++)),g>E-3&&(T=Ka(p.target,C),g===E-2?T==="intersect"&&(b.pop(),b[b.length-1]=C):T!=="intersect"&&b.push(y)),f.newWaypoints=p.waypoints=s(p,b),c(f,w,d),f.newSegmentStartIndex=h+w,l(d)}),t.on("connectionSegment.move.hover",function(d){d.context.hover=d.hover,n.addMarker(d.hover,Zhe)}),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(d){var f=d.context.hover;f&&n.removeMarker(f,Zhe)}),t.on("connectionSegment.move.cleanup",function(d){var f=d.context,p=f.connection;f.draggerGfx&&Vo(f.draggerGfx),n.removeMarker(p,Jhe)}),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(d){var f=d.context,p=f.connection;p.waypoints=f.originalWaypoints,l(d)}),t.on("connectionSegment.move.end",function(d){var f=d.context,p=f.connection,h=f.newWaypoints,g=f.newSegmentStartIndex;h=h.map(function(C){return{original:C.original,x:Math.round(C.x),y:Math.round(C.y)}});var v=u(h,g),y=v.waypoints,_=s(p,y),b=v.segmentOffset,S={segmentMove:{segmentStartIndex:f.segmentStartIndex,newSegmentStartIndex:g+b}};o.updateWaypoints(p,_,S)})}r3e.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var lhn=Math.abs,nge=Math.round;function chn(e,t,n){n=n===void 0?10:n;var r,i;for(r=0;r<t.length;r++)if(i=t[r],lhn(i-e)<=n)return i}function i3e(e){return{x:e.x,y:e.y}}function o3e(e){return{x:e.x+e.width,y:e.y+e.height}}function jc(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:nge(e.x+e.width/2),y:nge(e.y+e.height/2)}}function B0(e,t){var n=e.snapped;return n?typeof t=="string"?n[t]:n.x&&n.y:!1}function Ro(e,t,n){if(typeof t!="string")throw new Error("axis must be in [x, y]");if(typeof n!="number"&&n!==!1)throw new Error("value must be Number or false");var r,i=e[t],o=e.snapped=e.snapped||{};return n===!1?o[t]=!1:(o[t]=!0,r=n-i,e[t]+=r,e["d"+t]+=r),i}function a3e(e){return e.children||[]}var uhn=Math.abs,rge=Math.round,cU=10;function s3e(e){function t(o,a){if(lr(o)){for(var s=o.length;s--;)if(uhn(o[s]-a)<=cU)return o[s]}else{o=+o;var l=a%o;if(l<cU)return a-l;if(l>o-cU)return a-l+o}return a}function n(o,a){if(o.waypoints)return thn(a,o);if(o.width)return{x:rge(o.width/2+o.x),y:rge(o.height/2+o.y)}}function r(o){var a=o.context,s=a.snapPoints,l=a.connection,c=l.waypoints,u=a.segmentStart,d=a.segmentStartIndex,f=a.segmentEnd,p=a.segmentEndIndex,h=a.axis;if(s)return s;var g=[c[d-1],u,f,c[p+1]];return d<2&&g.unshift(n(l.source,o)),p>c.length-3&&g.unshift(n(l.target,o)),a.snapPoints=s={horizontal:[],vertical:[]},Ze(g,function(v){v&&(v=v.original||v,h==="y"&&s.horizontal.push(v.y),h==="x"&&s.vertical.push(v.x))}),s}e.on("connectionSegment.move.move",1500,function(o){var a=r(o),s=o.x,l=o.y,c,u;if(a){c=t(a.vertical,s),u=t(a.horizontal,l);var d=s-c,f=l-u;lt(o,{dx:o.dx-d,dy:o.dy-f,x:c,y:u}),(d||a.vertical.indexOf(s)!==-1)&&Ro(o,"x",c),(f||a.horizontal.indexOf(l)!==-1)&&Ro(o,"y",u)}});function i(o){var a=o.snapPoints,s=o.connection.waypoints,l=o.bendpointIndex;if(a)return a;var c=[s[l-1],s[l+1]];return o.snapPoints=a={horizontal:[],vertical:[]},Ze(c,function(u){u&&(u=u.original||u,a.horizontal.push(u.y),a.vertical.push(u.x))}),a}e.on(["connect.hover","connect.move","connect.end"],1500,function(o){var a=o.context,s=a.hover,l=s&&n(s,o);!pi(s)||!l||!l.x||!l.y||(Ro(o,"x",l.x),Ro(o,"y",l.y))}),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(o){var a=o.context,s=i(a),l=a.hover,c=l&&n(l,o),u=o.x,d=o.y,f,p;if(s){f=t(c?s.vertical.concat([c.x]):s.vertical,u),p=t(c?s.horizontal.concat([c.y]):s.horizontal,d);var h=u-f,g=d-p;lt(o,{dx:o.dx-h,dy:o.dy-g,x:o.x-h,y:o.y-g}),(h||s.vertical.indexOf(u)!==-1)&&Ro(o,"x",f),(g||s.horizontal.indexOf(d)!==-1)&&Ro(o,"y",p)}})}s3e.$inject=["eventBus"];const dhn={__depends__:[em,Ef],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",e3e],bendpointMove:["type",zX],bendpointMovePreview:["type",t3e],connectionSegmentMove:["type",r3e],bendpointSnapping:["type",s3e]};function l3e(e,t,n,r){function i(a,s){return r.allowed("connection.create",{source:a,target:s})}function o(a,s){return i(s,a)}e.on("connect.hover",function(a){var s=a.context,l=s.start,c=a.hover,u;if(s.hover=c,u=s.canExecute=i(l,c),!$w(u)){if(u!==!1){s.source=l,s.target=c;return}u=s.canExecute=o(l,c),!$w(u)&&u!==!1&&(s.source=c,s.target=l)}}),e.on(["connect.out","connect.cleanup"],function(a){var s=a.context;s.hover=null,s.source=null,s.target=null,s.canExecute=!1}),e.on("connect.end",function(a){var s=a.context,l=s.canExecute,c=s.connectionStart,u={x:a.x,y:a.y},d=s.source,f=s.target;if(!l)return!1;var p=null,h={connectionStart:jV(s)?u:c,connectionEnd:jV(s)?c:u};ba(l)&&(p=l),s.connection=n.connect(d,f,p,h)}),this.start=function(a,s,l,c){ba(l)||(c=l,l=er(s)),t.init(a,"connect",{autoActivate:c,data:{shape:s,context:{start:s,connectionStart:l}}})}}l3e.$inject=["eventBus","dragging","modeling","rules"];function jV(e){var t=e.hover,n=e.source,r=e.target;return t&&n&&t===n&&n!==r}var fhn=1100,phn=900,ige="connect-ok",oge="connect-not-ok";function c3e(e,t,n){var r=e.get("connectionPreview",!1);r&&t.on("connect.move",function(i){var o=i.context,a=o.canExecute,s=o.hover,l=o.source,c=o.start,u=o.startPosition,d=o.target,f=o.connectionStart||u,p=o.connectionEnd||{x:i.x,y:i.y},h=f,g=p;jV(o)&&(h=p,g=f),r.drawPreview(o,a,{source:l||c,target:d||s,connectionStart:h,connectionEnd:g})}),t.on("connect.hover",phn,function(i){var o=i.context,a=i.hover,s=o.canExecute;s!==null&&n.addMarker(a,s?ige:oge)}),t.on(["connect.out","connect.cleanup"],fhn,function(i){var o=i.hover;o&&(n.removeMarker(o,ige),n.removeMarker(o,oge))}),r&&t.on("connect.cleanup",function(i){r.cleanUp(i.context)})}c3e.$inject=["injector","eventBus","canvas"];const GX={__depends__:[bd,Ef,em],__init__:["connectPreview"],connect:["type",l3e],connectPreview:["type",c3e]};var mhn="djs-dragger";function tm(e,t,n,r){this._canvas=t,this._graphicsFactory=n,this._elementFactory=r,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}tm.$inject=["injector","canvas","graphicsFactory","elementFactory"];tm.prototype.drawPreview=function(e,t,n){n=n||{};var r=e.connectionPreviewGfx,i=e.getConnection,o=n.source,a=n.target,s=n.waypoints,l=n.connectionStart,c=n.connectionEnd,u=n.noLayout,d=n.noCropping,f=n.noNoop,p,h=this;if(r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),i$(r),i||(i=e.getConnection=hhn(function(g,v,y){return h.getConnection(g,v,y)})),t&&(p=i(t,o,a)),!p){!f&&this.drawNoopPreview(r,n);return}p.waypoints=s||[],this._layouter&&!u&&(p.waypoints=this._layouter.layoutConnection(p,{source:o,target:a,connectionStart:l,connectionEnd:c,waypoints:n.waypoints||p.waypoints})),(!p.waypoints||!p.waypoints.length)&&(p.waypoints=[o?er(o):l,a?er(a):c]),this._connectionDocking&&(o||a)&&!d&&(p.waypoints=this._connectionDocking.getCroppedWaypoints(p,o,a)),this._graphicsFactory.drawConnection(r,p,{stroke:"var(--element-dragger-color)"})};tm.prototype.drawNoopPreview=function(e,t){var n=t.source,r=t.target,i=t.connectionStart||er(n),o=t.connectionEnd||er(r),a=this.cropWaypoints(i,o,n,r),s=this.createNoopConnection(a[0],a[1]);nr(e,s)};tm.prototype.cropWaypoints=function(e,t,n,r){var i=this._graphicsFactory,o=n&&i.getShapePath(n),a=r&&i.getShapePath(r),s=i.getConnectionPath({waypoints:[e,t]});return e=n&&wV(o,s,!0)||e,t=r&&wV(a,s,!1)||t,[e,t]};tm.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Vo(e.connectionPreviewGfx)};tm.prototype.getConnection=function(e){var t=ghn(e);return this._elementFactory.createConnection(t)};tm.prototype.createConnectionPreviewGfx=function(){var e=Bn("g");return Cn(e,{pointerEvents:"none"}),Dr(e).add(mhn),nr(this._canvas.getActiveLayer(),e),e};tm.prototype.createNoopConnection=function(e,t){return o$([e,t],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};function hhn(e){var t={};return function(n){var r=JSON.stringify(n),i=t[r];return i||(i=t[r]=e.apply(null,arguments)),i}}function ghn(e){return ba(e)?e:{}}const vhn={__init__:["connectionPreview"],connectionPreview:["type",tm]},_hn=new DT("ps");var yhn=["marker-start","marker-mid","marker-end"],bhn=["circle","ellipse","line","path","polygon","polyline","path","rect"];function ng(e,t,n,r){this._elementRegistry=e,this._canvas=n,this._styles=r}ng.$inject=["elementRegistry","eventBus","canvas","styles"];ng.prototype.cleanUp=function(){console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906")};ng.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)};ng.prototype.addDragger=function(e,t,n,r="djs-dragger"){n=n||this.getGfx(e);var i=rLe(n),o=n.getBoundingClientRect();return this._cloneMarkers(Pv(i),r),Cn(i,this._styles.cls(r,[],{x:o.top,y:o.left})),nr(t,i),Cn(i,"data-preview-support-element-id",e.id),i};ng.prototype.addFrame=function(e,t){var n=Bn("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return nr(t,n),Cn(n,"data-preview-support-element-id",e.id),n};ng.prototype._cloneMarkers=function(e,t="djs-dragger",n=e){var r=this;e.childNodes&&e.childNodes.forEach(i=>{r._cloneMarkers(i,t,n)}),whn(e)&&yhn.forEach(function(i){if(Cn(e,i)){var o=Shn(e,i,r._canvas.getContainer());o&&r._cloneMarker(n,e,o,i,t)}})};ng.prototype._cloneMarker=function(e,t,n,r,i="djs-dragger"){var o=[n.id,i,_hn.next()].join("-"),a=fi("marker#"+n.id,e);e=e||this._canvas._svg;var s=a||rLe(n);s.id=o,Dr(s).add(i);var l=fi(":scope > defs",e);l||(l=Bn("defs"),nr(e,l)),nr(l,s);var c=Chn(s.id);Cn(t,r,c)};function Shn(e,t,n){var r=Ehn(Cn(e,t));return fi("marker#"+r,n||document)}function Ehn(e){return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function Chn(e){return"url(#"+e+")"}function whn(e){return bhn.indexOf(e.nodeName)!==-1}const JS={__init__:["previewSupport"],previewSupport:["type",ng]},ZO="complex-preview";class u3e{constructor(t,n,r){this._canvas=t,this._graphicsFactory=n,this._previewSupport=r,this._markers=[]}create(t){this.cleanUp();const{created:n=[],moved:r=[],removed:i=[],resized:o=[]}=t,a=this._canvas.getLayer(ZO);n.filter(s=>!xhn(s)).forEach(s=>{let l;pi(s)?(l=this._graphicsFactory._createContainer("connection",Bn("g")),this._graphicsFactory.drawConnection(Pv(l),s)):(l=this._graphicsFactory._createContainer("shape",Bn("g")),this._graphicsFactory.drawShape(Pv(l),s),Na(l,s.x,s.y)),this._previewSupport.addDragger(s,a,l)}),r.forEach(({element:s,delta:l})=>{this._previewSupport.addDragger(s,a,void 0,"djs-dragging"),this._canvas.addMarker(s,"djs-element-hidden"),this._markers.push([s,"djs-element-hidden"]);const c=this._previewSupport.addDragger(s,a);pi(s)?Na(c,l.x,l.y):Na(c,s.x+l.x,s.y+l.y)}),i.forEach(s=>{this._previewSupport.addDragger(s,a,void 0,"djs-dragging"),this._canvas.addMarker(s,"djs-element-hidden"),this._markers.push([s,"djs-element-hidden"])}),o.forEach(({shape:s,bounds:l})=>{this._canvas.addMarker(s,"djs-hidden"),this._markers.push([s,"djs-hidden"]),this._previewSupport.addDragger(s,a,void 0,"djs-dragging");const c=this._graphicsFactory._createContainer("shape",Bn("g"));this._graphicsFactory.drawShape(Pv(c),s,{width:l.width,height:l.height}),Na(c,l.x,l.y),this._previewSupport.addDragger(s,a,c)})}cleanUp(){i$(this._canvas.getLayer(ZO)),this._markers.forEach(([t,n])=>this._canvas.removeMarker(t,n)),this._markers=[]}show(){this._canvas.showLayer(ZO)}hide(){this._canvas.hideLayer(ZO)}}u3e.$inject=["canvas","graphicsFactory","previewSupport"];function xhn(e){return e.hidden}const Thn={__depends__:[JS],__init__:["complexPreview"],complexPreview:["type",u3e]};var WX=["top","bottom","left","right"],JO=10;function YX(e,t){Jt.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(i){var o=i.context,a=o.connection,s=a.source,l=a.target,c=o.hints||{};c.createElementsBehavior!==!1&&(n(s),n(l))}),this.postExecuted(["label.create"],function(i){var o=i.context,a=o.shape,s=o.hints||{};s.createElementsBehavior!==!1&&n(a.labelTarget)}),this.postExecuted(["elements.create"],function(i){var o=i.context,a=o.elements,s=o.hints||{};s.createElementsBehavior!==!1&&a.forEach(function(l){n(l)})});function n(i){if(d$(i)&&!pi(i)){var o=Ihn(i);o&&r(i,o)}}function r(i,o){var a=er(i),s=i.label,l=er(s);if(s.parent){var c=Gn(i),u;switch(o){case"top":u={x:a.x,y:c.top-JO-s.height/2};break;case"left":u={x:c.left-JO-s.width/2,y:a.y};break;case"bottom":u={x:a.x,y:c.bottom+JO+s.height/2};break;case"right":u={x:c.right+JO+s.width/2,y:a.y};break}var d=Zu(u,l);t.moveShape(s,d)}}}Rn(YX,Jt);YX.$inject=["eventBus","modeling"];function Rhn(e){var t=e.host,n=er(e),r=Ka(n,t),i;r.indexOf("-")>=0?i=r.split("-"):i=[r];var o=WX.filter(function(a){return i.indexOf(a)===-1});return o}function Ohn(e){var t=er(e),n=[].concat(e.incoming.map(function(r){return r.waypoints[r.waypoints.length-2]}),e.outgoing.map(function(r){return r.waypoints[1]})).map(function(r){return d3e(t,r)});return n}function Ihn(e){var t=er(e.label),n=er(e),r=d3e(n,t);if(Nhn(r)){var i=Ohn(e);if(e.host){var o=Rhn(e);i=i.concat(o)}var a=WX.filter(function(s){return i.indexOf(s)===-1});if(a.indexOf(r)===-1)return a[0]}}function d3e(e,t){return Ka(t,e,5)}function Nhn(e){return WX.indexOf(e)!==-1}function qX(e){Jt.call(this,e),this.preExecute("shape.append",function(t){var n=t.source,r=t.shape;t.position||(Ne(r,"bpmn:TextAnnotation")?t.position={x:n.x+n.width/2+75,y:n.y-50-r.height/2}:t.position={x:n.x+n.width+80+r.width/2,y:n.y+n.height/2})},!0)}Rn(qX,Jt);qX.$inject=["eventBus"];function KX(e,t){e.invoke(Jt,this),this.postExecute("shape.move",function(n){var r=n.newParent,i=n.shape,o=Cr(i.incoming.concat(i.outgoing),function(a){return Ne(a,"bpmn:Association")});Ze(o,function(a){t.moveConnection(a,{x:0,y:0},r)})},!0)}Rn(KX,Jt);KX.$inject=["injector","modeling"];var age=500;function w$(e,t){t.invoke(Jt,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",age,function(r){var i=r.elements;i=i.filter(function(o){var a=o.host;return sge(o,a)}),i.length===1&&i.map(function(o){return i.indexOf(o)}).forEach(function(o){var a=i[o];r.elements[o]=n._replaceShape(i[o],a)})},!0),this.preExecute("elements.move",age,function(r){var i=r.shapes,o=r.newHost;if(i.length===1){var a=i[0];sge(a,o)&&(r.shapes=[n._replaceShape(a,o)])}},!0)}w$.$inject=["bpmnReplace","injector"];Rn(w$,Jt);w$.prototype._replaceShape=function(e,t){var n=Mhn(e),r={type:"bpmn:BoundaryEvent",host:t};return n&&(r.eventDefinitionType=n.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function Mhn(e){var t=sn(e),n=t.eventDefinitions;return n&&n[0]}function sge(e,t){return!Lr(e)&&br(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}function QX(e,t){Jt.call(this,e);function n(r){return Cr(r.attachers,function(i){return Ne(i,"bpmn:BoundaryEvent")})}this.postExecute("connection.create",function(r){var i=r.context.source,o=r.context.target,a=n(o);Ne(i,"bpmn:EventBasedGateway")&&Ne(o,"bpmn:ReceiveTask")&&a.length>0&&t.removeElements(a)}),this.postExecute("connection.reconnect",function(r){var i=r.context.oldSource,o=r.context.newSource;Ne(i,"bpmn:Gateway")&&Ne(o,"bpmn:EventBasedGateway")&&Ze(o.outgoing,function(a){var s=a.target,l=n(s);Ne(s,"bpmn:ReceiveTask")&&l.length>0&&t.removeElements(l)})})}QX.$inject=["eventBus","modeling"];Rn(QX,Jt);function XX(e,t,n){Jt.call(this,e),this.preExecute("shape.replace",s,!0),this.postExecuted("shape.replace",l,!0),this.preExecute("connection.create",i,!0),this.postExecuted("connection.delete",r,!0),this.postExecuted("connection.reconnect",o,!0),this.postExecuted("element.updateProperties",a,!0);function r(v){const y=v.source,_=v.target;My(y)&&qE(_)&&u(_)}function i(v){const y=v.connection,_=v.source,b=v.target;My(_)&&eI(b)&&(c(b),f(_,[y]))}function o(v){const y=v.newTarget,_=v.oldSource,b=v.oldTarget;if(b!==y){const S=_;qE(b)&&u(b),My(S)&&eI(y)&&c(y)}}function a(v){const{element:y}=v;qE(y)?(d(y),p(y)):eI(y)&&h(y)}function s(v){const{newData:y,oldShape:_}=v;if(My(v.oldShape)&&y.eventDefinitionType!=="bpmn:CompensateEventDefinition"||y.type!=="bpmn:BoundaryEvent"){const b=_.outgoing.find(({target:S})=>qE(S));b&&b.target&&(v._connectionTarget=b.target)}else if(!My(v.oldShape)&&y.eventDefinitionType==="bpmn:CompensateEventDefinition"&&y.type==="bpmn:BoundaryEvent"){const b=_.outgoing.find(({target:S})=>eI(S));b&&b.target&&(v._connectionTarget=b.target),g(_)}}function l(v){const{_connectionTarget:y,newShape:_}=v;y&&t.connect(_,y)}function c(v){t.updateProperties(v,{isForCompensation:!0})}function u(v){t.updateProperties(v,{isForCompensation:void 0})}function d(v){for(const y of v.incoming)n.canConnect(y.source,v)||t.removeConnection(y);for(const y of v.outgoing)n.canConnect(v,y.target)||t.removeConnection(y)}function f(v,y){v.outgoing.filter(S=>Ne(S,"bpmn:Association")).filter(S=>qE(S.target)&&!y.includes(S)).forEach(S=>t.removeConnection(S))}function p(v){const y=v.attachers.slice();y.length&&t.removeElements(y)}function h(v){const y=v.incoming.filter(_=>My(_.source));t.removeElements(y)}function g(v){const y=v.outgoing.filter(_=>Ne(_,"bpmn:SequenceFlow"));t.removeElements(y)}}Rn(XX,Jt);XX.$inject=["eventBus","modeling","bpmnRules"];function qE(e){const t=sn(e);return t&&t.get("isForCompensation")}function My(e){return e&&Ne(e,"bpmn:BoundaryEvent")&&GS(e,"bpmn:CompensateEventDefinition")}function eI(e){return e&&Ne(e,"bpmn:Activity")&&!gs(e)}function ZX(e){e.invoke(Jt,this),this.preExecute("shape.create",1500,function(t){var n=t.context,r=n.parent,i=n.shape;Ne(r,"bpmn:Lane")&&!Ne(i,"bpmn:Lane")&&(n.parent=F0(r,"bpmn:Participant"))})}ZX.$inject=["injector"];Rn(ZX,Jt);function JX(e,t){Jt.call(this,e),this.preExecute("shape.create",function(n){var r=n.context,i=r.shape;if(Ne(i,"bpmn:DataObjectReference")&&i.type!=="label"){var o=t.create("bpmn:DataObject");i.businessObject.dataObjectRef=o}})}JX.$inject=["eventBus","bpmnFactory"];Rn(JX,Jt);var HV=20,zV=20,f3e=30,tI=2e3;function eZ(e,t,n){Jt.call(this,t),t.on(["create.start","shape.move.start"],tI,function(i){var o=i.context,a=o.shape,s=e.getRootElement();if(!(!Ne(a,"bpmn:Participant")||!Ne(s,"bpmn:Process")||!s.children.length)){var l=s.children.filter(function(d){return!Ne(d,"bpmn:Group")&&!Lr(d)&&!pi(d)});if(l.length){var c=oa(l),u=Ahn(a,c);lt(a,u),o.createConstraints=Phn(a,c)}}}),t.on("create.start",tI,function(i){var o=i.context,a=o.shape,s=e.getRootElement(),l=e.getGraphics(s);function c(u){u.element=s,u.gfx=l}Ne(a,"bpmn:Participant")&&Ne(s,"bpmn:Process")&&(t.on("element.hover",tI,c),t.once("create.cleanup",function(){t.off("element.hover",c)}))});function r(){var i=e.getRootElement();return Ne(i,"bpmn:Collaboration")?i:n.makeCollaboration()}this.preExecute("elements.create",tI,function(i){var o=i.elements,a=i.parent,s=Dhn(o),l;s&&Ne(a,"bpmn:Process")&&(i.parent=r(),l=i.hints=i.hints||{},l.participant=s,l.process=a,l.processRef=sn(s).get("processRef"))},!0),this.preExecute("shape.create",function(i){var o=i.parent,a=i.shape;Ne(a,"bpmn:Participant")&&Ne(o,"bpmn:Process")&&(i.parent=r(),i.process=o,i.processRef=sn(a).get("processRef"))},!0),this.execute("shape.create",function(i){var o=i.hints||{},a=i.process||o.process,s=i.shape,l=o.participant;a&&(!l||s===l)&&sn(s).set("processRef",sn(a))},!0),this.revert("shape.create",function(i){var o=i.hints||{},a=i.process||o.process,s=i.processRef||o.processRef,l=i.shape,c=o.participant;a&&(!c||l===c)&&sn(l).set("processRef",s)},!0),this.postExecute("shape.create",function(i){var o=i.hints||{},a=i.process||i.hints.process,s=i.shape,l=o.participant;if(a){var c=a.children.slice();l?s===l&&n.moveElements(c,{x:0,y:0},l):n.moveElements(c,{x:0,y:0},s)}},!0)}eZ.$inject=["canvas","eventBus","modeling"];Rn(eZ,Jt);function Ahn(e,t){t={width:t.width+HV*2+f3e,height:t.height+zV*2};var n=Math.max(e.width,t.width),r=Math.max(e.height,t.height);return{x:-n/2,y:-r/2,width:n,height:r}}function Phn(e,t){return t=Gn(t),{bottom:t.top+e.height/2-zV,left:t.right-e.width/2+HV,top:t.bottom-e.height/2+zV,right:t.left+e.width/2-HV-f3e}}function Dhn(e){return Br(e,function(t){return Ne(t,"bpmn:Participant")})}var lge="__targetRef_placeholder";function tZ(e,t){Jt.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],cge(o)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],cge(o));function n(a,s,l){var c=a.get("dataInputAssociations");return Br(c,function(u){return u!==l&&u.targetRef===s})}function r(a,s){var l=a.get("properties"),c=Br(l,function(u){return u.name===lge});return!c&&s&&(c=t.create("bpmn:Property",{name:lge}),Xo(l,c)),c}function i(a,s){var l=r(a);l&&(n(a,l,s)||Io(a.get("properties"),l))}function o(a){var s=a.context,l=s.connection,c=l.businessObject,u=l.target,d=u&&u.businessObject,f=s.newTarget,p=f&&f.businessObject,h=s.oldTarget||s.target,g=h&&h.businessObject,v=l.businessObject,y;g&&g!==d&&i(g,c),p&&p!==d&&i(p,c),d?(y=r(d,!0),v.targetRef=y):v.targetRef=null}}tZ.$inject=["eventBus","bpmnFactory"];Rn(tZ,Jt);function cge(e){return function(t){var n=t.context,r=n.connection;if(Ne(r,"bpmn:DataInputAssociation"))return e(t)}}function x$(e){this._bpmnUpdater=e}x$.$inject=["bpmnUpdater"];x$.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,r=e.newSemanticParent,i=e.newDiParent;return e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,r),this._bpmnUpdater.updateDiParent(n,i),[]};x$.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,r=e.oldSemanticParent,i=e.oldDiParent;return this._bpmnUpdater.updateSemanticParent(t,r),this._bpmnUpdater.updateDiParent(n,i),[]};function nZ(e,t,n,r){Jt.call(this,r),t.registerHandler("dataStore.updateContainment",x$);function i(){return n.filter(function(s){return Ne(s,"bpmn:Participant")&&sn(s).processRef})[0]}function o(s){return s.children.filter(function(l){return Ne(l,"bpmn:DataStoreReference")&&!l.labelTarget})}function a(s,l){var c=s.businessObject||s;if(l=l||i(),l){var u=l.businessObject||l;t.execute("dataStore.updateContainment",{dataStoreBo:c,dataStoreDi:kr(s),newSemanticParent:u.processRef||u,newDiParent:kr(l)})}}this.preExecute("shape.create",function(s){var l=s.context,c=l.shape;Ne(c,"bpmn:DataStoreReference")&&c.type!=="label"&&(l.hints||(l.hints={}),l.hints.autoResize=!1)}),this.preExecute("elements.move",function(s){var l=s.context,c=l.shapes,u=c.filter(function(d){return Ne(d,"bpmn:DataStoreReference")});u.length&&(l.hints||(l.hints={}),l.hints.autoResize=c.filter(function(d){return!Ne(d,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(s){var l=s.context,c=l.shape,u=c.parent;Ne(c,"bpmn:DataStoreReference")&&c.type!=="label"&&Ne(u,"bpmn:Collaboration")&&a(c)}),this.postExecute("shape.move",function(s){var l=s.context,c=l.shape,u=l.oldParent,d=c.parent;if(!Ne(u,"bpmn:Collaboration")&&Ne(c,"bpmn:DataStoreReference")&&c.type!=="label"&&Ne(d,"bpmn:Collaboration")){var f=Ne(u,"bpmn:Participant")?u:Lhn(u,"bpmn:Participant");a(c,f)}}),this.postExecute("shape.delete",function(s){var l=s.context,c=l.shape,u=e.getRootElement();br(c,["bpmn:Participant","bpmn:SubProcess"])&&Ne(u,"bpmn:Collaboration")&&o(u).filter(function(d){return khn(d,c)}).forEach(function(d){a(d)})}),this.postExecute("canvas.updateRoot",function(s){var l=s.context,c=l.oldRoot,u=l.newRoot,d=o(c);d.forEach(function(f){Ne(u,"bpmn:Process")&&a(f,u)})})}nZ.$inject=["canvas","commandStack","elementRegistry","eventBus"];Rn(nZ,Jt);function khn(e,t){for(var n=e.businessObject||e,r=t.businessObject||t;n.$parent;){if(n.$parent===r.processRef||r)return!0;n=n.$parent}return!1}function Lhn(e,t){for(;e.parent;){if(Ne(e.parent,t))return e.parent;e=e.parent}}var PP=Math.max,DP=Math.min,$hn=20;function p3e(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function Fhn(e,t,n){var r=n.x,i=n.y,o={x:e.x,y:e.y,width:e.width,height:e.height};return t.indexOf("n")!==-1?(o.y=e.y+i,o.height=e.height-i):t.indexOf("s")!==-1&&(o.height=e.height+i),t.indexOf("e")!==-1?o.width=e.width+r:t.indexOf("w")!==-1&&(o.x=e.x+r,o.width=e.width-r),o}function Bhn(e,t){return{x:e.x+(t.left||0),y:e.y+(t.top||0),width:e.width-(t.left||0)+(t.right||0),height:e.height-(t.top||0)+(t.bottom||0)}}function nI(e,t,n){var r=t[e],i=n.min&&n.min[e],o=n.max&&n.max[e];return Jn(i)&&(r=(/top|left/.test(e)?DP:PP)(r,i)),Jn(o)&&(r=(/top|left/.test(e)?PP:DP)(r,o)),r}function Uhn(e,t){if(!t)return e;var n=Gn(e);return s$({top:nI("top",n,t),right:nI("right",n,t),bottom:nI("bottom",n,t),left:nI("left",n,t)})}function jhn(e,t,n,r){var i=Gn(t),o={top:/n/.test(e)?i.bottom-n.height:i.top,left:/w/.test(e)?i.right-n.width:i.left,bottom:/s/.test(e)?i.top+n.height:i.bottom,right:/e/.test(e)?i.left+n.width:i.right},a=r?Gn(r):o,s={top:DP(o.top,a.top),left:DP(o.left,a.left),bottom:PP(o.bottom,a.bottom),right:PP(o.right,a.right)};return s$(s)}function KE(e,t){return typeof e<"u"?e:$hn}function Hhn(e,t){var n,r,i,o;return typeof t=="object"?(n=KE(t.left),r=KE(t.right),i=KE(t.top),o=KE(t.bottom)):n=r=i=o=KE(t),{x:e.x-n,y:e.y-i,width:e.width+n+r,height:e.height+i+o}}function zhn(e){return!(e.waypoints||e.type==="label")}function m3e(e,t){var n;if(e.length===void 0?n=Cr(e.children,zhn):n=e,n.length)return Hhn(oa(n),t)}var gm=Math.abs;function Vhn(e,t){return p3e(Gn(t),Gn(e))}var Ghn=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],Nc=30;function T$(e,t){return t=t||[],e.children.filter(function(n){Ne(n,"bpmn:Lane")&&(T$(n,t),t.push(n))}),t}function rg(e){return e.children.filter(function(t){return Ne(t,"bpmn:Lane")})}function Lc(e){return F0(e,Ghn)||e}function Whn(e,t){var n=Lc(e),r=Ne(n,"bpmn:Process")?[]:[n],i=T$(n,r),o=Gn(e),a=Gn(t),s=Vhn(e,t),l=[],c=aa(e);return i.forEach(function(u){if(u!==e){var d=c?0:s.top,f=c?s.right:0,p=c?0:s.bottom,h=c?s.left:0,g=Gn(u);s.top&&(gm(g.bottom-o.top)<10&&(p=a.top-g.bottom),gm(g.top-o.top)<5&&(d=a.top-g.top)),s.left&&(gm(g.right-o.left)<10&&(f=a.left-g.right),gm(g.left-o.left)<5&&(h=a.left-g.left)),s.bottom&&(gm(g.top-o.bottom)<10&&(d=a.bottom-g.top),gm(g.bottom-o.bottom)<5&&(p=a.bottom-g.bottom)),s.right&&(gm(g.left-o.right)<10&&(h=a.right-g.left),gm(g.right-o.right)<5&&(f=a.right-g.right)),(d||f||p||h)&&l.push({shape:u,newBounds:Bhn(u,{top:d,right:f,bottom:p,left:h})})}}),l}var Yhn=500;function rZ(e,t){Jt.call(this,e);function n(r,i){var o=aa(r),a=rg(i),s=[],l=[],c=[],u=[];if(Y_(a,function(v){return o?v.y>r.y?l.push(v):s.push(v):v.x>r.x?u.push(v):c.push(v),v.children}),!!a.length){var d;o?l.length&&s.length?d=r.height/2:d=r.height:u.length&&c.length?d=r.width/2:d=r.width;var f,p,h,g;s.length&&(f=t.calculateAdjustments(s,"y",d,r.y-10),t.makeSpace(f.movingShapes,f.resizingShapes,{x:0,y:d},"s")),l.length&&(p=t.calculateAdjustments(l,"y",-d,r.y+r.height+10),t.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:-d},"n")),c.length&&(h=t.calculateAdjustments(c,"x",d,r.x-10),t.makeSpace(h.movingShapes,h.resizingShapes,{x:d,y:0},"e")),u.length&&(g=t.calculateAdjustments(u,"x",-d,r.x+r.width+10),t.makeSpace(g.movingShapes,g.resizingShapes,{x:-d,y:0},"w"))}}this.postExecuted("shape.delete",Yhn,function(r){var i=r.context,o=i.hints,a=i.shape,s=i.oldParent;Ne(a,"bpmn:Lane")&&(o&&o.nested||n(a,s))})}rZ.$inject=["eventBus","spaceTool"];Rn(rZ,Jt);var uge=500;function R$(e,t){t.invoke(Jt,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",uge,function(r){var i=r.elements;i.filter(function(o){var a=o.host;return dge(o,a)}).map(function(o){return i.indexOf(o)}).forEach(function(o){r.elements[o]=n._replaceShape(i[o])})},!0),this.preExecute("elements.move",uge,function(r){var i=r.shapes,o=r.newHost;i.forEach(function(a,s){var l=a.host;dge(a,Khn(i,l)?l:o)&&(i[s]=n._replaceShape(a))})},!0)}R$.$inject=["bpmnReplace","injector"];Rn(R$,Jt);R$.prototype._replaceShape=function(e){var t=qhn(e),n;return t?n={type:"bpmn:IntermediateCatchEvent",eventDefinitionType:t.$type}:n={type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,n,{layoutConnection:!1})};function qhn(e){var t=sn(e),n=t.eventDefinitions;return n&&n[0]}function dge(e,t){return!Lr(e)&&Ne(e,"bpmn:BoundaryEvent")&&!t}function Khn(e,t){return e.indexOf(t)!==-1}function iZ(e,t,n){Jt.call(this,e);function r(i,o,a){var s=o.waypoints,l,c,u,d,f,p,h,g=i.outgoing.slice(),v=i.incoming.slice(),y;Jn(a.width)?y=er(a):y=a;var _=$V(s,y);if(_){if(l=s.slice(0,_.index),c=s.slice(_.index+(_.bendpoint?1:0)),!l.length||!c.length)return;u=_.bendpoint?s[_.index]:y,(l.length===1||!fge(i,l[l.length-1]))&&l.push(pge(u)),(c.length===1||!fge(i,c[0]))&&c.unshift(pge(u))}d=o.source,f=o.target,t.canConnect(d,i,o)&&(n.reconnectEnd(o,i,l||y),p=o),t.canConnect(i,f,o)&&(p?h=n.connect(i,f,{type:o.type,waypoints:c}):(n.reconnectStart(o,i,c||y),h=o));var b=[].concat(p&&Cr(v,function(S){return S.source===p.source})||[],h&&Cr(g,function(S){return S.target===h.target})||[]);b.length&&n.removeElements(b)}this.preExecute("elements.move",function(i){var o=i.newParent,a=i.shapes,s=i.delta,l=a[0];if(!(!l||!o)){o&&o.waypoints&&(i.newParent=o=o.parent);var c=er(l),u={x:c.x+s.x,y:c.y+s.y},d=Br(o.children,function(f){var p=t.canInsert(a,f);return p&&$V(f.waypoints,u)});d&&(i.targetFlow=d,i.position=u)}},!0),this.postExecuted("elements.move",function(i){var o=i.shapes,a=i.targetFlow,s=i.position;a&&r(o[0],a,s)},!0),this.preExecute("shape.create",function(i){var o=i.parent,a=i.shape;t.canInsert(a,o)&&(i.targetFlow=o,i.parent=o.parent)},!0),this.postExecuted("shape.create",function(i){var o=i.shape,a=i.targetFlow,s=i.position;a&&r(o,a,s)},!0)}Rn(iZ,Jt);iZ.$inject=["eventBus","bpmnRules","modeling"];function fge(e,t){var n=t.x,r=t.y;return n>=e.x&&n<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function pge(e){return lt({},e)}function oZ(e,t){Jt.call(this,e),this.preExecuted("connection.create",function(n){var r=n.context,i=r.connection,o=r.source,a=r.target,s=r.hints;if(!(s&&s.createElementsBehavior===!1)&&Ay(i)){var l=[];Ne(o,"bpmn:EventBasedGateway")?l=a.incoming.filter(c=>c!==i&&Ay(c)):l=a.incoming.filter(c=>c!==i&&Ay(c)&&Ne(c.source,"bpmn:EventBasedGateway")),l.forEach(function(c){t.removeConnection(c)})}}),this.preExecuted("shape.replace",function(n){var r=n.context,i=r.newShape;if(Ne(i,"bpmn:EventBasedGateway")){var o=i.outgoing.filter(Ay).reduce(function(a,s){return a.includes(s.target)?a:a.concat(s.target)},[]);o.forEach(function(a){a.incoming.filter(Ay).forEach(function(s){const l=a.incoming.filter(Ay).filter(function(c){return c.source===i});(s.source!==i||l.length>1)&&t.removeConnection(s)})})}})}oZ.$inject=["eventBus","modeling"];Rn(oZ,Jt);function Ay(e){return Ne(e,"bpmn:SequenceFlow")}var rI=1500,mge=2e3;function h3e(e,t,n){t.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],rI,function(r){var i=r.context,o=i.shape||r.shape,a=r.hover;Ne(a,"bpmn:Lane")&&!br(o,["bpmn:Lane","bpmn:Participant"])&&(r.hover=Lc(a),r.hoverGfx=e.getGraphics(r.hover));var s=n.getRootElement();a!==s&&(o.labelTarget||br(o,["bpmn:Group","bpmn:TextAnnotation"]))&&(r.hover=s,r.hoverGfx=e.getGraphics(r.hover))}),t.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],rI,function(r){var i=r.hover;Ne(i,"bpmn:Lane")&&(r.hover=Lc(i)||i,r.hoverGfx=e.getGraphics(r.hover))}),t.on(["bendpoint.move.hover"],rI,function(r){var i=r.context,o=r.hover,a=i.type;Ne(o,"bpmn:Lane")&&/reconnect/.test(a)&&(r.hover=Lc(o)||o,r.hoverGfx=e.getGraphics(r.hover))}),t.on(["connect.start"],rI,function(r){var i=r.context,o=i.start;Ne(o,"bpmn:Lane")&&(i.start=Lc(o)||o)}),t.on("shape.move.start",mge,function(r){var i=r.shape;Ne(i,"bpmn:Lane")&&(r.shape=Lc(i)||i)}),t.on("spaceTool.move",mge,function(r){var i=r.hover;i&&Ne(i,"bpmn:Lane")&&(r.hover=Lc(i))})}h3e.$inject=["elementRegistry","eventBus","canvas"];function Qhn(e){return e.create("bpmn:Category")}function Xhn(e){return e.create("bpmn:CategoryValue")}function Zhn(e,t,n){return Xo(t.get("categoryValue"),e),e.$parent=t,Xo(n.get("rootElements"),t),t.$parent=n,e}function Jhn(e){var t=e.$parent;return t&&(Io(t.get("categoryValue"),e),e.$parent=null),e}function egn(e){var t=e.$parent;return t&&(Io(t.get("rootElements"),e),e.$parent=null),e}var hge=770;function aZ(e,t,n,r,i,o){i.invoke(Jt,this);function a(){return n.filter(function(h){return Ne(h,"bpmn:Group")})}function s(h,g){return h.some(function(v){var y=sn(v),_=y.categoryValueRef&&y.categoryValueRef.$parent;return _===g})}function l(h,g){return h.some(function(v){var y=sn(v);return y.categoryValueRef===g})}function c(h,g,v){var y=a().filter(function(_){return _.businessObject!==v});g&&!s(y,g)&&egn(g),h&&!l(y,h)&&Jhn(h)}function u(h,g){return Zhn(h,g,t.getDefinitions())}function d(h,g){var v=sn(h),y=v.categoryValueRef;y||(y=v.categoryValueRef=g.categoryValue=g.categoryValue||Xhn(e));var _=y.$parent;_||(_=y.$parent=g.category=g.category||Qhn(e)),u(y,_,t.getDefinitions())}function f(h,g){var v=g.category,y=g.categoryValue,_=sn(h);y?(_.categoryValueRef=null,c(y,v,_)):c(null,_.categoryValueRef.$parent,_)}this.execute("label.create",function(h){var g=h.context,v=g.labelTarget;Ne(v,"bpmn:Group")&&d(v,g)}),this.revert("label.create",function(h){var g=h.context,v=g.labelTarget;Ne(v,"bpmn:Group")&&f(v,g)}),this.execute("shape.delete",function(h){var g=h.context,v=g.shape,y=sn(v);if(!(!Ne(v,"bpmn:Group")||v.labelTarget)){var _=g.categoryValue=y.categoryValueRef,b;_&&(b=g.category=_.$parent,c(_,b,y),y.categoryValueRef=null)}}),this.reverted("shape.delete",function(h){var g=h.context,v=g.shape;if(!(!Ne(v,"bpmn:Group")||v.labelTarget)){var y=g.category,_=g.categoryValue,b=sn(v);_&&(b.categoryValueRef=_,u(_,y))}}),this.execute("shape.create",function(h){var g=h.context,v=g.shape;!Ne(v,"bpmn:Group")||v.labelTarget||sn(v).categoryValueRef&&d(v,g)}),this.reverted("shape.create",function(h){var g=h.context,v=g.shape;!Ne(v,"bpmn:Group")||v.labelTarget||sn(v).categoryValueRef&&f(v,g)});function p(h,g){var v=e.create(h.$type);return o.copyElement(h,v,null,g)}r.on("copyPaste.copyElement",hge,function(h){var g=h.descriptor,v=h.element;if(!(!Ne(v,"bpmn:Group")||v.labelTarget)){var y=sn(v);if(y.categoryValueRef){var _=y.categoryValueRef;g.categoryValue=p(_,!0),_.$parent&&(g.category=p(_.$parent,!0))}}}),r.on("copyPaste.pasteElement",hge,function(h){var g=h.descriptor,v=g.businessObject,y=g.categoryValue,_=g.category;y&&(y=v.categoryValueRef=p(y)),_&&(y.$parent=p(_)),delete g.category,delete g.categoryValue})}aZ.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"];Rn(aZ,Jt);function VV(e,t,n,r){var i,o,a,s,l;return i=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y),i==0?null:(o=e.y-n.y,a=e.x-n.x,l=(r.x-n.x)*o-(r.y-n.y)*a,s=l/i,{x:Math.round(e.x+s*(t.x-e.x)),y:Math.round(e.y+s*(t.y-e.y))})}function g3e(e){function t(r,i,o){var a={x:o.x,y:o.y-50},s={x:o.x-50,y:o.y},l=VV(r,i,o,a),c=VV(r,i,o,s),u;l&&c?gge(l,o)>gge(c,o)?u=c:u=l:u=l||c,r.original=u}function n(r){var i=r.waypoints;t(i[0],i[1],er(r.source)),t(i[i.length-1],i[i.length-2],er(r.target))}e.on("bpmnElement.added",function(r){var i=r.element;i.waypoints&&n(i)})}g3e.$inject=["eventBus"];function gge(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sZ(e){Jt.call(this,e);var t=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(n){var r=n.context.shape,i=sn(r),o=kr(r);if(br(i,t)){var a=o.get("isHorizontal");a===void 0&&(a=!0),o.set("isHorizontal",a)}})}sZ.$inject=["eventBus"];Rn(sZ,Jt);var v3e=Math.sqrt,_3e=Math.min,tgn=Math.max,vge=Math.abs;function _ge(e){return Math.pow(e,2)}function QE(e,t){return v3e(_ge(e.x-t.x)+_ge(e.y-t.y))}function ngn(e,t){var n=0,r,i,o,a,s,l,c,u,d,f,p;for(n=0;n<t.length-1;n++){if(r=t[n],i=t[n+1],bge(r,i)?c=[r]:(o=QE(e,r),a=QE(e,i),l=_3e(o,a),c=rgn(r,i,e,l)),c.length<1)throw new Error("expected between [1, 2] circle -> line intersections");c.length===1&&(u={type:"bendpoint",position:c[0],segmentIndex:n,bendpointIndex:bge(r,c[0])?n:n+1}),c.length===2&&(s=ogn(c[0],c[1]),u={type:"segment",position:s,segmentIndex:n,relativeLocation:QE(r,s)/QE(r,i)}),d=QE(u.position,e),(!p||f>d)&&(p=u,f=d)}return p}function rgn(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,l=i*i+o*o,c=i*a+o*s,u=a*a+s*s-r*r,d=c/l,f=u/l,p=d*d-f;if(p<0&&p>-1e-6&&(p=0),p<0)return[];var h=v3e(p),g=-d+h,v=-d-h,y={x:e.x-i*g,y:e.y-o*g};if(p===0)return[y];var _={x:e.x-i*v,y:e.y-o*v};return[y,_].filter(function(b){return ign(b,e,t)})}function ign(e,t,n){return yge(e.x,t.x,n.x)&&yge(e.y,t.y,n.y)}function yge(e,t,n){return e>=_3e(t,n)-kP&&e<=tgn(t,n)+kP}function ogn(e,t){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}var kP=.1;function bge(e,t){return vge(e.x-t.x)<=kP&&vge(e.y-t.y)<=kP}function agn(e,t,n,r){var i=n.segmentIndex,o=t.length-e.length;if(r.segmentMove){var a=r.segmentMove.segmentStartIndex,s=r.segmentMove.newSegmentStartIndex;return i===a?s:i>=s?i+o<s?s:i+o:i}if(r.bendpointMove){var l=r.bendpointMove.insert,c=r.bendpointMove.bendpointIndex,u;if(o===0)return i;if(i>=c&&(u=l?i+1:i-1),i<c&&(u=i,l&&n.type!=="bendpoint"&&c-1===i)){var d=b3e(t,c);d<n.relativeLocation&&u++}return u}return o===0?i:r.connectionStart&&i===0?0:r.connectionEnd&&i===e.length-2?t.length-2:Math.floor((t.length-2)/2)}function y3e(e,t,n,r){var i=0,o=0,a={point:e,delta:{x:0,y:0}},s=ngn(e,n),l=s.segmentIndex,c=agn(n,t,s,r);if(c<0||c>t.length-2||c===null)return a;var u=Sge(n,l),d=Sge(t,c),f=s.position,p=lgn(u,f),h=sgn(u,d);if(s.type==="bendpoint"){var g=t.length-n.length,v=s.bendpointIndex,y=n[v];if(t.indexOf(y)!==-1)return a;if(g===0){var _=t[v];return i=_.x-s.position.x,o=_.y-s.position.y,{delta:{x:i,y:o},point:{x:e.x+i,y:e.y+o}}}g<0&&v!==0&&v<n.length-1&&(p=b3e(n,v))}var b={x:(d[1].x-d[0].x)*p+d[0].x,y:(d[1].y-d[0].y)*p+d[0].y},S=Xmn({x:e.x-f.x,y:e.y-f.y},h);return i=b.x+S.x-e.x,o=b.y+S.y-e.y,{point:cp(b),delta:cp({x:i,y:o})}}function b3e(e,t){var n=MP(e[t-1],e[t]),r=MP(e[t],e[t+1]),i=n/(n+r);return i}function sgn(e,t){var n=Ghe(e),r=Ghe(t);return r-n}function Sge(e,t){return[e[t],e[t+1]]}function lgn(e,t){var n=MP(e[0],e[1]),r=MP(e[0],t);return n===0?0:r/n}function cgn(e,t,n,r){var i=er(e);return y3e(i,t,n,r).delta}function FT(e,t,n){var r=d1(t),i=d1(n),o=Zu(e,r),a={x:o.x*(n.width/t.width),y:o.y*(n.height/t.height)};return cp({x:i.x+a.x,y:i.y+a.y})}function Ege(e,t,n){var r=d1(e),i=d1(t),o=d1(n),a=Zu(e,r),s=Zu(r,i),l=ugn(r,t,n);if(l)return l;var c={x:s.x*(n.width/t.width),y:s.y*(n.height/t.height)},u={x:o.x+c.x,y:o.y+c.y};return cp({x:u.x+a.x-e.x,y:u.y+a.y-e.y})}function ugn(e,t,n){var r=Gn(t),i=Gn(n);if(dgn(r,i))return null;var o=Ka(t,e),a,s,l;if(o==="top")a={x:0,y:i.bottom-r.bottom};else if(o==="bottom")a={x:0,y:i.top-r.top};else if(o==="right")a={x:i.left-r.left,y:0};else if(o==="left")a={x:i.right-r.right,y:0};else return null;return s={x:e.x+a.x,y:e.y+a.y},l=Ka(n,s),l!==o?null:a}function dgn(e,t){return fgn(e,t)||pgn(e,t)}function fgn(e,t){return e.right!==t.right&&e.left!==t.left}function pgn(e,t){return e.top!==t.top&&e.bottom!==t.bottom}var Cge="name",wge="text";function lZ(e,t,n,r){Jt.call(this,e),this.postExecute("element.updateProperties",i),this.postExecute("element.updateModdleProperties",a=>{sn(a.context.element)===a.context.moddleElement&&i(a)});function i(a){var s=a.context,l=s.element,c=s.properties;if(Cge in c&&t.updateLabel(l,c[Cge]),wge in c&&Ne(l,"bpmn:TextAnnotation")){var u=r.getTextAnnotationBounds({x:l.x,y:l.y,width:l.width,height:l.height},c[wge]||"");t.updateLabel(l,c.text,u)}}this.postExecute(["shape.create","connection.create"],function(a){var s=a.context,l=s.hints||{};if(l.createElementsBehavior!==!1){var c=s.shape||s.connection;Lr(c)||!m_(c)||cd(c)&&t.updateLabel(c,cd(c))}}),this.postExecute("shape.delete",function(a){var s=a.context,l=s.labelTarget,c=s.hints||{};l&&c.unsetLabel!==!1&&t.updateLabel(l,null,null,{removeShape:!1})});function o(a){var s=a.context,l=s.connection,c=l.label,u=lt({},s.hints),d=s.newWaypoints||l.waypoints,f=s.oldWaypoints;return typeof u.startChanged>"u"&&(u.startChanged=!!u.connectionStart),typeof u.endChanged>"u"&&(u.endChanged=!!u.connectionEnd),cgn(c,d,f,u)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(a){var s=a.context,l=s.hints||{};if(l.labelBehavior!==!1){var c=s.connection,u=c.label,d;!u||!u.parent||(d=o(a),t.moveShape(u,d))}}),this.postExecute(["shape.replace"],function(a){var s=a.context,l=s.newShape,c=s.oldShape,u=sn(l);u&&m_(u)&&c.label&&l.label&&(l.label.x=c.label.x,l.label.y=c.label.y)}),this.postExecute("shape.resize",function(a){var s=a.context,l=s.shape,c=s.newBounds,u=s.oldBounds;if(d$(l)){var d=l.label,f=er(d),p=ggn(u),h=hgn(f,p),g=mgn(h,u,c);t.moveShape(d,g)}})}Rn(lZ,Jt);lZ.$inject=["eventBus","modeling","bpmnFactory","textRenderer"];function mgn(e,t,n){var r=FT(e,t,n);return cp(Zu(r,e))}function hgn(e,t){if(t.length){var n=vgn(e,t);return HX(e,n)}}function ggn(e){return[[{x:e.x,y:e.y},{x:e.x+(e.width||0),y:e.y}],[{x:e.x+(e.width||0),y:e.y},{x:e.x+(e.width||0),y:e.y+(e.height||0)}],[{x:e.x,y:e.y+(e.height||0)},{x:e.x+(e.width||0),y:e.y+(e.height||0)}],[{x:e.x,y:e.y},{x:e.x,y:e.y+(e.height||0)}]]}function vgn(e,t){var n=t.map(function(i){return{line:i,distance:Q$e(e,i)}}),r=uf(n,"distance");return r[0].line}function _gn(e,t,n,r){return y3e(e,t,n,r).point}function cZ(e,t){Jt.call(this,e);function n(r,i){var o=r.context,a=o.connection,s=lt({},o.hints),l=o.newWaypoints||a.waypoints,c=o.oldWaypoints;return typeof s.startChanged>"u"&&(s.startChanged=!!s.connectionStart),typeof s.endChanged>"u"&&(s.endChanged=!!s.connectionEnd),_gn(i,l,c,s)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(r){var i=r.context,o=i.connection,a=o.outgoing,s=o.incoming;s.forEach(function(l){var c=l.waypoints[l.waypoints.length-1],u=n(r,c),d=[].concat(l.waypoints.slice(0,-1),[u]);t.updateWaypoints(l,d)}),a.forEach(function(l){var c=l.waypoints[0],u=n(r,c),d=[].concat([u],l.waypoints.slice(1));t.updateWaypoints(l,d)})}),this.postExecute(["connection.move"],function(r){var i=r.context,o=i.connection,a=o.outgoing,s=o.incoming,l=i.delta;s.forEach(function(c){var u=c.waypoints[c.waypoints.length-1],d={x:u.x+l.x,y:u.y+l.y},f=[].concat(c.waypoints.slice(0,-1),[d]);t.updateWaypoints(c,f)}),a.forEach(function(c){var u=c.waypoints[0],d={x:u.x+l.x,y:u.y+l.y},f=[].concat([d],c.waypoints.slice(1));t.updateWaypoints(c,f)})})}Rn(cZ,Jt);cZ.$inject=["eventBus","modeling"];function O$(e,t,n){var r=N$(e),i=E3e(r,t),o=r[0];return i.length?i[i.length-1]:FT(o.original||o,n,t)}function I$(e,t,n){var r=N$(e),i=E3e(r,t),o=r[r.length-1];return i.length?i[0]:FT(o.original||o,n,t)}function uZ(e,t,n){var r=N$(e),i=S3e(t,n),o=r[0];return FT(o.original||o,i,t)}function dZ(e,t,n){var r=N$(e),i=S3e(t,n),o=r[r.length-1];return FT(o.original||o,i,t)}function S3e(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function N$(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function E3e(e,t){var n=Ya(e,bgn);return Cr(n,function(r){return ygn(r,t)})}function ygn(e,t){return Ka(t,e,1)==="intersect"}function bgn(e){return e.original||e}function fZ(e,t){Jt.call(this,e),this.postExecute("shape.replace",function(n){var r=n.oldShape,i=n.newShape;if(Sgn(r,i)){var o=Egn(r);o.incoming.forEach(function(a){var s=I$(a,i,r);t.reconnectEnd(a,i,s)}),o.outgoing.forEach(function(a){var s=O$(a,i,r);t.reconnectStart(a,i,s)})}},!0)}fZ.$inject=["eventBus","modeling"];Rn(fZ,Jt);function Sgn(e,t){return Ne(e,"bpmn:Participant")&&Nr(e)&&Ne(t,"bpmn:Participant")&&!Nr(t)}function Egn(e){var t=RT([e],!1),n=[],r=[];return t.forEach(function(i){i!==e&&(i.incoming.forEach(function(o){Ne(o,"bpmn:MessageFlow")&&n.push(o)}),i.outgoing.forEach(function(o){Ne(o,"bpmn:MessageFlow")&&r.push(o)}))},[]),{incoming:n,outgoing:r}}const Cgn=["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:EscalationEventDefinition","bpmn:ConditionalEventDefinition","bpmn:SignalEventDefinition"];function C3e(e){const t=sn(e);if(!Ne(t,"bpmn:BoundaryEvent")&&!(Ne(t,"bpmn:StartEvent")&&gs(t.$parent)))return!1;const n=t.get("eventDefinitions");return!n||!n.length?!1:Cgn.some(r=>Ne(n[0],r))}function w3e(e){return Ne(e,"bpmn:BoundaryEvent")?"cancelActivity":"isInterrupting"}function pZ(e,t){e.invoke(Jt,this),this.postExecuted("shape.replace",function(n){const r=n.context.oldShape,i=n.context.newShape,o=n.context.hints;if(!C3e(i))return;const a=w3e(i);if(o.targetElement&&o.targetElement[a]!==void 0)return;const l=sn(r).get(a),c=sn(i).get(a);l!==c&&t.updateProperties(i,{[a]:l})})}pZ.$inject=["injector","modeling"];Rn(pZ,Jt);function mZ(e,t){Jt.call(this,e),this.preExecute("shape.resize",function(n){var r=n.shape,i=kr(r),o=i&&i.get("label"),a=o&&o.get("bounds");a&&t.updateModdleProperties(r,o,{bounds:void 0})},!0)}Rn(mZ,Jt);mZ.$inject=["eventBus","modeling"];function hZ(e,t,n){Jt.call(this,e),this.preExecute("shape.delete",function(r){var i=r.context.shape;if(!(i.incoming.length!==1||i.outgoing.length!==1)){var o=i.incoming[0],a=i.outgoing[0];if(!(!Ne(o,"bpmn:SequenceFlow")||!Ne(a,"bpmn:SequenceFlow"))&&t.canConnect(o.source,a.target,o)){var s=wgn(o.waypoints,a.waypoints);n.reconnectEnd(o,a.target,s)}}})}Rn(hZ,Jt);hZ.$inject=["eventBus","bpmnRules","modeling"];function Py(e){return e.original||e}function wgn(e,t){var n=VV(Py(e[e.length-2]),Py(e[e.length-1]),Py(t[1]),Py(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[Py(e[0]),Py(t[t.length-1])]}function gZ(e,t){Jt.call(this,e),this.preExecute("shape.delete",function(n){var r=n.shape,i=r.parent;Ne(r,"bpmn:Participant")&&(n.collaborationRoot=i)},!0),this.postExecute("shape.delete",function(n){var r=n.collaborationRoot;if(r&&!r.businessObject.participants.length){var i=t.makeProcess(),o=r.children.slice();t.moveElements(o,{x:0,y:0},i)}},!0)}gZ.$inject=["eventBus","modeling"];Rn(gZ,Jt);function vZ(e,t,n,r){Jt.call(this,e);var i=r.get("dragging",!1);function o(l){var c=l.source,u=l.target,d=l.parent;if(d){var f,p;Ne(l,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(c,u)||(p=!0),n.canConnectMessageFlow(c,u)&&(f="bpmn:MessageFlow")),Ne(l,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(c,u)||(p=!0),n.canConnectSequenceFlow(c,u)&&(f="bpmn:SequenceFlow")),p&&t.removeConnection(l),f&&t.connect(c,u,{type:f,waypoints:l.waypoints.slice()})}}function a(l){var c=l.context,u=c.connection,d=c.newSource||u.source,f=c.newTarget||u.target,p,h;p=n.canConnect(d,f),!(!p||p.type===u.type)&&(h=t.connect(d,f,{type:p.type,associationDirection:p.associationDirection,waypoints:u.waypoints.slice()}),u.parent&&t.removeConnection(u),c.connection=h,i&&s(u,h))}function s(l,c){var u=i.context(),d=u&&u.payload.previousSelection,f;!d||!d.length||(f=d.indexOf(l),f!==-1&&d.splice(f,1,c))}this.postExecuted("elements.move",function(l){var c=l.closure,u=c.allConnections;Ze(u,o)},!0),this.preExecute("connection.reconnect",a),this.postExecuted("element.updateProperties",function(l){var c=l.context,u=c.properties,d=c.element,f=d.businessObject,p;u.default&&(p=Br(d.outgoing,Xu({id:d.businessObject.default.id})),p&&t.updateProperties(p,{conditionExpression:void 0})),u.conditionExpression&&f.sourceRef.default===f&&t.updateProperties(d.source,{default:void 0})})}Rn(vZ,Jt);vZ.$inject=["eventBus","modeling","bpmnRules","injector"];function M$(e,t,n,r,i,o){r.invoke(Jt,this),this._bpmnReplace=e,this._elementRegistry=n,this._selection=o,this.postExecuted(["elements.create"],500,function(a){var s=a.context,l=s.parent,c=s.elements,u=vl(c,function(d,f){var p=t.canReplace([f],f.host||f.parent||l);return p?d.concat(p.replacements):d},[]);u.length&&this._replaceElements(c,u)},this),this.postExecuted(["elements.move"],500,function(a){var s=a.context,l=s.newParent,c=s.newHost,u=[];Ze(s.closure.topLevel,function(f){gs(f)?u=u.concat(f.children):u=u.concat(f)}),u.length===1&&c&&(l=c);var d=t.canReplace(u,l);d&&this._replaceElements(u,d.replacements,c)},this),this.postExecute(["shape.replace"],1500,function(a){var s=a.context,l=s.oldShape,c=s.newShape,u=l.attachers,d;u&&u.length&&(d=t.canReplace(u,c),this._replaceElements(u,d.replacements))},this),this.postExecuted(["shape.replace"],1500,function(a){var s=a.context,l=s.oldShape,c=s.newShape;i.unclaimId(l.businessObject.id,l.businessObject),i.updateProperties(c,{id:l.id})})}Rn(M$,Jt);M$.prototype._replaceElements=function(e,t){var n=this._elementRegistry,r=this._bpmnReplace,i=this._selection;Ze(t,function(o){var a={type:o.newElementType},s=n.get(o.oldElementId),l=e.indexOf(s);e[l]=r.replaceElement(s,a,{select:!1})}),t&&i.select(e)};M$.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var xgn=1500,Tgn={width:140,height:120},_Z={width:300,height:60},yZ={width:60,height:300},$N={width:300,height:150},FN={width:150,height:300},x3e={width:140,height:120},T3e={width:50,height:30};function R3e(e){e.on("resize.start",xgn,function(t){var n=t.context,r=n.shape,i=n.direction,o=n.balanced;(Ne(r,"bpmn:Lane")||Ne(r,"bpmn:Participant"))&&(n.resizeConstraints=Mgn(r,i,o)),Ne(r,"bpmn:SubProcess")&&Nr(r)&&(n.minDimensions=x3e),Ne(r,"bpmn:TextAnnotation")&&(n.minDimensions=T3e)})}R3e.$inject=["eventBus"];var vm=Math.abs,Rgn=Math.min,Ogn=Math.max;function O3e(e,t,n,r){var i=e[t];e[t]=i===void 0?n:r(n,i)}function Dy(e,t,n){return O3e(e,t,n,Rgn)}function ky(e,t,n){return O3e(e,t,n,Ogn)}var Ign={top:20,left:50,right:20,bottom:20},Ngn={top:50,left:20,right:20,bottom:20};function Mgn(e,t,n){var r=Lc(e),i=!0,o=!0,a=T$(r,[r]),s=Gn(e),l={},c={},u=aa(e),d=u?_Z:yZ;/n/.test(t)?c.top=s.bottom-d.height:/e/.test(t)?c.right=s.left+d.width:/s/.test(t)?c.bottom=s.top+d.height:/w/.test(t)&&(c.left=s.right-d.width),a.forEach(function(h){var g=Gn(h);u?(g.top<s.top-10&&(i=!1),g.bottom>s.bottom+10&&(o=!1)):(g.left<s.left-10&&(i=!1),g.right>s.right+10&&(o=!1)),/n/.test(t)&&(n&&vm(s.top-g.bottom)<10&&ky(l,"top",g.top+d.height),vm(s.top-g.top)<5&&Dy(c,"top",g.bottom-d.height)),/e/.test(t)&&(n&&vm(s.right-g.left)<10&&Dy(l,"right",g.right-d.width),vm(s.right-g.right)<5&&ky(c,"right",g.left+d.width)),/s/.test(t)&&(n&&vm(s.bottom-g.top)<10&&Dy(l,"bottom",g.bottom-d.height),vm(s.bottom-g.bottom)<5&&ky(c,"bottom",g.top+d.height)),/w/.test(t)&&(n&&vm(s.left-g.right)<10&&ky(l,"left",g.left+d.width),vm(s.left-g.left)<5&&Dy(c,"left",g.right-d.width))});var f=r.children.filter(function(h){return!h.hidden&&!h.waypoints&&(Ne(h,"bpmn:FlowElement")||Ne(h,"bpmn:Artifact"))}),p=u?Ign:Ngn;return f.forEach(function(h){var g=Gn(h);/n/.test(t)&&(!u||i)&&Dy(c,"top",g.top-p.top),/e/.test(t)&&(u||o)&&ky(c,"right",g.right+p.right),/s/.test(t)&&(!u||o)&&ky(c,"bottom",g.bottom+p.bottom),/w/.test(t)&&(u||i)&&Dy(c,"left",g.left-p.left)}),{min:c,max:l}}var xge=1001;function I3e(e,t){e.on("resize.start",xge+500,function(n){var r=n.context,i=r.shape;(Ne(i,"bpmn:Lane")||Ne(i,"bpmn:Participant"))&&(r.balanced=!jw(n))}),e.on("resize.end",xge,function(n){var r=n.context,i=r.shape,o=r.canExecute,a=r.newBounds;if(Ne(i,"bpmn:Lane")||Ne(i,"bpmn:Participant"))return o&&(a=mLe(a),t.resizeLane(i,a,r.balanced)),!1})}I3e.$inject=["eventBus","modeling"];var Agn=500;function bZ(e,t,n,r,i){n.invoke(Jt,this);function o(u){return br(u,["bpmn:ReceiveTask","bpmn:SendTask"])||Pgn(u,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(u){var d=e.getDefinitions(),f=d.get("rootElements");return!!Br(f,Xu({id:u.id}))}function s(u){if(Ne(u,"bpmn:ErrorEventDefinition"))return"errorRef";if(Ne(u,"bpmn:EscalationEventDefinition"))return"escalationRef";if(Ne(u,"bpmn:MessageEventDefinition"))return"messageRef";if(Ne(u,"bpmn:SignalEventDefinition"))return"signalRef"}function l(u){if(br(u,["bpmn:ReceiveTask","bpmn:SendTask"]))return u.get("messageRef");var d=u.get("eventDefinitions"),f=d[0];return f.get(s(f))}function c(u,d){if(br(u,["bpmn:ReceiveTask","bpmn:SendTask"]))return u.set("messageRef",d);var f=u.get("eventDefinitions"),p=f[0];return p.set(s(p),d)}this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],function(u){var d=u.shape||u.element;if(o(d)){var f=sn(d),p=l(f),h;p&&!a(p)&&(h=e.getDefinitions().get("rootElements"),Xo(h,p),u.addedRootElement=p)}},!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],function(u){var d=u.addedRootElement;if(d){var f=e.getDefinitions().get("rootElements");Io(f,d)}},!0),t.on("copyPaste.copyElement",function(u){var d=u.descriptor,f=u.element;if(!(f.labelTarget||!o(f))){var p=sn(f),h=l(p);h&&(d.referencedRootElement=h)}}),t.on("copyPaste.pasteElement",Agn,function(u){var d=u.descriptor,f=d.businessObject,p=d.referencedRootElement;p&&(a(p)||(p=r.copyElement(p,i.create(p.$type))),c(f,p),delete d.referencedRootElement)})}bZ.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"];Rn(bZ,Jt);function Pgn(e,t){return lr(t)||(t=[t]),Kh(t,function(n){return GS(e,n)})}var N3e=Math.max;function M3e(e){e.on("spaceTool.getMinDimensions",function(t){var n=t.shapes,r=t.axis,i=t.start,o={};return Ze(n,function(a){var s=a.id;Ne(a,"bpmn:Participant")&&(o[s]=kgn(a,r,i)),Ne(a,"bpmn:Lane")&&(o[s]=aa(a)?_Z:yZ),Ne(a,"bpmn:SubProcess")&&Nr(a)&&(o[s]=x3e),Ne(a,"bpmn:TextAnnotation")&&(o[s]=T3e),Ne(a,"bpmn:Group")&&(o[s]=Tgn)}),o})}M3e.$inject=["eventBus"];function Dgn(e){return e==="x"}function kgn(e,t,n){var r=aa(e);if(!Fgn(e))return r?$N:FN;var i=Dgn(t),o={};return i?r?o=$N:o={width:$gn(e,n,i),height:FN.height}:r?o={width:$N.width,height:Lgn(e,n,i)}:o=FN,o}function Lgn(e,t,n){var r;return r=Bgn(e,t,n),N3e($N.height,r)}function $gn(e,t,n){var r;return r=Ugn(e,t,n),N3e(FN.width,r)}function Fgn(e){return!!rg(e).length}function Bgn(e,t,n){var r=rg(e),i;return i=SZ(r,t,n),e.height-i.height+_Z.height}function Ugn(e,t,n){var r=rg(e),i;return i=SZ(r,t,n),e.width-i.width+yZ.width}function SZ(e,t,n){var r,i,o;for(r=0;r<e.length;r++)if(i=e[r],!n&&t>=i.y&&t<=i.y+i.height||n&&t>=i.x&&t<=i.x+i.width)return o=rg(i),o.length?SZ(o,t,n):i}var Tge=400,jgn=600,Rge={x:180,y:160};function ig(e,t,n,r,i,o,a){Jt.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=r,this._bpmnFactory=i,this._bpmnjs=o,this._elementRegistry=a;var s=this;function l(d){return Ne(d,"bpmn:SubProcess")&&!Nr(d)}function c(d){var f=d.shape,p=d.newRootElement,h=sn(f);p=s._addDiagram(p||h),d.newRootElement=e.addRootElement(p)}function u(d){var f=d.shape,p=sn(f);s._removeDiagram(p);var h=d.newRootElement=a.get(Gf(p));e.removeRootElement(h)}this.executed("shape.create",function(d){var f=d.shape;l(f)&&c(d)},!0),this.postExecuted("shape.create",function(d){var f=d.shape,p=d.newRootElement;!p||!f.children||(s._showRecursively(f.children),s._moveChildrenToShape(f,p))},!0),this.reverted("shape.create",function(d){var f=d.shape;l(f)&&u(d)},!0),this.preExecuted("shape.delete",function(d){var f=d.shape;if(l(f)){var p=a.get(Gf(f));p&&n.removeElements(p.children.slice())}},!0),this.executed("shape.delete",function(d){var f=d.shape;l(f)&&u(d)},!0),this.reverted("shape.delete",function(d){var f=d.shape;l(f)&&c(d)},!0),this.preExecuted("shape.replace",function(d){var f=d.oldShape,p=d.newShape;!l(f)||!l(p)||(d.oldRoot=e.removeRootElement(Gf(f)))},!0),this.postExecuted("shape.replace",function(d){var f=d.newShape,p=d.oldRoot,h=e.findRoot(Gf(f));if(!(!p||!h)){var g=p.children;n.moveElements(g,{x:0,y:0},h)}},!0),this.executed("element.updateProperties",function(d){var f=d.element;if(Ne(f,"bpmn:SubProcess")){var p=d.properties,h=d.oldProperties,g=h.id,v=p.id;if(g!==v){if(PN(f)){a.updateId(f,Ng(v)),a.updateId(g,v);return}var y=a.get(Ng(g));y&&a.updateId(Ng(g),Ng(v))}}},!0),this.reverted("element.updateProperties",function(d){var f=d.element;if(Ne(f,"bpmn:SubProcess")){var p=d.properties,h=d.oldProperties,g=h.id,v=p.id;if(g!==v){if(PN(f)){a.updateId(f,Ng(g)),a.updateId(v,g);return}var y=a.get(Ng(v));y&&a.updateId(y,Ng(g))}}},!0),t.on("element.changed",function(d){var f=d.element;if(PN(f)){var p=f,h=a.get(_he(p));!h||h===p||t.fire("element.changed",{element:h})}}),this.executed("shape.toggleCollapse",Tge,function(d){var f=d.shape;Ne(f,"bpmn:SubProcess")&&(Nr(f)?u(d):(c(d),s._showRecursively(f.children)))},!0),this.reverted("shape.toggleCollapse",Tge,function(d){var f=d.shape;Ne(f,"bpmn:SubProcess")&&(Nr(f)?u(d):(c(d),s._showRecursively(f.children)))},!0),this.postExecuted("shape.toggleCollapse",jgn,function(d){var f=d.shape;if(Ne(f,"bpmn:SubProcess")){var p=d.newRootElement;p&&(Nr(f)?s._moveChildrenToShape(p,f):s._moveChildrenToShape(f,p))}},!0),t.on("copyPaste.createTree",function(d){var f=d.element,p=d.children;if(l(f)){var h=Gf(f),g=a.get(h);g&&p.push.apply(p,g.children)}}),t.on("copyPaste.copyElement",function(d){var f=d.descriptor,p=d.element,h=d.elements,g=p.parent,v=Ne(kr(g),"bpmndi:BPMNPlane");if(v){var y=_he(g),_=Br(h,function(b){return b.id===y});_&&(f.parent=_.id)}}),t.on("copyPaste.pasteElement",function(d){var f=d.descriptor;f.parent&&(l(f.parent)||f.parent.hidden)&&(f.hidden=!0)})}Rn(ig,Jt);ig.prototype._moveChildrenToShape=function(e,t){var n=this._modeling,r=e.children,i;if(r){r=r.concat(r.reduce(function(c,u){return u.label&&u.label.parent!==e?c.concat(u.label):c},[]));var o=r.filter(function(c){return!c.hidden});if(!o.length){n.moveElements(r,{x:0,y:0},t,{autoResize:!1});return}var a=oa(o);if(!t.x)i={x:Rge.x-a.x,y:Rge.y-a.y};else{var s=er(t),l=er(a);i={x:s.x-l.x,y:s.y-l.y}}n.moveElements(r,i,t,{autoResize:!1})}};ig.prototype._showRecursively=function(e,t){var n=this,r=[];return e.forEach(function(i){i.hidden=!!t,r=r.concat(i),i.children&&(r=r.concat(n._showRecursively(i.children,i.collapsed||t)))}),r};ig.prototype._addDiagram=function(e){var t=this._bpmnjs,n=t.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),n.push(e.di.$parent),e};ig.prototype._createNewDiagram=function(e){var t=this._bpmnFactory,n=this._elementFactory,r=t.create("bpmndi:BPMNPlane",{bpmnElement:e}),i=t.create("bpmndi:BPMNDiagram",{plane:r});r.$parent=i;var o=n.createRoot({id:Gf(e),type:e.$type,di:r,businessObject:e,collapsed:!0});return o};ig.prototype._removeDiagram=function(e){var t=this._bpmnjs,n=t.getDefinitions().diagrams,r=Br(n,function(i){return i.plane.bpmnElement.id===e.id});return n.splice(n.indexOf(r),1),r};ig.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"];function EZ(e,t){e.invoke(Jt,this),this.postExecuted("shape.replace",function(n){var r=n.context.oldShape,i=n.context.newShape;if(!(!Ne(i,"bpmn:SubProcess")||!(Ne(r,"bpmn:Task")||Ne(r,"bpmn:CallActivity"))||!Nr(i))){var o=Hgn(i);t.createShape({type:"bpmn:StartEvent"},o,i)}})}EZ.$inject=["injector","modeling"];Rn(EZ,Jt);function Hgn(e){return{x:e.x+e.width/6,y:e.y+e.height/2}}function CZ(e){Jt.call(this,e),this.preExecute("connection.create",function(t){const{target:n}=t;Ne(n,"bpmn:TextAnnotation")&&(t.parent=n.parent)},!0),this.preExecute(["shape.create","shape.resize","elements.move"],function(t){const n=t.shapes||[t.shape];n.length===1&&Ne(n[0],"bpmn:TextAnnotation")&&(t.hints=t.hints||{},t.hints.autoResize=!1)},!0)}Rn(CZ,Jt);CZ.$inject=["eventBus"];function wZ(e,t){Jt.call(this,e),this.postExecuted("shape.toggleCollapse",1500,function(n){var r=n.shape;if(Nr(r))return;var i=RT(r);i.forEach(function(a){var s=a.incoming.slice(),l=a.outgoing.slice();Ze(s,function(c){o(c,!0)}),Ze(l,function(c){o(c,!1)})});function o(a,s){i.indexOf(a.source)!==-1&&i.indexOf(a.target)!==-1||(s?t.reconnectEnd(a,r,er(r)):t.reconnectStart(a,r,er(r)))}},!0)}Rn(wZ,Jt);wZ.$inject=["eventBus","modeling"];var uU=500;function xZ(e,t,n){Jt.call(this,e);function r(a){a.length&&a.forEach(function(s){s.type==="label"&&!s.businessObject.name&&(s.hidden=!0)})}function i(a,s){var l=a.children,c=s,u,d;return u=zgn(l).concat([a]),d=m3e(u),d?(c.width=Math.max(d.width,c.width),c.height=Math.max(d.height,c.height),c.x=d.x+(d.width-c.width)/2,c.y=d.y+(d.height-c.height)/2):(c.x=a.x+(a.width-c.width)/2,c.y=a.y+(a.height-c.height)/2),c}function o(a,s){return{x:a.x+(a.width-s.width)/2,y:a.y+(a.height-s.height)/2,width:s.width,height:s.height}}this.executed(["shape.toggleCollapse"],uU,function(a){var s=a.context,l=s.shape;Ne(l,"bpmn:SubProcess")&&(l.collapsed?kr(l).isExpanded=!1:(r(l.children),kr(l).isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],uU,function(a){var s=a.context,l=s.shape;l.collapsed?kr(l).isExpanded=!1:kr(l).isExpanded=!0}),this.postExecuted(["shape.toggleCollapse"],uU,function(a){var s=a.context.shape,l=t.getDefaultSize(s),c;s.collapsed?c=o(s,l):c=i(s,l),n.resizeShape(s,c,null,{autoResize:s.collapsed?!1:"nwse"})})}Rn(xZ,Jt);xZ.$inject=["eventBus","elementFactory","modeling"];function zgn(e){return e.filter(function(t){return!t.hidden})}function TZ(e,t,n,r){t.invoke(Jt,this),this.preExecute("shape.delete",function(i){var o=i.context,a=o.shape,s=a.businessObject;Lr(a)||(Ne(a,"bpmn:Participant")&&Nr(a)&&n.ids.unclaim(s.processRef.id),r.unclaimId(s.id,s))}),this.preExecute("connection.delete",function(i){var o=i.context,a=o.connection,s=a.businessObject;r.unclaimId(s.id,s)}),this.preExecute("canvas.updateRoot",function(){var i=e.getRootElement(),o=i.businessObject;Ne(i,"bpmn:Collaboration")&&n.ids.unclaim(o.id)})}Rn(TZ,Jt);TZ.$inject=["canvas","injector","moddle","modeling"];function RZ(e,t){Jt.call(this,e),this.preExecute("connection.delete",function(n){var r=n.context,i=r.connection,o=i.source;Vgn(i,o)&&t.updateProperties(o,{default:null})})}Rn(RZ,Jt);RZ.$inject=["eventBus","modeling"];function Vgn(e,t){if(!Ne(e,"bpmn:SequenceFlow"))return!1;var n=sn(t),r=sn(e);return n.get("default")===r}var Ggn=500,Wgn=5e3;function OZ(e,t){Jt.call(this,e);var n;function r(){return n=n||new Ygn,n.enter(),n}function i(){if(!n)throw new Error("out of bounds release");return n}function o(){if(!n)throw new Error("out of bounds release");var s=n.leave();return s&&(t.updateLaneRefs(n.flowNodes,n.lanes),n=null),s}var a=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(a,Wgn,function(s){r()}),this.postExecuted(a,Ggn,function(s){o()}),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],function(s){var l=s.context,c=l.shape,u=i();c.labelTarget||(Ne(c,"bpmn:Lane")&&u.addLane(c),Ne(c,"bpmn:FlowNode")&&u.addFlowNode(c))})}OZ.$inject=["eventBus","modeling"];Rn(OZ,Jt);function Ygn(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function IZ(e,t){Jt.call(this,e),this.postExecuted("elements.create",function(n){const r=n.context,i=r.elements;for(const o of i)qgn(o)&&!Qgn(o)&&t.updateProperties(o,{isForCompensation:void 0})})}Rn(IZ,Jt);IZ.$inject=["eventBus","modeling"];function qgn(e){const t=sn(e);return t&&t.isForCompensation}function Kgn(e){return e&&Ne(e,"bpmn:BoundaryEvent")&&GS(e,"bpmn:CompensateEventDefinition")}function Qgn(e){return e.incoming.filter(n=>Kgn(n.source)).length>0}const Xgn={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","compensateBoundaryEventBehaviour","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","layoutConnectionBehavior","messageFlowBehavior","nonInterruptingBehavior","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","textAnnotationBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior","setCompensationActivityAfterPasteBehavior"],adaptiveLabelPositioningBehavior:["type",YX],appendBehavior:["type",qX],associationBehavior:["type",KX],attachEventBehavior:["type",w$],boundaryEventBehavior:["type",QX],compensateBoundaryEventBehaviour:["type",XX],createBehavior:["type",ZX],createDataObjectBehavior:["type",JX],createParticipantBehavior:["type",eZ],dataInputAssociationBehavior:["type",tZ],dataStoreBehavior:["type",nZ],deleteLaneBehavior:["type",rZ],detachEventBehavior:["type",R$],dropOnFlowBehavior:["type",iZ],eventBasedGatewayBehavior:["type",oZ],fixHoverBehavior:["type",h3e],groupBehavior:["type",aZ],importDockingFix:["type",g3e],isHorizontalFix:["type",sZ],labelBehavior:["type",lZ],layoutConnectionBehavior:["type",cZ],messageFlowBehavior:["type",fZ],nonInterruptingBehavior:["type",pZ],removeElementBehavior:["type",hZ],removeEmbeddedLabelBoundsBehavior:["type",mZ],removeParticipantBehavior:["type",gZ],replaceConnectionBehavior:["type",vZ],replaceElementBehaviour:["type",M$],resizeBehavior:["type",R3e],resizeLaneBehavior:["type",I3e],rootElementReferenceBehavior:["type",bZ],spaceToolBehavior:["type",M3e],subProcessPlaneBehavior:["type",ig],subProcessStartEventBehavior:["type",EZ],textAnnotationBehavior:["type",CZ],toggleCollapseConnectionBehaviour:["type",wZ],toggleElementCollapseBehaviour:["type",xZ],unclaimIdBehavior:["type",TZ],unsetDefaultFlowBehavior:["type",RZ],updateFlowNodeRefsBehavior:["type",OZ],setCompensationActivityAfterPasteBehavior:["type",IZ]};function A3e(e,t){var n=Ka(e,t,-15);return n!=="intersect"?n:null}function La(e){du.call(this,e)}Rn(La,du);La.$inject=["eventBus"];La.prototype.init=function(){this.addRule("connection.start",function(e){var t=e.source;return Zgn(t)}),this.addRule("connection.create",function(e){var t=e.source,n=e.target,r=e.hints||{},i=r.targetParent,o=r.targetAttach;if(o)return!1;i&&(n.parent=i);try{return BN(t,n)}finally{i&&(n.parent=null)}}),this.addRule("connection.reconnect",function(e){var t=e.connection,n=e.source,r=e.target;return BN(n,r,t)}),this.addRule("connection.updateWaypoints",function(e){return{type:e.connection.type}}),this.addRule("shape.resize",function(e){var t=e.shape,n=e.newBounds;return j3e(t,n)}),this.addRule("elements.create",function(e){var t=e.elements,n=e.position,r=e.target;return pi(r)&&!LP(t,r)?!1:G_(t,function(i){return pi(i)?BN(i.source,i.target,i):i.host?f1(i,i.host,null,n):qV(i,r,null)})}),this.addRule("elements.move",function(e){var t=e.target,n=e.shapes,r=e.position;return f1(n,t,null,r)||B3e(n,t,r)||U3e(n,t)||LP(n,t)}),this.addRule("shape.create",function(e){return qV(e.shape,e.target,e.source,e.position)}),this.addRule("shape.attach",function(e){return f1(e.shape,e.target,null,e.position)}),this.addRule("element.copy",function(e){var t=e.element,n=e.elements;return W3e(n,t)})};La.prototype.canConnectMessageFlow=V3e;La.prototype.canConnectSequenceFlow=G3e;La.prototype.canConnectDataAssociation=MZ;La.prototype.canConnectAssociation=H3e;La.prototype.canConnectCompensationAssociation=z3e;La.prototype.canMove=U3e;La.prototype.canAttach=f1;La.prototype.canReplace=B3e;La.prototype.canDrop=U0;La.prototype.canInsert=LP;La.prototype.canCreate=qV;La.prototype.canConnect=BN;La.prototype.canResize=j3e;La.prototype.canCopy=W3e;function Zgn(e){return GV(e)?null:br(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function GV(e){return!e||Lr(e)}function Jgn(e,t){return e===t}function Oge(e){do{if(Ne(e,"bpmn:Process"))return sn(e);if(Ne(e,"bpmn:Participant"))return sn(e).processRef||sn(e)}while(e=e.parent)}function WV(e){return Ne(e,"bpmn:TextAnnotation")}function NZ(e){return Ne(e,"bpmn:Group")&&!e.labelTarget}function P3e(e){return Ne(e,"bpmn:BoundaryEvent")&&Wd(e,"bpmn:CompensateEventDefinition")}function A$(e){return sn(e).isForCompensation}function evn(e,t){var n=Oge(e),r=Oge(t);return n===r}function tvn(e){return Ne(e,"bpmn:InteractionNode")&&!Ne(e,"bpmn:BoundaryEvent")&&(!Ne(e,"bpmn:Event")||Ne(e,"bpmn:ThrowEvent")&&k3e(e,"bpmn:MessageEventDefinition"))}function nvn(e){return Ne(e,"bpmn:InteractionNode")&&!A$(e)&&(!Ne(e,"bpmn:Event")||Ne(e,"bpmn:CatchEvent")&&k3e(e,"bpmn:MessageEventDefinition"))&&!(Ne(e,"bpmn:BoundaryEvent")&&!Wd(e,"bpmn:MessageEventDefinition"))}function Ige(e){for(var t=e;t=t.parent;){if(Ne(t,"bpmn:FlowElementsContainer"))return sn(t);if(Ne(t,"bpmn:Participant"))return sn(t).processRef}return null}function D3e(e,t){var n=Ige(e),r=Ige(t);return n===r}function Wd(e,t){var n=sn(e);return!!Br(n.eventDefinitions||[],function(r){return Ne(r,t)})}function k3e(e,t){var n=sn(e);return(n.eventDefinitions||[]).every(function(r){return Ne(r,t)})}function rvn(e){return Ne(e,"bpmn:FlowNode")&&!Ne(e,"bpmn:EndEvent")&&!gs(e)&&!(Ne(e,"bpmn:IntermediateThrowEvent")&&Wd(e,"bpmn:LinkEventDefinition"))&&!P3e(e)&&!A$(e)}function ivn(e){return Ne(e,"bpmn:FlowNode")&&!Ne(e,"bpmn:StartEvent")&&!Ne(e,"bpmn:BoundaryEvent")&&!gs(e)&&!(Ne(e,"bpmn:IntermediateCatchEvent")&&Wd(e,"bpmn:LinkEventDefinition"))&&!A$(e)}function ovn(e){return Ne(e,"bpmn:ReceiveTask")||Ne(e,"bpmn:IntermediateCatchEvent")&&(Wd(e,"bpmn:MessageEventDefinition")||Wd(e,"bpmn:TimerEventDefinition")||Wd(e,"bpmn:ConditionalEventDefinition")||Wd(e,"bpmn:SignalEventDefinition"))}function avn(e){for(var t=[];e;)e=e.parent,e&&t.push(e);return t}function YV(e,t){var n=avn(t);return n.indexOf(e)!==-1}function BN(e,t,n){if(GV(e)||GV(t))return null;if(!Ne(n,"bpmn:DataAssociation")){if(V3e(e,t))return{type:"bpmn:MessageFlow"};if(G3e(e,t))return{type:"bpmn:SequenceFlow"}}var r=MZ(e,t);return r||(z3e(e,t)?{type:"bpmn:Association",associationDirection:"One"}:H3e(e,t)?{type:"bpmn:Association",associationDirection:"None"}:!1)}function U0(e,t){return Lr(e)||NZ(e)?!0:Ne(t,"bpmn:Participant")&&!Nr(t)?!1:Ne(e,"bpmn:Participant")?Ne(t,"bpmn:Process")||Ne(t,"bpmn:Collaboration"):br(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:Ne(e,"bpmn:Lane")?Ne(t,"bpmn:Participant")||Ne(t,"bpmn:Lane"):Ne(e,"bpmn:BoundaryEvent")&&!svn(e)?!1:Ne(e,"bpmn:FlowElement")&&!Ne(e,"bpmn:DataStoreReference")?Ne(t,"bpmn:FlowElementsContainer")?Nr(t):br(t,["bpmn:Participant","bpmn:Lane"]):Ne(e,"bpmn:DataStoreReference")&&Ne(t,"bpmn:Collaboration")?Kh(sn(t).get("participants"),function(n){return!!n.get("processRef")}):br(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?br(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):Ne(e,"bpmn:MessageFlow")?Ne(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t:!1}function svn(e){return sn(e).cancelActivity&&(L3e(e)||$3e(e))}function lvn(e){return!Lr(e)&&Ne(e,"bpmn:BoundaryEvent")}function cvn(e){return Ne(e,"bpmn:Lane")}function uvn(e){return lvn(e)||Ne(e,"bpmn:IntermediateThrowEvent")&&L3e(e)?!0:Ne(e,"bpmn:IntermediateCatchEvent")&&$3e(e)}function L3e(e){var t=sn(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function $3e(e){return F3e(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function F3e(e,t){return t.some(function(n){return Wd(e,n)})}function dvn(e){return Ne(e,"bpmn:ReceiveTask")&&Br(e.incoming,function(t){return Ne(t.source,"bpmn:EventBasedGateway")})}function f1(e,t,n,r){if(Array.isArray(e)||(e=[e]),e.length!==1)return!1;var i=e[0];return Lr(i)||!uvn(i)||gs(t)||!Ne(t,"bpmn:Activity")||A$(t)||r&&!A3e(r,t)||dvn(t)?!1:"attach"}function B3e(e,t,n){if(!t)return!1;var r={replacements:[]};return Ze(e,function(i){gs(t)||Ne(i,"bpmn:StartEvent")&&i.type!=="label"&&U0(i,t)&&(rfn(i)||r.replacements.push({oldElementId:i.id,newElementType:"bpmn:StartEvent"}),(ifn(i)||ofn(i)||afn(i))&&r.replacements.push({oldElementId:i.id,newElementType:"bpmn:StartEvent"}),F3e(i,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&Ne(t,"bpmn:SubProcess")&&r.replacements.push({oldElementId:i.id,newElementType:"bpmn:StartEvent"})),Ne(t,"bpmn:Transaction")||Wd(i,"bpmn:CancelEventDefinition")&&i.type!=="label"&&(Ne(i,"bpmn:EndEvent")&&U0(i,t)&&r.replacements.push({oldElementId:i.id,newElementType:"bpmn:EndEvent"}),Ne(i,"bpmn:BoundaryEvent")&&f1(i,t,null,n)&&r.replacements.push({oldElementId:i.id,newElementType:"bpmn:BoundaryEvent"}))}),r.replacements.length?r:!1}function U3e(e,t){return Kh(e,cvn)?!1:t?e.every(function(n){return U0(n,t)}):!0}function qV(e,t,n,r){return t?Lr(e)||NZ(e)?!0:Jgn(n,t)||n&&YV(n,t)?!1:U0(e,t)||LP(e,t):!1}function j3e(e,t){return Ne(e,"bpmn:SubProcess")?Nr(e)&&(!t||t.width>=100&&t.height>=80):!!(Ne(e,"bpmn:Lane")||Ne(e,"bpmn:Participant")||WV(e)||NZ(e))}function fvn(e,t){var n=WV(e),r=WV(t);return(n||r)&&n!==r}function H3e(e,t){return YV(t,e)||YV(e,t)?!1:fvn(e,t)?!0:!!MZ(e,t)}function z3e(e,t){return D3e(e,t)&&P3e(e)&&Ne(t,"bpmn:Activity")&&!mvn(t,e)&&!gs(t)}function V3e(e,t){return Nge(e)&&!Nge(t)?!1:tvn(e)&&nvn(t)&&!evn(e,t)}function G3e(e,t){return rvn(e)&&ivn(t)&&D3e(e,t)&&!(Ne(e,"bpmn:EventBasedGateway")&&!ovn(t))}function MZ(e,t){return br(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&br(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:br(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&br(e,["bpmn:Activity","bpmn:CatchEvent"])?{type:"bpmn:DataOutputAssociation"}:!1}function LP(e,t,n){if(!t)return!1;if(Array.isArray(e)){if(e.length!==1)return!1;e=e[0]}return t.source===e||t.target===e?!1:br(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Lr(t)&&Ne(e,"bpmn:FlowNode")&&!Ne(e,"bpmn:BoundaryEvent")&&U0(e,t.parent)}function pvn(e,t){return e&&t&&e.indexOf(t)!==-1}function W3e(e,t){return Lr(t)?!0:!(Ne(t,"bpmn:Lane")&&!pvn(e,t.parent))}function Nge(e){return F0(e,"bpmn:Process")||F0(e,"bpmn:Collaboration")}function mvn(e,t){return e.attachers.includes(t)}const hvn={__depends__:[Ef],__init__:["bpmnRules"],bpmnRules:["type",La]};var gvn=2e3;function Y3e(e,t){e.on("saveXML.start",gvn,n);function n(){var r=t.getRootElements();Ze(r,function(i){var o=kr(i),a,s;a=RT([i],!1),a=Cr(a,function(l){return l!==i&&!l.labelTarget}),s=Ya(a,kr),o.set("planeElement",s)})}}Y3e.$inject=["eventBus","canvas"];const vvn={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",Y3e]};function P$(e){Jt.call(this,e);var t=this;this.preExecute(["shape.create","connection.create"],function(n){var r=n.context,i=r.shape||r.connection,o=r.parent,a=t.getOrdering(i,o);a&&(a.parent!==void 0&&(r.parent=a.parent),r.parentIndex=a.index)}),this.preExecute(["shape.move","connection.move"],function(n){var r=n.context,i=r.shape||r.connection,o=r.newParent||i.parent,a=t.getOrdering(i,o);a&&(a.parent!==void 0&&(r.newParent=a.parent),r.newParentIndex=a.index)})}P$.prototype.getOrdering=function(e,t){return null};Rn(P$,Jt);function AZ(e,t){P$.call(this,e);var n=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:9,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:TextAnnotation",order:{level:9}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(a){if(a.labelTarget)return{level:10};var s=Br(n,function(l){return br(a,[l.type])});return s&&s.order||{level:1}}function i(a){var s=a.order;if(s||(a.order=s=r(a)),!s)throw new Error(`no order for <${a.id}>`);return s}function o(a,s,l){for(var c=s;c&&!br(c,l);)c=c.parent;if(!c)throw new Error(`no parent for <${a.id}> in <${s&&s.id}>`);return c}this.getOrdering=function(a,s){if(a.labelTarget||Ne(a,"bpmn:TextAnnotation"))return{parent:t.findRoot(s)||t.getRootElement(),index:-1};var l=i(a);l.containers&&(s=o(a,s,l.containers));var c=s.children.indexOf(a),u=qke(s.children,function(d){return!a.labelTarget&&d.labelTarget?!1:l.level<i(d).level});return u!==-1&&c!==-1&&c<u&&(u-=1),{index:u,parent:s}}}AZ.$inject=["eventBus","canvas"];Rn(AZ,P$);const _vn={__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",AZ]};function BT(){}BT.prototype.get=function(){return this._data};BT.prototype.set=function(e){this._data=e};BT.prototype.clear=function(){var e=this._data;return delete this._data,e};BT.prototype.isEmpty=function(){return!this._data};const yvn={clipboard:["type",BT]};var bvn="drop-ok",Mge="drop-not-ok",Age="attach-ok",Pge="new-parent",Dge="create",Svn=2e3;function q3e(e,t,n,r,i){function o(l,c,u,d,f){if(!c)return!1;l=Cr(l,function(_){var b=_.labelTarget;return!_.parent&&!(Lr(_)&&l.indexOf(b)!==-1)});var p=Br(l,function(_){return!pi(_)}),h=!1,g=!1,v=!1;Lge(l)&&(h=i.allowed("shape.attach",{position:u,shape:p,target:c})),h||(Lge(l)?v=i.allowed("shape.create",{position:u,shape:p,source:d,target:c}):v=i.allowed("elements.create",{elements:l,position:u,target:c}));var y=f.connectionTarget;return v||h?(p&&d&&(g=i.allowed("connection.create",{source:y===d?p:d,target:y===d?d:p,hints:{targetParent:c,targetAttach:h}})),{attach:h,connect:g}):v===null||h===null?null:!1}function a(l,c){[Age,bvn,Mge,Pge].forEach(function(u){u===c?e.addMarker(l,u):e.removeMarker(l,u)})}n.on(["create.move","create.hover"],function(l){var c=l.context,u=c.elements,d=l.hover,f=c.source,p=c.hints||{};if(!d){c.canExecute=!1,c.target=null;return}kge(l);var h={x:l.x,y:l.y},g=c.canExecute=d&&o(u,d,h,f,p);d&&g!==null&&(c.target=d,g&&g.attach?a(d,Age):a(d,g?Pge:Mge))}),n.on(["create.end","create.out","create.cleanup"],function(l){var c=l.hover;c&&a(c,null)}),n.on("create.end",function(l){var c=l.context,u=c.source,d=c.shape,f=c.elements,p=c.target,h=c.canExecute,g=h&&h.attach,v=h&&h.connect,y=c.hints||{};if(h===!1||!p)return!1;kge(l);var _={x:l.x,y:l.y};v?d=r.appendShape(u,d,_,p,{attach:g,connection:v===!0?{}:v,connectionTarget:y.connectionTarget}):(f=r.createElements(f,_,p,lt({},y,{attach:g})),d=Br(f,function(b){return!pi(b)})),lt(c,{elements:f,shape:d}),lt(l,{elements:f,shape:d})});function s(){var l=t.context();l&&l.prefix===Dge&&t.cancel()}n.on("create.init",function(){n.on("elements.changed",s),n.once(["create.cancel","create.end"],Svn,function(){n.off("elements.changed",s)})}),this.start=function(l,c,u){lr(c)||(c=[c]);var d=Br(c,function(h){return!pi(h)});if(d){u=lt({elements:c,hints:{},shape:d},u||{}),Ze(c,function(h){Jn(h.x)||(h.x=0),Jn(h.y)||(h.y=0)});var f=Cr(c,function(h){return!h.hidden}),p=oa(f);Ze(c,function(h){pi(h)&&(h.waypoints=Ya(h.waypoints,function(g){return{x:g.x-p.x-p.width/2,y:g.y-p.y-p.height/2}})),lt(h,{x:h.x-p.x-p.width/2,y:h.y-p.y-p.height/2})}),t.init(l,Dge,{cursor:"grabbing",autoActivate:!0,data:{shape:d,elements:c,context:u}})}}}q3e.$inject=["canvas","dragging","eventBus","modeling","rules"];function kge(e){var t=e.context,n=t.createConstraints;n&&(n.left&&(e.x=Math.max(e.x,n.left)),n.right&&(e.x=Math.min(e.x,n.right)),n.top&&(e.y=Math.max(e.y,n.top)),n.bottom&&(e.y=Math.min(e.y,n.bottom)))}function Lge(e){return e&&e.length===1&&!pi(e[0])}var Evn=750;function K3e(e,t,n,r,i){function o(a){var s=Bn("g");Cn(s,i.cls("djs-drag-group",["no-events"]));var l=Bn("g");return a.forEach(function(c){var u;c.hidden||(c.waypoints?(u=n._createContainer("connection",l),n.drawConnection(Pv(u),c)):(u=n._createContainer("shape",l),n.drawShape(Pv(u),c),Na(u,c.x,c.y)),r.addDragger(c,s,u))}),s}t.on("create.move",Evn,function(a){var s=a.hover,l=a.context,c=l.elements,u=l.dragGroup;u||(u=l.dragGroup=o(c));var d;s?(u.parentNode||(d=e.getActiveLayer(),nr(d,u)),Na(u,a.x,a.y)):Vo(u)}),t.on("create.cleanup",function(a){var s=a.context,l=s.dragGroup;l&&Vo(l)})}K3e.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];const D$={__depends__:[em,JS,Ef,bd],__init__:["create","createPreview"],create:["type",q3e],createPreview:["type",K3e]};function PZ(e){var t=this;this._lastMoveEvent=null;function n(r){t._lastMoveEvent=r}e.on("canvas.init",function(r){var i=t._svg=r.svg;i.addEventListener("mousemove",n)}),e.on("canvas.destroy",function(){t._lastMouseEvent=null,t._svg.removeEventListener("mousemove",n)})}PZ.$inject=["eventBus"];PZ.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||Cvn(0,0)};function Cvn(e,t){var n=document.createEvent("MouseEvent"),r=e,i=t,o=e,a=t;return n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,r,i,o,a,!1,!1,!1,!1,0,null),n}const UT={__init__:["mouse"],mouse:["type",PZ]};function Sd(e,t,n,r,i,o,a,s){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=r,this._eventBus=i,this._modeling=o,this._mouse=a,this._rules=s,i.on("copyPaste.copyElement",function(l){var c=l.descriptor,u=l.element,d=l.elements;c.priority=1,c.id=u.id;var f=Br(d,function(p){return p===u.parent});f&&(c.parent=u.parent.id),wvn(u)&&(c.priority=2,c.host=u.host.id),pi(u)&&(c.priority=3,c.source=u.source.id,c.target=u.target.id,c.waypoints=xvn(u)),Lr(u)&&(c.priority=4,c.labelTarget=u.labelTarget.id),Ze(["x","y","width","height"],function(p){Jn(u[p])&&(c[p]=u[p])}),c.hidden=u.hidden,c.collapsed=u.collapsed}),i.on("copyPaste.pasteElements",function(l){var c=l.hints;lt(c,{createElementsBehavior:!1})})}Sd.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"];Sd.prototype.copy=function(e){var t,n;return lr(e)||(e=e?[e]:[]),t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}),t===!1?n={}:n=this.createTree(lr(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n};Sd.prototype.paste=function(e){var t=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var r=this._createElements(t);if(e&&e.element&&e.point)return this._paste(r,e.element,e.point,n);this._create.start(this._mouse.getLastMoveEvent(),r,{hints:n||{}})}};Sd.prototype._paste=function(e,t,n,r){Ze(e,function(o){Jn(o.x)||(o.x=0),Jn(o.y)||(o.y=0)});var i=oa(e);return Ze(e,function(o){pi(o)&&(o.waypoints=Ya(o.waypoints,function(a){return{x:a.x-i.x-i.width/2,y:a.y-i.y-i.height/2}})),lt(o,{x:o.x-i.x-i.width/2,y:o.y-i.y-i.height/2})}),this._modeling.createElements(e,n,t,lt({},r))};Sd.prototype._createElements=function(e){var t=this,n=this._eventBus,r={},i=[];return Ze(e,function(o,a){o=uf(o,"priority"),Ze(o,function(s){var l=lt({},yf(s,["priority"]));r[s.parent]?l.parent=r[s.parent]:delete l.parent,n.fire("copyPaste.pasteElement",{cache:r,descriptor:l});var c;if(pi(l)){l.source=r[s.source],l.target=r[s.target],c=r[s.id]=t.createConnection(l),i.push(c);return}if(Lr(l)){l.labelTarget=r[l.labelTarget],c=r[s.id]=t.createLabel(l),i.push(c);return}l.host&&(l.host=r[l.host]),c=r[s.id]=t.createShape(l),i.push(c)})}),i};Sd.prototype.createConnection=function(e){var t=this._elementFactory.createConnection(yf(e,["id"]));return t};Sd.prototype.createLabel=function(e){var t=this._elementFactory.createLabel(yf(e,["id"]));return t};Sd.prototype.createShape=function(e){var t=this._elementFactory.createShape(yf(e,["id"]));return t};Sd.prototype.hasRelations=function(e,t){var n,r,i;return!(pi(e)&&(r=Br(t,Xu({id:e.source.id})),i=Br(t,Xu({id:e.target.id})),!r||!i)||Lr(e)&&(n=Br(t,Xu({id:e.labelTarget.id})),!n))};Sd.prototype.createTree=function(e){var t=this._rules,n=this,r={},i=[],o=a$(e);function a(c,u){return t.allowed("element.copy",{element:c,elements:u})}function s(c,u){var d=Br(i,function(f){return c===f.element});if(!d){i.push({element:c,depth:u});return}d.depth<u&&(i=l(d,i),i.push({element:d.element,depth:u}))}function l(c,u){var d=u.indexOf(c);return d!==-1&&u.splice(d,1),u}return Y_(o,function(c,u,d){if(Lr(c))return;Ze(c.labels,function(h){s(h,d)});function f(h){h&&h.length&&Ze(h,function(g){Ze(g.labels,function(v){s(v,d)}),s(g,d)})}Ze([c.attachers,c.incoming,c.outgoing],f),s(c,d);var p=[];return c.children&&(p=c.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:c,children:p}),p}),e=Ya(i,function(c){return c.element}),i=Ya(i,function(c){return c.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:c.descriptor,element:c.element,elements:e}),c}),i=uf(i,function(c){return c.descriptor.priority}),e=Ya(i,function(c){return c.element}),Ze(i,function(c){var u=c.depth;if(!n.hasRelations(c.element,e)){Fge(c.element,e);return}if(!a(c.element,e)){Fge(c.element,e);return}r[u]||(r[u]=[]),r[u].push(c.descriptor)}),r};function wvn(e){return!!e.host}function xvn(e){return Ya(e.waypoints,function(t){return t=$ge(t),t.original&&(t.original=$ge(t.original)),t})}function $ge(e){return lt({},e)}function Fge(e,t){var n=t.indexOf(e);return n===-1?t:t.splice(n,1)}const Tvn={__depends__:[yvn,D$,UT,Ef],__init__:["copyPaste"],copyPaste:["type",Sd]};function dU(e,t,n){lr(n)||(n=[n]),Ze(n,function(r){f_(e[r])||(t[r]=e[r])})}var fU=750;function Q3e(e,t,n){function r(l,c){var u=e.create(l.$type);return n.copyElement(l,u,null,c)}t.on("copyPaste.copyElement",fU,function(l){var c=l.descriptor,u=l.element,d=sn(u);if(Lr(u))return c;var f=c.businessObject=r(d,!0),p=c.di=r(kr(u),!0);p.bpmnElement=f,dU(f,c,"name"),dU(p,c,"isExpanded"),d.default&&(c.default=d.default.id)});var i="-bpmn-js-refs";function o(l){return l[i]=l[i]||{}}function a(l,c){l[i]=c}function s(l,c,u){var d=sn(l);return l.default&&(u[l.default]={element:d,property:"default"}),l.host&&(sn(l).attachedToRef=sn(c[l.host])),yf(u,vl(u,function(f,p,h){var g=p.element,v=p.property;return h===l.id&&(g.set(v,d),f.push(l.id)),f},[]))}t.on("copyPaste.pasteElement",function(l){var c=l.cache,u=l.descriptor,d=u.businessObject,f=u.di;if(Lr(u)){u.businessObject=sn(c[u.labelTarget]),u.di=kr(c[u.labelTarget]);return}d=u.businessObject=r(d),f=u.di=r(f),f.bpmnElement=d,dU(u,d,["isExpanded","name"]),u.type=d.$type}),t.on("copyPaste.copyElement",fU,function(l){var c=l.descriptor,u=l.element;if(Ne(u,"bpmn:Participant")){var d=sn(u);d.processRef&&(c.processRef=r(d.processRef,!0))}}),t.on("copyPaste.pasteElement",function(l){var c=l.descriptor,u=c.processRef;u&&(c.processRef=r(u))}),t.on("copyPaste.pasteElement",fU,function(l){var c=l.cache,u=l.descriptor;a(c,s(u,c,o(c)))})}Q3e.$inject=["bpmnFactory","eventBus","moddleCopy"];var Rvn=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"];function jT(e,t,n){this._bpmnFactory=t,this._eventBus=e,this._moddle=n,e.on("moddleCopy.canCopyProperties",function(r){var i=r.propertyNames;if(!(!i||!i.length))return uf(i,function(o){return o==="extensionElements"})}),e.on("moddleCopy.canCopyProperty",function(r){var i=r.parent,o=ba(i)&&i.$descriptor,a=r.propertyName;if(a&&Rvn.indexOf(a)!==-1||a&&o&&!Br(o.properties,Xu({name:a})))return!1}),e.on("moddleCopy.canSetCopiedProperty",function(r){var i=r.property;if(Ovn(i,"bpmn:ExtensionElements")&&(!i.values||!i.values.length))return!1})}jT.$inject=["eventBus","bpmnFactory","moddle"];jT.prototype.copyElement=function(e,t,n,r=!1){var i=this;n&&!lr(n)&&(n=[n]),n=n||KV(e.$descriptor);var o=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t,clone:r});return o===!1||(lr(o)&&(n=o),Ze(n,function(a){var s;Ls(e,a)&&(s=e.get(a));var l=i.copyProperty(s,t,a,r);if(pa(l)){var c=i._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:l,propertyName:a});c!==!1&&t.set(a,l)}})),t};jT.prototype.copyProperty=function(e,t,n,r=!1){var i=this,o=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n,clone:r});if(o!==!1){if(o)return ba(o)&&o.$type&&!o.$parent&&(o.$parent=t),o;var a=this._moddle.getPropertyDescriptor(t,n);if(!a.isReference)return a.isId?e&&this._copyId(e,t,r):lr(e)?vl(e,function(s,l){return o=i.copyProperty(l,t,n,r),o?s.concat(o):s},[]):ba(e)&&e.$type?this._moddle.getElementDescriptor(e).isGeneric?void 0:(o=i._bpmnFactory.create(e.$type),o.$parent=t,o=i.copyElement(e,o,null,r),o):e}};jT.prototype._copyId=function(e,t,n=!1){if(n)return e;if(!this._moddle.ids.assigned(e))return this._moddle.ids.claim(e,t),e};function KV(e,t){return vl(e.properties,function(n,r){return t&&r.default?n:n.concat(r.name)},[])}function Ovn(e,t){return e&&Go(e.$instanceOf)&&e.$instanceOf(t)}const X3e={__depends__:[Tvn],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",Q3e],moddleCopy:["type",jT]};var Bge=Math.round;function DZ(e,t){this._modeling=e,this._eventBus=t}DZ.$inject=["modeling","eventBus"];DZ.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var r=this._modeling,i=this._eventBus;i.fire("replace.start",{element:e,attrs:t,hints:n});var o=t.width||e.width,a=t.height||e.height,s=t.x||e.x,l=t.y||e.y,c=Bge(s+o/2),u=Bge(l+a/2),d=r.replaceShape(e,lt({},t,{x:c,y:u,width:o,height:a}),n);return i.fire("replace.end",{element:e,newElement:d,hints:n}),d};function Z3e(e,t){t.on("replace.end",500,function(n){const{newElement:r,hints:i={}}=n;i.select!==!1&&e.select(r)})}Z3e.$inject=["selection","eventBus"];const Ivn={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",Z3e],replace:["type",DZ]};function Nvn(e,t,n){lr(n)||(n=[n]),Ze(n,function(r){f_(e[r])||(t[r]=e[r])})}var Mvn=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function Avn(e,t){var n=e&&Ls(e,"collapsed")?e.collapsed:!Nr(e),r;return t&&(Ls(t,"collapsed")||Ls(t,"isExpanded"))?r=Ls(t,"collapsed")?t.collapsed:!t.isExpanded:r=n,n!==r}function J3e(e,t,n,r,i,o){function a(s,l,c){c=c||{};var u=l.type,d=s.businessObject;if(iI(d)&&(u==="bpmn:SubProcess"||u==="bpmn:AdHocSubProcess")&&Avn(s,l))return r.toggleCollapse(s),s;var f=e.create(u),p={type:u,businessObject:f};p.di={},u==="bpmn:ExclusiveGateway"&&(p.di.isMarkerVisible=!0),Nvn(s.di,p.di,["fill","stroke","background-color","border-color","color"]);var h=KV(d.$descriptor),g=KV(f.$descriptor,!0),v=Pvn(h,g);lt(f,ld(l,Mvn));var y=Cr(v,function(S){return S==="eventDefinitions"?Uge(s,l.eventDefinitionType):S==="loopCharacteristics"?!gs(f):Ls(f,S)||S==="processRef"&&l.isExpanded===!1||S==="triggeredByEvent"?!1:S==="isForCompensation"?!gs(f):!0});if(f=n.copyElement(d,f,y),l.eventDefinitionType&&(Uge(f,l.eventDefinitionType)||(p.eventDefinitionType=l.eventDefinitionType,p.eventDefinitionAttrs=l.eventDefinitionAttrs)),Ne(d,"bpmn:Activity")){if(iI(d))p.isExpanded=Nr(s);else if(l&&Ls(l,"isExpanded")){p.isExpanded=l.isExpanded;var _=t.getDefaultSize(f,{isExpanded:p.isExpanded});p.width=_.width,p.height=_.height,p.x=s.x-(p.width-s.width)/2,p.y=s.y-(p.height-s.height)/2}Nr(s)&&!Ne(d,"bpmn:Task")&&p.isExpanded&&(p.width=s.width,p.height=s.height)}if(iI(d)&&!iI(f)&&(c.moveChildren=!1),Ne(d,"bpmn:Participant")){l.isExpanded===!0?f.processRef=e.create("bpmn:Process"):c.moveChildren=!1;var b=aa(s);kr(s).isHorizontal||(kr(p).isHorizontal=b),p.width=b?s.width:t.getDefaultSize(p).width,p.height=b?t.getDefaultSize(p).height:s.height}return o.allowed("shape.resize",{shape:f})||(p.height=t.getDefaultSize(p).height,p.width=t.getDefaultSize(p).width),f.name=d.name,br(d,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&br(f,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(f.default=d.default),l.host&&!Ne(d,"bpmn:BoundaryEvent")&&Ne(f,"bpmn:BoundaryEvent")&&(p.host=l.host),(p.type==="bpmn:DataStoreReference"||p.type==="bpmn:DataObjectReference")&&(p.x=s.x+(s.width-p.width)/2),i.replaceElement(s,p,{...c,targetElement:l})}this.replaceElement=a}J3e.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];function iI(e){return Ne(e,"bpmn:SubProcess")}function Uge(e,t){var n=sn(e);return t&&n.get("eventDefinitions").some(function(r){return Ne(r,t)})}function Pvn(e,t){return e.filter(function(n){return t.includes(n)})}const e4e={__depends__:[X3e,Ivn,bd],bpmnReplace:["type",J3e]};var Dvn=250;function X_(e){this._eventBus=e,this._tools=[],this._active=null}X_.$inject=["eventBus"];X_.prototype.registerTool=function(e,t){var n=this._tools;if(!t)throw new Error(`A tool has to be registered with it's "events"`);n.push(e),this.bindEvents(e,t)};X_.prototype.isActive=function(e){return e&&this._active===e};X_.prototype.length=function(e){return this._tools.length};X_.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))};X_.prototype.bindEvents=function(e,t){var n=this._eventBus,r=[];n.on(t.tool+".init",function(i){var o=i.context;if(!o.reactivate&&this.isActive(e)){this.setActive(null);return}this.setActive(e)},this),Ze(t,function(i){r.push(i+".ended"),r.push(i+".canceled")}),n.on(r,Dvn,function(i){this._active&&(kvn(i)||this.setActive(null))},this)};function kvn(e){var t=e.originalEvent&&e.originalEvent.target;return t&&HS(t,'.group[data-group="tools"]')}const k$={__depends__:[em],__init__:["toolManager"],toolManager:["type",X_]};function Lvn(e,t){if(e==="x"){if(t>0)return"e";if(t<0)return"w"}if(e==="y"){if(t>0)return"s";if(t<0)return"n"}return null}function $vn(e,t){var n=[];return Ze(e.concat(t),function(r){var i=r.incoming,o=r.outgoing;Ze(i.concat(o),function(a){var s=a.source,l=a.target;(XE(e,s)||XE(e,l)||XE(t,s)||XE(t,l))&&(XE(n,a)||n.push(a))})}),n}function XE(e,t){return e.indexOf(t)!==-1}function Fvn(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=n.x,l=n.y;switch(t){case"n":return{x:r,y:i+l,width:o,height:a-l};case"s":return{x:r,y:i,width:o,height:a+l};case"w":return{x:r+s,y:i,width:o-s,height:a};case"e":return{x:r,y:i,width:o+s,height:a};default:throw new Error("unknown direction: "+t)}}var pU=Math.abs,Bvn=Math.round,$f={x:"width",y:"height"},t4e="crosshair",_m={n:"top",w:"left",s:"bottom",e:"right"},Uvn=1500,oI={n:"s",w:"e",s:"n",e:"w"},aI=20;function fu(e,t,n,r,i,o,a){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=r,this._rules=i,this._toolManager=o,this._mouse=a;var s=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",function(l){n.once("spaceTool.selection.ended",function(){s.activateMakeSpace(l.originalEvent)})}),n.on("spaceTool.move",Uvn,function(l){var c=l.context,u=c.initialized;u||(u=c.initialized=s.init(l,c)),u&&Hge(l)}),n.on("spaceTool.end",function(l){var c=l.context,u=c.axis,d=c.direction,f=c.movingShapes,p=c.resizingShapes,h=c.start;if(c.initialized){Hge(l);var g={x:0,y:0};g[u]=Bvn(l["d"+u]),s.makeSpace(f,p,g,d,h),n.once("spaceTool.ended",function(v){s.activateSelection(v.originalEvent,!0,!0)})}})}fu.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"];fu.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:t4e,data:{context:{reactivate:n}},trapClick:!1})};fu.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:t4e,data:{context:{}}})};fu.prototype.makeSpace=function(e,t,n,r,i){return this._modeling.createSpace(e,t,n,r,i)};fu.prototype.init=function(e,t){var n=pU(e.dx)>pU(e.dy)?"x":"y",r=e["d"+n],i=e[n]-r;if(pU(r)<5)return!1;r<0&&(r*=-1),jw(e)&&(r*=-1);var o=Lvn(n,r),a=this._canvas.getRootElement();!OP(e)&&e.hover&&(a=e.hover);var s=[...RT(a,!0),...a.attachers||[]],l=this.calculateAdjustments(s,n,r,i),c=this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:l.resizingShapes,start:i}),u=jvn(l,n,o,i,c);return lt(t,l,{axis:n,direction:o,spaceToolConstraints:u,start:i}),_$("resize-"+(n==="x"?"ew":"ns")),!0};fu.prototype.calculateAdjustments=function(e,t,n,r){var i=this._rules,o=[],a=[],s=[],l=[];function c(f){o.includes(f)||o.push(f);var p=f.label;p&&!o.includes(p)&&o.push(p)}function u(f){a.includes(f)||a.push(f)}Ze(e,function(f){if(!(!f.parent||Lr(f))){if(pi(f)){l.push(f);return}var p=f[t],h=p+f[$f[t]];if(Hvn(f)&&(n>0&&er(f)[t]>r||n<0&&er(f)[t]<r)){s.push(f);return}if(n>0&&p>r||n<0&&h<r){c(f);return}if(p<r&&h>r&&i.allowed("shape.resize",{shape:f})){u(f);return}}}),Ze(o,function(f){var p=f.attachers;p&&Ze(p,function(h){c(h)})});var d=o.concat(a);return Ze(s,function(f){var p=f.host;cv(d,p)&&c(f)}),d=o.concat(a),Ze(l,function(f){var p=f.source,h=f.target,g=f.label;cv(d,p)&&cv(d,h)&&g&&c(g)}),{movingShapes:o,resizingShapes:a}};fu.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};fu.prototype.isActive=function(){var e=this._dragging.context();return e?/^spaceTool/.test(e.prefix):!1};function jge(e){return{top:e.top-aI,right:e.right+aI,bottom:e.bottom+aI,left:e.left-aI}}function Hge(e){var t=e.context,n=t.spaceToolConstraints;if(n){var r,i;Jn(n.left)&&(r=Math.max(e.x,n.left),e.dx=e.dx+r-e.x,e.x=r),Jn(n.right)&&(r=Math.min(e.x,n.right),e.dx=e.dx+r-e.x,e.x=r),Jn(n.top)&&(i=Math.max(e.y,n.top),e.dy=e.dy+i-e.y,e.y=i),Jn(n.bottom)&&(i=Math.min(e.y,n.bottom),e.dy=e.dy+i-e.y,e.y=i)}}function jvn(e,t,n,r,i){var o=e.movingShapes,a=e.resizingShapes;if(a.length){var s={},l,c;return Ze(a,function(u){var d=u.attachers,f=u.children,p=Gn(u),h=Cr(f,function(R){return!pi(R)&&!Lr(R)&&!cv(o,R)&&!cv(a,R)}),g=Cr(f,function(R){return!pi(R)&&!Lr(R)&&cv(o,R)}),v,y,_,b=[],S=[],C,E,w,x;h.length&&(y=jge(Gn(oa(h))),v=r-p[_m[n]]+y[_m[n]],n==="n"?s.bottom=c=Jn(c)?Math.min(c,v):v:n==="w"?s.right=c=Jn(c)?Math.min(c,v):v:n==="s"?s.top=l=Jn(l)?Math.max(l,v):v:n==="e"&&(s.left=l=Jn(l)?Math.max(l,v):v)),g.length&&(_=jge(Gn(oa(g))),v=r-_[_m[oI[n]]]+p[_m[oI[n]]],n==="n"?s.bottom=c=Jn(c)?Math.min(c,v):v:n==="w"?s.right=c=Jn(c)?Math.min(c,v):v:n==="s"?s.top=l=Jn(l)?Math.max(l,v):v:n==="e"&&(s.left=l=Jn(l)?Math.max(l,v):v)),d&&d.length&&(d.forEach(function(R){cv(o,R)?b.push(R):S.push(R)}),b.length&&(C=Gn(oa(b.map(er))),E=p[_m[oI[n]]]-(C[_m[oI[n]]]-r)),S.length&&(w=Gn(oa(S.map(er))),x=w[_m[n]]-(p[_m[n]]-r)),n==="n"?(v=Math.min(E||1/0,x||1/0),s.bottom=c=Jn(c)?Math.min(c,v):v):n==="w"?(v=Math.min(E||1/0,x||1/0),s.right=c=Jn(c)?Math.min(c,v):v):n==="s"?(v=Math.max(E||-1/0,x||-1/0),s.top=l=Jn(l)?Math.max(l,v):v):n==="e"&&(v=Math.max(E||-1/0,x||-1/0),s.left=l=Jn(l)?Math.max(l,v):v));var T=i&&i[u.id];T&&(n==="n"?(v=r+u[$f[t]]-T[$f[t]],s.bottom=c=Jn(c)?Math.min(c,v):v):n==="w"?(v=r+u[$f[t]]-T[$f[t]],s.right=c=Jn(c)?Math.min(c,v):v):n==="s"?(v=r-u[$f[t]]+T[$f[t]],s.top=l=Jn(l)?Math.max(l,v):v):n==="e"&&(v=r-u[$f[t]]+T[$f[t]],s.left=l=Jn(l)?Math.max(l,v):v))}),s}}function cv(e,t){return e.indexOf(t)!==-1}function Hvn(e){return!!e.host}var mU="djs-dragging",zge="djs-resizing",zvn=250,sI=Math.max;function n4e(e,t,n,r,i){function o(a,s){Ze(a,function(l){i.addDragger(l,s),n.addMarker(l,mU)})}e.on("spaceTool.selection.start",function(a){var s=n.getLayer("space"),l=a.context,c={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},u=Bn("g");Cn(u,r.cls("djs-crosshair-group",["no-events"])),nr(s,u);var d=Bn("path");Cn(d,"d",c.x),Dr(d).add("djs-crosshair"),nr(u,d);var f=Bn("path");Cn(f,"d",c.y),Dr(f).add("djs-crosshair"),nr(u,f),l.crosshairGroup=u}),e.on("spaceTool.selection.move",function(a){var s=a.context.crosshairGroup;Na(s,a.x,a.y)}),e.on("spaceTool.selection.cleanup",function(a){var s=a.context,l=s.crosshairGroup;l&&Vo(l)}),e.on("spaceTool.move",zvn,function(a){var s=a.context,l=s.line,c=s.axis,u=s.movingShapes,d=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var f=n.getLayer("space");l=Bn("path"),Cn(l,"d","M0,0 L0,0"),Dr(l).add("djs-crosshair"),nr(f,l),s.line=l;var p=Bn("g");Cn(p,r.cls("djs-drag-group",["no-events"])),nr(n.getActiveLayer(),p),o(u,p);var h=s.movingConnections=t.filter(function(S){var C=!1;Ze(u,function(T){Ze(T.outgoing,function(R){S===R&&(C=!0)})});var E=!1;Ze(u,function(T){Ze(T.incoming,function(R){S===R&&(E=!0)})});var w=!1;Ze(d,function(T){Ze(T.outgoing,function(R){S===R&&(w=!0)})});var x=!1;return Ze(d,function(T){Ze(T.incoming,function(R){S===R&&(x=!0)})}),pi(S)&&(C||w)&&(E||x)});o(h,p),s.dragGroup=p}if(!s.frameGroup){var g=Bn("g");Cn(g,r.cls("djs-frame-group",["no-events"])),nr(n.getActiveLayer(),g);var v=[];Ze(d,function(S){var C=i.addFrame(S,g),E=C.getBBox();v.push({element:C,initialBounds:E}),n.addMarker(S,zge)}),s.frameGroup=g,s.frames=v}var y={x:"M"+a.x+", -10000 L"+a.x+", 10000",y:"M -10000, "+a.y+" L 10000, "+a.y};Cn(l,{d:y[c]});var _={x:"y",y:"x"},b={x:a.dx,y:a.dy};b[_[s.axis]]=0,Na(s.dragGroup,b.x,b.y),Ze(s.frames,function(S){var C=S.element,E=S.initialBounds,w,x;s.direction==="e"?Cn(C,{width:sI(E.width+b.x,5)}):(w=sI(E.width-b.x,5),Cn(C,{width:w,x:E.x+E.width-w})),s.direction==="s"?Cn(C,{height:sI(E.height+b.y,5)}):(x=sI(E.height-b.y,5),Cn(C,{height:x,y:E.y+E.height-x}))})}}),e.on("spaceTool.cleanup",function(a){var s=a.context,l=s.movingShapes,c=s.movingConnections,u=s.resizingShapes,d=s.line,f=s.dragGroup,p=s.frameGroup;Ze(l,function(h){n.removeMarker(h,mU)}),Ze(c,function(h){n.removeMarker(h,mU)}),f&&(Vo(d),Vo(f)),Ze(u,function(h){n.removeMarker(h,zge)}),p&&Vo(p)})}n4e.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];const Vvn={__init__:["spaceToolPreview"],__depends__:[em,Ef,k$,JS,UT],spaceTool:["type",fu],spaceToolPreview:["type",n4e]};function L$(e){e.invoke(fu,this)}L$.$inject=["injector"];Rn(L$,fu);L$.prototype.calculateAdjustments=function(e,t,n,r){var i=fu.prototype.calculateAdjustments.call(this,e,t,n,r);return i.resizingShapes=i.resizingShapes.filter(function(o){return!(Ne(o,"bpmn:TextAnnotation")||Gvn(o)&&(t==="y"&&aa(o)||t==="x"&&!aa(o)))}),i};function Gvn(e){return Ne(e,"bpmn:Participant")&&!sn(e).processRef}const r4e={__depends__:[Vvn],spaceTool:["type",L$]};function Zi(e,t){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=t,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],function(){this.clear(!1)},this)}Zi.$inject=["eventBus","injector"];Zi.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";const n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction()};Zi.prototype.canExecute=function(e,t){const n={command:e,context:t},r=this._getHandler(e);let i=this._fire(e,"canExecute",n);if(i===void 0){if(!r)return!1;r.canExecute&&(i=r.canExecute(t))}return i};Zi.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,e!==!1&&this._fire("changed",{trigger:"clear"})};Zi.prototype.undo=function(){let e=this._getUndoAction(),t;if(e){for(this._currentExecution.trigger="undo",this._pushAction(e);e&&(this._internalUndo(e),t=this._getUndoAction(),!(!t||t.id!==e.id));)e=t;this._popAction()}};Zi.prototype.redo=function(){let e=this._getRedoAction(),t;if(e){for(this._currentExecution.trigger="redo",this._pushAction(e);e&&(this._internalExecute(e,!0),t=this._getRedoAction(),!(!t||t.id!==e.id));)e=t;this._popAction()}};Zi.prototype.register=function(e,t){this._setHandler(e,t)};Zi.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");const n=this._injector.instantiate(t);this.register(e,n)};Zi.prototype.canUndo=function(){return!!this._getUndoAction()};Zi.prototype.canRedo=function(){return!!this._getRedoAction()};Zi.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]};Zi.prototype._getUndoAction=function(){return this._stack[this._stackIdx]};Zi.prototype._internalUndo=function(e){const t=e.command,n=e.context,r=this._getHandler(t);this._atomicDo(()=>{this._fire(t,"revert",e),r.revert&&this._markDirty(r.revert(n)),this._revertedAction(e),this._fire(t,"reverted",e)})};Zi.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);const r=t?[e+"."+t,t]:[e];let i;n=this._eventBus.createEvent(n);for(const o of r)if(i=this._eventBus.fire("commandStack."+o,n),n.cancelBubble)break;return i};Zi.prototype._createId=function(){return this._uid++};Zi.prototype._atomicDo=function(e){const t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}};Zi.prototype._internalExecute=function(e,t){const n=e.command,r=e.context,i=this._getHandler(n);if(!i)throw new Error("no command handler registered for <"+n+">");this._pushAction(e),t||(this._fire(n,"preExecute",e),i.preExecute&&i.preExecute(r),this._fire(n,"preExecuted",e)),this._atomicDo(()=>{this._fire(n,"execute",e),i.execute&&this._markDirty(i.execute(r)),this._executedAction(e,t),this._fire(n,"executed",e)}),t||(this._fire(n,"postExecute",e),i.postExecute&&i.postExecute(r),this._fire(n,"postExecuted",e)),this._popAction()};Zi.prototype._pushAction=function(e){const t=this._currentExecution,n=t.actions,r=n[0];if(t.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=r&&r.id||this._createId()),n.push(e)};Zi.prototype._popAction=function(){const e=this._currentExecution,t=e.trigger,n=e.actions,r=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:Kke("id",r.reverse())}),r.length=0,this._fire("changed",{trigger:t}),e.trigger=null)};Zi.prototype._markDirty=function(e){const t=this._currentExecution;e&&(e=lr(e)?e:[e],t.dirty=t.dirty.concat(e))};Zi.prototype._executedAction=function(e,t){const n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)};Zi.prototype._revertedAction=function(e){this._stackIdx--};Zi.prototype._getHandler=function(e){return this._handlerMap[e]};Zi.prototype._setHandler=function(e,t){if(!e||!t)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=t};const Wvn={commandStack:["type",Zi]};function yh(e,t){if(typeof t!="function")throw new Error("removeFn iterator must be a function");if(e){for(var n;n=e[0];)t(n);return e}}var Yvn=250,Vge=1400;function kZ(e,t,n){Jt.call(this,t);var r=e.get("movePreview",!1);t.on("shape.move.start",Vge,function(i){var o=i.context,a=o.shapes,s=o.validatedShapes;o.shapes=Gge(a),o.validatedShapes=Gge(s)}),r&&t.on("shape.move.start",Yvn,function(i){var o=i.context,a=o.shapes,s=[];Ze(a,function(l){Ze(l.labels,function(c){!c.hidden&&o.shapes.indexOf(c)===-1&&s.push(c),l.labelTarget&&s.push(l)})}),Ze(s,function(l){r.makeDraggable(o,l,!0)})}),this.preExecuted("elements.move",Vge,function(i){var o=i.context,a=o.closure,s=a.enclosedElements,l=[];Ze(s,function(c){Ze(c.labels,function(u){s[u.id]||l.push(u)})}),a.addAll(l)}),this.preExecute(["connection.delete","shape.delete"],function(i){var o=i.context,a=o.connection||o.shape;yh(a.labels,function(s){n.removeShape(s,{nested:!0})})}),this.execute("shape.delete",function(i){var o=i.context,a=o.shape,s=a.labelTarget;s&&(o.labelTargetIndex=mX(s.labels,a),o.labelTarget=s,a.labelTarget=null)}),this.revert("shape.delete",function(i){var o=i.context,a=o.shape,s=o.labelTarget,l=o.labelTargetIndex;s&&(Xo(s.labels,a,l),a.labelTarget=s)})}Rn(kZ,Jt);kZ.$inject=["injector","eventBus","modeling"];function Gge(e){return Cr(e,function(t){return e.indexOf(t.labelTarget)===-1})}const qvn={__init__:["labelSupport"],labelSupport:["type",kZ]};var Kvn=251,Wge=1401,Yge="attach-ok";function LZ(e,t,n,r,i){Jt.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",Wge,function(a){var s=a.context,l=s.shapes,c=s.validatedShapes;s.shapes=Qvn(l),s.validatedShapes=Xvn(c)}),o&&t.on("shape.move.start",Kvn,function(a){var s=a.context,l=s.shapes,c=QV(l);Ze(c,function(u){o.makeDraggable(s,u,!0),Ze(u.labels,function(d){o.makeDraggable(s,d,!0)})})}),o&&t.on("shape.move.start",function(a){var s=a.context,l=s.shapes;if(l.length===1){var c=l[0],u=c.host;u&&(n.addMarker(u,Yge),t.once(["shape.move.out","shape.move.cleanup"],function(){n.removeMarker(u,Yge)}))}}),this.preExecuted("elements.move",Wge,function(a){var s=a.context,l=s.closure,c=s.shapes,u=QV(c);Ze(u,function(d){l.add(d,l.topLevel[d.host.id])})}),this.postExecuted("elements.move",function(a){var s=a.context,l=s.shapes,c=s.newHost,u;c&&l.length!==1||(c?u=l:u=Cr(l,function(d){var f=d.host;return Zvn(d)&&!Jvn(l,f)}),Ze(u,function(d){i.updateAttachment(d,c)}))}),this.postExecuted("elements.move",function(a){var s=a.context.shapes;Ze(s,function(l){Ze(l.attachers,function(c){Ze(c.outgoing.slice(),function(u){var d=r.allowed("connection.reconnect",{connection:u,source:u.source,target:u.target});d||i.removeConnection(u)}),Ze(c.incoming.slice(),function(u){var d=r.allowed("connection.reconnect",{connection:u,source:u.source,target:u.target});d||i.removeConnection(u)})})})}),this.postExecute("shape.create",function(a){var s=a.context,l=s.shape,c=s.host;c&&i.updateAttachment(l,c)}),this.postExecute("shape.replace",function(a){var s=a.context,l=s.oldShape,c=s.newShape;yh(l.attachers,function(u){var d=r.allowed("elements.move",{target:c,shapes:[u]});d==="attach"?i.updateAttachment(u,c):i.removeShape(u)}),c.attachers.length&&Ze(c.attachers,function(u){var d=Ege(u,l,c);i.moveShape(u,d,u.parent)})}),this.postExecute("shape.resize",function(a){var s=a.context,l=s.shape,c=s.oldBounds,u=s.newBounds,d=l.attachers,f=s.hints||{};f.attachSupport!==!1&&Ze(d,function(p){var h=Ege(p,c,u);i.moveShape(p,h,p.parent),Ze(p.labels,function(g){i.moveShape(g,h,g.parent)})})}),this.preExecute("shape.delete",function(a){var s=a.context.shape;yh(s.attachers,function(l){i.removeShape(l)}),s.host&&i.updateAttachment(s,null)})}Rn(LZ,Jt);LZ.$inject=["injector","eventBus","canvas","rules","modeling"];function QV(e){return lX(Ya(e,function(t){return t.attachers||[]}))}function Qvn(e){var t=QV(e);return jln("id",e,t)}function Xvn(e){var t=jS(e,"id");return Cr(e,function(n){for(;n;){if(n.host&&t[n.host.id])return!1;n=n.parent}return!0})}function Zvn(e){return!!e.host}function Jvn(e,t){return e.indexOf(t)!==-1}const e_n={__depends__:[Ef],__init__:["attachSupport"],attachSupport:["type",LZ]};function pu(e){this._model=e}pu.$inject=["moddle"];pu.prototype._needsId=function(e){return br(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])};pu.prototype._ensureId=function(e){if(e.id){this._model.ids.claim(e.id,e);return}var t;Ne(e,"bpmn:Activity")?t="Activity":Ne(e,"bpmn:Event")?t="Event":Ne(e,"bpmn:Gateway")?t="Gateway":br(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?t="Flow":t=(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e))};pu.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n};pu.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})};pu.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",lt({bpmnElement:e,bounds:this.createDiBounds()},t))};pu.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)};pu.prototype.createDiWaypoints=function(e){var t=this;return Ya(e,function(n){return t.createDiWaypoint(n)})};pu.prototype.createDiWaypoint=function(e){return this.create("dc:Point",ld(e,["x","y"]))};pu.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",lt({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))};pu.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",lt({bpmnElement:e},t))};function Cl(e,t,n){Jt.call(this,e),this._bpmnFactory=t;var r=this;function i(p){var h=p.context,g=h.hints||{},v;!h.cropped&&g.createElementsBehavior!==!1&&(v=h.connection,v.waypoints=n.getCroppedWaypoints(v),h.cropped=!0)}this.executed(["connection.layout","connection.create"],i),this.reverted(["connection.layout"],function(p){delete p.context.cropped});function o(p){var h=p.context;r.updateParent(h.shape||h.connection,h.oldParent)}function a(p){var h=p.context,g=h.shape||h.connection,v=h.parent||h.newParent;r.updateParent(g,v)}this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Qs(o)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Qs(a));function s(p){var h=p.context,g=h.oldRoot,v=g.children;Ze(v,function(y){Ne(y,"bpmn:BaseElement")&&r.updateParent(y)})}this.executed(["canvas.updateRoot"],s),this.reverted(["canvas.updateRoot"],s);function l(p){var h=p.context.shape;Ne(h,"bpmn:BaseElement")&&r.updateBounds(h)}this.executed(["shape.move","shape.create","shape.resize"],Qs(function(p){p.context.shape.type!=="label"&&l(p)})),this.reverted(["shape.move","shape.create","shape.resize"],Qs(function(p){p.context.shape.type!=="label"&&l(p)})),e.on("shape.changed",function(p){p.element.type==="label"&&l({context:{shape:p.element}})});function c(p){r.updateConnection(p.context)}this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Qs(c)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Qs(c));function u(p){r.updateConnectionWaypoints(p.context.connection)}this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Qs(u)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Qs(u)),this.executed("connection.reconnect",Qs(function(p){var h=p.context,g=h.connection,v=h.oldSource,y=h.newSource,_=sn(g),b=sn(v),S=sn(y);_.conditionExpression&&!br(S,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(h.oldConditionExpression=_.conditionExpression,delete _.conditionExpression),v!==y&&b.default===_&&(h.oldDefault=b.default,delete b.default)})),this.reverted("connection.reconnect",Qs(function(p){var h=p.context,g=h.connection,v=h.oldSource,y=h.newSource,_=sn(g),b=sn(v),S=sn(y);h.oldConditionExpression&&(_.conditionExpression=h.oldConditionExpression),h.oldDefault&&(b.default=h.oldDefault,delete S.default)}));function d(p){r.updateAttachment(p.context)}this.executed(["element.updateAttachment"],Qs(d)),this.reverted(["element.updateAttachment"],Qs(d)),this.executed("element.updateLabel",Qs(f)),this.reverted("element.updateLabel",Qs(f));function f(p){const{element:h}=p.context,g=cd(h),v=kr(h),y=v&&v.get("label");m_(h)||PN(h)||(g&&!y?v.set("label",t.create("bpmndi:BPMNLabel")):!g&&y&&v.set("label",void 0))}}Rn(Cl,Jt);Cl.$inject=["eventBus","bpmnFactory","connectionDocking"];Cl.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,r=t.host;n.attachedToRef=r&&r.businessObject};Cl.prototype.updateParent=function(e,t){if(!Lr(e)&&!(Ne(e,"bpmn:DataStoreReference")&&e.parent&&Ne(e.parent,"bpmn:Collaboration"))){var n=e.parent,r=e.businessObject,i=kr(e),o=n&&n.businessObject,a=kr(n);Ne(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(r,o,t&&t.businessObject),Ne(e,"bpmn:DataOutputAssociation")&&(e.source?o=e.source.businessObject:o=null),Ne(e,"bpmn:DataInputAssociation")&&(e.target?o=e.target.businessObject:o=null),this.updateSemanticParent(r,o),Ne(e,"bpmn:DataObjectReference")&&r.dataObjectRef&&this.updateSemanticParent(r.dataObjectRef,o),this.updateDiParent(i,a)}};Cl.prototype.updateBounds=function(e){var t=kr(e),n=n_n(e);if(n){var r=Zu(n,t.get("bounds"));lt(n,{x:e.x+r.x,y:e.y+r.y})}var i=Lr(e)?this._getLabel(t):t,o=i.bounds;o||(o=this._bpmnFactory.createDiBounds(),i.set("bounds",o)),lt(o,{x:e.x,y:e.y,width:e.width,height:e.height})};Cl.prototype.updateFlowNodeRefs=function(e,t,n){if(n!==t){var r,i;Ne(n,"bpmn:Lane")&&(r=n.get("flowNodeRef"),Io(r,e)),Ne(t,"bpmn:Lane")&&(i=t.get("flowNodeRef"),Xo(i,e))}};Cl.prototype.updateDiConnection=function(e,t,n){var r=kr(e),i=kr(t),o=kr(n);r.sourceElement&&r.sourceElement.bpmnElement!==sn(t)&&(r.sourceElement=t&&i),r.targetElement&&r.targetElement.bpmnElement!==sn(n)&&(r.targetElement=n&&o)};Cl.prototype.updateDiParent=function(e,t){if(t&&!Ne(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(Io(n,e),e.$parent=null)}};function t_n(e){for(;e&&!Ne(e,"bpmn:Definitions");)e=e.$parent;return e}Cl.prototype.getLaneSet=function(e){var t,n;return Ne(e,"bpmn:Lane")?(t=e.childLaneSet,t||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(Ne(e,"bpmn:Participant")&&(e=e.processRef),n=e.get("laneSets"),t=n[0],t||(t=this._bpmnFactory.create("bpmn:LaneSet"),t.$parent=e,n.push(t)),t)};Cl.prototype.updateSemanticParent=function(e,t,n){var r;if(e.$parent!==t&&!((Ne(e,"bpmn:DataInput")||Ne(e,"bpmn:DataOutput"))&&(Ne(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),"ioSpecification"in t&&t.ioSpecification===e.$parent))){if(Ne(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),r="lanes";else if(Ne(e,"bpmn:FlowElement")){if(t){if(Ne(t,"bpmn:Participant"))t=t.processRef;else if(Ne(t,"bpmn:Lane"))do t=t.$parent.$parent;while(Ne(t,"bpmn:Lane"))}r="flowElements"}else if(Ne(e,"bpmn:Artifact")){for(;t&&!Ne(t,"bpmn:Process")&&!Ne(t,"bpmn:SubProcess")&&!Ne(t,"bpmn:Collaboration");)if(Ne(t,"bpmn:Participant")){t=t.processRef;break}else t=t.$parent;r="artifacts"}else if(Ne(e,"bpmn:MessageFlow"))r="messageFlows";else if(Ne(e,"bpmn:Participant")){r="participants";var i=e.processRef,o;i&&(o=t_n(e.$parent||t),e.$parent&&(Io(o.get("rootElements"),i),i.$parent=null),t&&(Xo(o.get("rootElements"),i),i.$parent=o))}else Ne(e,"bpmn:DataOutputAssociation")?r="dataOutputAssociations":Ne(e,"bpmn:DataInputAssociation")&&(r="dataInputAssociations");if(!r)throw new Error(`no parent for <${e.id}> in <${t.id}>`);var a;if(e.$parent&&(a=e.$parent.get(r),Io(a,e)),t?(a=t.get(r),a.push(e),e.$parent=t):e.$parent=null,n){var s=n.get(r);Io(a,e),t&&(s||(s=[],t.set(r,s)),s.push(e))}}};Cl.prototype.updateConnectionWaypoints=function(e){var t=kr(e);t.set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))};Cl.prototype.updateConnection=function(e){var t=e.connection,n=sn(t),r=t.source,i=sn(r),o=t.target,a=sn(t.target),s;if(Ne(n,"bpmn:DataAssociation"))Ne(n,"bpmn:DataInputAssociation")?(n.get("sourceRef")[0]=i,s=e.parent||e.newParent||a,this.updateSemanticParent(n,a,s)):Ne(n,"bpmn:DataOutputAssociation")&&(s=e.parent||e.newParent||i,this.updateSemanticParent(n,i,s),n.targetRef=a);else{var l=Ne(n,"bpmn:SequenceFlow");n.sourceRef!==i&&(l&&(Io(n.sourceRef&&n.sourceRef.get("outgoing"),n),i&&i.get("outgoing")&&i.get("outgoing").push(n)),n.sourceRef=i),n.targetRef!==a&&(l&&(Io(n.targetRef&&n.targetRef.get("incoming"),n),a&&a.get("incoming")&&a.get("incoming").push(n)),n.targetRef=a)}this.updateConnectionWaypoints(t),this.updateDiConnection(t,r,o)};Cl.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label};function Qs(e){return function(t){var n=t.context,r=n.shape||n.connection||n.element;Ne(r,"bpmn:BaseElement")&&e(t)}}function n_n(e){if(Ne(e,"bpmn:Activity")){var t=kr(e);if(t){var n=t.get("label");if(n)return n.get("bounds")}}}function og(e,t){Qp.call(this),this._bpmnFactory=e,this._moddle=t}Rn(og,Qp);og.$inject=["bpmnFactory","moddle"];og.prototype._baseCreate=Qp.prototype.create;og.prototype.create=function(e,t){if(e==="label"){var n=t.di||this._bpmnFactory.createDiLabel();return this._baseCreate(e,lt({type:"label",di:n},Bw,t))}return this.createElement(e,t)};og.prototype.createElement=function(e,t){t=lt({},t||{});var n,r=t.businessObject,i=t.di;if(!r){if(!t.type)throw new Error("no shape type specified");r=this._bpmnFactory.create(t.type),jLe(r)}if(!i_n(i)){var o=lt({},i||{},{id:r.id+"_di"});e==="root"?i=this._bpmnFactory.createDiPlane(r,o):e==="connection"?i=this._bpmnFactory.createDiEdge(r,o):i=this._bpmnFactory.createDiShape(r,o)}Ne(r,"bpmn:Group")&&(t=lt({isFrame:!0},t)),t=r_n(r,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&(t=XV(i,t,"isExpanded")),br(r,["bpmn:Lane","bpmn:Participant"])&&(t=XV(i,t,"isHorizontal")),Ne(r,"bpmn:SubProcess")&&(t.collapsed=!Nr(r,i)),Ne(r,"bpmn:ExclusiveGateway")&&(Ls(i,"isMarkerVisible")?i.isMarkerVisible===void 0&&(i.isMarkerVisible=!1):i.isMarkerVisible=!0),pa(t.triggeredByEvent)&&(r.triggeredByEvent=t.triggeredByEvent,delete t.triggeredByEvent),pa(t.cancelActivity)&&(r.cancelActivity=t.cancelActivity,delete t.cancelActivity);var a,s;return t.eventDefinitionType&&(a=r.get("eventDefinitions")||[],s=this._bpmnFactory.create(t.eventDefinitionType,t.eventDefinitionAttrs),t.eventDefinitionType==="bpmn:ConditionalEventDefinition"&&(s.condition=this._bpmnFactory.create("bpmn:FormalExpression")),a.push(s),s.$parent=r,r.eventDefinitions=a,delete t.eventDefinitionType),n=this.getDefaultSize(r,i),t=lt({id:r.id},n,t,{businessObject:r,di:i}),this._baseCreate(e,t)};og.prototype.getDefaultSize=function(e,t){var n=sn(e);if(t=t||kr(e),Ne(n,"bpmn:SubProcess"))return Nr(n,t)?{width:350,height:200}:{width:100,height:80};if(Ne(n,"bpmn:Task"))return{width:100,height:80};if(Ne(n,"bpmn:Gateway"))return{width:50,height:50};if(Ne(n,"bpmn:Event"))return{width:36,height:36};if(Ne(n,"bpmn:Participant")){var r=t.isHorizontal===void 0||t.isHorizontal===!0;return Nr(n,t)?r?{width:600,height:250}:{width:250,height:600}:r?{width:400,height:60}:{width:60,height:400}}return Ne(n,"bpmn:Lane")?{width:400,height:100}:Ne(n,"bpmn:DataObjectReference")?{width:36,height:50}:Ne(n,"bpmn:DataStoreReference")?{width:50,height:50}:Ne(n,"bpmn:TextAnnotation")?{width:100,height:30}:Ne(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}};og.prototype.createParticipantShape=function(e){return ba(e)||(e={isExpanded:e}),e=lt({type:"bpmn:Participant"},e||{}),e.isExpanded!==!1&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)};function r_n(e,t,n){return Ze(n,function(r){t=XV(e,t,r)}),t}function XV(e,t,n){return t[n]===void 0?t:(e[n]=t[n],yf(t,[n]))}function i_n(e){return br(e,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])}function $$(e,t){this._modeling=e,this._canvas=t}$$.$inject=["modeling","canvas"];$$.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,r=e.alignment;Ze(n,function(i){var o={x:0,y:0};pa(r.left)?o.x=r.left-i.x:pa(r.right)?o.x=r.right-i.width-i.x:pa(r.center)?o.x=r.center-Math.round(i.width/2)-i.x:pa(r.top)?o.y=r.top-i.y:pa(r.bottom)?o.y=r.bottom-i.height-i.y:pa(r.middle)&&(o.y=r.middle-Math.round(i.height/2)-i.y),t.moveElements([i],o,i.parent)})};$$.prototype.postExecute=function(e){};function F$(e){this._modeling=e}F$.$inject=["modeling"];F$.prototype.preExecute=function(e){var t=e.source;if(!t)throw new Error("source required");var n=e.target||t.parent,r=e.shape,i=e.hints||{};r=e.shape=this._modeling.createShape(r,e.position,n,{attach:i.attach}),e.shape=r};F$.prototype.postExecute=function(e){var t=e.hints||{};o_n(e.source,e.shape)||(t.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))};function o_n(e,t){return Kh(e.outgoing,function(n){return n.target===t})}function B$(e,t){this._canvas=e,this._layouter=t}B$.$inject=["canvas","layouter"];B$.prototype.execute=function(e){var t=e.connection,n=e.source,r=e.target,i=e.parent,o=e.parentIndex,a=e.hints;if(!n||!r)throw new Error("source and target required");if(!i)throw new Error("parent required");return t.source=n,t.target=r,t.waypoints||(t.waypoints=this._layouter.layoutConnection(t,a)),this._canvas.addConnection(t,i,o),t};B$.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var lI=Math.round;function $Z(e){this._modeling=e}$Z.$inject=["modeling"];$Z.prototype.preExecute=function(e){var t=e.elements,n=e.parent,r=e.parentIndex,i=e.position,o=e.hints,a=this._modeling;Ze(t,function(d){Jn(d.x)||(d.x=0),Jn(d.y)||(d.y=0)});var s=Cr(t,function(d){return!d.hidden}),l=oa(s);Ze(t,function(d){pi(d)&&(d.waypoints=Ya(d.waypoints,function(f){return{x:lI(f.x-l.x-l.width/2+i.x),y:lI(f.y-l.y-l.height/2+i.y)}})),lt(d,{x:lI(d.x-l.x-l.width/2+i.x),y:lI(d.y-l.y-l.height/2+i.y)})});var c=a$(t),u={};Ze(t,function(d){if(pi(d)){u[d.id]=Jn(r)?a.createConnection(u[d.source.id],u[d.target.id],r,d,d.parent||n,o):a.createConnection(u[d.source.id],u[d.target.id],d,d.parent||n,o);return}var f=lt({},o);c.indexOf(d)===-1&&(f.autoResize=!1),Lr(d)&&(f=yf(f,["attach"])),u[d.id]=Jn(r)?a.createShape(d,ld(d,["x","y","width","height"]),d.parent||n,r,f):a.createShape(d,ld(d,["x","y","width","height"]),d.parent||n,f)}),e.elements=cX(u)};var qge=Math.round;function ag(e){this._canvas=e}ag.$inject=["canvas"];ag.prototype.execute=function(e){var t=e.shape,n=e.position,r=e.parent,i=e.parentIndex;if(!r)throw new Error("parent required");if(!n)throw new Error("position required");return n.width!==void 0?lt(t,n):lt(t,{x:n.x-qge(t.width/2),y:n.y-qge(t.height/2)}),this._canvas.addShape(t,r,i),t};ag.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t};function HT(e){ag.call(this,e)}Rn(HT,ag);HT.$inject=["canvas"];var a_n=ag.prototype.execute;HT.prototype.execute=function(e){var t=e.shape;return l_n(t),t.labelTarget=e.labelTarget,a_n.call(this,e)};var s_n=ag.prototype.revert;HT.prototype.revert=function(e){return e.shape.labelTarget=null,s_n.call(this,e)};function l_n(e){["width","height"].forEach(function(t){typeof e[t]>"u"&&(e[t]=0)})}function zT(e,t){this._canvas=e,this._modeling=t}zT.$inject=["canvas","modeling"];zT.prototype.preExecute=function(e){var t=this._modeling,n=e.connection;yh(n.incoming,function(r){t.removeConnection(r,{nested:!0})}),yh(n.outgoing,function(r){t.removeConnection(r,{nested:!0})})};zT.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=mX(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t};zT.prototype.revert=function(e){var t=e.connection,n=e.parent,r=e.parentIndex;return t.source=e.source,t.target=e.target,Xo(n.children,t,r),this._canvas.addConnection(t,n),t};function FZ(e,t){this._modeling=e,this._elementRegistry=t}FZ.$inject=["modeling","elementRegistry"];FZ.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry,r=e.elements;Ze(r,function(i){n.get(i.id)&&(i.waypoints?t.removeConnection(i):t.removeShape(i))})};function VT(e,t){this._canvas=e,this._modeling=t}VT.$inject=["canvas","modeling"];VT.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;yh(n.incoming,function(r){t.removeConnection(r,{nested:!0})}),yh(n.outgoing,function(r){t.removeConnection(r,{nested:!0})}),yh(n.children,function(r){pi(r)?t.removeConnection(r,{nested:!0}):t.removeShape(r,{nested:!0})})};VT.prototype.execute=function(e){var t=this._canvas,n=e.shape,r=n.parent;return e.oldParent=r,e.oldParentIndex=mX(r.children,n),t.removeShape(n),n};VT.prototype.revert=function(e){var t=this._canvas,n=e.shape,r=e.oldParent,i=e.oldParentIndex;return Xo(r.children,n,i),t.addShape(n,r),n};function U$(e){this._modeling=e}U$.$inject=["modeling"];var Kge={x:"y",y:"x"};U$.prototype.preExecute=function(e){var t=this._modeling,n=e.groups,r=e.axis,i=e.dimension;function o(v,y){v.range.min=Math.min(y[r],v.range.min),v.range.max=Math.max(y[r]+y[i],v.range.max)}function a(v){return v[r]+v[i]/2}function s(v){return v.length-1}function l(v){return v.max-v.min}function c(v,y){var _={y:0};_[r]=v-a(y),_[r]&&(_[Kge[r]]=0,t.moveElements([y],_,y.parent))}var u=n[0],d=s(n),f=n[d],p,h,g=0;Ze(n,function(v,y){var _,b,S;if(v.elements.length<2){y&&y!==n.length-1&&(o(v,v.elements[0]),g+=l(v.range));return}_=uf(v.elements,r),b=_[0],y===d&&(b=_[s(_)]),S=a(b),v.range=null,Ze(_,function(C){if(c(S,C),v.range===null){v.range={min:C[r],max:C[r]+C[i]};return}o(v,C)}),y&&y!==n.length-1&&(g+=l(v.range))}),h=Math.abs(f.range.min-u.range.max),p=Math.round((h-g)/(n.length-1)),!(p<n.length-1)&&Ze(n,function(v,y){var _={},b;v===u||v===f||(b=n[y-1],v.range.max=0,Ze(v.elements,function(S,C){_[Kge[r]]=0,_[r]=b.range.max-S[r]+p,v.range.min!==S[r]&&(_[r]+=S[r]-v.range.min),_[r]&&t.moveElements([S],_,S.parent),v.range.max=Math.max(S[r]+S[i],C?v.range.max:0)}))})};U$.prototype.postExecute=function(e){};function j$(e,t){this._layouter=e,this._canvas=t}j$.$inject=["layouter","canvas"];j$.prototype.execute=function(e){var t=e.connection,n=t.waypoints;return lt(e,{oldWaypoints:n}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t};j$.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t};function BZ(){}BZ.prototype.execute=function(e){var t=e.connection,n=e.delta,r=e.newParent||t.parent,i=e.newParentIndex,o=t.parent;return e.oldParent=o,e.oldParentIndex=Io(o.children,t),Xo(r.children,t,i),t.parent=r,Ze(t.waypoints,function(a){a.x+=n.x,a.y+=n.y,a.original&&(a.original.x+=n.x,a.original.y+=n.y)}),t};BZ.prototype.revert=function(e){var t=e.connection,n=t.parent,r=e.oldParent,i=e.oldParentIndex,o=e.delta;return Io(n.children,t),Xo(r.children,t,i),t.parent=r,Ze(t.waypoints,function(a){a.x-=o.x,a.y-=o.y,a.original&&(a.original.x-=o.x,a.original.y-=o.y)}),t};function UZ(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}UZ.prototype.add=function(e,t){return this.addAll([e],t)};UZ.prototype.addAll=function(e,t){var n=Mcn(e,!!t,this);return lt(this,n),this};function GT(e){this._modeling=e}GT.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]};GT.prototype.moveClosure=function(e,t,n,r,i){var o=this._modeling,a=e.allShapes,s=e.allConnections,l=e.enclosedConnections,c=e.topLevel,u=!1;i&&i.parent===n&&(u=!0),Ze(a,function(d){o.moveShape(d,t,c[d.id]&&!u&&n,{recurse:!1,layout:!1})}),Ze(s,function(d){var f=!!a[d.source.id],p=!!a[d.target.id];l[d.id]&&f&&p?o.moveConnection(d,t,c[d.id]&&!u&&n):o.layoutConnection(d,{connectionStart:f&&uZ(d,d.source,t),connectionEnd:p&&dZ(d,d.target,t)})})};GT.prototype.getClosure=function(e){return new UZ().addAll(e,!0)};function H$(e){this._helper=new GT(e)}H$.$inject=["modeling"];H$.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)};H$.prototype.postExecute=function(e){var t=e.hints,n;t&&t.primaryShape&&(n=t.primaryShape,t.oldParent=n.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,n)};function Z_(e){this._modeling=e,this._helper=new GT(e)}Z_.$inject=["modeling"];Z_.prototype.execute=function(e){var t=e.shape,n=e.delta,r=e.newParent||t.parent,i=e.newParentIndex,o=t.parent;return e.oldBounds=ld(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=Io(o.children,t),Xo(r.children,t,i),lt(t,{parent:r,x:t.x+n.x,y:t.y+n.y}),t};Z_.prototype.postExecute=function(e){var t=e.shape,n=e.delta,r=e.hints,i=this._modeling;r.layout!==!1&&(Ze(t.incoming,function(o){i.layoutConnection(o,{connectionEnd:dZ(o,t,n)})}),Ze(t.outgoing,function(o){i.layoutConnection(o,{connectionStart:uZ(o,t,n)})})),r.recurse!==!1&&this.moveChildren(e)};Z_.prototype.revert=function(e){var t=e.shape,n=e.oldParent,r=e.oldParentIndex,i=e.delta;return Xo(n.children,t,r),lt(t,{parent:n,x:t.x-i.x,y:t.y-i.y}),t};Z_.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)};Z_.prototype.getNewParent=function(e){return e.newParent||e.shape.parent};function WT(e){this._modeling=e}WT.$inject=["modeling"];WT.prototype.execute=function(e){var t=e.newSource,n=e.newTarget,r=e.connection,i=e.dockingOrPoints;if(!t&&!n)throw new Error("newSource or newTarget required");return lr(i)&&(e.oldWaypoints=r.waypoints,r.waypoints=i),t&&(e.oldSource=r.source,r.source=t),n&&(e.oldTarget=r.target,r.target=n),r};WT.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,r=e.newTarget,i=e.dockingOrPoints,o=e.hints||{},a={};o.connectionStart&&(a.connectionStart=o.connectionStart),o.connectionEnd&&(a.connectionEnd=o.connectionEnd),o.layoutConnection!==!1&&(n&&(!r||o.docking==="source")&&(a.connectionStart=a.connectionStart||Qge(lr(i)?i[0]:i)),r&&(!n||o.docking==="target")&&(a.connectionEnd=a.connectionEnd||Qge(lr(i)?i[i.length-1]:i)),o.newWaypoints&&(a.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,a))};WT.prototype.revert=function(e){var t=e.oldSource,n=e.oldTarget,r=e.oldWaypoints,i=e.connection;return t&&(i.source=t),n&&(i.target=n),r&&(i.waypoints=r),i};function Qge(e){return e.original||e}function nm(e,t){this._modeling=e,this._rules=t}nm.$inject=["modeling","rules"];nm.prototype.preExecute=function(e){var t=this,n=this._modeling,r=this._rules,i=e.oldShape,o=e.newData,a=e.hints||{},s;function l(h,g,v){return r.allowed("connection.reconnect",{connection:v,source:h,target:g})}var c={x:o.x,y:o.y},u={x:i.x,y:i.y,width:i.width,height:i.height};s=e.newShape=e.newShape||t.createShape(o,c,i.parent,a),i.host&&n.updateAttachment(s,i.host);var d;a.moveChildren!==!1&&(d=i.children.slice(),n.moveElements(d,{x:0,y:0},s,a));var f=i.incoming.slice(),p=i.outgoing.slice();Ze(f,function(h){var g=h.source,v=l(g,s,h);v&&t.reconnectEnd(h,s,I$(h,s,u),a)}),Ze(p,function(h){var g=h.target,v=l(s,g,h);v&&t.reconnectStart(h,s,O$(h,s,u),a)})};nm.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)};nm.prototype.execute=function(e){};nm.prototype.revert=function(e){};nm.prototype.createShape=function(e,t,n,r){return this._modeling.createShape(e,t,n,r)};nm.prototype.reconnectStart=function(e,t,n,r){this._modeling.reconnectStart(e,t,n,r)};nm.prototype.reconnectEnd=function(e,t,n,r){this._modeling.reconnectEnd(e,t,n,r)};function YT(e){this._modeling=e}YT.$inject=["modeling"];YT.prototype.execute=function(e){var t=e.shape,n=e.newBounds,r=e.minBounds;if(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)throw new Error("newBounds must have {x, y, width, height} properties");if(r&&(n.width<r.width||n.height<r.height))throw new Error("width and height cannot be less than minimum height and width");if(!r&&n.width<10||n.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:t.width,height:t.height,x:t.x,y:t.y},lt(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t};YT.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,r=e.oldBounds,i=e.hints||{};i.layout!==!1&&(Ze(n.incoming,function(o){t.layoutConnection(o,{connectionEnd:I$(o,n,r)})}),Ze(n.outgoing,function(o){t.layoutConnection(o,{connectionStart:O$(o,n,r)})}))};YT.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return lt(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t};function sg(e){this._modeling=e}sg.$inject=["modeling"];sg.prototype.preExecute=function(e){var t=e.delta,n=e.direction,r=e.movingShapes,i=e.resizingShapes,o=e.start,a={};this.moveShapes(r,t),Ze(i,function(s){a[s.id]=u_n(s)}),this.resizeShapes(i,t,n),this.updateConnectionWaypoints($vn(r,i),t,n,o,r,i,a)};sg.prototype.execute=function(){};sg.prototype.revert=function(){};sg.prototype.moveShapes=function(e,t){var n=this;Ze(e,function(r){n._modeling.moveShape(r,t,null,{autoResize:!1,layout:!1,recurse:!1})})};sg.prototype.resizeShapes=function(e,t,n){var r=this;Ze(e,function(i){var o=Fvn(i,n,t);r._modeling.resizeShape(i,o,null,{attachSupport:!1,autoResize:!1,layout:!1})})};sg.prototype.updateConnectionWaypoints=function(e,t,n,r,i,o,a){var s=this,l=i.concat(o);Ze(e,function(c){var u=c.source,d=c.target,f=c_n(c),p=i4e(n),h={};ym(l,u)&&ym(l,d)?(f=Ya(f,function(g){return Zge(g,r,n)&&(g[p]=g[p]+t[p]),g.original&&Zge(g.original,r,n)&&(g.original[p]=g.original[p]+t[p]),g}),s._modeling.updateWaypoints(c,f,{labelBehavior:!1})):(ym(l,u)||ym(l,d))&&(ym(i,u)?h.connectionStart=uZ(c,u,t):ym(i,d)?h.connectionEnd=dZ(c,d,t):ym(o,u)?h.connectionStart=O$(c,u,a[u.id]):ym(o,d)&&(h.connectionEnd=I$(c,d,a[d.id])),s._modeling.layoutConnection(c,h))})};function Xge(e){return lt({},e)}function c_n(e){return Ya(e.waypoints,function(t){return t=Xge(t),t.original&&(t.original=Xge(t.original)),t})}function i4e(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function Zge(e,t,n){var r=i4e(n);if(/e|s/.test(n))return e[r]>t;if(/n|w/.test(n))return e[r]<t}function ym(e,t){return e.indexOf(t)!==-1}function u_n(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}function z$(e){this._modeling=e}z$.$inject=["modeling"];z$.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=o4e(n),t.collapsed=!t.collapsed;var r=a4e(n,t.collapsed);return[t].concat(r)};z$.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,r=t.children,i=s4e(r,n);return t.collapsed=!t.collapsed,[t].concat(i)};function o4e(e){var t={};return Ze(e,function(n){t[n.id]=n.hidden,n.children&&(t=lt({},t,o4e(n.children)))}),t}function a4e(e,t){var n=[];return Ze(e,function(r){r.hidden=t,n=n.concat(r),r.children&&(n=n.concat(a4e(r.children,r.collapsed||t)))}),n}function s4e(e,t){var n=[];return Ze(e,function(r){r.hidden=t[r.id],n=n.concat(r),r.children&&(n=n.concat(s4e(r.children,t)))}),n}function V$(e){this._modeling=e}V$.$inject=["modeling"];V$.prototype.execute=function(e){var t=e.shape,n=e.newHost,r=t.host;return e.oldHost=r,e.attacherIdx=l4e(r,t),c4e(n,t),t.host=n,t};V$.prototype.revert=function(e){var t=e.shape,n=e.newHost,r=e.oldHost,i=e.attacherIdx;return t.host=r,l4e(n,t),c4e(r,t,i),t};function l4e(e,t){return Io(e&&e.attachers,t)}function c4e(e,t,n){if(e){var r=e.attachers;r||(e.attachers=r=[]),Xo(r,t,n)}}function jZ(){}jZ.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t};jZ.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t};function hi(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var r=this;e.on("diagram.init",function(){r.registerHandlers(n)})}hi.$inject=["eventBus","elementFactory","commandStack"];hi.prototype.getHandlers=function(){return{"shape.append":F$,"shape.create":ag,"shape.delete":VT,"shape.move":Z_,"shape.resize":YT,"shape.replace":nm,"shape.toggleCollapse":z$,spaceTool:sg,"label.create":HT,"connection.create":B$,"connection.delete":zT,"connection.move":BZ,"connection.layout":j$,"connection.updateWaypoints":jZ,"connection.reconnect":WT,"elements.create":$Z,"elements.move":H$,"elements.delete":FZ,"elements.distribute":U$,"elements.align":$$,"element.updateAttachment":V$}};hi.prototype.registerHandlers=function(e){Ze(this.getHandlers(),function(t,n){e.registerHandler(n,t)})};hi.prototype.moveShape=function(e,t,n,r,i){typeof r=="object"&&(i=r,r=null);var o={shape:e,delta:t,newParent:n,newParentIndex:r,hints:i||{}};this._commandStack.execute("shape.move",o)};hi.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)};hi.prototype.moveElements=function(e,t,n,r){r=r||{};var i=r.attach,o=n,a;i===!0?(a=n,o=n.parent):i===!1&&(a=null);var s={shapes:e,delta:t,newParent:o,newHost:a,hints:r};this._commandStack.execute("elements.move",s)};hi.prototype.moveConnection=function(e,t,n,r,i){typeof r=="object"&&(i=r,r=void 0);var o={connection:e,delta:t,newParent:n,newParentIndex:r,hints:i||{}};this._commandStack.execute("connection.move",o)};hi.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)};hi.prototype.createConnection=function(e,t,n,r,i,o){typeof n=="object"&&(o=i,i=r,r=n,n=void 0),r=this._create("connection",r);var a={source:e,target:t,parent:i,parentIndex:n,connection:r,hints:o};return this._commandStack.execute("connection.create",a),a.connection};hi.prototype.createShape=function(e,t,n,r,i){typeof r!="number"&&(i=r,r=void 0),i=i||{};var o=i.attach,a,s;e=this._create("shape",e),o?(a=n.parent,s=n):a=n;var l={position:t,shape:e,parent:a,parentIndex:r,host:s,hints:i};return this._commandStack.execute("shape.create",l),l.shape};hi.prototype.createElements=function(e,t,n,r,i){lr(e)||(e=[e]),typeof r!="number"&&(i=r,r=void 0),i=i||{};var o={position:t,elements:e,parent:n,parentIndex:r,hints:i};return this._commandStack.execute("elements.create",o),o.elements};hi.prototype.createLabel=function(e,t,n,r){n=this._create("label",n);var i={labelTarget:e,position:t,parent:r||e.parent,shape:n};return this._commandStack.execute("label.create",i),i.shape};hi.prototype.appendShape=function(e,t,n,r,i){i=i||{},t=this._create("shape",t);var o={source:e,position:n,target:r,shape:t,connection:i.connection,connectionParent:i.connectionParent,hints:i};return this._commandStack.execute("shape.append",o),o.shape};hi.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)};hi.prototype.distributeElements=function(e,t,n){var r={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",r)};hi.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)};hi.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)};hi.prototype.replaceShape=function(e,t,n){var r={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",r),r.newShape};hi.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)};hi.prototype.resizeShape=function(e,t,n,r){var i={shape:e,newBounds:t,minBounds:n,hints:r};this._commandStack.execute("shape.resize",i)};hi.prototype.createSpace=function(e,t,n,r,i){var o={delta:n,direction:r,movingShapes:e,resizingShapes:t,start:i};this._commandStack.execute("spaceTool",o)};hi.prototype.updateWaypoints=function(e,t,n){var r={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",r)};hi.prototype.reconnect=function(e,t,n,r,i){var o={connection:e,newSource:t,newTarget:n,dockingOrPoints:r,hints:i||{}};this._commandStack.execute("connection.reconnect",o)};hi.prototype.reconnectStart=function(e,t,n,r){r||(r={}),this.reconnect(e,t,e.target,n,lt(r,{docking:"source"}))};hi.prototype.reconnectEnd=function(e,t,n,r){r||(r={}),this.reconnect(e,e.source,t,n,lt(r,{docking:"target"}))};hi.prototype.connect=function(e,t,n,r){return this.createConnection(e,t,n||{},e.parent,r)};hi.prototype._create=function(e,t){return dun(t)?t:this._elementFactory.create(e,t)};hi.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)};function qT(e){this._elementRegistry=e}qT.$inject=["elementRegistry"];qT.prototype.execute=function(e){var t=e.element,n=e.moddleElement,r=e.properties;if(!n)throw new Error("<moddleElement> required");var i=e.changed||this._getVisualReferences(n).concat(t),o=e.oldProperties||d_n(n,SP(r));return u4e(n,r),e.oldProperties=o,e.changed=i,i};qT.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,r=e.changed;return u4e(n,t),r};qT.prototype._getVisualReferences=function(e){var t=this._elementRegistry;return Ne(e,"bpmn:DataObject")?f_n(e,t):[]};function d_n(e,t){return vl(t,function(n,r){return n[r]=e.get(r),n},{})}function u4e(e,t){Ze(t,function(n,r){e.set(r,n)})}function f_n(e,t){return t.filter(function(n){return Ne(n,"bpmn:DataObjectReference")&&sn(n).dataObjectRef===e})}var ZE="default",dp="id",d4e="di",p_n={width:0,height:0};function KT(e,t,n,r){this._elementRegistry=e,this._moddle=t,this._modeling=n,this._textRenderer=r}KT.$inject=["elementRegistry","moddle","modeling","textRenderer"];KT.prototype.execute=function(e){var t=e.element,n=[t];if(!t)throw new Error("element required");var r=this._elementRegistry,i=this._moddle.ids,o=t.businessObject,a=__n(e.properties),s=e.oldProperties||m_n(t,a);return f4e(a,o)&&(i.unclaim(o[dp]),r.updateId(t,a[dp]),i.claim(a[dp],o)),ZE in a&&(a[ZE]&&n.push(r.get(a[ZE].id)),o[ZE]&&n.push(r.get(o[ZE].id))),p4e(t,a),e.oldProperties=s,e.changed=n,n};KT.prototype.postExecute=function(e){var t=e.element,n=t.label,r=n&&sn(n).name;if(r){var i=this._textRenderer.getExternalLabelBounds(n,r);this._modeling.resizeShape(n,i,p_n)}};KT.prototype.revert=function(e){var t=e.element,n=e.properties,r=e.oldProperties,i=t.businessObject,o=this._elementRegistry,a=this._moddle.ids;return p4e(t,r),f4e(n,i)&&(a.unclaim(n[dp]),o.updateId(t,r[dp]),a.claim(r[dp],i)),e.changed};function f4e(e,t){return dp in e&&e[dp]!==t[dp]}function m_n(e,t){var n=SP(t),r=e.businessObject,i=kr(e);return vl(n,function(o,a){return a!==d4e?o[a]=r.get(a):o[a]=h_n(i,SP(t.di)),o},{})}function h_n(e,t){return vl(t,function(n,r){return n[r]=e&&e.get(r),n},{})}function p4e(e,t){var n=e.businessObject,r=kr(e);Ze(t,function(i,o){o!==d4e?n.set(o,i):r&&g_n(r,i)})}function g_n(e,t){Ze(t,function(n,r){e.set(r,n)})}var v_n=["default"];function __n(e){var t=lt({},e);return v_n.forEach(function(n){n in e&&(t[n]=sn(t[n]))}),t}function G$(e,t){this._canvas=e,this._modeling=t}G$.$inject=["canvas","modeling"];G$.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,r=n.businessObject,i=t.getRootElement(),o=i.businessObject,a=o.$parent,s=kr(i);return t.setRootElement(n),t.removeRootElement(i),Xo(a.rootElements,r),r.$parent=a,Io(a.rootElements,o),o.$parent=null,i.di=null,s.bpmnElement=r,n.di=s,e.oldRoot=i,[]};G$.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,r=n.businessObject,i=e.oldRoot,o=i.businessObject,a=r.$parent,s=kr(n);return t.setRootElement(i),t.removeRootElement(n),Io(a.rootElements,r),r.$parent=null,Xo(a.rootElements,o),o.$parent=a,n.di=null,s.bpmnElement=o,i.di=s,[]};function HZ(e,t){this._modeling=e,this._spaceTool=t}HZ.$inject=["modeling","spaceTool"];HZ.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,r=e.shape,i=e.location,o=Lc(r),a=o===r,s=a?r:r.parent,l=rg(s),c=aa(r);if(c?i==="left"?i="top":i==="right"&&(i="bottom"):i==="top"?i="left":i==="bottom"&&(i="right"),!l.length){var u=c?{x:r.x+Nc,y:r.y,width:r.width-Nc,height:r.height}:{x:r.x,y:r.y+Nc,width:r.width,height:r.height-Nc};n.createShape({type:"bpmn:Lane",isHorizontal:c},u,s)}var d=[];Y_(o,function(S){return d.push(S),S.label&&d.push(S.label),S===r?[]:Cr(S.children,function(C){return C!==r})});var f,p,h,g,v;i==="top"?(f=-120,p=r.y,h=p+10,g="n",v="y"):i==="left"?(f=-120,p=r.x,h=p+10,g="w",v="x"):i==="bottom"?(f=120,p=r.y+r.height,h=p-10,g="s",v="y"):i==="right"&&(f=120,p=r.x+r.width,h=p-10,g="e",v="x");var y=t.calculateAdjustments(d,v,f,h),_=c?{x:0,y:f}:{x:f,y:0};t.makeSpace(y.movingShapes,y.resizingShapes,_,g,h);var b=c?{x:r.x+(a?Nc:0),y:p-(i==="top"?120:0),width:r.width-(a?Nc:0),height:120}:{x:p-(i==="left"?120:0),y:r.y+(a?Nc:0),width:120,height:r.height-(a?Nc:0)};e.newLane=n.createShape({type:"bpmn:Lane",isHorizontal:c},b,s)};function zZ(e){this._modeling=e}zZ.$inject=["modeling"];zZ.prototype.preExecute=function(e){var t=this._modeling,n=e.shape,r=e.count,i=rg(n),o=i.length;if(o>r)throw new Error(`more than <${r}> child lanes`);var a=aa(n),s=a?n.height:n.width,l=Math.round(s/r),c,u,d,f;for(f=0;f<r;f++)f===r-1?c=s-l*f:c=l,u=a?{x:n.x+Nc,y:n.y+f*l,width:n.width-Nc,height:c}:{x:n.x+f*l,y:n.y+Nc,width:c,height:n.height-Nc},f<o?t.resizeShape(i[f],u):(d={type:"bpmn:Lane",isHorizontal:a},t.createShape(d,u,n))};function QT(e,t){this._modeling=e,this._spaceTool=t}QT.$inject=["modeling","spaceTool"];QT.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds,r=e.balanced;r!==!1?this.resizeBalanced(t,n):this.resizeSpace(t,n)};QT.prototype.resizeBalanced=function(e,t){var n=this._modeling,r=Whn(e,t);n.resizeShape(e,t),r.forEach(function(i){n.resizeShape(i.shape,i.newBounds)})};QT.prototype.resizeSpace=function(e,t){var n=this._spaceTool,r=Gn(e),i=Gn(t),o=p3e(i,r),a=Lc(e),s=[],l=[];Y_(a,function(h){return s.push(h),(Ne(h,"bpmn:Lane")||Ne(h,"bpmn:Participant"))&&l.push(h),h.children});var c,u,d,f,p;(o.bottom||o.top)&&(c=o.bottom||o.top,u=e.y+(o.bottom?e.height:0)+(o.bottom?-10:10),d=o.bottom?"s":"n",f=o.top>0||o.bottom<0?-c:c,p=n.calculateAdjustments(s,"y",f,u),n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:c},d)),(o.left||o.right)&&(c=o.right||o.left,u=e.x+(o.right?e.width:0)+(o.right?-10:100),d=o.right?"e":"w",f=o.left>0||o.right<0?-c:c,p=n.calculateAdjustments(l,"x",f,u),n.makeSpace(p.movingShapes,p.resizingShapes,{x:c,y:0},d))};var Gw="flowNodeRef",VZ="lanes";function XT(e){this._elementRegistry=e}XT.$inject=["elementRegistry"];XT.prototype._computeUpdates=function(e,t){var n=[],r=[],i={},o=[];function a(u,d){var f=Gn(d),p={x:u.x+u.width/2,y:u.y+u.height/2};return p.x>f.left&&p.x<f.right&&p.y>f.top&&p.y<f.bottom}function s(u){n.indexOf(u)===-1&&(o.push(u),n.push(u))}function l(u){var d=Lc(u);return i[d.id]||(i[d.id]=T$(d)),i[d.id]}function c(u){if(!u.parent)return[];var d=l(u);return d.filter(function(f){return a(u,f)}).map(function(f){return f.businessObject})}return t.forEach(function(u){var d=Lc(u);if(!(!d||n.indexOf(d)!==-1)){var f=d.children.filter(function(p){return Ne(p,"bpmn:FlowNode")});f.forEach(s),n.push(d)}}),e.forEach(s),o.forEach(function(u){var d=u.businessObject,f=d.get(VZ),p=f.slice(),h=c(u);r.push({flowNode:d,remove:p,add:h})}),t.forEach(function(u){var d=u.businessObject;u.parent||d.get(Gw).forEach(function(f){r.push({flowNode:f,remove:[d],add:[]})})}),r};XT.prototype.execute=function(e){var t=e.updates;return t||(t=e.updates=this._computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach(function(n){var r=n.flowNode,i=r.get(VZ);n.remove.forEach(function(o){Io(i,o),Io(o.get(Gw),r)}),n.add.forEach(function(o){Xo(i,o),Xo(o.get(Gw),r)})}),[]};XT.prototype.revert=function(e){var t=e.updates;return t.forEach(function(n){var r=n.flowNode,i=r.get(VZ);n.add.forEach(function(o){Io(i,o),Io(o.get(Gw),r)}),n.remove.forEach(function(o){Xo(i,o),Xo(o.get(Gw),r)})}),[]};function W$(e){this._moddle=e}W$.$inject=["moddle"];W$.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,r=e.element,i=e.claiming;return i?t.claim(n,r):t.unclaim(n),[]};W$.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,r=e.element,i=e.claiming;return i?t.unclaim(n):t.claim(n,r),[]};var y_n={fill:void 0,stroke:void 0};function GZ(e){this._commandStack=e,this._normalizeColor=function(t){if(t){if(gl(t)){var n=b_n(t);if(n)return n}throw new Error(`invalid color value: ${t}`)}}}GZ.$inject=["commandStack"];GZ.prototype.postExecute=function(e){var t=e.elements,n=e.colors||y_n,r=this,i={};"fill"in n&<(i,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&<(i,{"border-color":this._normalizeColor(n.stroke)}),Ze(t,function(o){var a=pi(o)?ld(i,["border-color"]):i,s=kr(o);if(S_n(a),Lr(o))r._commandStack.execute("element.updateModdleProperties",{element:o,moddleElement:s.label,properties:{color:i["border-color"]}});else{if(!br(s,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;r._commandStack.execute("element.updateProperties",{element:o,properties:{di:a}})}})};function b_n(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle="transparent",t.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(t.fillStyle)?t.fillStyle:null}function S_n(e){"border-color"in e&&(e.stroke=e["border-color"]),"background-color"in e&&(e.fill=e["background-color"])}var E_n={width:0,height:0};function m4e(e,t,n){function r(l,c){var u=l.label||l,d=l.labelTarget||l;return dfn(u,c),[u,d]}function i(l){var c=l.element,u=c.businessObject,d=l.newLabel;if(!Lr(c)&&m_(c)&&!d$(c)&&!Jge(d)){var f=7,p=TX(c);p={x:p.x,y:p.y+f},e.createLabel(c,p,{id:u.id+"_label",businessObject:u,di:c.di})}}function o(l){return l.oldLabel=cd(l.element),r(l.element,l.newLabel)}function a(l){return r(l.element,l.oldLabel)}function s(l){var c=l.element,u=c.label||c,d=l.newLabel,f=l.newBounds,p=l.hints||{};if(!(!Lr(u)&&!Ne(u,"bpmn:TextAnnotation"))){if(Lr(u)&&Jge(d)){p.removeShape!==!1&&e.removeShape(u,{unsetLabel:!1});return}var h=cd(c);typeof f>"u"&&(f=t.getExternalLabelBounds(u,h)),f&&e.resizeShape(u,f,E_n)}}this.preExecute=i,this.execute=o,this.revert=a,this.postExecute=s}m4e.$inject=["modeling","textRenderer","bpmnFactory"];function Jge(e){return!e||!e.trim()}function Ja(e,t,n,r){hi.call(this,e,t,n),this._bpmnRules=r}Rn(Ja,hi);Ja.$inject=["eventBus","elementFactory","commandStack","bpmnRules"];Ja.prototype.getHandlers=function(){var e=hi.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=qT,e["element.updateProperties"]=KT,e["canvas.updateRoot"]=G$,e["lane.add"]=HZ,e["lane.resize"]=QT,e["lane.split"]=zZ,e["lane.updateRefs"]=XT,e["id.updateClaim"]=W$,e["element.setColor"]=GZ,e["element.updateLabel"]=m4e,e};Ja.prototype.updateLabel=function(e,t,n,r){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:r||{}})};Ja.prototype.connect=function(e,t,n,r){var i=this._bpmnRules;if(n||(n=i.canConnect(e,t)),!!n)return this.createConnection(e,t,n,e.parent,r)};Ja.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})};Ja.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})};Ja.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})};Ja.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane};Ja.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})};Ja.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e};Ja.prototype.makeProcess=function(){var e=this._create("root",{type:"bpmn:Process"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e};Ja.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})};Ja.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})};Ja.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})};Ja.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})};function h4e(){}h4e.prototype.layoutConnection=function(e,t){return t=t||{},[t.connectionStart||er(t.source||e.source),t.connectionEnd||er(t.target||e.target)]};var cI=20,C_n=5,$P=Math.round,eve=20,w_n={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function x_n(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}function T_n(e,t){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[e].test(t)}function g4e(e,t,n){var r=Ka(t,e,C_n),i=n.split(":")[0],o=$P((t.x-e.x)/2+e.x),a=$P((t.y-e.y)/2+e.y),s,l,c=T_n(i,r),u=/h|r|l/.test(i),d=!1,f=!1;return c?(s=u?{x:o,y:e.y}:{x:e.x,y:a},l=u?"h:h":"v:v"):(d=x_n(r,i),l=u?"h:v":"v:h",d?u?(f=a===e.y,s={x:e.x+cI*(/l/.test(i)?-1:1),y:f?a+cI:a}):(f=o===e.x,s={x:f?o+cI:o,y:e.y+cI*(/t/.test(i)?-1:1)}):s={x:o,y:a}),{waypoints:WZ(e,s,l).concat(s),directions:l,turnNextDirections:f}}function R_n(e,t,n){return g4e(e,t,n)}function O_n(e,t,n){var r=g4e(t,e,tve(n));return{waypoints:r.waypoints.slice().reverse(),directions:tve(r.directions),turnNextDirections:r.turnNextDirections}}function I_n(e,t){var n=e.directions.split(":")[1],r=t.directions.split(":")[0];e.turnNextDirections&&(n=n=="h"?"v":"h"),t.turnNextDirections&&(r=r=="h"?"v":"h");var i=n+":"+r,o=WZ(e.waypoints[e.waypoints.length-1],t.waypoints[0],i);return{waypoints:o,directions:i}}function tve(e){return e.split(":").reverse().join(":")}function N_n(e,t,n){var r=$P((t.x-e.x)/2+e.x),i=$P((t.y-e.y)/2+e.y);if(n==="h:v")return[{x:t.x,y:e.y}];if(n==="v:h")return[{x:e.x,y:t.y}];if(n==="h:h")return[{x:r,y:e.y},{x:r,y:t.y}];if(n==="v:v")return[{x:e.x,y:i},{x:t.x,y:i}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}function WZ(e,t,n){if(n=n||"h:h",!B_n(n))throw new Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(v4e(n)){var r=R_n(e,t,n),i=O_n(e,t,n),o=I_n(r,i);return[].concat(r.waypoints,o.waypoints,i.waypoints)}return N_n(e,t,n)}function M_n(e,t,n){var r=WZ(e,t,n);return r.unshift(e),r.push(t),_4e(r)}function A_n(e,t,n,r,i){var o=i&&i.preferredLayouts||[],a=Bln(o,"straight")[0]||"h:h",s=w_n[a]||0,l=Ka(e,t,s),c=F_n(l,a);n=n||er(e),r=r||er(t);var u=c.split(":"),d=rve(n,e,u[0],U_n(l)),f=rve(r,t,u[1],l);return M_n(d,f,c)}function P_n(e,t,n,r,i,o){lr(n)&&(i=n,o=r,n=er(e),r=er(t)),o=lt({preferredLayouts:[]},o),i=i||[];var a=o.preferredLayouts,s=a.indexOf("straight")!==-1,l;return l=s&&k_n(e,t,n,r,o),l||(l=o.connectionEnd&&$_n(t,e,r,i),l)||(l=o.connectionStart&&L_n(e,t,n,i),l)?l:!o.connectionStart&&!o.connectionEnd&&i&&i.length?i:A_n(e,t,n,r,o)}function D_n(e,t,n){return e>=t&&e<=n}function nve(e,t,n){var r={x:"width",y:"height"};return D_n(t[e],n[e],n[e]+n[r[e]])}function k_n(e,t,n,r,i){var o={},a,s;return s=Ka(e,t),/^(top|bottom|left|right)$/.test(s)?(/top|bottom/.test(s)&&(a="x"),/left|right/.test(s)&&(a="y"),i.preserveDocking==="target"?nve(a,r,e)?(o[a]=r[a],[{x:o.x!==void 0?o.x:n.x,y:o.y!==void 0?o.y:n.y,original:{x:o.x!==void 0?o.x:n.x,y:o.y!==void 0?o.y:n.y}},{x:r.x,y:r.y}]):null:nve(a,n,t)?(o[a]=n[a],[{x:n.x,y:n.y},{x:o.x!==void 0?o.x:r.x,y:o.y!==void 0?o.y:r.y,original:{x:o.x!==void 0?o.x:r.x,y:o.y!==void 0?o.y:r.y}}]):null):null}function L_n(e,t,n,r){return YZ(e,t,n,r)}function $_n(e,t,n,r){var i=r.slice().reverse();return i=YZ(e,t,n,i),i?i.reverse():null}function YZ(e,t,n,r){function i(u){return u.length<3?!0:u.length>4?!1:!!Br(u,function(d,f){var p=u[f-1];return p&&OT(d,p)<3})}function o(u,d,f){var p=ep(d,u);switch(p){case"v":return{x:f.x,y:u.y};case"h":return{x:u.x,y:f.y}}return{x:u.x,y:u.y}}function a(u,d,f){var p;for(p=u.length-2;p!==0;p--)if(Zme(u[p],d,eve)||Zme(u[p],f,eve))return u.slice(p);return u}if(i(r))return null;var s=r[0],l=r.slice(),c;return l[0]=n,l[1]=o(l[1],s,n),c=a(l,e,t),c!==l&&(l=YZ(e,t,n,c)),l&&ep(l)?null:l}function F_n(e,t){if(v4e(t))return t;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return t}}function B_n(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}function v4e(e){return e&&/t|r|b|l/.test(e)}function U_n(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}function rve(e,t,n,r){if(n==="h"&&(n=/left/.test(r)?"l":"r"),n==="v"&&(n=/top/.test(r)?"t":"b"),n==="t")return{original:e,x:e.x,y:t.y};if(n==="r")return{original:e,x:t.x+t.width,y:e.y};if(n==="b")return{original:e,x:e.x,y:t.y+t.height};if(n==="l")return{original:e,x:t.x,y:e.y};throw new Error("unexpected dockingDirection: <"+n+">")}function _4e(e){return e.reduce(function(t,n,r){var i=t[t.length-1],o=e[r+1];return hX(i,o,n,0)||t.push(n),t},[])}var j_n=-10,H_n=40,z_n={default:["h:h"],fromGateway:["v:h"],toGateway:["h:v"],loop:{fromTop:["t:r"],fromRight:["r:b"],fromLeft:["l:t"],fromBottom:["b:l"]},boundaryLoop:{alternateHorizontalSide:"b",alternateVerticalSide:"l",default:"v"},messageFlow:["straight","v:v"],subProcess:["straight","h:h"],isHorizontal:!0},V_n={default:["v:v"],fromGateway:["h:v"],toGateway:["v:h"],loop:{fromTop:["t:l"],fromRight:["r:t"],fromLeft:["l:b"],fromBottom:["b:r"]},boundaryLoop:{alternateHorizontalSide:"t",alternateVerticalSide:"r",default:"h"},messageFlow:["straight","h:h"],subProcess:["straight","v:v"],isHorizontal:!1},qZ={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},TC={top:"t",right:"r",bottom:"b",left:"l"};function Y$(e){this._elementRegistry=e}Rn(Y$,h4e);Y$.prototype.layoutConnection=function(e,t){t||(t={});var n=t.source||e.source,r=t.target||e.target,i=t.waypoints||e.waypoints,o=t.connectionStart,a=t.connectionEnd,s=this._elementRegistry,l,c;if(o||(o=ive(i&&i[0],n)),a||(a=ive(i&&i[i.length-1],r)),(Ne(e,"bpmn:Association")||Ne(e,"bpmn:DataAssociation"))&&i&&!ove(n,r))return[].concat([o],i.slice(1,-1),[a]);var u=z$e(n,s)?z_n:V_n;return Ne(e,"bpmn:MessageFlow")?l=W_n(n,r,u):(Ne(e,"bpmn:SequenceFlow")||ove(n,r))&&(n===r?l={preferredLayouts:Z_n(n,e,u)}:Ne(n,"bpmn:BoundaryEvent")?l={preferredLayouts:J_n(n,r,a,u)}:Ww(n)||Ww(r)?l={preferredLayouts:u.subProcess,preserveDocking:q_n(n)}:Ne(n,"bpmn:Gateway")?l={preferredLayouts:u.fromGateway}:Ne(r,"bpmn:Gateway")?l={preferredLayouts:u.toGateway}:l={preferredLayouts:u.default}),l&&(l=lt(l,t),c=_4e(P_n(n,r,o,a,i,l))),c||[o,a]};function G_n(e){var t=e.host;return Ka(er(e),t,j_n)}function W_n(e,t,n){return{preferredLayouts:n.messageFlow,preserveDocking:Y_n(e,t)}}function Y_n(e,t){return Ne(t,"bpmn:Participant")?"source":Ne(e,"bpmn:Participant")?"target":Ww(t)?"source":Ww(e)||Ne(t,"bpmn:Event")?"target":Ne(e,"bpmn:Event")?"source":null}function q_n(e){return Ww(e)?"target":"source"}function ive(e,t){return e?e.original||e:er(t)}function ove(e,t){return Ne(t,"bpmn:Activity")&&Ne(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function Ww(e){return Ne(e,"bpmn:SubProcess")&&Nr(e)}function uv(e,t){return e===t}function K_n(e,t){return t.indexOf(e)!==-1}function j0(e){var t=/right|left/.exec(e);return t&&t[0]}function H0(e){var t=/top|bottom/.exec(e);return t&&t[0]}function ave(e,t){return qZ[e]===t}function Q_n(e,t){var n=j0(e),r=qZ[n];return t.indexOf(r)!==-1}function X_n(e,t){var n=H0(e),r=qZ[n];return t.indexOf(r)!==-1}function y4e(e){return e==="right"||e==="left"}function Z_n(e,t,n){var r=t.waypoints,i=r&&r.length&&Ka(r[0],e);return i==="top"?n.loop.fromTop:i==="right"?n.loop.fromRight:i==="left"?n.loop.fromLeft:n.loop.fromBottom}function J_n(e,t,n,r){var i=er(e),o=er(t),a=G_n(e),s,l,c=uv(e.host,t),u=K_n(a,["top","right","bottom","left"]),d=Ka(o,i,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return c?eyn(a,u,e,t,n,r):(s=tyn(a,d,u,r.isHorizontal),l=nyn(a,d,u,r.isHorizontal),[s+":"+l])}function eyn(e,t,n,r,i,o){var a=t?e:o.isHorizontal?H0(e):j0(e),s=TC[a],l;return t?y4e(e)?l=sve("y",n,r,i)?"h":o.boundaryLoop.alternateHorizontalSide:l=sve("x",n,r,i)?"v":o.boundaryLoop.alternateVerticalSide:l=o.boundaryLoop.default,[s+":"+l]}function sve(e,t,n,r){var i=H_n;return!(hU(e,r,n,i)||hU(e,r,{x:n.x+n.width,y:n.y+n.height},i)||hU(e,r,er(t),i))}function hU(e,t,n,r){return Math.abs(t[e]-n[e])<r}function tyn(e,t,n,r){if(n)return TC[e];var i=H0(e),o=j0(e),a=H0(t),s=j0(t);if(r){if(uv(i,a)||ave(o,s))return TC[i]}else if(uv(o,s)||ave(i,a))return TC[o];return TC[r?o:i]}function nyn(e,t,n,r){return n?y4e(e)?Q_n(e,t)||uv(e,t)?"h":"v":X_n(e,t)||uv(e,t)?"v":"h":r?uv(H0(e),H0(t))?"h":"v":uv(j0(e),j0(t))?"v":"h"}Y$.$inject=["elementRegistry"];function lve(e){return lt({original:e.point.original||e.point},e.actual)}function lg(e,t){this._elementRegistry=e,this._graphicsFactory=t}lg.$inject=["elementRegistry","graphicsFactory"];lg.prototype.getCroppedWaypoints=function(e,t,n){t=t||e.source,n=n||e.target;var r=this.getDockingPoint(e,t,!0),i=this.getDockingPoint(e,n),o=e.waypoints.slice(r.idx+1,i.idx);return o.unshift(lve(r)),o.push(lve(i)),o};lg.prototype.getDockingPoint=function(e,t,n){var r=e.waypoints,i,o,a;return i=n?0:r.length-1,o=r[i],a=this._getIntersection(t,e,n),{point:o,actual:a||o,idx:i}};lg.prototype._getIntersection=function(e,t,n){var r=this._getShapePath(e),i=this._getConnectionPath(t);return wV(r,i,n)};lg.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)};lg.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)};lg.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};const b4e={__init__:["modeling","bpmnUpdater"],__depends__:[Xgn,hvn,vvn,_vn,e4e,Wvn,qvn,e_n,bd,RX,r4e],bpmnFactory:["type",pu],bpmnUpdater:["type",Cl],elementFactory:["type",og],modeling:["type",Ja],layouter:["type",Y$],connectionDocking:["type",lg]},cve=Math.round;function q$(e,t,n,r,i,o){this._complexPreview=e,this._connectionDocking=t,this._elementFactory=n,this._eventBus=r,this._layouter=i,this._rules=o}q$.prototype.create=function(e,t,n){const r=this._complexPreview,i=this._connectionDocking,o=this._elementFactory,a=this._eventBus,s=this._layouter,l=this._rules,c=o.createShape(lt({type:t},n)),u=a.fire("autoPlace",{source:e,shape:c});if(!u)return;lt(c,{x:u.x-cve(c.width/2),y:u.y-cve(c.height/2)});const d=l.allowed("connection.create",{source:e,target:c,hints:{targetParent:e.parent}});let f=null;d&&(f=o.createConnection(d),f.waypoints=s.layoutConnection(f,{source:e,target:c}),f.waypoints=i.getCroppedWaypoints(f,e,c)),r.create({created:[c,f].filter(p=>!$w(p))})};q$.prototype.cleanUp=function(){this._complexPreview.cleanUp()};q$.$inject=["complexPreview","connectionDocking","elementFactory","eventBus","layouter","rules"];const ryn={__depends__:[UX,Thn,b4e],__init__:["appendPreview"],appendPreview:["type",q$]};var uve=Math.min,dve=Math.max;function gU(e){e.preventDefault()}function p1(e){e.stopPropagation()}function iyn(e){return e.nodeType===Node.TEXT_NODE}function oyn(e){return[].slice.call(e)}function Ed(e){this.container=e.container,this.parent=Oi('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=fi("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=Us(this.autoResize,this),this.handlePaste=Us(this.handlePaste,this)}Ed.prototype.create=function(e,t,n,r){var i=this,o=this.parent,a=this.content,s=this.container;r=this.options=r||{},t=this.style=t||{};var l=ld(t,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);lt(o.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},l);var c=ld(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return lt(a.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},c),r.centerVertically&<(a.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},c),a.innerText=n,sr.bind(a,"keydown",this.keyHandler),sr.bind(a,"mousedown",p1),sr.bind(a,"paste",i.handlePaste),r.autoResize&&sr.bind(a,"input",this.autoResize),r.resizable&&this.resizable(t),s.appendChild(o),this.setSelection(a.lastChild,a.lastChild&&a.lastChild.length),o};Ed.prototype.handlePaste=function(e){var t=this.options,n=this.style;e.preventDefault();var r;if(e.clipboardData?r=e.clipboardData.getData("text/plain"):r=window.clipboardData.getData("Text"),this.insertText(r),t.autoResize){var i=this.autoResize(n);i&&this.resizeHandler(i)}};Ed.prototype.insertText=function(e){e=ayn(e);var t=document.execCommand("insertText",!1,e);t||this._insertTextIE(e)};Ed.prototype._insertTextIE=function(e){var t=this.getSelection(),n=t.startContainer,r=t.endContainer,i=t.startOffset,o=t.endOffset,a=t.commonAncestorContainer,s=oyn(a.childNodes),l,c;if(iyn(a)){var u=n.textContent;n.textContent=u.substring(0,i)+e+u.substring(o),l=n,c=i+e.length}else if(n===this.content&&r===this.content){var d=document.createTextNode(e);this.content.insertBefore(d,s[i]),l=d,c=d.textContent.length}else{var f=s.indexOf(n),p=s.indexOf(r);s.forEach(function(h,g){g===f?h.textContent=n.textContent.substring(0,i)+e+r.textContent.substring(o):g>f&&g<=p&&df(h)}),l=n,c=i+e.length}l&&c!==void 0&&setTimeout(function(){self.setSelection(l,c)})};Ed.prototype.autoResize=function(){var e=this.parent,t=this.content,n=parseInt(this.style.fontSize)||12;if(t.scrollHeight>e.offsetHeight||t.scrollHeight<e.offsetHeight-n){var r=e.getBoundingClientRect(),i=t.scrollHeight;e.style.height=i+"px",this.resizeHandler({width:r.width,height:r.height,dx:0,dy:i-r.height})}};Ed.prototype.resizable=function(){var e=this,t=this.parent,n=this.resizeHandle,r=parseInt(this.style.minWidth)||0,i=parseInt(this.style.minHeight)||0,o=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){n=this.resizeHandle=Oi('<div class="djs-direct-editing-resize-handle"></div>');var s,l,c,u,d=function(h){gU(h),p1(h),s=h.clientX,l=h.clientY;var g=t.getBoundingClientRect();c=g.width,u=g.height,sr.bind(document,"mousemove",f),sr.bind(document,"mouseup",p)},f=function(h){gU(h),p1(h);var g=uve(dve(c+h.clientX-s,r),o),v=uve(dve(u+h.clientY-l,i),a);t.style.width=g+"px",t.style.height=v+"px",e.resizeHandler({width:c,height:u,dx:h.clientX-s,dy:h.clientY-l})},p=function(h){gU(h),p1(h),sr.unbind(document,"mousemove",f,!1),sr.unbind(document,"mouseup",p,!1)};sr.bind(n,"mousedown",d)}lt(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),t.appendChild(n)};Ed.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),sr.unbind(t,"keydown",this.keyHandler),sr.unbind(t,"mousedown",p1),sr.unbind(t,"input",this.autoResize),sr.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),df(n)),df(e)};Ed.prototype.getValue=function(){return this.content.innerText.trim()};Ed.prototype.getSelection=function(){var e=window.getSelection(),t=e.getRangeAt(0);return t};Ed.prototype.setSelection=function(e,t){var n=document.createRange();e===null?n.selectNodeContents(this.content):(n.setStart(e,t),n.setEnd(e,t));var r=window.getSelection();r.removeAllRanges(),r.addRange(n)};function ayn(e){return e.replace(/\r\n|\r|\n/g,`
|
||
`)}function mu(e,t){this._eventBus=e,this._canvas=t,this._providers=[],this._textbox=new Ed({container:t.getContainer(),keyHandler:Us(this._handleKey,this),resizeHandler:Us(this._handleResize,this)})}mu.$inject=["eventBus","canvas"];mu.prototype.registerProvider=function(e){this._providers.push(e)};mu.prototype.isActive=function(e){return!!(this._active&&(!e||this._active.element===e))};mu.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())};mu.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})};mu.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0,this._canvas.restoreFocus&&this._canvas.restoreFocus()};mu.prototype.complete=function(){var e=this._active;if(e){var t,n=e.context.bounds,r=this.$textbox.getBoundingClientRect(),i=this.getValue(),o=e.context.text;(i!==o||r.height!==n.height||r.width!==n.width)&&(t=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,i,e.context.text,{x:r.left-t.left,y:r.top-t.top,width:r.width,height:r.height})),this._fire("complete"),this.close()}};mu.prototype.getValue=function(){return this._textbox.getValue()};mu.prototype._handleKey=function(e){e.stopPropagation();var t=e.keyCode||e.charCode;if(t===27)return e.preventDefault(),this.cancel();if(t===13&&!e.shiftKey)return e.preventDefault(),this.complete()};mu.prototype._handleResize=function(e){this._fire("resize",e)};mu.prototype.activate=function(e){this.isActive()&&this.cancel();var t,n=Br(this._providers,function(r){return(t=r.activate(e))?r:null});return t&&(this.$textbox=this._textbox.create(t.bounds,t.style,t.text,t.options),this._active={element:e,context:t,provider:n},t.options&&t.options.resizable&&(this.resizable=!0),this._fire("activate")),!!t};const S4e={__depends__:[g$],__init__:["directEditing"],directEditing:["type",mu]};function syn(e){return function(t){var n=t.target,r=sn(e),i=r.eventDefinitions&&r.eventDefinitions[0],o=r.$type===n.type,a=(i&&i.$type)===n.eventDefinitionType,s=!!n.triggeredByEvent==!!r.triggeredByEvent,l=n.isExpanded===void 0||n.isExpanded===Nr(e);return!o||!a||!s||!l}}var lyn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message start event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer start event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional start event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal start event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],cyn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],uyn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message intermediate catch event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message intermediate throw event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer intermediate catch event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation intermediate throw event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional intermediate catch event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link intermediate catch event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link intermediate throw event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation intermediate throw event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal intermediate catch event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal intermediate throw event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],dyn=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message end event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation end event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error end event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel end event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation end event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal end event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate end event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],fyn=[{label:"Exclusive gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event-based gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],pyn=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Ad-hoc sub-process",actionName:"replace-with-ad-hoc-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}},{label:"Sub-process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],myn=[{label:"Sub-process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Ad-hoc sub-process (collapsed)",actionName:"replace-with-collapsed-ad-hoc-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:AdHocSubProcess",isExpanded:!1}}],E4e=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Sub-process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Ad-hoc sub-process",actionName:"replace-with-ad-hoc-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],hyn=E4e,fve=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Send task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"Manual task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business rule task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Script task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub-process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub-process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Ad-hoc sub-process (collapsed)",actionName:"replace-with-collapsed-ad-hoc-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:AdHocSubProcess",isExpanded:!1}},{label:"Ad-hoc sub-process (expanded)",actionName:"replace-with-ad-hoc-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}}],gyn=[{label:"Data store reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],vyn=[{label:"Data object reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],_yn=[{label:"Message boundary event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!0}},{label:"Timer boundary event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!0}},{label:"Escalation boundary event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!0}},{label:"Conditional boundary event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!0}},{label:"Error boundary event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",cancelActivity:!0}},{label:"Cancel boundary event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition",cancelActivity:!0}},{label:"Signal boundary event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!0}},{label:"Compensation boundary event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",cancelActivity:!0}},{label:"Message boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],yyn=[{label:"Message start event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!0}},{label:"Timer start event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!0}},{label:"Conditional start event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!0}},{label:"Signal start event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!0}},{label:"Error start event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",isInterrupting:!0}},{label:"Escalation start event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!0}},{label:"Compensation start event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",isInterrupting:!0}},{label:"Message start event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer start event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional start event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal start event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation start event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],byn=[{label:"Sequence flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],Syn=[{label:"Expanded pool/participant",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty pool/participant";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];const pve={"start-event-non-interrupting":`
|
||
<svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">
|
||
<g transform="translate(0 995.64)">
|
||
<path d="m1899 28.357c21.545 567.43-598.38 1023.5-1133.6 835.92-548.09-147.21-801.57-873.95-463.59-1330 302.62-480.3 1071.7-507.54 1407.6-49.847 122.14 153.12 190.07 348.07 189.59 543.91z" fill="none" stroke="currentColor" stroke-dasharray="418.310422, 361.2328165" stroke-linecap="round" stroke-width="100"/>
|
||
</g>
|
||
</svg>`,"intermediate-event-non-interrupting":`
|
||
<svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">
|
||
<g transform="translate(0 995.64)" fill="none" stroke="currentColor" stroke-linecap="round">
|
||
<circle cx="1024" cy="28.357" r="875" stroke-dasharray="418.310422, 361.2328165" stroke-width="100"/>
|
||
<circle cx="1024" cy="28.357" r="685" stroke-dasharray="348.31044857,261.23283643" stroke-dashoffset="500" stroke-width="100"/>
|
||
</g>
|
||
</svg>`};function hu(e,t,n,r,i,o,a,s){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=r,this._bpmnReplace=i,this._rules=o,this._translate=a,this._moddleCopy=s,this._register()}hu.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate","moddleCopy"];hu.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)};hu.prototype.getPopupMenuEntries=function(e){var t=e.businessObject,n=this._rules,r=[];if(lr(e)||!n.allowed("shape.replace",{element:e}))return{};var i=syn(e);return Ne(t,"bpmn:DataObjectReference")?this._createEntries(e,gyn):Ne(t,"bpmn:DataStoreReference")&&!Ne(e.parent,"bpmn:Collaboration")?this._createEntries(e,vyn):Ne(t,"bpmn:StartEvent")&&!Ne(t.$parent,"bpmn:SubProcess")?(r=Cr(lyn,i),this._createEntries(e,r)):Ne(t,"bpmn:Participant")?(r=Cr(Syn,function(o){return Nr(e)!==o.target.isExpanded}),this._createEntries(e,r)):Ne(t,"bpmn:StartEvent")&&gs(t.$parent)?(r=Cr(yyn,function(o){var a=o.target,s=a.isInterrupting!==!1,l=t.isInterrupting===s;return i(o)||!i(o)&&!l}),this._createEntries(e,r)):Ne(t,"bpmn:StartEvent")&&!gs(t.$parent)&&Ne(t.$parent,"bpmn:SubProcess")?(r=Cr(cyn,i),this._createEntries(e,r)):Ne(t,"bpmn:EndEvent")?(r=Cr(dyn,function(o){var a=o.target;return a.eventDefinitionType=="bpmn:CancelEventDefinition"&&!Ne(t.$parent,"bpmn:Transaction")?!1:i(o)}),this._createEntries(e,r)):Ne(t,"bpmn:BoundaryEvent")?(r=Cr(_yn,function(o){var a=o.target;if(a.eventDefinitionType=="bpmn:CancelEventDefinition"&&!Ne(t.attachedToRef,"bpmn:Transaction"))return!1;var s=a.cancelActivity!==!1,l=t.cancelActivity==s;return i(o)||!i(o)&&!l}),this._createEntries(e,r)):Ne(t,"bpmn:IntermediateCatchEvent")||Ne(t,"bpmn:IntermediateThrowEvent")?(r=Cr(uyn,i),this._createEntries(e,r)):Ne(t,"bpmn:Gateway")?(r=Cr(fyn,i),this._createEntries(e,r)):Ne(t,"bpmn:Transaction")?(r=Cr(E4e,i),this._createEntries(e,r)):gs(t)&&Nr(e)?(r=Cr(hyn,i),this._createEntries(e,r)):Ne(t,"bpmn:AdHocSubProcess")&&Nr(e)?(r=Cr(myn,i),this._createEntries(e,r)):Ne(t,"bpmn:SubProcess")&&Nr(e)?(r=Cr(pyn,i),this._createEntries(e,r)):Ne(t,"bpmn:SubProcess")&&!Nr(e)?(r=Cr(fve,function(o){var a=o.target.type===e.type,s=o.target.isExpanded===!0;return a===s}),this._createEntries(e,r)):Ne(t,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,byn):Ne(t,"bpmn:FlowNode")?(r=Cr(fve,i),this._createEntries(e,r)):{}};hu.prototype.getPopupMenuHeaderEntries=function(e){var t={};return Ne(e,"bpmn:Activity")&&!gs(e)&&(t={...t,...this._getLoopCharacteristicsHeaderEntries(e)}),Ne(e,"bpmn:DataObjectReference")&&(t={...t,...this._getCollectionHeaderEntries(e)}),Ne(e,"bpmn:Participant")&&(t={...t,...this._getParticipantMultiplicityHeaderEntries(e)}),C3e(e)&&(t={...t,...this._getNonInterruptingHeaderEntries(e)}),t};hu.prototype._createEntries=function(e,t){var n={},r=this;return Ze(t,function(i){n[i.actionName]=r._createEntry(i,e)}),n};hu.prototype._createSequenceFlowEntries=function(e,t){var n=sn(e),r={},i=this._modeling,o=this._moddle,a=this;return Ze(t,function(s){switch(s.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(Ne(n.sourceRef,"bpmn:ExclusiveGateway")||Ne(n.sourceRef,"bpmn:InclusiveGateway")||Ne(n.sourceRef,"bpmn:ComplexGateway")||Ne(n.sourceRef,"bpmn:Activity"))&&(r={...r,[s.actionName]:a._createEntry(s,e,function(){i.updateProperties(e.source,{default:n})})});break;case"replace-with-conditional-flow":!n.conditionExpression&&Ne(n.sourceRef,"bpmn:Activity")&&(r={...r,[s.actionName]:a._createEntry(s,e,function(){var l=o.create("bpmn:FormalExpression",{body:""});i.updateProperties(e,{conditionExpression:l})})});break;default:Ne(n.sourceRef,"bpmn:Activity")&&n.conditionExpression&&(r={...r,[s.actionName]:a._createEntry(s,e,function(){i.updateProperties(e,{conditionExpression:void 0})})}),(Ne(n.sourceRef,"bpmn:ExclusiveGateway")||Ne(n.sourceRef,"bpmn:InclusiveGateway")||Ne(n.sourceRef,"bpmn:ComplexGateway")||Ne(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n&&(r={...r,[s.actionName]:a._createEntry(s,e,function(){i.updateProperties(e.source,{default:void 0})})})}}),r};hu.prototype._createEntry=function(e,t,n){var r=this._translate,i=this._bpmnReplace.replaceElement,o=function(){return i(t,e.target)},a=e.label;return a&&typeof a=="function"&&(a=a(t)),n=n||o,{label:r(a),className:e.className,action:n}};hu.prototype._getLoopCharacteristicsHeaderEntries=function(e){var t=this,n=this._translate;function r(c,u){if(u.active){t._modeling.updateProperties(e,{loopCharacteristics:void 0});return}var d=e.businessObject.get("loopCharacteristics");d&&Ne(d,u.options.loopCharacteristics)?t._modeling.updateModdleProperties(e,d,{isSequential:u.options.isSequential}):(d=t._moddle.create(u.options.loopCharacteristics,{isSequential:u.options.isSequential}),t._modeling.updateProperties(e,{loopCharacteristics:d}))}var i=sn(e),o=i.loopCharacteristics,a,s,l;return o&&(a=o.isSequential,s=o.isSequential===void 0,l=o.isSequential!==void 0&&!o.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:n("Parallel multi-instance"),active:l,action:r,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:n("Sequential multi-instance"),active:a,action:r,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:n("Loop"),active:s,action:r,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}};hu.prototype._getCollectionHeaderEntries=function(e){var t=this,n=this._translate,r=e.businessObject.dataObjectRef;if(!r)return{};function i(a,s){t._modeling.updateModdleProperties(e,r,{isCollection:!s.active})}var o=r.isCollection;return{"toggle-is-collection":{className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:o,action:i}}};hu.prototype._getParticipantMultiplicityHeaderEntries=function(e){var t=this,n=this._bpmnFactory,r=this._translate;function i(a,s){var l=s.active,c;l||(c=n.create("bpmn:ParticipantMultiplicity")),t._modeling.updateProperties(e,{participantMultiplicity:c})}var o=e.businessObject.participantMultiplicity;return{"toggle-participant-multiplicity":{className:"bpmn-icon-parallel-mi-marker",title:r("Participant multiplicity"),active:!!o,action:i}}};hu.prototype._getNonInterruptingHeaderEntries=function(e){const t=this._translate,n=sn(e),r=this,i=w3e(e),o=Ne(e,"bpmn:BoundaryEvent")?pve["intermediate-event-non-interrupting"]:pve["start-event-non-interrupting"],a=!n[i];return{"toggle-non-interrupting":{imageHtml:o,title:t("Toggle non-interrupting"),active:a,action:function(){r._modeling.updateProperties(e,{[i]:!!a})}}}};const Eyn={__depends__:[$X,e4e,UX],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",hu]};function ZT(e,t,n,r,i,o,a,s,l,c,u,d,f){e=e||{},r.registerProvider(this),this._contextPad=r,this._modeling=i,this._elementFactory=o,this._connect=a,this._create=s,this._popupMenu=l,this._canvas=c,this._rules=u,this._translate=d,this._eventBus=n,this._appendPreview=f,e.autoPlace!==!1&&(this._autoPlace=t.get("autoPlace",!1)),n.on("create.end",250,function(p){var h=p.context,g=h.shape;if(!(!jw(p)||!r.isOpen(g))){var v=r.getEntries(g);v.replace&&v.replace.action.click(p,g)}}),n.on("contextPad.close",function(){f.cleanUp()})}ZT.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate","appendPreview"];ZT.prototype.getMultiElementContextPadEntries=function(e){var t=this._modeling,n={};return this._isDeleteAllowed(e)&<(n,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Delete"),action:{click:function(r,i){t.removeElements(i.slice())}}}}),n};ZT.prototype._isDeleteAllowed=function(e){var t=this._rules.allowed("elements.delete",{elements:e});return lr(t)?G_(e,n=>t.includes(n)):t};ZT.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,r=this._elementFactory,i=this._connect,o=this._create,a=this._popupMenu,s=this._autoPlace,l=this._translate,c=this._appendPreview,u={};if(e.type==="label")return this._isDeleteAllowed([e])&<(u,h()),u;var d=e.businessObject;function f(b,S){i.start(b,S)}function p(b,S){n.removeElements([S])}function h(){return{delete:{group:"edit",className:"bpmn-icon-trash",title:l("Delete"),action:{click:p}}}}function g(b){var S=5,C=t.getPad(b).html,E=C.getBoundingClientRect(),w={x:E.left,y:E.bottom+S};return w}function v(b,S,C,E){function w(R,N){var I=r.createShape(lt({type:b},E));o.start(R,I,{source:N})}var x=s?function(R,N){var I=r.createShape(lt({type:b},E));s.append(N,I)}:w,T=s?function(R,N){return c.create(N,b,E),()=>{c.cleanUp()}}:null;return{group:"model",className:S,title:C,action:{dragstart:w,click:x,hover:T}}}function y(b){return function(S,C){n.splitLane(C,b),t.open(C,!0)}}if(br(d,["bpmn:Lane","bpmn:Participant"])&&Nr(e)){var _=rg(e);lt(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:l("Add lane above"),action:{click:function(b,S){n.addLane(S,"top")}}}}),_.length<2&&((aa(e)?e.height>=120:e.width>=120)&<(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:l("Divide into two lanes"),action:{click:y(2)}}}),(aa(e)?e.height>=180:e.width>=180)&<(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:l("Divide into three lanes"),action:{click:y(3)}}})),lt(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:l("Add lane below"),action:{click:function(b,S){n.addLane(S,"bottom")}}}})}return Ne(d,"bpmn:FlowNode")&&(Ne(d,"bpmn:EventBasedGateway")?lt(u,{"append.receive-task":v("bpmn:ReceiveTask","bpmn-icon-receive-task",l("Append receive task")),"append.message-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",l("Append message intermediate catch event"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",l("Append timer intermediate catch event"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",l("Append conditional intermediate catch event"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":v("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",l("Append signal intermediate catch event"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):mve(d,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?lt(u,{"append.compensation-activity":v("bpmn:Task","bpmn-icon-task",l("Append compensation activity"),{isForCompensation:!0})}):!Ne(d,"bpmn:EndEvent")&&!d.isForCompensation&&!mve(d,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!gs(d)&<(u,{"append.end-event":v("bpmn:EndEvent","bpmn-icon-end-event-none",l("Append end event")),"append.gateway":v("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",l("Append gateway")),"append.append-task":v("bpmn:Task","bpmn-icon-task",l("Append task")),"append.intermediate-event":v("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",l("Append intermediate/boundary event"))})),a.isEmpty(e,"bpmn-replace")||lt(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:l("Change element"),action:{click:function(b,S){var C=lt(g(S),{cursor:{x:b.x,y:b.y}});a.open(S,"bpmn-replace",C,{title:l("Change element"),width:300,search:!0})}}}}),Ne(d,"bpmn:SequenceFlow")&<(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation",l("Add text annotation"))}),br(d,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&<(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation",l("Add text annotation")),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:l("Connect to other element"),action:{click:f,dragstart:f}}}),Ne(d,"bpmn:TextAnnotation")&<(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:l("Connect using association"),action:{click:f,dragstart:f}}}),br(d,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&<(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:l("Connect using data input association"),action:{click:f,dragstart:f}}}),Ne(d,"bpmn:Group")&<(u,{"append.text-annotation":v("bpmn:TextAnnotation","bpmn-icon-text-annotation",l("Add text annotation"))}),this._isDeleteAllowed([e])&<(u,h()),u};function mve(e,t,n){var r=e.$instanceOf(t),i=!1,o=e.eventDefinitions||[];return Ze(o,function(a){a.$type===n&&(i=!0)}),r&&i}const Cyn={__depends__:[ryn,S4e,b$e,bd,GX,D$,Eyn],__init__:["contextPadProvider"],contextPadProvider:["type",ZT]};var wyn={horizontal:["x","width"],vertical:["y","height"]},hve=5;function rm(e,t){this._modeling=e,this._filters=[],this.registerFilter(function(n){var r=t.allowed("elements.distribute",{elements:n});return lr(r)?r:r?n:[]})}rm.$inject=["modeling","rules"];rm.prototype.registerFilter=function(e){if(typeof e!="function")throw new Error("the filter has to be a function");this._filters.push(e)};rm.prototype.trigger=function(e,t){var n=this._modeling,r,i;if(!(e.length<3)&&(this._setOrientation(t),i=this._filterElements(e),r=this._createGroups(i),!(r.length<=2)))return n.distributeElements(r,this._axis,this._dimension),r};rm.prototype._filterElements=function(e){var t=this._filters,n=this._axis,r=this._dimension,i=[].concat(e);return t.length?(Ze(t,function(o){i=o(i,n,r)}),i):e};rm.prototype._createGroups=function(e){var t=[],n=this,r=this._axis,i=this._dimension;if(!r)throw new Error('must have a defined "axis" and "dimension"');var o=uf(e,r);return Ze(o,function(a,s){var l=n._findRange(a,r,i),c,u=t[t.length-1];u&&n._hasIntersection(u.range,l)?t[t.length-1].elements.push(a):(c={range:l,elements:[a]},t.push(c))}),t};rm.prototype._setOrientation=function(e){var t=wyn[e];this._axis=t[0],this._dimension=t[1]};rm.prototype._hasIntersection=function(e,t){return Math.max(e.min,e.max)>=Math.min(t.min,t.max)&&Math.min(e.min,e.max)<=Math.max(t.min,t.max)};rm.prototype._findRange=function(e){var t=e[this._axis],n=e[this._dimension];return{min:t+hve,max:t+n-hve}};const xyn={__init__:["distributeElements"],distributeElements:["type",rm]};function K$(e){du.call(this,e)}K$.$inject=["eventBus"];Rn(K$,du);K$.prototype.init=function(){this.addRule("elements.distribute",function(e){var t=e.elements;return t=Cr(t,function(n){var r=br(n,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(n.labelTarget||r)}),t=a$(t),t.length<3?!1:t})};var gve={horizontal:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<polyline points="450 400 450 150 1350 150 1350 400" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>
|
||
<rect x="150" y="450" width="600" height="1200" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="1050" y="450" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`,vertical:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">
|
||
<polyline points="400 1350 150 1350 150 450 400 450" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>
|
||
<rect x="450" y="150" width="1200" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>
|
||
<rect x="450" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>
|
||
</svg>`},Tyn=900;function JT(e,t,n,r){this._distributeElements=t,this._translate=n,this._popupMenu=e,this._rules=r,e.registerProvider("align-elements",Tyn,this)}JT.$inject=["popupMenu","distributeElements","translate","rules"];JT.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&<(t,this._getEntries(e)),t};JT.prototype._isAllowed=function(e){return this._rules.allowed("elements.distribute",{elements:e})};JT.prototype._getEntries=function(e){var t=this._distributeElements,n=this._translate,r=this._popupMenu,i={"distribute-elements-horizontal":{group:"distribute",title:n("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:gve.horizontal,action:function(o,a){t.trigger(e,"horizontal"),r.close()}},"distribute-elements-vertical":{group:"distribute",title:n("Distribute elements vertically"),imageHtml:gve.vertical,action:function(o,a){t.trigger(e,"vertical"),r.close()}}};return i};const Ryn={__depends__:[$X,xyn],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",K$],distributeElementsMenuProvider:["type",JT]};var C4e="is not a registered action",Oyn="is already registered";function gu(e,t){this._actions={};var n=this;e.on("diagram.init",function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})})}gu.$inject=["eventBus","injector"];gu.prototype._registerDefaultActions=function(e){var t=e.get("commandStack",!1),n=e.get("modeling",!1),r=e.get("selection",!1),i=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),l=e.get("keyboardMove",!1),c=e.get("keyboardMoveSelection",!1);t&&(this.register("undo",function(){t.undo()}),this.register("redo",function(){t.redo()})),o&&r&&this.register("copy",function(){var u=r.get();if(u.length)return o.copy(u)}),o&&this.register("paste",function(){o.paste()}),i&&this.register("stepZoom",function(u){i.stepZoom(u.value)}),a&&this.register("zoom",function(u){a.zoom(u.value)}),n&&r&&s&&this.register("removeSelection",function(){var u=r.get();if(u.length){var d=s.allowed("elements.delete",{elements:u}),f;d!==!1&&(lr(d)?f=d:f=u,f.length&&n.removeElements(f.slice()))}}),l&&this.register("moveCanvas",function(u){l.moveCanvas(u)}),c&&this.register("moveSelection",function(u){c.moveSelection(u.direction,u.accelerated)})};gu.prototype.trigger=function(e,t){if(!this._actions[e])throw KZ(e,C4e);return this._actions[e](t)};gu.prototype.register=function(e,t){var n=this;if(typeof e=="string")return this._registerAction(e,t);Ze(e,function(r,i){n._registerAction(i,r)})};gu.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw KZ(e,Oyn);this._actions[e]=t};gu.prototype.unregister=function(e){if(!this.isRegistered(e))throw KZ(e,C4e);this._actions[e]=void 0};gu.prototype.getActions=function(){return Object.keys(this._actions)};gu.prototype.isRegistered=function(e){return!!this._actions[e]};function KZ(e,t){return new Error(e+" "+t)}const Iyn={__init__:["editorActions"],editorActions:["type",gu]};function Q$(e){e.invoke(gu,this)}Rn(Q$,gu);Q$.$inject=["injector"];Q$.prototype._registerDefaultActions=function(e){gu.prototype._registerDefaultActions.call(this,e);var t=e.get("canvas",!1),n=e.get("elementRegistry",!1),r=e.get("selection",!1),i=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),l=e.get("distributeElements",!1),c=e.get("alignElements",!1),u=e.get("directEditing",!1),d=e.get("searchPad",!1),f=e.get("modeling",!1),p=e.get("contextPad",!1);t&&n&&r&&this._registerAction("selectElements",function(){var h=t.getRootElement(),g=n.filter(function(v){return v!==h});return r.select(g),g}),i&&this._registerAction("spaceTool",function(){i.toggle()}),o&&this._registerAction("lassoTool",function(){o.toggle()}),a&&this._registerAction("handTool",function(){a.toggle()}),s&&this._registerAction("globalConnectTool",function(){s.toggle()}),r&&l&&this._registerAction("distributeElements",function(h){var g=r.get(),v=h.type;g.length&&l.trigger(g,v)}),r&&c&&this._registerAction("alignElements",function(h){var g=r.get(),v=[],y=h.type;g.length&&(v=Cr(g,function(_){return!Ne(_,"bpmn:Lane")}),c.trigger(v,y))}),r&&f&&this._registerAction("setColor",function(h){var g=r.get();g.length&&f.setColor(g,h)}),r&&u&&this._registerAction("directEditing",function(){var h=r.get();h.length&&u.activate(h[0])}),d&&this._registerAction("find",function(){d.toggle()}),t&&f&&this._registerAction("moveToOrigin",function(){var h=t.getRootElement(),g,v;Ne(h,"bpmn:Collaboration")?v=n.filter(function(y){return Ne(y.parent,"bpmn:Collaboration")}):v=n.filter(function(y){return y!==h&&!Ne(y.parent,"bpmn:SubProcess")}),g=oa(v),f.moveElements(v,{x:-g.x,y:-g.y},h)}),r&&p&&this._registerAction("replaceElement",function(h){p.triggerEntry("replace","click",h)})};const Nyn={__depends__:[Iyn],editorActions:["type",Q$]};function w4e(e){e.on(["create.init","shape.move.init"],function(t){var n=t.context,r=t.shape;br(r,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(n.gridSnappingContext||(n.gridSnappingContext={}),n.gridSnappingContext.snapLocation="top-left")})}w4e.$inject=["eventBus"];var UN=10;function vU(e,t,n){return n||(n="round"),Math[n](e/t)*t}var Myn=1200,Ayn=800;function cg(e,t,n){var r=!n||n.active!==!1;this._eventBus=t;var i=this;t.on("diagram.init",Ayn,function(){i.setActive(r)}),t.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],Myn,function(o){var a=o.originalEvent;if(!(!i.active||a&&Vc(a))){var s=o.context,l=s.gridSnappingContext;l||(l=s.gridSnappingContext={}),["x","y"].forEach(function(c){var u={},d=Dyn(o,c,e);d&&(u.offset=d);var f=Pyn(o,c);f&<(u,f),B0(o,c)||i.snapEvent(o,c,u)})}})}cg.prototype.snapEvent=function(e,t,n){var r=this.snapValue(e[t],n);Ro(e,t,r)};cg.prototype.getGridSpacing=function(){return UN};cg.prototype.snapValue=function(e,t){var n=0;t&&t.offset&&(n=t.offset),e+=n,e=vU(e,UN);var r,i;return t&&t.min&&(r=t.min,Jn(r)&&(r=vU(r+n,UN,"ceil"),e=Math.max(e,r))),t&&t.max&&(i=t.max,Jn(i)&&(i=vU(i+n,UN,"floor"),e=Math.min(e,i))),e-=n,e};cg.prototype.isActive=function(){return this.active};cg.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})};cg.prototype.toggleActive=function(){this.setActive(!this.active)};cg.$inject=["elementRegistry","eventBus","config.gridSnapping"];function Pyn(e,t){var n=e.context,r=n.createConstraints,i=n.resizeConstraints||{},o=n.gridSnappingContext,a=o.snapConstraints;if(a&&a[t])return a[t];a||(a=o.snapConstraints={}),a[t]||(a[t]={});var s=n.direction;r&&(jN(t)?(a.x.min=r.left,a.x.max=r.right):(a.y.min=r.top,a.y.max=r.bottom));var l=i.min,c=i.max;return l&&(jN(t)?_ve(s)?a.x.max=l.left:a.x.min=l.right:vve(s)?a.y.max=l.top:a.y.min=l.bottom),c&&(jN(t)?_ve(s)?a.x.min=c.left:a.x.max=c.right:vve(s)?a.y.min=c.top:a.y.max=c.bottom),a[t]}function Dyn(e,t,n){var r=e.context,i=e.shape,o=r.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;return s&&Jn(s[t])||(s||(s=o.snapOffset={}),Jn(s[t])||(s[t]=0),!i)||(n.get(i.id)||(jN(t)?s[t]+=i[t]+i.width/2:s[t]+=i[t]+i.height/2),!a)||(t==="x"?/left/.test(a)?s[t]-=i.width/2:/right/.test(a)&&(s[t]+=i.width/2):/top/.test(a)?s[t]-=i.height/2:/bottom/.test(a)&&(s[t]+=i.height/2)),s[t]}function jN(e){return e==="x"}function vve(e){return e.indexOf("n")!==-1}function _ve(e){return e.indexOf("w")!==-1}function J_(e,t){Jt.call(this,e),this._gridSnapping=t;var n=this;this.preExecute("shape.resize",function(r){var i=r.context,o=i.hints||{},a=o.autoResize;if(a){var s=i.shape,l=i.newBounds;gl(a)?i.newBounds=n.snapComplex(l,a):i.newBounds=n.snapSimple(s,l)}})}J_.$inject=["eventBus","gridSnapping","modeling"];Rn(J_,Jt);J_.prototype.snapSimple=function(e,t){var n=this._gridSnapping;return t.width=n.snapValue(t.width,{min:t.width}),t.height=n.snapValue(t.height,{min:t.height}),t.x=e.x+e.width/2-t.width/2,t.y=e.y+e.height/2-t.height/2,t};J_.prototype.snapComplex=function(e,t){return/w|e/.test(t)&&(e=this.snapHorizontally(e,t)),/n|s/.test(t)&&(e=this.snapVertically(e,t)),e};J_.prototype.snapHorizontally=function(e,t){var n=this._gridSnapping,r=/w/.test(t),i=/e/.test(t),o={};return o.width=n.snapValue(e.width,{min:e.width}),i&&(r?(o.x=n.snapValue(e.x,{max:e.x}),o.width+=n.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),lt(e,o),e};J_.prototype.snapVertically=function(e,t){var n=this._gridSnapping,r=/n/.test(t),i=/s/.test(t),o={};return o.height=n.snapValue(e.height,{min:e.height}),r&&(i?(o.y=n.snapValue(e.y,{max:e.y}),o.height+=n.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),lt(e,o),e};var kyn=2e3;function x4e(e,t){e.on(["spaceTool.move","spaceTool.end"],kyn,function(n){var r=n.context;if(r.initialized){var i=r.axis,o;i==="x"?(o=t.snapValue(n.dx),n.x=n.x+o-n.dx,n.dx=o):(o=t.snapValue(n.dy),n.y=n.y+o-n.dy,n.dy=o)}})}x4e.$inject=["eventBus","gridSnapping"];const Lyn={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",J_],gridSnappingSpaceToolBehavior:["type",x4e]},$yn={__depends__:[Lyn],__init__:["gridSnapping"],gridSnapping:["type",cg]};var Fyn=2e3;function T4e(e,t,n){e.on("autoPlace",Fyn,function(r){var i=r.source,o=er(i),a=r.shape,s=V$e(i,a,n);return["x","y"].forEach(function(l){var c={};s[l]!==o[l]&&(s[l]>o[l]?c.min=s[l]:c.max=s[l],Ne(a,"bpmn:TextAnnotation")&&(Byn(l)?c.offset=-a.width/2:c.offset=-a.height/2),s[l]=t.snapValue(s[l],c))}),s})}T4e.$inject=["eventBus","gridSnapping","elementRegistry"];function Byn(e){return e==="x"}var Uyn=1750;function R4e(e,t,n){t.on(["create.start","shape.move.start"],Uyn,function(r){var i=r.context,o=i.shape,a=e.getRootElement();if(!(!Ne(o,"bpmn:Participant")||!Ne(a,"bpmn:Process")||!a.children.length)){var s=i.createConstraints;s&&(o.width=n.snapValue(o.width,{min:o.width}),o.height=n.snapValue(o.height,{min:o.height}))}})}R4e.$inject=["canvas","eventBus","gridSnapping"];var jyn=3e3;function X$(e,t,n){Jt.call(this,e),this._gridSnapping=t;var r=this;this.postExecuted(["connection.create","connection.layout"],jyn,function(i){var o=i.context,a=o.connection,s=o.hints||{},l=a.waypoints;s.connectionStart||s.connectionEnd||s.createElementsBehavior===!1||Hyn(l)&&n.updateWaypoints(a,r.snapMiddleSegments(l))})}X$.$inject=["eventBus","gridSnapping","modeling"];Rn(X$,Jt);X$.prototype.snapMiddleSegments=function(e){var t=this._gridSnapping,n;e=e.slice();for(var r=1;r<e.length-2;r++)n=Gyn(t,e[r],e[r+1]),e[r]=n[0],e[r+1]=n[1];return e};function Hyn(e){return e.length>3}function zyn(e){return e==="h"}function Vyn(e){return e==="v"}function Gyn(e,t,n){var r=ep(t,n),i={};return zyn(r)&&(i.y=e.snapValue(t.y)),Vyn(r)&&(i.x=e.snapValue(t.x)),("x"in i||"y"in i)&&(t=lt({},t,i),n=lt({},n,i)),[t,n]}const Wyn={__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",T4e],gridSnappingParticipantBehavior:["type",R4e],gridSnappingLayoutConnectionBehavior:["type",X$]},Yyn={__depends__:[$yn,Wyn],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",w4e]};var qyn=30,O4e=30;function eR(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],function(r){var i=r.element,o=r.gfx;if(Ne(i,"bpmn:Lane"))return n._createParticipantHit(i,o);if(Ne(i,"bpmn:Participant"))return Nr(i)?n._createParticipantHit(i,o):n._createDefaultHit(i,o);if(Ne(i,"bpmn:SubProcess"))return Nr(i)?n._createSubProcessHit(i,o):n._createDefaultHit(i,o)})}eR.$inject=["eventBus","interactionEvents"];eR.prototype._createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0};eR.prototype._createParticipantHit=function(e,t){this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height});var n=aa(e)?{width:qyn,height:e.height}:{width:e.width,height:O4e};return this._interactionEvents.createBoxHit(t,"all",n),!0};eR.prototype._createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:O4e}),!0};const Kyn={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",eR]};function Z$(e){e.invoke(qS,this)}Rn(Z$,qS);Z$.$inject=["injector"];Z$.prototype.registerBindings=function(e,t){qS.prototype.registerBindings.call(this,e,t);function n(r,i){t.isRegistered(r)&&e.addListener(i)}n("selectElements",function(r){var i=r.keyEvent;if(e.isKey(["a","A"],i)&&e.isCmd(i))return t.trigger("selectElements"),!0}),n("find",function(r){var i=r.keyEvent;if(e.isKey(["f","F"],i)&&e.isCmd(i))return t.trigger("find"),!0}),n("spaceTool",function(r){var i=r.keyEvent;if(!e.hasModifier(i)&&e.isKey(["s","S"],i))return t.trigger("spaceTool"),!0}),n("lassoTool",function(r){var i=r.keyEvent;if(!e.hasModifier(i)&&e.isKey(["l","L"],i))return t.trigger("lassoTool"),!0}),n("handTool",function(r){var i=r.keyEvent;if(!e.hasModifier(i)&&e.isKey(["h","H"],i))return t.trigger("handTool"),!0}),n("globalConnectTool",function(r){var i=r.keyEvent;if(!e.hasModifier(i)&&e.isKey(["c","C"],i))return t.trigger("globalConnectTool"),!0}),n("directEditing",function(r){var i=r.keyEvent;if(!e.hasModifier(i)&&e.isKey(["e","E"],i))return t.trigger("directEditing"),!0}),n("replaceElement",function(r){var i=r.keyEvent;if(!e.hasModifier(i)&&e.isKey(["r","R"],i))return t.trigger("replaceElement",i),!0})};const Qyn={__depends__:[NX],__init__:["keyboardBindings"],keyboardBindings:["type",Z$]};var Xyn={moveSpeed:1,moveSpeedAccelerated:10},Zyn=1500,yve="left",bve="up",Sve="right",Eve="down",Jyn={ArrowLeft:yve,Left:yve,ArrowUp:bve,Up:bve,ArrowRight:Sve,Right:Sve,ArrowDown:Eve,Down:Eve},ebn={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function I4e(e,t,n,r,i){var o=this;this._config=lt({},Xyn,e||{}),t.addListener(Zyn,function(a){var s=a.keyEvent,l=Jyn[s.key];if(l&&!t.isCmd(s)){var c=t.isShift(s);return o.moveSelection(l,c),!0}}),this.moveSelection=function(a,s){var l=i.get();if(l.length){var c=this._config[s?"moveSpeedAccelerated":"moveSpeed"],u=ebn[a](c),d=r.allowed("elements.move",{shapes:l});d&&n.moveElements(l,u)}}}I4e.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];const tbn={__depends__:[NX,bd],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",I4e]};var Cve=10;function tR(e,t,n,r){this._dragging=r,this._rules=t;var i=this;function o(l,c){var u=l.shape,d=l.direction,f=l.resizeConstraints,p;l.delta=c,p=Fhn(u,d,c),l.newBounds=Uhn(p,f),l.canExecute=i.canResize(l)}function a(l){var c=l.resizeConstraints,u=l.minBounds;c===void 0&&(u===void 0&&(u=i.computeMinResizeBox(l)),l.resizeConstraints={min:Gn(u)})}function s(l){var c=l.shape,u=l.canExecute,d=l.newBounds;if(u){if(d=mLe(d),!nbn(c,d))return;n.resizeShape(c,d)}}e.on("resize.start",function(l){a(l.context)}),e.on("resize.move",function(l){var c={x:l.dx,y:l.dy};o(l.context,c)}),e.on("resize.end",function(l){s(l.context)})}tR.prototype.canResize=function(e){var t=this._rules,n=ld(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)};tR.prototype.activate=function(e,t,n){var r=this._dragging,i,o;if(typeof n=="string"&&(n={direction:n}),i=lt({shape:t},n),o=i.direction,!o)throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");r.init(e,N4e(t,o),"resize",{autoActivate:!0,cursor:rbn(o),data:{shape:t,context:i}})};tR.prototype.computeMinResizeBox=function(e){var t=e.shape,n=e.direction,r,i;return r=e.minDimensions||{width:Cve,height:Cve},i=m3e(t,e.childrenBoxPadding),jhn(n,t,r,i)};tR.$inject=["eventBus","rules","modeling","dragging"];function nbn(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}function N4e(e,t){var n=er(e),r=Gn(e),i={x:n.x,y:n.y};return t.indexOf("n")!==-1?i.y=r.top:t.indexOf("s")!==-1&&(i.y=r.bottom),t.indexOf("e")!==-1?i.x=r.right:t.indexOf("w")!==-1&&(i.x=r.left),i}function rbn(e){var t="resize-";return e==="n"||e==="s"?t+"ns":e==="e"||e==="w"?t+"ew":e==="nw"||e==="se"?t+"nwse":t+"nesw"}var wve="djs-resizing",xve="resize-not-ok",ibn=500;function M4e(e,t,n){function r(o){var a=o.shape,s=o.newBounds,l=o.frame;l||(l=o.frame=n.addFrame(a,t.getActiveLayer()),t.addMarker(a,wve)),s.width>5&&Cn(l,{x:s.x,width:s.width}),s.height>5&&Cn(l,{y:s.y,height:s.height}),o.canExecute?Dr(l).remove(xve):Dr(l).add(xve)}function i(o){var a=o.shape,s=o.frame;s&&Vo(o.frame),t.removeMarker(a,wve)}e.on("resize.move",ibn,function(o){r(o.context)}),e.on("resize.cleanup",function(o){i(o.context)})}M4e.$inject=["eventBus","canvas","previewSupport"];var uI=-6,dI=8,fI=20,JE="djs-resizer",obn=["n","w","s","e","nw","ne","se","sw"];function ug(e,t,n,r){this._resize=r,this._canvas=t;var i=this;e.on("selection.changed",function(o){var a=o.newSelection;i.removeResizers(),a.length===1&&Ze(a,Us(i.addResizer,i))}),e.on("shape.changed",function(o){var a=o.element;n.isSelected(a)&&(i.removeResizers(),i.addResizer(a))})}ug.prototype.makeDraggable=function(e,t,n){var r=this._resize;function i(o){eg(o)&&r.activate(o,e,n)}sr.bind(t,"mousedown",i),sr.bind(t,"touchstart",i)};ug.prototype._createResizer=function(e,t,n,r){var i=this._getResizersParent(),o=abn(r),a=Bn("g");Dr(a).add(JE),Dr(a).add(JE+"-"+e.id),Dr(a).add(JE+"-"+r),nr(i,a);var s=Bn("rect");Cn(s,{x:-dI/2+o.x,y:-dI/2+o.y,width:dI,height:dI}),Dr(s).add(JE+"-visual"),nr(a,s);var l=Bn("rect");return Cn(l,{x:-fI/2+o.x,y:-fI/2+o.y,width:fI,height:fI}),Dr(l).add(JE+"-hit"),nr(a,l),IN(a,t,n),a};ug.prototype.createResizer=function(e,t){var n=N4e(e,t),r=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,r,t)};ug.prototype.addResizer=function(e){var t=this;pi(e)||!this._resize.canResize({shape:e})||Ze(obn,function(n){t.createResizer(e,n)})};ug.prototype.removeResizers=function(){var e=this._getResizersParent();i$(e)};ug.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")};ug.$inject=["eventBus","canvas","selection","resize"];function abn(e){var t={x:0,y:0};return e.indexOf("e")!==-1?t.x=-uI:e.indexOf("w")!==-1&&(t.x=uI),e.indexOf("s")!==-1?t.y=-uI:e.indexOf("n")!==-1&&(t.y=uI),t}const A4e={__depends__:[Ef,em,JS],__init__:["resize","resizePreview","resizeHandles"],resize:["type",tR],resizePreview:["type",M4e],resizeHandles:["type",ug]};var sbn=2e3;function nR(e,t,n,r,i,o,a){this._bpmnFactory=t,this._canvas=n,this._modeling=i,this._textRenderer=a,r.registerProvider(this),e.on("element.dblclick",function(l){s(l.element,!0)}),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],function(){r.isActive()&&r.complete()}),e.on(["shape.remove","connection.remove"],sbn,function(l){r.isActive(l.element)&&r.cancel()}),e.on(["commandStack.changed"],function(l){r.isActive()&&r.cancel()}),e.on("directEditing.activate",function(l){o.removeResizers()}),e.on("create.end",500,function(l){var c=l.context,u=c.shape,d=l.context.canExecute,f=l.isTouch;f||d&&(c.hints&&c.hints.createElementsBehavior===!1||s(u))}),e.on("autoPlace.end",500,function(l){s(l.shape)});function s(l,c){(c||br(l,["bpmn:Task","bpmn:TextAnnotation","bpmn:Participant"])||QZ(l))&&r.activate(l)}}nR.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"];nR.prototype.activate=function(e){var t=cd(e);if(t!==void 0){var n={text:t},r=this.getEditingBBox(e);lt(n,r);var i={},o=n.style||{};return lt(o,{backgroundColor:null,border:null}),(br(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||QZ(e))&<(i,{centerVertically:!0}),m_(e)&&(lt(i,{autoResize:!0}),lt(o,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),Ne(e,"bpmn:TextAnnotation")&&(lt(i,{resizable:!0,autoResize:!0}),lt(o,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),lt(n,{options:i,style:o}),n}};nR.prototype.getEditingBBox=function(e){var t=this._canvas,n=e.label||e,r=t.getAbsoluteBBox(n),i={x:r.x+r.width/2,y:r.y+r.height/2},o={x:r.x,y:r.y},a=t.zoom(),s=this._textRenderer.getDefaultStyle(),l=this._textRenderer.getExternalStyle(),c=l.fontSize*a,u=l.lineHeight,d=s.fontSize*a,f=s.lineHeight,p={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};if(Ne(e,"bpmn:Lane")||ubn(e)){var h=aa(e),g=h?{width:r.height,height:30*a,x:r.x-r.height/2+15*a,y:i.y-30*a/2}:{width:r.width,height:30*a};lt(o,g),lt(p,{fontSize:d+"px",lineHeight:f,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:h?"rotate(-90deg)":null})}if(cbn(e)){var v=aa(e),y=v?{width:r.width,height:r.height}:{width:r.height,height:r.width,x:i.x-r.height/2,y:i.y-r.width/2};lt(o,y),lt(p,{fontSize:d+"px",lineHeight:f,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:v?null:"rotate(-90deg)"})}(br(e,["bpmn:Task","bpmn:CallActivity"])||QZ(e))&&(lt(o,{width:r.width,height:r.height}),lt(p,{fontSize:d+"px",lineHeight:f,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),lbn(e)&&(lt(o,{width:r.width,x:r.x}),lt(p,{fontSize:d+"px",lineHeight:f,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var _=90*a,b=7*a,S=4*a;if(n.labelTarget&&(lt(o,{width:_,height:r.height+b+S,x:i.x-_/2,y:r.y-b}),lt(p,{fontSize:c+"px",lineHeight:u,paddingTop:b+"px",paddingBottom:S+"px"})),m_(n)&&!d$(n)&&!Lr(n)){var C=TX(e),E=t.getAbsoluteBBox({x:C.x,y:C.y,width:0,height:0}),w=c+b+S;lt(o,{width:_,height:w,x:E.x-_/2,y:E.y-w/2}),lt(p,{fontSize:c+"px",lineHeight:u,paddingTop:b+"px",paddingBottom:S+"px"})}return Ne(e,"bpmn:TextAnnotation")&&(lt(o,{width:r.width,height:r.height,minWidth:30*a,minHeight:10*a}),lt(p,{textAlign:"left",paddingTop:5*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:5*a+"px",fontSize:d+"px",lineHeight:f})),{bounds:o,style:p}};nR.prototype.update=function(e,t,n,r){var i,o;Ne(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),i={x:e.x,y:e.y,width:e.width/o.width*r.width,height:e.height/o.height*r.height}),dbn(t)&&(t=null),this._modeling.updateLabel(e,t,i)};function QZ(e){return Ne(e,"bpmn:SubProcess")&&!Nr(e)}function lbn(e){return Ne(e,"bpmn:SubProcess")&&Nr(e)}function cbn(e){return Ne(e,"bpmn:Participant")&&!Nr(e)}function ubn(e){return Ne(e,"bpmn:Participant")&&Nr(e)}function dbn(e){return!e||!e.trim()}var Tve="djs-element-hidden",Rve="djs-label-hidden";function P4e(e,t,n){var r=this,i=t.getDefaultLayer(),o,a,s;e.on("directEditing.activate",function(l){var c=l.active;if(o=c.element.label||c.element,Ne(o,"bpmn:TextAnnotation")){a=t.getAbsoluteBBox(o),s=Bn("g");var u=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:o.height,position:{mx:0,my:0}}),d=r.path=Bn("path");Cn(d,{d:u,strokeWidth:2,stroke:fbn(o)}),nr(s,d),nr(i,s),Na(s,o.x,o.y)}Ne(o,"bpmn:TextAnnotation")||o.labelTarget?t.addMarker(o,Tve):(Ne(o,"bpmn:Task")||Ne(o,"bpmn:CallActivity")||Ne(o,"bpmn:SubProcess")||Ne(o,"bpmn:Participant")||Ne(o,"bpmn:Lane"))&&t.addMarker(o,Rve)}),e.on("directEditing.resize",function(l){if(Ne(o,"bpmn:TextAnnotation")){var c=l.height,u=l.dy,d=Math.max(o.height/a.height*(c+u),0),f=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:d,position:{mx:0,my:0}});Cn(r.path,{d:f})}}),e.on(["directEditing.complete","directEditing.cancel"],function(l){var c=l.active;c&&(t.removeMarker(c.element.label||c.element,Tve),t.removeMarker(o,Rve)),o=void 0,a=void 0,s&&(Vo(s),s=void 0)})}P4e.$inject=["eventBus","canvas","pathMap"];function fbn(e,t){var n=kr(e);return n.get("stroke")||t||"black"}const pbn={__depends__:[RX,A4e,S4e],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",nR],labelEditingPreview:["type",P4e]};var mbn=new DT("tt");function hbn(e){var t=Oi('<div class="djs-tooltip-container" />');return ja(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function gbn(e,t,n){ja(e,{left:t+"px",top:n+"px"})}function XZ(e,t){e.style.display=t===!1?"none":""}var D4e="djs-tooltip",_U="."+D4e;function Ys(e,t){this._eventBus=e,this._canvas=t,this._ids=mbn,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=hbn(t.getContainer());var n=this;ul.bind(this._tooltipRoot,_U,"mousedown",function(r){r.stopPropagation()}),ul.bind(this._tooltipRoot,_U,"mouseover",function(r){n.trigger("mouseover",r)}),ul.bind(this._tooltipRoot,_U,"mouseout",function(r){n.trigger("mouseout",r)}),this._init()}Ys.$inject=["eventBus","canvas"];Ys.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=lt({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t};Ys.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,r=this.get(za(n,"data-tooltip-id"));r&&(e==="mouseover"&&r.timeout&&this.clearTimeout(r),e==="mouseout"&&r.timeout&&(r.timeout=1e3,this.setTimeout(r)))};Ys.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]};Ys.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}};Ys.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}};Ys.prototype.remove=function(e){var t=this.get(e);t&&(df(t.html),df(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])};Ys.prototype.show=function(){XZ(this._tooltipRoot)};Ys.prototype.hide=function(){XZ(this._tooltipRoot,!1)};Ys.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,r="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._tooltipRoot.style.transform=r,this._tooltipRoot.style["-ms-transform"]=r};Ys.prototype._addTooltip=function(e){var t=e.id,n=e.html,r,i=this._tooltipRoot;n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),gl(n)&&(n=Oi(n)),r=Oi('<div data-tooltip-id="'+t+'" class="'+D4e+'">'),ja(r,{position:"absolute"}),r.appendChild(n),e.type&&so(r).add("djs-tooltip-"+e.type),e.className&&so(r).add(e.className),e.htmlContainer=r,i.appendChild(r),this._tooltips[t]=e,this._updateTooltip(e)};Ys.prototype._updateTooltip=function(e){var t=e.position,n=e.htmlContainer;gbn(n,t.x,t.y)};Ys.prototype._updateTooltipVisibilty=function(e){Ze(this._tooltips,function(t){var n=t.show,r=t.htmlContainer,i=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(i=!1),XZ(r,i))})};Ys.prototype._init=function(){var e=this;function t(n){e._updateRoot(n),e._updateTooltipVisibilty(n),e.show()}this._eventBus.on("canvas.viewbox.changing",function(n){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(n){t(n.viewbox)})};const vbn={__init__:["tooltips"],tooltips:["type",Ys]};var _bn="flow elements must be children of pools/participants";function k4e(e,t,n){function r(i,o,a){t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:2e3,html:"<div>"+o+"</div>"})}e.on(["shape.move.rejected","create.rejected"],function(i){var o=i.context,a=o.shape,s=o.target;Ne(s,"bpmn:Collaboration")&&Ne(a,"bpmn:FlowNode")&&r(i,n(_bn))})}k4e.$inject=["eventBus","tooltips","translate"];const ybn={__depends__:[vbn],__init__:["modelingFeedback"],modelingFeedback:["type",k4e]};var bbn=500,Sbn=1e3;function ey(e,t){this._eventBus=e,this.offset=5;var n=t.cls("djs-outline",["no-fill"]),r=this;function i(o){var a=Bn("rect");return Cn(a,lt({x:0,y:0,rx:4,width:100,height:100},n)),a}e.on(["shape.added","shape.changed"],bbn,function(o){var a=o.element,s=o.gfx,l=fi(".djs-outline",s);l||(l=r.getOutline(a)||i(),nr(s,l)),r.updateShapeOutline(l,a)}),e.on(["connection.added","connection.changed"],function(o){var a=o.element,s=o.gfx,l=fi(".djs-outline",s);l||(l=i(),nr(s,l)),r.updateConnectionOutline(l,a)})}ey.prototype.updateShapeOutline=function(e,t){var n=!1,r=this._getProviders();r.length&&Ze(r,function(i){n=n||i.updateOutline(t,e)}),n||Cn(e,{x:-this.offset,y:-this.offset,width:t.width+this.offset*2,height:t.height+this.offset*2})};ey.prototype.updateConnectionOutline=function(e,t){var n=oa(t);Cn(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+this.offset*2,height:n.height+this.offset*2})};ey.prototype.registerProvider=function(e,t){t||(t=e,e=Sbn),this._eventBus.on("outline.getProviders",e,function(n){n.providers.push(t)})};ey.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};ey.prototype.getOutline=function(e){var t,n=this._getProviders();return Ze(n,function(r){Go(r.getOutline)&&(t=t||r.getOutline(e))}),t};ey.$inject=["eventBus","styles","elementRegistry"];var pI=6;function ZZ(e,t,n){this._canvas=t;var r=this;e.on("element.changed",function(i){n.isSelected(i.element)&&r._updateMultiSelectionOutline(n.get())}),e.on("selection.changed",function(i){var o=i.newSelection;r._updateMultiSelectionOutline(o)})}ZZ.prototype._updateMultiSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");i$(t);var n=e.length>1,r=this._canvas.getContainer();if(Dr(r)[n?"add":"remove"]("djs-multi-select"),!!n){var i=Ebn(oa(e)),o=Bn("rect");Cn(o,lt({rx:3},i)),Dr(o).add("djs-selection-outline"),nr(t,o)}};ZZ.$inject=["eventBus","canvas","selection"];function Ebn(e){return{x:e.x-pI,y:e.y-pI,width:e.width+pI*2,height:e.height+pI*2}}const L4e={__depends__:[bd],__init__:["outline","multiSelectionOutline"],outline:["type",ey],multiSelectionOutline:["type",ZZ]};var Cbn=500,wbn=1250,xbn=1500,FP=Math.round;function Tbn(e){return{x:e.x+FP(e.width/2),y:e.y+FP(e.height/2)}}function $4e(e,t,n,r,i){function o(s,l,c,u){return i.allowed("elements.move",{shapes:s,delta:l,position:c,target:u})}e.on("shape.move.start",xbn,function(s){var l=s.context,c=s.shape,u=r.get().slice();u.indexOf(c)===-1&&(u=[c]),u=Rbn(u),lt(l,{shapes:u,validatedShapes:u,shape:c})}),e.on("shape.move.start",wbn,function(s){var l=s.context,c=l.validatedShapes,u;if(u=l.canExecute=o(c),!u)return!1}),e.on("shape.move.move",Cbn,function(s){var l=s.context,c=l.validatedShapes,u=s.hover,d={x:s.dx,y:s.dy},f={x:s.x,y:s.y},p;if(p=o(c,d,f,u),l.delta=d,l.canExecute=p,p===null){l.target=null;return}l.target=u}),e.on("shape.move.end",function(s){var l=s.context,c=l.delta,u=l.canExecute,d=u==="attach",f=l.shapes;if(u===!1)return!1;c.x=FP(c.x),c.y=FP(c.y),!(c.x===0&&c.y===0)&&n.moveElements(f,c,l.target,{primaryShape:l.shape,attach:d})}),e.on("element.mousedown",function(s){if(eg(s)){var l=WS(s);if(!l)throw new Error("must supply DOM mousedown event");return a(l,s.element)}});function a(s,l,c,u){if(ba(c)&&(u=c,c=!1),!(l.waypoints||!l.parent)&&!Dr(s.target).has("djs-hit-no-move")){var d=Tbn(l);return t.init(s,d,"shape.move",{cursor:"grabbing",autoActivate:c,data:{shape:l,context:u||{}}}),!0}}this.start=a}$4e.$inject=["eventBus","dragging","modeling","selection","rules"];function Rbn(e){var t=jS(e,"id");return Cr(e,function(n){for(;n=n.parent;)if(t[n.id])return!1;return!0})}var Ove=499,yU="djs-dragging",Ive="drop-ok",Nve="drop-not-ok",Mve="new-parent",Ave="attach-ok";function F4e(e,t,n,r){function i(l){var c=o(l),u=Obn(c);return u}function o(l){var c=RT(l,!0),u=c.flatMap(p=>(p.incoming||[]).concat(p.outgoing||[])),d=c.concat(u),f=[...new Set(d)];return f}function a(l,c){[Ave,Ive,Nve,Mve].forEach(function(u){u===c?t.addMarker(l,u):t.removeMarker(l,u)})}function s(l,c,u){r.addDragger(c,l.dragGroup),u&&t.addMarker(c,yU),l.allDraggedElements?l.allDraggedElements.push(c):l.allDraggedElements=[c]}e.on("shape.move.start",Ove,function(l){var c=l.context,u=c.shapes,d=c.allDraggedElements,f=i(u);if(!c.dragGroup){var p=Bn("g");Cn(p,n.cls("djs-drag-group",["no-events"]));var h=t.getActiveLayer();nr(h,p),c.dragGroup=p}f.forEach(function(g){r.addDragger(g,c.dragGroup)}),d?d=lX([d,o(u)]):d=o(u),Ze(d,function(g){t.addMarker(g,yU)}),c.allDraggedElements=d,c.differentParents=Ibn(u)}),e.on("shape.move.move",Ove,function(l){var c=l.context,u=c.dragGroup,d=c.target,f=c.shape.parent,p=c.canExecute;d&&(p==="attach"?a(d,Ave):c.canExecute&&f&&d.id!==f.id?a(d,Mve):a(d,c.canExecute?Ive:Nve)),Na(u,l.dx,l.dy)}),e.on(["shape.move.out","shape.move.cleanup"],function(l){var c=l.context,u=c.target;u&&a(u,null)}),e.on("shape.move.cleanup",function(l){var c=l.context,u=c.allDraggedElements,d=c.dragGroup;Ze(u,function(f){t.removeMarker(f,yU)}),d&&Vo(d)}),this.makeDraggable=s}F4e.$inject=["eventBus","canvas","styles","previewSupport"];function Obn(e){var t=Cr(e,function(n){return pi(n)?Br(e,Xu({id:n.source.id}))&&Br(e,Xu({id:n.target.id})):!0});return t}function Ibn(e){return Uln(jS(e,function(t){return t.parent&&t.parent.id}))!==1}const Nbn={__depends__:[g$,bd,L4e,Ef,em,JS],__init__:["move","movePreview"],move:["type",$4e],movePreview:["type",F4e]};var B4e=".djs-palette-toggle",U4e=".entry",Mbn=B4e+", "+U4e,ZV="djs-palette-",Abn="shown",JV="open",Pve="two-column",Pbn=1e3;function Ao(e,t){this._eventBus=e,this._canvas=t;var n=this;e.on("tool-manager.update",function(r){var i=r.tool;n.updateToolHighlight(i)}),e.on("i18n.changed",function(){n._update()}),e.on("diagram.init",function(){n._diagramInitialized=!0,n._rebuild()})}Ao.$inject=["eventBus","canvas"];Ao.prototype.registerProvider=function(e,t){t||(t=e,e=Pbn),this._eventBus.on("palette.getProviders",e,function(n){n.providers.push(t)}),this._rebuild()};Ao.prototype.getEntries=function(){var e=this._getProviders();return e.reduce(kbn,{})};Ao.prototype._rebuild=function(){if(this._diagramInitialized){var e=this._getProviders();e.length&&(this._container||this._init(),this._update())}};Ao.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),r=this._container=Oi(Ao.HTML_MARKUP);n.appendChild(r),so(n).add(ZV+Abn),ul.bind(r,Mbn,"click",function(i){var o=i.delegateTarget;if(eLe(o,B4e))return e.toggle();e.trigger("click",i)}),sr.bind(r,"mousedown",function(i){i.stopPropagation()}),ul.bind(r,U4e,"dragstart",function(i){e.trigger("dragstart",i)}),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:r})};Ao.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers};Ao.prototype._toggleState=function(e){e=e||{};var t=this._getParentContainer(),n=this._container,r=this._eventBus,i,o=so(n),a=so(t);"twoColumn"in e?i=e.twoColumn:i=this._needsCollapse(t.clientHeight,this._entries||{}),o.toggle(Pve,i),a.toggle(ZV+Pve,i),"open"in e&&(o.toggle(JV,e.open),a.toggle(ZV+JV,e.open)),r.fire("palette.changed",{twoColumn:i,open:this.isOpen()})};Ao.prototype._update=function(){var e=fi(".djs-palette-entries",this._container),t=this._entries=this.getEntries();r$(e),Ze(t,function(n,r){var i=n.group||"default",o=fi("[data-group="+Uw(i)+"]",e);o||(o=Oi('<div class="group"></div>'),za(o,"data-group",i),e.appendChild(o));var a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=Oi(a);if(o.appendChild(s),!n.separator&&(za(s,"data-action",r),n.title&&za(s,"title",n.title),n.className&&Dbn(s,n.className),n.imageUrl)){var l=Oi("<img>");za(l,"src",n.imageUrl),s.appendChild(l)}}),this.open()};Ao.prototype.trigger=function(e,t,n){var r,i,o=t.delegateTarget||t.target;return o?(r=za(o,"data-action"),i=t.originalEvent||t,this.triggerEntry(r,e,i,n)):t.preventDefault()};Ao.prototype.triggerEntry=function(e,t,n,r){var i=this._entries,o,a;if(o=i[e],!!o&&(a=o.action,this._eventBus.fire("palette.trigger",{entry:o,event:n})!==!1)){if(Go(a)){if(t==="click")return a(n,r)}else if(a[t])return a[t](n,r);n.preventDefault()}};Ao.prototype._layoutChanged=function(){this._toggleState({})};Ao.prototype._needsCollapse=function(e,t){var n=50,r=Object.keys(t).length*46;return e<r+n};Ao.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})};Ao.prototype.open=function(){this._toggleState({open:!0})};Ao.prototype.toggle=function(){this.isOpen()?this.close():this.open()};Ao.prototype.isActiveTool=function(e){return e&&this._activeTool===e};Ao.prototype.updateToolHighlight=function(e){var t,n;this._toolsContainer||(t=fi(".djs-palette-entries",this._container),this._toolsContainer=fi("[data-group=tools]",t)),n=this._toolsContainer,Ze(n.children,function(r){var i=r.getAttribute("data-action");if(i){var o=so(r);i=i.replace("-tool",""),o.contains("entry")&&i===e?o.add("highlighted-entry"):o.remove("highlighted-entry")}})};Ao.prototype.isOpen=function(){return so(this._container).has(JV)};Ao.prototype._getParentContainer=function(){return this._canvas.getContainer()};Ao.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function Dbn(e,t){var n=so(e),r=lr(t)?t:t.split(/\s+/g);r.forEach(function(i){n.add(i)})}function kbn(e,t){var n=t.getPaletteEntries();return Go(n)?n(e):(Ze(n,function(r,i){e[i]=r}),e)}const Lbn={__init__:["palette"],palette:["type",Ao]};var j4e="crosshair";function ty(e,t,n,r,i,o,a){this._selection=i,this._dragging=n,this._mouse=a;var s=this,l={create:function(c){var u=t.getActiveLayer(),d;d=c.frame=Bn("rect"),Cn(d,{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),nr(u,d)},update:function(c){var u=c.frame,d=c.bbox;Cn(u,{x:d.x,y:d.y,width:d.width,height:d.height})},remove:function(c){c.frame&&Vo(c.frame)}};o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",function(c){var u=c.originalEvent.target;!c.hover&&!(u instanceof SVGElement)||e.once("lasso.selection.ended",function(){s.activateLasso(c.originalEvent,!0)})}),e.on("lasso.end",0,function(c){var u=c.context,d=bU(c),f=r.filter(function(h){return h}),p=OP(c);s.select(f,d,p?u.selection:[])}),e.on("lasso.start",function(c){var u=c.context;u.bbox=bU(c),l.create(u),u.selection=i.get()}),e.on("lasso.move",function(c){var u=c.context;u.bbox=bU(c),l.update(u)}),e.on("lasso.cleanup",function(c){var u=c.context;l.remove(u)}),e.on("element.mousedown",1500,function(c){if(OP(c))return s.activateLasso(c.originalEvent),!0})}ty.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"];ty.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:j4e,data:{context:{}}})};ty.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:j4e,data:{context:{}},keepSelection:!0})};ty.prototype.select=function(e,t,n=[]){var r=Acn(e,t);this._selection.select([...n,...cX(r)])};ty.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};ty.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};function bU(e){var t={x:e.x-e.dx,y:e.y-e.dy},n={x:e.x,y:e.y},r;return t.x<=n.x&&t.y<n.y||t.x<n.x&&t.y<=n.y?r={x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:t.x>=n.x&&t.y<n.y||t.x>n.x&&t.y<=n.y?r={x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:t.x<=n.x&&t.y>n.y||t.x<n.x&&t.y>=n.y?r={x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:t.x>=n.x&&t.y>n.y||t.x>n.x&&t.y>=n.y?r={x:n.x,y:n.y,width:t.x-n.x,height:t.y-n.y}:r={x:n.x,y:n.y,width:0,height:0},r}const $bn={__depends__:[k$,UT],__init__:["lassoTool"],lassoTool:["type",ty]};var SU=1500,H4e="grab";function eE(e,t,n,r,i,o){this._dragging=n,this._mouse=o;var a=this,s=r.get("keyboard",!1);i.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",SU,function(l){if(jw(l))return a.activateMove(l.originalEvent,!0),!1}),s&&s.addListener(SU,function(l){if(!(!Dve(l.keyEvent)||a.isActive())){var c=a._mouse.getLastMoveEvent();a.activateMove(c,!!c)}},"keyboard.keydown"),s&&s.addListener(SU,function(l){!Dve(l.keyEvent)||!a.isActive()||a.toggle()},"keyboard.keyup"),e.on("hand.end",function(l){var c=l.originalEvent.target;if(!l.hover&&!(c instanceof SVGElement))return!1;e.once("hand.ended",function(){a.activateMove(l.originalEvent,{reactivate:!0})})}),e.on("hand.move.move",function(l){var c=t.viewbox().scale;t.scroll({dx:l.dx*c,dy:l.dy*c})}),e.on("hand.move.end",function(l){var c=l.context,u=c.reactivate;return!jw(l)&&u&&e.once("hand.move.ended",function(d){a.activateHand(d.originalEvent,!0,!0)}),!1})}eE.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"];eE.prototype.activateMove=function(e,t,n){typeof t=="object"&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:H4e,data:{context:n||{}}})};eE.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:H4e,data:{context:{reactivate:n}}})};eE.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)};eE.prototype.isActive=function(){var e=this._dragging.context();return e?/^(hand|hand\.move)$/.test(e.prefix):!1};function Dve(e){return fa("Space",e)}const Fbn={__depends__:[k$,UT],__init__:["handTool"],handTool:["type",eE]};var kve="connect-ok",Lve="connect-not-ok";function tE(e,t,n,r,i,o,a){var s=this;this._dragging=t,this._rules=o,this._mouse=a,i.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",function(l){var c=l.context,u=l.hover,d=c.canStartConnect=s.canStartConnect(u);d!==null&&(c.startTarget=u,r.addMarker(u,d?kve:Lve))}),e.on(["global-connect.out","global-connect.cleanup"],function(l){var c=l.context.startTarget,u=l.context.canStartConnect;c&&r.removeMarker(c,u?kve:Lve)}),e.on(["global-connect.ended"],function(l){var c=l.context,u=c.startTarget,d={x:l.x,y:l.y},f=s.canStartConnect(u);if(f)return e.once("element.out",function(){e.once(["connect.ended","connect.canceled"],function(){e.fire("global-connect.drag.ended")}),n.start(null,u,d)}),!1})}tE.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"];tE.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})};tE.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)};tE.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)};tE.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};const Bbn={__depends__:[GX,Ef,em,k$,UT],globalConnect:["type",tE]};function JZ(e,t,n,r,i,o,a,s){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=r,this._lassoTool=i,this._handTool=o,this._globalConnect=a,this._translate=s,e.registerProvider(this)}JZ.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"];JZ.prototype.getPaletteEntries=function(){var e={},t=this._create,n=this._elementFactory,r=this._spaceTool,i=this._lassoTool,o=this._handTool,a=this._globalConnect,s=this._translate;function l(d,f,p,h,g){function v(y){var _=n.createShape(lt({type:d},g));t.start(y,_)}return{group:f,className:p,title:h,action:{dragstart:v,click:v}}}function c(d){var f=n.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),p=n.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:f});t.start(d,[f,p],{hints:{autoSelect:[f]}})}function u(d){t.start(d,n.createParticipantShape())}return lt(e,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:s("Activate hand tool"),action:{click:function(d){o.activateHand(d)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:s("Activate lasso tool"),action:{click:function(d){i.activateSelection(d)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:s("Activate create/remove space tool"),action:{click:function(d){r.activateSelection(d)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:s("Activate global connect tool"),action:{click:function(d){a.start(d)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":l("bpmn:StartEvent","event","bpmn-icon-start-event-none",s("Create start event")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",s("Create intermediate/boundary event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",s("Create end event")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",s("Create gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",s("Create task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",s("Create data object reference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",s("Create data store reference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:s("Create expanded sub-process"),action:{dragstart:c,click:c}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:s("Create pool/participant"),action:{dragstart:u,click:u}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",s("Create group"))}),e};const Ubn={__depends__:[Lbn,D$,r4e,$bn,Fbn,Bbn,p$],__init__:["paletteProvider"],paletteProvider:["type",JZ]};var jbn=250;function eJ(e,t,n,r,i){Jt.call(this,e);function o(s){var l=s.canExecute.replacements;Ze(l,function(c){var u=c.oldElementId,d={type:c.newElementType};if(!s.visualReplacements[u]){var f=t.get(u);lt(d,{x:f.x,y:f.y});var p=n.createShape(d);r.addShape(p,f.parent);var h=fi('[data-element-id="'+Uw(f.id)+'"]',s.dragGroup);h&&Cn(h,{display:"none"});var g=i.addDragger(p,s.dragGroup);s.visualReplacements[u]=g,r.removeShape(p)}})}function a(s){var l=s.visualReplacements;Ze(l,function(c,u){var d=fi('[data-element-id="'+Uw(u)+'"]',s.dragGroup);d&&Cn(d,{display:"inline"}),c.remove(),l[u]&&delete l[u]})}e.on("shape.move.move",jbn,function(s){var l=s.context,c=l.canExecute;l.visualReplacements||(l.visualReplacements={}),c&&c.replacements?o(l):a(l)})}eJ.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"];Rn(eJ,Jt);const Hbn={__depends__:[JS],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",eJ]};var zbn=1250,EU=40,Vbn=20,Gbn=10,$ve=20,z4e=["x","y"],Wbn=Math.abs;function V4e(e){e.on(["connect.hover","connect.move","connect.end"],zbn,function(t){var n=t.context,r=n.canExecute,i=n.start,o=n.hover,a=n.source,s=n.target;t.originalEvent&&Vc(t.originalEvent)||(n.initialConnectionStart||(n.initialConnectionStart=n.connectionStart),r&&o&&Ybn(t,o,Xbn(o)),o&&Qbn(r,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(n.connectionStart=jc(i),br(o,["bpmn:Event","bpmn:Gateway"])&&Fve(t,jc(o)),br(o,["bpmn:Task","bpmn:SubProcess"])&&qbn(t,o),Ne(a,"bpmn:BoundaryEvent")&&s===a.host&&Kbn(t)):G4e(r,"bpmn:MessageFlow")?(Ne(i,"bpmn:Event")&&(n.connectionStart=jc(i)),Ne(o,"bpmn:Event")&&Fve(t,jc(o))):n.connectionStart=n.initialConnectionStart)})}V4e.$inject=["eventBus"];function Ybn(e,t,n){z4e.forEach(function(r){var i=W4e(r,t);e[r]<t[r]+n?Ro(e,r,t[r]+n):e[r]>t[r]+i-n&&Ro(e,r,t[r]+i-n)})}function qbn(e,t){var n=jc(t);z4e.forEach(function(r){Zbn(e,t,r)&&Ro(e,r,n[r])})}function Kbn(e){var t=e.context,n=t.source,r=t.target;if(!Jbn(t)){var i=jc(n),o=Ka(i,r,-10),a=[];/top|bottom/.test(o)&&a.push("x"),/left|right/.test(o)&&a.push("y"),a.forEach(function(s){var l=e[s],c;Wbn(l-i[s])<EU&&(l>i[s]?c=i[s]+EU:c=i[s]-EU,Ro(e,s,c))})}}function Fve(e,t){Ro(e,"x",t.x),Ro(e,"y",t.y)}function G4e(e,t){return e&&e.type===t}function Qbn(e,t){return Kh(t,function(n){return G4e(e,n)})}function W4e(e,t){return e==="x"?t.width:t.height}function Xbn(e){return Ne(e,"bpmn:Task")?Gbn:Vbn}function Zbn(e,t,n){return e[n]>t[n]+$ve&&e[n]<t[n]+W4e(n,t)-$ve}function Jbn(e){var t=e.hover,n=e.source;return t&&n&&t===n}function dg(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}dg.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]};dg.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,this._snapLocations.indexOf(e)===-1&&this._snapLocations.push(e)};dg.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)};dg.prototype.getSnapLocations=function(){return this._snapLocations};dg.prototype.setSnapLocations=function(e){this._snapLocations=e};dg.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new J$,n.initDefaults(this._defaultSnaps)),n};function J$(){this._snapValues={}}J$.prototype.add=function(e,t){var n=this._snapValues[e];n||(n=this._snapValues[e]={x:[],y:[]}),n.x.indexOf(t.x)===-1&&n.x.push(t.x),n.y.indexOf(t.y)===-1&&n.y.push(t.y)};J$.prototype.snap=function(e,t,n,r){var i=this._snapValues[t];return i&&chn(e[n],i[n],r)};J$.prototype.initDefaults=function(e){var t=this;Ze(e||{},function(n,r){Ze(n,function(i){t.add(r,i)})})};var e0n=1250;function Cf(e,t,n){var r=this;this._elementRegistry=e,t.on(["create.start","shape.move.start"],function(i){r.initSnap(i)}),t.on(["create.move","create.end","shape.move.move","shape.move.end"],e0n,function(i){var o=i.context,a=o.shape,s=o.snapContext,l=o.target;if(!(i.originalEvent&&Vc(i.originalEvent))&&!(B0(i)||!l)){var c=s.pointsForTarget(l);c.initialized||(c=r.addSnapTargetPoints(c,a,l),c.initialized=!0),n.snap(i,c)}}),t.on(["create.cleanup","shape.move.cleanup"],function(){n.hide()})}Cf.$inject=["elementRegistry","eventBus","snapping"];Cf.prototype.initSnap=function(e){var t=this._elementRegistry,n=e.context,r=n.shape,i=n.snapContext;i||(i=n.snapContext=new dg);var o;t.get(r.id)?o=jc(r,e):o={x:e.x+jc(r).x,y:e.y+jc(r).y};var a={x:o.x-r.width/2,y:o.y-r.height/2},s={x:o.x+r.width/2,y:o.y+r.height/2};return i.setSnapOrigin("mid",{x:o.x-e.x,y:o.y-e.y}),Lr(r)||(i.setSnapOrigin("top-left",{x:a.x-e.x,y:a.y-e.y}),i.setSnapOrigin("bottom-right",{x:s.x-e.x,y:s.y-e.y})),i};Cf.prototype.addSnapTargetPoints=function(e,t,n){var r=this.getSnapTargets(t,n);return Ze(r,function(i){if(Lr(i)){Lr(t)&&e.add("mid",jc(i));return}if(pi(i)){if(i.waypoints.length<3)return;var o=i.waypoints.slice(1,-1);Ze(o,function(a){e.add("mid",a)});return}e.add("mid",jc(i))}),!Jn(t.x)||!Jn(t.y)||this._elementRegistry.get(t.id)&&e.add("mid",jc(t)),e};Cf.prototype.getSnapTargets=function(e,t){return a3e(t).filter(function(n){return!t0n(n)})};function t0n(e){return!!e.hidden}var Bve=1500;function nE(e,t){t.invoke(Cf,this),e.on(["create.move","create.end"],Bve,o0n),e.on(["create.move","create.end","shape.move.move","shape.move.end"],Bve,function(n){var r=n.context,i=r.canExecute,o=r.target,a=i&&(i==="attach"||i.attach);a&&!B0(n)&&n0n(n,o)})}Rn(nE,Cf);nE.$inject=["eventBus","injector"];nE.prototype.initSnap=function(e){var t=Cf.prototype.initSnap.call(this,e),n=e.shape,r=!!this._elementRegistry.get(n.id);return Ze(n.outgoing,function(i){var o=i.waypoints[0];o=o.original||o,t.setSnapOrigin(i.id+"-docking",jve(o,r,e))}),Ze(n.incoming,function(i){var o=i.waypoints[i.waypoints.length-1];o=o.original||o,t.setSnapOrigin(i.id+"-docking",jve(o,r,e))}),Ne(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t};nE.prototype.addSnapTargetPoints=function(e,t,n){Cf.prototype.addSnapTargetPoints.call(this,e,t,n);var r=this.getSnapTargets(t,n);Ze(r,function(o){(i0n(o)||r0n([t,o],"bpmn:TextAnnotation"))&&(e.add("top-left",i3e(o)),e.add("bottom-right",o3e(o)))});var i=this._elementRegistry;return Ze(t.incoming,function(o){if(i.get(t.id)){Uve(r,o.source)||e.add("mid",er(o.source));var a=o.waypoints[0];e.add(o.id+"-docking",a.original||a)}}),Ze(t.outgoing,function(o){if(i.get(t.id)){Uve(r,o.target)||e.add("mid",er(o.target));var a=o.waypoints[o.waypoints.length-1];e.add(o.id+"-docking",a.original||a)}}),Ne(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e};nE.prototype.getSnapTargets=function(e,t){return Cf.prototype.getSnapTargets.call(this,e,t).filter(function(n){return!Ne(n,"bpmn:Lane")})};function n0n(e,t){var n=Gn(t),r=A3e(e,t),i=e.context,o=i.shape,a;o.parent?a={x:0,y:0}:a=er(o),/top/.test(r)?Ro(e,"y",n.top-a.y):/bottom/.test(r)&&Ro(e,"y",n.bottom-a.y),/left/.test(r)?Ro(e,"x",n.left-a.x):/right/.test(r)&&Ro(e,"x",n.right-a.x)}function r0n(e,t){return e.every(function(n){return Ne(n,t)})}function i0n(e){return Ne(e,"bpmn:SubProcess")&&Nr(e)?!0:Ne(e,"bpmn:Participant")}function o0n(e){var t=e.context,n=t.createConstraints;if(n){var r=n.top,i=n.right,o=n.bottom,a=n.left;(a&&a>=e.x||i&&i<=e.x)&&Ro(e,"x",e.x),(r&&r>=e.y||o&&o<=e.y)&&Ro(e,"y",e.y)}}function Uve(e,t){return e.indexOf(t)!==-1}function jve(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}var a0n=1250;function rR(e,t){var n=this;e.on(["resize.start"],function(r){n.initSnap(r)}),e.on(["resize.move","resize.end"],a0n,function(r){var i=r.context,o=i.shape,a=o.parent,s=i.direction,l=i.snapContext;if(!(r.originalEvent&&Vc(r.originalEvent))&&!B0(r)){var c=l.pointsForTarget(a);c.initialized||(c=n.addSnapTargetPoints(c,o,a,s),c.initialized=!0),c0n(s)&&Ro(r,"x",r.x),u0n(s)&&Ro(r,"y",r.y),t.snap(r,c)}}),e.on(["resize.cleanup"],function(){t.hide()})}rR.prototype.initSnap=function(e){var t=e.context,n=t.shape,r=t.direction,i=t.snapContext;i||(i=t.snapContext=new dg);var o=Y4e(n,r);return i.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),i};rR.prototype.addSnapTargetPoints=function(e,t,n,r){var i=this.getSnapTargets(t,n);return Ze(i,function(o){e.add("corner",o3e(o)),e.add("corner",i3e(o))}),e.add("corner",Y4e(t,r)),e};rR.$inject=["eventBus","snapping"];rR.prototype.getSnapTargets=function(e,t){return a3e(t).filter(function(n){return!s0n(n,e)&&!pi(n)&&!l0n(n)&&!Lr(n)})};function Y4e(e,t){var n=er(e),r=Gn(e),i={x:n.x,y:n.y};return t.indexOf("n")!==-1?i.y=r.top:t.indexOf("s")!==-1&&(i.y=r.bottom),t.indexOf("e")!==-1?i.x=r.right:t.indexOf("w")!==-1&&(i.x=r.left),i}function s0n(e,t){return e.host===t}function l0n(e){return!!e.hidden}function c0n(e){return e==="n"||e==="s"}function u0n(e){return e==="e"||e==="w"}var d0n=7,f0n=1e3;function fg(e){this._canvas=e,this._asyncHide=Qke(Us(this.hide,this),f0n)}fg.$inject=["canvas"];fg.prototype.snap=function(e,t){var n=e.context,r=n.snapContext,i=r.getSnapLocations(),o={x:B0(e,"x"),y:B0(e,"y")};Ze(i,function(a){var s=r.getSnapOrigin(a),l={x:e.x+s.x,y:e.y+s.y};if(Ze(["x","y"],function(c){var u;o[c]||(u=t.snap(l,a,c,d0n),u!==void 0&&(o[c]={value:u,originValue:u-s[c]}))}),o.x&&o.y)return!1}),this.showSnapLine("vertical",o.x&&o.x.value),this.showSnapLine("horizontal",o.y&&o.y.value),Ze(["x","y"],function(a){var s=o[a];ba(s)&&Ro(e,a,s.originValue)})};fg.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Bn("path");return Cn(n,{d:"M0,0 L0,0"}),Dr(n).add("djs-snap-line"),nr(t,n),{update:function(r){Jn(r)?e==="horizontal"?Cn(n,{d:"M-100000,"+r+" L+100000,"+r,display:""}):Cn(n,{d:"M "+r+",-100000 L "+r+", +100000",display:""}):Cn(n,{display:"none"})}}};fg.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}};fg.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()};fg.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]};fg.prototype.hide=function(){Ze(this._snapLines,function(e){e.update()})};const p0n={__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Cf],resizeSnapping:["type",rR],snapping:["type",fg]},m0n={__depends__:[p0n],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",V4e],createMoveSnapping:["type",nE]};var q4e=300;function or(e,t,n,r){this._open=!1,this._results={},this._eventMaps=[],this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._canvas=e,this._eventBus=t,this._selection=n,this._translate=r,this._container=this._getBoxHtml(),this._searchInput=fi(or.INPUT_SELECTOR,this._container),this._resultsContainer=fi(or.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy","drag.init","elements.changed"],this.close,this)}or.$inject=["canvas","eventBus","selection","translate"];or.prototype._bindEvents=function(){var e=this;function t(n,r,i,o){e._eventMaps.push({el:n,type:i,listener:ul.bind(n,r,i,o)})}t(document,"html","click",function(n){e.close(!1)}),t(this._container,or.INPUT_SELECTOR,"click",function(n){n.stopPropagation(),n.delegateTarget.focus()}),t(this._container,or.RESULT_SELECTOR,"mouseover",function(n){n.stopPropagation(),e._scrollToNode(n.delegateTarget),e._preselect(n.delegateTarget)}),t(this._container,or.RESULT_SELECTOR,"click",function(n){n.stopPropagation(),e._select(n.delegateTarget)}),t(this._container,or.INPUT_SELECTOR,"keydown",function(n){fa("ArrowUp",n)&&n.preventDefault(),fa("ArrowDown",n)&&n.preventDefault()}),t(this._container,or.INPUT_SELECTOR,"keyup",function(n){if(fa("Escape",n))return e.close();if(fa("Enter",n)){var r=e._getCurrentResult();return r?e._select(r):e.close(!1)}if(fa("ArrowUp",n))return e._scrollToDirection(!0);if(fa("ArrowDown",n))return e._scrollToDirection();fa(["ArrowLeft","ArrowRight"],n)||e._search(n.delegateTarget.value)})};or.prototype._unbindEvents=function(){this._eventMaps.forEach(function(e){ul.unbind(e.el,e.type,e.listener)})};or.prototype._search=function(e){var t=this;if(this._clearResults(),!!e.trim()){var n=this._searchProvider.find(e);if(n=n.filter(function(i){return!t._canvas.getRootElements().includes(i.element)}),!n.length){this._selection.select(null);return}n.forEach(function(i){var o=i.element.id,a=t._createResultNode(i,o);t._results[o]={element:i.element,node:a}});var r=fi(or.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(r),this._preselect(r)}};or.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}};or.prototype._scrollToNode=function(e){if(!(!e||e===this._getCurrentResult())){var t=e.offsetTop,n=this._resultsContainer.scrollTop,r=t-this._resultsContainer.clientHeight+e.clientHeight;t<n?this._resultsContainer.scrollTop=t:n<r&&(this._resultsContainer.scrollTop=r)}};or.prototype._clearResults=function(){r$(this._resultsContainer),this._results={},this._eventBus.fire("searchPad.cleared")};or.prototype._getCurrentResult=function(){return fi(or.RESULT_SELECTED_SELECTOR,this._resultsContainer)};or.prototype._createResultNode=function(e,t){var n=Oi(or.RESULT_HTML);return e.primaryTokens.length>0&&Hve(n,e.primaryTokens,or.RESULT_PRIMARY_HTML),Hve(n,e.secondaryTokens,or.RESULT_SECONDARY_HTML),za(n,or.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n};or.prototype.registerProvider=function(e){this._searchProvider=e};or.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._cachedRootElement=this._canvas.getRootElement(),this._cachedSelection=this._selection.get(),this._cachedViewbox=this._canvas.viewbox(),this._selection.select(null),this._bindEvents(),this._open=!0,so(this._canvas.getContainer()).add("djs-search-open"),so(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))};or.prototype.close=function(e=!0){this.isOpen()&&(e&&(this._cachedRootElement&&this._canvas.setRootElement(this._cachedRootElement),this._cachedSelection&&this._selection.select(this._cachedSelection),this._cachedViewbox&&this._canvas.viewbox(this._cachedViewbox),this._eventBus.fire("searchPad.restored")),this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._unbindEvents(),this._open=!1,so(this._canvas.getContainer()).remove("djs-search-open"),so(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._eventBus.fire("searchPad.closed"),this._canvas.restoreFocus())};or.prototype.toggle=function(){this.isOpen()?this.close():this.open()};or.prototype.isOpen=function(){return this._open};or.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&so(t).remove(or.RESULT_SELECTED_CLASS);var n=za(e,or.RESULT_ID_ATTRIBUTE),r=this._results[n].element;so(e).add(or.RESULT_SELECTED_CLASS),this._canvas.scrollToElement(r,{top:q4e}),this._selection.select(r),this._eventBus.fire("searchPad.preselected",r)}};or.prototype._select=function(e){var t=za(e,or.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this._cachedSelection=null,this._cachedViewbox=null,this.close(!1),this._canvas.scrollToElement(n,{top:q4e}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)};or.prototype._getBoxHtml=function(){const e=Oi(or.BOX_HTML),t=fi(or.INPUT_SELECTOR,e);return t&&t.setAttribute("aria-label",this._translate("Search in diagram")),e};function Hve(e,t,n){var r=h0n(t),i=Oi(n);i.innerHTML=r,e.appendChild(i)}function h0n(e){var t="";return e.forEach(function(n){var r=ZLe(n.value||n.matched||n.normal),i=n.match||n.matched;i?t+='<b class="'+or.RESULT_HIGHLIGHT_CLASS+'">'+r+"</b>":t+=r}),t!==""?t:null}or.CONTAINER_SELECTOR=".djs-search-container";or.INPUT_SELECTOR=".djs-search-input input";or.RESULTS_CONTAINER_SELECTOR=".djs-search-results";or.RESULT_SELECTOR=".djs-search-result";or.RESULT_SELECTED_CLASS="djs-search-result-selected";or.RESULT_SELECTED_SELECTOR="."+or.RESULT_SELECTED_CLASS;or.RESULT_ID_ATTRIBUTE="data-result-id";or.RESULT_HIGHLIGHT_CLASS="djs-search-highlight";or.BOX_HTML=`<div class="djs-search-container djs-scrollable">
|
||
<div class="djs-search-input">
|
||
<svg class="djs-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
||
</svg>
|
||
<input type="text" spellcheck="false" />
|
||
</div>
|
||
<div class="djs-search-results" />
|
||
</div>`;or.RESULT_HTML='<div class="djs-search-result"></div>';or.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>';or.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const g0n={__depends__:[p$,h$,bd],searchPad:["type",or]};function tJ(e,t,n,r){this._elementRegistry=e,this._canvas=n,this._search=r,t.registerProvider(this)}tJ.$inject=["elementRegistry","searchPad","canvas","search"];tJ.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(r){return!Lr(r)&&!t.includes(r)});return this._search(n.map(r=>({element:r,label:cd(r),id:r.id})),e,{keys:["label","id"]}).map(v0n)};function v0n(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const _0n={__depends__:[g0n,F$e],__init__:["bpmnSearch"],bpmnSearch:["type",tJ]},y0n="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",b0n="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",S0n={width:36,height:50},E0n={width:50,height:50};function zve(e,t,n){return Bn("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const Dm=5;function e3(e,t){this._styles=t,e.registerProvider(this)}e3.$inject=["outline","styles"];e3.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!Lr(e))return Ne(e,"bpmn:Gateway")?(n=Bn("rect"),lt(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Cn(n,lt({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):br(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=Bn("rect"),Cn(n,lt({x:-Dm,y:-Dm,rx:14,width:e.width+Dm*2,height:e.height+Dm*2},t))):Ne(e,"bpmn:EndEvent")?(n=Bn("circle"),Cn(n,lt({cx:e.width/2,cy:e.height/2,r:e.width/2+Dm+1},t))):Ne(e,"bpmn:Event")?(n=Bn("circle"),Cn(n,lt({cx:e.width/2,cy:e.height/2,r:e.width/2+Dm},t))):Ne(e,"bpmn:DataObjectReference")&&Vve(e,"bpmn:DataObjectReference")?n=zve(y0n,{x:-6,y:-6},t):Ne(e,"bpmn:DataStoreReference")&&Vve(e,"bpmn:DataStoreReference")&&(n=zve(b0n,{x:-6,y:-6},t)),n};e3.prototype.updateOutline=function(e,t){if(!Lr(e))return br(e,["bpmn:SubProcess","bpmn:Group"])?(Cn(t,{width:e.width+Dm*2,height:e.height+Dm*2}),!0):!!br(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function Vve(e,t){var n;return t==="bpmn:DataObjectReference"?n=S0n:t==="bpmn:DataStoreReference"&&(n=E0n),e.width===n.width&&e.height===n.height}const C0n={__depends__:[L4e],__init__:["outlineProvider"],outlineProvider:["type",e3]};var w0n='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';function Jd(e){PT.call(this,e)}Rn(Jd,PT);Jd.Viewer=tg;Jd.NavigatedViewer=Hw;Jd.prototype.createDiagram=function(){return this.importXML(w0n)};Jd.prototype._interactionModules=[f$e,g$e,y$e];Jd.prototype._modelingModules=[Emn,UX,Gmn,Bmn,dhn,GX,vhn,Cyn,X3e,D$,Ryn,Nyn,Yyn,Kyn,Qyn,tbn,pbn,b4e,ybn,Nbn,Ubn,Hbn,A4e,m0n,_0n,C0n];Jd.prototype._modules=[].concat(tg.prototype._modules,Jd.prototype._interactionModules,Jd.prototype._modelingModules);const x0n=({file:e,onDelete:t,showDelete:n=!0})=>{const r=mr();return M.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:r.formatMessage({id:e.fileType.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[n&&M.jsx(On,{type:"text",size:"small",icon:M.jsx(k_,{}),onClick:()=>t(e.uid),style:{position:"absolute",top:0,right:0,padding:"2px",background:"rgba(255, 255, 255, 0.8)",border:"none",borderRadius:"0 4px 0 4px",zIndex:1}}),M.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:e.fileType.startsWith("image/")?M.jsx("img",{src:e.fileUrl,alt:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):M.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),M.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0, 0, 0, 0.5)",color:"#fff",fontSize:"10px",padding:"2px",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.fileName})]},e.uid)},{Dragger:T0n}=jp,R0n=({type:e,maxCount:t=1,isModalOpen:n,handleSubmit:r,handleCancel:i})=>{const o=mr(),[a,s]=m.useState([]),[l,c]=m.useState([]),[u,d]=m.useState({file:null,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:e,category_uid:"",kb_uid:"",client:Pi}),f=m.useMemo(()=>({name:"file",multiple:!0,action:vW(),headers:{Authorization:"Bearer "+localStorage.getItem(e0)},data:u,showUploadList:!1,beforeUpload(g){if(console.log("beforeUpload files:",a),a.length>=t)return Bt.error(o.formatMessage({id:"upload.maxCount"},{maxCount:t})),!1;console.log("before setFiles",a),s(y=>[...y,g]);const v=bn(new Date).format("YYYYMMDDHHmmss")+"_"+g.name;return d(y=>({...y,file:g,file_name:v,file_type:g.type,category_uid:""})),!0},onChange(g){g.file.status==="uploading"&&Bt.loading(o.formatMessage({id:"upload.uploading"},{filename:g.file.name})),g.file.status==="done"?g.file.response.code===200?(Bt.destroy(),Bt.success(o.formatMessage({id:"upload.success"},{filename:g.file.name})),c(v=>[...v,g.file.response.data])):(Bt.destroy(),Bt.error(o.formatMessage({id:"upload.failed"},{filename:g.file.name}))):g.file.status==="error"&&Bt.error(o.formatMessage({id:"upload.failed"},{filename:g.file.name}))},onDrop(g){console.log("Dropped files",g.dataTransfer.files)}}),[u,o]);m.useEffect(()=>{d(g=>({...g,kb_type:e,category_uid:""}))},[e]),m.useEffect(()=>{console.log("useEffect files",a," uploads",l)},[a,l]);const p=()=>{r(a,l)},h=g=>{console.log("handleDelete",g);const v=l.find(_=>_.uid===g);if(!v)return;const y=v.fileName.split("_").slice(1).join("_");console.log("originalFileName",y),s(_=>_.filter(b=>b.name!==y)),c(_=>_.filter(b=>b.uid!==g))};return M.jsxs(_o,{title:o.formatMessage({id:"upload.modal.title"}),open:n,onOk:p,onCancel:i,children:[M.jsxs(T0n,{...f,children:[M.jsx("p",{className:"ant-upload-drag-icon",children:M.jsx(_vt,{})}),M.jsx("p",{className:"ant-upload-text",children:o.formatMessage({id:"upload.drag.text"})}),M.jsx("p",{className:"ant-upload-hint",children:o.formatMessage({id:"upload.drag.hint"})})]}),M.jsx("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:M.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:l.map(g=>M.jsx(x0n,{file:g,onDelete:h},g.uid))})})]})},O0n=({isEdit:e=!1,showCreateModal:t,handleCreate:n,handleCancel:r})=>{const i=mr();console.log("isEdit",e);const[o]=Ar.useForm(),a=()=>Math.random().toString(36).substring(2,15);m.useEffect(()=>{e||o.setFieldsValue({key:a(),type:xM})},[e,o]);const s=()=>{o.validateFields().then(async l=>{console.log("handleSaveDep:",l),n(l)}).catch(l=>{console.log("Failed:",l),Bt.error("请检查输入内容")})};return M.jsx(M.Fragment,{children:M.jsx(_o,{title:i.formatMessage({id:"ticket.create.modal.title"}),open:t,onOk:s,onCancel:r,children:M.jsxs(Ar,{form:o,name:"ticketCreateForm",submitter:!1,children:[M.jsx(Jr,{name:"name",label:i.formatMessage({id:"ticket.create.name"}),rules:[{required:!0}]}),M.jsx(Jr,{name:"key",label:i.formatMessage({id:"ticket.create.key"}),rules:[{required:!0,message:"请输入流程key"},{pattern:/^[a-z0-9_]+$/,message:"流程key只能包含小写字母、数字和下划线"}]}),M.jsx(o_,{name:"type",label:i.formatMessage({id:"ticket.create.type"}),options:[{label:i.formatMessage({id:"ticket.type.ticket"}),value:xM}],rules:[{required:!0}]}),M.jsx(iT,{name:"description",label:i.formatMessage({id:"ticket.create.description"})})]})})})},I0n=({element:e,modeler:t})=>{var d,f,p;const n=mr(),r=m.useCallback(async h=>{if(!(!t||!e))try{const g=t.get("modeling"),v=t.get("bpmnFactory"),y=t.get("elementRegistry"),_={};if(Object.entries(h).forEach(([b,S])=>{switch(b){case"id":S&&S!==e.id&&g.updateProperties(e,{id:S});break;case"name":_.name=S;break;case"documentation":if(S){const C=v.create("bpmn:Documentation",{text:S});_.documentation=[C]}else _.documentation=[];break;case"assignee":e.type==="bpmn:UserTask"&&(_.assignee=S);break;case"priority":e.type==="bpmn:UserTask"&&(_.priority=S);break}}),Object.keys(_).length>0){g.updateProperties(e,_);const b=y.get(e.id);console.log("Updated element:",b);const{xml:S}=await t.saveXML({format:!0});console.log("Updated XML:",S)}}catch(g){console.error("Error updating properties:",g)}},[e,t]);if(!e||!t)return M.jsx(Fs,{title:n.formatMessage({id:"ticket.properties.title"}),children:n.formatMessage({id:"ticket.properties.noSelection"})});const i=e.businessObject||{},o=e.id||"",a=i.name||"",s=((f=(d=i.documentation)==null?void 0:d[0])==null?void 0:f.text)||"",l=((p=e.type)==null?void 0:p.replace("bpmn:",""))||"",c=i.assignee||"",u=i.priority||"";return console.log("Rendering properties for element:",{id:o,name:a,documentation:s,type:l,assignee:c,priority:u,businessObject:i}),M.jsx(Fs,{title:n.formatMessage({id:"ticket.properties.title"}),style:{height:"100%",overflowY:"auto"},children:M.jsxs(Ar,{submitter:!1,onValuesChange:r,initialValues:{id:o,name:a,documentation:s,type:l,assignee:c,priority:u},children:[M.jsx(Jr,{name:"id",label:n.formatMessage({id:"ticket.properties.id"}),disabled:!0}),M.jsx(Jr,{name:"name",label:n.formatMessage({id:"ticket.properties.name"})}),M.jsx(o_,{name:"type",label:n.formatMessage({id:"ticket.properties.type"}),disabled:!0,options:[{label:l,value:l}]}),M.jsx(iT,{name:"documentation",label:n.formatMessage({id:"ticket.properties.documentation"})}),e.type==="bpmn:UserTask"&&M.jsxs(M.Fragment,{children:[M.jsx(Jr,{name:"assignee",label:n.formatMessage({id:"ticket.properties.assignee"})}),M.jsx(o_,{name:"priority",label:n.formatMessage({id:"ticket.properties.priority"}),options:[{label:"Low",value:"50"},{label:"Medium",value:"100"},{label:"High",value:"150"}]})]})]},o)})},N0n=de.memo(I0n);async function M0n(e){return mi("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}async function A0n(e){return mi("/api/v1/ticket/process/create",{method:"POST",data:{...e}})}async function P0n(e){return mi("/api/v1/ticket/process/update",{method:"POST",data:{...e}})}async function D0n(e){return mi("/api/v1/ticket/process/delete",{method:"POST",data:{...e}})}async function k0n(e){return mi("/api/v1/ticket/process/query/deployments",{method:"GET",params:{...e}})}async function L0n(e){return mi("/api/v1/ticket/process/deploy",{method:"POST",data:{...e}})}async function $0n(e){return mi("/api/v1/ticket/process/undeploy",{method:"POST",data:{...e}})}const{Header:F0n,Content:B0n}=_i,Gve=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||
xmlns:flowable="http://flowable.org/bpmn"
|
||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
||
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
|
||
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
||
typeLanguage="http://www.w3.org/2001/XMLSchema"
|
||
expressionLanguage="http://www.w3.org/1999/XPath"
|
||
targetNamespace="BytedeskTicket"
|
||
exporter="Flowable Open Source Modeler"
|
||
exporterVersion="6.8.0">
|
||
<process id="Process_1" name="Empty Process" isExecutable="true">
|
||
<documentation>Empty process for ticket workflow</documentation>
|
||
<startEvent id="StartEvent_1" name="Start" flowable:formFieldValidation="true">
|
||
<documentation>Start of the process</documentation>
|
||
</startEvent>
|
||
</process>
|
||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||
<omgdc:Bounds x="152" y="102" width="36" height="36"/>
|
||
<bpmndi:BPMNLabel>
|
||
<omgdc:Bounds x="158" y="145" width="24" height="14"/>
|
||
</bpmndi:BPMNLabel>
|
||
</bpmndi:BPMNShape>
|
||
</bpmndi:BPMNPlane>
|
||
</bpmndi:BPMNDiagram>
|
||
</definitions>`,K4e=()=>{const e=mr(),{isDarkMode:t}=cc(),{translateString:n}=_d(),r=m.useRef(null),i=m.useRef(null),[o,a]=m.useState(!1),[s,l]=m.useState(!1),[c,u]=m.useState(!1),[d,f]=m.useState(null),{headerStyle:p}=Wh(),[h,g]=m.useState([]),v=Yo(H=>H.userInfo),y=Yo(H=>H.setUserInfo),{currentOrg:_,setCurrentOrg:b}=kh(H=>({currentOrg:H.currentOrg,setCurrentOrg:H.setCurrentOrg})),S=CC(H=>H.currentProcess),C=CC(H=>H.setCurrentProcess),E=CC(H=>H.processResult),w=CC(H=>H.setProcessResult),x={color:t?"#fff":"#000",display:"flex",alignItems:"center",margin:0,"& .title-text":{marginRight:16},"& .title-actions":{display:"flex",alignItems:"center",gap:8}},T=async H=>{console.log("Menu clicked:",H);const K=E.data.content.find(re=>re.uid===H.key);if(K){if(console.log("Selected process:",K),c)try{const{xml:re}=await i.current.saveXML({format:!0});await F(re)}catch(re){console.error("Error saving current process:",re)}C(K),u(!1),f(null)}},R={items:h,selectedKeys:S?[S.uid]:[],onClick:T},N=async()=>{const H=await HQ();console.log("initProfile response:",H.data),H.data.code===200?(y(H.data.data),b(H.data.data.currentOrganization)):Bt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))},I=async()=>{const H=await k0n({pageNumber:0,pageSize:100,orgUid:_==null?void 0:_.uid});console.log("Fetch process deployments response:",H.data),H.data.code===200||Bt.error(e.formatMessage({id:"ticket.fetch.processes.error"}))},P=async()=>{if(Bt.loading(e.formatMessage({id:"ticket.fetch.processes.loading"})),!(_!=null&&_.uid)){await N();return}const H=await M0n({pageNumber:0,pageSize:100,orgUid:_==null?void 0:_.uid,type:xM});console.log("Fetch processes response:",H.data),H.data.code===200?(H.data.data.content.length===0&&(Bt.warning(e.formatMessage({id:"ticket.fetch.processes.empty"})),l(!0)),w(H.data),Bt.destroy()):(Bt.destroy(),Bt.error(e.formatMessage({id:"ticket.fetch.processes.error"})))};m.useEffect(()=>{P(),I()},[]),m.useEffect(()=>{console.log("currentOrg changed:",_),P()},[_]),m.useEffect(()=>{var H,K,re;if(console.log("processResult changed:",E),console.log("currentProcess:",S),(H=E==null?void 0:E.data)!=null&&H.content){const Q=E.data.content.map(k=>({key:k.uid,label:n(k.name)}));console.log("New dropdown items:",Q),g(Q);const A=E.data.content.find(k=>k.uid===(S==null?void 0:S.uid));A&&C(A)}!S&&((re=(K=E==null?void 0:E.data)==null?void 0:K.content)==null?void 0:re.length)>0&&(console.log("Setting initial process"),C(E.data.content[0]))},[E,S]),m.useEffect(()=>{S?(console.log("initBpmnModeler currentProcess:",S),D(S==null?void 0:S.content)):D(Gve)},[S]);const D=async H=>{if(r.current){i.current&&i.current.destroy(),r.current.innerHTML="";const K=new Jd({container:r.current,additionalModules:[],...t?{propertiesPanel:{parent:"#properties",style:{background:"#141414",color:"#fff"}},canvas:{drdBackgroundColor:"#141414",gridColor:"#2a2a2a"}}:{}});try{await K.importXML(H),K.get("canvas").zoom("fit-viewport");const Q=K.get("eventBus"),A=ne=>{console.log("Selection changed:",ne),ne.newSelection&&ne.newSelection.length?f(ne.newSelection[0]):ne.element?f(ne.element):f(null)},k=()=>{console.log("Diagram changed"),u(!0)};Q.on("selection.changed",A),Q.on("element.click",A),["commandStack.changed","element.changed","shape.added","shape.removed","connect.end"].forEach(ne=>{Q.on(ne,k)}),i.current=K}catch(re){console.error("Error initializing modeler:",re),Bt.error(e.formatMessage({id:"ticket.create.error"}))}}};m.useEffect(()=>(S?(console.log("initBpmnModeler Current process:",S),D(S==null?void 0:S.content)):(console.log("initBpmnModeler No current process, initializing empty process"),D(Gve)),()=>{i.current&&i.current.destroy()}),[]);const F=async H=>{try{if(!S){console.warn("No current process to save");return}const K=H.includes("xmlns:flowable")?H:H.replace('xmlns:modeler="http://camunda.org/schema/modeler/1.0"','xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:flowable="http://flowable.org/bpmn"'),re={...S,content:K};console.log("Update process:",{processUid:re.uid,processName:re.name,currentProcessUid:S.uid});const Q=await P0n({uid:re.uid,name:re.name,key:re.key,description:re.description,content:K,orgUid:_==null?void 0:_.uid});console.log("Update response:",Q.data),Q.data.code===200?(C(Q.data.data),u(!1),Bt.success(e.formatMessage({id:"ticket.autosave.success"})),P()):Bt.error(e.formatMessage({id:"ticket.save.error"}))}catch(K){console.error("Error auto-saving diagram:",K),Bt.error(e.formatMessage({id:"ticket.autosave.error"}))}};m.useEffect(()=>{if(!c||!i.current||!S)return;const H=setTimeout(async()=>{},2e3);return()=>{clearTimeout(H)}},[c,S]);const L=async()=>{try{const{xml:H}=await i.current.saveXML({format:!0}),K=H.includes("xmlns:flowable")?H:H.replace('xmlns:modeler="http://camunda.org/schema/modeler/1.0"','xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:flowable="http://flowable.org/bpmn"'),re=new Blob([K],{type:"text/xml"}),Q=URL.createObjectURL(re),A=document.createElement("a");A.href=Q;const k=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,14);A.download=`${k}_workflow.bpmn20.xml`,A.click(),URL.revokeObjectURL(Q),Bt.success(e.formatMessage({id:"ticket.export.success"}))}catch(H){console.error("Error exporting BPMN:",H),Bt.error(e.formatMessage({id:"ticket.export.error"}))}},B=async(H,K)=>{if(console.log("handleUploadDragSubmit files:",H,"uploads:",K),a(!1),!H.length){Bt.error(e.formatMessage({id:"ticket.import.no.file"}));return}const re=H[0],Q=new FileReader;Q.onload=async A=>{var k;try{const Z=(k=A.target)==null?void 0:k.result;if(!Z||typeof Z!="string")throw new Error("Invalid XML content");console.log("Importing XML:",Z),await D(Z),Bt.success(e.formatMessage({id:"ticket.import.success"}))}catch(Z){console.error("Error importing BPMN:",Z),Bt.error(e.formatMessage({id:"ticket.import.error"},{error:Z.message}))}},Q.onerror=A=>{console.error("Error reading file:",A),Bt.error(e.formatMessage({id:"ticket.import.read.error"}))},Q.readAsText(re)},U=(S==null?void 0:S.userUid)===null,G=async H=>{console.log("Create values:",H);try{Bt.loading(e.formatMessage({id:"ticket.create.loading"}));const K=`<?xml version="1.0" encoding="UTF-8"?>
|
||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||
xmlns:flowable="http://flowable.org/bpmn"
|
||
xmlns:activiti="http://activiti.org/bpmn"
|
||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
||
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
|
||
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
||
typeLanguage="http://www.w3.org/2001/XMLSchema"
|
||
expressionLanguage="http://www.w3.org/1999/XPath"
|
||
targetNamespace="http://flowable.org/test"
|
||
exporter="Flowable Open Source Modeler"
|
||
exporterVersion="6.8.0">
|
||
<process id="Process_${H.key}" name="${H.name}" isExecutable="true">
|
||
<documentation>${H.description||""}</documentation>
|
||
<startEvent id="StartEvent_1" name="Start" flowable:formFieldValidation="true">
|
||
<documentation>Start of the process</documentation>
|
||
</startEvent>
|
||
<sequenceFlow id="Flow_1" sourceRef="StartEvent_1" targetRef="UserTask_1" />
|
||
<userTask id="UserTask_1" name="First Task" flowable:assignee="\${initiator}">
|
||
<documentation>First task in the process</documentation>
|
||
</userTask>
|
||
</process>
|
||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_${H.key}">
|
||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||
<omgdc:Bounds x="152" y="102" width="36" height="36"/>
|
||
<bpmndi:BPMNLabel>
|
||
<omgdc:Bounds x="158" y="145" width="24" height="14"/>
|
||
</bpmndi:BPMNLabel>
|
||
</bpmndi:BPMNShape>
|
||
<bpmndi:BPMNShape id="UserTask_1_di" bpmnElement="UserTask_1">
|
||
<omgdc:Bounds x="270" y="80" width="100" height="80"/>
|
||
</bpmndi:BPMNShape>
|
||
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
|
||
<omgdi:waypoint x="188" y="120"/>
|
||
<omgdi:waypoint x="270" y="120"/>
|
||
</bpmndi:BPMNEdge>
|
||
</bpmndi:BPMNPlane>
|
||
</bpmndi:BPMNDiagram>
|
||
</definitions>`;console.log("Generated XML:",K);try{await i.current.importXML(K);const{xml:re}=await i.current.saveXML({format:!0});console.log("Validated XML:",re);const Q=await A0n({name:H.name,key:H.key,description:H.description,content:re,type:xM,orgUid:_==null?void 0:_.uid,userUid:v==null?void 0:v.uid});console.log("Create process response:",Q),Q.data.code===200?(C(Q.data.data),await D(re),l(!1),Bt.destroy(),Bt.success(e.formatMessage({id:"ticket.create.success"})),P()):(Bt.destroy(),Bt.error(e.formatMessage({id:"ticket.create.error"})))}catch(re){console.error("Error importing or validating BPMN:",re),console.error("Invalid XML:",K),Bt.destroy(),Bt.error(e.formatMessage({id:"ticket.create.error.invalid",defaultMessage:"Invalid BPMN structure"}))}}catch(K){console.error("Error creating new process:",K),Bt.destroy(),Bt.error(e.formatMessage({id:"ticket.create.error"}))}},V=async()=>{if(console.log("handleSave"),S){const{xml:H}=await i.current.saveXML({format:!0});await F(H)}},W=async()=>{if(console.log("handleDeploy",S),S)if(S!=null&&S.deployed)_o.confirm({title:e.formatMessage({id:"ticket.undeploy.confirm.title"}),content:e.formatMessage({id:"ticket.undeploy.confirm.content"}),okText:e.formatMessage({id:"common.yes"}),cancelText:e.formatMessage({id:"common.no"}),onOk:async()=>{Bt.loading(e.formatMessage({id:"ticket.undeploy.loading"}));const H={uid:S==null?void 0:S.uid,orgUid:_==null?void 0:_.uid},K=await $0n(H);console.log("Undeploy process response:",H,K.data),K.data.code===200?(Bt.destroy(),Bt.success(e.formatMessage({id:"ticket.undeploy.success"})),P()):(Bt.destroy(),Bt.error(K.data.message))}});else{Bt.loading(e.formatMessage({id:"ticket.deploy.loading"}));const H={uid:S==null?void 0:S.uid,orgUid:_==null?void 0:_.uid},K=await L0n(H);console.log("Deploy process response:",H,K.data),K.data.code===200?(Bt.destroy(),Bt.success(e.formatMessage({id:"ticket.deploy.success"})),P()):(Bt.destroy(),Bt.error(K.data.message))}},$=async()=>{console.log("handleDelete"),_o.confirm({title:e.formatMessage({id:"ticket.delete.confirm"}),onOk:async()=>{if(S){const H=await D0n({uid:S.uid,orgUid:_==null?void 0:_.uid});console.log("Delete process response:",H),H.data.code===200?(Bt.success(e.formatMessage({id:"ticket.delete.success"})),P(),C(null)):Bt.error(e.formatMessage({id:"ticket.delete.failed"}))}}})};return m.useEffect(()=>{const H=document.createElement("style");H.textContent=`
|
||
/* 基础文本样式 */
|
||
.djs-label {
|
||
font-family: 'Arial', sans-serif !important;
|
||
font-size: 12px !important;
|
||
font-weight: normal !important;
|
||
}
|
||
|
||
/* 深色模式工具栏 */
|
||
.dark-mode .djs-palette {
|
||
background-color: #262626 !important;
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-palette .entry {
|
||
color: rgba(255, 255, 255, 0.85) !important;
|
||
background-color: #262626 !important;
|
||
}
|
||
|
||
.dark-mode .djs-palette .entry:hover {
|
||
background-color: #1f1f1f !important;
|
||
}
|
||
|
||
.dark-mode .djs-palette .separator {
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
/* 浅色模式工具栏 */
|
||
.light-mode .djs-palette {
|
||
background-color: #fff !important;
|
||
border-color: #d9d9d9 !important;
|
||
}
|
||
|
||
.light-mode .djs-palette .entry {
|
||
color: rgba(0, 0, 0, 0.85) !important;
|
||
background-color: #fff !important;
|
||
}
|
||
|
||
.light-mode .djs-palette .entry:hover {
|
||
background-color: #f5f5f5 !important;
|
||
}
|
||
|
||
.light-mode .djs-palette .separator {
|
||
border-color: #d9d9d9 !important;
|
||
}
|
||
|
||
/* 其他深色模式样式保持不变... */
|
||
.dark-mode .djs-container {
|
||
background-color: #141414 !important;
|
||
}
|
||
|
||
.dark-mode .djs-shape {
|
||
fill: #262626 !important;
|
||
}
|
||
|
||
.dark-mode .djs-shape .djs-visual > :nth-child(1) {
|
||
fill: #262626 !important;
|
||
stroke: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-shape .djs-visual > :nth-child(2) {
|
||
fill: rgba(255, 255, 255, 0.85) !important;
|
||
}
|
||
|
||
.dark-mode .djs-connection .djs-visual path {
|
||
stroke: rgba(255, 255, 255, 0.85) !important;
|
||
}
|
||
|
||
.dark-mode .djs-connection .djs-visual text,
|
||
.dark-mode .djs-connection-label text {
|
||
font-family: 'Arial', sans-serif !important;
|
||
font-size: 11px !重要;
|
||
font-weight: 300 !important;
|
||
fill: rgba(255, 255, 255, 0.85) !important;
|
||
stroke: none !important;
|
||
}
|
||
|
||
.dark-mode .djs-connection .djs-label rect {
|
||
fill: #262626 !important;
|
||
stroke: none !important;
|
||
}
|
||
|
||
.dark-mode .djs-context-pad {
|
||
background-color: #262626 !important;
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-context-pad .entry {
|
||
background-color: #262626 !important;
|
||
color: rgba(255, 255, 255, 0.85) !important;
|
||
border-color: #434343 !important;
|
||
}
|
||
|
||
.dark-mode .djs-context-pad .entry:hover {
|
||
background-color: #1f1f1f !important;
|
||
}
|
||
|
||
.dark-mode .djs-selection {
|
||
stroke: #177ddc !important;
|
||
stroke-width: 2px !important;
|
||
}
|
||
|
||
.dark-mode .djs-selected .djs-visual > * {
|
||
stroke: #177ddc !important;
|
||
stroke-width: 2px !important;
|
||
}
|
||
|
||
.dark-mode .djs-grid {
|
||
stroke: #262626 !important;
|
||
}
|
||
`,document.head.appendChild(H);const K=r.current;return K&&(K.classList.remove("dark-mode","light-mode"),K.classList.add(t?"dark-mode":"light-mode")),()=>{document.head.removeChild(H)}},[t]),M.jsxs(_i,{style:{height:"100%"},children:[M.jsx(F0n,{style:p,children:M.jsxs("div",{className:"header-content",children:[M.jsxs("h1",{style:x,children:[M.jsx("span",{className:"title-text",style:{color:t?"#fff":"#000"},children:e.formatMessage({id:"ticket.title"})}),M.jsxs("span",{className:"title-actions",style:{marginLeft:16},children:[M.jsx(On,{type:"primary",icon:M.jsx(EA,{}),onClick:()=>{V(),l(!0)},style:{marginRight:8},children:e.formatMessage({id:"ticket.create"})}),M.jsx(_Oe,{menu:R,trigger:["click"],children:M.jsx("a",{onClick:H=>H.preventDefault(),style:{color:t?"#fff":"#000",opacity:.85},children:M.jsx(Zc,{children:E.data.content.length>0?M.jsxs("span",{children:[n(S==null?void 0:S.name)||e.formatMessage({id:"ticket.select.process"}),M.jsx(Mx,{})]}):M.jsx("span",{children:e.formatMessage({id:"ticket.no.process"})})})})})]})]}),M.jsxs("div",{className:"header-actions",children:[M.jsx(On,{type:"primary",icon:M.jsx($_,{}),onClick:()=>a(!0),children:e.formatMessage({id:"ticket.import"})}),M.jsx(On,{type:"primary",icon:M.jsx(lk,{}),onClick:L,children:e.formatMessage({id:"ticket.export"})}),M.jsx(On,{type:"primary",icon:M.jsx(aIe,{}),onClick:V,children:e.formatMessage({id:"ticket.save"})}),M.jsx(On,{type:"primary",icon:M.jsx(hvt,{}),onClick:W,children:S!=null&&S.deployed?e.formatMessage({id:"ticket.undeploy"}):e.formatMessage({id:"ticket.deploy"})}),!U&&M.jsx(On,{type:"primary",icon:M.jsx(k_,{}),onClick:$,children:e.formatMessage({id:"ticket.delete"})})]})]})}),M.jsx(_i,{children:M.jsx(B0n,{style:{background:t?"#141414":"#fff",position:"relative",height:"calc(100vh - 64px)",display:"flex"},children:M.jsxs(sN,{children:[M.jsx(sN.Panel,{children:M.jsx("div",{ref:r,className:"bpmn-container",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,background:t?"#141414":"#fff"}})}),M.jsx(sN.Panel,{defaultSize:"300",children:M.jsx(N0n,{element:d,modeler:i.current})})]})})}),o&&M.jsx(R0n,{type:xUe,isModalOpen:o,handleSubmit:B,handleCancel:()=>a(!1)}),s&&M.jsx(O0n,{isEdit:!1,showCreateModal:s,handleCreate:G,handleCancel:()=>l(!1)})]})};async function U0n(e){return mi("/api/v1/org/create",{method:"POST",data:{...e,client:Pi}})}const j0n=({open:e,onClose:t,onSuccess:n})=>{const r=mr(),{userInfo:i}=qq(),[o,a]=m.useState(!1),[s,l]=m.useState(""),[c,u]=m.useState(!1),d=()=>{t()},f=()=>{Bt.error(r.formatMessage({id:"welcome.message.org.required"}))},p=async()=>{if(s===""){Bt.error(r.formatMessage({id:"welcome.message.org.name.required"}));return}a(!0),Bt.loading(r.formatMessage({id:"welcome.message.org.creating"}));const g=i!=null&&i.mobile?i==null?void 0:i.mobile:i==null?void 0:i.email,v={name:s,code:g,logo:"https://www.weiyuai.cn/logo.png",description:s+"description"};try{const y=await U0n(v);y.data.code===200?(a(!1),Bt.destroy(),Bt.success(r.formatMessage({id:"welcome.message.create.success"})),n(y.data.data),t()):(a(!1),Bt.destroy(),Bt.error(r.formatMessage({id:"welcome.message.create.failed"})))}catch{a(!1),Bt.destroy(),Bt.error(r.formatMessage({id:"welcome.message.create.failed"}))}},h=()=>{c?p():(u(!0),a(!1))};return M.jsxs(_o,{title:r.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:f,maskClosable:!1,footer:[M.jsx(On,{type:"primary",onClick:d,disabled:!0,children:r.formatMessage({id:"welcome.modal.join"})},"join"),M.jsx(On,{type:"primary",loading:o,onClick:h,children:r.formatMessage({id:"welcome.modal.create"})},"create")],children:[M.jsx("p",{children:r.formatMessage({id:"welcome.modal.description"})}),c&&M.jsx(Hr,{placeholder:r.formatMessage({id:"welcome.modal.input.placeholder"}),value:s,onChange:g=>l(g.target.value),onPressEnter:p,autoFocus:!0})]})},H0n=({open:e,onClose:t})=>{const n=mr(),r=uc(),i=()=>{t(),r("/setting/certification")},o=()=>{localStorage.setItem("skipVerification","true"),t()};return M.jsx(_o,{title:n.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:o,footer:[M.jsx(On,{onClick:o,children:n.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),M.jsx(On,{type:"primary",onClick:i,children:n.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:M.jsx("p",{children:n.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})},z0n=()=>{const e=mr(),{locale:t}=m.useContext(Da),n=localStorage.getItem(Vj),[r,i]=m.useState(n||"/"),o=uc(),{isLoggedIn:a,hasRoleAgent:s}=m.useContext(Da),{footerStyle:l}=Wh(),{currentOrg:c,setCurrentOrg:u}=kh(F=>({currentOrg:F.currentOrg,setCurrentOrg:F.setCurrentOrg})),{userInfo:d,setUserInfo:f}=Yo(F=>({userInfo:F.userInfo,setUserInfo:F.setUserInfo})),{setAgentInfo:p}=T_(F=>({setAgentInfo:F.setAgentInfo})),h=$u(F=>F.removeThread),g=O2e(F=>F.setWorkgroupResult),[v,y]=m.useState(!1),_=$u(F=>F.threads);m.useEffect(()=>{const F=_.some(L=>L.unreadCount>0);y(F)},[_]);const[b,S]=m.useState([]);m.useEffect(()=>{const F=[...Jb?[{path:"/formbuilder",name:e.formatMessage({id:"menu.dashboard.form"}),icon:M.jsx(ZC,{}),component:M.jsx(Jz,{})},{path:"/form-view/:formId",element:M.jsx(zQ,{})},{path:"/flowbuilder",name:e.formatMessage({id:"menu.dashboard.flow"}),icon:M.jsx(ZC,{}),component:M.jsx(Yke,{})}]:[],{path:"/ticketbuilder",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:M.jsx(ZC,{}),component:M.jsx(K4e,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:M.jsx(jq,{}),component:M.jsx(T2e,{})}];S(F)},[e,t]),P2e(),jQ(),A2e(),mQ();const C=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const F=await a7e(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,F.data),F.data.code===200&&p(F.data.data)},[E,w]=m.useState(!1),[x,T]=m.useState(!1),R=m.useCallback(F=>{u(F)},[u]),N=m.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&d&&!d.emailVerified&&!d.mobileVerified&&T(!0)},[d]),I=async()=>{if(a){if(d.currentOrganization===void 0||d.currentOrganization===null){console.log("before initOrganization",d),w(!0);return}console.log("after initOrganization"),u(d==null?void 0:d.currentOrganization),C(),N()}};m.useEffect(()=>(I(),()=>{console.log("un - useEffect")}),[a,d]);const P=async()=>{const F=await HQ();console.log("initProfile response:",F.data),F.data.code===200?f(F.data.data):Bt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};m.useEffect(()=>{a&&P()},[a]);const D=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const F={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},L=await aQt(F);console.log("initWorkgroups",L.data),L.data.code===200?g(L.data):console.log("获取工作组失败")};return m.useEffect(()=>{D()},[a,c]),m.useEffect(()=>{const F=U=>{var V,W;console.log("handleTransfer:",U);const G=JSON.parse(U);if(console.log("handleTransfer contentObject",G.message,G.thread),((W=(V=G.message)==null?void 0:V.user)==null?void 0:W.uid)===(d==null?void 0:d.uid)){Bt.success("转接会话发送成功,请等待对方响应");return}},L=U=>{var W,$,H;console.log("handleTransferAccept:",U);const G=JSON.parse(U),V=JSON.parse((W=G.message)==null?void 0:W.content);h(V==null?void 0:V.thread),Bt.success(`${(H=($=G.message)==null?void 0:$.user)==null?void 0:H.nickname} 已接受转接会话`)},B=U=>{var V,W;console.log("handleTransferReject:",U);const G=JSON.parse(U);Bt.success(`${(W=(V=G.message)==null?void 0:V.user)==null?void 0:W.nickname} 已拒绝转接会话`)};return fr.on(kj,F),fr.on(Lj,L),fr.on($j,B),()=>{fr.off(kj,F),fr.off(Lj,L),fr.off($j,B)}},[]),M.jsxs(FAe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:b},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:F=>F.isMobile?[]:[M.jsx(lQt,{}),M.jsx(oQt,{})],menuHeaderRender:()=>M.jsx(M2e,{}),menuFooterRender:F=>{F!=null&&F.collapsed},onMenuHeaderClick:F=>{console.log("onMenuHeaderClick",F)},menuItemRender:(F,L)=>M.jsx(M.Fragment,{children:M.jsxs("div",{onClick:()=>{i(F.path),o(F.path),localStorage.setItem(Vj,F.path)},children:[v&&M.jsxs(M.Fragment,{children:[F.path==="/chat"&&M.jsx(nl,{size:"small",dot:v,offset:[-5,5],children:L}),F.path!=="/chat"&&L]}),!v&&M.jsx(M.Fragment,{children:L})]})}),children:[M.jsx($L,{children:M.jsx(gk,{},t.locale)}),M.jsx(FL,{style:l,children:M.jsx(N2e,{})}),M.jsx(j0n,{open:E,onClose:()=>w(!1),onSuccess:R}),M.jsx(H0n,{open:x,onClose:()=>T(!1)}),M.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},V0n=()=>M.jsx(M.Fragment,{children:M.jsx(gk,{})}),G0n=({open:e,onClose:t})=>{const n=mr(),{translateString:r}=_d(),i=()=>{t()},o=()=>{t()};return M.jsx(M.Fragment,{children:M.jsx(_o,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:o,children:M.jsxs(Ar,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){Bt.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){Bt.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:a.oldPassword,newPassword:a.newPassword},l=await sQt(s);console.log("changePassword response:",l),l.data.code===200?(Bt.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):Bt.error(r(l.data.message))},children:[M.jsx(Jr.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),M.jsx(Jr.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),M.jsx(Jr.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},Q4e=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:TUe,category_uid:"",kb_uid:"",client:Pi},i={name:"file",accept:"image/*",action:vW(),headers:{Authorization:"Bearer "+localStorage.getItem(e0)},data:r,showUploadList:!1,beforeUpload(o){console.log("beforeUpload",o);const a=bn(new Date).format("YYYYMMDDHHmmss")+"_"+o.name;r.file=o,r.file_name=a,r.file_type=o.type,console.log("beforeUpload",r)},onChange(o){if(o.file.status!=="uploading"&&console.log("not uploading:",o.file),o.file.status==="done")if(console.log("response: ",o.file.response),o.file.response.code===200){const a=o.file.response.data.fileUrl;t(a),Bt.success(`${o.file.name} 上传成功`)}else n(o.file),Bt.error(`${o.file.name} 上传失败`);else o.file.status==="error"&&(Bt.error(`${o.file.name} 上传失败`),n(o.file))}};return M.jsx(jp,{...i,children:e})},W0n=({open:e,onSubmit:t,onClose:n})=>{const r=mr(),[i]=Ar.useForm(),{translateString:o}=_d(),{userInfo:a,deviceUid:s}=Yo(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=kh(E=>E.currentOrg),c=m.useRef(),[u,d]=m.useState(""),[f,p]=m.useState(""),[h,g]=m.useState(!1),v=async(E,w)=>{console.log("captchaUid",E," captchaValue",w),d(E),p(w)},y=async E=>{console.log("captcha check result",E),g(E)},_=()=>{n()},b=()=>{n()},S=async()=>{i.validateFields().then(async E=>{if(console.log("changeEmail:",E),a.email===E.email){Bt.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const w={email:E.email,code:E.code,platform:Yc},x=await k2e(w);console.log("changeEmail response:",x),x.data.code===200?(Bt.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(E.email),_()):Bt.error(o(x.data.message))})},C=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return M.jsx(M.Fragment,{children:M.jsx(_o,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:b,children:M.jsxs(Ar,{form:i,onFinish:async E=>{console.log("changeEmail:",E),S()},children:[M.jsx(Jr,{fieldProps:{size:"large",prefix:M.jsx(Ux,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),M.jsx(Ar.Item,{name:"captchaCode",children:M.jsx(LS,{onKaptchaChange:v,onKaptchaCheck:y})}),M.jsx(Yx,{fieldProps:{size:"large",prefix:M.jsx(L_,{})},captchaProps:{size:"large",disabled:!h},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(E,w)=>E?`${w} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async E=>{if(E){if(a.email===E){Bt.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),C();return}const w={email:E,type:tUe,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:Yc},x=await zPe(w);if(x.data.code!==200){Bt.error(x.data.message),C();return}Bt.success(x.data.message)}else Bt.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},Y0n=({open:e,onSubmit:t,onClose:n})=>{const r=mr(),[i]=Ar.useForm(),{translateString:o}=_d(),{userInfo:a,deviceUid:s}=Yo(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=kh(E=>E.currentOrg),c=m.useRef(),[u,d]=m.useState(""),[f,p]=m.useState(""),[h,g]=m.useState(!1),v=async(E,w)=>{console.log("captchaUid",E," captchaValue",w),d(E),p(w)},y=async E=>{console.log("captcha check result",E),g(E)},_=()=>{n()},b=()=>{n()},S=async()=>{i.validateFields().then(async E=>{if(console.log("changeMobile:",E),a.mobile===E.mobile){Bt.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const w={mobile:E.mobile,code:E.code,platform:Yc},x=await L2e(w);console.log("changeMobile response:",x),x.data.code===200?(Bt.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(E.mobile),_()):Bt.error(o(x.data.message))})},C=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return M.jsx(M.Fragment,{children:M.jsx(_o,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:b,children:M.jsxs(Ar,{form:i,onFinish:async E=>{console.log("changeMobile:",E),S()},children:[M.jsx(Jr,{fieldProps:{size:"large",prefix:M.jsx(Ux,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),M.jsx(Ar.Item,{name:"captchaCode",children:M.jsx(LS,{onKaptchaChange:v,onKaptchaCheck:y})}),M.jsx(Yx,{fieldProps:{size:"large",prefix:M.jsx(L_,{})},captchaProps:{size:"large",disabled:!h},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(E,w)=>E?`${w} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async E=>{if(E&&E.length===11){if(a.mobile===E){Bt.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),C();return}const w={mobile:E,type:J5e,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:Yc},x=await pQ(w);if(x.data.code!==200){Bt.error(x.data.message),C();return}Bt.success(x.data.message)}else Bt.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},q0n={labelCol:{span:8},wrapperCol:{span:8}},Wve=()=>{const e=mr(),[t]=Ar.useForm(),{translateString:n}=_d(),{userInfo:r,setUserInfo:i}=Yo(R=>({userInfo:R.userInfo,setUserInfo:R.setUserInfo})),[o,a]=m.useState(""),[s,l]=m.useState(!1),[c,u]=m.useState(!1),[d,f]=m.useState(!1),p=()=>{l(!0)},h=()=>{u(!0)},g=()=>{f(!0)},v=()=>{l(!1)},y=()=>{u(!1)},_=R=>{u(!1),r.email=R,i(r),t.setFieldValue("email",R)},b=()=>{f(!1)},S=R=>{f(!1),r.mobile=R,i(r),t.setFieldValue("mobile",R)},C=R=>{console.log("handleUploadSuccess:",R),a(R)},E=R=>{console.log("handleUploadError:",R)},w=async R=>{const N={...r,...R,avatar:o};console.log(N);const I=await D2e(N);console.log("updateProfile response:",I.data),I.data.code===200?(Bt.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(I.data.data)):Bt.error(I.data.message)},x=R=>Array.isArray(R)?R:R==null?void 0:R.fileList;m.useEffect(()=>{r&&a(r.avatar)},[r]);const T=async()=>{const R=await HQ();console.log("handleRefreshProfile getProfile response:",R.data),R.data.code===200?(i(R.data.data),t.setFieldsValue({uid:R.data.data.uid,username:R.data.data.username,nickname:n(R.data.data.nickname),email:R.data.data.email,mobile:R.data.data.mobile,description:n(R.data.data.description)})):Bt.error(R.data.message)};return m.useEffect(()=>{T()},[]),M.jsxs("div",{className:"profile-container",children:[M.jsxs(Ar,{...q0n,form:t,onFinish:w,children:[M.jsx(Jr,{name:"uid",label:"UID",readonly:!0}),M.jsx(Ar.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:x,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:M.jsxs(Q4e,{onSuccess:C,onError:E,children:[M.jsx(Bh,{src:o}),M.jsx(On,{icon:M.jsx($_,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),M.jsx(Jr,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),M.jsx(On,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),M.jsx(Jr,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),M.jsx(Jr,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),M.jsx(On,{onClick:h,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),M.jsx(Jr,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),M.jsx(On,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),M.jsx(iT,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&M.jsx(G0n,{open:s,onClose:v}),c&&M.jsx(W0n,{open:c,onSubmit:_,onClose:y}),d&&M.jsx(Y0n,{open:d,onSubmit:S,onClose:b})]})},K0n=()=>{const e=mr(),t=fL(),{isMqttConnected:n}=jQ(),[r,i]=m.useState(!0),[o,a]=m.useState(!0),[s,l]=m.useState(!1),c=E=>{console.log("radio checked",E.target.value),l(E.target.value),Aa?window.electronAPI.setOpenAtLogin(E.target.value):console.log("not electron")},u=async()=>{if(Aa){const E=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",E),l(E)}};m.useEffect(()=>{u(),T0t(),IIe(),console.log("isNetworkOnline:",t);const E=localStorage.getItem(OI);E===null?(localStorage.setItem(OI,"true"),i(!0)):i(E==="true");const w=localStorage.getItem(LC);w===null?(localStorage.setItem(LC,"true"),a(!0)):a(w==="true")},[]);const{themeMode:d,setThemeMode:f,mode:p,changeMode:h,locale:g,changeLocale:v}=m.useContext(Da),y=E=>{console.log("radio checked",E.target.value),f(E.target.value),I0t(E.target.value)},_=E=>{console.log("language change",E.target.value),v(E.target.value)},b=E=>{console.log("play audio switch",E),localStorage.setItem(OI,E?"true":"false"),i(E)},S=E=>{console.log("show network status notification",E),localStorage.setItem(LC,E?"true":"false"),a(E)},C=E=>{console.log("mode change",E.target.value),h(E.target.value)};return M.jsxs("div",{className:"profile-container",children:[M.jsx("p",{children:M.jsx(Zv,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:b})}),M.jsx("p",{children:M.jsx(Zv,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:o,onChange:S})}),Jb&&M.jsxs(M.Fragment,{children:[M.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),M.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Aa&&M.jsxs(M.Fragment,{children:[M.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),M.jsxs(ji.Group,{onChange:c,value:s,children:[M.jsx(ji,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),M.jsx(ji,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),M.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),M.jsxs(ji.Group,{onChange:y,value:d,children:[M.jsx(ji,{value:"light",children:M.jsx(Bu,{id:"theme.light"})}),M.jsx(ji,{value:"dark",children:M.jsx(Bu,{id:"theme.dark"})}),M.jsx(ji,{value:"system",children:M.jsx(Bu,{id:"theme.system"})})]}),M.jsxs("div",{children:[M.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),M.jsxs(ji.Group,{value:g.locale,onChange:_,children:[M.jsx(ji,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),M.jsx(ji,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),M.jsx(ji,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),Jb&&M.jsxs("div",{children:[M.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),M.jsxs(ji.Group,{value:p,onChange:C,children:[M.jsx(ji,{value:gb,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},gb),M.jsx(ji,{value:jv,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},jv),M.jsx(ji,{value:wM,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},wM)]})]})]})},Q0n=()=>{const e=Yo(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),o=document.createElement("a");o.download=e.username+"_profile.png",o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o)}else console.log("canvas is null")};return M.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[M.jsx(fIe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),M.jsx(On,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},X0n=()=>M.jsx(M.Fragment,{children:M.jsx("div",{children:"ShortcutAdmin"})}),Z0n=()=>{const e=uc();return M.jsx(Hx,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:M.jsx(On,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},J0n={labelCol:{span:8},wrapperCol:{span:8}},eSn=()=>{const e=mr(),[t]=Ar.useForm(),{userInfo:n,setUserInfo:r}=Yo(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,o]=m.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:vW(),headers:{Authorization:"Bearer "+localStorage.getItem(e0)},showUploadList:!1,data:a,beforeUpload(u){const d=bn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.file_name=d,a.file_type=u.type,console.log("beforeUpload",a)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const d=u.file.response.data.fileUrl;console.log("url: ",d),o(d),Bt.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&Bt.error(`${u.file.name} file upload failed.`)}},l=async u=>{const d={...n,...u,avatar:i};console.log(d);const f=await D2e(d);console.log("updateProfile response:",f),f.data.code===200?(Bt.success("修改成功"),r(f.data.data)):Bt.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return m.useEffect(()=>{n&&o(n.avatar)},[n]),M.jsxs("div",{className:"profile-container",children:[M.jsx("p",{children:"员工信息"}),M.jsxs(Ar,{...J0n,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[M.jsx(hr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:M.jsxs(jp,{...s,children:[M.jsx(Bh,{src:i}),M.jsx(On,{icon:M.jsx($_,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),M.jsx(Jr,{name:"nickname",label:"昵称",rules:[{required:!0}],children:M.jsx(Hr,{})}),M.jsx(Jr,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:M.jsx(Hr,{})}),M.jsx(Jr,{name:"mobile",label:"手机号",disabled:!0,children:M.jsx(Hr,{})}),M.jsx(iT,{name:"description",label:"描述",children:M.jsx(Hr.TextArea,{})})]})]})},tSn=({open:e,onSubmit:t,onClose:n})=>{const r=mr(),[i]=Ar.useForm(),{translateString:o}=_d(),{userInfo:a,deviceUid:s}=Yo(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=kh(E=>E.currentOrg),c=m.useRef(),[u,d]=m.useState(""),[f,p]=m.useState(""),[h,g]=m.useState(!1);m.useEffect(()=>{e?i.setFieldsValue({email:a==null?void 0:a.email}):(i.resetFields(),C())},[e]);const v=async(E,w)=>{console.log("captchaUid",E," captchaValue",w),d(E),p(w)},y=async E=>{console.log("captcha check result",E),g(E)},_=()=>{n()},b=()=>{n()},S=async()=>{i.validateFields().then(async E=>{console.log("changeEmail:",E);const w={email:E.email,code:E.code,platform:Yc},x=await k2e(w);console.log("changeEmail response:",x),x.data.code===200?(Bt.success("Email verify successfully!"),t(E.email),_()):Bt.error(o(x.data.message))})},C=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return M.jsx(M.Fragment,{children:M.jsx(_o,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:b,children:M.jsxs(Ar,{form:i,onFinish:async E=>{console.log("changeEmail:",E),S()},children:[M.jsx(Jr,{fieldProps:{size:"large",prefix:M.jsx(Ux,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),M.jsx(Ar.Item,{name:"captchaCode",rules:[],children:M.jsx(LS,{onKaptchaChange:v,onKaptchaCheck:y})}),M.jsx(Yx,{fieldProps:{size:"large",prefix:M.jsx(L_,{}),allowClear:!0},captchaProps:{size:"large",disabled:!h},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(E,w)=>E?`${w} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async E=>{if(console.log("email:",E),E){const w={email:E,type:nUe,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:Yc},x=await zPe(w);if(console.log("sendEmailCode",x),x.data.code!==200){Bt.error(o(x.data.message)),C();return}Bt.success(o(x.data.message))}else Bt.error("手机号格式错误")}})]})})})},nSn=({open:e,onSubmit:t,onClose:n})=>{const r=mr(),[i]=Ar.useForm(),{translateString:o}=_d(),{userInfo:a,deviceUid:s}=Yo(E=>({userInfo:E.userInfo,deviceUid:E.deviceUid})),l=kh(E=>E.currentOrg),c=m.useRef(),[u,d]=m.useState(""),[f,p]=m.useState(""),[h,g]=m.useState(!1);m.useEffect(()=>{e?i.setFieldsValue({mobile:a==null?void 0:a.mobile}):(i.resetFields(),C())},[e]);const v=async(E,w)=>{console.log("captchaUid",E," captchaValue",w),d(E),p(w)},y=async E=>{console.log("captcha check result",E),g(E)},_=()=>{n()},b=()=>{n()},S=async()=>{i.validateFields().then(async E=>{console.log("changeMobile:",E);const w={mobile:E.mobile,code:E.code,platform:Yc},x=await L2e(w);console.log("changeMobile response:",x),x.data.code===200?(Bt.success("Mobile verify successfully!"),t(E.mobile),_()):Bt.error(o(x.data.message))})},C=()=>{setTimeout(()=>{var E;console.log("endCaptchaTiming"),(E=c.current)==null||E.endTiming()},2)};return M.jsx(M.Fragment,{children:M.jsx(_o,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:b,children:M.jsxs(Ar,{form:i,onFinish:async E=>{console.log("changeMobile:",E),S()},children:[M.jsx(Jr,{fieldProps:{size:"large",prefix:M.jsx(Ux,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),M.jsx(Ar.Item,{name:"captchaCode",rules:[],children:M.jsx(LS,{onKaptchaChange:v,onKaptchaCheck:y})}),M.jsx(Yx,{fieldProps:{size:"large",prefix:M.jsx(L_,{}),allowClear:!0},captchaProps:{size:"large",disabled:!h},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(E,w)=>E?`${w} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async E=>{if(console.log("mobile:",E),E&&E.length===11){const w={mobile:E,type:eUe,captchaUid:u,captchaCode:f,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:Yc},x=await pQ(w);if(console.log("sendMobileCode",x),x.data.code!==200){Bt.error(o(x.data.message)),C();return}Bt.success(o(x.data.message))}else Bt.error("手机号格式错误")}})]})})})},rSn=()=>{const e=mr(),t=uc(),[n]=Ar.useForm(),{userInfo:r,setUserInfo:i}=Yo(y=>({userInfo:y.userInfo,setUserInfo:y.setUserInfo})),[o,a]=m.useState(!1),[s,l]=m.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},d=()=>{a(!1)},f=y=>{a(!1),r.email=y,r.emailVerified=!0,i(r),n.setFieldValue("email",y)},p=()=>{l(!1)},h=y=>{l(!1),r.mobile=y,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",y)};m.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return M.jsxs("div",{children:[M.jsxs(Ar,{form:n,submitter:!1,children:[M.jsx(Jr,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&M.jsx(On,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),M.jsx(On,{type:"link",onClick:g,children:"重置邮箱"}),M.jsx(Jr,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&M.jsx(On,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),M.jsx(On,{type:"link",onClick:v,children:"重置手机号"})]}),o&&M.jsx(tSn,{open:o,onSubmit:f,onClose:d}),s&&M.jsx(nSn,{open:s,onSubmit:h,onClose:p})]})},iSn=e=>{console.log(e)},oSn=[{key:"personal",label:"个人认证",children:M.jsx(rSn,{})}],aSn=()=>M.jsx("div",{className:"profile-container",children:M.jsx(Dx,{defaultActiveKey:"personal",items:oSn,onChange:iSn})}),sSn=()=>{const[e]=Ar.useForm(),t=mr(),{translateString:n}=_d(),{agentInfo:r,setAgentInfo:i}=T_(d=>({agentInfo:d.agentInfo,setAgentInfo:d.setAgentInfo})),[o,a]=m.useState("");m.useEffect(()=>{var d;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(d=r==null?void 0:r.member)==null?void 0:d.uid})},[r]);const s=d=>{console.log("handleUploadSuccess:",d),a(d)},l=d=>{console.log("handleUploadError:",d),Bt.error(d)},c=async d=>{var h,g,v,y,_,b,S,C,E,w,x,T,R,N;console.log("onFinish:",d),Bt.loading(t.formatMessage({id:"updating"}));const f={...r,...d,avatar:o,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(h=r==null?void 0:r.serviceSettings)==null?void 0:h.quickFaqs)==null?void 0:g.map(I=>I.uid),faqUids:(y=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:y.map(I=>I.uid),guessFaqUids:(b=(_=r==null?void 0:r.serviceSettings)==null?void 0:_.guessFaqs)==null?void 0:b.map(I=>I.uid),hotFaqUids:(C=(S=r==null?void 0:r.serviceSettings)==null?void 0:S.hotFaqs)==null?void 0:C.map(I=>I.uid),shortcutFaqUids:(w=(E=r==null?void 0:r.serviceSettings)==null?void 0:E.shortcutFaqs)==null?void 0:w.map(I=>I.uid)},robotSettings:{...r.robotSettings,robotUid:(T=(x=r==null?void 0:r.robotSettings)==null?void 0:x.robot)==null?void 0:T.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(N=(R=r==null?void 0:r.leaveMsgSettings)==null?void 0:R.worktimes)==null?void 0:N.map(I=>I.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",f);const p=await s7e(f);console.log("updateAgent response:",p),p.data.code===200?(Bt.destroy(),Bt.success(t.formatMessage({id:"update.success"})),i(p.data.data)):(Bt.destroy(),Bt.error(p.data.message))},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return m.useEffect(()=>{var d;r&&(a(r.avatar),e.setFieldsValue({member:(d=r==null?void 0:r.member)==null?void 0:d.nickname}))},[r]),M.jsx(M.Fragment,{children:M.jsxs(Ar,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[M.jsx(Ar.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:M.jsxs(Q4e,{onSuccess:s,onError:l,children:[M.jsx(Bh,{src:o}),M.jsx(On,{icon:M.jsx($_,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),M.jsx(Jr,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),M.jsx(Jr,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),M.jsx(Jr,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),M.jsx(iT,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},lSn=()=>{const e=mr(),[t,n]=m.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:M.jsx(sSn,{})}];return m.useEffect(()=>{n(r)},[]),M.jsx(M.Fragment,{children:M.jsx(Dx,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:cSn,Content:uSn}=_i,eG=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=Wh();return M.jsx(M.Fragment,{children:M.jsxs(_i,{children:[M.jsx(cSn,{style:e,width:t,children:M.jsx(OA,{style:n,children:"home"})}),M.jsxs(_i,{children:[M.jsx(OA,{style:n,children:"home"}),M.jsx(uSn,{style:r,children:"home"})]})]})})},dSn=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);m.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class fSn{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return pSn(t).buffer}}function pSn(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const o=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(o,r),r+=i.byteLength}return n}function X4e(e){return new mSn(e).unpack()}function Z4e(e){const t=new hSn,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class mSn{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length<this.index+t)throw new Error(`BinaryPackFailure: index is out of range ${this.index} ${t} ${this.length}`);const n=this.dataBuffer.slice(this.index,this.index+t);return this.index+=t,n}unpack_string(t){const n=this.read(t);let r=0,i="",o,a;for(;r<t;)o=n[r],o<160?(a=o,r++):(o^192)<32?(a=(o&31)<<6|n[r+1]&63,r+=2):(o^224)<16?(a=(o&15)<<12|(n[r+1]&63)<<6|n[r+2]&63,r+=3):(a=(o&7)<<18|(n[r+1]&63)<<12|(n[r+2]&63)<<6|n[r+3]&63,r+=4),i+=String.fromCodePoint(a);return this.index+=t,i}unpack_array(t){const n=new Array(t);for(let r=0;r<t;r++)n[r]=this.unpack();return n}unpack_map(t){const n={};for(let r=0;r<t;r++){const i=this.unpack();n[i]=this.unpack()}return n}unpack_float(){const t=this.unpack_uint32(),n=t>>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*a}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class hSn{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(i<n){const o=this.pack(t[i]);return o instanceof Promise?o.then(()=>r(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,o=Math.floor(i*2**52),a=2**32,s=n<<31|r+1023<<20|o/a&1048575,l=o%a;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=o=>{if(o<n.length){const a=n[o];if(t.hasOwnProperty(a)){this.pack(a);const s=this.pack(t[a]);if(s instanceof Promise)return s.then(()=>i(o+1))}return i(o+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new fSn,this._textEncoder=new TextEncoder}}let J4e=!0,eFe=!0;function HN(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function ny(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(a,s){if(a!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[a,l])};const o=r.removeEventListener;r.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(s))return o.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,o.apply(this,[a,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function gSn(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(J4e=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function vSn(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(eFe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function tFe(){if(typeof window=="object"){if(J4e)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function nJ(e,t){eFe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function _Sn(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=HN(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=HN(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=HN(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function Yve(e){return Object.prototype.toString.call(e)==="[object Object]"}function nFe(e){return Yve(e)?Object.keys(e).reduce(function(t,n){const r=Yve(e[n]),i=r?nFe(e[n]):e[n],o=r&&!Object.keys(i).length;return i===void 0||o?t:Object.assign(t,{[n]:i})},{}):e}function tG(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?tG(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{tG(e,e.get(i),n)})}))}function qve(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const o=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&o.push(a)}),o.forEach(a=>{e.forEach(s=>{s.type===r&&s.trackId===a.id&&tG(e,s,i)})}),i}const Kve=tFe;function rFe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const d=function(f,p){return f?f+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(u.ideal!==void 0){l.optional=l.optional||[];let f={};typeof u.ideal=="number"?(f[d("min",c)]=u.ideal,l.optional.push(f),f={},f[d("max",c)]=u.ideal,l.optional.push(f)):(f[d("",c)]=u.ideal,l.optional.push(f))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[d("",c)]=u.exact):["min","max"].forEach(f=>{u[f]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[d(f,c)]=u[f])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,d,f){d in u&&!(f in u)&&(u[f]=u[d],delete u[d])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let d;if(c.exact==="environment"||c.ideal==="environment"?d=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(d=["front"]),d)return n.mediaDevices.enumerateDevices().then(f=>{f=f.filter(h=>h.kind==="videoinput");let p=f.find(h=>d.some(g=>h.label.toLowerCase().includes(g)));return!p&&f.length&&d.includes("back")&&(p=f[f.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),Kve("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return Kve("chrome: "+JSON.stringify(s)),l(s)},o=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,d=>{c&&c(o(d))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(d=>{d.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(o(u))))}}}function iFe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function oFe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):o={track:i.track};const a=new Event("track");a.track=i.track,a.receiver=o,a.transceiver={receiver:o},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===i.id):o={track:i};const a=new Event("track");a.track=i,a.receiver=o,a.transceiver={receiver:o},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else ny(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function aFe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,o){return{track:o,get dtmf(){return this._dtmf===void 0&&(o.kind==="audio"?this._dtmf=i.createDTMFSender(o):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){o.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],n.apply(this,[o]),o.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],r.apply(this,[o]),o.getTracks().forEach(a=>{const s=this._senders.find(l=>l.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function sFe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=n.apply(this,[]);return o.forEach(a=>a._pc=this),o});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=r.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){const o=this;return this._pc.getStats().then(a=>qve(a,o.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i}),ny(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(o=>qve(o,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,o,a;return this.getSenders().forEach(s=>{s.track===r&&(i?a=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(o?a=!0:o=s),s.track===r)),a||i&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function lFe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(c=>{if(this.getSenders().find(d=>d.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[a.id]=[a].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(a);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function cFe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return lFe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(d=>this._reverseStreams[d.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(d=>{if(this.getSenders().find(p=>p.track===d))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const d=new e.MediaStream(u.getTracks());this._streams[u.id]=d,this._reverseStreams[d.id]=u,u=d}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const f=[].slice.call(arguments,1);if(f.length!==1||!f[0].getTracks().find(g=>g===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const h=this._streams[d.id];if(h)h.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[d.id]=g,this._reverseStreams[g.id]=d,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function o(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],h=c._streams[p.id];d=d.replace(new RegExp(h.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:d})}function a(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],h=c._streams[p.id];d=d.replace(new RegExp(p.id,"g"),h.id)}),new RTCSessionDescription({type:u.type,sdp:d})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],d={[c](){const f=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[h=>{const g=o(this,h);f[0].apply(null,[g])},h=>{f[1]&&f[1].apply(null,h)},arguments[2]]):u.apply(this,arguments).then(h=>o(this,h))}};e.RTCPeerConnection.prototype[c]=d[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:o(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let f;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(g=>u.track===g)&&(f=this._streams[p])}),f&&(f.getTracks().length===1?this.removeStream(this._reverseStreams[f.id]):f.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function nG(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function uFe(e,t){ny(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const Qve=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:uFe,shimAddTrackRemoveTrack:cFe,shimAddTrackRemoveTrackWithNative:lFe,shimGetSendersWithDtmf:aFe,shimGetUserMedia:rFe,shimMediaStream:iFe,shimOnTrack:oFe,shimPeerConnection:nG,shimSenderReceiverGetStats:sFe},Symbol.toStringTag,{value:"Module"}));function dFe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,o,a){nJ("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(o,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),i(a.audio,"autoGainControl","mozAutoGainControl"),i(a.audio,"noiseSuppression","mozNoiseSuppression")),o(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const s=a.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const a=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function ySn(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function fFe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function rG(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const o=e.RTCPeerConnection.prototype[i],a={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=a[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[o,a,s]=arguments;return r.apply(this,[o||null]).then(l=>{if(t.version<53&&!a)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,d)=>{l.set(d,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(a,s)}}function pFe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(o=>o._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function mFe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),ny(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function hFe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){nJ("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function gFe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function vFe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const o=t.apply(this,arguments);if(i){const{sender:a}=o,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,a.sendEncodings=r,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return o})}function _Fe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function yFe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function bFe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const Xve=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:vFe,shimCreateAnswer:bFe,shimCreateOffer:yFe,shimGetDisplayMedia:ySn,shimGetParameters:_Fe,shimGetUserMedia:dFe,shimOnTrack:fFe,shimPeerConnection:rG,shimRTCDataChannel:gFe,shimReceiverGetStats:mFe,shimRemoveStream:hFe,shimSenderGetStats:pFe},Symbol.toStringTag,{value:"Module"}));function SFe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(o=>{this._localStreams?this._localStreams.includes(o)||this._localStreams.push(o):this._localStreams=[o]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(o=>{i.includes(o.track)&&this.removeTrack(o)})})}}function EFe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const o=new Event("addstream");o.stream=i,this.dispatchEvent(o)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(o=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(o)>=0)return;r._remoteStreams.push(o);const a=new Event("addstream");a.stream=o,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function CFe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],f=n.apply(this,[d]);return u?(f.then(c,u),Promise.resolve()):f},t.createAnswer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],f=r.apply(this,[d]);return u?(f.then(c,u),Promise.resolve()):f};let s=function(l,c,u){const d=i.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d};t.setLocalDescription=s,s=function(l,c,u){const d=o.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d},t.setRemoteDescription=s,s=function(l,c,u){const d=a.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d},t.addIceCandidate=s}function wFe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(xFe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,o){t.mediaDevices.getUserMedia(r).then(i,o)}).bind(t))}function xFe(e){return e&&e.video!==void 0?Object.assign({},e,{video:nFe(e.video)}):e}function TFe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const o=[];for(let a=0;a<r.iceServers.length;a++){let s=r.iceServers[a];s.urls===void 0&&s.url?(nJ("RTCIceServer.url","RTCIceServer.urls"),s=JSON.parse(JSON.stringify(s)),s.urls=s.url,delete s.url,o.push(s)):o.push(r.iceServers[a])}r.iceServers=o}return new t(r,i)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function RFe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function OFe(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const o=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function IFe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const Zve=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:IFe,shimCallbacksAPI:CFe,shimConstraints:xFe,shimCreateOfferLegacy:OFe,shimGetUserMedia:wFe,shimLocalStreamsAPI:SFe,shimRTCIceServerUrls:TFe,shimRemoteStreamsAPI:EFe,shimTrackEventTransceiver:RFe},Symbol.toStringTag,{value:"Module"}));var NFe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(`
|
||
`).map(r=>r.trim())},t.splitSections=function(n){return n.split(`
|
||
m=`).map((i,o)=>(o>0?"m="+i:i).trim()+`\r
|
||
`)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(i=>i.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const i={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let o=8;o<r.length;o+=2)switch(r[o]){case"raddr":i.relatedAddress=r[o+1];break;case"rport":i.relatedPort=parseInt(r[o+1],10);break;case"tcptype":i.tcpType=r[o+1];break;case"ufrag":i.ufrag=r[o+1],i.usernameFragment=r[o+1];break;default:i[r[o]]===void 0&&(i[r[o]]=r[o+1]);break}return i},t.writeCandidate=function(n){const r=[];r.push(n.foundation);const i=n.component;i==="rtp"?r.push(1):i==="rtcp"?r.push(2):r.push(i),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const o=n.type;return r.push("typ"),r.push(o),o!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},t.parseIceOptions=function(n){return n.substring(14).split(" ")},t.parseRtpMap=function(n){let r=n.substring(9).split(" ");const i={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),i.name=r[0],i.clockRate=parseInt(r[1],10),i.channels=r.length===3?parseInt(r[2],10):1,i.numChannels=i.channels,i},t.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const i=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(i!==1?"/"+i:"")+`\r
|
||
`},t.parseExtmap=function(n){const r=n.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r
|
||
`},t.parseFmtp=function(n){const r={};let i;const o=n.substring(n.indexOf(" ")+1).split(";");for(let a=0;a<o.length;a++)i=o[a].trim().split("="),r[i[0].trim()]=i[1];return r},t.writeFmtp=function(n){let r="",i=n.payloadType;if(n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const o=[];Object.keys(n.parameters).forEach(a=>{n.parameters[a]!==void 0?o.push(a+"="+n.parameters[a]):o.push(a)}),r+="a=fmtp:"+i+" "+o.join(";")+`\r
|
||
`}return r},t.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(n){let r="",i=n.payloadType;return n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(o=>{r+="a=rtcp-fb:"+i+" "+o.type+(o.parameter&&o.parameter.length?" "+o.parameter:"")+`\r
|
||
`}),r},t.parseSsrcMedia=function(n){const r=n.indexOf(" "),i={ssrc:parseInt(n.substring(7,r),10)},o=n.indexOf(":",r);return o>-1?(i.attribute=n.substring(r+1,o),i.value=n.substring(o+1)):i.attribute=n.substring(r+1),i},t.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(i=>parseInt(i,10))}},t.getMid=function(n){const r=t.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:t.matchPrefix(n+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(n,r){let i="a=setup:"+r+`\r
|
||
`;return n.fingerprints.forEach(o=>{i+="a=fingerprint:"+o.algorithm+" "+o.value+`\r
|
||
`}),i},t.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?t.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r
|
||
`},t.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},t.getCryptoParameters=function(n,r){return t.matchPrefix(n+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(n,r){const i=t.matchPrefix(n+r,"a=ice-ufrag:")[0],o=t.matchPrefix(n+r,"a=ice-pwd:")[0];return i&&o?{usernameFragment:i.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r
|
||
a=ice-pwd:`+n.password+`\r
|
||
`;return n.iceLite&&(r+=`a=ice-lite\r
|
||
`),r},t.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},o=t.splitLines(n)[0].split(" ");r.profile=o[2];for(let s=3;s<o.length;s++){const l=o[s],c=t.matchPrefix(n,"a=rtpmap:"+l+" ")[0];if(c){const u=t.parseRtpMap(c),d=t.matchPrefix(n,"a=fmtp:"+l+" ");switch(u.parameters=d.length?t.parseFmtp(d[0]):{},u.rtcpFeedback=t.matchPrefix(n,"a=rtcp-fb:"+l+" ").map(t.parseRtcpFb),r.codecs.push(u),u.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(u.name.toUpperCase());break}}}t.matchPrefix(n,"a=extmap:").forEach(s=>{r.headerExtensions.push(t.parseExtmap(s))});const a=t.matchPrefix(n,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(s=>{a.forEach(l=>{s.rtcpFeedback.find(u=>u.type===l.type&&u.parameter===l.parameter)||s.rtcpFeedback.push(l)})}),r},t.writeRtpDescription=function(n,r){let i="";i+="m="+n+" ",i+=r.codecs.length>0?"9":"0",i+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",i+=r.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r
|
||
`,i+=`c=IN IP4 0.0.0.0\r
|
||
`,i+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
||
`,r.codecs.forEach(a=>{i+=t.writeRtpMap(a),i+=t.writeFmtp(a),i+=t.writeRtcpFb(a)});let o=0;return r.codecs.forEach(a=>{a.maxptime>o&&(o=a.maxptime)}),o>0&&(i+="a=maxptime:"+o+`\r
|
||
`),r.headerExtensions&&r.headerExtensions.forEach(a=>{i+=t.writeExtmap(a)}),i},t.parseRtpEncodingParameters=function(n){const r=[],i=t.parseRtpParameters(n),o=i.fecMechanisms.indexOf("RED")!==-1,a=i.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(n,"a=ssrc:").map(f=>t.parseSsrcMedia(f)).filter(f=>f.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const u=t.matchPrefix(n,"a=ssrc-group:FID").map(f=>f.substring(17).split(" ").map(h=>parseInt(h,10)));u.length>0&&u[0].length>1&&u[0][0]===l&&(c=u[0][1]),i.codecs.forEach(f=>{if(f.name.toUpperCase()==="RTX"&&f.parameters.apt){let p={ssrc:l,codecPayloadType:parseInt(f.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),r.push(p),o&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(p))}}),r.length===0&&l&&r.push({ssrc:l});let d=t.matchPrefix(n,"b=");return d.length&&(d[0].indexOf("b=TIAS:")===0?d=parseInt(d[0].substring(7),10):d[0].indexOf("b=AS:")===0?d=parseInt(d[0].substring(5),10)*1e3*.95-50*40*8:d=void 0,r.forEach(f=>{f.maxBitrate=d})),r},t.parseRtcpParameters=function(n){const r={},i=t.matchPrefix(n,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="cname")[0];i&&(r.cname=i.value,r.ssrc=i.ssrc);const o=t.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=o.length>0,r.compound=o.length===0;const a=t.matchPrefix(n,"a=rtcp-mux");return r.mux=a.length>0,r},t.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r
|
||
`),n.mux&&(r+=`a=rtcp-mux\r
|
||
`),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r
|
||
`),r},t.parseMsid=function(n){let r;const i=t.matchPrefix(n,"a=msid:");if(i.length===1)return r=i[0].substring(7).split(" "),{stream:r[0],track:r[1]};const o=t.matchPrefix(n,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(o.length>0)return r=o[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(n){const r=t.parseMLine(n),i=t.matchPrefix(n,"a=max-message-size:");let o;i.length>0&&(o=parseInt(i[0].substring(19),10)),isNaN(o)&&(o=65536);const a=t.matchPrefix(n,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:r.fmt,maxMessageSize:o};const s=t.matchPrefix(n,"a=sctpmap:");if(s.length>0){const l=s[0].substring(10).split(" ");return{port:parseInt(l[0],10),protocol:l[1],maxMessageSize:o}}},t.writeSctpDescription=function(n,r){let i=[];return n.protocol!=="DTLS/SCTP"?i=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctp-port:"+r.port+`\r
|
||
`]:i=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
|
||
`],r.maxMessageSize!==void 0&&i.push("a=max-message-size:"+r.maxMessageSize+`\r
|
||
`),i.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(n,r,i){let o;const a=r!==void 0?r:2;return n?o=n:o=t.generateSessionId(),`v=0\r
|
||
o=`+(i||"thisisadapterortc")+" "+o+" "+a+` IN IP4 127.0.0.1\r
|
||
s=-\r
|
||
t=0 0\r
|
||
`},t.getDirection=function(n,r){const i=t.splitLines(n);for(let o=0;o<i.length;o++)switch(i[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return i[o].substring(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(n){return t.splitLines(n)[0].split(" ")[0].substring(2)},t.isRejected=function(n){return n.split(" ",2)[1]==="0"},t.parseMLine=function(n){const i=t.splitLines(n)[0].substring(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},t.parseOLine=function(n){const i=t.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},t.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=t.splitLines(n);for(let i=0;i<r.length;i++)if(r[i].length<2||r[i].charAt(1)!=="=")return!1;return!0},e.exports=t})(NFe);var MFe=NFe.exports;const Mb=yi(MFe),bSn=jP({__proto__:null,default:Mb},[MFe]);function zN(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const i=new t(r),o=Mb.parseCandidate(r.candidate);for(const a in o)a in i||Object.defineProperty(i,a,{value:o[a]});return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(r)},e.RTCIceCandidate.prototype=t.prototype,ny(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function iG(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||ny(e,"icecandidate",t=>{if(t.candidate){const n=Mb.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function VN(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=Mb.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=Mb.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},o=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=Mb.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=o(arguments[0],l);let d;c===0&&u===0?d=Number.POSITIVE_INFINITY:c===0||u===0?d=Math.max(c,u):d=Math.min(c,u);const f={};Object.defineProperty(f,"maxMessageSize",{get(){return d}}),this._sctp=f}return a.apply(this,arguments)}}function GN(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const o=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return o.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},ny(e,"datachannel",r=>(t(r.channel,r.target),r))}function oG(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const o=i.target;if(o._lastConnectionState!==o.connectionState){o._lastConnectionState=o.connectionState;const a=new Event("connectionstatechange",i);o.dispatchEvent(a)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function aG(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(`
|
||
a=extmap-allow-mixed`)!==-1){const o=i.sdp.split(`
|
||
`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(`
|
||
`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:o}):i.sdp=o}return n.apply(this,arguments)}}function WN(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function YN(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const SSn=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:aG,shimAddIceCandidateNullOrEmpty:WN,shimConnectionState:oG,shimMaxMessageSize:VN,shimParameterlessSetLocalDescription:YN,shimRTCIceCandidate:zN,shimRTCIceCandidateRelayProtocol:iG,shimSendThrowTypeError:GN},Symbol.toStringTag,{value:"Module"}));function ESn({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=tFe,r=_Sn(e),i={browserDetails:r,commonShim:SSn,extractVersion:HN,disableLog:gSn,disableWarnings:vSn,sdp:bSn};switch(r.browser){case"chrome":if(!Qve||!nG||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=Qve,WN(e,r),YN(e),rFe(e,r),iFe(e),nG(e,r),oFe(e),cFe(e,r),aFe(e),sFe(e),uFe(e,r),zN(e),iG(e),oG(e),VN(e,r),GN(e),aG(e,r);break;case"firefox":if(!Xve||!rG||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=Xve,WN(e,r),YN(e),dFe(e,r),rG(e,r),fFe(e),hFe(e),pFe(e),mFe(e),gFe(e),vFe(e),_Fe(e),yFe(e),bFe(e),zN(e),oG(e),VN(e,r),GN(e);break;case"safari":if(!Zve||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=Zve,WN(e,r),YN(e),TFe(e),OFe(e),CFe(e),SFe(e),EFe(e),RFe(e),wFe(e),IFe(e),zN(e),iG(e),VN(e,r),GN(e),aG(e,r);break;default:n("Unsupported browser!");break}return i}const Jve=ESn({window:typeof window>"u"?void 0:window});function ry(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class AFe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let o=0,a=0;for(;a<r;){const s=Math.min(r,a+this.chunkedMTU),l=t.slice(a,s),c={__peerData:this._dataCount,n:o,data:l,total:i};n.push(c),a=s,o++}return this._dataCount++,n}}}function CSn(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.byteLength;return n}const CU=Jve.default||Jve,eC=new class{isWebRTCSupported(){return typeof RTCPeerConnection<"u"}isBrowserSupported(){const e=this.getBrowser(),t=this.getVersion();return this.supportedBrowsers.includes(e)?e==="chrome"?t>=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return CU.browserDetails.browser}getVersion(){return CU.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=CU.browserDetails.version||0;if(e==="chrome"&&t<this.minChromeVersion)return!1;if(e==="firefox"&&t>=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports:
|
||
browser:${this.getBrowser()}
|
||
version:${this.getVersion()}
|
||
isIOS:${this.isIOS}
|
||
isWebRTCSupported:${this.isWebRTCSupported()}
|
||
isBrowserSupported:${this.isBrowserSupported()}
|
||
isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},wSn=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),PFe=()=>Math.random().toString(36).slice(2),e_e={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class xSn extends AFe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r)&255;return n.buffer}isSecure(){return location.protocol==="https:"}constructor(...t){super(...t),this.CLOUD_HOST="0.peerjs.com",this.CLOUD_PORT=443,this.chunkedBrowsers={Chrome:1,chrome:1},this.defaultConfig=e_e,this.browser=eC.getBrowser(),this.browserVersion=eC.getVersion(),this.pack=Z4e,this.unpack=X4e,this.supports=function(){const n={browser:eC.isBrowserSupported(),webRTC:eC.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!n.webRTC)return n;let r;try{r=new RTCPeerConnection(e_e),n.audioVideo=!0;let i;try{i=r.createDataChannel("_PEERJSTEST",{ordered:!0}),n.data=!0,n.reliable=!!i.ordered;try{i.binaryType="blob",n.binaryBlob=!eC.isIOS}catch{}}catch{}finally{i&&i.close()}}catch{}finally{r&&r.close()}return n}(),this.validateId=wSn,this.randomToken=PFe}}const il=new xSn,TSn="PeerJS: ";var t_e;(function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"})(t_e||(t_e={}));class RSn{get logLevel(){return this._logLevel}set logLevel(t){this._logLevel=t}log(...t){this._logLevel>=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[TSn,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var zn=new RSn,rJ={},OSn=Object.prototype.hasOwnProperty,js="~";function Yw(){}Object.create&&(Yw.prototype=Object.create(null),new Yw().__proto__||(js=!1));function ISn(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function DFe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var o=new ISn(n,r||e,i),a=js?js+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],o]:e._events[a].push(o):(e._events[a]=o,e._eventsCount++),e}function qN(e,t){--e._eventsCount===0?e._events=new Yw:delete e._events[t]}function Ss(){this._events=new Yw,this._eventsCount=0}Ss.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)OSn.call(n,r)&&t.push(js?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Ss.prototype.listeners=function(t){var n=js?js+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a};Ss.prototype.listenerCount=function(t){var n=js?js+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Ss.prototype.emit=function(t,n,r,i,o,a){var s=js?js+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,u,d;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,n),!0;case 3:return l.fn.call(l.context,n,r),!0;case 4:return l.fn.call(l.context,n,r,i),!0;case 5:return l.fn.call(l.context,n,r,i,o),!0;case 6:return l.fn.call(l.context,n,r,i,o,a),!0}for(d=1,u=new Array(c-1);d<c;d++)u[d-1]=arguments[d];l.fn.apply(l.context,u)}else{var f=l.length,p;for(d=0;d<f;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,n);break;case 3:l[d].fn.call(l[d].context,n,r);break;case 4:l[d].fn.call(l[d].context,n,r,i);break;default:if(!u)for(p=1,u=new Array(c-1);p<c;p++)u[p-1]=arguments[p];l[d].fn.apply(l[d].context,u)}}return!0};Ss.prototype.on=function(t,n,r){return DFe(this,t,n,r,!1)};Ss.prototype.once=function(t,n,r){return DFe(this,t,n,r,!0)};Ss.prototype.removeListener=function(t,n,r,i){var o=js?js+t:t;if(!this._events[o])return this;if(!n)return qN(this,o),this;var a=this._events[o];if(a.fn)a.fn===n&&(!i||a.once)&&(!r||a.context===r)&&qN(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==n||i&&!a[s].once||r&&a[s].context!==r)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:qN(this,o)}return this};Ss.prototype.removeAllListeners=function(t){var n;return t?(n=js?js+t:t,this._events[n]&&qN(this,n)):(this._events=new Yw,this._eventsCount=0),this};Ss.prototype.off=Ss.prototype.removeListener;Ss.prototype.addListener=Ss.prototype.on;Ss.prefixed=js;Ss.EventEmitter=Ss;rJ=Ss;var iy={};ry(iy,"ConnectionType",()=>ef);ry(iy,"PeerErrorType",()=>wo);ry(iy,"BaseConnectionErrorType",()=>qw);ry(iy,"DataConnectionErrorType",()=>Kw);ry(iy,"SerializationType",()=>z0);ry(iy,"SocketEventType",()=>Yd);ry(iy,"ServerMessageType",()=>Ia);var ef;(function(e){e.Data="data",e.Media="media"})(ef||(ef={}));var wo;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(wo||(wo={}));var qw;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(qw||(qw={}));var Kw;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(Kw||(Kw={}));var z0;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(z0||(z0={}));var Yd;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(Yd||(Yd={}));var Ia;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(Ia||(Ia={}));var iJ={};iJ=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class NSn extends rJ.EventEmitter{constructor(t,n,r,i,o,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+o}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+iJ.version),this._disconnected=!1,this._socket.onmessage=i=>{let o;try{o=JSON.parse(i.data),zn.log("Server message received:",o)}catch{zn.log("Invalid server message",i.data);return}this.emit(Yd.Message,o)},this._socket.onclose=i=>{this._disconnected||(zn.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(Yd.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),zn.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){zn.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:Ia.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(Yd.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class kFe{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===ef.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},o=n.createDataChannel(r.label,i);r._initializeDataChannel(o),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){zn.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,o=this.connection.provider;zn.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(zn.log(`Received ICE candidates for ${n}:`,a.candidate),o.socket.send({type:Ia.Candidate,payload:{candidate:a.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":zn.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(qw.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":zn.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(qw.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":zn.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},zn.log("Listening for data channel"),t.ondatachannel=a=>{zn.log("Received data channel");const s=a.channel;o.getConnection(n,r)._initializeDataChannel(s)},zn.log("Listening for remote stream"),t.ontrack=a=>{zn.log("Received remote stream");const s=a.streams[0],l=o.getConnection(n,r);if(l.type===ef.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){zn.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);zn.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),zn.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===ef.Data){const o=this.connection;i={...i,label:o.label,reliable:o.reliable,serialization:o.serialization}}n.socket.send({type:Ia.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(wo.WebRTC,i),zn.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(wo.WebRTC,r),zn.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();zn.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),zn.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:Ia.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(wo.WebRTC,i),zn.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(wo.WebRTC,r),zn.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;zn.log("Setting remote description",n);const o=this;try{await r.setRemoteDescription(n),zn.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await o._makeAnswer()}catch(a){i.emitError(wo.WebRTC,a),zn.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){zn.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),zn.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(wo.WebRTC,n),zn.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(zn.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return zn.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){zn.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class LFe extends rJ.EventEmitter{emitError(t,n){zn.error("Error:",n),this.emit("error",new MSn(`${t}`,n))}}class MSn extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class $Fe extends LFe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var pG;const m1=class m1 extends $Fe{get type(){return ef.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||m1.ID_PREFIX+il.randomToken(),this._negotiator=new kFe(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{zn.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{zn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){zn.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case Ia.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case Ia.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:zn.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){zn.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};pG=new WeakMap,$n(m1,pG,m1.ID_PREFIX="mc_");let BP=m1;class ASn{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:o,key:a}=this._options,s=new URL(`${n}://${r}:${i}${o}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",iJ.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){zn.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==il.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===il.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw zn.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var mG,hG;const Yg=class Yg extends $Fe{get type(){return ef.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||Yg.ID_PREFIX+PFe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new kFe(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{zn.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{zn.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{zn.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(Kw.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case Ia.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case Ia.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:zn.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};mG=new WeakMap,hG=new WeakMap,$n(Yg,mG,Yg.ID_PREFIX="dc_"),$n(Yg,hG,Yg.MAX_BUFFERED_AMOUNT=8388608);let UP=Yg;class oJ extends UP{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>UP.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return zn.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class wU extends oJ{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new AFe,this.serialization=z0.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=X4e(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=CSn(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=Z4e(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);zn.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class PSn extends oJ{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=z0.None}}class DSn extends oJ{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=il.chunkedMTU){this.emitError(Kw.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=z0.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var gG;const h1=class h1 extends LFe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:PSn,json:DSn,binary:wU,"binary-utf8":wU,default:wU},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:il.CLOUD_HOST,port:il.CLOUD_PORT,path:"/",key:h1.DEFAULT_KEY,token:il.randomToken(),config:il.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==il.CLOUD_HOST?this._options.secure=il.isSecure():this._options.host==il.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&zn.setLogFunction(this._options.logFunction),zn.logLevel=this._options.debug||0,this._api=new ASn(n),this._socket=this._createServerConnection(),!il.supports.audioVideo&&!il.supports.data){this._delayedAbort(wo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!il.validateId(r)){this._delayedAbort(wo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(wo.ServerError,i))}_createServerConnection(){const t=new NSn(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(Yd.Message,n=>{this._handleMessage(n)}),t.on(Yd.Error,n=>{this._abort(wo.SocketError,n)}),t.on(Yd.Disconnected,()=>{this.disconnected||(this.emitError(wo.Network,"Lost connection to server."),this.disconnect())}),t.on(Yd.Close,()=>{this.disconnected||this._abort(wo.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case Ia.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Ia.Error:this._abort(wo.ServerError,r.msg);break;case Ia.IdTaken:this._abort(wo.UnavailableID,`ID "${this.id}" is taken`);break;case Ia.InvalidKey:this._abort(wo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Ia.Leave:zn.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case Ia.Expire:this.emitError(wo.PeerUnavailable,`Could not connect to peer ${i}`);break;case Ia.Offer:{const o=r.connectionId;let a=this.getConnection(i,o);if(a&&(a.close(),zn.warn(`Offer received for existing Connection ID:${o}`)),r.type===ef.Media){const l=new BP(i,this,{connectionId:o,_payload:r,metadata:r.metadata});a=l,this._addConnection(i,a),this.emit("call",l)}else if(r.type===ef.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:o,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});a=l,this._addConnection(i,a),this.emit("connection",l)}else{zn.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(o);for(const l of s)a.handleMessage(l);break}default:{if(!r){zn.warn(`You received a malformed message from ${i} of type ${n}`);return}const o=r.connectionId,a=this.getConnection(i,o);a&&a.peerConnection?a.handleMessage(t):o?this._storeMessage(o,t):zn.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){zn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(wo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){zn.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(wo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){zn.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new BP(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){zn.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){zn.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(zn.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;zn.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)zn.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)zn.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(wo.ServerError,n))}};gG=new WeakMap,$n(h1,gG,h1.DEFAULT_KEY="peerjs");let sG=h1,kSn="127.0.0.1",LSn=9e3,$Sn="/";function FSn(){console.log("usePeer");const e=Yo(a=>a.userInfo);let t=null,n=null;const r=a=>{n=t.connect(a),n.on("open",()=>{console.log("Connected to peer with ID:",a),n.send("hi!")})},i=a=>{n?(console.log("sending message:",a),n.send(a)):console.error("no connection to send message")},o=a=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(a,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return m.useEffect(()=>{const a=new sG(e.uid,{host:kSn,port:LSn,path:$Sn});console.log("Starting self peer with ID:",e.uid),a.on("open",function(){console.log("self peer opened!")}),a.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),a.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:o}}const BSn=()=>{const e=mr(),[t,n]=m.useState("/chat"),r=uc(),{isLoggedIn:i,mode:o}=m.useContext(Da),{footerStyle:a}=Wh(),[s,l]=m.useState(!1),c=$u(p=>p.threads);m.useEffect(()=>{const p=c.some(h=>h.unreadCount>0);l(p)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:M.jsx(ZC,{}),component:M.jsx(eG,{})}],[d,f]=m.useState(u);return P2e(),A2e(),dSn(),FSn(),mQ(),m.useEffect(()=>{f(u)},[o]),m.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),M.jsxs(FAe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:d},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[M.jsx(t_t,{onClick:x0t},"QuestionCircleFilled")],menuHeaderRender:()=>M.jsx(M2e,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,h)=>M.jsx(M.Fragment,{children:M.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&M.jsxs(M.Fragment,{children:[p.path==="/anonymous/home"&&M.jsx(nl,{size:"small",dot:s,offset:[-5,5],children:h}),p.path!=="/anonymous/home"&&h]}),!s&&M.jsx(M.Fragment,{children:h})]})}),children:[M.jsx($L,{children:M.jsx(gk,{})}),M.jsx(FL,{style:a,children:M.jsx(N2e,{})}),M.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:USn,Content:jSn}=_i,HSn=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=Wh();return M.jsx(M.Fragment,{children:M.jsxs(_i,{children:[M.jsx(USn,{style:e,width:t}),M.jsxs(_i,{children:[M.jsx(OA,{style:n,children:"setting"}),M.jsx(jSn,{style:r,children:"setting"})]})]})})};function zSn({children:e}){const{isLoggedIn:t}=m.useContext(Da),n=vS();return t?e:M.jsx(hEt,{to:"/auth/login",replace:!0,state:{from:n}})}const n_e=[{path:"/",element:M.jsx(M.Fragment,{children:M.jsx(zSn,{children:M.jsx(z0n,{})})}),children:[{path:"/",element:M.jsx(Jz,{})},{path:"/formbuilder",element:M.jsx(Jz,{})},{path:"/flowbuilder",element:M.jsx(Yke,{})},{path:"/form-view/:formId",element:M.jsx(zQ,{})},{path:"/ticketbuilder",element:M.jsx(K4e,{})},{path:"/setting",element:M.jsx(T2e,{}),children:[{path:"/setting",element:M.jsx(Wve,{})},{path:"/setting/profile",element:M.jsx(Wve,{})},{path:"/setting/agentProfile",element:M.jsx(lSn,{})},{path:"/setting/memberProfile",element:M.jsx(eSn,{})},{path:"/setting/basic",element:M.jsx(K0n,{})},{path:"/setting/certification",element:M.jsx(aSn,{})},{path:"/setting/qrcode",element:M.jsx(Q0n,{})},{path:"/setting/shortcut",element:M.jsx(X0n,{})}]}]},{path:"/auth",element:M.jsx(V0n,{}),children:[{path:"/auth",element:M.jsx(Hz,{isModel:!1})},{path:"/auth/login",element:M.jsx(Hz,{isModel:!1})},{path:"/auth/register",element:M.jsx(MWt,{})},{path:"/auth/server",element:M.jsx(VPe,{})}]},{path:"/anonymous",element:M.jsx(BSn,{}),children:[{path:"/anonymous",element:M.jsx(eG,{})},{path:"/anonymous/home",element:M.jsx(eG,{})},{path:"/anonymous/setting",element:M.jsx(HSn,{})}]},{path:"*",element:M.jsx(Z0n,{})}];let lG;Aa?lG=CEt(n_e,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):lG=EEt(n_e,{basename:"/agenticflow",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const VSn=lG;var GSn=typeof Element<"u",WSn=typeof Map=="function",YSn=typeof Set=="function",qSn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function KN(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!KN(e[r],t[r]))return!1;return!0}var o;if(WSn&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!KN(r.value[1],t.get(r.value[0])))return!1;return!0}if(YSn&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(qSn&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(GSn&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!KN(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var KSn=function(t,n){try{return KN(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const QSn=yi(KSn);var XSn=function(e,t,n,r,i,o,a,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},ZSn=XSn;const r_e=yi(ZSn);var JSn=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var d=t[u],f=n[u];if(o=r?r.call(i,d,f,u):void 0,o===!1||o===void 0&&d!==f)return!1}return!0};const eEn=yi(JSn);var FFe=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(FFe||{}),xU={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},i_e=Object.values(FFe),aJ={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},tEn=Object.entries(aJ).reduce((e,[t,n])=>(e[n]=t,e),{}),ju="data-rh",Ab={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Pb=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},nEn=e=>{let t=Pb(e,"title");const n=Pb(e,Ab.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Pb(e,Ab.DEFAULT_TITLE);return t||r||void 0},rEn=e=>Pb(e,Ab.ON_CHANGE_CLIENT_STATE)||(()=>{}),TU=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),iEn=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const s=i[o].toLowerCase();if(e.indexOf(s)!==-1&&r[s])return n.concat(r)}}return n},[]),oEn=e=>console&&typeof console.warn=="function"&&console.warn(e),tC=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&oEn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const a={};o.filter(l=>{let c;const u=Object.keys(l);for(let f=0;f<u.length;f+=1){const p=u[f],h=p.toLowerCase();t.indexOf(h)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(h==="rel"&&l[h].toLowerCase()==="stylesheet")&&(c=h),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),a[c]||(a[c]={}),r[c][d]?!1:(a[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(a);for(let l=0;l<s.length;l+=1){const c=s[l],u={...r[c],...a[c]};r[c]=u}return i},[]).reverse()},aEn=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},sEn=e=>({baseTag:iEn(["href"],e),bodyAttributes:TU("bodyAttributes",e),defer:Pb(e,Ab.DEFER),encode:Pb(e,Ab.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:TU("htmlAttributes",e),linkTags:tC("link",["rel","href"],e),metaTags:tC("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:tC("noscript",["innerHTML"],e),onChangeClientState:rEn(e),scriptTags:tC("script",["src","innerHTML"],e),styleTags:tC("style",["cssText"],e),title:nEn(e),titleAttributes:TU("titleAttributes",e),prioritizeSeoTags:aEn(e,Ab.PRIORITIZE_SEO_TAGS)}),BFe=e=>Array.isArray(e)?e.join(""):e,lEn=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},RU=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(lEn(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},o_e=(e,t)=>({...e,[t]:void 0}),cEn=["noscript","script","style"],cG=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),UFe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),uEn=(e,t,n,r)=>{const i=UFe(n),o=BFe(t);return i?`<${e} ${ju}="true" ${i}>${cG(o,r)}</${e}>`:`<${e} ${ju}="true">${cG(o,r)}</${e}>`},dEn=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,a=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${cG(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=cEn.indexOf(e)===-1;return`${r}<${e} ${ju}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),jFe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=aJ[r];return n[i||r]=e[r],n},t),fEn=(e,t,n)=>{const r={key:t,[ju]:!0},i=jFe(n,r);return[de.createElement("title",i,t)]},QN=(e,t)=>t.map((n,r)=>{const i={key:r,[ju]:!0};return Object.keys(n).forEach(o=>{const s=aJ[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),de.createElement(e,i)}),Rc=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>fEn(e,t.title,t.titleAttributes),toString:()=>uEn(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>jFe(t),toString:()=>UFe(t)};default:return{toComponent:()=>QN(e,t),toString:()=>dEn(e,t,n)}}},pEn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=RU(e,xU.meta),o=RU(t,xU.link),a=RU(n,xU.script);return{priorityMethods:{toComponent:()=>[...QN("meta",i.priority),...QN("link",o.priority),...QN("script",a.priority)],toString:()=>`${Rc("meta",i.priority,r)} ${Rc("link",o.priority,r)} ${Rc("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},mEn=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=pEn(e)),{priority:p,base:Rc("base",t,r),bodyAttributes:Rc("bodyAttributes",n,r),htmlAttributes:Rc("htmlAttributes",i,r),link:Rc("link",u,r),meta:Rc("meta",d,r),noscript:Rc("noscript",o,r),script:Rc("script",f,r),style:Rc("style",a,r),title:Rc("title",{title:s,titleAttributes:l},r)}},uG=mEn,mI=[],HFe=!!(typeof window<"u"&&window.document&&window.document.createElement),dG=class{constructor(e,t){ni(this,"instances",[]);ni(this,"canUseDOM",HFe);ni(this,"context");ni(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?mI:this.instances,add:e=>{(this.canUseDOM?mI:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?mI:this.instances).indexOf(e);(this.canUseDOM?mI:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=uG({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},hEn={},zFe=de.createContext(hEn),hv,VFe=(hv=class extends m.Component{constructor(n){super(n);ni(this,"helmetData");this.helmetData=new dG(this.props.context||{},hv.canUseDOM)}render(){return de.createElement(zFe.Provider,{value:this.helmetData.value},this.props.children)}},ni(hv,"canUseDOM",HFe),hv),Ly=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ju}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,d=typeof s[u]>"u"?"":s[u];l.setAttribute(c,d)}l.setAttribute(ju,"true"),i.some((c,u)=>(a=u,l.isEqualNode(c)))?i.splice(a,1):o.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),o.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:o}},fG=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ju),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=o.indexOf(s);c!==-1&&o.splice(c,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(ju):n.getAttribute(ju)!==a.join(",")&&n.setAttribute(ju,a.join(","))},gEn=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=BFe(e)),fG("title",t)},a_e=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;fG("body",r),fG("html",i),gEn(d,f);const p={baseTag:Ly("base",n),linkTags:Ly("link",o),metaTags:Ly("meta",a),noscriptTags:Ly("noscript",s),scriptTags:Ly("script",c),styleTags:Ly("style",u)},h={},g={};Object.keys(p).forEach(v=>{const{newTags:y,oldTags:_}=p[v];y.length&&(h[v]=y),_.length&&(g[v]=p[v].oldTags)}),t&&t(),l(e,h,g)},nC=null,vEn=e=>{nC&&cancelAnimationFrame(nC),e.defer?nC=requestAnimationFrame(()=>{a_e(e,()=>{nC=null})}):(a_e(e),nC=null)},_En=vEn,s_e=class extends m.Component{constructor(){super(...arguments);ni(this,"rendered",!1)}shouldComponentUpdate(t){return!eEn(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=sEn(t.get().map(o=>{const a={...o.props};return delete a.context,a}));VFe.canUseDOM?_En(i):uG&&(r=uG(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},OU,yEn=(OU=class extends m.Component{shouldComponentUpdate(e){return!QSn(o_e(this.props,"helmetData"),o_e(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return r_e(i_e.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${i_e.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),r_e(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return de.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[tEn[c]||c]=o[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof dG)){const i=r;r=new dG(i.context,!0),delete n.helmetData}return r?de.createElement(s_e,{...n,context:r.value}):de.createElement(zFe.Consumer,null,i=>de.createElement(s_e,{...n,context:i}))}},ni(OU,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),OU);const bEn={i18_file_assistant:"文件助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线"},SEn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.settings":"设置","menu.settings.logout":"登出","menu.agent.status":"客服状态","menu.agent.status.available":"在线","menu.agent.status.rest":"小休","menu.agent.status.offline":"离线","menu.language":"语言","menu.mode":"模式","menu.mode.team":"团队模式","menu.mode.personal":"个人模式","menu.mode.agent":"客服模式","menu.agent.offline.warning":"请在离线前结束所有正在進行中的会话","menu.mode.personal.coming":"即将推出...","menu.dashboard.form":"表单","menu.dashboard.formbuilder":"表单构建器","menu.dashboard.flow":"流程","menu.dashboard.flowbuilder":"流程构建器","menu.dashboard.ticket":"工单","menu.dashboard.ticketbuilder":"工单构建器"},EEn={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},CEn={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策"},wEn={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},xEn={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误"},TEn={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.yes":"是","common.no":"否","common.ok":"确定","common.create":"创建","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过"},REn={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功"},OEn={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},IEn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name":"工单流程","i18n.thread.process.name":"会话流程"},NEn={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"快捷回复","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},MEn={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},AEn={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},PEn={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开","thread.status.network.online":"网络已连接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},DEn={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"处理中","ticket.status.pending":"待处理","ticket.status.on_hold":"挂起","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_on_hold":"挂起","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单","ticket.palette.startEvent":"开始事件","ticket.palette.task":"任务","ticket.palette.gateway":"网关","ticket.palette.dataObject":"数据对象","ticket.create.error":"创建流程图失败","ticket.save.success":"流程图保存成功","ticket.autosave.success":"自动保存成功","ticket.autosave.error":"自动保存失败","ticket.select.process":"选择流程","ticket.properties.title":"属性","ticket.properties.noSelection":"未选择元素","ticket.properties.id":"ID","ticket.properties.name":"名称","ticket.properties.type":"类型","ticket.properties.documentation":"文档","ticket.properties.assignee":"处理人","ticket.properties.priority":"优先级","ticket.fetch.processes.error":"加载流程失败","ticket.no.process":"没有流程,请先创建一个流程","ticket.fetch.processes.empty":"没有流程,请先创建一个流程","ticket.create.loading":"创建流程...","ticket.fetch.processes.loading":"加载流程...","ticket.delete":"删除","ticket.save.error":"保存流程失败","ticket.deploy":"部署","ticket.undeploy":"取消部署","ticket.deploy.loading":"部署流程...","ticket.undeploy.loading":"取消部署流程...","ticket.deploy.success":"流程部署成功","ticket.undeploy.success":"流程取消部署成功","ticket.deploy.error":"部署流程失败","ticket.undeploy.error":"取消部署流程失败","ticket.undeploy.confirm.title":"取消部署确认","ticket.undeploy.confirm.content":"确定要取消部署此流程吗?"},kEn={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},LEn={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},$En={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人"},FEn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},BEn={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消","upload.maxCount":"最多只能上传 {maxCount} 个文件","upload.maxSize":"文件大小不能超过 {maxSize}MB"},UEn={"flow.title":"流程构建器","flow.new":"新流程","flow.copy":"复制","flow.run":"运行","flow.start":"开始","flow.logic":"逻辑","flow.action":"动作","flow.json":"流程JSON","flow.import":"导入","flow.export":"导出","flow.startChat":"模拟对话","flow.closeChat":"关闭对话","flow.container":"容器组件","flow.form":"表单组件","flow.parentNode":"父节点","flow.textField":"文本框","flow.numberField":"数字框","flow.datePicker":"日期选择","flow.select":"下拉选择","flow.checkbox":"多选框组","flow.radio":"单选按钮","flow.properties":"属性设置","flow.nodeName":"节点名称","flow.nodeDesc":"节点描述","flow.componentType":"组件类型","flow.labelName":"标签名称","flow.options":"选项","flow.preview":"预览","flow.submit":"提交","app.language":"语言","leftPanel.container":"容器组件","leftPanel.form":"表单组件","leftPanel.parentNode":"父节点","leftPanel.textField":"文本框","leftPanel.numberField":"数字框","leftPanel.datePicker":"日期选择","leftPanel.select":"下拉选择","leftPanel.checkbox":"多选框组","leftPanel.radio":"单选按钮","propertyPanel.settings":"属性设置","propertyPanel.nodeId":"节点ID","propertyPanel.nodeType":"节点类型","propertyPanel.nodeName":"节点名称","propertyPanel.nodeDesc":"节点描述","propertyPanel.componentType":"组件类型","propertyPanel.labelName":"标签名称","propertyPanel.options":"选项","propertyPanel.placeholder.name":"请输入节点名称","propertyPanel.placeholder.desc":"请输入节点描述","propertyPanel.placeholder.label":"请输入标签名称","propertyPanel.placeholder.options":"按回车添加选项","nodes.textField.label":"文本框","nodes.numberField.label":"数字框","nodes.datePicker.label":"日期","nodes.select.label":"下拉选择","nodes.checkbox.label":"多选框组","nodes.radio.label":"单选按钮","nodes.unknown":"未知组件","formBuilder.title":"表单构建器","formBuilder.preview":"预览","formBuilder.settings":"设置","formBuilder.addField":"添加字段","formBuilder.delete":"删除","formBuilder.moveUp":"上移","formBuilder.moveDown":"下移","formBuilder.fieldTypes":{text:"文本框",number:"数字框",date:"日期选择",select:"下拉选择",radio:"单选按钮",checkbox:"复选框",textarea:"多行文本"},"formBuilder.placeholder":{formName:"请输入表单名称",fieldName:"请输入字段名称",fieldLabel:"请输入字段标签",options:"按回车添加选项"},"formBuilder.validation":{required:"必填",optional:"选填",unique:"唯一",min:"最小值",max:"最大值"},"formBuilder.import":"导入","formBuilder.export":"导出","formBuilder.import.success":"导入成功","formBuilder.import.error":"导入失败,请检查文件格式","formBuilder.export.success":"导出成功","formBuilder.export.error":"导出失败","formBuilder.export.filename":"表单配置.json","formBuilder.dragStart":"开始拖拽组件","formBuilder.dragEnd":"结束拖拽组件","formBuilder.dropSuccess":"组件添加成功","formBuilder.dropError":"组件添加失败","formBuilder.canvas.empty":"拖拽表单字段到这里","formBuilder.field.delete":"删除","formBuilder.field.moveUp":"上移","formBuilder.field.moveDown":"下移","formBuilder.field.placeholder":{text:"请输入文本",number:"请输入数字",date:"请选择日期",select:"请选择一个选项",radio:"请选择一项",checkbox:"请选择"},"flow.moveUp":"上移","flow.moveDown":"下移","flow.delete":"删除","flow.option.1":"选项1","flow.option.2":"选项2","flow.option.3":"选项3","flow.controls.title":"流程控制","flow.minimap.title":"流程概览","flow.canvas.label":"流程构建画布","flow.background.label":"流程背景","flow.controls.label":"流程控制","flow.minimap.label":"流程概览","flow.container.label":"流程构建器容器","flow.dragover.hint":"放置此处添加组件","flow.drop.hint":"组件已添加","flow.parentNode.default":"父节点","component.panel.title":"表单组件","component.input.title":"单行文本","component.textarea.title":"多行文本","component.select.title":"下拉选择","component.radio.title":"单选框组","component.checkbox.title":"多选框组","component.datePicker.title":"日期选择","component.timePicker.title":"时间选择","component.switch.title":"开关","component.upload.title":"上传","propertyPanel.save":"保存","propertyPanel.reset":"重置","theme.light":"浅色","theme.dark":"深色","theme.system":"跟随系统","dashboard.settings":"设置","flow.startNode":"开始节点","form.submit":"提交","form.submitting":"提交中...","form.submitSuccess":"提交成功","form.submitError":"提交失败","form.required":"必填项","preview.title":"表单预览","preview.minimize":"最小化","preview.close":"关闭","preview.submit":"提交","preview.submitting":"提交中...","preview.submitSuccess":"提交成功","preview.submitError":"提交失败","preview.required":"必填","preview.placeholder.text":"请输入文本","preview.placeholder.number":"请输入数字","preview.placeholder.date":"请选择日期","preview.placeholder.select":"请选择","preview.placeholder.radio":"请选择一项","preview.placeholder.checkbox":"请选择","formBuilder.header.title":"表单构建器","formBuilder.header.import":"导入","formBuilder.header.export":"导出","formBuilder.header.preview":"预览","ticket.title":"工单流程构建器","ticket.create":"创建流程","ticket.save":"保存流程","ticket.import":"导入","ticket.export":"导出","ticket.import.success":"导入成功","ticket.import.error":"导入失败","ticket.export.success":"导出成功","ticket.export.error":"导出失败","ticket.create.modal.title":"创建新流程","ticket.create.name":"流程名称","ticket.create.key":"流程Key","ticket.create.type":"流程类型","ticket.create.description":"流程描述","ticket.create.submit":"创建","ticket.create.cancel":"取消","ticket.type.default":"默认流程","ticket.type.approval":"审批流程","ticket.type.service":"服务流程","ticket.type.ticket":"工单流程"},jEn={"welcome.modal.title":"未发现所在组织","welcome.modal.description":"您需要创建或加入已有组织","welcome.modal.join":"加入已有组织(即将上线)","welcome.modal.create":"创建组织","welcome.modal.input.placeholder":"请输入组织名称","welcome.message.org.required":"请创建或加入组织","welcome.message.create.success":"创建组织成功","welcome.message.create.failed":"创建组织失败","welcome.message.verify.email":"请先验证邮箱","welcome.message.verify.mobile":"请先验证手机号","welcome.message.org.name.required":"请输入组织名称","welcome.message.org.creating":"创建组织中,请稍后...","welcome.verify.modal.title":"账号验证提示","welcome.verify.modal.description":"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。","welcome.verify.now":"立即验证","welcome.verify.later":"稍后验证"},HEn={...CEn,...wEn,...xEn,...TEn,...REn,...OEn,...IEn,...SEn,...NEn,...EEn,...MEn,...AEn,...PEn,...DEn,...bEn,...kEn,...LEn,...$En,...FEn,...BEn,...UEn,...jEn},zEn={i18_file_assistant:"檔案助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线"},VEn={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出...","menu.dashboard.form":"表單","menu.dashboard.formbuilder":"表單構建器","menu.dashboard.flow":"流程","menu.dashboard.flowbuilder":"流程構建器","menu.dashboard.ticket":"工單","menu.dashboard.ticketbuilder":"工單構建器"},GEn={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},WEn={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策"},YEn={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},qEn={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"AI助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤"},KEn={"common.yes":"是","common.no":"否","common.ok":"確定","common.cancel":"取消","common.confirm":"確認","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.create":"創建","common.loading":"加載中...","common.success":"成功","common.error":"錯誤","common.warning":"警告","common.info":"信息","common.back":"返回","common.submit":"提交","common.reset":"重置","common.add":"添加","common.search":"搜索","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.failed":"操作失敗","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過"},QEn={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功"},XEn={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},ZEn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html","i18n.ticket.process.name":"工单流程","i18n.thread.process.name":"會話流程"},JEn={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},eCn={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},tCn={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},nCn={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},rCn={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"處理中","ticket.status.pending":"待處理","ticket.status.on_hold":"掛起","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_on_hold":"掛起","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單","ticket.palette.startEvent":"開始事件","ticket.palette.task":"任務","ticket.palette.gateway":"網關","ticket.palette.dataObject":"數據對象","ticket.create.error":"創建流程圖失敗","ticket.save.success":"流程圖保存成功","ticket.autosave.success":"自動保存成功","ticket.autosave.error":"自動保存失敗","ticket.select.process":"選擇流程","ticket.properties.title":"屬性","ticket.properties.noSelection":"未選擇元素","ticket.properties.id":"ID","ticket.properties.name":"名稱","ticket.properties.type":"類型","ticket.properties.documentation":"文檔","ticket.properties.assignee":"處理人","ticket.properties.priority":"優先級","ticket.fetch.processes.error":"加載流程失敗","ticket.no.process":"沒有流程,請先創建一個流程","ticket.fetch.processes.empty":"沒有流程,請先創建一個流程","ticket.create.loading":"創建流程...","ticket.fetch.processes.loading":"加載流程...","ticket.delete":"刪除","ticket.save.error":"保存流程失敗","ticket.deploy":"部署","ticket.undeploy":"取消部署","ticket.deploy.loading":"部署流程...","ticket.undeploy.loading":"取消部署流程...","ticket.deploy.success":"流程部署成功","ticket.undeploy.success":"流程取消部署成功","ticket.deploy.error":"部署流程失敗","ticket.undeploy.error":"取消部署流程失敗","ticket.undeploy.confirm.title":"取消部署確認","ticket.undeploy.confirm.content":"確定要取消部署此流程嗎?"},iCn={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},oCn={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},aCn={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除"},sCn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},lCn={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消","upload.maxCount":"最多只能上傳 {maxCount} 個文件","upload.maxSize":"文件大小不能超過 {maxSize}MB"},cCn={"flow.title":"流程構建器","flow.new":"新流程","flow.copy":"複製","flow.run":"運行","flow.start":"開始","flow.logic":"邏輯","flow.action":"動作","flow.import":"導入","flow.export":"導出","flow.startChat":"模擬對話","flow.closeChat":"關閉對話","flow.json":"流程JSON","flow.container":"容器組件","flow.form":"表單組件","flow.parentNode":"父節點","flow.textField":"文本框","flow.numberField":"數字框","flow.datePicker":"日期選擇","flow.select":"下拉選擇","flow.checkbox":"多選框組","flow.radio":"單選按鈕","flow.properties":"屬性設置","flow.nodeName":"節點名稱","flow.nodeDesc":"節點描述","flow.componentType":"組件類型","flow.labelName":"標籤名稱","flow.options":"選項","flow.preview":"預覽","flow.submit":"提交","app.language":"語言","leftPanel.container":"容器組件","leftPanel.form":"表單組件","leftPanel.parentNode":"父節點","leftPanel.textField":"文本框","leftPanel.numberField":"數字框","leftPanel.datePicker":"日期選擇","leftPanel.select":"下拉選擇","leftPanel.checkbox":"多選框組","leftPanel.radio":"單選按鈕","propertyPanel.settings":"屬性設置","propertyPanel.nodeId":"節點ID","propertyPanel.nodeType":"節點類型","propertyPanel.nodeName":"節點名稱","propertyPanel.nodeDesc":"節點描述","propertyPanel.componentType":"組件類型","propertyPanel.labelName":"標籤名稱","propertyPanel.options":"選項","propertyPanel.placeholder.name":"請輸入節點名稱","propertyPanel.placeholder.desc":"請輸入節點描述","propertyPanel.placeholder.label":"請輸入標籤名稱","propertyPanel.placeholder.options":"按回車添加選項","nodes.textField.label":"文本框","nodes.numberField.label":"數字框","nodes.datePicker.label":"日期","nodes.select.label":"下拉選擇","nodes.checkbox.label":"多選框組","nodes.radio.label":"單選按鈕","nodes.unknown":"未知組件","formBuilder.title":"表單構建器","formBuilder.preview":"預覽","formBuilder.settings":"設置","formBuilder.addField":"添加欄位","formBuilder.delete":"刪除","formBuilder.moveUp":"上移","formBuilder.moveDown":"下移","formBuilder.fieldTypes":{text:"文本框",number:"數字框",date:"日期選擇",select:"下拉選擇",radio:"單選按鈕",checkbox:"複選框",textarea:"多行文本"},"formBuilder.placeholder":{formName:"請輸入表單名稱",fieldName:"請輸入欄位名稱",fieldLabel:"請輸入欄位標籤",options:"按回車添加選項"},"formBuilder.validation":{required:"必填",optional:"選填",unique:"唯一",min:"最小值",max:"最大值"},"formBuilder.import":"導入","formBuilder.export":"導出","formBuilder.import.success":"導入成功","formBuilder.import.error":"導入失敗,請檢查文件格式","formBuilder.export.success":"導出成功","formBuilder.export.error":"導出失敗","formBuilder.export.filename":"表單配置.json","formBuilder.canvas.empty":"拖拽表單欄位到這裡","formBuilder.field.delete":"刪除","formBuilder.field.moveUp":"上移","formBuilder.field.moveDown":"下移","formBuilder.field.placeholder":{text:"請輸入文本",number:"請輸入數字",date:"請選擇日期",select:"請選擇一個選項",radio:"請選擇一項",checkbox:"請選擇"},"flow.moveUp":"上移","flow.moveDown":"下移","flow.delete":"刪除","flow.option.1":"選項1","flow.option.2":"選項2","flow.option.3":"選項3","flow.controls.title":"流程控制","flow.minimap.title":"流程概覽","flow.canvas.label":"流程構建畫布","flow.background.label":"流程背景","flow.controls.label":"流程控制","flow.minimap.label":"流程概覽","flow.container.label":"流程構建器容器","flow.dragover.hint":"放置此處添加組件","flow.drop.hint":"組件已添加","flow.parentNode.default":"父節點","component.panel.title":"表單組件","component.input.title":"單行文本","component.textarea.title":"多行文本","component.select.title":"下拉選擇","component.radio.title":"單選框組","component.checkbox.title":"多選框組","component.datePicker.title":"日期選擇","component.timePicker.title":"時間選擇","component.switch.title":"開關","component.upload.title":"上傳","propertyPanel.save":"保存","propertyPanel.reset":"重置","theme.light":"淺色","theme.dark":"深色","theme.system":"跟隨系統","dashboard.settings":"設置","flow.startNode":"開始節點","form.submit":"提交","form.submitting":"提交中...","form.submitSuccess":"提交成功","form.submitError":"提交失敗","form.required":"必填項","preview.title":"表單預覽","preview.minimize":"最小化","preview.close":"關閉","preview.submit":"提交","preview.submitting":"提交中...","preview.submitSuccess":"提交成功","preview.submitError":"提交失敗","preview.required":"必填","preview.placeholder.text":"請輸入文本","preview.placeholder.number":"請輸入數字","preview.placeholder.date":"請選擇日期","preview.placeholder.select":"請選擇","preview.placeholder.radio":"請選擇一項","preview.placeholder.checkbox":"請選擇","formBuilder.header.title":"表單構建器","formBuilder.header.import":"導入","formBuilder.header.export":"導出","formBuilder.header.preview":"預覽","formBuilder.dragStart":"開始拖拽組件","formBuilder.dragEnd":"結束拖拽組件","formBuilder.dropSuccess":"組件添加成功","formBuilder.dropError":"組件添加失敗","ticket.title":"工單構建器","ticket.create":"創建工單","ticket.save":"保存工單","ticket.import":"導入","ticket.export":"導出","ticket.import.success":"導入成功","ticket.import.error":"導入失敗","ticket.export.success":"導出成功","ticket.export.error":"導出失敗","ticket.create.modal.title":"創建新流程","ticket.create.name":"流程名稱","ticket.create.key":"流程Key","ticket.create.type":"流程類型","ticket.create.description":"流程描述","ticket.create.submit":"創建","ticket.create.cancel":"取消","ticket.type.default":"默認流程","ticket.type.approval":"審批流程","ticket.type.service":"服務流程","ticket.type.ticket":"工單流程"},uCn={"welcome.modal.title":"未發現所在組織","welcome.modal.description":"您需要創建或加入已有組織","welcome.modal.join":"加入已有組織(即將上線)","welcome.modal.create":"創建組織","welcome.modal.input.placeholder":"請輸入組織名稱","welcome.message.org.required":"請創建或加入組織","welcome.message.create.success":"創建組織成功","welcome.message.create.failed":"創建組織失敗","welcome.message.verify.email":"請先驗證郵箱","welcome.message.verify.mobile":"請先驗證手機號","welcome.message.org.name.required":"請輸入組織名稱","welcome.message.org.creating":"創建組織中,請稍後...","welcome.verify.modal.title":"賬號驗證提示","welcome.verify.modal.description":"您的郵箱和手機號尚未驗證,為保障賬號安全,建議您儘快完成驗證。","welcome.verify.now":"立即驗證","welcome.verify.later":"稍後驗證"},dCn={...WEn,...YEn,...qEn,...KEn,...QEn,...XEn,...ZEn,...VEn,...JEn,...GEn,...eCn,...tCn,...nCn,...rCn,...zEn,...iCn,...oCn,...aCn,...sCn,...lCn,...cCn,...uCn},fCn={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0"},pCn={"common.yes":"Yes","common.no":"No","common.ok":"OK","common.cancel":"Cancel","common.confirm":"Confirm","common.save":"Save","common.delete":"Delete","common.edit":"Edit","common.create":"Create","common.loading":"Loading...","common.success":"Success","common.error":"Error","common.warning":"Warning","common.info":"Info","common.back":"Back","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System"},mCn={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error"},hCn={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},gCn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge Base","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.form":"Form","menu.dashboard.formbuilder":"Form Builder","menu.dashboard.flow":"Flow","menu.dashboard.flowbuilder":"Flow Builder","menu.dashboard.ticket":"Ticket","menu.dashboard.ticketbuilder":"Ticket Builder"},vCn={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},_Cn={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},yCn={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"New","ticket.filter.status_assigned":"Assigned","ticket.filter.status_in_progress":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_on_hold":"On Hold","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found","ticket.palette.startEvent":"Start Event","ticket.palette.task":"Task","ticket.palette.gateway":"Gateway","ticket.palette.dataObject":"Data Object","ticket.select.process":"Select Process","ticket.import.no.file":"No file selected","ticket.import.read.error":"Failed to read file","ticket.import.error":"Failed to import diagram: {error}","ticket.save.success":"BPMN saved successfully","ticket.autosave.success":"Auto-saved successfully","ticket.autosave.error":"Failed to auto-save","ticket.properties.title":"Properties","ticket.properties.noSelection":"No element selected","ticket.properties.id":"ID","ticket.properties.name":"Name","ticket.properties.type":"Type","ticket.properties.documentation":"Documentation","ticket.properties.assignee":"Assignee","ticket.properties.priority":"Priority","ticket.fetch.processes.error":"Failed to fetch processes","ticket.no.process":"No processes found, please create a process first","ticket.save.error":"Failed to save process","ticket.create.loading":"Creating process...","ticket.fetch.processes.loading":"Loading processes...","ticket.fetch.processes.empty":"No processes found","ticket.fetch.processes.success":"Processes fetched successfully","ticket.delete":"Delete","ticket.deploy":"Deploy","ticket.undeploy":"Undeploy","ticket.deploy.loading":"Deploying process...","ticket.undeploy.loading":"Undeploying process...","ticket.deploy.success":"Process deployed successfully","ticket.undeploy.success":"Process undeployed successfully","ticket.deploy.error":"Failed to deploy process","ticket.undeploy.error":"Failed to undeploy process","ticket.undeploy.confirm.title":"Confirm Undeploy","ticket.undeploy.confirm.content":"Are you sure you want to undeploy this process?"},bCn={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Ticket","menu.dashboard.leavemsg":"Leave Msg","menu.dashboard.visitor":"Visitor","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.mine":"Mine","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available"},SCn={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},ECn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com","i18n.ticket.process.name":"Ticket Process","i18n.thread.process.name":"Thread Process"},CCn={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},wCn={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},xCn={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},TCn={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.reason.placeholder":"Enter reason for blocking","black.success":"Block successfully"},RCn={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},OCn={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},ICn={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},NCn={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},MCn={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel","upload.maxCount":"Cannot upload more than {maxCount} files","upload.maxSize":"File size cannot exceed {maxSize}MB"},ACn={"flow.title":"Flow Builder","flow.new":"New Flow","flow.copy":"Copy","flow.run":"Run","flow.start":"Start","flow.logic":"Logic","flow.json":"Flow JSON","flow.action":"Action","flow.import":"Import","flow.export":"Export","flow.startChat":"Start Chat","flow.closeChat":"Close Chat","flow.container":"Container Components","flow.form":"Form Components","flow.parentNode":"Parent Node","flow.textField":"Text Field","flow.numberField":"Number Field","flow.datePicker":"Date Picker","flow.select":"Select","flow.checkbox":"Checkbox Group","flow.radio":"Radio Group","flow.properties":"Properties","flow.nodeName":"Node Name","flow.nodeDesc":"Node Description","flow.componentType":"Component Type","flow.labelName":"Label Name","flow.options":"Options","flow.preview":"Preview","flow.submit":"Submit","app.language":"Language","leftPanel.container":"Container Components","leftPanel.form":"Form Components","leftPanel.parentNode":"Parent Node","leftPanel.textField":"Text Field","leftPanel.numberField":"Number Field","leftPanel.datePicker":"Date Picker","leftPanel.select":"Select","leftPanel.checkbox":"Checkbox Group","leftPanel.radio":"Radio Group","propertyPanel.settings":"Properties","propertyPanel.nodeId":"Node ID","propertyPanel.nodeType":"Node Type","propertyPanel.nodeName":"Node Name","propertyPanel.nodeDesc":"Node Description","propertyPanel.componentType":"Component Type","propertyPanel.labelName":"Label Name","propertyPanel.options":"Options","propertyPanel.placeholder.name":"Please input node name","propertyPanel.placeholder.desc":"Please input node description","propertyPanel.placeholder.label":"Please input label name","propertyPanel.placeholder.options":"Press enter to add option","nodes.textField.label":"Text Field","nodes.numberField.label":"Number Field","nodes.datePicker.label":"Date","nodes.select.label":"Select","nodes.checkbox.label":"Checkbox Group","nodes.radio.label":"Radio Group","nodes.unknown":"Unknown Component","formBuilder.title":"Form Builder","formBuilder.preview":"Preview","formBuilder.settings":"Settings","formBuilder.addField":"Add Field","formBuilder.delete":"Delete","formBuilder.moveUp":"Move Up","formBuilder.moveDown":"Move Down","formBuilder.fieldTypes":{text:"Text Field",number:"Number Field",date:"Date Picker",select:"Select",radio:"Radio",checkbox:"Checkbox",textarea:"Text Area"},"formBuilder.placeholder":{formName:"Please input form name",fieldName:"Please input field name",fieldLabel:"Please input field label",options:"Press enter to add option"},"formBuilder.validation":{required:"Required",optional:"Optional",unique:"Unique",min:"Min",max:"Max"},"formBuilder.import":"Import","formBuilder.export":"Export","formBuilder.import.success":"Import successful","formBuilder.import.error":"Import failed, please check file format","formBuilder.export.success":"Export successful","formBuilder.export.error":"Export failed","formBuilder.export.filename":"form-config.json","formBuilder.dragStart":"Start dragging component","formBuilder.dragEnd":"End dragging component","formBuilder.dropSuccess":"Component added successfully","formBuilder.dropError":"Failed to add component","formBuilder.canvas.empty":"Drag and drop form fields here","formBuilder.field":{delete:"Delete",moveUp:"Move Up",moveDown:"Move Down",placeholder:{text:"Please input text",number:"Please input number",date:"Please select date",select:"Please select an option",radio:"Please select one",checkbox:"Please select"}},"flow.moveUp":"Move Up","flow.moveDown":"Move Down","flow.delete":"Delete","flow.option.1":"Option 1","flow.option.2":"Option 2","flow.option.3":"Option 3","flow.controls.title":"Flow Controls","flow.minimap.title":"Flow Overview","flow.canvas.label":"Flow Builder Canvas","flow.background.label":"Flow Background","flow.controls.label":"Flow Controls","flow.minimap.label":"Flow Overview","flow.container.label":"Flow Builder Container","flow.dragover.hint":"Drop here to add component","flow.drop.hint":"Component added","flow.parentNode.default":"Parent Node","component.panel.title":"Form Components","component.input.title":"Text Input","component.textarea.title":"Text Area","component.select.title":"Select","component.radio.title":"Radio Group","component.checkbox.title":"Checkbox Group","component.datePicker.title":"Date Picker","component.timePicker.title":"Time Picker","component.switch.title":"Switch","component.upload.title":"Upload","propertyPanel.save":"Save","propertyPanel.reset":"Reset","theme.light":"Light","theme.dark":"Dark","theme.system":"System","dashboard.settings":"Settings","flow.startNode":"Start Node","form.submit":"Submit","form.submitting":"Submitting...","form.submitSuccess":"Submit Success","form.submitError":"Submit Failed","form.required":"Required","preview.title":"Form Preview","preview.minimize":"Minimize","preview.close":"Close","preview.submit":"Submit","preview.submitting":"Submitting...","preview.submitSuccess":"Submit Success","preview.submitError":"Submit Failed","preview.required":"Required","preview.placeholder.text":"Please input text","preview.placeholder.number":"Please input number","preview.placeholder.date":"Please select date","preview.placeholder.select":"Please select","preview.placeholder.radio":"Please select one","preview.placeholder.checkbox":"Please select","formBuilder.header.title":"Form Builder","formBuilder.header.import":"Import","formBuilder.header.export":"Export","formBuilder.header.preview":"Preview","ticket.title":"Ticket Builder","ticket.create":"Create Ticket Flow","ticket.save":"Save Ticket Flow","ticket.import":"Import","ticket.export":"Export","ticket.import.success":"Import successful","ticket.import.error":"Import failed","ticket.export.success":"Export successful","ticket.export.error":"Export failed","ticket.create.error":"Failed to create diagram","ticket.create.modal.title":"Create New Process","ticket.create.name":"Process Name","ticket.create.key":"Process Key","ticket.create.type":"Process Type","ticket.create.description":"Description","ticket.create.submit":"Create","ticket.create.cancel":"Cancel","ticket.type.default":"Default Process","ticket.type.approval":"Approval Process","ticket.type.service":"Service Process","ticket.type.ticket":"Ticket Process"},PCn={"welcome.modal.title":"No Organization Found","welcome.modal.description":"You need to create or join an organization","welcome.modal.join":"Join Organization (Coming Soon)","welcome.modal.create":"Create Organization","welcome.modal.input.placeholder":"Please enter organization name","welcome.message.org.required":"Please create or join an organization","welcome.message.create.success":"Organization created successfully","welcome.message.create.failed":"Failed to create organization","welcome.message.verify.email":"Please verify your email first","welcome.message.verify.mobile":"Please verify your mobile number first","welcome.message.org.name.required":"Please enter organization name","welcome.message.org.creating":"Creating organization, please wait...","welcome.verify.modal.title":"Account Verification","welcome.verify.modal.description":"Your email and mobile number have not been verified. For account security, we recommend completing verification as soon as possible.","welcome.verify.now":"Verify Now","welcome.verify.later":"Verify Later"},DCn={...fCn,...pCn,...mCn,...hCn,...gCn,...vCn,..._Cn,...yCn,...bCn,...SCn,...ECn,...CCn,...wCn,...xCn,...TCn,...RCn,...OCn,...ICn,...NCn,...MCn,...ACn,...PCn},kCn={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},GFe={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Lo={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},xs={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Om={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Zt{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=Zt.getVersionPrecision(t),o=Zt.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=Zt.map([t,n],c=>{const u=a-Zt.getVersionPrecision(c),d=c+new Array(u+1).join(".0");return Zt.map(d.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{r[l]=a[l]})}return t}static getBrowserAlias(t){return kCn[t]}static getBrowserTypeByAlias(t){return GFe[t]||""}}const Mi=/version\/(\d+(\.?_?\d+)+)/i,LCn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Zt.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Zt.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Zt.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Zt.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Zt.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Zt.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Zt.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Zt.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Zt.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Zt.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Zt.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Zt.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Zt.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Zt.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Zt.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Zt.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Zt.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Zt.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Zt.getFirstMatch(Mi,e)||Zt.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Zt.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Zt.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Zt.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Zt.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Zt.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Zt.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Zt.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Zt.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Zt.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Zt.getFirstMatch(Mi,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Zt.getFirstMatch(i,e),version:Zt.getSecondMatch(i,e)}}}],$Cn=[{test:[/Roku\/DVP/],describe(e){const t=Zt.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:xs.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Zt.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:xs.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Zt.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Zt.getWindowsVersionName(t);return{name:xs.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:xs.iOS},n=Zt.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Zt.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Zt.getMacOSVersionName(t),r={name:xs.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Zt.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:xs.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Zt.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Zt.getAndroidVersionName(t),r={name:xs.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Zt.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:xs.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Zt.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Zt.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Zt.getFirstMatch(/\bbb(\d+)/i,e);return{name:xs.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Zt.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:xs.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Zt.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:xs.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:xs.Linux}}},{test:[/CrOS/],describe(){return{name:xs.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Zt.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:xs.PlayStation4,version:t}}}],FCn=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Zt.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Lo.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Lo.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Lo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Lo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Lo.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Lo.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Lo.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Zt.getFirstMatch(/(ipod|iphone)/i,e);return{type:Lo.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Lo.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Lo.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Lo.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Lo.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Lo.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Lo.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Lo.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Lo.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Lo.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Lo.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Lo.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Lo.tv}}}],BCn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Om.Blink};const n=Zt.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Om.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Om.Trident},n=Zt.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Om.Presto},n=Zt.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Om.Gecko},n=Zt.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Om.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Om.WebKit},n=Zt.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class l_e{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Zt.find(LCn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Zt.find($Cn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Zt.find(FCn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Zt.find(BCn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Zt.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=Zt.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=Zt.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(o>0){const s=Object.keys(i),l=Zt.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Zt.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(Zt.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class UCn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new l_e(t,n)}static parse(t){return new l_e(t).getResult()}static get BROWSER_MAP(){return GFe}static get ENGINE_MAP(){return Om}static get OS_MAP(){return xs}static get PLATFORMS_MAP(){return Lo}}const{defaultAlgorithm:jCn,darkAlgorithm:HCn}=Ns,zCn={"zh-cn":HEn,"zh-tw":dCn,en:DCn},VCn=()=>{const{isDarkMode:e,locale:t}=m.useContext(Da),n=new J0t({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,i]=m.useState(!1),o=()=>{const s=UCn.getParser(window.navigator.userAgent);console.log("browser:",s),Aa?console.log("OsName:",s.getOSName()):console.log("BrowserName:",s.getBrowserName()),s.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&i(!0)},a=async()=>{if(console.log("getConfig"),await D0e(),Aa)console.log("is electron");else{await P0e();const s=I2();console.log("Base URL:",s)}};return m.useEffect(()=>{vCe(),o(),a()},[]),M.jsx(Pn,{locale:t,theme:{algorithm:e?HCn:jCn},children:M.jsx(tSt,{client:n,children:M.jsx(VFe,{children:M.jsx(m.Suspense,{fallback:M.jsx("div",{children:"loading..."}),children:M.jsxs(bWt,{messages:zCn[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&M.jsx(yEn,{children:M.jsx("link",{rel:"stylesheet",type:"text/css",href:lUe})}),M.jsxs(DD,{children:[M.jsx(m0t,{}),M.jsx(MEt,{router:VSn})]})]})})})})})},GCn=()=>M.jsx("div",{className:"App",children:M.jsx(M0t,{children:M.jsx(VCn,{})})});IU.createRoot(document.getElementById("root")).render(M.jsxs(de.StrictMode,{children:[M.jsx(GCn,{}),","]}));postMessage({payload:"removeLoading"},"*");export{kh as a,mi as r,$u as u};
|